PageSourceSearch

https://static.alan.com/web-assets/web-fr/985b30f18796e86b05db5cba…727497.d722455771558135.js?d722455771558135

js alan.com collected 2026-10-02 03:10:44 UTC 968,629 bytes, 10 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="5770059a-d220-5f67-ae1e-a7157a471e7c")}catch(e){}}();
3(self.rspackChunk_alaneu_web_server=self.rspackChunk_alaneu_web_server||[]).push([[727497],{971541:function(e,t,n){"use strict";var r="bottom",i="right",o="left",s="auto",a=["top",r,i,o],l="start",c=a.reduce(function(e,t){return e.concat([t+"-"+l,t+"-end"])},[]),u=([].concat(a,[s])).reduce(function(e,t){return e.concat([t,t+"-"+l,t+"-end"])},[]),d=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];n.d(t,{DD:function(){return u},GM:function(){return d},Mn:function(){return"top"},OM:function(){return a},Ol:function(){return c},R9:function(){return"viewport"},WY:function(){return"clippingParents"},_N:function(){return"end"},ir:function(){return"reference"},kb:function(){return o},ni:function(){return l},pG:function(){return i},qZ:function(){return s},sQ:function(){return r},xf:function(){return"popper"}})},734545:function(e,t,n){"use strict";var r=n(514041);function i(){return(0,r.useState)(null)}n.d(t,{A:function(){return i}})},794548:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(514041),i=function(e){var t=(0,r.useRef)(e);return(0,r.useEffect)(function(){t.current=e},[e]),t};function o(e){var t=i(e);return(0,r.useCallback)(function(){return t.current&&t.current.apply(t,arguments)},[t])}},690961:function(e,t,n){"use strict";var r=n(514041);function i(){var e=(0,r.useRef)(!0),t=(0,r.useRef)(function(){return e.current});return(0,r.useEffect)(function(){return e.current=!0,function(){e.current=!1}},[]),t.current}n.d(t,{A:function(){return i}})},166973:function(e,t,n){"use strict";function r(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function i(e){return Object.prototype.toString.call(e)}function o(e){return"[object Function]"===i(e)}function s(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var a={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},l={"http:":{validate:function(e,t,n){var r=e.slice(t);return(n.re.http||(n.re.http=RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r))?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return(n.re.no_http||(n.re.no_http=RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r))?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return(n.re.mailto||(n.re.mailto=RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r))?r.match(n.re.mailto)[0].length:0}}},c="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function u(){return function(e,t){t.normalize(e)}}function d(e){var t=e.re=n(636624)(e.__opts__),r=e.__tlds__.slice();function a(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(a(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(a(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(a(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(a(t.tpl_host_fuzzy_test),"i");var l=[];function c(e,t){throw Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){var n=e.__schemas__[t];if(null!==n){var r,s={validate:null,link:null};if(e.__compiled__[t]=s,"[object Object]"===i(n)){"[object RegExp]"===i(n.validate)?(r=n.validate,s.validate=function(e,t){var n=e.slice(t);return r.test(n)?n.match(r)[0].length:0}):o(n.validate)?s.validate=n.validate:c(t,n),o(n.normalize)?s.normalize=n.normalize:n.normalize?c(t,n):s.normalize=u();return}if("[object String]"===i(n))return void l.push(t);c(t,n)}}),l.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:u()};var d=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(s).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+d+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[>
3<|]|"+t.src_ZPCc+"))("+d+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),e.__index__=-1,e.__text_cache__=""}function h(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function f(e,t){var n=new h(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function p(e,t){if(!(this instanceof p))return new p(e,t);!t&&Object.keys(e||{}).reduce(function(e,t){return e||a.hasOwnProperty(t)},!1)&&(t=e,e={}),this.__opts__=r({},a,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},l,e),this.__compiled__={},this.__tlds__=c,this.__tlds_replaced__=!1,this.re={},d(this)}p.prototype.add=function(e,t){return this.__schemas__[e]=t,d(this),this},p.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},p.prototype.test=function(e){var t,n,r,i,o,s,a,l;if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;if(this.re.schema_test.test(e)){for((a=this.re.schema_search).lastIndex=0;null!==(t=a.exec(e));)if(i=this.testSchemaAt(e,t[2],a.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,s=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=s)),this.__index__>=0},p.prototype.pretest=function(e){return this.re.pretest.test(e)},p.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},p.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(f(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(f(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},p.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var t=this.re.schema_at_start.exec(e);if(!t)return null;var n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,f(this,0)):null},p.prototype.tlds=function(e,t){return(e=Array.isArray(e)?e:[e],t)?this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse():(this.__tlds__=e.slice(),this.__tlds_replaced__=!0),d(this),this},p.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},p.prototype.onCompile=function(){},e.exports=p},636624:function(e,t,n){"use strict";e.exports=function(e){var t={};e=e||{},t.src_Any=n(54591).source,t.src_Cc=n(612876).source,t.src_Z=n(244702).source,t.src_P=n(7664).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var r="[><|]";return t.src_pseudo_letter="(?:(?!"+r+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+r+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}
3"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},779182:function(e,t,n){"use strict";e.exports=n(596946)},814075:function(e,t,n){"use strict";e.exports=n(226642)},111986:function(e){"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},857881:function(e){"use strict";var t="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",n="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",r=RegExp("^(?:"+t+"|"+n+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),i=RegExp("^(?:"+t+"|"+n+")");e.exports.l=r,e.exports.p=i},876295:function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function i(e,t){return r.call(e,t)}function o(e){return(!(e>=55296)||!(e<=57343))&&(!(e>=64976)||!(e<=65007))&&(65535&e)!=65535&&(65535&e)!=65534&&(!(e>=0)||!(e<=8))&&11!==e&&(!(e>=14)||!(e<=31))&&(!(e>=127)||!(e<=159))&&!(e>1114111)&&!0}function s(e){return e>65535?String.fromCharCode(55296+((e-=65536)>>10),56320+(1023&e)):String.fromCharCode(e)}var a=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,l=RegExp(a.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),c=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,u=n(814075),d=/[&<>"]/,h=/[&<>"]/g,f={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function p(e){return f[e]}var m=/[.?*+^$[\]\\(){}|-]/g,g=n(7664);t.lib={},t.lib.mdurl=n(953945),t.lib.ucmicro=n(890771),t.assign=function(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(t){if(t){if("object"!=typeof t)throw TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e},t.isString=function(e){return"[object String]"===Object.prototype.toString.call(e)},t.has=i,t.unescapeMd=function(e){return 0>e.indexOf("\\")?e:e.replace(a,"$1")},t.unescapeAll=function(e){return 0>e.indexOf("\\")&&0>e.indexOf("&")?e:e.replace(l,function(e,t,n){var r;if(t)return t;return i(u,n)?u[n]:35===n.charCodeAt(0)&&c.test(n)&&o(r="x"===n[1].toLowerCase()?parseInt(n.slice(2),16):parseInt(n.slice(1),10))?s(r):e})},t.isValidEntityCode=o,t.fromCodePoint=s,t.escapeHtml=function(e){return d.test(e)?e.replace(h,p):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 
361:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return g.test(e)},t.escapeRE=function(e){return e.replace(m,"\\$&")},t.normalizeReference=function(e){return(e=e.trim().replace(/\s+/g," ")).toLowerCase().toUpperCase()}},634108:function(e,t,n){"use strict";t.parseLinkLabel=n(858703),t.parseLinkDestination=n(122089),t.parseLinkTitle=n(95803)},122089:function(e,t,n){"use strict";var r=n(876295).unescapeAll;e.exports=function(e,t,n){var i,o,s=t,a={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(s)){for(s++;s<n&&10!==(i=e.charCodeAt(s))&&60!==i;){if(62===i){a.pos=s+1,a.str=r(e.slice(t+1,s)),a.ok=!0;break}if(92===i&&s+1<n){s+=2;continue}s++}return a}for(o=0;s<n&&32!==(i=e.charCodeAt(s))&&!(i<32)&&127!==i;){if(92===i&&s+1<n){if(32===e.charCodeAt(s+1))break;s+=2;continue}if(40===i&&++o>32)return a;if(41===i){if(0===o)break;o--}s++}return t===s||0!==o||(a.str=r(e.slice(t,s)),a.pos=s,a.ok=!0),a}},858703:function(e){"use strict";e.exports=function(e,t,n){var r,i,o,s,a=-1,l=e.posMax,c=e.pos;for(e.pos=t+1,r=1;e.pos<l;){if(93===(o=e.src.charCodeAt(e.pos))&&0==--r){i=!0;break}if(s=e.pos,e.md.inline.skipToken(e),91===o){if(s===e.pos-1)r++;else if(n)return e.pos=c,-1}}return i&&(a=e.pos),e.pos=c,a}},95803:function(e,t,n){"use strict";var r=n(876295).unescapeAll;e.exports=function(e,t,n){var i,o,s=0,a=t,l={ok:!1,pos:0,lines:0,str:""};if(a>=n||34!==(o=e.charCodeAt(a))&&39!==o&&40!==o)return l;for(a++,40===o&&(o=41);a<n;){if((i=e.charCodeAt(a))===o){l.pos=a+1,l.lines=s,l.str=r(e.slice(t+1,a)),l.ok=!0;break}if(40===i&&41===o)break;10===i?s++:92===i&&a+1<n&&(a++,10===e.charCodeAt(a)&&s++);a++}return l}},596946:function(e,t,n){"use strict";var r=n(876295),i=n(634108),o=n(858507),s=n(785821),a=n(609513),l=n(819855),c=n(166973),u=n(953945),d=n(974826),h={default:n(537664),zero:n(113651),commonmark:n(889853)},f=/^(vbscript|javascript|file|data):/,p=/^data:image\/(gif|png|jpeg|webp);/;function m(e){var t=e.trim().toLowerCase();return!f.test(t)||!!p.test(t)}var g=["http:","https:","mailto:"];function y(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||g.indexOf(t.protocol)>=0))try{t.hostname=d.toASCII(t.hostname)}catch(e){}return u.encode(u.format(t))}function v(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||g.indexOf(t.protocol)>=0))try{t.hostname=d.toUnicode(t.hostname)}catch(e){}return u.decode(u.format(t),u.decode.defaultChars+"%")}function b(e,t){if(!(this instanceof b))return new b(e,t);t||r.isString(e)||(t=e||{},e="default"),this.inline=new l,this.block=new a,this.core=new s,this.renderer=new o,this.linkify=new c,this.validateLink=m,this.normalizeLink=y,this.normalizeLinkText=v,this.utils=r,this.helpers=r.assign({},i),this.options={},this.configure(e),t&&this.set(t)}b.prototype.set=function(e){return r.assign(this.options,e),this},b.prototype.configure=function(e){var t,n=this;if(r.isString(e)&&!(e=h[t=e]))throw Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach(function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableO
3nly(e.components[t].rules2)}),this},b.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter(function(e){return 0>n.indexOf(e)});if(r.length&&!t)throw Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},b.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter(function(e){return 0>n.indexOf(e)});if(r.length&&!t)throw Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},b.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},b.prototype.parse=function(e,t){if("string"!=typeof e)throw Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},b.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},b.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},b.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=b},609513:function(e,t,n){"use strict";var r=n(116622),i=[["table",n(884044),["paragraph","reference"]],["code",n(458195)],["fence",n(490345),["paragraph","reference","blockquote","list"]],["blockquote",n(991417),["paragraph","reference","blockquote","list"]],["hr",n(259596),["paragraph","reference","blockquote","list"]],["list",n(11818),["paragraph","reference","blockquote"]],["reference",n(428741)],["html_block",n(661053),["paragraph","reference","blockquote"]],["heading",n(436414),["paragraph","reference","blockquote"]],["lheading",n(669060)],["paragraph",n(426386)]];function o(){this.ruler=new r;for(var e=0;e<i.length;e++)this.ruler.push(i[e][0],i[e][1],{alt:(i[e][2]||[]).slice()})}o.prototype.tokenize=function(e,t,n){for(var r,i,o,s=this.ruler.getRules(""),a=s.length,l=t,c=!1,u=e.md.options.maxNesting;l<n&&(e.line=l=e.skipEmptyLines(l),!(l>=n)&&!(e.sCount[l]<e.blkIndent));){if(e.level>=u){e.line=n;break}for(o=e.line,i=0;i<a;i++)if(r=s[i](e,l,n,!1)){if(o>=e.line)throw Error("block rule didn't increment state.line");break}if(!r)throw Error("none of the block rules matched");e.tight=!c,e.isEmpty(e.line-1)&&(c=!0),(l=e.line)<n&&e.isEmpty(l)&&(c=!0,e.line=++l)}},o.prototype.parse=function(e,t,n,r){var i;e&&(i=new this.State(e,t,n,r),this.tokenize(i,i.line,i.lineMax))},o.prototype.State=n(693459),e.exports=o},785821:function(e,t,n){"use strict";var r=n(116622),i=[["normalize",n(450567)],["block",n(871977)],["inline",n(625551)],["linkify",n(881470)],["replacements",n(318807)],["smartquotes",n(582712)],["text_join",n(833468)]];function o(){this.ruler=new r;for(var e=0;e<i.length;e++)this.ruler.push(i[e][0],i[e][1])}o.prototype.process=function(e){var t,n,r;for(t=0,n=(r=this.ruler.getRules("")).length;t<n;t++)r[t](e)},o.prototype.State=n(222355),e.exports=o},819855:function(e,t,n){"use strict";var r=n(116622),i=[["text",n(858859)],["linkify",n(79900)],["newline",n(787378)],["escape",n(16179)],["backticks",n(235289)],["strikethrough",n(864545).q],["emphasis",n(46206).q],["link",n(876428)],["image",n(244607)],["autolink",n(316983)],["html_inline",n(319581)],["entity",n(838443)]],o=[["balance_pairs",n(692656)],["strikethrough",n(864545).g],["emphasis",n(46206).g],["fragments_join",n(542810)]];function s(){var e;for(this.ruler=new r,e=0;e<i.length;e++)this.ruler.push(i[e][0],i[e][1]);for(this.ruler2=new r,e=0;e<o.length;e++)this.ruler2.push(o[e][0],o[e][1])}s.prototype.skipToken=function(e){var t,n,r=e.pos,i=this.ruler.getRules(""),o=i.length,s=e.md.options.maxNesting,a=e.cache;if(void 0!==a[r]){e.pos=a[r];return}if(e.level<s){for(n=0;n<o;n++)if(e.level++,t=i[n](e,!0),e.level--,t){if(r>=e.pos)throw Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;!t&&e.pos++,a[r]=e.pos},s.prototype.tokenize=function(e){for(var t,n,r,i=this.ruler.getRules(""),o=i.length,s=e.posMax,a=e.md.options.maxNesting;e.pos<s;){if(r=e.pos,e.level<a){for(n=0;n<o;n++)if(t=i[n](e,!1)){if(r>=e.pos)throw Error("inline rule didn't increment state.pos");break}}if(t){if(e.pos>=s)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},s.prototype.parse=function(e,t,n,r){var i,o,s,a=new this.State(e,t,n,r);for(this.tokenize(a),s=(o=this.ruler2.getRules("")).length,i=0;i<s;i++)o[i](a)},s.prototype.State=n(423700),e.exports=s},889853:function(e){"use strict";e.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},537664:function(e){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{}
3,inline:{}}}},113651:function(e){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}}},858507:function(e,t,n){"use strict";var r=n(876295).assign,i=n(876295).unescapeAll,o=n(876295).escapeHtml,s={};function a(){this.rules=r({},s)}s.code_inline=function(e,t,n,r,i){var s=e[t];return"<code"+i.renderAttrs(s)+">"+o(s.content)+"</code>"},s.code_block=function(e,t,n,r,i){var s=e[t];return"<pre"+i.renderAttrs(s)+"><code>"+o(e[t].content)+"</code></pre>\n"},s.fence=function(e,t,n,r,s){var a,l,c,u,d=e[t],h=d.info?i(d.info).trim():"",f="",p="";return(h&&(f=(c=h.split(/(\s+)/g))[0],p=c.slice(2).join("")),0===(a=n.highlight&&n.highlight(d.content,f,p)||o(d.content)).indexOf("<pre"))?a+"\n":h?(l=d.attrIndex("class"),u=d.attrs?d.attrs.slice():[],l<0?u.push(["class",n.langPrefix+f]):(u[l]=u[l].slice(),u[l][1]+=" "+n.langPrefix+f),"<pre><code"+s.renderAttrs({attrs:u})+">"+a+"</code></pre>\n"):"<pre><code"+s.renderAttrs(d)+">"+a+"</code></pre>\n"},s.image=function(e,t,n,r,i){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},s.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},s.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},s.text=function(e,t){return o(e[t].content)},s.html_block=function(e,t){return e[t].content},s.html_inline=function(e,t){return e[t].content},a.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return"";for(t=0,r="",n=e.attrs.length;t<n;t++)r+=" "+o(e.attrs[t][0])+'="'+o(e.attrs[t][1])+'"';return r},a.prototype.renderToken=function(e,t,n){var r,i="",o=!1,s=e[t];return s.hidden?"":(s.block&&-1!==s.nesting&&t&&e[t-1].hidden&&(i+="\n"),i+=(-1===s.nesting?"</":"<")+s.tag,i+=this.renderAttrs(s),0===s.nesting&&n.xhtmlOut&&(i+=" /"),s.block&&(o=!0,1===s.nesting&&t+1<e.length&&("inline"===(r=e[t+1]).type||r.hidden?o=!1:-1===r.nesting&&r.tag===s.tag&&(o=!1))),i+=o?">\n":">")},a.prototype.renderInline=function(e,t,n){for(var r,i="",o=this.rules,s=0,a=e.length;s<a;s++)void 0!==o[r=e[s].type]?i+=o[r](e,s,t,n,this):i+=this.renderToken(e,s,t);return i},a.prototype.renderInlineAsText=function(e,t,n){for(var r="",i=0,o=e.length;i<o;i++)"text"===e[i].type?r+=e[i].content:"image"===e[i].type?r+=this.renderInlineAsText(e[i].children,t,n):"softbreak"===e[i].type&&(r+="\n");return r},a.prototype.render=function(e,t,n){var r,i,o,s="",a=this.rules;for(r=0,i=e.length;r<i;r++)"inline"===(o=e[r].type)?s+=this.renderInline(e[r].children,t,n):void 0!==a[o]?s+=a[o](e,r,t,n,this):s+=this.renderToken(e,r,t,n);return s},e.exports=a},116622:function(e){"use strict";function t(){this.__rules__=[],this.__cache__=null}t.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return -1},t.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){0>t.indexOf(e)&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){!n.enabled||t&&0>n.alt.indexOf(t)||e.__cache__[t].push(n.fn)})})},t.prototype.at=function(e,t,n){var r=this.__find__(e);if(-1===r)throw Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=(n||{}).alt||[],this.__cache__=null},t.prototype.before=function(e,t,n,r){var i=this.__find__(e);if(-1===i)throw Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:(r||{}).alt||[]}),this.__cache__=null},t.prototype.after=function(e,t,n,r){var i=this.__find__(e);if(-1===i)throw Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:(r||{}).alt||[]}),this.__cache__=null},t.prototype.push=function(e,t,n){this.__rules__.push({name:e,enabled:!0,fn:t,alt:(n||{}).alt||[]}),this.__cache__=null},t.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach(function(e){var r=this.__find__(e);
3if(r<0){if(t)return;throw Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)},this),this.__cache__=null,n},t.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},t.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach(function(e){var r=this.__find__(e);if(r<0){if(t)return;throw Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)},this),this.__cache__=null,n},t.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},e.exports=t},991417:function(e,t,n){"use strict";var r=n(876295).isSpace;e.exports=function(e,t,n,i){var o,s,a,l,c,u,d,h,f,p,m,g,y,v,b,_,w,x,k,C,A=e.lineMax,D=e.bMarks[t]+e.tShift[t],S=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||62!==e.src.charCodeAt(D))return!1;if(i)return!0;for(p=[],m=[],v=[],b=[],x=e.md.block.ruler.getRules("blockquote"),y=e.parentType,e.parentType="blockquote",h=t;h<n&&(C=e.sCount[h]<e.blkIndent,!((D=e.bMarks[h]+e.tShift[h])>=(S=e.eMarks[h])));h++){if(62===e.src.charCodeAt(D++)&&!C){for(l=e.sCount[h]+1,32===e.src.charCodeAt(D)?(D++,l++,o=!1,_=!0):9===e.src.charCodeAt(D)?(_=!0,(e.bsCount[h]+l)%4==3?(D++,l++,o=!1):o=!0):_=!1,f=l,p.push(e.bMarks[h]),e.bMarks[h]=D;D<S&&r(s=e.src.charCodeAt(D));)9===s?f+=4-(f+e.bsCount[h]+ +!!o)%4:f++,D++;u=D>=S,m.push(e.bsCount[h]),e.bsCount[h]=e.sCount[h]+1+ +!!_,v.push(e.sCount[h]),e.sCount[h]=f-l,b.push(e.tShift[h]),e.tShift[h]=D-e.bMarks[h];continue}if(u)break;for(a=0,w=!1,c=x.length;a<c;a++)if(x[a](e,h,n,!0)){w=!0;break}if(w){e.lineMax=h,0!==e.blkIndent&&(p.push(e.bMarks[h]),m.push(e.bsCount[h]),b.push(e.tShift[h]),v.push(e.sCount[h]),e.sCount[h]-=e.blkIndent);break}p.push(e.bMarks[h]),m.push(e.bsCount[h]),b.push(e.tShift[h]),v.push(e.sCount[h]),e.sCount[h]=-1}for(g=e.blkIndent,e.blkIndent=0,(k=e.push("blockquote_open","blockquote",1)).markup=">",k.map=d=[t,0],e.md.block.tokenize(e,t,h),(k=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=A,e.parentType=y,d[1]=e.line,a=0;a<b.length;a++)e.bMarks[a+t]=p[a],e.tShift[a+t]=b[a],e.sCount[a+t]=v[a],e.bsCount[a+t]=m[a];return e.blkIndent=g,!0}},458195:function(e){"use strict";e.exports=function(e,t,n){var r,i,o;if(e.sCount[t]-e.blkIndent<4)return!1;for(i=r=t+1;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){i=++r;continue}break}return e.line=i,(o=e.push("code_block","code",0)).content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",o.map=[t,e.line],!0}},490345:function(e){"use strict";e.exports=function(e,t,n,r){var i,o,s,a,l,c,u,d=!1,h=e.bMarks[t]+e.tShift[t],f=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||h+3>f||126!==(i=e.src.charCodeAt(h))&&96!==i||(l=h,(o=(h=e.skipChars(h,i))-l)<3)||(u=e.src.slice(l,h),s=e.src.slice(h,f),96===i&&s.indexOf(String.fromCharCode(i))>=0))return!1;if(r)return!0;for(a=t;!(++a>=n)&&(!((h=l=e.bMarks[a]+e.tShift[a])<(f=e.eMarks[a]))||!(e.sCount[a]<e.blkIndent));){;if(!(e.src.charCodeAt(h)!==i||e.sCount[a]-e.blkIndent>=4||(h=e.skipChars(h,i))-l<o)&&!((h=e.skipSpaces(h))<f)){d=!0;break}}return o=e.sCount[t],e.line=a+ +!!d,(c=e.push("fence","code",0)).info=s,c.content=e.getLines(t+1,a,o,!0),c.markup=u,c.map=[t,e.line],!0}},436414:function(e,t,n){"use strict";var r=n(876295).isSpace;e.exports=function(e,t,n,i){var o,s,a,l,c=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||35!==(o=e.src.charCodeAt(c))||c>=u)return!1;for(s=1,o=e.src.charCodeAt(++c);35===o&&c<u&&s<=6;)s++,o=e.src.charCodeAt(++c);return!(s>6)&&(!(c<u)||!!r(o))&&(!!i||(u=e.skipSpacesBack(u,c),(a=e.skipCharsBack(u,35,c))>c&&r(e.src.charCodeAt(a-1))&&(u=a),e.line=t+1,(l=e.push("heading_open","h"+String(s),1)).markup="########".slice(0,s),l.map=[t,e.line],(l=e.push("inline","",0)).content=e.src.slice(c,u).trim(),l.map=[t,e.line],l.children=[],(l=e.push("heading_close","h"+String(s),-1)).markup="########".slice(0,s),!0))}},259596:function(e,t,n){"use strict";var r=n(876295).isSpace;e.exports=function(e,t,n,i){var o,s,a,l,c=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>
3=4||42!==(o=e.src.charCodeAt(c++))&&45!==o&&95!==o)return!1;for(s=1;c<u;){if((a=e.src.charCodeAt(c++))!==o&&!r(a))return!1;a===o&&s++}return!(s<3)&&(!!i||(e.line=t+1,(l=e.push("hr","hr",0)).map=[t,e.line],l.markup=Array(s+1).join(String.fromCharCode(o)),!0))}},661053:function(e,t,n){"use strict";var r=n(111986),i=n(857881).p,o=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[RegExp("^</?("+r.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[RegExp(i.source+"\\s*$"),/^$/,!1]];e.exports=function(e,t,n,r){var i,s,a,l,c=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||60!==e.src.charCodeAt(c))return!1;for(l=e.src.slice(c,u),i=0;i<o.length&&!o[i][0].test(l);i++);if(i===o.length)return!1;if(r)return o[i][2];if(s=t+1,!o[i][1].test(l)){for(;s<n&&!(e.sCount[s]<e.blkIndent);s++)if(c=e.bMarks[s]+e.tShift[s],u=e.eMarks[s],l=e.src.slice(c,u),o[i][1].test(l)){0!==l.length&&s++;break}}return e.line=s,(a=e.push("html_block","",0)).map=[t,s],a.content=e.getLines(t,s,e.blkIndent,!0),!0}},669060:function(e){"use strict";e.exports=function(e,t,n){var r,i,o,s,a,l,c,u,d,h,f=t+1,p=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(h=e.parentType,e.parentType="paragraph";f<n&&!e.isEmpty(f);f++)if(!(e.sCount[f]-e.blkIndent>3)){if(e.sCount[f]>=e.blkIndent&&(l=e.bMarks[f]+e.tShift[f])<(c=e.eMarks[f])&&(45===(d=e.src.charCodeAt(l))||61===d)&&(l=e.skipChars(l,d),(l=e.skipSpaces(l))>=c)){u=61===d?1:2;break}if(!(e.sCount[f]<0)){for(o=0,i=!1,s=p.length;o<s;o++)if(p[o](e,f,n,!0)){i=!0;break}if(i)break}}return!!u&&(r=e.getLines(t,f,e.blkIndent,!1).trim(),e.line=f+1,(a=e.push("heading_open","h"+String(u),1)).markup=String.fromCharCode(d),a.map=[t,e.line],(a=e.push("inline","",0)).content=r,a.map=[t,e.line-1],a.children=[],(a=e.push("heading_close","h"+String(u),-1)).markup=String.fromCharCode(d),e.parentType=h,!0)}},11818:function(e,t,n){"use strict";var r=n(876295).isSpace;function i(e,t){var n,i,o;return(i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],42!==(n=e.src.charCodeAt(i++))&&45!==n&&43!==n||i<o&&!r(e.src.charCodeAt(i)))?-1:i}function o(e,t){var n,i=e.bMarks[t]+e.tShift[t],o=i,s=e.eMarks[t];if(o+1>=s||(n=e.src.charCodeAt(o++))<48||n>57)return -1;for(;;){if(o>=s)return -1;if((n=e.src.charCodeAt(o++))>=48&&n<=57){if(o-i>=10)return -1;continue}if(41===n||46===n)break;return -1}return o<s&&!r(n=e.src.charCodeAt(o))?-1:o}e.exports=function(e,t,n,r){var s,a,l,c,u,d,h,f,p,m,g,y,v,b,_,w,x,k,C,A,D,S,E,T,O,M,N,P=t,R=!1,I=!0;if(e.sCount[P]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[P]-e.listIndent>=4&&e.sCount[P]<e.blkIndent)return!1;if(r&&"paragraph"===e.parentType&&e.sCount[P]>=e.blkIndent&&(R=!0),(S=o(e,P))>=0){if(h=!0,T=e.bMarks[P]+e.tShift[P],v=Number(e.src.slice(T,S-1)),R&&1!==v)return!1}else{if(!((S=i(e,P))>=0))return!1;h=!1}if(R&&e.skipSpaces(S)>=e.eMarks[P])return!1;if(r)return!0;for(y=e.src.charCodeAt(S-1),g=e.tokens.length,h?(N=e.push("ordered_list_open","ol",1),1!==v&&(N.attrs=[["start",v]])):N=e.push("bullet_list_open","ul",1),N.map=m=[P,0],N.markup=String.fromCharCode(y),E=!1,M=e.md.block.ruler.getRules("list"),x=e.parentType,e.parentType="list";P<n;){for(D=S,b=e.eMarks[P],d=_=e.sCount[P]+S-(e.bMarks[P]+e.tShift[P]);D<b;){if(9===(s=e.src.charCodeAt(D)))_+=4-(_+e.bsCount[P])%4;else if(32===s)_++;else break;D++}if((u=(a=D)>=b?1:_-d)>4&&(u=1),c=d+u,(N=e.push("list_item_open","li",1)).markup=String.fromCharCode(y),N.map=f=[P,0],h&&(N.info=e.src.slice(T,S-1)),A=e.tight,C=e.tShift[P],k=e.sCount[P],w=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[P]=a-e.bMarks[P],e.sCount[P]=_,a>=b&&e.isEmpty(P+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,P,n,!0),(!e.tight||E)&&(I=!1),E=e.line-P>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=w,e.tShift[P]=C,e.sCount[P]=k,e.tight=A,(N=e.push("list_item_close","li",-1)).markup=String.fromCharCode(y),P=e.line,f[1]=P,P>=n||e.sCount[P]<e.blkIndent||e.sCount[P]-e.blkIndent>=4)break;for(l=0,O=!1,p=M.length;l<p;l++)if(M[l](e,P,n,!0)){O=!0;break}if(O)break;
3if(h){if((S=o(e,P))<0)break;T=e.bMarks[P]+e.tShift[P]}else if((S=i(e,P))<0)break;if(y!==e.src.charCodeAt(S-1))break}return(N=h?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(y),m[1]=P,e.line=P,e.parentType=x,I&&function(e,t){var n,r,i=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===i&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}(e,g),!0}},426386:function(e){"use strict";e.exports=function(e,t,n){var r,i,o,s,a,l,c=t+1,u=e.md.block.ruler.getRules("paragraph");for(l=e.parentType,e.parentType="paragraph";c<n&&!e.isEmpty(c);c++)if(!(e.sCount[c]-e.blkIndent>3)&&!(e.sCount[c]<0)){for(o=0,i=!1,s=u.length;o<s;o++)if(u[o](e,c,n,!0)){i=!0;break}if(i)break}return r=e.getLines(t,c,e.blkIndent,!1).trim(),e.line=c,(a=e.push("paragraph_open","p",1)).map=[t,e.line],(a=e.push("inline","",0)).content=r,a.map=[t,e.line],a.children=[],a=e.push("paragraph_close","p",-1),e.parentType=l,!0}},428741:function(e,t,n){"use strict";var r=n(876295).normalizeReference,i=n(876295).isSpace;e.exports=function(e,t,n,o){var s,a,l,c,u,d,h,f,p,m,g,y,v,b,_,w,x=0,k=e.bMarks[t]+e.tShift[t],C=e.eMarks[t],A=t+1;if(e.sCount[t]-e.blkIndent>=4||91!==e.src.charCodeAt(k))return!1;for(;++k<C;)if(93===e.src.charCodeAt(k)&&92!==e.src.charCodeAt(k-1)){if(k+1===C||58!==e.src.charCodeAt(k+1))return!1;break}for(c=e.lineMax,_=e.md.block.ruler.getRules("reference"),m=e.parentType,e.parentType="reference";A<c&&!e.isEmpty(A);A++)if(!(e.sCount[A]-e.blkIndent>3)&&!(e.sCount[A]<0)){for(d=0,b=!1,h=_.length;d<h;d++)if(_[d](e,A,c,!0)){b=!0;break}if(b)break}for(C=(v=e.getLines(t,A,e.blkIndent,!1).trim()).length,k=1;k<C;k++){if(91===(s=v.charCodeAt(k)))return!1;if(93===s){p=k;break}10===s?x++:92===s&&++k<C&&10===v.charCodeAt(k)&&x++}if(p<0||58!==v.charCodeAt(p+1))return!1;for(k=p+2;k<C;k++)if(10===(s=v.charCodeAt(k)))x++;else if(i(s));else break;if(!(g=e.md.helpers.parseLinkDestination(v,k,C)).ok||(u=e.md.normalizeLink(g.str),!e.md.validateLink(u)))return!1;for(k=g.pos,x+=g.lines,a=k,l=x,y=k;k<C;k++)if(10===(s=v.charCodeAt(k)))x++;else if(i(s));else break;for(g=e.md.helpers.parseLinkTitle(v,k,C),k<C&&y!==k&&g.ok?(w=g.str,k=g.pos,x+=g.lines):(w="",k=a,x=l);k<C&&i(s=v.charCodeAt(k));)k++;if(k<C&&10!==v.charCodeAt(k)&&w)for(w="",k=a,x=l;k<C&&i(s=v.charCodeAt(k));)k++;return(!(k<C)||10===v.charCodeAt(k))&&!!(f=r(v.slice(1,p)))&&(!!o||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[f]&&(e.env.references[f]={title:w,href:u}),e.parentType=m,e.line=t+x+1,!0))}},693459:function(e,t,n){"use strict";var r=n(496551),i=n(876295).isSpace;function o(e,t,n,r){var o,s,a,l,c,u,d,h;for(this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",s=this.src,h=!1,a=l=u=d=0,c=s.length;l<c;l++){if(o=s.charCodeAt(l),!h)if(i(o)){u++,9===o?d+=4-d%4:d++;continue}else h=!0;(10===o||l===c-1)&&(10!==o&&l++,this.bMarks.push(a),this.eMarks.push(l),this.tShift.push(u),this.sCount.push(d),this.bsCount.push(0),h=!1,u=0,d=0,a=l+1)}this.bMarks.push(s.length),this.eMarks.push(s.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}o.prototype.push=function(e,t,n){var i=new r(e,t,n);return i.block=!0,n<0&&this.level--,i.level=this.level,n>0&&this.level++,this.tokens.push(i),i},o.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},o.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},o.prototype.skipSpaces=function(e){for(var t=this.src.length;e<t&&i(this.src.charCodeAt(e));e++);return e},o.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!i(this.src.charCodeAt(--e)))return e+1;return e},o.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},o.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;
3)if(t!==this.src.charCodeAt(--e))return e+1;return e},o.prototype.getLines=function(e,t,n,r){var o,s,a,l,c,u,d,h=e;if(e>=t)return"";for(u=Array(t-e),o=0;h<t;h++,o++){for(s=0,d=l=this.bMarks[h],c=h+1<t||r?this.eMarks[h]+1:this.eMarks[h];l<c&&s<n;){if(i(a=this.src.charCodeAt(l)))9===a?s+=4-(s+this.bsCount[h])%4:s++;else if(l-d<this.tShift[h])s++;else break;l++}s>n?u[o]=Array(s-n+1).join(" ")+this.src.slice(l,c):u[o]=this.src.slice(l,c)}return u.join("")},o.prototype.Token=r,e.exports=o},884044:function(e,t,n){"use strict";var r=n(876295).isSpace;function i(e,t){var n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function o(e){var t,n=[],r=0,i=e.length,o=!1,s=0,a="";for(t=e.charCodeAt(r);r<i;)124===t&&(o?(a+=e.substring(s,r-1),s=r):(n.push(a+e.substring(s,r)),a="",s=r+1)),o=92===t,r++,t=e.charCodeAt(r);return n.push(a+e.substring(s)),n}e.exports=function(e,t,n,s){var a,l,c,u,d,h,f,p,m,g,y,v,b,_,w,x,k,C;if(t+2>n||(h=t+1,e.sCount[h]<e.blkIndent||e.sCount[h]-e.blkIndent>=4||(c=e.bMarks[h]+e.tShift[h])>=e.eMarks[h]||124!==(k=e.src.charCodeAt(c++))&&45!==k&&58!==k||c>=e.eMarks[h]||124!==(C=e.src.charCodeAt(c++))&&45!==C&&58!==C&&!r(C)||45===k&&r(C)))return!1;for(;c<e.eMarks[h];){if(124!==(a=e.src.charCodeAt(c))&&45!==a&&58!==a&&!r(a))return!1;c++}for(f=(l=i(e,t+1)).split("|"),g=[],u=0;u<f.length;u++){if(!(y=f[u].trim()))if(0===u||u===f.length-1)continue;else return!1;if(!/^:?-+:?$/.test(y))return!1;58===y.charCodeAt(y.length-1)?g.push(58===y.charCodeAt(0)?"center":"right"):58===y.charCodeAt(0)?g.push("left"):g.push("")}if(-1===(l=i(e,t).trim()).indexOf("|")||e.sCount[t]-e.blkIndent>=4||((f=o(l)).length&&""===f[0]&&f.shift(),f.length&&""===f[f.length-1]&&f.pop(),0===(p=f.length)||p!==g.length))return!1;if(s)return!0;for(_=e.parentType,e.parentType="table",x=e.md.block.ruler.getRules("blockquote"),(m=e.push("table_open","table",1)).map=v=[t,0],(m=e.push("thead_open","thead",1)).map=[t,t+1],(m=e.push("tr_open","tr",1)).map=[t,t+1],u=0;u<f.length;u++)m=e.push("th_open","th",1),g[u]&&(m.attrs=[["style","text-align:"+g[u]]]),(m=e.push("inline","",0)).content=f[u].trim(),m.children=[],m=e.push("th_close","th",-1);for(m=e.push("tr_close","tr",-1),m=e.push("thead_close","thead",-1),h=t+2;h<n&&!(e.sCount[h]<e.blkIndent);h++){for(u=0,w=!1,d=x.length;u<d;u++)if(x[u](e,h,n,!0)){w=!0;break}if(w||!(l=i(e,h).trim())||e.sCount[h]-e.blkIndent>=4)break;for((f=o(l)).length&&""===f[0]&&f.shift(),f.length&&""===f[f.length-1]&&f.pop(),h===t+2&&((m=e.push("tbody_open","tbody",1)).map=b=[t+2,0]),(m=e.push("tr_open","tr",1)).map=[h,h+1],u=0;u<p;u++)m=e.push("td_open","td",1),g[u]&&(m.attrs=[["style","text-align:"+g[u]]]),(m=e.push("inline","",0)).content=f[u]?f[u].trim():"",m.children=[],m=e.push("td_close","td",-1);m=e.push("tr_close","tr",-1)}return b&&(m=e.push("tbody_close","tbody",-1),b[1]=h),m=e.push("table_close","table",-1),v[1]=h,e.parentType=_,e.line=h,!0}},871977:function(e){"use strict";e.exports=function(e){var t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}},625551:function(e){"use strict";e.exports=function(e){var t,n,r,i=e.tokens;for(n=0,r=i.length;n<r;n++)"inline"===(t=i[n]).type&&e.md.inline.parse(t.content,e.md,e.env,t.children)}},881470:function(e,t,n){"use strict";var r=n(876295).arrayReplaceAt;e.exports=function(e){var t,n,i,o,s,a,l,c,u,d,h,f,p,m,g,y,v,b,_,w=e.tokens;if(e.md.options.linkify){for(o=0,s=w.length;o<s;o++)if("inline"===w[o].type&&e.md.linkify.pretest(w[o].content))for(a=w[o].children,g=0,i=a.length-1;i>=0;i--){if("link_close"===(c=a[i]).type){for(i--;a[i].level!==c.level&&"link_open"!==a[i].type;)i--;continue}if("html_inline"===c.type&&(t=c.content,/^<a[>\s]/i.test(t)&&g>0&&g--,n=c.content,/^<\/a\s*>/i.test(n)&&g++),!(g>0)&&"text"===c.type&&e.md.linkify.test(c.content)){for(h=c.content,_=e.md.linkify.match(h),u=[],m=c.level,p=0,_.length>0&&0===_[0].index&&i>0&&"text_special"===a[i-1].type&&(_=_.slice(1)),d=0;d<_.length;d++)y=_[d].url,v=e.md.normalizeLink(y),e.md.validateLink(v)&&(b=_[d].text,b=_[d].schema?"mailto:"!==_[d].schema||/^mailto:/i.test(b)?e.md.normalizeLinkText(b):e.md.normalizeLinkText("mailto:"+b).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+b).replace(/^http:\/\//,""),(f=_[d].index)>p&&((l=new e.Token("text","",0)).content=h.slice(p,f),l.level=m,u.push(l)),(l=new e.Token("link_open","a",1)).attrs=[["href",v]],l.level=m++,l.markup="linkify",l.info="auto",u.push(l),(l=new e.Token("text","",0)).content=b,l.level=m,u.push(l),(l=new e.Token("link_close","a",-1)).level=--m,l.markup="linkify",l.info="auto",u.push(l),p=_[d].lastIndex);p<h.length&&((l=new e.Token("text","",0)).content=h.slice(p),l.level=m,u.push(l)),w[o].children=a=r(a,i,u)}}}}},450567:function(e){"use strict";var t=/\r\n?|\n/g,n=/\0/g;e.exports=function(e){var r;r=(r=e.src.replace(t,"\n")).replace(n,"�"),e.src=r}},318807:function(e){"use strict";var t=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,n=/\((c|tm|r)\)/i,r=/\((c|tm|r)\)/ig,i={c:"©",r:"®",tm:"™"};function o(e,t){return i[t.toLowerCase()]}e.exports=function(e){var i;if(e.md.options.typographer)for(i=e.tokens.length-1;i>=0;
3i--)"inline"===e.tokens[i].type&&(n.test(e.tokens[i].content)&&function(e){var t,n,i=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||i||(n.content=n.content.replace(r,o)),"link_open"===n.type&&"auto"===n.info&&i--,"link_close"===n.type&&"auto"===n.info&&i++}(e.tokens[i].children),t.test(e.tokens[i].content)&&function(e){var n,r,i=0;for(n=e.length-1;n>=0;n--)"text"===(r=e[n]).type&&!i&&t.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),"link_open"===r.type&&"auto"===r.info&&i--,"link_close"===r.type&&"auto"===r.info&&i++}(e.tokens[i].children))}},582712:function(e,t,n){"use strict";var r=n(876295).isWhiteSpace,i=n(876295).isPunctChar,o=n(876295).isMdAsciiPunct,s=/['"]/,a=/['"]/g;function l(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}e.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&s.test(e.tokens[t].content)&&function(e,t){var n,s,c,u,d,h,f,p,m,g,y,v,b,_,w,x,k,C,A,D,S;for(n=0,A=[];n<e.length;n++){for(s=e[n],f=e[n].level,k=A.length-1;k>=0&&!(A[k].level<=f);k--);if(A.length=k+1,"text"===s.type){c=s.content,d=0,h=c.length;e:for(;d<h&&(a.lastIndex=d,u=a.exec(c));){if(w=x=!0,d=u.index+1,C="'"===u[0],m=32,u.index-1>=0)m=c.charCodeAt(u.index-1);else for(k=n-1;k>=0&&"softbreak"!==e[k].type&&"hardbreak"!==e[k].type;k--)if(e[k].content){m=e[k].content.charCodeAt(e[k].content.length-1);break}if(g=32,d<h)g=c.charCodeAt(d);else for(k=n+1;k<e.length&&"softbreak"!==e[k].type&&"hardbreak"!==e[k].type;k++)if(e[k].content){g=e[k].content.charCodeAt(0);break}if(y=o(m)||i(String.fromCharCode(m)),v=o(g)||i(String.fromCharCode(g)),b=r(m),(_=r(g))?w=!1:v&&!(b||y)&&(w=!1),b?x=!1:y&&!(_||v)&&(x=!1),34===g&&'"'===u[0]&&m>=48&&m<=57&&(x=w=!1),w&&x&&(w=y,x=v),!w&&!x){C&&(s.content=l(s.content,u.index,"’"));continue}if(x){for(k=A.length-1;k>=0&&(p=A[k],!(A[k].level<f));k--)if(p.single===C&&A[k].level===f){p=A[k],C?(D=t.md.options.quotes[2],S=t.md.options.quotes[3]):(D=t.md.options.quotes[0],S=t.md.options.quotes[1]),s.content=l(s.content,u.index,S),e[p.token].content=l(e[p.token].content,p.pos,D),d+=S.length-1,p.token===n&&(d+=D.length-1),h=(c=s.content).length,A.length=k;continue e}}w?A.push({token:n,pos:u.index,single:C,level:f}):x&&C&&(s.content=l(s.content,u.index,"’"))}}}}(e.tokens[t].children,e)}},222355:function(e,t,n){"use strict";var r=n(496551);function i(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}i.prototype.Token=r,e.exports=i},833468:function(e){"use strict";e.exports=function(e){var t,n,r,i,o,s,a=e.tokens;for(t=0,n=a.length;t<n;t++)if("inline"===a[t].type){for(o=(r=a[t].children).length,i=0;i<o;i++)"text_special"===r[i].type&&(r[i].type="text");for(i=s=0;i<o;i++)"text"===r[i].type&&i+1<o&&"text"===r[i+1].type?r[i+1].content=r[i].content+r[i+1].content:(i!==s&&(r[s]=r[i]),s++);i!==s&&(r.length=s)}}},316983:function(e){"use strict";var t=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,n=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;e.exports=function(e,r){var i,o,s,a,l,c,u=e.pos;if(60!==e.src.charCodeAt(u))return!1;for(l=e.pos,c=e.posMax;;){if(++u>=c||60===(a=e.src.charCodeAt(u)))return!1;if(62===a)break}return(i=e.src.slice(l+1,u),n.test(i))?(o=e.md.normalizeLink(i),!!e.md.validateLink(o)&&(r||((s=e.push("link_open","a",1)).attrs=[["href",o]],s.markup="autolink",s.info="auto",(s=e.push("text","",0)).content=e.md.normalizeLinkText(i),(s=e.push("link_close","a",-1)).markup="autolink",s.info="auto"),e.pos+=i.length+2,!0)):!!t.test(i)&&(o=e.md.normalizeLink("mailto:"+i),!!e.md.validateLink(o)&&(r||((s=e.push("link_open","a",1)).attrs=[["href",o]],s.markup="autolink",s.info="auto",(s=e.push("text","",0)).content=e.md.normalizeLinkText(i),(s=e.push("link_close","a",-1)).markup="autolink",s.info="auto"),e.pos+=i.length+2,!0))}},235289:function(e){"use strict";e.exports=function(e,t){var n,r,i,o,s,a,l,c,u=e.pos;
3if(96!==e.src.charCodeAt(u))return!1;for(n=u,u++,r=e.posMax;u<r&&96===e.src.charCodeAt(u);)u++;if(l=(i=e.src.slice(n,u)).length,e.backticksScanned&&(e.backticks[l]||0)<=n)return t||(e.pending+=i),e.pos+=l,!0;for(a=u;-1!==(s=e.src.indexOf("`",a));){for(a=s+1;a<r&&96===e.src.charCodeAt(a);)a++;if((c=a-s)===l)return t||((o=e.push("code_inline","code",0)).markup=i,o.content=e.src.slice(u,s).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=a,!0;e.backticks[c]=s}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=l,!0}},692656:function(e){"use strict";function t(e){var t,n,r,i,o,s,a,l,c={},u=e.length;if(u){var d=0,h=-2,f=[];for(t=0;t<u;t++)if(r=e[t],f.push(0),(e[d].marker!==r.marker||h!==r.token-1)&&(d=t),h=r.token,r.length=r.length||0,r.close){for(c.hasOwnProperty(r.marker)||(c[r.marker]=[-1,-1,-1,-1,-1,-1]),o=c[r.marker][3*!!r.open+r.length%3],s=n=d-f[d]-1;n>o;n-=f[n]+1)if((i=e[n]).marker===r.marker&&i.open&&i.end<0&&(a=!1,(i.close||r.open)&&(i.length+r.length)%3==0&&(i.length%3!=0||r.length%3!=0)&&(a=!0),!a)){l=n>0&&!e[n-1].open?f[n-1]+1:0,f[t]=t-n+l,f[n]=l,r.open=!1,i.end=t,i.close=!1,s=-1,h=-2;break}-1!==s&&(c[r.marker][3*!!r.open+(r.length||0)%3]=s)}}}e.exports=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(t(e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&t(r[n].delimiters)}},46206:function(e){"use strict";function t(e,t){var n,r,i,o,s,a;for(n=t.length-1;n>=0;n--)(95===(r=t[n]).marker||42===r.marker)&&-1!==r.end&&(i=t[r.end],a=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1,s=String.fromCharCode(r.marker),(o=e.tokens[r.token]).type=a?"strong_open":"em_open",o.tag=a?"strong":"em",o.nesting=1,o.markup=a?s+s:s,o.content="",(o=e.tokens[i.token]).type=a?"strong_close":"em_close",o.tag=a?"strong":"em",o.nesting=-1,o.markup=a?s+s:s,o.content="",a&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}e.exports.q=function(e,t){var n,r,i=e.pos,o=e.src.charCodeAt(i);if(t||95!==o&&42!==o)return!1;for(r=e.scanDelims(e.pos,42===o),n=0;n<r.length;n++)e.push("text","",0).content=String.fromCharCode(o),e.delimiters.push({marker:o,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.g=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(t(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&t(e,r[n].delimiters)}},838443:function(e,t,n){"use strict";var r=n(814075),i=n(876295).has,o=n(876295).isValidEntityCode,s=n(876295).fromCodePoint,a=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,l=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(e,t){var n,c,u,d=e.pos,h=e.posMax;if(38!==e.src.charCodeAt(d)||d+1>=h)return!1;if(35===e.src.charCodeAt(d+1)){if(c=e.src.slice(d).match(a))return t||(n="x"===c[1][0].toLowerCase()?parseInt(c[1].slice(1),16):parseInt(c[1],10),(u=e.push("text_special","",0)).content=o(n)?s(n):s(65533),u.markup=c[0],u.info="entity"),e.pos+=c[0].length,!0}else if((c=e.src.slice(d).match(l))&&i(r,c[1]))return t||((u=e.push("text_special","",0)).content=r[c[1]],u.markup=c[0],u.info="entity"),e.pos+=c[0].length,!0;return!1}},16179:function(e,t,n){"use strict";for(var r=n(876295).isSpace,i=[],o=0;o<256;o++)i.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){i[e.charCodeAt(0)]=1}),e.exports=function(e,t){var n,o,s,a,l,c=e.pos,u=e.posMax;if(92!==e.src.charCodeAt(c)||++c>=u)return!1;if(10===(n=e.src.charCodeAt(c))){for(t||e.push("hardbreak","br",0),c++;c<u&&r(n=e.src.charCodeAt(c));)c++;return e.pos=c,!0}return a=e.src[c],n>=55296&&n<=56319&&c+1<u&&(o=e.src.charCodeAt(c+1))>=56320&&o<=57343&&(a+=e.src[c+1],c++),s="\\"+a,t||(l=e.push("text_special","",0),n<256&&0!==i[n]?l.content=a:l.content=s,l.markup=s,l.info="escape"),e.pos=c+1,!0}},542810:function(e){"use strict";e.exports=function(e){var t,n,r=0,i=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,"text"===i[t].type&&t+1<o&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}},319581:function(e,t,n){"use strict";var r=n(857881).l;e.exports=function(e,t){var n,i,o,s,a,l,c,u=e.pos;
3return!!e.md.options.html&&(l=e.posMax,60===e.src.charCodeAt(u)&&!(u+2>=l))&&(33===(s=e.src.charCodeAt(u+1))||63===s||47===s||!!((n=32|s)>=97&&n<=122))&&!!(a=e.src.slice(u).match(r))&&(!t&&((c=e.push("html_inline","",0)).content=a[0],i=c.content,/^<a[>\s]/i.test(i)&&e.linkLevel++,o=c.content,/^<\/a\s*>/i.test(o)&&e.linkLevel--),e.pos+=a[0].length,!0)}},244607:function(e,t,n){"use strict";var r=n(876295).normalizeReference,i=n(876295).isSpace;e.exports=function(e,t){var n,o,s,a,l,c,u,d,h,f,p,m,g,y="",v=e.pos,b=e.posMax;if(33!==e.src.charCodeAt(e.pos)||91!==e.src.charCodeAt(e.pos+1)||(c=e.pos+2,(l=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0))return!1;if((u=l+1)<b&&40===e.src.charCodeAt(u)){for(u++;u<b&&(i(o=e.src.charCodeAt(u))||10===o);u++);if(u>=b)return!1;for(g=u,(h=e.md.helpers.parseLinkDestination(e.src,u,e.posMax)).ok&&(y=e.md.normalizeLink(h.str),e.md.validateLink(y)?u=h.pos:y=""),g=u;u<b&&(i(o=e.src.charCodeAt(u))||10===o);u++);if(h=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<b&&g!==u&&h.ok)for(f=h.str,u=h.pos;u<b&&(i(o=e.src.charCodeAt(u))||10===o);u++);else f="";if(u>=b||41!==e.src.charCodeAt(u))return e.pos=v,!1;u++}else{if(void 0===e.env.references)return!1;if(u<b&&91===e.src.charCodeAt(u)?(g=u+1,(u=e.md.helpers.parseLinkLabel(e,u))>=0?a=e.src.slice(g,u++):u=l+1):u=l+1,a||(a=e.src.slice(c,l)),!(d=e.env.references[r(a)]))return e.pos=v,!1;y=d.href,f=d.title}return!t&&(s=e.src.slice(c,l),e.md.inline.parse(s,e.md,e.env,m=[]),(p=e.push("image","img",0)).attrs=n=[["src",y],["alt",""]],p.children=m,p.content=s,f&&n.push(["title",f])),e.pos=u,e.posMax=b,!0}},876428:function(e,t,n){"use strict";var r=n(876295).normalizeReference,i=n(876295).isSpace;e.exports=function(e,t){var n,o,s,a,l,c,u,d,h="",f="",p=e.pos,m=e.posMax,g=e.pos,y=!0;if(91!==e.src.charCodeAt(e.pos)||(l=e.pos+1,(a=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0))return!1;if((c=a+1)<m&&40===e.src.charCodeAt(c)){for(y=!1,c++;c<m&&(i(o=e.src.charCodeAt(c))||10===o);c++);if(c>=m)return!1;if(g=c,(u=e.md.helpers.parseLinkDestination(e.src,c,e.posMax)).ok){for(h=e.md.normalizeLink(u.str),e.md.validateLink(h)?c=u.pos:h="",g=c;c<m&&(i(o=e.src.charCodeAt(c))||10===o);c++);if(u=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<m&&g!==c&&u.ok)for(f=u.str,c=u.pos;c<m&&(i(o=e.src.charCodeAt(c))||10===o);c++);}(c>=m||41!==e.src.charCodeAt(c))&&(y=!0),c++}if(y){if(void 0===e.env.references)return!1;if(c<m&&91===e.src.charCodeAt(c)?(g=c+1,(c=e.md.helpers.parseLinkLabel(e,c))>=0?s=e.src.slice(g,c++):c=a+1):c=a+1,s||(s=e.src.slice(l,a)),!(d=e.env.references[r(s)]))return e.pos=p,!1;h=d.href,f=d.title}return t||(e.pos=l,e.posMax=a,e.push("link_open","a",1).attrs=n=[["href",h]],f&&n.push(["title",f]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)),e.pos=c,e.posMax=m,!0}},79900:function(e){"use strict";var t=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;e.exports=function(e,n){var r,i,o,s,a,l,c;return!!e.md.options.linkify&&!(e.linkLevel>0)&&!((r=e.pos)+3>e.posMax)&&58===e.src.charCodeAt(r)&&47===e.src.charCodeAt(r+1)&&47===e.src.charCodeAt(r+2)&&!!(i=e.pending.match(t))&&(o=i[1],!!(s=e.md.linkify.matchAtStart(e.src.slice(r-o.length)))&&!((a=s.url).length<=o.length)&&(a=a.replace(/\*+$/,""),l=e.md.normalizeLink(a),!!e.md.validateLink(l)&&(n||(e.pending=e.pending.slice(0,-o.length),(c=e.push("link_open","a",1)).attrs=[["href",l]],c.markup="linkify",c.info="auto",(c=e.push("text","",0)).content=e.md.normalizeLinkText(a),(c=e.push("link_close","a",-1)).markup="linkify",c.info="auto"),e.pos+=a.length-o.length,!0)))}},787378:function(e,t,n){"use strict";var r=n(876295).isSpace;e.exports=function(e,t){var n,i,o,s=e.pos;if(10!==e.src.charCodeAt(s))return!1;if(n=e.pending.length-1,i=e.posMax,!t)if(n>=0&&32===e.pending.charCodeAt(n))if(n>=1&&32===e.pending.charCodeAt(n-1)){for(o=n-1;o>=1&&32===e.pending.charCodeAt(o-1);)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(s++;s<i&&r(e.src.charCodeAt(s));)s++;return e.pos=s,!0}},423700:function(e,t,n){"use strict";var r=n(496551),i=n(876295).isWhiteSpace,o=n(876295).isPunctChar,s=n(876295).isMdAsciiPunct;function a(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}a.prototype.pushPending=function(){var e=new r("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},a.prototype.push=function(e,t,n){this.pending&&this.pushPending();var i=new r(e,t,n),o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(o),i},a.prototype.scanDelims=function(e,t){var n,r,a,l,c,u,d,h,f,p=e,m=!0,g=!0,y=this.posMax,v=this.src.charCo
3deAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;p<y&&this.src.charCodeAt(p)===v;)p++;return a=p-e,r=p<y?this.src.charCodeAt(p):32,d=s(n)||o(String.fromCharCode(n)),f=s(r)||o(String.fromCharCode(r)),u=i(n),(h=i(r))?m=!1:f&&!(u||d)&&(m=!1),u?g=!1:d&&!(h||f)&&(g=!1),t?(l=m,c=g):(l=m&&(!g||d),c=g&&(!m||f)),{can_open:l,can_close:c,length:a}},a.prototype.Token=r,e.exports=a},864545:function(e){"use strict";function t(e,t){var n,r,i,o,s,a=[],l=t.length;for(n=0;n<l;n++)126===(i=t[n]).marker&&-1!==i.end&&(o=t[i.end],(s=e.tokens[i.token]).type="s_open",s.tag="s",s.nesting=1,s.markup="~~",s.content="",(s=e.tokens[o.token]).type="s_close",s.tag="s",s.nesting=-1,s.markup="~~",s.content="","text"===e.tokens[o.token-1].type&&"~"===e.tokens[o.token-1].content&&a.push(o.token-1));for(;a.length;){for(r=(n=a.pop())+1;r<e.tokens.length&&"s_close"===e.tokens[r].type;)r++;n!==--r&&(s=e.tokens[r],e.tokens[r]=e.tokens[n],e.tokens[n]=s)}}e.exports.q=function(e,t){var n,r,i,o,s=e.pos,a=e.src.charCodeAt(s);if(t||126!==a||(i=(r=e.scanDelims(e.pos,!0)).length,o=String.fromCharCode(a),i<2))return!1;for(i%2&&(e.push("text","",0).content=o,i--),n=0;n<i;n+=2)e.push("text","",0).content=o+o,e.delimiters.push({marker:a,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.g=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(t(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&t(e,r[n].delimiters)}},858859:function(e){"use strict";e.exports=function(e,t){for(var n=e.pos;n<e.posMax&&!function(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}},496551:function(e){"use strict";function t(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}t.prototype.attrIndex=function(e){var t,n,r;if(!this.attrs)return -1;for(n=0,r=(t=this.attrs).length;n<r;n++)if(t[n][0]===e)return n;return -1},t.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},t.prototype.attrSet=function(e,t){var n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},t.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},t.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},e.exports=t},323339:function(e){"use strict";var t={};function n(e,r){var i;return"string"!=typeof r&&(r=n.defaultChars),i=function(e){var n,r,i=t[e];if(i)return i;for(i=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),i.push(r);for(n=0;n<e.length;n++)i[r=e.charCodeAt(n)]="%"+("0"+r.toString(16).toUpperCase()).slice(-2);return i}(r),e.replace(/(%[a-f0-9]{2})+/gi,function(e){var t,n,r,o,s,a,l,c="";for(t=0,n=e.length;t<n;t+=3){if((r=parseInt(e.slice(t+1,t+3),16))<128){c+=i[r];continue}if((224&r)==192&&t+3<n&&(192&(o=parseInt(e.slice(t+4,t+6),16)))==128){(l=r<<6&1984|63&o)<128?c+="��":c+=String.fromCharCode(l),t+=3;continue}if((240&r)==224&&t+6<n&&(o=parseInt(e.slice(t+4,t+6),16),s=parseInt(e.slice(t+7,t+9),16),(192&o)==128&&(192&s)==128)){(l=r<<12&61440|o<<6&4032|63&s)<2048||l>=55296&&l<=57343?c+="���":c+=String.fromCharCode(l),t+=6;continue}if((248&r)==240&&t+9<n&&(o=parseInt(e.slice(t+4,t+6),16),s=parseInt(e.slice(t+7,t+9),16),a=parseInt(e.slice(t+10,t+12),16),(192&o)==128&&(192&s)==128&&(192&a)==128)){(l=r<<18&1835008|o<<12&258048|s<<6&4032|63&a)<65536||l>1114111?c+="����":(l-=65536,c+=String.fromCharCode(55296+(l>>10),56320+(1023&l))),t+=9;continue}c+="�"}return c})}n.defaultChars=";/?:@&=+$,#",n.componentChars="",e.exports=n},594967:function(e){"use strict";var t={};function n(e,r,i){var o,s,a,l,c,u="";for("string"!=typeof r&&(i=r,r=n.defaultChars),void 0===i&&(i=!0),c=function(e){var n,r,i=t[e];if(i)return i;for(i=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),/^[0-9a-z]$/i.test(r)?i.push(r):i.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2));for(n=0;n<e.length;n++)i[e.charCodeAt(n)]=e[n];return i}(r),o=0,s=e.length;o<s;o++){if(a=e.charCodeAt(o),i&&37===a&&o+2<s&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3))){u+=e.slice(o,o+3),o+=2;continue}if(a<128){u+=c[a];continue}if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&o+1<s&&(l=e.charCodeAt(o+1))>=56320&&l<=57343){u+=encodeURIComponent(e[o]+e[o+1]),o++;continue}u+="%EF%BF%BD";continue}u+=encodeURIComponent(e[o])}return u}n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()",e.exports=n},839714:function(e){"use strict";e.exports=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}},953945:function(e,t,n){"use strict";e.exports.encode=n(594967),e.exports.decode=n(323339),e.exports.format=n(839714),e.exports.parse=n(431166)},431166:function(e){"use strict";function t(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}
3var n=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,o=["%","/","?",";","#"].concat(["'"].concat(["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","	"]))),s=["/","?","#"],a=/^[+a-z0-9A-Z_-]{0,63}$/,l=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,c={javascript:!0,"javascript:":!0},u={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};t.prototype.parse=function(e,t){var r,d,h,f,p,m=e;if(m=m.trim(),!t&&1===e.split("#").length){var g=i.exec(m);if(g)return this.pathname=g[1],g[2]&&(this.search=g[2]),this}var y=n.exec(m);if(y&&(h=(y=y[0]).toLowerCase(),this.protocol=y,m=m.substr(y.length)),(t||y||m.match(/^\/\/[^@\/]+@[^@\/]+/))&&(p="//"===m.substr(0,2))&&!(y&&c[y])&&(m=m.substr(2),this.slashes=!0),!c[y]&&(p||y&&!u[y])){var v,b,_=-1;for(r=0;r<s.length;r++)-1!==(f=m.indexOf(s[r]))&&(-1===_||f<_)&&(_=f);for(-1!==(b=-1===_?m.lastIndexOf("@"):m.lastIndexOf("@",_))&&(v=m.slice(0,b),m=m.slice(b+1),this.auth=v),_=-1,r=0;r<o.length;r++)-1!==(f=m.indexOf(o[r]))&&(-1===_||f<_)&&(_=f);-1===_&&(_=m.length),":"===m[_-1]&&_--;var w=m.slice(0,_);m=m.slice(_),this.parseHost(w),this.hostname=this.hostname||"";var x="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!x){var k=this.hostname.split(/\./);for(r=0,d=k.length;r<d;r++){var C=k[r];if(C&&!C.match(a)){for(var A="",D=0,S=C.length;D<S;D++)C.charCodeAt(D)>127?A+="x":A+=C[D];if(!A.match(a)){var E=k.slice(0,r),T=k.slice(r+1),O=C.match(l);O&&(E.push(O[1]),T.unshift(O[2])),T.length&&(m=T.join(".")+m),this.hostname=E.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),x&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var M=m.indexOf("#");-1!==M&&(this.hash=m.substr(M),m=m.slice(0,M));var N=m.indexOf("?");return -1!==N&&(this.search=m.substr(N),m=m.slice(0,N)),m&&(this.pathname=m),u[h]&&this.hostname&&!this.pathname&&(this.pathname=""),this},t.prototype.parseHost=function(e){var t=r.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},e.exports=function(e,n){if(e&&e instanceof t)return e;var r=new t;return r.parse(e,n),r}},612876:function(e){e.exports=/[\0-\x1F\x7F-\x9F]/},918615:function(e){e.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/},7664:function(e){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},244702:function(e){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},890771:function(e,t,n){"use strict";t.Any=n(54591),t.Cc=n(612876),t.Cf=n(918615),t.P=n(7664),t.Z=n(244702)},54591:function(e){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},886125:function(e,t,n){e=n.nmd(e),function(r){var i=e&&e.exports==t&&e,o="object"==typeof n.g&&n.g;(o.global===o||o.window===o)&&(r=o);var s=function(e){this.message=e};s.prototype=Error(),s.prototype.name="InvalidCharacterError";var a=function(e){throw new s(e)},l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
3+/",c=/[\t\n\f\r ]/g,u={encode:function(e){e=String(e),/[^\0-\xFF]/.test(e)&&a("The string to be encoded contains characters outside of the Latin1 range.");for(var t,n,r,i=e.length%3,o="",s=-1,c=e.length-i;++s<c;)t=e.charCodeAt(s)<<16,r=t+(n=e.charCodeAt(++s)<<8)+e.charCodeAt(++s),o+=l.charAt(r>>18&63)+l.charAt(r>>12&63)+l.charAt(r>>6&63)+l.charAt(63&r);return 2==i?(r=(t=e.charCodeAt(s)<<8)+(n=e.charCodeAt(++s)),o+=l.charAt(r>>10)+l.charAt(r>>4&63)+l.charAt(r<<2&63)+"="):1==i&&(r=e.charCodeAt(s),o+=l.charAt(r>>2)+l.charAt(r<<4&63)+"=="),o},decode:function(e){var t,n,r=(e=String(e).replace(c,"")).length;r%4==0&&(r=(e=e.replace(/==?$/,"")).length),(r%4==1||/[^+a-zA-Z0-9/]/.test(e))&&a("Invalid character: the string to be decoded is not correctly encoded.");for(var i=0,o="",s=-1;++s<r;)n=l.indexOf(e.charAt(s)),t=i%4?64*t+n:n,i++%4&&(o+=String.fromCharCode(255&t>>(-2*i&6)));return o},version:"1.0.0"};if("function"==typeof define&&"object"==typeof define.amd&&define.amd)define(function(){return u});else if(t&&!t.nodeType)if(i)i.exports=u;else for(var d in u)u.hasOwnProperty(d)&&(t[d]=u[d]);else r.base64=u}(this)},503290:function(e){"use strict";function t(e){return e.replace(/[_.-](\w|$)/g,function(e,t){return t.toUpperCase()})}e.exports=function(e){return"string"==typeof e?t(e):function e(o){return!o||"object"!=typeof o||r(o)||i(o)?o:n(o)?function(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}(o,e):function(e,t,n){if(e.reduce)return e.reduce(t,n);for(var r=0;r<e.length;r++)n=t(n,e[r],r);return n}(s(o),function(n,r){return n[t(r)]=e(o[r]),n},{})}(e)};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},r=function(e){return"[object Date]"===Object.prototype.toString.call(e)},i=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},o=Object.prototype.hasOwnProperty,s=Object.keys||function(e){var t=[];for(var n in e)o.call(e,n)&&t.push(n);return t}},997478:function(e,t,n){"use strict";e.exports=n(496287)},764573:function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var i,o=n(937377),s=r(o),a=r(n(503290)),l=r(n(997478)),c=/^(#(?:[0-9a-f]{3,4}){1,2})$/i,u=/^(rgba?|hsla?|hwb|lab|lch|gray|color)$/,d=function(e){return function(t){return e(t)?"<token>":null}},h=function(e,t){return void 0===t&&(t=String),function(n){if("word"!==n.type)return null;var r=n.value.match(e);return null===r?null:t(r[1])}},f=d(function(e){return"space"===e.type}),p=d(function(e){return"div"===e.type&&"/"===e.value}),m=d(function(e){return"div"===e.type&&","===e.value}),g=function(e){return"word"===e.type?e.value:null},y=h(/^(none)$/i),v=h(/^(auto)$/i),b=h(/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)$/i,Number),_=h(/^(0$|(?:[+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?=px$))/i,Number),w=h(/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(ch|em|ex|rem|vh|vw|vmin|vmax|cm|mm|in|pc|pt))$/i),x=h(/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(?:deg|rad))$/i,function(e){return e.toLowerCase()}),k=h(/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?%)$/i),C=h(/(^-?[_a-z][_a-z0-9-]*$)/i),A=function(e){return"string"!==e.type?null:e.value.replace(/\\([0-9a-f]{1,6})(?:\s|$)/gi,function(e,t){return String.fromCharCode(parseInt(t,16))}).replace(/\\/g,"")},D=function(e){return"word"===e.type&&(c.test(e.value)||e.value in l||"transparent"===e.value)?e.value:"function"===e.type&&u.test(e.value)?o.stringify(e):null},S=h(/^(none|underline|line-through)$/i),E=h(/^(solid|dashed|dotted)$/),T=function(e){var t=e.types,n=void 0===t?[_,w,k]:t,r=e.directions,i=void 0===r?["Top","Right","Bottom","Left"]:r,o=e.prefix,s=void 0===o?"":o,a=e.suffix,l=void 0===a?"":a;return function(e){var t,r=[];for(r.push(e.expect.apply(e,n));r.length<4&&e.hasTokens();)e.expect(f),r.push(e.expect.apply(e,n));e.expectEmpty();var o=r[0],a=r[1],c=void 0===a?o:a,u=r[2],d=r[3],h=void 0===d?c:d,p=function(e){return""+s+i[e]+l};return(t={})[p(0)]=o,t[p(1)]=c,t[p(2)]=void 0===u?o:u,t[p(3)]=h,t}},O=function(e){var t=e.expect(_),n=e.matches(f)?e.expect(_):t;return e.expectEmpty(),{width:t,height:n}},M=function(e){if(e.matches(y))return e.expectEmpty(),{offset:{width:0,height:0},radius:0,color:"black"};for(var t,n,r,i,o=!1;e.hasTokens();)o&&e.expect(f),void 0===t&&e.matches(_,w)?(t=e.lastValue,e.expect(f),n=e.expect(_,w),e.saveRewindPoint(),e.matches(f)&&e.matches(_,w)?r=e.lastValue:e.rewind()):void 0===i&&e.matches(D)?i=e.lastValue:e.throw(),o=!0;return void 0===t&&e.throw(),{offset:{width:t,height:n},radius:void 0!==r?r:0,color:void 0!==i?i:"black"}},N=h(/(nowrap|wrap|wrap-reverse)/),P=h(/(row|row-reverse|column|column-reverse)/),R=function(e){var t;if(e.matches(A))t=e.lastValue;else for(t=e.expect(C);e.hasTokens();)e.expect(f),t+=" "+e.expect(C);return e.expectEmpty(),{fontFamily:t}},I=h(/^(normal)$/),F=h(/^(italic)$/),L=h(/^([1-9]00|bold)$/),j=h(/^(small-caps)$/),z=[],$=h(/(flex-(?:start|end)|center|stretch|space-(?:between|around))/),B=h(/(flex-(?:start|end)|center|space-(?:between|around|evenly))/),V=h(/^(solid|double|dotted|dashed)$/),Y=function(e){return function(t){var n=t.expect(e);return t.expectEmpty(),n}},q=Y(b),H=Y(_),W=Y(x),U=function(e){return function(t,n){return function(r){var i,o,s,a=r.expect(e);
3if(r.hasTokens())r.expect(m),s=r.expect(e);else{if(void 0===n)return a;s=n}return r.expectEmpty(),[((i={})[t+"Y"]=s,i),((o={})[t+"X"]=a,o)]}}},G=U(b),Z=U(_),J=U(x),K={perspective:q,scale:G("scale"),scaleX:q,scaleY:q,translate:Z("translate",0),translateX:H,translateY:H,rotate:W,rotateX:W,rotateY:W,rotateZ:W,skewX:W,skewY:W,skew:J("skew","0deg")},X={aspectRatio:function(e){var t=e.expect(b);return e.hasTokens()&&(e.expect(p),t/=e.expect(b)),{aspectRatio:t}},background:function(e){return{backgroundColor:e.expect(D)}},border:function(e){if(e.matches(y))return e.expectEmpty(),{borderWidth:0,borderColor:"black",borderStyle:"solid"};for(var t,n,r,i=0;i<3&&e.hasTokens();)0!==i&&e.expect(f),void 0===t&&e.matches(_,w)?t=e.lastValue:void 0===n&&e.matches(D)?n=e.lastValue:void 0===r&&e.matches(E)?r=e.lastValue:e.throw(),i+=1;return e.expectEmpty(),void 0===t&&(t=1),void 0===n&&(n="black"),void 0===r&&(r="solid"),{borderWidth:t,borderColor:n,borderStyle:r}},borderColor:T({types:[D],prefix:"border",suffix:"Color"}),borderRadius:T({directions:["TopLeft","TopRight","BottomRight","BottomLeft"],prefix:"border",suffix:"Radius"}),borderWidth:T({prefix:"border",suffix:"Width"}),boxShadow:function(e){var t=M(e);return{shadowOffset:t.offset,shadowRadius:t.radius,shadowColor:t.color,shadowOpacity:1}},flex:function(e){if(e.matches(y))return e.expectEmpty(),{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(e.saveRewindPoint(),e.matches(v)&&!e.hasTokens())return{flexGrow:1,flexShrink:1,flexBasis:"auto"};e.rewind();for(var t,n,r,i=0;i<2&&e.hasTokens();)0!==i&&e.expect(f),void 0===t&&e.matches(b)?(t=e.lastValue,e.saveRewindPoint(),e.matches(f)&&e.matches(b)?n=e.lastValue:e.rewind()):void 0===r&&e.matches(_,w,k)?r=e.lastValue:void 0===r&&e.matches(v)?r="auto":e.throw(),i+=1;return e.expectEmpty(),void 0===t&&(t=1),void 0===n&&(n=1),void 0===r&&(r=0),{flexGrow:t,flexShrink:n,flexBasis:r}},flexFlow:function(e){for(var t,n,r=0;r<2&&e.hasTokens();)0!==r&&e.expect(f),void 0===t&&e.matches(N)?t=e.lastValue:void 0===n&&e.matches(P)?n=e.lastValue:e.throw(),r+=1;return e.expectEmpty(),void 0===t&&(t="nowrap"),void 0===n&&(n="row"),{flexWrap:t,flexDirection:n}},font:function(e){for(var t,n,r,i,o=0;o<3&&e.hasTokens();){if(e.matches(I));else if(void 0===t&&e.matches(F))t=e.lastValue;else if(void 0===n&&e.matches(L))n=e.lastValue;else if(void 0===r&&e.matches(j))r=[e.lastValue];else break;e.expect(f),o+=1}var s=e.expect(_,w);e.matches(p)&&(i=e.expect(_,w)),e.expect(f);var a=R(e).fontFamily;void 0===t&&(t="normal"),void 0===n&&(n="normal"),void 0===r&&(r=z);var l={fontStyle:t,fontWeight:n,fontVariant:r,fontSize:s,fontFamily:a};return void 0!==i&&(l.lineHeight=i),l},fontFamily:R,fontVariant:function(e){for(var t=[e.expect(C)];e.hasTokens();)e.expect(f),t.push(e.expect(C));return{fontVariant:t}},fontWeight:function(e){return{fontWeight:e.expect(g)}},margin:T({types:[_,w,k,v],prefix:"margin"}),padding:T({prefix:"padding"}),placeContent:function(e){var t,n=e.expect($);return e.hasTokens()?(e.expect(f),t=e.expect(B)):t="stretch",e.expectEmpty(),{alignContent:n,justifyContent:t}},shadowOffset:function(e){return{shadowOffset:O(e)}},textShadow:function(e){var t=M(e);return{textShadowOffset:t.offset,textShadowRadius:t.radius,textShadowColor:t.color}},textShadowOffset:function(e){return{textShadowOffset:O(e)}},textDecoration:function(e){for(var t,n,r,i=!1;e.hasTokens();){if(i&&e.expect(f),void 0===t&&e.matches(S)){var o=[e.lastValue.toLowerCase()];e.saveRewindPoint(),"none"!==o[0]&&e.matches(f)&&e.matches(S)?(o.push(e.lastValue.toLowerCase()),o.sort().reverse()):e.rewind(),t=o.join(" ")}else void 0===n&&e.matches(V)?n=e.lastValue:void 0===r&&e.matches(D)?r=e.lastValue:e.throw();i=!0}return{textDecorationLine:void 0!==t?t:"none",textDecorationColor:void 0!==r?r:"black",textDecorationStyle:void 0!==n?n:"solid"}},textDecorationLine:function(e){for(var t=[],n=!1;e.hasTokens();)n&&e.expect(f),t.push(e.expect(S).toLowerCase()),n=!0;return t.sort().reverse(),{textDecorationLine:t.join(" ")}},transform:function(e){for(var t=[],n=!1;e.hasTokens();){n&&e.expect(f);var r,i=e.expectFunction(),o=i.functionName,s=K[o](i);Array.isArray(s)||(s=[((r={})[o]=s,r)]),t=s.concat(t),n=!0}return{transform:t}}};null!=i&&new RegExp(i.join("|"));var Q="SYMBOL_MATCH",ee=function(){function e(e,t){this.index=0,this.nodes=e,this.functionName=null!=t?t.value:null,this.lastValue=null,this.rewindIndex=-1}var t=e.prototype;return t.hasTokens=function(){return this.index<=this.nodes.length-1},t[Q]=function(){if(!this.hasTokens())return null;for(var e=this.nodes[this.index],t=0;t<arguments.length;t+=1){var n=t<0||arguments.length<=t?void 0:arguments[t],r=n(e);if(null!==r)return this.index+=1,this.lastValue=r,r}return null},t.matches=function(){return null!==this[Q].apply(this,arguments)},t.expect=function(){var e=this[Q].apply(this,arguments);return null!==e?e:this.throw()},t.matchesFunction=function(){var t=this.nodes[this.index];if("function"!==t.type)return null;var n=new e(t.nodes,t);return this.index+=1,this.lastValue=null,n},t.expectFunction=function(){var e=this.matchesFunction();return null!==e?e:this.throw()},t.expectEmpty=function(){this.hasTokens()&&this.throw()},t.throw=function(){throw Error("Unexpected token type: "+this.nodes[this.index].type)},t.saveRewindPoint=function(){this.rewindIndex=this.index},t.rewind=function(){if(-1===this.rewindIndex)throw Error("Internal error");this.index=this.rewindIndex,this.lastValue=null},e}(),et=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?:px)?$/i,en=/^true|false$/i,er
3=/^null$/i,ei=/^undefined$/i,eo=function(e,t){var n=t.match(et);if(null!==n)return Number(n[1]);var r=t.match(en);return null!==r?"true"===r[0].toLowerCase():null!==t.match(er)?null:null===t.match(ei)?t:void 0},es=function(e,t){var n=new ee(s(t).nodes);return X[e](n)},ea=function(e,t,n){var r,i=!1===n||!(e in X),o=t.trim();return i?((r={})[e]=eo(e,o),r):es(e,o)};t.Ay=function(e,t){return void 0===t&&(t=[]),e.reduce(function(e,n){var r,i=(r=n[0],/^--\w+/.test(r)?r:a(r)),o=n[1],s=-1===t.indexOf(i);return Object.assign(e,ea(i,o,s))},{})}},123464:function(e){e.exports=function(){"use strict";var e="millisecond",t="second",n="minute",r="hour",i="week",o="month",s="quarter",a="year",l="date",c="Invalid Date",u=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},f="en",p={};p[f]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}};var m="$isDayjsObject",g=function(e){return e instanceof _||!(!e||!e[m])},y=function e(t,n,r){var i;if(!t)return f;if("string"==typeof t){var o=t.toLowerCase();p[o]&&(i=o),n&&(p[o]=n,i=o);var s=t.split("-");if(!i&&s.length>1)return e(s[0])}else{var a=t.name;p[a]=t,i=a}return!r&&i&&(f=i),i||!r&&f},v=function(e,t){if(g(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new _(n)},b={s:h,z:function(e){var t=-e.utcOffset(),n=Math.abs(t);return(t<=0?"+":"-")+h(Math.floor(n/60),2,"0")+":"+h(n%60,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,o),s=n-i<0,a=t.clone().add(r+(s?-1:1),o);return+(-(r+(n-i)/(s?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(c){return({M:o,y:a,w:i,d:"day",D:l,h:r,m:n,s:t,ms:e,Q:s})[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};b.l=y,b.i=g,b.w=function(e,t){return v(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var _=function(){function h(e){this.$L=y(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[m]=!0}var f=h.prototype;return f.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(0/0);if(b.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(u);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},f.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},f.$utils=function(){return b},f.isValid=function(){return this.$d.toString()!==c},f.isSame=function(e,t){var n=v(e);return this.startOf(t)<=n&&n<=this.endOf(t)},f.isAfter=function(e,t){return v(e)<this.startOf(t)},f.isBefore=function(e,t){return this.endOf(t)<v(e)},f.$g=function(e,t,n){return b.u(e)?this[t]:this.set(n,e)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(e,s){var c=this,u=!!b.u(s)||s,d=b.p(e),h=function(e,t){var n=b.w(c.$u?Date.UTC(c.$y,t,e):new Date(c.$y,t,e),c);return u?n:n.endOf("day")},f=function(e,t){return b.w(c.toDate()[e].apply(c.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),c)},p=this.$W,m=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(d){case a:return u?h(1,0):h(31,11);case o:return u?h(1,m):h(0,m+1);case i:var v=this.$locale().weekStart||0,_=(p<v?p+7:p)-v;return h(u?g-_:g+(6-_),m);case"day":case l:return f(y+"Hours",0);case r:return f(y+"Minutes",1);case n:return f(y+"Seconds",2);case t:return f(y+"Milliseconds",3);default:return this.clone()}},f.endOf=function(e){return this.startOf(e,!1)},f.$set=function(i,s){var c,u=b.p(i),d="set"+(this.$u?"UTC":""),h=((c={}).day=d+"Date",c[l]=d+"Date",c[o]=d+"Month",c[a]=d+"FullYear",c[r]=d+"Hours",c[n]=d+"Minutes",c[t]=d+"Seconds",c[e]=d+"Milliseconds",c)[u],f="day"===u?this.$D+(s-this.$W):s;if(u===o||u===a){var p=this.clone().set(l,1);p.$d[h](f),p.init(),this.$d=p.set(l,Math.min(this.$D,p.daysInMonth())).$d}else h&&this.$d[h](f);return this.init(),this},f.set=function(e,t){return this.clone().$set(e,t)},f.get=function(e){return this[b.p(e)]()},f.add=function(e,s){var l,c=this;e=Number(e);var u=b.p(s),d=function(t){var n=v(c);return b.w(n.date(n.date()+Math.round(t*e)),c)};if(u===o)return this.set(o,this.$M+e);if(u===a)return this.set(a,this.$y+e);if("day"===u)return d(1);if(u===i)return d(7);var h=((l={})[n]=6e4,l[r]=36e5,l[t]=1e3,l)[u]||1,f=this.$d.getTime()+e*h;return b.w(f,this)},f.subtract=function(e,t){return this.add(-1*e,t)},f.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||c;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=b.z(this),o=this.$H,s=this.$m,a=this.$M,l=n.weekdays,u=n.months,h=n.meridiem,f=function(e,n,i,o){return e&&(e[
3n]||e(t,r))||i[n].slice(0,o)},p=function(e){return b.s(o%12||12,e,"0")},m=h||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(d,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return b.s(t.$y,4,"0");case"M":return a+1;case"MM":return b.s(a+1,2,"0");case"MMM":return f(n.monthsShort,a,u,3);case"MMMM":return f(u,a);case"D":return t.$D;case"DD":return b.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return f(n.weekdaysMin,t.$W,l,2);case"ddd":return f(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(o);case"HH":return b.s(o,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return m(o,s,!0);case"A":return m(o,s,!1);case"m":return String(s);case"mm":return b.s(s,2,"0");case"s":return String(t.$s);case"ss":return b.s(t.$s,2,"0");case"SSS":return b.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},f.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},f.diff=function(e,l,c){var u,d=this,h=b.p(l),f=v(e),p=(f.utcOffset()-this.utcOffset())*6e4,m=this-f,g=function(){return b.m(d,f)};switch(h){case a:u=g()/12;break;case o:u=g();break;case s:u=g()/3;break;case i:u=(m-p)/6048e5;break;case"day":u=(m-p)/864e5;break;case r:u=m/36e5;break;case n:u=m/6e4;break;case t:u=m/1e3;break;default:u=m}return c?u:b.a(u)},f.daysInMonth=function(){return this.endOf(o).$D},f.$locale=function(){return p[this.$L]},f.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=y(e,t,!0);return r&&(n.$L=r),n},f.clone=function(){return b.w(this.$d,this)},f.toDate=function(){return new Date(this.valueOf())},f.toJSON=function(){return this.isValid()?this.toISOString():null},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},h}(),w=_.prototype;return v.prototype=w,[["$ms",e],["$s",t],["$m",n],["$H",r],["$W","day"],["$M",o],["$y",a],["$D",l]].forEach(function(e){w[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),v.extend=function(e,t){return e.$i||(e(t,_,v),e.$i=!0),v},v.locale=y,v.isDayjs=g,v.unix=function(e){return v(1e3*e)},v.en=p[f],v.Ls=p,v.p={},v}()},58390:function(e){e.exports=function(e,t,n){var r=function(e){return e.add(4-e.isoWeekday(),"day")},i=t.prototype;i.isoWeekYear=function(){return r(this).year()},i.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),"day");var t,i,o,s=r(this),a=(t=this.isoWeekYear(),o=4-(i=(this.$u?n.utc:n)().year(t).startOf("year")).isoWeekday(),i.isoWeekday()>4&&(o+=7),i.add(o,"day"));return s.diff(a,"week")+1},i.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var o=i.startOf;i.startOf=function(e,t){var n=this.$utils(),r=!!n.u(t)||t;return"isoweek"===n.p(e)?r?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):o.bind(this)(e,t)}}},126168:function(e){e.exports=function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(n,r,i){var o,s=function(e,n,r){void 0===r&&(r={});var i,o,s,a,l=new Date(e);return(void 0===(i=r)&&(i={}),(a=t[s=n+"|"+(o=i.timeZoneName||"short")])||(a=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:o}),t[s]=a),a).formatToParts(l)},a=function(t,n){for(var r=s(t,n),o=[],a=0;a<r.length;a+=1){var l=r[a],c=l.type,u=l.value,d=e[c];d>=0&&(o[d]=parseInt(u,10))}var h=o[3],f=o[0]+"-"+o[1]+"-"+o[2]+" "+(24===h?0:h)+":"+o[4]+":"+o[5]+":000",p=+t;return(i.utc(f).valueOf()-(p-=p%1e3))/6e4},l=r.prototype;l.tz=function(e,t){void 0===e&&(e=o);var n,r=this.utcOffset(),s=this.toDate(),a=s.toLocaleString("en-US",{timeZone:e}),l=Math.round((s-new Date(a))/1e3/60),c=-(15*Math.round(s.getTimezoneOffset()/15))-l;if(Number(c)){if(n=i(a,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(c,!0),t){var u=n.utcOffset();n=n.add(r-u,"minute")}}else n=this.utcOffset(0,t);return n.$x.$timezone=e,n},l.offsetName=function(e){var t=this.$x.$timezone||i.tz.guess(),n=s(this.valueOf(),t,{timeZoneName:e}).find(function(e){return"timezonename"===e.type.toLowerCase()});return n&&n.value};var c=l.startOf;l.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return c.call(this,e,t);var n=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return c.call(n,e,t).tz(this.$x.$timezone,!0)},i.tz=function(e,t,n){var r=n&&t,s=n||t||o,l=a(+i(),s);if("string"!=typeof e)return i(e).tz(s);var c=function(e,t,n){var r=e-60*t*1e3,i=a(r,n);if(t===i)return[r,t];var o=a(r-=60*(i-t)*1e3,n);return i===o?[r,i]:[e-60*Math.min(i,o)*1e3,Math.max(i,o)]}(i.utc(e,r).valueOf(),l,s),u=c[0],d=c[1],h=i(u).utcOffset(d);return h.$x.$timezone=s,h},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(e){o=e}}}()},393384:function(e){e.exports=function(e,t,n){n.updateLocale=function(e,t){var r=n.Ls[e];
3if(r)return(t?Object.keys(t):[]).forEach(function(e){r[e]=t[e]}),r}}},357657:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,o){var s=i.prototype;o.utc=function(e){var t={date:e,utc:!0,args:arguments};return new i(t)},s.utc=function(t){var n=o(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},s.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var a=s.parse;s.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),a.call(this,e)};var l=s.init;s.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var c=s.utcOffset;s.utcOffset=function(r,i){var o=this.$utils().u;if(o(r))return this.$u?0:o(this.$offset)?c.call(this):this.$offset;if("string"==typeof r&&null===(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var i=(""+r[0]).match(n)||["-",0,0],o=i[0],s=60*i[1]+ +i[2];return 0===s?0:"+"===o?s:-s}(r)))return this;var s=16>=Math.abs(r)?60*r:r;if(0===s)return this.utc(i);var a=this.clone();if(i)return a.$offset=s,a.$u=!1,a;var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(a=this.local().add(s+l,e)).$offset=s,a.$x.$localOffset=l,a};var u=s.format;s.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},s.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var d=s.toDate;s.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var h=s.diff;s.diff=function(e,t,n){if(e&&this.$u===e.$u)return h.call(this,e,t,n);var r=this.local(),i=o(e).local();return h.call(r,i,t,n)}}}()},376570:function(e,t,n){"use strict";function r(e,t){if(e.classList)e.classList.add(t);else(e.classList?t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" "))||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}n.d(t,{A:function(){return r}})},717257:function(e,t,n){"use strict";var r=n(224133),i=!1,o=!1;try{var s={get passive(){return i=!0},get once(){return o=i=!0}};r.A&&(window.addEventListener("test",s,s),window.removeEventListener("test",s,!0))}catch(e){}t.Ay=function(e,t,n,r){if(r&&"boolean"!=typeof r&&!o){var s=r.once,a=r.capture,l=n;!o&&s&&(l=n.__once||function e(r){this.removeEventListener(t,e,a),n.call(this,r)},n.__once=l),e.addEventListener(t,l,i?r:a)}e.addEventListener(t,n,r)}},224133:function(e,t){"use strict";t.A=!!("u">typeof window&&window.document&&window.document.createElement)},71797:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var r=n(969840),i=/([A-Z])/g,o=/^ms-/;function s(e){return e.replace(i,"-$1").toLowerCase().replace(o,"-ms-")}var a=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i,l=function(e,t){var n,i="",o="";if("string"==typeof t)return e.style.getPropertyValue(s(t))||((n=(0,r.A)(e))&&n.defaultView||window).getComputedStyle(e,void 0).getPropertyValue(s(t));Object.keys(t).forEach(function(n){var r=t[n];r||0===r?n&&a.test(n)?o+=n+"("+r+") ":i+=s(n)+": "+r+";":e.style.removeProperty(s(n))}),o&&(i+="transform: "+o+";"),e.style.cssText+=";"+i}},877136:function(e,t,n){"use strict";var r=n(176921);function i(e){var t="pageXOffset"===e?"scrollLeft":"scrollTop";return function(n,i){var o=(0,r.A)(n);if(void 0===i)return o?o[e]:n[t];o?o.scrollTo(o[e],i):n[t]=i}}n.d(t,{A:function(){return i}})},176921:function(e,t,n){"use strict";function r(e){return"window"in e&&e.window===e?e:"nodeType"in e&&e.nodeType===document.DOCUMENT_NODE&&(e.defaultView||!1)}n.d(t,{A:function(){return r}})},103727:function(e,t,n){"use strict";var r;function i(e,t){if(!r){var n=document.body,i=n.matches||n.matchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector;r=function(e,t){return i.call(e,t)}}return r(e,t)}n.d(t,{A:function(){return i}})},471791:function(e,t,n){"use strict";var r=n(71797),i=n(969840);function o(e){for(var t,n=(0,i.A)(e),o=e&&e.offsetParent;(t=o)&&"offsetParent"in t&&"HTML"!==o.nodeName&&"static"===(0,r.A)(o,"position");)o=o.offsetParent;return o||n.documentElement}n.d(t,{A:function(){return o}})},969840:function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{A:function(){return r}})},743922:function(e,t,n){"use strict";
3function r(e,t){return e.replace(RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function i(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=r(e.className,t):e.setAttribute("class",r(e.className&&e.className.baseVal||"",t))}n.d(t,{A:function(){return i}})},881890:function(e,t){"use strict";t.A=function(e,t,n,r){var i=r&&"boolean"!=typeof r?r.capture:r;e.removeEventListener(t,n,i),n.__once&&e.removeEventListener(t,n.__once,i)}},104892:function(e,t,n){"use strict";t.A=(0,n(877136).A)("pageXOffset")},138814:function(e,t,n){"use strict";t.A=(0,n(877136).A)("pageYOffset")},236674:function(e,t,n){"use strict";let r="u">typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function i(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),n)}function o(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r):e.detachEvent&&e.detachEvent("on".concat(t),n)}function s(e,t){let n=t.slice(0,t.length-1);for(let t=0;t<n.length;t++)n[t]=e[n[t].toLowerCase()];return n}function a(e){"string"!=typeof e&&(e="");let t=(e=e.replace(/\s/g,"")).split(","),n=t.lastIndexOf("");for(;n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}let l={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,arrowup:38,arrowdown:40,arrowleft:37,arrowright:39,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":r?173:189,"=":r?61:187,";":r?59:186,"'":222,"{":219,"}":221,"[":219,"]":221,"\\":220},c={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,meta:91,command:91},u={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},d={16:!1,18:!1,17:!1,91:!1},h={};for(let e=1;e<20;e++)l["f".concat(e)]=111+e;let f=[],p=null,m="all",g=new Map,y=e=>l[e.toLowerCase()]||c[e.toLowerCase()]||e.toUpperCase().charCodeAt(0);function v(e){m=e||"all"}function b(){return m||"all"}function _(e){if(void 0===e)Object.keys(h).forEach(e=>{Array.isArray(h[e])&&h[e].forEach(e=>w(e)),delete h[e]}),A(null);else if(Array.isArray(e))e.forEach(e=>{e.key&&w(e)});else if("object"==typeof e)e.key&&w(e);else if("string"==typeof e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];let[i,o]=n;"function"==typeof i&&(o=i,i=""),w({key:e,scope:i,method:o,splitKey:"+"})}}let w=e=>{let{key:t,scope:n,method:r,splitKey:i="+"}=e;a(t).forEach(e=>{let t=e.split(i),o=t.length,a=t[o-1],l="*"===a?"*":y(a);if(!h[l])return;n||(n=b());let u=o>1?s(c,t):[],d=[];h[l]=h[l].filter(e=>{let t=(!r||e.method===r)&&e.scope===n&&function(e,t){let n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,i=!0;for(let e=0;e<n.length;e++)-1===r.indexOf(n[e])&&(i=!1);return i}(e.mods,u);return t&&d.push(e.element),!t}),d.forEach(e=>A(e))})};function x(e,t,n,r){let i;if(t.element===r&&(t.scope===n||"all"===t.scope)){for(let e in i=t.mods.length>0,d)Object.prototype.hasOwnProperty.call(d,e)&&(!d[e]&&t.mods.indexOf(+e)>-1||d[e]&&-1===t.mods.indexOf(+e))&&(i=!1);(0!==t.mods.length||d[16]||d[18]||d[17]||d[91])&&!i&&"*"!==t.shortcut||(t.keys=[],t.keys=t.keys.concat(f),!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function k(e,t){let n=h["*"],r=e.keyCode||e.which||e.charCode;if(e.key&&"capslock"===e.key.toLowerCase()||!C.filter.call(this,e))return;if((93===r||224===r)&&(r=91),-1===f.indexOf(r)&&229!==r&&f.push(r),["metaKey","ctrlKey","altKey","shiftKey"].forEach(t=>{let n=u[t];e[t]&&-1===f.indexOf(n)?f.push(n):!e[t]&&f.indexOf(n)>-1?f.splice(f.indexOf(n),1):"metaKey"===t&&e[t]&&(f=f.filter(e=>e in u||e===r))}),r in d){for(let t in d[r]=!0,c)if(Object.prototype.hasOwnProperty.call(c,t)){let n=u[c[t]];C[t]=e[n]}if(!n)return}for(let t in d)Object.prototype.hasOwnProperty.call(d,t)&&(d[t]=e[u[t]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===f.indexOf(17)&&f.push(17),-1===f.indexOf(18)&&f.push(18),d[17]=!0,d[18]=!0);let i=b();if(n)for(let r=0;r<n.length;r++)n[r].scope===i&&("keydown"===e.type&&n[r].keydown||"keyup"===e.type&&n[r].keyup)&&x(e,n[r],i,t);
3if(!(r in h))return;let o=h[r],s=o.length;for(let n=0;n<s;n++)if(("keydown"===e.type&&o[n].keydown||"keyup"===e.type&&o[n].keyup)&&o[n].key){let r=o[n],{splitKey:s}=r,a=r.key.split(s),l=[];for(let e=0;e<a.length;e++)l.push(y(a[e]));l.sort().join("")===f.sort().join("")&&x(e,r,i,t)}}function C(e,t,n){f=[];let r=a(e),o=[],l="all",u=document,m=0,v=!1,b=!0,w="+",x=!1,A=!1;for(void 0===n&&"function"==typeof t&&(n=t),"[object Object]"===Object.prototype.toString.call(t)&&(t.scope&&(l=t.scope),t.element&&(u=t.element),t.keyup&&(v=t.keyup),void 0!==t.keydown&&(b=t.keydown),void 0!==t.capture&&(x=t.capture),"string"==typeof t.splitKey&&(w=t.splitKey),!0===t.single&&(A=!0)),"string"==typeof t&&(l=t),A&&_(e,l);m<r.length;m++)e=r[m].split(w),o=[],e.length>1&&(o=s(c,e)),(e="*"===(e=e[e.length-1])?"*":y(e))in h||(h[e]=[]),h[e].push({keyup:v,keydown:b,scope:l,mods:o,shortcut:r[m],method:n,key:r[m],splitKey:w,element:u});if(void 0!==u&&window){if(!g.has(u)){let e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event;return k(e,u)},t=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event;k(e,u);let t=e.keyCode||e.which||e.charCode;e.key&&"capslock"===e.key.toLowerCase()&&(t=y(e.key));let n=f.indexOf(t);if(n>=0&&f.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&f.splice(0,f.length),(93===t||224===t)&&(t=91),t in d)for(let e in d[t]=!1,c)c[e]===t&&(C[e]=!1)};g.set(u,{keydownListener:e,keyupListenr:t,capture:x}),i(u,"keydown",e,x),i(u,"keyup",t,x)}if(!p){let e=()=>{f=[]};p={listener:e,capture:x},i(window,"focus",e,x)}}}function A(e){let t=Object.values(h).flat();if(0>t.findIndex(t=>{let{element:n}=t;return n===e})){let{keydownListener:t,keyupListenr:n,capture:r}=g.get(e)||{};t&&n&&(o(e,"keyup",n,r),o(e,"keydown",t,r),g.delete(e))}if((t.length<=0||g.size<=0)&&(Object.keys(g).forEach(e=>{let{keydownListener:t,keyupListenr:n,capture:r}=g.get(e)||{};t&&n&&(o(e,"keyup",n,r),o(e,"keydown",t,r),g.delete(e))}),g.clear(),Object.keys(h).forEach(e=>delete h[e]),p)){let{listener:e,capture:t}=p;o(window,"focus",e,t),p=null}}let D={getPressedKeyString:function(){return f.map(e=>Object.keys(l).find(t=>l[t]===e)||Object.keys(c).find(t=>c[t]===e)||String.fromCharCode(e))},setScope:v,getScope:b,deleteScope:function(e,t){let n,r;for(let t in e||(e=b()),h)if(Object.prototype.hasOwnProperty.call(h,t))for(n=h[t],r=0;r<n.length;)n[r].scope===e?n.splice(r,1).forEach(e=>{let{element:t}=e;return A(t)}):r++;b()===e&&v(t||"all")},getPressedKeyCodes:function(){return f.slice(0)},getAllKeyCodes:function(){let e=[];return Object.keys(h).forEach(t=>{h[t].forEach(t=>{let{key:n,scope:r,mods:i,shortcut:o}=t;e.push({scope:r,shortcut:o,mods:i,keys:n.split("+").map(e=>y(e))})})}),e},isPressed:function(e){return"string"==typeof e&&(e=y(e)),-1!==f.indexOf(e)},filter:function(e){let t=e.target||e.srcElement,{tagName:n}=t,r=!0,i="INPUT"===n&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(i||"TEXTAREA"===n||"SELECT"===n)&&!t.readOnly)&&(r=!1),r},trigger:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(h).forEach(n=>{h[n].filter(n=>n.scope===t&&n.shortcut===e).forEach(e=>{e&&e.method&&e.method()})})},unbind:_,keyMap:l,modifier:c,modifierMap:u};for(let e in D)Object.prototype.hasOwnProperty.call(D,e)&&(C[e]=D[e]);if("u">typeof window){let e=window.hotkeys;C.noConflict=t=>(t&&window.hotkeys===C&&(window.hotkeys=e),C),window.hotkeys=C}n.d(t,{A:function(){return C}})},796902:function(e){var t=Math.ceil,n=Math.max;e.exports=function(e,r,i,o){for(var s=-1,a=n(t((r-e)/(i||1)),0),l=Array(a);a--;)l[o?a:++s]=e,e+=i;return l}},781586:function(e,t,n){var r=n(793526),i=n(998087),o=n(913398),s=n(366040),a=Object.prototype.hasOwnProperty;e.exports=function(e,t){t=r(t,e);var n=-1,l=t.length;if(!l)return!0;for(;++n<l;){var c=s(t[n]);if("__proto__"===c&&!a.call(e,"__proto__")||("constructor"===c||"prototype"===c)&&n<l-1)return!1}var u=o(e,t);return null==u||delete u[s(i(t))]}},840165:function(e,t,n){var r=n(796902),i=n(674535),o=n(743301);e.exports=function(e){return function(t,n,s){return s&&"number"!=typeof s&&i(t,n,s)&&(n=s=void 0),t=o(t),void 0===n?(n=t,t=0):n=o(n),s=void 0===s?t<n?1:-1:o(s),r(t,n,s,e)}}},629259:function(e,t,n){var r=n(348360);e.exports=function(e){return r(e)?void 0:e}},913398:function(e,t,n){var r=n(57923),i=n(73501);e.exports=function(e,t){return t.length<2?e:r(e,i(t,0,-1))}},988126:function(e,t,n){var r=n(73501),i=n(674535),o=n(667642),s=Math.ceil,a=Math.max;e.exports=function(e,t,n){t=(n?i(e,t,n):void 0===t)?1:a(o(t),0);var l=null==e?0:e.length;if(!l||t<1)return[];for(var c=0,u=0,d=Array(s(l/t));c<l;)d[u++]=r(e,c,c+=t);return d}},632293:function(e,t,n){var r=n(623945),i=n(446285),o=n(674535),s=n(25288),a=Object.prototype,l=a.hasOwnProperty;e.exports=r(function(e,t){e=Object(e);var n=-1,r=t.length,c=r>2?t[2]:void 0;for(c&&o(t[0],t[1],c)&&(r=1);++n<r;)for(var u=t[n],d=s(u),h=-1,f=d.length;++h<f;){var p=d[h],m=e[p];(void 0===m||i(m,a[p])&&!l.call(e,p))&&(e[p]=u[p])}return e})},392154:function(e,t,n){var r=n(837250),i=n(103334),o=n(667642),s=Math.max;e.exports=function(e,t,n){var a=null==e?0:e.length;if(!a)return -1;var l=null==n?0:o(n);return l<0&&(l=s(a+l,0)),r(e,i(t,3),l)}},946343:function(e,t,n){var r=n(294687);e.exports=function(e,t){return r(e,t)}},998087:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},677629:function(e,t,n){var r=n(557073),i=n(47170),o=n(103334);e.exports=function(e,t){var n={};return t=o(t,3),i(e,function(e,i,o){r(n,t(e,i,o),e)}),n}},446155:function(e,t,n){var r=n(557073),i=n(47170),o=n(103334);e.exports=function(e,t){var n={};return t=o(t,3),i(e,function(e,i,o){r(n,i,t(e,i,o))}),n}},3326:function(e,t,n){var r=n(965111),i=n(169334),o=n(781586),s=n(793526),a=n(939032),l=n(629259),c=n(141439),u=n(293650);e.exports=c(function(e,t){var n={};if(null==e)return n;var c=!1;t=r(t,function(t){return t=s(t,e),c||(c=t.length>1),t}),a(e,u(e),n),c&&(n=i(n,7,l));for(var d=t.length;d--;)o(n,t[d]);return n})},573758:function(e,t,n){e.exports=n(840165)()},302011:function(e,t,n){var r=n(879968),i=n(939747),o=n(47170),s=n(103334),a=n(74784),l=n(153142),c=n(475853),u=n(293655),d=n(141580),h=n(208666);e.exports=function(e,t,n){var f=l(e),p=f||c(e)||h(e);if(t=s(t,4),null==n){var m=e&&e.constructor;n=p?f?new m:[]:d(e)&&u(m)?i(a(e)):{}}return(p?r:o)(e,function(e,r,i){return t(n,e,r,i)}),n}},937377:function(e,t,n){var r=n(720566),i=n(276928),o=n(558776);function s(e){return this instanceof s?(this.nodes=r(e),this):new s(e)}s.prototype.toString=function(){return Array.isArray(this.nodes)?o(this.nodes):""},s.prototype.walk=function(e,t){return i(this.nodes,e,t),this},s.unit=n(363475),s.walk=i,s.stringify=o,e.exports=s},720566:function(e){var t=/^[a-f0-9?-]+$/i;e.exports=function(e){for(var n,r,i,o,s,a,l,c,u,d=[],h=e,f=0,p=h.charCo
3deAt(f),m=h.length,g=[{nodes:d}],y=0,v="",b="",_="";f<m;)if(p<=32){n=f;do n+=1,p=h.charCodeAt(n);while(p<=32)o=h.slice(f,n),i=d[d.length-1],41===p&&y?_=o:i&&"div"===i.type?(i.after=o,i.sourceEndIndex+=o.length):44===p||58===p||47===p&&42!==h.charCodeAt(n+1)&&(!u||u&&"function"===u.type&&"calc"!==u.value)?b=o:d.push({type:"space",sourceIndex:f,sourceEndIndex:n,value:o}),f=n}else if(39===p||34===p){n=f,o={type:"string",sourceIndex:f,quote:r=39===p?"'":'"'};do if(s=!1,~(n=h.indexOf(r,n+1)))for(a=n;92===h.charCodeAt(a-1);)a-=1,s=!s;else h+=r,n=h.length-1,o.unclosed=!0;while(s)o.value=h.slice(f+1,n),o.sourceEndIndex=o.unclosed?n:n+1,d.push(o),f=n+1,p=h.charCodeAt(f)}else if(47===p&&42===h.charCodeAt(f+1))n=h.indexOf("*/",f),o={type:"comment",sourceIndex:f,sourceEndIndex:n+2},-1===n&&(o.unclosed=!0,n=h.length,o.sourceEndIndex=n),o.value=h.slice(f+2,n),d.push(o),f=n+2,p=h.charCodeAt(f);else if((47===p||42===p)&&u&&"function"===u.type&&"calc"===u.value)o=h[f],d.push({type:"word",sourceIndex:f-b.length,sourceEndIndex:f+o.length,value:o}),f+=1,p=h.charCodeAt(f);else if(47===p||44===p||58===p)o=h[f],d.push({type:"div",sourceIndex:f-b.length,sourceEndIndex:f+o.length,value:o,before:b,after:""}),b="",f+=1,p=h.charCodeAt(f);else if(40===p){n=f;do n+=1,p=h.charCodeAt(n);while(p<=32)if(c=f,o={type:"function",sourceIndex:f-v.length,value:v,before:h.slice(c+1,n)},f=n,"url"===v&&39!==p&&34!==p){n-=1;do if(s=!1,~(n=h.indexOf(")",n+1)))for(a=n;
392===h.charCodeAt(a-1);)a-=1,s=!s;else h+=")",n=h.length-1,o.unclosed=!0;while(s)l=n;do l-=1,p=h.charCodeAt(l);while(p<=32)c<l?(f!==l+1?o.nodes=[{type:"word",sourceIndex:f,sourceEndIndex:l+1,value:h.slice(f,l+1)}]:o.nodes=[],o.unclosed&&l+1!==n?(o.after="",o.nodes.push({type:"space",sourceIndex:l+1,sourceEndIndex:n,value:h.slice(l+1,n)})):(o.after=h.slice(l+1,n),o.sourceEndIndex=n)):(o.after="",o.nodes=[]),f=n+1,o.sourceEndIndex=o.unclosed?n:f,p=h.charCodeAt(f),d.push(o)}else y+=1,o.after="",o.sourceEndIndex=f+1,d.push(o),g.push(o),d=o.nodes=[],u=o;v=""}else if(41===p&&y)f+=1,p=h.charCodeAt(f),u.after=_,u.sourceEndIndex+=_.length,_="",y-=1,g[g.length-1].sourceEndIndex=f,g.pop(),d=(u=g[y]).nodes;else{n=f;do 92===p&&(n+=1),n+=1,p=h.charCodeAt(n);while(n<m&&!(p<=32||39===p||34===p||44===p||58===p||47===p||40===p||42===p&&u&&"function"===u.type&&"calc"===u.value||47===p&&"function"===u.type&&"calc"===u.value||41===p&&y))o=h.slice(f,n),40===p?v=o:(117===o.charCodeAt(0)||85===o.charCodeAt(0))&&43===o.charCodeAt(1)&&t.test(o.slice(2))?d.push({type:"unicode-range",sourceIndex:f,sourceEndIndex:n,value:o}):d.push({type:"word",sourceIndex:f,sourceEndIndex:n,value:o}),f=n}for(f=g.length-1;f;f-=1)g[f].unclosed=!0,g[f].sourceEndIndex=h.length;return g[0].nodes}},558776:function(e){function t(e,t){var r,i,o=e.type,s=e.value;if(t&&void 0!==(i=t(e)))return i;if("word"===o||"space"===o);else if("string"===o)return(r=e.quote||"")+s+(e.unclosed?"":r);else if("comment"===o)return"/*"+s+(e.unclosed?"":"*/");else if("div"===o)return(e.before||"")+s+(e.after||"");else if(Array.isArray(e.nodes))return(r=n(e.nodes,t),"function"!==o)?r:s+"("+(e.before||"")+r+(e.after||"")+(e.unclosed?"":")");return s}function n(e,n){var r,i;if(Array.isArray(e)){for(r="",i=e.length-1;~i;i-=1)r=t(e[i],n)+r;return r}return t(e,n)}e.exports=n},363475:function(e){e.exports=function(e){var t,n,r,i=0,o=e.length;if(0===o||!function(e){var t,n=e.charCodeAt(0);if(43===n||45===n){if((t=e.charCodeAt(1))>=48&&t<=57)return!0;var r=e.charCodeAt(2);return 46===t&&!!(r>=48)&&!!(r<=57)}return 46===n?!!((t=e.charCodeAt(1))>=48)&&!!(t<=57):!!(n>=48)&&!!(n<=57)}(e))return!1;for((43===(t=e.charCodeAt(i))||45===t)&&i++;i<o&&!((t=e.charCodeAt(i))<48)&&!(t>57);)i+=1;if(t=e.charCodeAt(i),n=e.charCodeAt(i+1),46===t&&n>=48&&n<=57)for(i+=2;i<o&&!((t=e.charCodeAt(i))<48)&&!(t>57);)i+=1;if(t=e.charCodeAt(i),n=e.charCodeAt(i+1),r=e.charCodeAt(i+2),(101===t||69===t)&&(n>=48&&n<=57||(43===n||45===n)&&r>=48&&r<=57))for(i+=43===n||45===n?3:2;i<o&&!((t=e.charCodeAt(i))<48)&&!(t>57);)i+=1;return{number:e.slice(0,i),unit:e.slice(i)}}},276928:function(e){e.exports=function e(t,n,r){var i,o,s,a;for(i=0,o=t.length;i<o;i+=1)s=t[i],r||(a=n(s,i,t)),!1!==a&&"function"===s.type&&Array.isArray(s.nodes)&&e(s.nodes,n,r),r&&n(s,i,t)}},974826:function(e,t,n){"use strict";n.r(t);let r=/^xn--/,i=/[^\0-\x7F]/,o=/[\x2E\u3002\uFF0E\uFF61]/g,s={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},a=Math.floor,l=String.fromCharCode;function c(e){throw RangeError(s[e])}function u(e,t){let n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+(function(e,t){let n=[],r=e.length;for(;r--;)n[r]=t(e[r]);return n})((e=e.replace(o,".")).split("."),t).join(".")}function d(e){let t=[],n=0,r=e.length;for(;n<r;){let i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){let r=e.charCodeAt(n++);(64512&r)==56320?t.push(((1023&i)<<10)+(1023&r)+65536):(t.push(i),n--)}else t.push(i)}return t}let h=e=>String.fromCodePoint(...e),f=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},p=function(e,t,n){let r=0;for(e=n?a(e/700):e>>1,e+=a(e/t);e>455;r+=36)e=a(e/35);return a(r+36*e/(e+38))},m=function(e){let t=[],n=e.length,r=0,i=128,o=72,s=e.lastIndexOf("-");s<0&&(s=0);for(let n=0;n<s;++n)e.charCodeAt(n)>=128&&c("not-basic"),t.push(e.charCodeAt(n));for(let u=s>0?s+1:0;u<n;){let s=r;for(let t=1,i=36;;i+=36){var l;u>=n&&c("invalid-input");let s=(l=e.charCodeAt(u++))>=48&&l<58?26+(l-48):l>=65&&l<91?l-65:l>=97&&l<123?l-97:36;s>=36&&c("invalid-input"),s>a((0x7fffffff-r)/t)&&c("overflow"),r+=s*t;let d=i<=o?1:i>=o+26?26:i-o;if(s<d)break;let h=36-d;t>a(0x7fffffff/h)&&c("overflow"),t*=h}let d=t.length+1;
3o=p(r-s,d,0==s),a(r/d)>0x7fffffff-i&&c("overflow"),i+=a(r/d),r%=d,t.splice(r++,0,i)}return String.fromCodePoint(...t)},g=function(e){let t=[],n=(e=d(e)).length,r=128,i=0,o=72;for(let n of e)n<128&&t.push(l(n));let s=t.length,u=s;for(s&&t.push("-");u<n;){let n=0x7fffffff;for(let t of e)t>=r&&t<n&&(n=t);let d=u+1;for(let h of(n-r>a((0x7fffffff-i)/d)&&c("overflow"),i+=(n-r)*d,r=n,e))if(h<r&&++i>0x7fffffff&&c("overflow"),h===r){let e=i;for(let n=36;;n+=36){let r=n<=o?1:n>=o+26?26:n-o;if(e<r)break;let i=e-r,s=36-r;t.push(l(f(r+i%s,0))),e=a(i/s)}t.push(l(f(e,0))),o=p(i,d,u===s),i=0,++u}++i,++r}return t.join("")},y=function(e){return u(e,function(e){return r.test(e)?m(e.slice(4).toLowerCase()):e})},v=function(e){return u(e,function(e){return i.test(e)?"xn--"+g(e):e})};t.default={version:"2.3.1",ucs2:{decode:d,encode:h},decode:m,encode:g,toASCII:v,toUnicode:y},n.d(t,{ucs2decode:function(){return d}},{decode:m,encode:g,toASCII:v,toUnicode:y,ucs2encode:h})},372242:function(e){window,e.exports=function(){var e=[function(e,t,n){"use strict";var r,i=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])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e){void 0===e&&(e="="),this._paddingCharacter=e}return e.prototype.encodedLength=function(e){return this._paddingCharacter?(e+2)/3*4|0:(8*e+5)/6|0},e.prototype.encode=function(e){for(var t="",n=0;n<e.length-2;n+=3){var r=e[n]<<16|e[n+1]<<8|e[n+2];t+=this._encodeByte(r>>>18&63),t+=this._encodeByte(r>>>12&63),t+=this._encodeByte(r>>>6&63),t+=this._encodeByte(r>>>0&63)}var i=e.length-n;if(i>0){var r=e[n]<<16|(2===i?e[n+1]<<8:0);t+=this._encodeByte(r>>>18&63),t+=this._encodeByte(r>>>12&63),2===i?t+=this._encodeByte(r>>>6&63):t+=this._paddingCharacter||"",t+=this._paddingCharacter||""}return t},e.prototype.maxDecodedLength=function(e){return this._paddingCharacter?e/4*3|0:(6*e+7)/8|0},e.prototype.decodedLength=function(e){return this.maxDecodedLength(e.length-this._getPaddingLength(e))},e.prototype.decode=function(e){if(0===e.length)return new Uint8Array(0);for(var t=this._getPaddingLength(e),n=e.length-t,r=new Uint8Array(this.maxDecodedLength(n)),i=0,o=0,s=0,a=0,l=0,c=0,u=0;o<n-4;o+=4)a=this._decodeChar(e.charCodeAt(o+0)),l=this._decodeChar(e.charCodeAt(o+1)),c=this._decodeChar(e.charCodeAt(o+2)),u=this._decodeChar(e.charCodeAt(o+3)),r[i++]=a<<2|l>>>4,r[i++]=l<<4|c>>>2,r[i++]=c<<6|u,s|=256&a,s|=256&l,s|=256&c,s|=256&u;if(o<n-1&&(a=this._decodeChar(e.charCodeAt(o)),l=this._decodeChar(e.charCodeAt(o+1)),r[i++]=a<<2|l>>>4,s|=256&a,s|=256&l),o<n-2&&(c=this._decodeChar(e.charCodeAt(o+2)),r[i++]=l<<4|c>>>2,s|=256&c),o<n-3&&(u=this._decodeChar(e.charCodeAt(o+3)),r[i++]=c<<6|u,s|=256&u),0!==s)throw Error("Base64Coder: incorrect characters for decoding");return r},e.prototype._encodeByte=function(e){var t=e;return t+=65,t+=25-e>>>8&6,t+=51-e>>>8&-75,t+=61-e>>>8&-15,String.fromCharCode(t+=62-e>>>8&3)},e.prototype._decodeChar=function(e){return 256+((42-e&e-44)>>>8&-256+e-43+62)+((46-e&e-48)>>>8&-256+e-47+63)+((47-e&e-58)>>>8&-256+e-48+52)+((64-e&e-91)>>>8&-256+e-65+0)+((96-e&e-123)>>>8&-256+e-97+26)},e.prototype._getPaddingLength=function(e){var t=0;if(this._paddingCharacter){for(var n=e.length-1;n>=0&&e[n]===this._paddingCharacter;n--)t++;if(e.length<4||t>2)throw Error("Base64Coder: incorrect padding")}return t},e}();t.Coder=o;var s=new o;t.encode=function(e){return s.encode(e)},t.decode=function(e){return s.decode(e)};var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype._encodeByte=function(e){var t=e;return t+=65,t+=25-e>>>8&6,t+=51-e>>>8&-75,t+=61-e>>>8&-13,String.fromCharCode(t+=62-e>>>8&49)},t.prototype._decodeChar=function(e){return 256+((44-e&e-46)>>>8&-256+e-45+62)+((94-e&e-96)>>>8&-256+e-95+63)+((47-e&e-58)>>>8&-256+e-48+52)+((64-e&e-91)>>>8&-256+e-65+0)+((96-e&e-123)>>>8&-256+e-97+26)},t}(o);t.URLSafeCoder=a;var l=new a;t.encodeURLSafe=function(e){return l.encode(e)},t.decodeURLSafe=function(e){return l.decode(e)},t.encodedLength=function(e){return s.encodedLength(e)},t.maxDecodedLength=function(e){return s.maxDecodedLength(e)},t.decodedLength=function(e){return s.decodedLength(e)}},function(e,t,n){"use strict";
3Object.defineProperty(t,"__esModule",{value:!0});var r="utf8: invalid string",i="utf8: invalid source encoding";function o(e){for(var t=0,n=0;n<e.length;n++){var i=e.charCodeAt(n);if(i<128)t+=1;else if(i<2048)t+=2;else if(i<55296)t+=3;else if(i<=57343){if(n>=e.length-1)throw Error(r);n++,t+=4}else throw Error(r)}return t}t.encode=function(e){for(var t=new Uint8Array(o(e)),n=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);i<128?t[n++]=i:(i<2048?t[n++]=192|i>>6:(i<55296?t[n++]=224|i>>12:(r++,i=((1023&i)<<10|1023&e.charCodeAt(r))+65536,t[n++]=240|i>>18,t[n++]=128|i>>12&63),t[n++]=128|i>>6&63),t[n++]=128|63&i)}return t},t.encodedLength=o,t.decode=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(128&r){var o=void 0;if(r<224){if(n>=e.length)throw Error(i);var s=e[++n];if((192&s)!=128)throw Error(i);r=(31&r)<<6|63&s,o=128}else if(r<240){if(n>=e.length-1)throw Error(i);var s=e[++n],a=e[++n];if((192&s)!=128||(192&a)!=128)throw Error(i);r=(15&r)<<12|(63&s)<<6|63&a,o=2048}else if(r<248){if(n>=e.length-2)throw Error(i);var s=e[++n],a=e[++n],l=e[++n];if((192&s)!=128||(192&a)!=128||(192&l)!=128)throw Error(i);r=(15&r)<<18|(63&s)<<12|(63&a)<<6|63&l,o=65536}else throw Error(i);if(r<o||r>=55296&&r<=57343)throw Error(i);if(r>=65536){if(r>1114111)throw Error(i);r-=65536,t.push(String.fromCharCode(55296|r>>10)),r=56320|1023&r}}t.push(String.fromCharCode(r))}return t.join("")}},function(e,t,n){e.exports=n(3).default},function(e,t,n){"use strict";n.r(t);class r{constructor(e,t){this.lastId=0,this.prefix=e,this.name=t}create(e){this.lastId++;var t=this.lastId,n=this.prefix+t,r=this.name+"["+t+"]",i=!1,o=function(){i||(e.apply(null,arguments),i=!0)};return this[t]=o,{number:t,id:n,name:r,callback:o}}remove(e){delete this[e.number]}}var i,o,s,a,l,c,u=new r("_pusher_script_","Pusher.ScriptReceivers"),d="8.4.0",h={endpoint:"/pusher/user-auth",transport:"ajax"},f={endpoint:"/pusher/auth",transport:"ajax"},p=new r("_pusher_dependencies","Pusher.DependenciesReceivers"),m=new class{constructor(e){this.options=e,this.receivers=e.receivers||u,this.loading={}}load(e,t,n){var r=this;if(r.loading[e]&&r.loading[e].length>0)r.loading[e].push(n);else{r.loading[e]=[n];var i=e3.createScriptRequest(r.getPath(e,t)),o=r.receivers.create(function(t){if(r.receivers.remove(o),r.loading[e]){var n=r.loading[e];delete r.loading[e];for(var s=function(e){e||i.cleanup()},a=0;a<n.length;a++)n[a](t,s)}});i.send(o)}}getRoot(e){var t=e3.getDocument().location.protocol;return(e&&e.useTLS||"https:"===t?this.options.cdn_https:this.options.cdn_http).replace(/\/*$/,"")+"/"+this.options.version}getPath(e,t){return this.getRoot(t)+"/"+e+this.options.suffix+".js"}}({cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",version:d,suffix:"",receivers:p});let g={authenticationEndpoint:{path:"/docs/channels/server_api/authenticating_users"},authorizationEndpoint:{path:"/docs/channels/server_api/authorizing-users/"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"},encryptedChannelSupport:{fullUrl:"https://github.com/pusher/pusher-js/tree/cc491015371a4bde5743d1c87a0fbac0feb53195#encrypted-channel-support"}};var y=function(e){let t,n=g[e];return n&&(n.fullUrl?t=n.fullUrl:n.path&&(t="https://pusher.com"+n.path),t)?`See: ${t}`:""};(i=a||(a={})).UserAuthentication="user-authentication",i.ChannelAuthorization="channel-authorization";class v extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class b extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class _ extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class w extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class x extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class k extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class C extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}
3class A extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class D extends Error{constructor(e,t){super(t),this.status=e,Object.setPrototypeOf(this,new.target.prototype)}}for(var S=function(e,t,n,r,i){let o=e3.createXHR();for(var s in o.open("POST",n.endpoint,!0),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.headers)o.setRequestHeader(s,n.headers[s]);if(null!=n.headersProvider){let e=n.headersProvider();for(var s in e)o.setRequestHeader(s,e[s])}return o.onreadystatechange=function(){if(4===o.readyState)if(200===o.status){let e,t=!1;try{e=JSON.parse(o.responseText),t=!0}catch(e){i(new D(200,`JSON returned from ${r.toString()} endpoint was invalid, yet status code was 200. Data was: ${o.responseText}`),null)}t&&i(null,e)}else{let e="";switch(r){case a.UserAuthentication:e=y("authenticationEndpoint");break;case a.ChannelAuthorization:e=`Clients must be authorized to join private or presence channels. ${y("authorizationEndpoint")}`}i(new D(o.status,`Unable to retrieve auth string from ${r.toString()} endpoint - received status: ${o.status} from ${n.endpoint}. ${e}`),null)}},o.send(t),o},E=String.fromCharCode,T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",O={},M=0,N=T.length;M<N;M++)O[T.charAt(M)]=M;var P=function(e){var t=e.charCodeAt(0);return t<128?e:t<2048?E(192|t>>>6)+E(128|63&t):E(224|t>>>12&15)+E(128|t>>>6&63)+E(128|63&t)},R=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[T.charAt(n>>>18),T.charAt(n>>>12&63),t>=2?"=":T.charAt(n>>>6&63),t>=1?"=":T.charAt(63&n)].join("")},I=window.btoa||function(e){return e.replace(/[\s\S]{1,3}/g,R)},F=class{constructor(e,t,n,r){this.clear=t,this.timer=e(()=>{this.timer&&(this.timer=r(this.timer))},n)}isRunning(){return null!==this.timer}ensureAborted(){this.timer&&(this.clear(this.timer),this.timer=null)}};function L(e){window.clearTimeout(e)}function j(e){window.clearInterval(e)}class z extends F{constructor(e,t){super(setTimeout,L,e,function(e){return t(),null})}}class $ extends F{constructor(e,t){super(setInterval,j,e,function(e){return t(),e})}}var B={now:()=>Date.now?Date.now():new Date().valueOf(),defer:e=>new z(0,e),method(e){var t=Array.prototype.slice.call(arguments,1);return function(n){return n[e].apply(n,t.concat(arguments))}}};function V(e,...t){for(var n=0;n<t.length;n++){var r=t[n];
3for(var i in r)r[i]&&r[i].constructor&&r[i].constructor===Object?e[i]=V(e[i]||{},r[i]):e[i]=r[i]}return e}function Y(){for(var e=["Pusher"],t=0;t<arguments.length;t++)"string"==typeof arguments[t]?e.push(arguments[t]):e.push(X(arguments[t]));return e.join(" : ")}function q(e,t){var n=Array.prototype.indexOf;if(null===e)return -1;if(n&&e.indexOf===n)return e.indexOf(t);for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return -1}function H(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(e[n],n,e)}function W(e){var t=[];return H(e,function(e,n){t.push(n)}),t}function U(e,t,n){for(var r=0;r<e.length;r++)t.call(n||window,e[r],r,e)}function G(e,t){for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r,e,n));return n}function Z(e,t){t=t||function(e){return!!e};for(var n=[],r=0;r<e.length;r++)t(e[r],r,e,n)&&n.push(e[r]);return n}function J(e,t){var n={};return H(e,function(r,i){(t&&t(r,i,e,n)||r)&&(n[i]=r)}),n}function K(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n,e))return!0;return!1}function X(e){try{return JSON.stringify(e)}catch(r){var t,n;return JSON.stringify((t=[],n=[],function e(r,i){var o,s,a;switch(typeof r){case"object":if(!r)return null;for(o=0;o<t.length;o+=1)if(t[o]===r)return{$ref:n[o]};if(t.push(r),n.push(i),"[object Array]"===Object.prototype.toString.apply(r))for(o=0,a=[];o<r.length;o+=1)a[o]=e(r[o],i+"["+o+"]");else for(s in a={}
3,r)Object.prototype.hasOwnProperty.call(r,s)&&(a[s]=e(r[s],i+"["+JSON.stringify(s)+"]"));return a;case"number":case"string":case"boolean":return r}}(e,"$")))}}var Q=new class{constructor(){this.globalLog=e=>{window.console&&window.console.log&&window.console.log(e)}}debug(...e){this.log(this.globalLog,e)}warn(...e){this.log(this.globalLogWarn,e)}error(...e){this.log(this.globalLogError,e)}globalLogWarn(e){window.console&&window.console.warn?window.console.warn(e):this.globalLog(e)}globalLogError(e){window.console&&window.console.error?window.console.error(e):this.globalLogWarn(e)}log(e){var t=Y.apply(this,arguments);to.log?to.log(t):to.logToConsole&&e.bind(this)(t)}},ee=function(e,t,n,r,i){(void 0!==n.headers||null!=n.headersProvider)&&Q.warn(`To send headers with the ${r.toString()} request, you must use AJAX, rather than JSONP.`);var o=e.nextAuthCallbackID.toString();e.nextAuthCallbackID++;var s=e.getDocument(),a=s.createElement("script");e.auth_callbacks[o]=function(e){i(null,e)},a.src=n.endpoint+"?callback="+encodeURIComponent("Pusher.auth_callbacks['"+o+"']")+"&"+t;var l=s.getElementsByTagName("head")[0]||s.documentElement;l.insertBefore(a,l.firstChild)};class et{constructor(e){this.src=e}send(e){var t=this,n="Error loading "+t.src;t.script=document.createElement("script"),t.script.id=e.id,t.script.src=t.src,t.script.type="text/javascript",t.script.charset="UTF-8",t.script.addEventListener?(t.script.onerror=function(){e.callback(n)},t.script.onload=function(){e.callback(null)}):t.script.onreadystatechange=function(){("loaded"===t.script.readyState||"complete"===t.script.readyState)&&e.callback(null)},void 0===t.script.async&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(t.errorScript=document.createElement("script"),t.errorScript.id=e.id+"_error",t.errorScript.text=e.name+"('"+n+"');",t.script.async=t.errorScript.async=!1):t.script.async=!0;var r=document.getElementsByTagName("head")[0];r.insertBefore(t.script,r.firstChild),t.errorScript&&r.insertBefore(t.errorScript,t.script.nextSibling)}cleanup(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null}}class en{constructor(e,t){this.url=e,this.data=t}send(e){if(!this.request){var t,n,r,i,o=G((t=J(this.data,function(e){return void 0!==e}),n=function(e){return"object"==typeof e&&(e=X(e)),encodeURIComponent(I(e.toString().replace(/[^\x00-\x7F]/g,P)))},r={},H(t,function(e,t){r[t]=n(e)}),i=[],H(r,function(e,t){i.push([t,e])}),i),B.method("join","=")).join("&"),s=this.url+"/"+e.number+"?"+o;this.request=e3.createScriptRequest(s),this.request.send(e)}}cleanup(){this.request&&this.request.cleanup()}}function er(e,t,n){return e+(t.useTLS?"s":"")+"://"+(t.useTLS?t.hostTLS:t.hostNonTLS)+n}function ei(e,t){return"/app/"+e+"?protocol=7&client=js&version="+d+(t?"&"+t:"")}class eo{constructor(){this._callbacks={}}get(e){return this._callbacks["_"+e]}add(e,t,n){var r="_"+e;this._callbacks[r]=this._callbacks[r]||[],this._callbacks[r].push({fn:t,context:n})}remove(e,t,n){if(!e&&!t&&!n){this._callbacks={};return}var r=e?["_"+e]:W(this._callbacks);t||n?this.removeCallback(r,t,n):this.removeAllCallbacks(r)}
3removeCallback(e,t,n){U(e,function(e){this._callbacks[e]=Z(this._callbacks[e]||[],function(e){return t&&t!==e.fn||n&&n!==e.context}),0===this._callbacks[e].length&&delete this._callbacks[e]},this)}removeAllCallbacks(e){U(e,function(e){delete this._callbacks[e]},this)}}class es{constructor(e){this.callbacks=new eo,this.global_callbacks=[],this.failThrough=e}bind(e,t,n){return this.callbacks.add(e,t,n),this}bind_global(e){return this.global_callbacks.push(e),this}unbind(e,t,n){return this.callbacks.remove(e,t,n),this}unbind_global(e){return e?this.global_callbacks=Z(this.global_callbacks||[],t=>t!==e):this.global_callbacks=[],this}unbind_all(){return this.unbind(),this.unbind_global(),this}emit(e,t,n){for(var r=0;r<this.global_callbacks.length;r++)this.global_callbacks[r](e,t);var i=this.callbacks.get(e),o=[];if(n?o.push(t,n):t&&o.push(t),i&&i.length>0)for(var r=0;r<i.length;r++)i[r].fn.apply(i[r].context||window,o);else this.failThrough&&this.failThrough(e,t);return this}}class ea extends es{constructor(e,t,n,r,i){super(),this.initialize=e3.transportConnectionInitializer,this.hooks=e,this.name=t,this.priority=n,this.key=r,this.options=i,this.state="new",this.timeline=i.timeline,this.activityTimeout=i.activityTimeout,this.id=this.timeline.generateUniqueID()}handlesActivityChecks(){return!!this.hooks.handlesActivityChecks}supportsPing(){return!!this.hooks.supportsPing}connect(){if(this.socket||"initialized"!==this.state)return!1;var e=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(e,this.options)}catch(e){return B.defer(()=>{this.onError(e),this.changeState("closed")}),!1}return this.bindListeners(),Q.debug("Connecting",{transport:this.name,url:e}),this.changeState("connecting"),!0}close(){return!!this.socket&&(this.socket.close(),!0)}send(e){return"open"===this.state&&(B.defer(()=>{this.socket&&this.socket.send(e)}),!0)}ping(){"open"===this.state&&this.supportsPing()&&this.socket.ping()}onOpen(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0}onError(e){this.emit("error",{type:"WebSocketError",error:e}),this.timeline.error(this.buildTimelineMessage({error:e.toString()}))}onClose(e){e?this.changeState("closed",{code:e.code,reason:e.reason,wasClean:e.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0}onMessage(e){this.emit("message",e)}onActivity(){this.emit("activity")}bindListeners(){this.socket.onopen=()=>{this.onOpen()},this.socket.onerror=e=>{this.onError(e)},this.socket.onclose=e=>{this.onClose(e)},this.socket.onmessage=e=>{this.onMessage(e)},this.supportsPing()&&(this.socket.onactivity=()=>{this.onActivity()})}unbindListeners(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))}changeState(e,t){this.state=e,this.timeline.info(this.buildTimelineMessage({state:e,params:t})),this.emit(e,t)}buildTimelineMessage(e){return V({cid:this.id},e)}}
3class el{constructor(e){this.hooks=e}isSupported(e){return this.hooks.isSupported(e)}createConnection(e,t,n,r){return new ea(this.hooks,e,t,n,r)}}var ec=new el({urls:{getInitial:function(e,t){var n=(t.httpPath||"")+ei(e,"flash=false");return er("ws",t,n)}},handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return!!e3.getWebSocketAPI()},isSupported:function(){return!!e3.getWebSocketAPI()},getSocket:function(e){return e3.createWebSocket(e)}}),eu={urls:{getInitial:function(e,t){var n=(t.httpPath||"/pusher")+ei(e);return er("http",t,n)}},handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},ed=V({getSocket:function(e){return e3.HTTPFactory.createStreamingSocket(e)}},eu),eh=V({getSocket:function(e){return e3.HTTPFactory.createPollingSocket(e)}},eu),ef={isSupported:function(){return e3.isXHRSupported()}},ep={ws:ec,xhr_streaming:new el(V({},ed,ef)),xhr_polling:new el(V({},eh,ef))},em=new el({file:"sockjs",urls:{getInitial:function(e,t){return er("http",t,t.httpPath||"/pusher")},getPath:function(e,t){return ei(e)}},handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return void 0!==window.SockJS},getSocket:function(e,t){return new window.SockJS(e,null,{js_path:m.getPath("sockjs",{useTLS:t.useTLS}),ignore_null_origin:t.ignoreNullOrigin})},beforeOpen:function(e,t){e.send(JSON.stringify({path:t}))}}),eg={isSupported:function(e){return e3.isXDRSupported(e.useTLS)}},ey=new el(V({},ed,eg)),ev=new el(V({},eh,eg));ep.xdr_streaming=ey,ep.xdr_polling=ev,ep.sockjs=em;var eb=new class extends es{constructor(){super();var e=this;void 0!==window.addEventListener&&(window.addEventListener("online",function(){e.emit("online")},!1),window.addEventListener("offline",function(){e.emit("offline")},!1))}isOnline(){return void 0===window.navigator.onLine||window.navigator.onLine}};class e_{constructor(e,t,n){this.manager=e,this.transport=t,this.minPingDelay=n.minPingDelay,this.maxPingDelay=n.maxPingDelay,this.pingDelay=void 0}createConnection(e,t,n,r){r=V({},r,{activityTimeout:this.pingDelay});var i=this.transport.createConnection(e,t,n,r),o=null,s=function(){i.unbind("open",s),i.bind("closed",a),o=B.now()},a=e=>{if(i.unbind("closed",a),1002===e.code||1003===e.code)this.manager.reportDeath();else if(!e.wasClean&&o){var t=B.now()-o;t<2*this.maxPingDelay&&(this.manager.reportDeath(),this.pingDelay=Math.max(t/2,this.minPingDelay))}};return i.bind("open",s),i}isSupported(e){return this.manager.isAlive()&&this.transport.isSupported(e)}}let ew={decodeMessage:function(e){try{var t=JSON.parse(e.data),n=t.data;if("string"==typeof n)try{n=JSON.parse(t.data)}catch(e){}var r={event:t.event,channel:t.channel,data:n};return t.user_id&&(r.user_id=t.user_id),r}catch(t){throw{type:"MessageParseError",error:t,data:e.data}}},encodeMessage:function(e){return JSON.stringify(e)},processHandshake:function(e){var t=ew.decodeMessage(e);if("pusher:connection_established"===t.event){if(!t.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:t.data.socket_id,activityTimeout:1e3*t.data.activity_timeout}}if("pusher:error"===t.event)return{action:this.getCloseAction(t.data),error:this.getCloseError(t.data)};throw"Invalid handshake"},getCloseAction:function(e){if(e.code<4e3)if(e.code>=1002&&e.code<=1004)return"backoff";else return null;if(4e3===e.code)return"tls_only";if(e.code<4100)return"refused";if(e.code<4200)return"backoff";if(e.code<4300)return"retry";else return"refused"},getCloseError:function(e){return 1e3!==e.code&&1001!==e.code?{type:"PusherError",data:{code:e.code,message:e.reason||e.message}}:null}};class ex extends es{constructor(e,t){super(),this.id=e,this.transport=t,this.activityTimeout=t.activityTimeout,this.bindListeners()}handlesActivityChecks(){return this.transport.handlesActivityChecks()}send(e){return this.transport.send(e)}send_event(e,t,n){var r={event:e,data:t};return n&&(r.channel=n),Q.debug("Event sent",r),this.send(ew.encodeMessage(r))}ping(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})}close(){this.transport.close()}bindListeners(){var e={message:e=>{var t;try{t=ew.decodeMessage(e)}
3catch(t){this.emit("error",{type:"MessageParseError",error:t,data:e.data})}if(void 0!==t){switch(Q.debug("Event recd",t),t.event){case"pusher:error":this.emit("error",{type:"PusherError",data:t.data});break;case"pusher:ping":this.emit("ping");break;case"pusher:pong":this.emit("pong")}this.emit("message",t)}},activity:()=>{this.emit("activity")},error:e=>{this.emit("error",e)},closed:e=>{t(),e&&e.code&&this.handleCloseEvent(e),this.transport=null,this.emit("closed")}},t=()=>{H(e,(e,t)=>{this.transport.unbind(t,e)})};H(e,(e,t)=>{this.transport.bind(t,e)})}handleCloseEvent(e){var t=ew.getCloseAction(e),n=ew.getCloseError(e);n&&this.emit("error",n),t&&this.emit(t,{action:t,error:n})}}class ek{constructor(e,t){this.transport=e,this.callback=t,this.bindListeners()}close(){this.unbindListeners(),this.transport.close()}bindListeners(){this.onMessage=e=>{var t;this.unbindListeners();try{t=ew.processHandshake(e)}catch(e){this.finish("error",{error:e}),this.transport.close();return}"connected"===t.action?this.finish("connected",{connection:new ex(t.id,this.transport),activityTimeout:t.activityTimeout}):(this.finish(t.action,{error:t.error}),this.transport.close())},this.onClosed=e=>{this.unbindListeners();var t=ew.getCloseAction(e)||"backoff",n=ew.getCloseError(e);this.finish(t,{error:n})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)}unbindListeners(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)}finish(e,t){this.callback(V({transport:this.transport,action:e},t))}}class eC{constructor(e,t){this.timeline=e,this.options=t||{}}send(e,t){this.timeline.isEmpty()||this.timeline.send(e3.TimelineTransport.getAgent(this,e),t)}}class eA extends es{constructor(e,t){super(function(t,n){Q.debug("No callbacks on "+e+" for "+t)}),this.name=e,this.pusher=t,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}authorize(e,t){return t(null,{auth:""})}trigger(e,t){if(0!==e.indexOf("client-"))throw new v("Event '"+e+"' does not start with 'client-'");if(!this.subscribed){var n=y("triggeringClientEvents");Q.warn(`Client event triggered before channel 'subscription_succeeded' event . ${n}`)}return this.pusher.send_event(e,t,this.name)}disconnect(){this.subscribed=!1,this.subscriptionPending=!1}handleEvent(e){var t=e.event,n=e.data;"pusher_internal:subscription_succeeded"===t?this.handleSubscriptionSucceededEvent(e):"pusher_internal:subscription_count"===t?this.handleSubscriptionCountEvent(e):0!==t.indexOf("pusher_internal:")&&this.emit(t,n,{})}handleSubscriptionSucceededEvent(e){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",e.data)}handleSubscriptionCountEvent(e){e.data.subscription_count&&(this.subscriptionCount=e.data.subscription_count),this.emit("pusher:subscription_count",e.data)}subscribe(){this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(e,t)=>{e?(this.subscriptionPending=!1,Q.error(e.toString()),this.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:e.message},e instanceof D?{status:e.status}:{}))):this.pusher.send_event("pusher:subscribe",{auth:t.auth,channel_data:t.channel_data,channel:this.name})}))}unsubscribe(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})}cancelSubscription(){this.subscriptionCancelled=!0}reinstateSubscription(){this.subscriptionCancelled=!1}}class eD extends eA{authorize(e,t){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:e},t)}}class eS{constructor(){this.reset()}get(e){return Object.prototype.hasOwnProperty.call(this.members,e)?{id:e,info:this.members[e]}:null}each(e){H(this.members,(t,n)=>{e(this.get(n))})}setMyID(e){this.myID=e}onSubscription(e){this.members=e.presence.hash,this.count=e.presence.count,this.me=this.get(this.myID)}addMember(e){return null===this.get(e.user_id)&&this.count++,this.members[e.user_id]=e.user_info,this.get(e.user_id)}removeMember(e){var t=this.get(e.user_id);return t&&(delete this.members[e.user_id],this.count--),t}reset(){this.members={},this.count=0,this.myID=null,this.me=null}}class eE extends eD{constructor(e,t){super(e,t),this.members=new eS}authorize(e,t){super.authorize(e,(e,n)=>{var r,i,o,s;return r=this,i=void 0,o=void 0,s=function*(){if(!e)if(null!=n.channel_data){var r=JSON.parse(n.channel_data);this.members.setMyID(r.user_id)}else if(yield this.pusher.user.signinDonePromise,null!=this.pusher.user.user_data)this.members.setMyID(this.pusher.user.user_data.id);else{let e=y("authorizationEndpoint");Q.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${e}, or the user should be signed in.`),t("Invalid auth response");return}t(e,n)},new(o||(o=Promise))(function(e,t){function n(e){try{l(s.next(e))}catch(e){t(e)}}function a(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof o?r:new o(function(e){e(r)})).then(n,a)}l((s=s.apply(r,i||[])).next())})})}handleEvent(e){var t=e.event;if(0===t.indexOf("pusher_internal:"))this.handleInternalEvent(e);else{var n=e.data,r={};
3e.user_id&&(r.user_id=e.user_id),this.emit(t,n,r)}}handleInternalEvent(e){var t=e.event,n=e.data;switch(t){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(e);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(e);break;case"pusher_internal:member_added":var r=this.members.addMember(n);this.emit("pusher:member_added",r);break;case"pusher_internal:member_removed":var i=this.members.removeMember(n);i&&this.emit("pusher:member_removed",i)}}handleSubscriptionSucceededEvent(e){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(e.data),this.emit("pusher:subscription_succeeded",this.members))}disconnect(){this.members.reset(),super.disconnect()}}var eT=n(1),eO=n(0);class eM extends eD{constructor(e,t,n){super(e,t),this.key=null,this.nacl=n}authorize(e,t){super.authorize(e,(e,n)=>{if(e)return void t(e,n);let r=n.shared_secret;r?(this.key=Object(eO.decode)(r),delete n.shared_secret,t(null,n)):t(Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`),null)})}trigger(e,t){throw new k("Client events are not currently supported for encrypted channels")}handleEvent(e){var t=e.event,n=e.data;0===t.indexOf("pusher_internal:")||0===t.indexOf("pusher:")?super.handleEvent(e):this.handleEncryptedEvent(t,n)}handleEncryptedEvent(e,t){if(!this.key)return void Q.debug("Received encrypted event before key has been retrieved from the authEndpoint");if(!t.ciphertext||!t.nonce)return void Q.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+t);let n=Object(eO.decode)(t.ciphertext);if(n.length<this.nacl.secretbox.overheadLength)return void Q.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${n.length}`);let r=Object(eO.decode)(t.nonce);if(r.length<this.nacl.secretbox.nonceLength)return void Q.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${r.length}`);let i=this.nacl.secretbox.open(n,r,this.key);if(null===i){Q.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),this.authorize(this.pusher.connection.socket_id,(t,o)=>{t?Q.error(`Failed to make a request to the authEndpoint: ${o}. Unable to fetch new key, so dropping encrypted event`):null===(i=this.nacl.secretbox.open(n,r,this.key))?Q.error("Failed to decrypt event with new key. Dropping encrypted event"):this.emit(e,this.getDataToEmit(i))});return}this.emit(e,this.getDataToEmit(i))}getDataToEmit(e){let t=Object(eT.decode)(e);try{return JSON.parse(t)}catch(e){return t}}}class eN extends es{constructor(e,t){super(),this.state="initialized",this.connection=null,this.key=e,this.options=t,this.timeline=this.options.timeline,this.usingTLS=this.options.useTLS,this.errorCallbacks=this.buildErrorCallbacks(),this.connectionCallbacks=this.buildConnectionCallbacks(this.errorCallbacks),this.handshakeCallbacks=this.buildHandshakeCallbacks(this.errorCallbacks);var n=e3.getNetwork();n.bind("online",()=>{this.timeline.info({netinfo:"online"}),("connecting"===this.state||"unavailable"===this.state)&&this.retryIn(0)}),n.bind("offline",()=>{this.timeline.info({netinfo:"offline"}),this.connection&&this.sendActivityCheck()}),this.updateStrategy()}connect(){if(!this.connection&&!this.runner){if(!this.strategy.isSupported())return void this.updateState("failed");this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()}}send(e){return!!this.connection&&this.connection.send(e)}send_event(e,t,n){return!!this.connection&&this.connection.send_event(e,t,n)}disconnect(){this.disconnectInternally(),this.updateState("disconnected")}isUsingTLS(){return this.usingTLS}startConnecting(){var e=(t,n)=>{t?this.runner=this.strategy.connect(0,e):"error"===n.action?(this.emit("error",{type:"HandshakeError",error:n.error}),this.timeline.error({handshakeError:n.error})):(this.abortConnecting(),this.handshakeCallbacks[n.action](n))};this.runner=this.strategy.connect(0,e)}abortConnecting(){this.runner&&(this.runner.abort(),this.runner=null)}disconnectInternally(){this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection&&this.abandonConnection().close()}updateStrategy(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})}retryIn(e){this.timeline.info({action:"retry",delay:e}),e>
30&&this.emit("connecting_in",Math.round(e/1e3)),this.retryTimer=new z(e||0,()=>{this.disconnectInternally(),this.connect()})}clearRetryTimer(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)}setUnavailableTimer(){this.unavailableTimer=new z(this.options.unavailableTimeout,()=>{this.updateState("unavailable")})}clearUnavailableTimer(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()}sendActivityCheck(){this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new z(this.options.pongTimeout,()=>{this.timeline.error({pong_timed_out:this.options.pongTimeout}),this.retryIn(0)})}resetActivityCheck(){this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new z(this.activityTimeout,()=>{this.sendActivityCheck()}))}stopActivityCheck(){this.activityTimer&&this.activityTimer.ensureAborted()}buildConnectionCallbacks(e){return V({},e,{message:e=>{this.resetActivityCheck(),this.emit("message",e)},ping:()=>{this.send_event("pusher:pong",{})},activity:()=>{this.resetActivityCheck()},error:e=>{this.emit("error",e)},closed:()=>{this.abandonConnection(),this.shouldRetry()&&this.retryIn(1e3)}})}buildHandshakeCallbacks(e){return V({},e,{connected:e=>{this.activityTimeout=Math.min(this.options.activityTimeout,e.activityTimeout,e.connection.activityTimeout||1/0),this.clearUnavailableTimer(),this.setConnection(e.connection),this.socket_id=this.connection.id,this.updateState("connected",{socket_id:this.socket_id})}})}buildErrorCallbacks(){let e=e=>t=>{t.error&&this.emit("error",{type:"WebSocketError",error:t.error}),e(t)};return{tls_only:e(()=>{this.usingTLS=!0,this.updateStrategy(),this.retryIn(0)}),refused:e(()=>{this.disconnect()}),backoff:e(()=>{this.retryIn(1e3)}),retry:e(()=>{this.retryIn(0)})}}setConnection(e){for(var t in this.connection=e,this.connectionCallbacks)this.connection.bind(t,this.connectionCallbacks[t]);this.resetActivityCheck()}abandonConnection(){if(this.connection){for(var e in this.stopActivityCheck(),this.connectionCallbacks)this.connection.unbind(e,this.connectionCallbacks[e]);var t=this.connection;return this.connection=null,t}}updateState(e,t){var n=this.state;if(this.state=e,n!==e){var r=e;"connected"===r&&(r+=" with new socket ID "+t.socket_id),Q.debug("State changed",n+" -> "+r),this.timeline.info({state:e,params:t}),this.emit("state_change",{previous:n,current:e}),this.emit(e,t)}}shouldRetry(){return"connecting"===this.state||"connected"===this.state}}class eP{constructor(){this.channels={}}add(e,t){return this.channels[e]||(this.channels[e]=function(e,t){if(0===e.indexOf("private-encrypted-")){if(t.config.nacl)return eR.createEncryptedChannel(e,t,t.config.nacl);let n=y("encryptedChannelSupport");throw new k(`Tried to subscribe to a private-encrypted- channel but no nacl implementation available. ${n}`)}if(0===e.indexOf("private-"))return eR.createPrivateChannel(e,t);if(0===e.indexOf("presence-"))return eR.createPresenceChannel(e,t);if(0!==e.indexOf("#"))return eR.createChannel(e,t);throw new b('Cannot create a channel with name "'+e+'".')}(e,t)),this.channels[e]}all(){var e,t;return e=this.channels,t=[],H(e,function(e){t.push(e)}),t}find(e){return this.channels[e]}remove(e){var t=this.channels[e];return delete this.channels[e],t}disconnect(){H(this.channels,function(e){e.disconnect()})}}var eR={createChannels:()=>new eP,createConnectionManager:(e,t)=>new eN(e,t),createChannel:(e,t)=>new eA(e,t),createPrivateChannel:(e,t)=>new eD(e,t),createPresenceChannel:(e,t)=>new eE(e,t),createEncryptedChannel:(e,t,n)=>new eM(e,t,n),createTimelineSender:(e,t)=>new eC(e,t),createHandshake:(e,t)=>new ek(e,t),createAssistantToTheTransportManager:(e,t,n)=>new e_(e,t,n)};class eI{constructor(e){this.options=e||{},this.livesLeft=this.options.lives||1/0}getAssistant(e){return eR.createAssistantToTheTransportManager(this,e,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})}isAlive(){return this.livesLeft>0}reportDeath(){this.livesLeft-=1}}class eF{constructor(e,t){this.strategies=e,this.loop=!!t.loop,this.failFast=!!t.failFast,this.timeout=t.timeout,this.timeoutLimit=t.timeoutLimit}isSupported(){return K(this.strategies,B.method("isSupported"))}connect(e,t){var n=this.strategies,r=0,i=this.timeout,o=null,s=(a,l)=>{l?t(null,l):(r+=1,this.loop&&(r%=n.length),r<n.length?(i&&(i*=2,this.timeoutLimit&&(i=Math.min(i,this.timeoutLimit))),o=this.tryStrategy(n[r],e,{timeout:i,failFast:this.failFast},s)):t(!0))};return o=this.tryStrategy(n[r],e,{timeout:i,failFast:this.failFast},s),{abort:function(){o.abort()},forceMinPriority:function(t){e=t,o&&o.forceMinPriority(t)}}}tryStrategy(e,t,n,r){var i=null,o=null;return n.timeout>0&&(i=new z(n.timeout,function(){o.abort(),r(!0)})),o=e.connect(t,function(e,t){(!(e&&i&&i.isRunning())||n.failFast)&&(i&&i.ensureAborted(),r(e,t))}),{abort:function(){i&&i.ensureAborted(),o.abort()},forceMinPriority:function(e){o.forceMinPriority(e)}}}}class eL{constructor(e){this.strategies=e}isSupported(){return K(this.strategies,B.method("isSupported"))}connect(e,t){var n,r,i,o;return n=this.strategies,r=e,i=function(e,n){return function(r,i){if(n[e].error=r,r){(function(e){for(var t=0;t<e.length;t++)if(!e[t].error)return!1;return!0})(n)&&t(!0);return}U(n,function(e){e.forceMinPriority(i.transport.priority)}),t(null,i)}},o=G(n,function(e,t,n,o){return e.connect(r,i(t,o))}),{abort:function(){U(o,ej)},forceMinPriority:function(e){U(o,function(t){t.forceMinPriority(e)})}}}}function ej(e){e.error||e.aborted||(e.abort(),e.aborted=!0)}class ez{constructor(e,t,n){this.strategy=e,this.transports=t,this.ttl=n.ttl||18e5,this.usingTLS=n.useTLS,this.timeline=n.timeline}isSupported(){return this.strategy.isSupported()}connect(e,t){var n=this.usingTLS,r=function(e){var t=e3.getLocalStorage();if(t)try{var n=t[e$(e)];if(n)return JSON.parse(n)}catch(t){eB(e)}return null}(n),i=r&&r.cacheSkipCount?r.cacheSkipCount:0,o=[this.strategy];if(r&&r.timestamp+this.ttl>=B.now()){var s=this.transports[r.transport];
3s&&(["ws","wss"].includes(r.transport)||i>3?(this.timeline.info({cached:!0,transport:r.transport,latency:r.latency}),o.push(new eF([s],{timeout:2*r.latency+1e3,failFast:!0}))):i++)}var a=B.now(),l=o.pop().connect(e,function r(s,c){s?(eB(n),o.length>0?(a=B.now(),l=o.pop().connect(e,r)):t(s)):(function(e,t,n,r){var i=e3.getLocalStorage();if(i)try{i[e$(e)]=X({timestamp:B.now(),transport:t,latency:n,cacheSkipCount:r})}catch(e){}}(n,c.transport.name,B.now()-a,i),t(null,c))});return{abort:function(){l.abort()},forceMinPriority:function(t){e=t,l&&l.forceMinPriority(t)}}}}function e$(e){return"pusherTransport"+(e?"TLS":"NonTLS")}function eB(e){var t=e3.getLocalStorage();if(t)try{delete t[e$(e)]}catch(e){}}class eV{constructor(e,{delay:t}){this.strategy=e,this.options={delay:t}}isSupported(){return this.strategy.isSupported()}connect(e,t){var n,r=this.strategy,i=new z(this.options.delay,function(){n=r.connect(e,t)});return{abort:function(){i.ensureAborted(),n&&n.abort()},forceMinPriority:function(t){e=t,n&&n.forceMinPriority(t)}}}}class eY{constructor(e,t,n){this.test=e,this.trueBranch=t,this.falseBranch=n}isSupported(){return(this.test()?this.trueBranch:this.falseBranch).isSupported()}connect(e,t){return(this.test()?this.trueBranch:this.falseBranch).connect(e,t)}}class eq{constructor(e){this.strategy=e}isSupported(){return this.strategy.isSupported()}connect(e,t){var n=this.strategy.connect(e,function(e,r){r&&n.abort(),t(e,r)});return n}}function eH(e){return function(){return e.isSupported()}}var eW={getRequest:function(e){var t=new window.XDomainRequest;return t.ontimeout=function(){e.emit("error",new _),e.close()},t.onerror=function(t){e.emit("error",t),e.close()},t.onprogress=function(){t.responseText&&t.responseText.length>0&&e.onChunk(200,t.responseText)},t.onload=function(){t.responseText&&t.responseText.length>0&&e.onChunk(200,t.responseText),e.emit("finished",200),e.close()},t},abortRequest:function(e){e.ontimeout=e.onerror=e.onprogress=e.onload=null,e.abort()}};class eU extends es{constructor(e,t,n){super(),this.hooks=e,this.method=t,this.url=n}start(e){this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=()=>{this.close()},e3.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(e)}close(){this.unloader&&(e3.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)}onChunk(e,t){for(;;){var n=this.advanceBuffer(t);if(n)this.emit("chunk",{status:e,data:n});else break}this.isBufferTooLong(t)&&this.emit("buffer_too_long")}advanceBuffer(e){var t=e.slice(this.position),n=t.indexOf("\n");return -1!==n?(this.position+=n+1,t.slice(0,n)):null}isBufferTooLong(e){return this.position===e.length&&e.length>262144}}(o=l||(l={}))[o.CONNECTING=0]="CONNECTING",o[o.OPEN=1]="OPEN",o[o.CLOSED=3]="CLOSED";var eG=l,eZ=1;function eJ(e){var t=-1===e.indexOf("?")?"?":"&";return e+t+"t="+ +new Date+"&n="+eZ++}function eK(e){return e3.randomInt(e)}var eX=class{constructor(e,t){var n,r;this.hooks=e,this.session=eK(1e3)+"/"+function(){for(var e=[],t=0;t<8;t++)e.push(eK(32).toString(32));return e.join("")}(),this.location=(n=t,{base:(r=/([^\?]*)\/*(\??.*)/.exec(n))[1],queryString:r[2]}),this.readyState=eG.CONNECTING,this.openStream()}send(e){return this.sendRaw(JSON.stringify([e]))}ping(){this.hooks.sendHeartbeat(this)}close(e,t){this.onClose(e,t,!0)}sendRaw(e){if(this.readyState!==eG.OPEN)return!1;try{var t,n;return e3.createSocketRequest("POST",eJ((t=this.location,n=this.session,t.base+"/"+n+"/xhr_send"))).start(e),!0}catch(e){return!1}}reconnect(){this.closeStream(),this.openStream()}onClose(e,t,n){this.closeStream(),this.readyState=eG.CLOSED,this.onclose&&this.onclose({code:e,reason:t,wasClean:n})}onChunk(e){if(200===e.status){var t;switch(this.readyState===eG.OPEN&&this.onActivity(),e.data.slice(0,1)){case"o":t=JSON.parse(e.data.slice(1)||"{}"),this.onOpen(t);break;case"a":t=JSON.parse(e.data.slice(1)||"[]");for(var n=0;n<t.length;n++)this.onEvent(t[n]);break;case"m":t=JSON.parse(e.data.slice(1)||"null"),this.onEvent(t);break;case"h":this.hooks.onHeartbeat(this);break;case"c":t=JSON.parse(e.data.slice(1)||"[]"),this.onClose(t[0],t[1],!0)}}}onOpen(e){var t,n,r;this.readyState===eG.CONNECTING?(e&&e.hostname&&(this.location.base=(t=this.location.base,n=e.hostname,(r=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(t))[1]+n+r[3])),this.readyState=eG.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(e){this.readyState===eG.OPEN&&this.onmessage&&this.onmessage({data:e})}onActivity(){this.onactivity&&this.onactivity()}
3onError(e){this.onerror&&this.onerror(e)}openStream(){this.stream=e3.createSocketRequest("POST",eJ(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",e=>{this.onChunk(e)}),this.stream.bind("finished",e=>{this.hooks.onFinished(this,e)}),this.stream.bind("buffer_too_long",()=>{this.reconnect()});try{this.stream.start()}catch(e){B.defer(()=>{this.onError(e),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}},eQ={getReceiveURL:function(e,t){return e.base+"/"+t+"/xhr_streaming"+e.queryString},onHeartbeat:function(e){e.sendRaw("[]")},sendHeartbeat:function(e){e.sendRaw("[]")},onFinished:function(e,t){e.onClose(1006,"Connection interrupted ("+t+")",!1)}},e0={getReceiveURL:function(e,t){return e.base+"/"+t+"/xhr"+e.queryString},onHeartbeat:function(){},sendHeartbeat:function(e){e.sendRaw("[]")},onFinished:function(e,t){200===t?e.reconnect():e.onClose(1006,"Connection interrupted ("+t+")",!1)}},e1={getRequest:function(e){var t=new(e3.getXHRAPI());return t.onreadystatechange=t.onprogress=function(){switch(t.readyState){case 3:t.responseText&&t.responseText.length>0&&e.onChunk(t.status,t.responseText);break;case 4:t.responseText&&t.responseText.length>0&&e.onChunk(t.status,t.responseText),e.emit("finished",t.status),e.close()}},t},abortRequest:function(e){e.onreadystatechange=null,e.abort()}},e2={createStreamingSocket(e){return this.createSocket(eQ,e)},createPollingSocket(e){return this.createSocket(e0,e)},createSocket:(e,t)=>new eX(e,t),createXHR(e,t){return this.createRequest(e1,e,t)},createRequest:(e,t,n)=>new eU(e,t,n)};e2.createXDR=function(e,t){return this.createRequest(eW,e,t)};var e3={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:u,DependenciesReceivers:p,getDefaultStrategy:function(e,t,n){var r,i={};function o(t,r,o,s,a){var l=n(e,t,r,o,s,a);return i[t]=l,l}var s=Object.assign({},t,{hostNonTLS:e.wsHost+":"+e.wsPort,hostTLS:e.wsHost+":"+e.wssPort,httpPath:e.wsPath}),a=Object.assign({},s,{useTLS:!0}),l=Object.assign({},t,{hostNonTLS:e.httpHost+":"+e.httpPort,hostTLS:e.httpHost+":"+e.httpsPort,httpPath:e.httpPath}),c={loop:!0,timeout:15e3,timeoutLimit:6e4},u=new eI({minPingDelay:1e4,maxPingDelay:e.activityTimeout}),d=new eI({lives:2,minPingDelay:1e4,maxPingDelay:e.activityTimeout}),h=o("ws","ws",3,s,u),f=o("wss","ws",3,a,u),p=o("sockjs","sockjs",1,l),m=o("xhr_streaming","xhr_streaming",1,l,d),g=o("xdr_streaming","xdr_streaming",1,l,d),y=o("xhr_polling","xhr_polling",1,l),v=o("xdr_polling","xdr_polling",1,l),b=new eF([h],c),_=new eF([f],c),w=new eF([p],c),x=new eF([new eY(eH(m),m,g)],c),k=new eF([new eY(eH(y),y,v)],c),C=new eF([new eY(eH(x),new eL([x,new eV(k,{delay:4e3})]),k)],c),A=new eY(eH(C),C,w);return r=new eL(t.useTLS?[b,new eV(A,{delay:2e3})]:[b,new eV(_,{delay:2e3}),new eV(A,{delay:5e3}
3)]),new ez(new eq(new eY(eH(h),r,A)),i,{ttl:18e5,timeline:t.timeline,useTLS:t.useTLS})},Transports:ep,transportConnectionInitializer:function(){var e=this;e.timeline.info(e.buildTimelineMessage({transport:e.name+(e.options.useTLS?"s":"")})),e.hooks.isInitialized()?e.changeState("initialized"):e.hooks.file?(e.changeState("initializing"),m.load(e.hooks.file,{useTLS:e.options.useTLS},function(t,n){e.hooks.isInitialized()?(e.changeState("initialized"),n(!0)):(t&&e.onError(t),e.onClose(),n(!1))})):e.onClose()},HTTPFactory:e2,TimelineTransport:{name:"jsonp",getAgent:function(e,t){return function(n,r){var i="http"+(t?"s":"")+"://"+(e.host||e.options.host)+e.options.path,o=e3.createJSONPRequest(i,n),s=e3.ScriptReceivers.create(function(t,n){u.remove(s),o.cleanup(),n&&n.host&&(e.host=n.host),r&&r(t,n)});o.send(s)}}},getXHRAPI:()=>window.XMLHttpRequest,getWebSocketAPI:()=>window.WebSocket||window.MozWebSocket,setup(e){window.Pusher=e;var t=()=>{this.onDocumentBody(e.ready)};window.JSON?t():m.load("json2",{},t)},getDocument:()=>document,getProtocol(){return this.getDocument().location.protocol},getAuthorizers:()=>({ajax:S,jsonp:ee}),onDocumentBody(e){document.body?e():setTimeout(()=>{this.onDocumentBody(e)},0)},createJSONPRequest:(e,t)=>new en(e,t),createScriptRequest:e=>new et(e),getLocalStorage(){try{return window.localStorage}catch(e){return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){return new(this.getXHRAPI())},createMicrosoftXHR:()=>new ActiveXObject("Microsoft.XMLHTTP"),getNetwork:()=>eb,createWebSocket(e){return new(this.getWebSocketAPI())(e)},createSocketRequest(e,t){if(this.isXHRSupported())return this.HTTPFactory.createXHR(e,t);if(this.isXDRSupported(0===t.indexOf("https:")))return this.HTTPFactory.createXDR(e,t);throw"Cross-origin HTTP requests are not supported"},isXHRSupported(){var e=this.getXHRAPI();return!!e&&void 0!==new e().withCredentials},isXDRSupported(e){var t=this.getProtocol();return!!window.XDomainRequest&&t===(e?"https:":"http:")},addUnloadListener(e){void 0!==window.addEventListener?window.addEventListener("unload",e,!1):void 0!==window.attachEvent&&window.attachEvent("onunload",e)},removeUnloadListener(e){void 0!==window.addEventListener?window.removeEventListener("unload",e,!1):void 0!==window.detachEvent&&window.detachEvent("onunload",e)},randomInt:e=>Math.floor((window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0]/0x100000000*e)};(s=c||(c={}))[s.ERROR=3]="ERROR",s[s.INFO=6]="INFO",s[s.DEBUG=7]="DEBUG";var e4=c;class e5{constructor(e,t,n){this.key=e,this.session=t,this.events=[],this.options=n||{},this.sent=0,this.uniqueID=0}log(e,t){e<=this.options.level&&(this.events.push(V({},t,{timestamp:B.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())}error(e){this.log(e4.ERROR,e)}info(e){this.log(e4.INFO,e)}debug(e){this.log(e4.DEBUG,e)}isEmpty(){return 0===this.events.length}send(e,t){var n=V({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],e(n,(e,n)=>{!e&&this.sent++,t&&t(e,n)}),!0}generateUniqueID(){return this.uniqueID++,this.uniqueID}}class e6{constructor(e,t,n,r){this.name=e,this.priority=t,this.transport=n,this.options=r||{}}isSupported(){return this.transport.isSupported({useTLS:this.options.useTLS})}connect(e,t){if(!this.isSupported())return e9(new A,t);if(this.priority<e)return e9(new w,t);var n=!1,r=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),i=null,o=function(){r.unbind("initialized",o),r.connect()},s=function(){i=eR.createHandshake(r,function(e){n=!0,c(),t(null,e)})},a=function(e){c(),t(e)},l=function(){c(),t(new x(X(r)))},c=function(){r.unbind("initialized",o),r.unbind("open",s),r.unbind("error",a),r.unbind("closed",l)};return r.bind("initialized",o),r.bind("open",s),r.bind("error",a),r.bind("closed",l),r.initialize(),{abort:()=>{n||(c(),i?i.close():r.close())},forceMinPriority:e=>{!n&&this.priority<e&&(i?i.close():r.close())}}}}function e9(e,t){return B.defer(function(){t(e)}),{abort:function(){},forceMinPriority:function(){}}}let{Transports:e8}=e3;var e7=function(e,t,n,r,i,o){var s,a=e8[n];if(!a)throw new C(n);return e.enabledTransports&&-1===q(e.enabledTransports,t)||e.disabledTransports&&-1!==q(e.disabledTransports,t)?s=te:(i=Object.assign({ignoreNullOrigin:e.ignoreNullOrigin},i),s=new e6(t,r,o?o.getAssistant(a):a,i)),s},te={isSupported:function(){return!1},connect:function(e,t){var n=B.defer(function(){t(new A)});return{abort:function(){n.ensureAborted()},forceMinPriority:function(){}}}};class tt extends es{constructor(e){super(function(e,t){Q.debug(`No callbacks on watchlist events for ${e}`)}),this.pusher=e,this.bindWatchlistInternalEvent()}
3handleEvent(e){e.data.events.forEach(e=>{this.emit(e.name,e)})}bindWatchlistInternalEvent(){this.pusher.connection.bind("message",e=>{"pusher_internal:watchlist_events"===e.event&&this.handleEvent(e)})}}var tn=function(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}};class tr extends es{constructor(e){super(function(e,t){Q.debug("No callbacks on user for "+e)}),this.signin_requested=!1,this.user_data=null,this.serverToUserChannel=null,this.signinDonePromise=null,this._signinDoneResolve=null,this._onAuthorize=(e,t)=>{if(e){Q.warn(`Error during signin: ${e}`),this._cleanup();return}this.pusher.send_event("pusher:signin",{auth:t.auth,user_data:t.user_data})},this.pusher=e,this.pusher.connection.bind("state_change",({previous:e,current:t})=>{"connected"!==e&&"connected"===t&&this._signin(),"connected"===e&&"connected"!==t&&(this._cleanup(),this._newSigninPromiseIfNeeded())}),this.watchlist=new tt(e),this.pusher.connection.bind("message",e=>{"pusher:signin_success"===e.event&&this._onSigninSuccess(e.data),this.serverToUserChannel&&this.serverToUserChannel.name===e.channel&&this.serverToUserChannel.handleEvent(e)})}signin(){this.signin_requested||(this.signin_requested=!0,this._signin())}_signin(){this.signin_requested&&(this._newSigninPromiseIfNeeded(),"connected"===this.pusher.connection.state&&this.pusher.config.userAuthenticator({socketId:this.pusher.connection.socket_id},this._onAuthorize))}_onSigninSuccess(e){try{this.user_data=JSON.parse(e.user_data)}catch(t){Q.error(`Failed parsing user data after signin: ${e.user_data}`),this._cleanup();return}if("string"!=typeof this.user_data.id||""===this.user_data.id){Q.error(`user_data doesn't contain an id. user_data: ${this.user_data}`),this._cleanup();return}this._signinDoneResolve(),this._subscribeChannels()}_subscribeChannels(){let e=e=>{e.subscriptionPending&&e.subscriptionCancelled?e.reinstateSubscription():e.subscriptionPending||"connected"!==this.pusher.connection.state||e.subscribe()};this.serverToUserChannel=new eA(`#server-to-user-${this.user_data.id}`,this.pusher),this.serverToUserChannel.bind_global((e,t)=>{0!==e.indexOf("pusher_internal:")&&0!==e.indexOf("pusher:")&&this.emit(e,t)}),e(this.serverToUserChannel)}_cleanup(){this.user_data=null,this.serverToUserChannel&&(this.serverToUserChannel.unbind_all(),this.serverToUserChannel.disconnect(),this.serverToUserChannel=null),this.signin_requested&&this._signinDoneResolve()}_newSigninPromiseIfNeeded(){if(!this.signin_requested||this.signinDonePromise&&!this.signinDonePromise.done)return;let{promise:e,resolve:t,reject:n}=tn();e.done=!1;let r=()=>{e.done=!0};e.then(r).catch(r),this.signinDonePromise=e,this._signinDoneResolve=t}}class ti{static ready(){ti.isReady=!0;for(var e=0,t=ti.instances.length;e<t;e++)ti.instances[e].connect()}static getClientFeatures(){return W(J({ws:e3.Transports.ws},function(e){return e.isSupported({})}))}constructor(e,t){let n;var r,i,o,s,l=e;if(null==l)throw"You must pass your app key when you instantiate Pusher.";if(null==t)throw"You must pass an options object";if(null==t.cluster)throw"Options object must provide a cluster";"disableStats"in t&&Q.warn("The disableStats option is deprecated in favor of enableStats"),this.key=e,this.config=(n={activityTimeout:t.activityTimeout||12e4,cluster:t.cluster,httpPath:t.httpPath||"/pusher",httpPort:t.httpPort||80,httpsPort:t.httpsPort||443,pongTimeout:t.pongTimeout||3e4,statsHost:t.statsHost||"stats.pusher.com",unavailableTimeout:t.unavailableTimeout||1e4,wsPath:t.wsPath||"",wsPort:t.wsPort||80,wssPort:t.wssPort||443,enableStats:"enableStats"in(r=t)?r.enableStats:"disableStats"in r&&!r.disableStats,httpHost:(i=t).httpHost?i.httpHost:i.cluster?`sockjs-${i.cluster}.pusher.com`:"sockjs.pusher.com",useTLS:function(e){if("https:"===e3.getProtocol());else if(!1===e.forceTLS)return!1;return!0}(t),wsHost:(o=t).wsHost?o.wsHost:(s=o.cluster,`ws-${s}.pusher.com`),userAuthenticator:function(e){let t=Object.assign(Object.assign({},h),e.userAuthentication);if("customHandler"in t&&null!=t.customHandler)return t.customHandler;if(void 0===e3.getAuthorizers()[t.transport])throw`'${t.transport}' is not a recognized auth transport`;return(e,n)=>{let r=((e,t)=>{var n="socket_id="+encodeURIComponent(e.socketId);for(var r in t.params)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(t.params[r]);if(null!=t.paramsProvider){let e=t.paramsProvider();for(var r in e)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(e[r])}return n})(e,t);e3.getAuthorizers()[t.transport](e3,r,t,a.UserAuthentication,n)}}(t),channelAuthorizer:function(e,t){let n=function(e,t){let n;if("channelAuthorization"in e)n=Object.assign(Object.assign({},f),e.channelAuthorization);else{var r,i;let o;n={transport:e.authTransport||"ajax",endpoint:e.authEndpoint||"/pusher/auth"},"auth"in e&&("params"in e.auth&&(n.params=e.auth.params),"headers"in e.auth&&(n.headers=e.auth.headers)),"authorizer"in e&&(n.customHandler=(r=n,i=e.authorizer,o={authTransport:r.transport,authEndpoint:r.endpoint,auth:{params:r.params,headers:r.headers}},(e,n)=>{i(t.channel(e.channelName),o).authorize(e.socketId,n)}))}return n}(e,t);if("customHandler"in n&&null!=n.customHandler)return n.customHandler;if(void 0===e3.getAuthorizers()[n.transport])throw`'${n.transport}' is not a recognized auth transport`;return(e,t)=>{let r=((e,t)=>{var n="socket_id="+encodeURIComponent(e.socketId);for(var r in n+="&channel_name="+encodeURIComponent(e.channelName),t.params)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(t.params[r]);if(null!=t.paramsProvider){let e=t.paramsProvider();for(var r in e)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(e[r])}return n})(e,n);e3.getAuthorizers()[n.transport](e3,r,n,a.ChannelAuthorization,t)}}(t,this)},"disabledTransports"in t&&(n.disabledTransports=t.disabledTransports),"enabledTransports"in t&&(n.enabledTransports=t.enabledTransports),"ignoreNullOrigin"in t&&(n.ignoreNullOrigin=t.ignoreNullOrigin),"timelineParams"in t&&(n.timelineParams=t.timelineParams),"nacl"in t&&(n.nacl=t.nacl),n),this.channels=eR.createChannels(),this.global_emitter=new es,this.sessionID=e3.randomInt(1e9),this.timeline=new e5(this.key,this.sessionID,{cluster:this.config.cluster,features:ti.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:e4.INFO,version:d}),this.config.enableStats&&(this.timelineSender=eR.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+e3.TimelineTransport.name}));var c=e=>e3.getDefaultStrategy(this.config,e,e7);this.connection=eR.createConnectionManager(this.key,{getStrategy:c,timeline:this.timeline,activityTimeout:this.config.activityTimeout,pongTimeout:this.config.pongTimeout,unavailableTimeout:this.config.unavailableTimeout,useTLS:!!this.config.useTLS}),this.connection.bind("connected",()=>{this.subscribeAll(),this.timelineSender&&this.timelineSender.send(this.connection.isUsingTLS())}),this.connection.bind("message",e=>{var t=0===e.event.indexOf("pusher_internal:");if(e.channel){var n=this.channel(e.channel);n&&n.handleEvent(e)}t||this.global_emitter.emit(e.event,e.data)}),this.connection.bind("connecting",()=>{this.channels.disconnect()}),this.connection.bind("disconnected",()=>{this.channels.disconnect()}),this.connection.bind("error",e=>{Q.warn(e)}),ti.instances.push(this),this.timeline.info({instances:ti.instances.length}),this.user=new tr(this),ti.isReady&&this.connect()}channel(e){return this.channels.find(e)}allChannels(){return this.channels.all()}connect(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var e=this.connection.isUsingTLS(),t=this.timelineSender;this.timelineSenderTimer=new $(6e4,function(){t.send(e)})}}disconnect(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}
3bind(e,t,n){return this.global_emitter.bind(e,t,n),this}unbind(e,t,n){return this.global_emitter.unbind(e,t,n),this}bind_global(e){return this.global_emitter.bind_global(e),this}unbind_global(e){return this.global_emitter.unbind_global(e),this}unbind_all(e){return this.global_emitter.unbind_all(),this}subscribeAll(){var e;for(e in this.channels.channels)this.channels.channels.hasOwnProperty(e)&&this.subscribe(e)}subscribe(e){var t=this.channels.add(e,this);return t.subscriptionPending&&t.subscriptionCancelled?t.reinstateSubscription():t.subscriptionPending||"connected"!==this.connection.state||t.subscribe(),t}unsubscribe(e){var t=this.channels.find(e);t&&t.subscriptionPending?t.cancelSubscription():(t=this.channels.remove(e))&&t.subscribed&&t.unsubscribe()}send_event(e,t,n){return this.connection.send_event(e,t,n)}shouldUseTLS(){return this.config.useTLS}signin(){this.user.signin()}}ti.instances=[],ti.isReady=!1,ti.logToConsole=!1,ti.Runtime=e3,ti.ScriptReceivers=e3.ScriptReceivers,ti.DependenciesReceivers=e3.DependenciesReceivers,ti.auth_callbacks=e3.auth_callbacks;var to=t.default=ti;e3.setup(ti)}],t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,(function(t){return e[t]}).bind(null,i));return 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=2)}()},377392:function(e,t,n){"use strict";var r,i=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 n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};t.__esModule=!0;var s=n(939067),a=n(514041),l=n(514041),c=n(848480),u=o({},c.Image.propTypes,{indicator:s.bool,indicatorColor:s.string,indicatorSize:s.oneOfType([s.oneOf(["small","large"]),s.number]),originalHeight:s.number,originalWidth:s.number}),d=c.StyleSheet.create({container:{alignItems:"center",justifyContent:"center"}});t.default=function(e){function t(t){var n=e.call(this,t)||this;if(n.ImageComponent=c.ImageBackground||c.Image,n.mounted=!1,n.sizeStyle={},n.shouldDisplayIndicator=function(){return n.state.isLoading&&!1!==n.props.indicator},n.onLoad=function(){n.state.isLoading&&n.setState({isLoading:!1}),"function"==typeof n.props.onLoad&&n.props.onLoad()},n.onLoadStart=function(){n.isFirstLoad&&(n.setState({isLoading:!0}),n.isFirstLoad=!1)},n.onError=function(){n.state.isLoading&&n.setState({isLoading:!1})},n.getHeight=function(){return n.style&&n.style.height?Number(n.style.height):Math.round(n.getOriginalHeight()*n.getRatio())},n.getOriginalHeight=function(){return n.props.originalHeight||n.state.originalHeight||0},n.getOriginalWidth=function(){return n.props.originalWidth||n.state.originalWidth||0},n.getRatio=function(){return 0===n.getOriginalWidth()?0:n.state.layoutWidth/n.getOriginalWidth()},n.onLayout=function(e){var t=e.nativeEvent.layout.width;n.setState({layoutWidth:t})},n.fetchOriginalSizeFromRemoteImage=function(){var e;(e=n.props.source instanceof Array?n.props.source[0].uri:n.props.source.uri)&&c.Image.getSize(e,function(e,t){n.mounted&&n.setOriginalSize(e,t)},function(){return null})},n.setOriginalSize=function(e,t){n.setState({originalHeight:t,originalWidth:e})},n.renderActivityIndicator=function(){return a.createElement(c.ActivityIndicator,{color:n.props.indicatorColor,size:n.props.indicatorSize})},n.style=c.StyleSheet.flatten(t.style),n.style){if(1===[n.style.width,n.style.height].filter(
3Boolean).length)throw Error("Props error: size props must be present none or both of width and height.");n.style.width?n.sizeStyle={width:n.style.width}:n.sizeStyle={flexGrow:1}}if(1===[t.originalWidth,t.originalHeight].filter(Boolean).length)throw Error("Props error: originalSize props must be present none or both of originalWidth and originalHeight.");return n.isFirstLoad=!0,n.state={isLoading:!1,layoutWidth:0,originalHeight:0,originalWidth:0},n}return i(t,e),t.prototype.componentDidMount=function(){this.mounted=!0,this.props.originalWidth&&this.props.originalHeight||this.fetchOriginalSizeFromRemoteImage()},t.prototype.componentWillUnmount=function(){this.mounted=!1},t.prototype.render=function(){var e=this.ImageComponent;return a.createElement(e,o({},this.props,{onLayout:this.onLayout,onLoad:this.onLoad,onLoadStart:this.onLoadStart,onError:this.onError,source:this.props.source,style:[this.style,this.sizeStyle,{height:this.getHeight()},d.container]}),this.shouldDisplayIndicator()?this.renderActivityIndicator():this.props.children)},t.propTypes=u,t}(l.Component)},213702:function(e,t,n){"use strict";function r(){return new Promise((e,t)=>{e(!0)})}var i=n(327279).A&&"function"==typeof window.matchMedia?window.matchMedia("(prefers-reduced-motion: reduce)"):null,o={},s={isScreenReaderEnabled:r,isReduceMotionEnabled:function(){return new Promise((e,t)=>{e(!i||i.matches)})},fetch:r,addEventListener:function(e,t){if("reduceMotionChanged"===e){if(!i)return;var n=e=>{t(e.matches)};null!=i&&(null!=i.addEventListener?i.addEventListener("change",n):i.addListener(n)),o[t]=n}return{remove:()=>s.removeEventListener(e,t)}},setAccessibilityFocus:function(e){},announceForAccessibility:function(e){},removeEventListener:function(e,t){if("reduceMotionChanged"===e){var n=o[t];n&&i&&null!=i&&(null!=i.removeEventListener?i.removeEventListener("change",n):i.removeListener(n))}}};t.A=s},889332:function(e,t,n){"use strict";n.d(t,{A:function(){return eG}});var r,i,o=n(67656),s=n(388569),a=n(931489),l=n(514041),c=n(319825),u=n(987552),d=n(639299),h=n(741469),f=n.n(h),p=n(645122),m=s.A,g=("ios"===m.OS&&n.g.RN$Bridgeless,null),y=1,v=1,b=new Set,_=!1,w=[];"android"===m.OS&&null!=g&&g.queueAndExecuteBatchedOperations;var x=null,k={getValue:function(e,t){f()(g,"Native animated module is not available"),k.queueOperation(g.getValue,e,t)},setWaitingForIdentifier:function(e){b.add(e),_=!0},unsetWaitingForIdentifier:function(e){b.delete(e),0===b.size&&(_=!1,k.disableQueue())},disableQueue:function(){f()(g,"Native animated module is not available"),k.flushQueue()},flushQueue:function(){},queueOperation:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];_||0!==w.length?w.push(()=>e(...n)):e(...n)},createAnimatedNode:function(e,t){f()(g,"Native animated module is not available"),k.queueOperation(g.createAnimatedNode,e,t)},updateAnimatedNodeConfig:function(e,t){f()(g,"Native animated module is not available")},startListeningToAnimatedNodeValue:function(e){f()(g,"Native animated module is not available"),k.queueOperation(g.startListeningToAnimatedNodeValue,e)},stopListeningToAnimatedNodeValue:function(e){f()(g,"Native animated module is not available"),k.queueOperation(g.stopListeningToAnimatedNodeValue,e)},connectAnimatedNodes:function(e,t){f()(g,"Native animated module is not available"),k.queueOperation(g.connectAnimatedNodes,e,t)},disconnectAnimatedNodes:function(e,t){f()(g,"Native animated module is not available"),k.queueOperation(g.disconnectAnimatedNodes,e,t)},startAnimatingNode:function(e,t,n,r){f()(g,"Native animated module is not available"),k.queueOperation(g.startAnimatingNode,e,t,n,r)},stopAnimation:function(e){f()(g,"Native animated module is not available"),k.queueOperation(g.stopAnimation,e)},setAnimatedNodeValue:function(e,t){f()(g,"Native animated module is not available"),k.queueOperation(g.setAnimatedNodeValue,e,t)},setAnimatedNodeOffset:function(e,t){f()(g,"Native animated module is not available"),k.queueOperation(g.setAnimatedNodeOffset,e,t)},flattenAnimatedNodeOffset:function(e){f()(g,"Native animated module is not available"),k.queueOperation(g.flattenAnimatedNodeOffset,e)},extractAnimatedNodeOffset:function(e){f()(g,"Native animated module is not available"),k.queueOperation(g.extractAnimatedNodeOffset,e)},connectAnimatedNodeToView:function(e,t){f()(g,"Native animated module is not available"),k.queueOperation(g.connectAnimatedNodeToView,e,t)},disconnectAnimatedNodeFromView:function(e,t){f()(g,"Native animated module is not available"),k.queueOperation(g.disconnectAnimatedNodeFromView,e,t)},restoreDefaultValues:function(e){f()(g,"Native animated module is not available"),null!=g.restoreDefaultValues&&k.queueOperation(g.restoreDefaultValues,e)},dropAnimatedNode:function(e){f()(g,"Native animated module is not available"),k.queueOperation(g.dropAnimatedNode,e)},addAnimatedEventToView:function(e,t,n){f()(g,"Native animated module is not available"),k.queueOperation(g.addAnimatedEventToView,e,t,n)}
3,removeAnimatedEventFromView(e,t,n){f()(g,"Native animated module is not available"),k.queueOperation(g.removeAnimatedEventFromView,e,t,n)}},C={backgroundColor:!0,borderBottomColor:!0,borderColor:!0,borderEndColor:!0,borderLeftColor:!0,borderRightColor:!0,borderStartColor:!0,borderTopColor:!0,color:!0,tintColor:!0},A=(0,o.A)((0,o.A)({},C),{},{borderBottomEndRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderBottomStartRadius:!0,borderRadius:!0,borderTopEndRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderTopStartRadius:!0,elevation:!0,opacity:!0,transform:!0,zIndex:!0,shadowOpacity:!0,shadowRadius:!0,scaleX:!0,scaleY:!0,translateX:!0,translateY:!0}),D={translateX:!0,translateY:!0,scale:!0,scaleX:!0,scaleY:!0,rotate:!0,rotateX:!0,rotateY:!0,rotateZ:!0,perspective:!0},S={inputRange:!0,outputRange:!0,extrapolate:!0,extrapolateRight:!0,extrapolateLeft:!0};function E(e){return A.hasOwnProperty(e)}function T(e){return D.hasOwnProperty(e)}function O(e){return S.hasOwnProperty(e)}function M(){return v++}var N=!1;function P(e){return(null==e.useNativeDriver&&console.warn("Animated: `useNativeDriver` was not specified. This is a required option and must be explicitly set to `true` or `false`"),!0!==e.useNativeDriver||g)?e.useNativeDriver||!1:(N||(console.warn("Animated: `useNativeDriver` is not supported because the native animated module is missing. Falling back to JS-based animation. To resolve this, add `RCTAnimation` module to this app, or remove `useNativeDriver`. Make sure to run `bundle exec pod install` first. Read more about autolinking: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md"),N=!0),!1)}var R={API:k,isSupportedColorStyleProp:function(e){return C.hasOwnProperty(e)},isSupportedStyleProp:E,isSupportedTransformProp:T,isSupportedInterpolationParam:O,addWhitelistedStyleProp:function(e){A[e]=!0},addWhitelistedTransformProp:function(e){D[e]=!0},addWhitelistedInterpolationParam:function(e){S[e]=!0}
3,validateStyles:function(e){for(var t in e)if(!E(t))throw Error("Style property '"+t+"' is not supported by native animated module")},validateTransform:function(e){e.forEach(e=>{if(!T(e.property))throw Error("Property '"+e.property+"' is not supported by native animated module")})},validateInterpolation:function(e){for(var t in e)if(!O(t))throw Error("Interpolation property '"+t+"' is not supported by native animated module")},generateNewNodeTag:function(){return y++},generateNewAnimationId:M,assertNativeAnimatedModule:function(){f()(g,"Native animated module is not available")},shouldUseNativeDriver:P,transformDataType:function(e){return"string"!=typeof e?e:/deg$/.test(e)?(parseFloat(e)||0)*Math.PI/180:e},get nativeEventEmitter(){return r||(r=new p.A("ios"!==m.OS?null:g)),r}},I=R.API,F=1,L=class{__attach(){}__detach(){this.__isNative&&null!=this.__nativeTag&&(R.API.dropAnimatedNode(this.__nativeTag),this.__nativeTag=void 0)}__getValue(){}__getAnimatedValue(){return this.__getValue()}__addChild(e){}__removeChild(e){}__getChildren(){return[]}constructor(){this._listeners={}}__makeNative(e){if(!this.__isNative)throw Error('This node cannot be made a "native" animated node');this._platformConfig=e,this.hasListeners()&&this._startListeningToNativeValueUpdates()}addListener(e){var t=String(F++);return this._listeners[t]=e,this.__isNative&&this._startListeningToNativeValueUpdates(),t}removeListener(e){delete this._listeners[e],this.__isNative&&!this.hasListeners()&&this._stopListeningForNativeValueUpdates()}removeAllListeners(){this._listeners={},this.__isNative&&this._stopListeningForNativeValueUpdates()}hasListeners(){return!!Object.keys(this._listeners).length}_startListeningToNativeValueUpdates(){(!this.__nativeAnimatedValueListener||this.__shouldUpdateListenersForNewNativeTag)&&(this.__shouldUpdateListenersForNewNativeTag&&(this.__shouldUpdateListenersForNewNativeTag=!1,this._stopListeningForNativeValueUpdates()),I.startListeningToAnimatedNodeValue(this.__getNativeTag()),this.__nativeAnimatedValueListener=R.nativeEventEmitter.addListener("onAnimatedValueUpdate",e=>{e.tag===this.__getNativeTag()&&this.__onAnimatedValueUpdateReceived(e.value)}))}__onAnimatedValueUpdateReceived(e){this.__callListeners(e)}__callListeners(e){for(var t in this._listeners)this._listeners[t]({value:e})}_stopListeningForNativeValueUpdates(){this.__nativeAnimatedValueListener&&(this.__nativeAnimatedValueListener.remove(),this.__nativeAnimatedValueListener=null,I.stopListeningToAnimatedNodeValue(this.__getNativeTag()))}__getNativeTag(){R.assertNativeAnimatedModule(),f()(this.__isNative,'Attempt to get native tag from node not marked as "native"');var e,t=null!=(e=this.__nativeTag)?e:R.generateNewNodeTag();if(null==this.__nativeTag){this.__nativeTag=t;var n=this.__getNativeConfig();this._platformConfig&&(n.platformConfig=this._platformConfig),R.API.createAnimatedNode(t,n),this.__shouldUpdateListenersForNewNativeTag=!0}return t}__getNativeConfig(){throw Error("This JS animated node type cannot be used as native animated node")}toJSON(){return this.__getValue()}__getPlatformConfig(){return this._platformConfig}__setPlatformConfig(e){this._platformConfig=e}},j=class extends L{constructor(){super(),this._children=[]}__makeNative(e){if(!this.__isNative){this.__isNative=!0;for(var t,n=(0,d.A)(this._children);!(t=n()).done;){var r=t.value;r.__makeNative(e),R.API.connectAnimatedNodes(this.__getNativeTag(),r.__getNativeTag())}}super.__makeNative(e)}__addChild(e){0===this._children.length&&this.__attach(),this._children.push(e),this.__isNative&&(e.__makeNative(this.__getPlatformConfig()),R.API.connectAnimatedNodes(this.__getNativeTag(),e.__getNativeTag()))}__removeChild(e){var t=this._children.indexOf(e);-1===t?console.warn("Trying to remove a child that doesn't exist"):(this.__isNative&&e.__isNative&&R.API.disconnectAnimatedNodes(this.__getNativeTag(),e.__getNativeTag()),this._children.splice(t,1),0===this._children.length&&this.__detach())}__getChildren(){return this._children}__callListeners(e){if(super.__callListeners(e),!this.__isNative)for(var t,n=(0,d.A)(this._children);!(t=n()).done;){var r=t.value;r.__getValue&&r.__callListeners(r.__getValue())}}},z=n(826772),$=n.n(z),B=e=>e;function V(e){if(e.outputRange&&"string"==typeof e.outputRange[0]){var t,n,r,i,s,a;return n=(t=e).outputRange,f()(n.length>=2,"Bad output range"),function(e){for(var t=e[0].replace(q,""),n=1;n<e.length;++n)f()(t===e[n].replace(q,""),"invalid pattern "+e[0]+" and "+e[n])}(n=n.map(Y)),r=n[0].match(q).map(()=>
3[]),n.forEach(e=>{e.match(q).forEach((e,t)=>{r[t].push(+e)})}),s=n[0].match(q).map((e,n)=>V((0,o.A)((0,o.A)({},t),{},{outputRange:r[n]}))),a="string"==typeof(i=n[0])&&i.startsWith("rgb"),e=>{var t=0;return n[0].replace(q,()=>{var n=+s[t++](e);return a&&(n=t<4?Math.round(n):Math.round(1e3*n)/1e3),String(n)})}}var l=e.outputRange,c=e.inputRange,u=e.easing||B,d="extend";void 0!==e.extrapolateLeft?d=e.extrapolateLeft:void 0!==e.extrapolate&&(d=e.extrapolate);var h="extend";return void 0!==e.extrapolateRight?h=e.extrapolateRight:void 0!==e.extrapolate&&(h=e.extrapolate),e=>{f()("number"==typeof e,"Cannot interpolation an input which is not a number");var t=function(e,t){var n;for(n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,c);return function(e,t,n,r,i,o,s,a){var l=e;if(l<t)if("identity"===s)return l;else"clamp"===s&&(l=t);if(l>n)if("identity"===a)return l;else"clamp"===a&&(l=n);return r===i?r:t===n?e<=t?r:i:(-1/0===t?l=-l:1/0===n?l-=t:l=(l-t)/(n-t),l=o(l),-1/0===r?l=-l:1/0===i?l+=r:l=l*(i-r)+r,l)}(e,c[t],c[t+1],l[t],l[t+1],u,d,h)}}function Y(e){var t=$()(e);return null===t||"number"!=typeof t?e:"rgba("+((0xff000000&(t=t||0))>>>24)+", "+((0xff0000&t)>>>16)+", "+((65280&t)>>>8)+", "+(255&t)/255+")"}var q=/[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/g;class H extends j{constructor(e,t){super(),this._parent=e,this._config=t,this._interpolation=V(t)}__makeNative(e){this._parent.__makeNative(e),super.__makeNative(e)}__getValue(){var e=this._parent.__getValue();return f()("number"==typeof e,"Cannot interpolate an input which is not a number."),this._interpolation(e)}interpolate(e){return new H(this,e)}__attach(){this._parent.__addChild(this)}__detach(){this._parent.__removeChild(this),super.__detach()}__transformDataType(e){return e.map(R.transformDataType)}__getNativeConfig(){return{inputRange:this._config.inputRange,outputRange:this.__transformDataType(this._config.outputRange),extrapolateLeft:this._config.extrapolateLeft||this._config.extrapolate||"extend",extrapolateRight:this._config.extrapolateRight||this._config.extrapolate||"extend",type:"interpolation"}}}H.__createInterpolation=V;var W=n(254496),U=R.API,G=class extends j{constructor(e,t){if(super(),"number"!=typeof e)throw Error("AnimatedValue: Attempting to set value to undefined");this._startingValue=this._value=e,this._offset=0,this._animation=null,t&&t.useNativeDriver&&this.__makeNative()}__detach(){this.__isNative&&U.getValue(this.__getNativeTag(),e=>{this._value=e-this._offset}),this.stopAnimation(),super.__detach()}__getValue(){return this._value+this._offset}setValue(e){var t,n;this._animation&&(this._animation.stop(),this._animation=null),this._updateValue(e,!this.__isNative),this.__isNative&&(t=this.__getNativeTag().toString(),n=()=>U.setAnimatedNodeValue(this.__getNativeTag(),e),U.setWaitingForIdentifier(t),n(),U.unsetWaitingForIdentifier(t))}setOffset(e){this._offset=e,this.__isNative&&U.setAnimatedNodeOffset(this.__getNativeTag(),e)}flattenOffset(){this._value+=this._offset,this._offset=0,this.__isNative&&U.flattenAnimatedNodeOffset(this.__getNativeTag())}extractOffset(){this._offset+=this._value,this._value=0,this.__isNative&&U.extractAnimatedNodeOffset(this.__getNativeTag())}stopAnimation(e){this.stopTracking(),this._animation&&this._animation.stop(),this._animation=null,e&&(this.__isNative?U.getValue(this.__getNativeTag(),e):e(this.__getValue()))}resetAnimation(e){this.stopAnimation(e),this._value=this._startingValue,this.__isNative&&U.setAnimatedNodeValue(this.__getNativeTag(),this._startingValue)}__onAnimatedValueUpdateReceived(e){this._updateValue(e,!1)}interpolate(e){return new H(this,e)}animate(e,t){var n=null;e.__isInteraction&&(n=W.A.createInteractionHandle());var r=this._animation;this._animation&&this._animation.stop(),this._animation=e,e.start(this._value,e=>{this._updateValue(e,!0)},e=>{this._animation=null,null!==n&&W.A.clearInteractionHandle(n),t&&t(e)},r,this)}stopTracking(){this._tracking&&this._tracking.__detach(),this._tracking=null}track(e){this.stopTracking(),this._tracking=e,this._tracking&&this._tracking.update()}_updateValue(e,t){var n;if(void 0===e)throw Error("AnimatedValue: Attempting to set value to undefined");this._value=e,t&&(n=new Set,function e(t){"function"==typeof t.update?n.add(t):t.__getChildren().forEac
3h(e)}(this),n.forEach(e=>e.update())),super.__callListeners(this.__getValue())}__getNativeConfig(){return{type:"value",value:this._value,offset:this._offset}}};function Z(e,t,n){var r=[],i=(e,t)=>{if(e instanceof G)e.__makeNative(),r.push({nativeEventPath:t,animatedValueTag:e.__getNativeTag()});else if("object"==typeof e)for(var n in e)i(e[n],t.concat(n))};return f()(n[0]&&n[0].nativeEvent,"Native driven events only support animated values contained inside `nativeEvent`."),i(n[0].nativeEvent,[]),null!=e&&r.forEach(n=>{R.API.addAnimatedEventToView(e,t,n)}),{detach(){null!=e&&r.forEach(n=>{R.API.removeAnimatedEventFromView(e,t,n.animatedValueTag)})}}}class J{constructor(e,t){this._listeners=[],this._argMapping=e,null==t&&(console.warn("Animated.event now requires a second argument for options"),t={useNativeDriver:!1}),t.listener&&this.__addListener(t.listener),this._callListeners=this._callListeners.bind(this),this._attachedEvent=null,this.__isNative=P(t)}__addListener(e){this._listeners.push(e)}__removeListener(e){this._listeners=this._listeners.filter(t=>t!==e)}__attach(e,t){f()(this.__isNative,"Only native driven events need to be attached."),this._attachedEvent=Z(e,t,this._argMapping)}__detach(e,t){f()(this.__isNative,"Only native driven events need to be detached."),this._attachedEvent&&this._attachedEvent.detach()}__getHandler(){var e=this;if(this.__isNative)if(1)return this._callListeners;else{var t=!1;return function(){for(var n,r,i,o=arguments.length,s=Array(o),a=0;a<o;a++)s[a]=arguments[a];t||(n=e._argMapping,r=s,i=(e,t,n)=>{if(e instanceof G)return void f()("number"==typeof t,"Bad mapping of event key "+n+", should be number but got "+typeof t);if("number"==typeof t)return void f()(e instanceof G,"Bad mapping of type "+typeof e+" for key "+n+", event value must map to AnimatedValue");for(var r in f()("object"==typeof e,"Bad mapping of type "+typeof e+" for key "+n),f()("object"==typeof t,"Bad event of type "+typeof t+" for key "+n),e)i(e[r],t[r],r)},f()(r.length>=n.length,"Event has less arguments than mapping"),n.forEach((e,t)=>{i(e,r[t],"arg"+t)}),t=!0),e._callListeners(...s)}}return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=(e,t,n)=>{if(e instanceof G)"number"==typeof t&&e.setValue(t);else if("object"==typeof e)for(var r in e)i(e[r],t[r],r)};e._argMapping.forEach((e,t)=>{i(e,n[t],"arg"+t)}),e._callListeners(...n)}}_callListeners(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this._listeners.forEach(e=>e(...t))}}var K=class extends j{constructor(e){super(),this._transforms=e}
3__makeNative(){this._transforms.forEach(e=>{for(var t in e){var n=e[t];n instanceof L&&n.__makeNative()}}),super.__makeNative()}__getValue(){return this._transforms.map(e=>{var t={};for(var n in e){var r=e[n];r instanceof L?t[n]=r.__getValue():t[n]=r}return t})}__getAnimatedValue(){return this._transforms.map(e=>{var t={};for(var n in e){var r=e[n];r instanceof L?t[n]=r.__getAnimatedValue():t[n]=r}return t})}__attach(){this._transforms.forEach(e=>{for(var t in e){var n=e[t];n instanceof L&&n.__addChild(this)}})}__detach(){this._transforms.forEach(e=>{for(var t in e){var n=e[t];n instanceof L&&n.__removeChild(this)}}),super.__detach()}__getNativeConfig(){var e=[];return this._transforms.forEach(t=>{for(var n in t){var r=t[n];r instanceof L?e.push({type:"animated",property:n,nodeTag:r.__getNativeTag()}):e.push({type:"static",property:n,value:R.transformDataType(r)})}}),R.validateTransform(e),{type:"transform",transforms:e}}},X=n(558099).A.flatten,Q=class extends j{constructor(e){super(),this._inputStyle=e,this._style=function e(t){var n=X(t),r={};for(var i in n){var o=n[i];"transform"===i&&Array.isArray(o)?r[i]=new K(o):o instanceof L?r[i]=o:o&&!Array.isArray(o)&&"object"==typeof o&&(r[i]=e(o))}return r}(e)}_walkStyleAndGetValues(e){var t={};for(var n in e){var r=e[n];r instanceof L?r.__isNative||(t[n]=r.__getValue()):r&&!Array.isArray(r)&&"object"==typeof r?t[n]=this._walkStyleAndGetValues(r):t[n]=r}return t}__getValue(){return[this._inputStyle,this._walkStyleAndGetValues(this._style)]}_walkStyleAndGetAnimatedValues(e){var t={};for(var n in e){var r=e[n];r instanceof L?t[n]=r.__getAnimatedValue():r&&!Array.isArray(r)&&"object"==typeof r&&(t[n]=this._walkStyleAndGetAnimatedValues(r))}return t}__getAnimatedValue(){return this._walkStyleAndGetAnimatedValues(this._style)}__attach(){for(var e in this._style){var t=this._style[e];t instanceof L&&t.__addChild(this)}}__detach(){for(var e in this._style){var t=this._style[e];t instanceof L&&t.__removeChild(this)}super.__detach()}__makeNative(){for(var e in this._style){var t=this._style[e];t instanceof L&&t.__makeNative()}super.__makeNative()}__getNativeConfig(){var e={};for(var t in this._style)if(this._style[t]instanceof L){var n=this._style[t];n.__makeNative(),e[t]=n.__getNativeTag()}return R.validateStyles(e),{type:"style",style:e}}},ee=class extends L{constructor(e,t){super(),e.style&&(e=(0,o.A)((0,o.A)({},e),{},{style:new Q(e.style)})),this._props=e,this._callback=t}__getValue(){var e={};for(var t in this._props){var n=this._props[t];n instanceof L?(!n.__isNative||n instanceof Q)&&(e[t]=n.__getValue()):n instanceof J?e[t]=n.__getHandler():e[t]=n}return e}__getAnimatedValue(){var e={};for(var t in this._props){var n=this._props[t];n instanceof L&&(e[t]=n.__getAnimatedValue())}return e}__attach(){for(var e in this._props){var t=this._props[e];t instanceof L&&t.__addChild(this)}}__detach(){for(var e in this.__isNative&&this._animatedView&&this.__disconnectAnimatedView(),this._animatedView=null,this._props){var t=this._props[e];t instanceof L&&t.__removeChild(this)}super.__detach()}update(){this._callback()}__makeNative(){if(!this.__isNative){for(var e in this.__isNative=!0,this._props){var t=this._props[e];t instanceof L&&t.__makeNative()}this._animatedView&&this.__connectAnimatedView()}}setNativeView(e){this._animatedView!==e&&(this._animatedView=e,this.__isNative&&this.__connectAnimatedView())}__connectAnimatedView(){f()(this.__isNative,'Expected node to be marked as "native"');var e=this._animatedView;f()(null!=e,"Unable to locate attached view in the native tree"),R.API.connectAnimatedNodeToView(this.__getNativeTag(),e)}__disconnectAnimatedView(){f()(this.__isNative,'Expected node to be marked as "native"');var e=this._animatedView;f()(null!=e,"Unable to locate attached view in the native tree"),R.API.disconnectAnimatedNodeFromView(this.__getNativeTag(),e)}__restoreDefaultValues(){this.__isNative&&R.API.restoreDefaultValues(this.__getNativeTag())}__getNativeConfig(){var e={};for(var t in this._props){var n=this._props[t];n instanceof L&&(n.__makeNative(),e[t]=n.__getNativeTag())}return{type:"props",props:e}}},et=n(715336),en=["style"];
3function er(e){return l.forwardRef((t,n)=>{var r,i,s,c,d,h,f,p,m,g,y=(d=(0,l.useReducer)(e=>e+1,0)[1],h=(0,l.useRef)(null),r=f=(0,l.useMemo)(()=>new ee(t,()=>null==h.current?void 0:h.current()),[t]),i=(0,l.useRef)(null),s=(0,l.useRef)(!1),(0,l.useEffect)(()=>{R.API.flushQueue()}),(0,et.A)(()=>(s.current=!1,()=>{s.current=!0}),[]),(0,et.A)(()=>{if(r.__attach(),null!=i.current){var e=i.current;e.__restoreDefaultValues(),e.__detach(),i.current=null}return()=>{s.current?r.__detach():i.current=r}},[r]),p=(0,l.useCallback)(e=>{f.setNativeView(e),h.current=()=>{d()};var n,r="object"==typeof(n=e)&&"function"==typeof(null==n?void 0:n.getScrollableNode)?n.getScrollableNode():n,i=[];for(var o in t){var s=t[o];s instanceof J&&s.__isNative&&(s.__attach(r,o),i.push([o,s]))}return()=>{h.current=null;for(var e=0;e<i.length;e++){var t=i[e],n=t[0];t[1].__detach(r,n)}}},[t,f]),m=(0,l.useRef)(void 0),g=(0,l.useCallback)(e=>{m.current&&(m.current(),m.current=void 0),null!=e&&(m.current=p(e))},[p]),[(c=f,(0,o.A)((0,o.A)({},c.__getValue()),{},{collapsable:!1})),g]),v=y[0],b=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,l.useCallback)(e=>{for(var n=0;n<t.length;n++){var r=t[n];null!=r&&("function"==typeof r?r(e):r.current=e)}},[...t])}(y[1],n),_=v.passthroughAnimatedPropExplicitValues,w=v.style,x=null!=_?_:{},k=x.style,C=(0,u.A)(x,en);return l.createElement(e,(0,a.A)({},v,C,{style:[w,k],ref:b}))})}var ei=er(l.forwardRef((e,t)=>l.createElement(c.A,(0,a.A)({scrollEventThrottle:1e-4},e,{ref:t})))),eo=er(n(495517).A),es=n(259861),ea=er(l.forwardRef((e,t)=>l.createElement(es.A,(0,a.A)({scrollEventThrottle:1e-4},e,{ref:t})))),el=n(202968),ec=er(l.forwardRef((e,t)=>l.createElement(el.A,(0,a.A)({scrollEventThrottle:1e-4},e,{ref:t})))),eu=er(n(99561).A),ed=er(n(338239).A),eh=class extends j{constructor(e,t){super(),this._a="number"==typeof e?new G(e):e,this._b="number"==typeof t?new G(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){return this._a.__getValue()+this._b.__getValue()}interpolate(e){return new H(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"addition",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}},ef=class extends j{constructor(e,t,n){super(),this._a=e,this._min=t,this._max=n,this._value=this._lastValue=this._a.__getValue()}__makeNative(e){this._a.__makeNative(e),super.__makeNative(e)}interpolate(e){return new H(this,e)}__getValue(){var e=this._a.__getValue(),t=e-this._lastValue;return this._lastValue=e,this._value=Math.min(Math.max(this._value+t,this._min),this._max),this._value}__attach(){this._a.__addChild(this)}__detach(){this._a.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"diffclamp",input:this._a.__getNativeTag(),min:this._min,max:this._max}}},ep=class extends j{constructor(e,t){super(),this._warnedAboutDivideByZero=!1,(0===t||t instanceof L&&0===t.__getValue())&&console.error("Detected potential division by zero in AnimatedDivision"),this._a="number"==typeof e?new G(e):e,this._b="number"==typeof t?new G(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){var e=this._a.__getValue(),t=this._b.__getValue();return 0===t?(this._warnedAboutDivideByZero||(console.error("Detected division by zero in AnimatedDivision"),this._warnedAboutDivideByZero=!0),0):(this._warnedAboutDivideByZero=!1,e/t)}interpolate(e){return new H(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"division",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}},em=class extends j{constructor(e,t){super(),this._a=e,this._modulus=t}__makeNative(e){this._a.__makeNative(e),super.__makeNative(e)}__getValue(){return(this._a.__getValue()%this._modulus+this._modulus)%this._modulus}interpolate(e){return new H(this,e)}__attach(){this._a.__addChild(this)}__detach(){this._a.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"modulus",input:this._a.__getNativeTag(),modulus:this._modulus}}},eg=class extends j{constructor(e,t){super(),this._a="number"==typeof e?new G(e):e,this._b="number"==typeof t?new G(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){return this._a.__getValue()*this._b.__getValue()}interpolate(e){return new H(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"multiplication",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}},ey=class extends j{constructor(e,t){super(),this._a="number"==typeof e?new G(e):e,this._b="number"==typeof t?new G(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){return this._a.__getValue()-this._b.__getValue()}interpolate(e){return new H(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"subtraction",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}},ev=class extends L{constructor(e,t,n,r,i){super(),this._value=e,this._parent=t,this._animationClass=n,this._animationConfig=r,this._useNativeDriver=P(r),this._callback=i,this.__attach()}__makeNative(){this.__isNative=!0,this._parent.__makeNative(),super.__makeNative(),this._value.__makeNative()}__getValue(){return this._parent.__getValue()}__attach(){this._parent.__addChild(this),this._useNativeDriver&&this.__makeNative()}__detach(){this._parent.__removeChild(this),super.__detach()}update(){this._value.animate(new this._animationClass((0,o.A)((0,o.A)({},this._animationConfig),{},{toValue:this._animationConfig.toValue.__getValue()})),this._callback)}__getNativeConfig(){var e=new this._animationClass((0,o.A)((0,o.A)({},this._animationConfig),{},{toValue:void 0})).__getNativeAnimationConfig();return{type:"tracking",animationId:M(),animationConfig:e,toValue:this._parent.__getNativeTag(),value:this._value.__getNativeTag()}}},eb=1,e_=class extends j{constructor(e){super();var t=e||{x:0,y:0};"number"==typeof t.x&&"number"==typeof t.y?(this.x=new G(t.x),this.y=new G(t.y)):(f()(t.x instanceof G&&t.y instanceof G,"AnimatedValueXY must be initialized with an object of numbers or AnimatedValues."),this.x=t.x,this.y=t.y),this._listeners={}}setValue(e){this.x.setValue(e.x),this.y.setValue(e.y)}setOffset(e){this.x.setOffset(e.x),this.y.setOffset(e.y)}flattenOffset(){this.x.flattenOffset(),this.y.flattenOffset()}extractOffset(){this.x.extractOffset(),this.y.extractOffset()}__getValue(){return{x:this.x.__getValue(),y:this.y.__getValue()}}resetAnimation(e){this.x.resetAnimation(),this.y.resetAnimation(),e&&e(this.__getValue())}stopAnimation(e){this.x.stopAnimation(),this.y.stopAnimation(),e&&e(this.__getValue())}addListener(e){var t=String(eb++),n=t=>{t.value,e(this.__getValue())};return this._listeners[t]={x:this.x.addListener(n),y:this.y.addListener(n)},t}removeListener(e){this.x.removeListener(this._listeners[e].x),this.y.removeListener(this._listeners[e].y),delete this._listeners[e]}removeAllListeners(){this.x.removeAllListeners(),this.y.removeAllListeners(),this._listeners={}}getLayout(){return{left:this.x,top:this.y}}getTranslateTransform(){return[{translateX:this.x},{translateY:this.y}]}},ew=1,ex=class{start(e,t,n,r,i){}stop(){this.__nativeId&&R.API.stopAnimation(this.__nativeId)}__getNativeAnimationConfig(){throw Error("This animation type cannot be offloaded to native")}__debouncedOnEnd(e){var t=this.__onEnd;this.__onEnd=null,t&&t(e)}__startNativeAnimation(e){var t=ew+":startAnimation";ew+=1,R.API.setWaitingForIdentifier(t);try{var n=this.__getNativeAnimationConfig();e.__makeNative(n.platformConfig),this.__nativeId=R.generateNewAnimationId(),R.API.startAnimatingNode(this.__nativeId,e.__getNativeTag(),n,this.__debouncedOnEnd.bind(this))}catch(e){throw e}finally{R.API.unsetWaitingForIdentifier(t)}}},ek=class extends ex{constructor(e){var t,n,r;super(),this._deceleration=null!=(t=e.deceleration)?t:.998,this._velocity=e.velocity,this._useNativeDriver=P(e),this.__isInteraction=null!=(n=e.isInteraction)?n:!this._useNativeDriver,this.__iterations=null!=(r=e.iterations)?r:1}__getNativeAnimationConfig(){return{type:"decay",deceleration:this._deceleration,velocity:this._velocity,iterations:this.__iterations}}start(e,t,n,r,i){this.__active=!0,this._lastValue=e,this._fromValue=e,this._onUpdate=t,this.__onEnd=n,this._startTime=Date.now(),this._useNativeDriver?this.__startNativeAnimation(i):this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))}onUpdate(){var e=Date.now(),t=this._fromValue+this._velocity/(1-this._deceleration)*(1-Math.exp(-(1-this._deceleration)*(e-this._startTime)));(this._onUpdate(t),.1>Math.abs(this._lastValue-t))?this.__debouncedOnEnd({finished:!0}):(this._lastValue=t,this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))))}stop(){super.stop(),this.__active=!1,n.g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}};function eC(e){return(e-30)*3.62+194}var eA=function(e,t){var n,r,i,o=(e/1.7-0)/20,s=.5+(t/1.7-0)/20*199.5,a=(n=o=0+.8*o,r=function(e){return e<=18?7e-4*Math.pow(e,3)-.031
3*Math.pow(e,2)+.64*e+1.28:e>18&&e<=44?44e-6*Math.pow(e,3)-.006*Math.pow(e,2)+.36*e+2:45e-8*Math.pow(e,3)-332e-6*Math.pow(e,2)+.1078*e+5.84}(s),.01*(i=2*n-n*n)+(1-i)*r);return{stiffness:eC(s),damping:(a-8)*3+25}},eD=class e extends ex{constructor(e){if(super(),this._overshootClamping=null!=(t=e.overshootClamping)&&t,this._restDisplacementThreshold=null!=(n=e.restDisplacementThreshold)?n:.001,this._restSpeedThreshold=null!=(r=e.restSpeedThreshold)?r:.001,this._initialVelocity=null!=(i=e.velocity)?i:0,this._lastVelocity=null!=(o=e.velocity)?o:0,this._toValue=e.toValue,this._delay=null!=(s=e.delay)?s:0,this._useNativeDriver=P(e),this._platformConfig=e.platformConfig,this.__isInteraction=null!=(a=e.isInteraction)?a:!this._useNativeDriver,this.__iterations=null!=(l=e.iterations)?l:1,void 0!==e.stiffness||void 0!==e.damping||void 0!==e.mass)f()(void 0===e.bounciness&&void 0===e.speed&&void 0===e.tension&&void 0===e.friction,"You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one"),this._stiffness=null!=(c=e.stiffness)?c:100,this._damping=null!=(u=e.damping)?u:10,this._mass=null!=(d=e.mass)?d:1;else if(void 0!==e.bounciness||void 0!==e.speed){f()(void 0===e.tension&&void 0===e.friction&&void 0===e.stiffness&&void 0===e.damping&&void 0===e.mass,"You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one");var t,n,r,i,o,s,a,l,c,u,d,h,p,m=eA(null!=(h=e.bounciness)?h:8,null!=(p=e.speed)?p:12);this._stiffness=m.stiffness,this._damping=m.damping,this._mass=1}else{var g,y,v,b,_=(g=null!=(v=e.tension)?v:40,y=null!=(b=e.friction)?b:7,{stiffness:eC(g),damping:(y-8)*3+25});this._stiffness=_.stiffness,this._damping=_.damping,this._mass=1}f()(this._stiffness>0,"Stiffness value must be greater than 0"),f()(this._damping>0,"Damping value must be greater than 0"),f()(this._mass>0,"Mass value must be greater than 0")}__getNativeAnimationConfig(){var e;return{type:"spring",overshootClamping:this._overshootClamping,restDisplacementThreshold:this._restDisplacementThreshold,restSpeedThreshold:this._restSpeedThreshold,stiffness:this._stiffness,damping:this._damping,mass:this._mass,initialVelocity:null!=(e=this._initialVelocity)?e:this._lastVelocity,toValue:this._toValue,iterations:this.__iterations,platformConfig:this._platformConfig}}start(t,n,r,i,o){if(this.__active=!0,this._startPosition=t,this._lastPosition=this._startPosition,this._onUpdate=n,this.__onEnd=r,this._lastTime=Date.now(),this._frameTime=0,i instanceof e){var s=i.getInternalState();this._lastPosition=s.lastPosition,this._lastVelocity=s.lastVelocity,this._initialVelocity=this._lastVelocity,this._lastTime=s.lastTime}var a=()=>{this._useNativeDriver?this.__startNativeAnimation(o):this.onUpdate()};this._delay?this._timeout=setTimeout(a,this._delay):a()}getInternalState(){return{lastPosition:this._lastPosition,lastVelocity:this._lastVelocity,lastTime:this._lastTime}}onUpdate(){var e=Date.now();e>this._lastTime+64&&(e=this._lastTime+64);var t=(e-this._lastTime)/1e3;this._frameTime+=t;var n=this._damping,r=this._mass,i=this._stiffness,o=-this._initialVelocity,s=n/(2*Math.sqrt(i*r)),a=Math.sqrt(i/r),l=a*Math.sqrt(1-s*s),c=this._toValue-this._startPosition,u=0,d=0,h=this._frameTime;if(s<1){var f=Math.exp(-s*a*h);u=this._toValue-f*((o+s*a*c)/l*Math.sin(l*h)+c*Math.cos(l*h)),d=s*a*f*(Math.sin(l*h)*(o+s*a*c)/l+c*Math.cos(l*h))-f*(Math.cos(l*h)*(o+s*a*c)-l*c*Math.sin(l*h))}else{var p=Math.exp(-a*h);u=this._toValue-p*(c+(o+a*c)*h),d=p*(o*(h*a-1)+h*c*(a*a))}if(this._lastTime=e,this._lastPosition=u,this._lastVelocity=d,this._onUpdate(u),this.__active){var m=!1;this._overshootClamping&&0!==this._stiffness&&(m=this._startPosition<this._toValue?u>this._toValue:u<this._toValue);var g=Math.abs(d)<=this._restSpeedThreshold,y=!0;if(0!==this._stiffness&&(y=Math.abs(this._toValue-u)<=this._restDisplacementThreshold),m||g&&y){0!==this._stiffness&&(this._lastPosition=this._toValue,this._lastVelocity=0,this._onUpdate(this._toValue)),this.__debouncedOnEnd({finished:!0});return}this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))}}stop(){super.stop(),this.__active=!1,clearTimeout(this._timeout),n.g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}},eS=n(64964),eE=class extends ex{constructor(e){var t,n,r,o,s;super(),this._toValue=e.toValue,this._easing=null!=(t=e.easing)?t:(i||(i=eS.A.inOut(eS.A.ease)),i),this._duration=null!=(n=e.duration)?n:500,this._delay=null!=(r=e.delay)?r:0,this.__iterations=null!=(o=e.iterations)?o:1,this._useNativeDriver=P(e),this._platformConfig=e.platformConfig,this.__isInteraction=null!=(s=e.isInteraction)?s:!this._useNativeDriver}__getNativeAnimationConfig(){for(var e=[],t=Math.round(this._duration/(1e3/60)),n=0;n<t;n++)e.push(this._easing(n/t));return e.push(this._easing(1)),{type:"frames",frames:e,toValue:this._toValue,iterations:this.__iterations,platformConfig:this._platformConfig}}start(e,t,n,r,i){this.__active=!0,this._fromValue=e,this._onUpdate=t,this.__onEnd=n;var o=()=>{0!==this._duration||this._useNativeDriver?(this._startTime=Date.now(),this._useNativeDriver?this.__startNativeAnimation(i):this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))):(this._onUpdate(this._toValue),this.__debouncedOnEnd({finished:!0}))};this._delay?this._timeout=setTimeout(o,this._delay):o()}onUpdate(){var e=Date.now();if(e>=this._startTime+this._duration){0===this._duration?this._onUpdate(this._toValue):this._onUpdate(this._fromValue+this._easing(1)*(this._toValue-this._fromValue)),this.__debouncedOnEnd({finished:!0});return}this._onUpdate(this._fromValue+this._easing((e-this._startTime)/this._duration)*(this._toValue-this._fromValue)),this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this)))}stop(){super.stop(),this.__active=!1,clearTimeout(this._timeout),n.g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}},eT=R.API,eO={r:0,g:0,b:0,a:1},eM=1;function eN(e){if(null==e)return null;if(eP(e))return e;var t=$()(e);if(null==t)return null;if("object"==typeof t){if(null!=t)return t}else if("number"==typeof t)return{r:(0xff000000&t)>>>24,g:(0xff0000&t)>>>16,b:(65280&t)>>>8,a:(255&t)/255};return null}function eP(e){return e&&"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}class eR extends j{constructor(e,t){super(),this._listeners={};var n=null!=e?e:eO;if(n&&n.r instanceof G&&n.g instanceof G&&n.b instanceof G&&n.a instanceof G)this.r=n.r,this.g=n.g,this.b=n.b,this.a=n.a;else{var r,i=null!=(r=eN(n))?r:eO,o=eO;eP(i)?o=i:this.nativeColor=i,this.r=new G(o.r),this.g=new G(o.g),this.b=new G(o.b),this.a=new G(o.a)}(this.nativeColor||t&&t.useNativeDriver)&&this.__makeNative()}setValue(e){var t,n=!1;if(this.__isNative){var r=this.__getNativeTag();eT.setWaitingForIdentifier(r.toString())}var i=null!=(t=eN(e))?t:eO;if(eP(i)?(this.r.setValue(i.r),this.g.setValue(i.g),this.b.setValue(i.b),this.a.setValue(i.a),null!=this.nativeColor&&(this.nativeColor=null,n=!0)):this.nativeColor!==i&&(this.nativeColor=i,n=!0),this.__isNative){var o=this.__getNativeTag();n&&eT.updateAnimatedNodeConfig(o,this.__getNativeConfig()),eT.unsetWaitingForIdentifier(o.toString())}}setOffset(e){this.r.setOffset(e.r),this.g.setOffset(e.g),this.b.setOffset(e.b),this.a.setOffset(e.a)}flattenOffset(){this.r.flattenOffset(),this.g.flattenOffset(),this.b.flattenOffset(),this.a.flattenOffset()}extractOffset(){this.r.extractOffset(),this.g.extractOffset(),this.b.extractOffset(),this.a.extractOffset()}addListener(e){var t=String(eM++),n=t=>{t.value,e(this.__getValue())};return this._listeners[t]={r:this.r.addListener(n),g:this.g.addListener(n),b:this.b.addListener(n),a:this.a.addListener(n)},t}removeListener(e){this.r.removeListener(this._listeners[e].r),this.g.removeListener(this._listeners[e].g),this.b.removeListener(this._listeners[e].b),this.a.removeListener(this._listeners[e].a),delete this._listeners[e]}removeAllListeners(){this.r.removeAllListeners(),this.g.removeAllListeners(),this.b.removeAllListeners(),this.a.removeAllListeners(),this._listeners={}}stopAnimation(e){this.r.stopAnimation(),this.g.stopAnimation(),this.b.stopAnimation(),this.a.stopAnimation(),e&&e(this.__getValue())}resetAnimation(e){this.r.resetAnimation(),this.g.resetAnimation(),this.b.resetAnimation(),this.a.resetAnimation(),e&&e(this.__getValue())}__getValue(){return null!=this.nativeColor?this.nativeColor:"rgba("+this.r.__getValue()+", "+this.g.__getValue()+", "+this.b.__getValue()+", "+this.a.__getValue()+")"}__attach(){this.r.__addChild(this),this.g.__addChild(this),this.b.__addChild(this),this.a.__addChild(this),super.__attach()}__detach(){this.r.__removeChild(this),this.g.__removeChild(this),this.b.__removeChild(this),this.a.__removeChild(this),super.__detach()}__makeNative(e){this.r.__makeNative(e),this.g.__makeNative(e),this.b.__makeNative(e),this.a.__makeNative(e),super.__makeNative(e)}__getNativeConfig(){return{type:"color",r:this.r.__getNativeTag(),g:this.g.__getNativeTag(),b:this.b.__getNativeTag(),a:this.a.__getNativeTag(),nativeColor:this.nativeColor}}}var eI=function(e,t){return e&&t.onComplete?function(){t.onComplete&&t.onComplete(...arguments),e&&e(...arguments)}:e||t.onComplete},eF=function(e,t,n){if(e instanceof e_){var r=(0,o.A)({},t),i=(0,o.A)({},t);for(var s in t){var a=t[s],l=a.x,c=a.y;void 0!==l&&void 0!==c&&(r[s]=l,i[s]=c)}return ez([n(e.x,r),n(e.y,i)],{stopTogether:!1})}if(e instanceof eR){var u=(0,o.A)({},t),d=(0,o.A)({},t),h=(0,o.A)({},t),f=(0,o.A)({},t);for(var p in t){var m=t[p],g=m.r,y=m.g,v=m.b,b=m.a;void 0!==g&&void 0!==y&&void 0!==v&&void 0!==b&&(u[p]=g,d[p]=y,h[p]=v,f[p]=b)}return ez([n(e.r,u),n(e.g,d),n(e.b,h),n(e.a,f)],{stopTogether:!1})}return null},eL=function e(t,n){var r=function(e,t,n){n=eI(n,t),e.stopTracking(),t.toValue instanceof L?e.track(new ev(e,t.toValue,eE,t,n)):e.animate(new eE(t),n)};return eF(t,n,e)||{start:function(e){r(t,n,e)},stop:function(){t.stopAnimation()},reset:function(){t.resetAnimation()},_startNativeLoop:function(e){r(t,(0,o.A)((0,o.A)({},n),{},{iterations:e}))},_isUsingNativeDriver:function(){return n.useNativeDriver||!1}}},ej=function(e){var t=0;return{start:function(n){0===e.length?n&&n({finished:!0}):e[t].start(function r(i){if(!i.finished){n&&n(i);return}if(++t===e.length){t=0,n&&n(i);return}e[t].start(r)})},stop:function(){t<e.length&&e[t].stop()},reset:function(){e.forEach((e,n)=>{n<=t&&e.reset()}),t=0},_startNativeLoop:function(){throw Error("Loops run using the native driver cannot contain Animated.sequence animations")},_isUsingNativeDriver:function(){return!1}}},ez=function(e,t){var n=0,r={},i=!(t&&!1===t.stopTogether),o={start:function(t){if(n===e.length){t&&t({finished:!0});return}e.forEach((s,a)=>{var l=function(s){if(r[a]=!0,++n===e.length){n=0,t&&t(s);return}!s.finished&&i&&o.stop()};s?s.start(l):l({finished:!0})})},stop:function(){e.forEach((e,t)=>{r[t]||e.stop(),r[t]=!0})},reset:function(){e.forEach((e,t)=>{e.reset(),r[t]=!1,n=0})},_startNativeLoop:function(){throw Error("Loops run using the native driver cannot contain Animated.parallel animations")},_isUsingNativeDriver:function(){return!1}};return o},e$=function(e){return eL(new G(0),{toValue:0,delay:e,duration:0,useNativeDriver:!1})},eB={Value:G,ValueXY:e_,Color:eR,Interpolation:H,Node:L,decay:function e(t,n){var r=function(e,t,n){n=eI(n,t),e.stopTracking(),e.animate(new ek(t),n)};return eF(t,n,e)||{start:function(e){r(t,n,e)},stop:function(){t.stopAnimation()},reset:function(){t.resetAnimation()},_startNativeLoop:function(e){r(t,(0,o.A)((0,o.A)({},n),{},{iterations:e}))},_isUsingNativeDriver:function(){return n.useNativeDriver||!1}}},timing:eL,spring:function e(t,n){var r=function(e,t,n){n=eI(n,t),e.stopTracking(),t.toValue instanceof L?e.track(new ev(e,t.toValue,eD,t,n)):e.animate(new eD(t),n)};return eF(t,n,e)||{start:function(e){r(t,n,e)},stop:function(){t.stopAnimation()},reset:function(){t.resetAnimation()},_startNativeLoop:function(e){r(t,(0,o.A)((0,o.A)({},n),{},{iterations:e}))},_isUsingNativeDriver:function(){return n.useNativeDriver||!1}}},add:function(e,t){return new eh(e,t)},subtract:function(e,t){return new ey(e,t)},divide:function(e,t){return new ep(e,t)},multiply:function(e,t){return new eg(e,t)},modulo:function(e,t){return new em(e,t)},diffClamp:function(e,t,n){return new ef(e,t,n)},delay:e$,sequence:ej,parallel:ez,stagger:function(e,t){return ez(t.map((t,n)=>ej([e$(e*n),t])))},loop:function(e,t){var n=void 0===t?{}:t,r=n.iterations,i=void 0===r?-1:r,o=n.resetBeforeIteration,s=void 0===o||o,a=!1,l=0;return{start:function(t){e&&0!==i?e._isUsingNativeDriver()?e._startNativeLoop(i):function n(r){void 0===r&&(r={finished:!0}),a||l===i||!1===r.finished?t&&t(r):(l++,s&&e.reset(),e.start(n))}():t&&t({finished:!0})},stop:function(){a=!0,e.stop()},reset:function(){l=0,a=!1,e.reset()},_startNativeLoop:function(){throw Error("Loops run using the native driver cannot contain Animated.loop animations")},_isUsingNativeDriver:function(){return e._isUsingNativeDriver()}}},event:function(e,t){var n=new J(e,t);return n.__isNative?n:n.__getHandler()},createAnimatedComponent:er,attachNativeEvent:Z,forkEvent:function(e,t){return e?e instanceof J?(e.__addListener(t),e):function(){"function"==typeof e&&e(...arguments),t(...arguments)}:t},unforkEvent:function(e,t){e&&e instanceof J&&e.__removeListener(t)},Event:J},eV=!1;function eY(e){return t=>{e(null==t?t:function(){if(eV)return void console.warn("Ignoring recursive animation callback when running mock animations");eV=!0;try{t(...arguments)}finally{eV=!1}})}}var eq={start:()=>{},stop:()=>{},reset:()=>{},_startNativeLoop:()=>{},_isUsingNativeDriver:()=>!1},eH=e=>(0,o.A)((0,o.A)({},eq),{},{start:eY(t=>
3{e.forEach(e=>e.start()),null==t||t({finished:!0})})}),eW={Value:G,ValueXY:e_,Color:eR,Interpolation:H,Node:L,decay:function(e,t){return eq},timing:function(e,t){return(0,o.A)((0,o.A)({},eq),{},{start:eY(n=>{e.setValue(t.toValue),null==n||n({finished:!0})})})},spring:function(e,t){return(0,o.A)((0,o.A)({},eq),{},{start:eY(n=>{e.setValue(t.toValue),null==n||n({finished:!0})})})},add:eB.add,subtract:eB.subtract,divide:eB.divide,multiply:eB.multiply,modulo:eB.modulo,diffClamp:eB.diffClamp,delay:function(e){return eq},sequence:function(e){return eH(e)},parallel:function(e,t){return eH(e)},stagger:function(e,t){return eH(t)},loop:function(e,t){return(void 0===t?{}:t).iterations,eq},event:eB.event,createAnimatedComponent:er,attachNativeEvent:Z,forkEvent:eB.forkEvent,unforkEvent:eB.unforkEvent,Event:J},eU=s.A.isTesting?eW:eB,eG=(0,o.A)({FlatList:ei,Image:eo,ScrollView:ea,SectionList:ec,Text:eu,View:ed},eU)},868358:function(e,t,n){"use strict";t.A=n(658398).A},64964:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r,i="function"==typeof Float32Array;function o(e,t,n){return(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e}function s(e,t,n){return 3*(1-3*n+3*t)*e*e+2*(3*n-6*t)*e+3*t}var a=class e{static step0(e){return+(e>0)}static step1(e){return+(e>=1)}static linear(e){return e}static ease(t){return r||(r=e.bezier(.42,0,1,1)),r(t)}static quad(e){return e*e}static cubic(e){return e*e*e}static poly(e){return t=>Math.pow(t,e)}static sin(e){return 1-Math.cos(e*Math.PI/2)}static circle(e){return 1-Math.sqrt(1-e*e)}static exp(e){return Math.pow(2,10*(e-1))}static elastic(e){void 0===e&&(e=1);var t=e*Math.PI;return e=>1-Math.pow(Math.cos(e*Math.PI/2),3)*Math.cos(e*t)}static back(e){return void 0===e&&(e=1.70158),t=>t*t*((e+1)*t-e)}static bounce(e){if(e<1/2.75)return 7.5625*e*e;if(e<2/2.75){var t=e-1.5/2.75;return 7.5625*t*t+.75}if(e<2.5/2.75){var n=e-2.25/2.75;return 7.5625*n*n+.9375}var r=e-2.625/2.75;return 7.5625*r*r+.984375}static bezier(e,t,n,r){if(!(e>=0&&e<=1&&n>=0&&n<=1))throw Error("bezier x values must be in [0, 1] range");var a=i?new Float32Array(11):Array(11);if(e!==t||n!==r)for(var l=0;l<11;++l)a[l]=o(.1*l,e,n);return function(i){return e===t&&n===r?i:0===i?0:1===i?1:o(function(t){for(var r=0,i=1;10!==i&&a[i]<=t;++i)r+=.1;var l=r+(t-a[--i])/(a[i+1]-a[i])*.1,c=s(l,e,n);if(c>=.001){for(var u=l,d=0;d<4;++d){var h=s(u,e,n);if(0===h)break;var f=o(u,e,n)-t;u-=f/h}return u}return 0===c?l:function(e,t,n,r,i){var s,a,l=0,c=t,u=n;do(s=o(a=c+(u-c)/2,r,i)-e)>0?u=a:c=a;while(Math.abs(s)>1e-7&&++l<10)return a}(t,r,r+.1,e,n)}(i),t,r)}}static in(e){return e}static out(e){return t=>1-e(1-t)}static inOut(e){return t=>t<.5?e(2*t)/2:1-e((1-t)*2)/2}}},272833:function(e,t){"use strict";t.A={allowRTL(){},forceRTL(){},getConstants:()=>({isRTL:!1})}},875341:function(e,t,n){"use strict";var r=n(931489),i=n(987552),o=n(514041),s=n(338239),a=["behavior","contentContainerStyle","keyboardVerticalOffset"];class l extends o.Component{constructor(){super(...arguments),this.frame=null,this.onLayout=e=>{this.frame=e.nativeEvent.layout}}relativeKeyboardHeight(e){var t=this.frame;if(!t||!e)return 0;var n=e.screenY-(this.props.keyboardVerticalOffset||0);return Math.max(t.y+t.height-n,0)}onKeyboardChange(e){}render(){var e=this.props,t=(e.behavior,e.contentContainerStyle,e.keyboardVerticalOffset,(0,i.A)(e,a));return o.createElement(s.A,(0,r.A)({onLayout:this.onLayout},t))}}t.A=l},463156:function(e,t,n){"use strict";n.d(t,{A:function(){return ee}});var r,i,o=n(931489),s=n(987552),a=n(514041),l=n(132707),c=n(327279),u=()=>{},d=function(){var e=!1;if(c.A)try{var t={};Object.defineProperty(t,"passive",{get:()=>(e=!0,!1)}),window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e}();function h(){return this.cancelBubble}function f(){return this.defaultPrevented}function p(e,t,n,r){var i=null!=r&&(d?r:!!r.capture),o=e=>n((e.nativeEvent=e,e.persist=u,e.isDefaultPrevented=f,e.isPropagationStopped=h,e));return e.addEventListener(t,o,i),function(){null!=e&&e.removeEventListener(t,o,i)}}var m="keyboard",g="keyboard",y=!1,v=new Set,b="keyboard",_="mou
3se",w="touch",x="contextmenu",k="mousedown",C="mousemove",A="mouseup",D="pointerdown",S="pointermove",E="scroll",T="selectionchange",O="touchcancel",M="touchmove",N="touchstart",P={passive:!0},R={capture:!0,passive:!0};function I(){(null!=r||null!=i)&&(null!=r&&(g=r,r=null),null!=i&&(m=i,i=null),L())}function F(e){var t=e.type;if("u">typeof window&&null!=window.PointerEvent){if(t===D){m!==e.pointerType&&(g=e.pointerType,m=e.pointerType,L());return}if(t===S){g!==e.pointerType&&(g=e.pointerType,L());return}}else{if(y||(t===k&&m!==_&&(g=_,m=_,L()),t===C&&g!==_&&(g=_,L())),t===N){y=!0,e.touches&&e.touches.length>1&&(y=!1),m!==w&&(g=w,m=w,L());return}(t===x||t===A||t===T||t===E||t===O||t===M)&&(y=!1)}}function L(){var e={activeModality:m,modality:g};v.forEach(t=>{t(e)})}c.A&&(p(window,"blur",function(){r=g,i=m,m=b,g=b,L(),y=!1},P),p(window,"focus",function(){I()},P),p(document,"keydown",function(e){e.metaKey||e.altKey||e.ctrlKey||g!==b&&(g=b,m=b,L())},R),p(document,"visibilitychange",function(){"hidden"!==document.visibilityState&&I()},R),p(document,D,F,R),p(document,S,F,R),p(document,x,F,R),p(document,k,F,R),p(document,C,F,R),p(document,A,F,R),p(document,O,F,R),p(document,M,F,R),p(document,N,F,R),p(document,T,F,R),p(document,E,F,R));var j=n(715336),z=n(440228);function $(e,t){var n=(0,z.A)(()=>new Map),r=(0,z.A)(()=>(r,i)=>{var o=n.get(r);null!=o&&o(),null==i&&(n.delete(r),i=()=>{});var s=p(r,e,i,t);return n.set(r,s),s});return(0,j.A)(()=>()=>{n.forEach(e=>{e()}),n.clear()},[n]),r}var B={},V={passive:!0},Y="react-gui:hover:lock",q="react-gui:hover:unlock";function H(e,t,n){var r=document.createEvent("CustomEvent"),i=n||B,o=i.bubbles,s=i.cancelable,a=i.detail;r.initCustomEvent(t,void 0===o||o,void 0===s||s,a),e.dispatchEvent(r)}function W(e){var t=e.pointerType;return null!=t?t:g}var U=n(382295),G=n(558099),Z=n(338239),J=["children","delayLongPress","delayPressIn","delayPressOut","disabled","onBlur","onContextMenu","onFocus","onHoverIn","onHoverOut","onKeyDown","onLongPress","onPress","onPressMove","onPressIn","onPressOut","style","tabIndex","testOnly_hovered","testOnly_pressed"];function K(e){var t=(0,a.useState)(!1);return[t[0]||e,t[1]]}var X=G.A.create({active:{cursor:"pointer",touchAction:"manipulation"},disabled:{pointerEvents:"box-none"}}),Q=(0,a.memo)((0,a.forwardRef)(function(e,t){var n,r,i,c,u,d,h,f,p,m,g,y,v,b,_=e.children,w=e.delayLongPress,x=e.delayPressIn,k=e.delayPressOut,C=e.disabled,A=e.onBlur,D=e.onContextMenu,S=e.onFocus,E=e.onHoverIn,T=e.onHoverOut,O=e.onKeyDown,M=e.onLongPress,N=e.onPress,P=e.onPressMove,R=e.onPressIn,I=e.onPressOut,F=e.style,L=e.tabIndex,z=e.testOnly_hovered,B=e.testOnly_pressed,G=(0,s.A)(e,J),Q=K(!0===z),ee=Q[0],et=Q[1],en=K(!1),er=en[0],ei=en[1],eo=K(!0===B),es=eo[0],ea=eo[1],el=(0,a.useRef)(null),ec=(0,l.A)(t,el),eu=(0,a.useMemo)(()=>({delayLongPress:w,delayPressStart:x,delayPressEnd:k,disabled:C,onLongPress:M,onPress:N,onPressChange:ea,onPressStart:R,onPressMove:P,onPressEnd:I}),[w,x,k,C,M,N,R,P,I,ea]),ed=(0,U.A)(el,eu),eh=ed.onContextMenu,ef=ed.onKeyDown;r=(n={contain:!0,disabled:C,onHoverChange:et,onHoverStart:E,onHoverEnd:T}).contain,i=n.disabled,c=n.onHoverStart,u=n.onHoverChange,d=n.onHoverUpdate,h=n.onHoverEnd,p=$((f="u">typeof window&&null!=window.PointerEvent)?"pointermove":"mousemove",V),m=$(f?"pointerenter":"mouseenter",V),g=$(f?"pointerleave":"mouseleave",V),y=$(Y,V),v=$(q,V),(0,j.A)(()=>{var e=el.current;if(null!==e){var t=function(t){null!=h&&h(t),null!=u&&u(!1),p(e,null),g(e,null)},n=function(e){var n=el.current;null!=n&&"touch"!==W(e)&&(r&&H(n,q),t(e))},o=function(e){"touch"!==W(e)&&null!=d&&(null==e.x&&(e.x=e.clientX),null==e.y&&(e.y=e.clientY),d(e))},s=function(t){null!=c&&c(t),null!=u&&u(!0),null!=d&&p(e,i?null:o),g(e,i?null:n)};m(e,i?null:function(e){var n=el.current;null!=n&&"touch"!==W(e)&&(r&&H(n,Y),s(e),y(n,i?null:function(r){r.target!==n&&t(e)}),v(n,i?null:function(t){t.target!==n&&s(e)}))})}},[m,p,g,y,v,r,i,c,u,d,h,el]);var ep={hovered:ee,focused:er,pressed:es},em=a.useCallback(e=>{e.nativeEvent.target===el.current&&(ei(!1),null!=A&&A(e))},[el,ei,A]),eg=a.useCallback(e=>{e.nativeEvent.target===el.current&&(ei(!0),null!=S&&S(e))},[el,ei,S]),ey=a.useCallback(e=>{null!=eh&&eh(e),null!=D&&D(e)},[D,eh]),ev=a.useCallback(e=>{null!=ef&&ef(e),null!=O&&O(e)},[O,ef]);return b=void 0!==L?L:C?-1:0,a.createElement(Z.A,(0,o.A)({},G,ed,{"aria-disabled":C,onBlur:em,onContextMenu:ey,onFocus:eg,onKeyDown:ev,ref:ec,style:[C?X.disabled:X.active,"function"==typeof F?F(ep):F],tabIndex:b}),"function"==typeof _?_(ep):_)}));Q.displayName="Pressable";var ee=Q},202968:function(e,t,n){"use strict";n.d(t,{A:function(){return b}});var r=n(931489),i=n(987552),o=n(388569),s=n(514041),a=n(639299),l=n(67656),c=n(338239),u=n(633024),d=n(857271),h=n(741469),f=n.n(h),p=["ItemSeparatorComponent","SectionSeparatorComponent","renderItem","render
3SectionFooter","renderSectionHeader","sections","stickySectionHeadersEnabled"];class m extends s.PureComponent{constructor(){super(...arguments),this._keyExtractor=(e,t)=>{var n=this._subExtractor(t);return n&&n.key||String(t)},this._convertViewable=e=>{f()(null!=e.index,"Received a broken ViewToken");var t,n=this._subExtractor(e.index);if(!n)return null;var r=n.section.keyExtractor,i=this.props.keyExtractor||d.It,o=null!=r?r(e.item,n.index):i(e.item,null!=(t=n.index)?t:0);return(0,l.A)((0,l.A)({},e),{},{index:n.index,key:o,section:n.section})},this._onViewableItemsChanged=e=>{var t=e.viewableItems,n=e.changed,r=this.props.onViewableItemsChanged;null!=r&&r({viewableItems:t.map(this._convertViewable,this).filter(Boolean),changed:n.map(this._convertViewable,this).filter(Boolean)})},this._renderItem=e=>t=>{var n=t.item,r=t.index,i=this._subExtractor(r);if(!i)return null;var o=i.index;if(null==o){var a=i.section;if(!0===i.header){var l=this.props.renderSectionHeader;return l?l({section:a}):null}var c=this.props.renderSectionFooter;return c?c({section:a}):null}var u=i.section.renderItem||this.props.renderItem,d=this._getSeparatorComponent(r,i,e);return f()(u,"no renderItem!"),s.createElement(g,{SeparatorComponent:d,LeadingSeparatorComponent:0===o?this.props.SectionSeparatorComponent:void 0,cellKey:i.key,index:o,item:n,leadingItem:i.leadingItem,leadingSection:i.leadingSection,prevCellKey:(this._subExtractor(r-1)||{}).key,setSelfHighlightCallback:this._setUpdateHighlightFor,setSelfUpdatePropsCallback:this._setUpdatePropsFor,updateHighlightFor:this._updateHighlightFor,updatePropsFor:this._updatePropsFor,renderItem:u,section:i.section,trailingItem:i.trailingItem,trailingSection:i.trailingSection,inverted:!!this.props.inverted})},this._updatePropsFor=(e,t)=>{var n=this._updatePropsMap[e];null!=n&&n(t)},this._updateHighlightFor=(e,t)=>{var n=this._updateHighlightMap[e];null!=n&&n(t)},this._setUpdateHighlightFor=(e,t)=>{null!=t?this._updateHighlightMap[e]=t:delete this._updateHighlightFor[e]},this._setUpdatePropsFor=(e,t)=>{null!=t?this._updatePropsMap[e]=t:delete this._updatePropsMap[e]},this._updateHighlightMap={},this._updatePropsMap={},this._captureRef=e=>{this._listRef=e}}scrollToLocation(e){for(var t=e.itemIndex,n=0;n<e.sectionIndex;n++)t+=this.props.getItemCount(this.props.sections[n].data)+2;var r=e.viewOffset||0;if(null!=this._listRef){e.itemIndex>0&&this.props.stickySectionHeadersEnabled&&(r+=this._listRef.__getFrameMetricsApprox(t-e.itemIndex,this._listRef.props).length);var i=(0,l.A)((0,l.A)({},e),{},{viewOffset:r,index:t});this._listRef.scrollToIndex(i)}}getListRef(){return this._listRef}render(){for(var e,t=this.props,n=(t.ItemSeparatorComponent,t.SectionSeparatorComponent,t.renderItem,t.renderSectionFooter,t.renderSectionHeader,t.sections,t.stickySectionHeadersEnabled,(0,i.A)(t,p)),o=+!!this.props.ListHeaderComponent,l=this.props.stickySectionHeadersEnabled?[]:void 0,c=0,d=(0,a.A)(this.props.sections);!(e=d()).done;){var h=e.value;null!=l&&l.push(c+o),c+=2,c+=this.props.getItemCount(h.data)}var f=this._renderItem(c);return s.createElement(u.A,(0,r.A)({},n,{keyExtractor:this._keyExtractor,stickyHeaderIndices:l,renderItem:f,data:this.props.sections,getItem:(e,t)=>this._getItem(this.props,e,t),getItemCount:()=>c,onViewableItemsChanged:this.props.onViewableItemsChanged?this._onViewableItemsChanged:void 0,ref:this._captureRef}))}_getItem(e,t,n){if(!t)return null;for(var r=n-1,i=0;i<t.length;i++){var o=t[i],s=o.data,a=e.getItemCount(s);if(-1===r||r===a)return o;if(r<a)return e.getItem(s,r);r-=a+2}return null}_subExtractor(e){for(var t=e,n=this.props,r=n.getItem,i=n.getItemCount,o=n.keyExtractor,s=n.sections,a=0;a<s.length;a++){var l=s[a],c=l.data,u=l.key||String(a);if((t-=1)>=i(c)+1)t-=i(c)+1;else{if(-1===t)return{section:l,key:u+":header",index:null,header:!0,trailingSection:s[a+1]};if(t===i(c))return{section:l,key:u+":footer",index:null,header:!1,trailingSection:s[a+1]};var h=l.keyExtractor||o||d.It;return{section:l,key:u+":"+h(r(c,t),t),index:t,leadingItem:r(c,t-1),leadingSection:s[a-1],trailingItem:r(c,t+1),trailingSection:s[a+1]}}}}_getSeparatorComponent(e,t,n){if(!(t=t||this._subExtractor(e)))return null;var r=t.section.ItemSeparatorComponent||this.props.ItemSeparatorComponent,i=this.props.SectionSeparatorComponent,o=e===n-1,s=t.index===this.props.getItemCount(t.section.data)-1;return i&&s?i:!r||s||o?null:r}}function g(e){var t=e.LeadingSeparatorComponent,n=e.SeparatorComponent,i=e.cellKey,o=e.prevCellKey,a=e.setSelfHighlightCallback,u=e.updateHighlightFor,d=e.setSelfUpdatePropsCallback,h=e.updatePropsFor,f=e.item,p=e.index,m=e.section,g=e.inverted,y=s.useState(!1),v=y[0],b=y[1],_=s.useState(!1),w=_[0],x=_[1],k=s.useState({leadingItem:e.leadingItem,leadingSection:e.leadingSection,section:e.section,trailingItem:e.item,trailingSection:e.trailingSection}),C=k[0],A=k[1],D=s.useState({leadingItem:e.item,leadingSection:e.leadingSection,section:e.section,trailingItem:e.trailingItem,trailingSection:e.trailingSection}),S=D[0],E=D[1];s.useEffect(()=>(a(i,x),d(i,E),()=>{d(i,null),a(i,null)}),[i,a,E,d]);
3var T=e.renderItem({item:f,index:p,section:m,separators:{highlight:()=>{b(!0),x(!0),null!=o&&u(o,!0)},unhighlight:()=>{b(!1),x(!1),null!=o&&u(o,!1)},updateProps:(e,r)=>{"leading"===e?null!=t?A((0,l.A)((0,l.A)({},C),r)):null!=o&&h(o,(0,l.A)((0,l.A)({},C),r)):"trailing"===e&&null!=n&&E((0,l.A)((0,l.A)({},S),r))}}}),O=null!=t&&s.createElement(t,(0,r.A)({highlighted:v},C)),M=null!=n&&s.createElement(n,(0,r.A)({highlighted:w},S));return O||M?s.createElement(c.A,null,!1===g?O:M,T,!1===g?M:O):T}var y=["stickySectionHeadersEnabled"];class v extends s.PureComponent{constructor(){super(...arguments),this._captureRef=e=>{this._wrapperListRef=e}}scrollToLocation(e){null!=this._wrapperListRef&&this._wrapperListRef.scrollToLocation(e)}recordInteraction(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();e&&e.recordInteraction()}flashScrollIndicators(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();e&&e.flashScrollIndicators()}getScrollResponder(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();if(e)return e.getScrollResponder()}getScrollableNode(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();if(e)return e.getScrollableNode()}render(){var e=this.props,t=e.stickySectionHeadersEnabled,n=(0,i.A)(e,y),a=null!=t?t:"ios"===o.A.OS;return s.createElement(m,(0,r.A)({},n,{stickySectionHeadersEnabled:a,ref:this._captureRef,getItemCount:e=>e.length,getItem:(e,t)=>e[t]}))}}var b=v},276801:function(e,t){"use strict";var n=()=>{};function r(){return null}r.setBackgroundColor=n,r.setBarStyle=n,r.setHidden=n,r.setNetworkActivityIndicatorVisible=n,r.setTranslucent=n,t.A=r},973839:function(e,t){"use strict";t.A=e=>{throw Error("findNodeHandle is not supported on web. Use the ref property on the component instead.")}},717040:function(e,t,n){"use strict";var r=n(748327),i=n(514041);function o(){var e=(0,i.useState)(()=>r.A.get("window")),t=e[0],n=e[1];return(0,i.useEffect)(()=>{function e(e){var t=e.window;null!=t&&n(t)}return r.A.addEventListener("change",e),n(r.A.get("window")),()=>{r.A.removeEventListener("change",e)}},[]),t}n.d(t,{A:function(){return o}})},848480:function(e,t,n){"use strict";n.r(t),n.d(t,{AccessibilityInfo:function(){return f.A},ActivityIndicator:function(){return em},Alert:function(){return p.A},Animated:function(){return m.A},AppRegistry:function(){return P},AppState:function(){return B},Appearance:function(){return b},BackHandler:function(){return Y},Button:function(){return eA},CheckBox:function(){return eT},Clipboard:function(){return q},DeviceEventEmitter:function(){return tF.A},Dimensions:function(){return H.A},Easing:function(){return W.A},FlatList:function(){return eO.A},I18nManager:function(){return U.A},Image:function(){return eM.A},ImageBackground:function(){return eI},InteractionManager:function(){return Z.A},Keyboard:function(){return G.A},KeyboardAvoidingView:function(){return eF.A},LayoutAnimation:function(){return et},Linking:function(){return en.A},LogBox:function(){return tI},Modal:function(){return e4},NativeEventEmitter:function(){return er.A},NativeModules:function(){return h.A},PanResponder:function(){return ei.A},Picker:function(){return e7},PixelRatio:function(){return eo.A},Platform:function(){return J.A},Pressable:function(){return te.A},ProgressBar:function(){return ti},RefreshControl:function(){return to.A},SafeAreaView:function(){return tu},ScrollView:function(){return td.A},SectionList:function(){return th.A},Share:function(){return es},StatusBar:function(){return tf.A},StyleSheet:function(){return A.A},Switch:function(){return tp.A},Text:function(){return ex.A},TextInput:function(){return tm.A},Touchable:function(){return tg.A},TouchableHighlight:function(){return tx},TouchableNativeFeedback:function(){return tD},TouchableOpacity:function(){return ew},TouchableWithoutFeedback:function(){return tM},UIManager:function(){return K.A},Vibration:function(){return el},View:function(){return D.A},VirtualizedList:function(){return tN},YellowBox:function(){return tR},findNodeHandle:function(){return s.A},processColor:function(){return a.A},render:function(){return u},unmountComponentAtNode:function(){return d},unstable_createElement:function(){return o.A},useColorScheme:function(){return tL}
3,useLocaleContext:function(){return tj},useWindowDimensions:function(){return tz.A}});var r,i,o=n(349406),s=n(973839),a=n(323674),l=n(25873),c=n(847137);function u(e,t){(0,c._)(t);var n=(0,l.createRoot)(t);return n.render(e),n}function d(e){return e.unmount(),!0}var h=n(979094),f=n(213702),p=n(485848),m=n(889332),g=n(327279),y=g.A&&null!=window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)"):null,v=new WeakMap,b={getColorScheme:()=>y&&y.matches?"dark":"light",addChangeListener(e){var t=v.get(e);return t||(t=t=>{e({colorScheme:t.matches?"dark":"light"})},v.set(e,t)),y&&y.addListener(t),{remove:function(){var t=v.get(e);y&&t&&y.removeListener(t),v.delete(e)}}}},_=n(67656),w=n(741469),x=n.n(w),k=n(931489),C=n(514041),A=n(558099),D=n(338239),S=C.createContext(null),E=C.forwardRef((e,t)=>{var n=e.children,r=e.WrapperComponent,i=C.createElement(D.A,{children:n,key:1,style:T.appContainer});return r&&(i=C.createElement(r,null,i)),C.createElement(S.Provider,{value:e.rootTag},C.createElement(D.A,{ref:t,style:T.appContainer},i))});E.displayName="AppContainer";var T=A.A.create({appContainer:{flex:1,pointerEvents:"box-none"}}),O={},M={},N=e=>e();class P{static getAppKeys(){return Object.keys(M)}static getApplication(e,t){return x()(M[e]&&M[e].getApplication,"Application "+e+" has not been registered. This is either due to an import error during initialization or failure to call AppRegistry.registerComponent."),M[e].getApplication(t)}static registerComponent(e,t){return M[e]={getApplication:e=>{var n,i,o;return n=N(t),i=e?e.initialProps:O,o=r&&r(e),{element:C.createElement(E,{WrapperComponent:o,rootTag:{}},C.createElement(n,i)),getStyleElement:e=>{var t=A.A.getSheet();return C.createElement("style",(0,k.A)({},e,{dangerouslySetInnerHTML:{__html:t.textContent},id:t.id}))}}},run:e=>{var n,i,o,s,a,d,h;return n=N(t),i=r&&r(e),o=e.callback,a=(s={hydrate:e.hydrate||!1,initialProps:e.initialProps||O,mode:e.mode||"concurrent",rootTag:e.rootTag}).hydrate,d=s.initialProps,h=s.rootTag,x()(h,"Expect to have a valid rootTag, instead got ",h),(a?function(e,t){return(0,c._)(t),(0,l.hydrateRoot)(t,e)}:u)(C.createElement(E,{WrapperComponent:i,ref:o,rootTag:h},C.createElement(n,d)),h)}},e}static registerConfig(e){e.forEach(e=>{var t=e.appKey,n=e.component,r=e.run;r?P.registerRunnable(t,r):(x()(n,"No component provider passed in"),P.registerComponent(t,n))})}static registerRunnable(e,t){return M[e]={run:t},e}static runApplication(e,t){return x()(M[e]&&M[e].run,'Application "'+e+'" has not been registered. This is either due to an import error during initialization or failure to call AppRegistry.registerComponent.'),M[e].run(t)}static setComponentProviderInstrumentationHook(e){N=e}static setWrapperComponentProvider(e){r=e}static unmountApplicationComponentAtRootTag(e){d(e)}}var R=n(286142),I=g.A&&!document.hasOwnProperty("hidden")&&document.hasOwnProperty("webkitHidden"),F=["change","memoryWarning"],L=I?"webkitvisibilitychange":"visibilitychange",j=I?"webkitVisibilityState":"visibilityState",z="active",$=null;class B{static get currentState(){if(!B.isAvailable)return z;switch(document[j]){case"hidden":case"prerender":case"unloaded":return"background";default:return z}}static addEventListener(e,t){if(B.isAvailable&&(x()(-1!==F.indexOf(e),'Trying to subscribe to unknown event: "%s"',e),"change"===e))return $||($=new R.A,document.addEventListener(L,()=>{$&&$.emit("change",B.currentState)},!1)),$.addListener(e,t)}}function V(){}B.isAvailable=g.A&&!!document[j];var Y={exitApp:V,addEventListener:()=>(console.error("BackHandler is not supported on web and should not be used."),{remove:V}),removeEventListener:V};class q{static isAvailable(){return void 0===i&&(i="function"==typeof document.queryCommandSupported&&document.queryCommandSupported("copy")),i}static getString(){return Promise.resolve("")}static setString(e){var t=!1,n=document.body;if(n){var r=document.createElement("span");r.textContent=e,r.style.opacity="0",r.style.position="absolute",r.style.whiteSpace="pre-wrap",r.style.userSelect="auto",n.appendChild(r);var i=window.getSelection();i.removeAllRanges();var o=document.createRange();o.selectNodeContents(r),i.addRange(o);try{document.execCommand("copy"),t=!0}catch(e){}i.removeAllRanges(),n.removeChild(r)}return t}}var H=n(748327),W=n(64964),U=n(272833),G=n(533219),Z=n(254496),J=n(388569),K=n(941099);function X(e,t){J.A.isTesting||K.A.configureNextLayoutAnimation(e,null!=t?t:function(){},function(){})}function Q(e,t,n){return{duration:e,create:{type:t,property:n},update:{type:t},delete:{type:t,property:n}}}var ee={easeInEaseOut:Q(300,"easeInEaseOut","opacity"),linear:Q(500,"linear","opacity"),spring:{duration:700,create:{type:"linear",property:"opacity"},update:{type:"spring",springDamping:.4},delete:{type:"linear",property:"opacity"}}},et={configureNext:X,create:Q,Types:Object.freeze({spring:"spring",linear:"linear",easeInEaseOut:"easeInEaseOut",easeIn:"easeIn",easeOut:"easeOut",keyboard:"keyboard"}),Properties:Object.freeze({opacity:"opacity",scaleX:"scaleX",scaleY:"scaleY",scaleXY:"scaleXY"}),checkConfig(){console.error("LayoutAnimation.checkConfig(...) has been disabled.")},Presets:ee,easeInEaseOut:X.bind(null,ee.easeInEaseOut),linear:X.bind(null,ee.linear),spring:X.bind(null,ee.spring)},en=n(277634),er=n(40715),ei=n(875739),eo=n(883949),es=class{static share(e,t){return(void 0===t&&(t={}),x()("object"==typeof e&&null!==e,"Content to share must be a valid object"),x()("string"==typeof e.url||"string"==typeof e.message,"At least one of URL and message is required"),x()("object"==typeof t&&null!==t,"Options must be a valid object"),x()(!e.title||"string"==typeof e.title,"Invalid title: title should be a string."),void 0!==window.navigator.share)?window.navigator.share({title:e.title,text:e.message,url:e.url}):Promise.reject(Error("Share is not supported in this browser"))}static get sharedAction(){return"sharedAction"}static get dismissedAction(){return"dismissedAction"}},ea=e=>{"vibrate"in window.navigator&&window.navigator.vibrate(e)},el={cancel(){ea(0)},vibrate(e){void 0===e&&(e=400),ea(e)}},ec=n(987552),eu=["animating","color","hidesWhenStopped","size","style"],ed=e=>C.createElement("circle",{cx:"16",cy:"16",fill:"none",r:"14",strokeWidth:"4",style:e}),eh=C.forwardRef((e,t)=>
3{var n=e.animating,r=void 0===n||n,i=e.color,o=void 0===i?"#1976D2":i,s=e.hidesWhenStopped,a=e.size,l=void 0===a?"small":a,c=e.style,u=(0,ec.A)(e,eu),d=C.createElement("svg",{height:"100%",viewBox:"0 0 32 32",width:"100%"},ed({stroke:o,opacity:.2}),ed({stroke:o,strokeDasharray:80,strokeDashoffset:60}));return C.createElement(D.A,(0,k.A)({},u,{"aria-valuemax":1,"aria-valuemin":0,ref:t,role:"progressbar",style:[ef.container,c]}),C.createElement(D.A,{children:d,style:["number"==typeof l?{height:l,width:l}:ep[l],ef.animation,!r&&ef.animationPause,!r&&(void 0===s||s)&&ef.hidesWhenStopped]}))});eh.displayName="ActivityIndicator";var ef=A.A.create({container:{alignItems:"center",justifyContent:"center"},hidesWhenStopped:{visibility:"hidden"},animation:{animationDuration:"0.75s",animationKeyframes:[{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}],animationTimingFunction:"linear",animationIterationCount:"infinite"},animationPause:{animationPlayState:"paused"}}),ep=A.A.create({small:{width:20,height:20},large:{width:36,height:36}}),em=eh,eg=n(132707),ey=n(382295),ev=["activeOpacity","delayPressIn","delayPressOut","delayLongPress","disabled","focusable","onLongPress","onPress","onPressIn","onPressOut","rejectResponderTermination","style"],eb=A.A.create({root:{transitionProperty:"opacity",transitionDuration:"0.15s",userSelect:"none"},actionable:{cursor:"pointer",touchAction:"manipulation"}}),e_=C.memo(C.forwardRef(function(e,t){var n=e.activeOpacity,r=e.delayPressIn,i=e.delayPressOut,o=e.delayLongPress,s=e.disabled,a=e.focusable,l=e.onLongPress,c=e.onPress,u=e.onPressIn,d=e.onPressOut,h=e.rejectResponderTermination,f=e.style,p=(0,ec.A)(e,ev),m=(0,C.useRef)(null),g=(0,eg.A)(t,m),y=(0,C.useState)("0s"),v=y[0],b=y[1],_=(0,C.useState)(null),w=_[0],x=_[1],A=(0,C.useCallback)((e,t)=>{x(e),b(t?t/1e3+"s":"0s")},[x,b]),S=(0,C.useCallback)(e=>{A(null!=n?n:.2,e)},[n,A]),E=(0,C.useCallback)(e=>{A(null,e)},[A]),T=(0,C.useMemo)(()=>({cancelable:!h,disabled:s,delayLongPress:o,delayPressStart:r,delayPressEnd:i,onLongPress:l,onPress:c,onPressStart(e){S(150*!(null!=e.dispatchConfig?"onResponderGrant"===e.dispatchConfig.registrationName:"keydown"===e.type)),null!=u&&u(e)},onPressEnd(e){E(250),null!=d&&d(e)}}),[o,r,i,s,l,c,u,d,h,S,E]),O=(0,ey.A)(m,T);return C.createElement(D.A,(0,k.A)({},p,O,{accessibilityDisabled:s,focusable:!s&&!1!==a,pointerEvents:s?"box-none":void 0,ref:g,style:[eb.root,!s&&eb.actionable,f,null!=w&&{opacity:w},{transitionDuration:v}]}))}));e_.displayName="TouchableOpacity";var ew=e_,ex=n(99561),ek=C.forwardRef((e,t)=>{var n=e.accessibilityLabel,r=e.color,i=e.disabled,o=e.onPress,s=e.testID,a=e.title;return C.createElement(ew,{accessibilityLabel:n,accessibilityRole:"button",disabled:i,focusable:!i,onPress:o,ref:t,style:[eC.button,r&&{backgroundColor:r},i&&eC.buttonDisabled],testID:s},C.createElement(ex.A,{style:[eC.text,i&&eC.textDisabled]},a))});ek.displayName="Button";var eC=A.A.create({button:{backgroundColor:"#2196F3",borderRadius:2},text:{color:"#fff",fontWeight:"500",padding:8,textAlign:"center",textTransform:"uppercase"},buttonDisabled:{backgroundColor:"#dfdfdf"},textDisabled:{color:"#a1a1a1"}}),eA=ek,eD=["aria-readonly","color","disabled","onChange","onValueChange","readOnly","style","value"],eS=C.forwardRef((e,t)=>
3{var n=e["aria-readonly"],r=e.color,i=e.disabled,s=e.onChange,a=e.onValueChange,l=e.readOnly,c=e.style,u=e.value,d=(0,ec.A)(e,eD),h=C.createElement(D.A,{style:[eE.fakeControl,u&&eE.fakeControlChecked,u&&r&&{backgroundColor:r,borderColor:r},i&&eE.fakeControlDisabled,u&&i&&eE.fakeControlCheckedAndDisabled]}),f=(0,o.A)("input",{checked:u,disabled:i,onChange:function(e){var t=e.nativeEvent.target.checked;e.nativeEvent.value=t,s&&s(e),a&&a(t)},readOnly:!0===l||!0===n||!0===d.accessibilityReadOnly,ref:t,style:[eE.nativeControl,eE.cursorInherit],type:"checkbox"});return C.createElement(D.A,(0,k.A)({},d,{"aria-disabled":i,"aria-readonly":n,style:[eE.root,c,i&&eE.cursorDefault]}),h,f)});eS.displayName="CheckBox";var eE=A.A.create({root:{cursor:"pointer",height:16,userSelect:"none",width:16},cursorDefault:{cursor:"default"},cursorInherit:{cursor:"inherit"},fakeControl:{alignItems:"center",backgroundColor:"#fff",borderColor:"#657786",borderRadius:2,borderStyle:"solid",borderWidth:2,height:"100%",justifyContent:"center",width:"100%"},fakeControlChecked:{backgroundColor:"#009688",backgroundImage:'url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgdmVyc2lvbj0iMS4xIgogICB2aWV3Qm94PSIwIDAgMSAxIgogICBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWluWU1pbiBtZWV0Ij4KICA8cGF0aAogICAgIGQ9Ik0gMC4wNDAzODA1OSwwLjYyNjc3NjcgMC4xNDY0NDY2MSwwLjUyMDcxMDY4IDAuNDI5Mjg5MzIsMC44MDM1NTMzOSAwLjMyMzIyMzMsMC45MDk2MTk0MSB6IE0gMC4yMTcxNTcyOSwwLjgwMzU1MzM5IDAuODUzNTUzMzksMC4xNjcxNTcyOSAwLjk1OTYxOTQxLDAuMjczMjIzMyAwLjMyMzIyMzMsMC45MDk2MTk0MSB6IgogICAgIGlkPSJyZWN0Mzc4MCIKICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIiAvPgo8L3N2Zz4K")',backgroundRepeat:"no-repeat",borderColor:"#009688"},fakeControlDisabled:{borderColor:"#CCD6DD"},fakeControlCheckedAndDisabled:{backgroundColor:"#AAB8C2",borderColor:"#AAB8C2"},nativeControl:(0,_.A)((0,_.A)({},A.A.absoluteFillObject),{},{height:"100%",margin:0,appearance:"none",padding:0,width:"100%"})}),eT=eS,eO=n(319825),eM=n(495517),eN=["children","style","imageStyle","imageRef"],eP={},eR=(0,C.forwardRef)((e,t)=>{var n=e.children,r=e.style,i=void 0===r?eP:r,o=e.imageStyle,s=e.imageRef,a=(0,ec.A)(e,eN),l=A.A.flatten(i),c=l.height,u=l.width;return C.createElement(D.A,{ref:t,style:i},C.createElement(eM.A,(0,k.A)({},a,{ref:s,style:[{width:u,height:c,zIndex:-1},A.A.absoluteFill,o]})),n)});eR.displayName="ImageBackground";var eI=eR,eF=n(875341),eL=n(843144),ej=function(e){var t=e.children,n=C.useRef(null);if(g.A&&!n.current){var r=document.createElement("div");r&&document.body&&(document.body.appendChild(r),n.current=r)}return C.useEffect(()=>{if(g.A)return()=>{document.body&&n.current&&(document.body.removeChild(n.current),n.current=null)}},[]),n.current&&g.A?(0,eL.createPortal)(t,n.current):null},ez=A.A.create({container:{position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:9999},animatedIn:{animationDuration:"250ms",animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},animatedOut:{pointerEvents:"none",animationDuration:"250ms",animationTimingFunction:"cubic-bezier(0.47, 0, 0.745, 0.715)"},fadeIn:{opacity:1,animationKeyframes:{"0%":{opacity:0},"100%":{opacity:1}}},fadeOut:{opacity:0,animationKeyframes:{"0%":{opacity:1},"100%":{opacity:0}}},slideIn:{transform:"translateY(0%)",animationKeyframes:{"0%":{transform:"translateY(100%)"},"100%":{transform:"translateY(0%)"}}},slideOut:{transform:"translateY(100%)",animationKeyframes:{"0%":{transform:"translateY(0%)"},"100%":{transform:"translateY(100%)"}}},hidden:{opacity:0}}),e$=[ez.container,ez.animatedIn,ez.slideIn],eB=[ez.container,ez.animatedOut,ez.slideOut],eV=[ez.container,ez.animatedIn,ez.fadeIn],eY=[ez.container,ez.animatedOut,ez.fadeOut],eq=function(e){var t=e.animationType,n=e.children,r=e.onDismiss,i=e.onShow,s=e.visible,a=C.useState(!1),l=a[0],c=a[1],u=C.useRef(!1),d=C.useRef(!1),h=t&&"none"!==t,f=C.useCallback(e=>{(!e||e.currentTarget===e.target)&&(s?i&&i():c(!1))},[i,s]);return C.useEffect(()=>{d.current&&!l&&r&&r(),d.current=l},[l,r]),C.useEffect(()=>{s&&c(!0),s===u.current||h||f(),u.current=s},[h,s,f]),l||s?(0,o.A)("div",{style:l?"slide"===t?s?e$:eB:"fade"===t?s?eV:eY:s?ez.container:ez.hidden:ez.hidden,onAnimationEnd:f,children:n}):null},eH=["active","children","onRequestClose","transparent"],eW=C.forwardRef((e,t)=>
3{var n=e.active,r=e.children,i=e.onRequestClose,o=e.transparent,s=(0,ec.A)(e,eH);C.useEffect(()=>{if(g.A){var e=e=>{n&&"Escape"===e.key&&(e.stopPropagation(),i&&i())};return document.addEventListener("keyup",e,!1),()=>document.removeEventListener("keyup",e,!1)}},[n,i]);var a=C.useMemo(()=>[eU.modal,o?eU.modalTransparent:eU.modalOpaque],[o]);return C.createElement(D.A,(0,k.A)({},s,{"aria-modal":!0,ref:t,role:n?"dialog":null,style:a}),C.createElement(D.A,{style:eU.container},r))}),eU=A.A.create({modal:{position:"fixed",top:0,right:0,bottom:0,left:0},modalTransparent:{backgroundColor:"transparent"},modalOpaque:{backgroundColor:"white"},container:{top:0,flex:1}}),eG=()=>(0,o.A)("div",{role:"none",tabIndex:0,style:eK.focusBracket});function eZ(e){if(!g.A)return!1;try{e.focus()}catch(e){}return document.activeElement===e}var eJ=e=>{var t=e.active,n=e.children,r=C.useRef(),i=C.useRef({trapFocusInProgress:!1,lastFocusedElement:null});return C.useEffect(()=>{if(g.A){var e=()=>{if(null!=r.current&&!i.current.trapFocusInProgress&&t){try{if(i.current.trapFocusInProgress=!0,document.activeElement instanceof Node&&!r.current.contains(document.activeElement)){var e=function e(t){for(var n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(eZ(r)||e(r))return!0}return!1}(r.current);i.current.lastFocusedElement===document.activeElement&&(e=function e(t){for(var n=t.childNodes.length-1;n>=0;n--){var r=t.childNodes[n];if(eZ(r)||e(r))return!0}return!1}(r.current)),!e&&null!=r.current&&document.activeElement&&K.A.focus(r.current)}}finally{i.current.trapFocusInProgress=!1}i.current.lastFocusedElement=document.activeElement}};return e(),document.addEventListener("focus",e,!0),()=>document.removeEventListener("focus",e,!0)}},[t]),C.useEffect(function(){if(g.A){var e=document.activeElement;return function(){e&&document.contains(e)&&K.A.focus(e)}}},[]),C.createElement(C.Fragment,null,C.createElement(eG,null),C.createElement(D.A,{ref:r},n),C.createElement(eG,null))},eK=A.A.create({focusBracket:{outlineStyle:"none"}}),eX=["animationType","children","onDismiss","onRequestClose","onShow","transparent","visible"],eQ=0,e0=[],e1={};function e2(){if(0!==e0.length){var e=e0[e0.length-1];e0.forEach(t=>{t in e1&&e1[t](t===e)})}}function e3(e){e in e1&&(e1[e](!1),delete e1[e]);var t=e0.indexOf(e);-1!==t&&(e0.splice(t,1),e2())}var e4=C.forwardRef((e,t)=>{var n=e.animationType,r=e.children,i=e.onDismiss,o=e.onRequestClose,s=e.onShow,a=e.transparent,l=e.visible,c=(0,ec.A)(e,eX),u=C.useMemo(()=>eQ++,[]),d=C.useState(!1),h=d[0],f=d[1],p=C.useCallback(()=>{e3(u),i&&i()},[u,i]),m=C.useCallback(()=>{e3(u),e0.push(u),e1[u]=f,e2(),s&&s()},[u,s]);return C.useEffect(()=>()=>e3(u),[u]),C.createElement(ej,null,C.createElement(eq,{animationType:n,onDismiss:p,onShow:m,visible:void 0===l||l},C.createElement(eJ,{active:h},C.createElement(eW,(0,k.A)({},c,{active:h,onRequestClose:o,ref:t,transparent:a}),r))))}),e5=n(233054),e6=["children","enabled","onValueChange","selectedValue","style","testID","itemStyle","mode","prompt"],e9=C.forwardRef((e,t)=>{var n=e.children,r=e.enabled,i=e.onValueChange,s=e.selectedValue,a=e.style,l=e.testID,c=(e.itemStyle,e.mode,e.prompt,(0,ec.A)(e,e6)),u=C.useRef(null),d=(0,_.A)({children:n,disabled:!1===r||void 0,onChange:function(e){var t=e.target,n=t.selectedIndex,r=t.value;i&&i(r,n)},style:[e8.initial,a],testID:l,value:s},c),h=(0,e5.A)(d);return d.ref=(0,eg.A)(u,h,t),(0,o.A)("select",d)});e9.Item=function(e){var t=e.color,n=e.label,r=e.testID,i=e.value;return(0,o.A)("option",{children:n,style:{color:t},testID:r,value:i})};var e8=A.A.create({initial:{fontFamily:"System",fontSize:"inherit",margin:0}}),e7=e9,te=n(463156),tt=["color","indeterminate","progress","trackColor","style"],tn=C.forwardRef((e,t)=>{var n=e.color,r=e.indeterminate,i=void 0!==r&&r,o=e.progress,s=e.trackColor,a=e.style,l=(0,ec.A)(e,tt),c=100*(void 0===o?0:o);return C.createElement(D.A,(0,k.A)({},l,{"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":i?null:c,ref:t,role:"progressbar",style:[tr.track,a,{backgroundColor:void 0===s?"transparent":s}]}),C.createElement(D.A,{style:[{backgroundColor:void 0===n?"#1976D2":n,width:i?"25%":c+"%"},tr.progress,i&&tr.animation]}))});tn.displayName="ProgressBar";var tr=A.A.create({track:{forcedColorAdjust:"none",height:5,overflow:"hidden",userSelect:"none",zIndex:0},progress:{forcedColorAdjust:"none",height:"100%",zIndex:-1},animation:{animationDuration:"1s",animationKeyframes:[{"0%":{transform:"translateX(-100%)"},"100%":{transform:"translateX(400%)"}}],animationTimingFunction:"linear",animationIterationCount:"infinite"}}),ti=tn,to=n(478142),ts=["style"],ta=g.A&&window.CSS&&window.CSS.supports&&window.CSS.supports("top: constant(safe-area-inset-top)")?"constant":"env",tl=C.forwardRef((e,t)=>
3{var n=e.style,r=(0,ec.A)(e,ts);return C.createElement(D.A,(0,k.A)({},r,{ref:t,style:[tc.root,n]}))});tl.displayName="SafeAreaView";var tc=A.A.create({root:{paddingTop:ta+"(safe-area-inset-top)",paddingRight:ta+"(safe-area-inset-right)",paddingBottom:ta+"(safe-area-inset-bottom)",paddingLeft:ta+"(safe-area-inset-left)"}}),tu=tl,td=n(259861),th=n(202968),tf=n(276801),tp=n(464754),tm=n(7099),tg=n(258841),ty=["activeOpacity","children","delayPressIn","delayPressOut","delayLongPress","disabled","focusable","onHideUnderlay","onLongPress","onPress","onPressIn","onPressOut","onShowUnderlay","rejectResponderTermination","style","testOnly_pressed","underlayColor"];function tv(e,t){return{child:{opacity:null!=e?e:.85},underlay:{backgroundColor:void 0===t?"black":t}}}function tb(e){return null!=e.onPress||null!=e.onPressIn||null!=e.onPressOut||null!=e.onLongPress}var t_=A.A.create({root:{userSelect:"none"},actionable:{cursor:"pointer",touchAction:"manipulation"}}),tw=C.memo(C.forwardRef(function(e,t){var n=e.activeOpacity,r=e.children,i=e.delayPressIn,o=e.delayPressOut,s=e.delayLongPress,a=e.disabled,l=e.focusable,c=e.onHideUnderlay,u=e.onLongPress,d=e.onPress,h=e.onPressIn,f=e.onPressOut,p=e.onShowUnderlay,m=e.rejectResponderTermination,g=e.style,y=e.testOnly_pressed,v=e.underlayColor,b=(0,ec.A)(e,ty),_=(0,C.useRef)(null),w=(0,eg.A)(t,_),x=(0,C.useState)(!0===y?tv(n,v):null),A=x[0],S=x[1],E=(0,C.useCallback)(()=>{tb(e)&&(S(tv(n,v)),null!=p&&p())},[n,p,e,v]),T=(0,C.useCallback)(()=>{!0!==y&&tb(e)&&(S(null),null!=c&&c())},[c,e,y]),O=(0,C.useMemo)(()=>({cancelable:!m,disabled:a,delayLongPress:s,delayPressStart:i,delayPressEnd:o,onLongPress:u,onPress:d,onPressStart(e){E(),null!=h&&h(e)},onPressEnd(e){T(),null!=f&&f(e)}}),[s,i,o,a,u,d,h,f,m,E,T]),M=(0,ey.A)(_,O),N=C.Children.only(r);return C.createElement(D.A,(0,k.A)({},b,M,{accessibilityDisabled:a,focusable:!a&&!1!==l,pointerEvents:a?"box-none":void 0,ref:w,style:[t_.root,g,!a&&t_.actionable,A&&A.underlay]}),C.cloneElement(N,{style:[N.props.style,A&&A.child]}))}));tw.displayName="TouchableHighlight";var tx=tw,tk=["style"],tC={},tA=function(e){var t=e.style,n=(0,ec.A)(e,tk);return C.createElement(D.A,(0,k.A)({},n,{style:[tC,t]}))},tD=tA,tS=n(371329),tE=n(475661),tT={accessibilityDisabled:!0,accessibilityLabel:!0,accessibilityLiveRegion:!0,accessibilityRole:!0,accessibilityState:!0,accessibilityValue:!0,children:!0,disabled:!0,focusable:!0,nativeID:!0,onBlur:!0,onFocus:!0,onLayout:!0,testID:!0},tO=C.memo(C.forwardRef(function(e,t){(0,tE.m)("TouchableWithoutFeedback","TouchableWithoutFeedback is deprecated. Please use Pressable.");var n=e.delayPressIn,r=e.delayPressOut,i=e.delayLongPress,o=e.disabled,s=e.focusable,a=e.onLongPress,l=e.onPress,c=e.onPressIn,u=e.onPressOut,d=e.rejectResponderTermination,h=(0,C.useRef)(null),f=(0,C.useMemo)(()=>({cancelable:!d,disabled:o,delayLongPress:i,delayPressStart:n,delayPressEnd:r,onLongPress:a,onPress:l,onPressStart:c,onPressEnd:u}),[o,n,r,i,a,l,c,u,d]),p=(0,ey.A)(h,f),m=C.Children.only(e.children),g=[m.props.children],y=(0,tS.A)(e,tT);y.accessibilityDisabled=o,y.focusable=!o&&!1!==s,y.ref=(0,eg.A)(t,h,m.ref);var v=Object.assign(y,p);return C.cloneElement(m,v,...g)}));tO.displayName="TouchableWithoutFeedback";var tM=tO,tN=n(633024).A;function tP(e){return C.createElement(tA,e)}tP.ignoreWarnings=()=>{};var tR=tP,tI={ignoreLogs(){},ignoreAllLogs(){},uninstall(){},install(){}},tF=n(868358);function tL(){var e=C.useState(b.getColorScheme()),t=e[0],n=e[1];return C.useEffect(()=>b.addChangeListener(function(e){n(e.colorScheme)}).remove),t}var tj=n(229207).PZ,tz=n(717040)},382295:function(e,t,n){"use strict";n.d(t,{A:function(){return w}});var r="DELAY",i="ERROR",o="LONG_PRESS_DETECTED",s="NOT_RESPONDER",a="RESPONDER_ACTIVE_LONG_PRESS_START",l="RESPONDER_ACTIVE_PRESS_START",c="RESPONDER_INACTIVE_PRESS_START",u="RESPONDER_RELEASE",d="RESPONDER_TERMINATED",h=Object.freeze({NOT_RESPONDER:{DELAY:i,RESPONDER_GRANT:c,RESPONDER_RELEASE:i,RESPONDER_TERMINATED:i,LONG_PRESS_DETECTED:i},RESPONDER_INACTIVE_PRESS_START:{DELAY:l,RESPONDER_GRANT:i,RESPONDER_RELEASE:s,RESPONDER_TERMINATED:s,LONG_PRESS_DETECTED:i},RESPONDER_ACTIVE_PRESS_START:{DELAY:i,RESPONDER_GRANT:i,RESPONDER_RELEASE:s,RESPONDER_TERMINATED:s,LONG_PRESS_DETECTED:a},RESPONDER_ACTIVE_LONG_PRESS_START:{DELAY:i,RESPONDER_GRANT:i,RESPONDER_RELEASE:s,RESPONDER_TERMINATED:s,LONG_PRESS_DETECTED:a},ERROR:{DELAY:s,RESPONDER_GRANT:c,RESPONDER_RELEASE:s,RESPONDER_TERMINATED:s,LONG_PRESS_DETECTED:s}}),f=e=>e===l||e===a,p=e=>"button"===e.getAttribute("role"),m=e=>e===c||e===l||e===a,g=e=>{var t=e.key,n=e.target,r="button"===n.tagName.toLowerCase()||p(n);return"Enter"===t||(" "===t||"Spacebar"===t)&&r};class y{constructor(e){this._eventHandlers=null,this._isPointerTouch=!1,this._longPressDelayTimeout=null,this._longPressDispatched=!1,this._pressDelayTimeout=null,this._pressOutDelayTimeout=null,this._touchState=s,this._responderElement=null,this.configure(e)}configure(e){this._config=e}reset(){this._cancelLongPressDelayTimeout(),this._cancelPressDelayTimeout(),this._cancelPressOutDelayTimeout()}getEventHandlers(){return null==this._eventHandlers&&(this._eventHandlers=this._createEventHandlers()),this._eventHandlers}_createEventHandlers(){var e=(e,t)=>
3{e.persist(),this._cancelPressOutDelayTimeout(),this._longPressDispatched=!1,this._selectionTerminated=!1,this._touchState=s,this._isPointerTouch="touchstart"===e.nativeEvent.type,this._receiveSignal("RESPONDER_GRANT",e);var n=v(this._config.delayPressStart,0,50);!1!==t&&n>0?this._pressDelayTimeout=setTimeout(()=>{this._receiveSignal(r,e)},n):this._receiveSignal(r,e);var i=v(this._config.delayLongPress,10,450);this._longPressDelayTimeout=setTimeout(()=>{this._handleLongPress(e)},i+n)},t=e=>{this._receiveSignal(u,e)},n=e=>{var r=this._config.onPress,i=e.target;if(this._touchState!==s&&g(e)){t(e),document.removeEventListener("keyup",n);var o=i.getAttribute("role"),a=i.tagName.toLowerCase(),l="link"===o||"a"===a||"button"===a||"input"===a||"select"===a||"textarea"===a,c=this._responderElement===i;null!=r&&!l&&c&&r(e),this._responderElement=null}};return{onStartShouldSetResponder:e=>{var t=this._config.disabled;return t&&p(e.currentTarget)&&e.stopPropagation(),null==t||!t},onKeyDown:t=>{var r=this._config.disabled,i=t.key,o=t.target;if(!r&&g(t)){this._touchState===s&&(e(t,!1),this._responderElement=o,document.addEventListener("keyup",n));var a=o.getAttribute("role");(" "===i||"Spacebar"===i)&&("button"===a||"menuitem"===a)&&"button"!==o.tagName.toLowerCase()&&t.preventDefault(),t.stopPropagation()}},onResponderGrant:t=>e(t),onResponderMove:e=>{null!=this._config.onPressMove&&this._config.onPressMove(e);var t=b(e);null!=this._touchActivatePosition&&Math.hypot(this._touchActivatePosition.pageX-t.pageX,this._touchActivatePosition.pageY-t.pageY)>10&&this._cancelLongPressDelayTimeout()},onResponderRelease:e=>t(e),onResponderTerminate:e=>{"selectionchange"===e.nativeEvent.type&&(this._selectionTerminated=!0),this._receiveSignal(d,e)},onResponderTerminationRequest:e=>{var t=this._config,n=t.cancelable,r=t.disabled,i=t.onLongPress;return(!!r||null==i||!this._isPointerTouch||"contextmenu"!==e.nativeEvent.type)&&(null==n||n)},onClick:e=>{var t=this._config,n=t.disabled,r=t.onPress;n?p(e.currentTarget)&&e.stopPropagation():(e.stopPropagation(),this._longPressDispatched||this._selectionTerminated?e.preventDefault():null!=r&&!1===e.altKey&&r(e))},onContextMenu:e=>{var t=this._config,n=t.disabled,r=t.onLongPress;n?p(e.currentTarget)&&e.stopPropagation():null!=r&&this._isPointerTouch&&!e.defaultPrevented&&(e.preventDefault(),e.stopPropagation())}}}_receiveSignal(e,t){var n=this._touchState,r=null;null!=h[n]&&(r=h[n][e]),(this._touchState!==s||e!==u)&&(null==r||r===i?console.error("PressResponder: Invalid signal "+e+" for state "+n+" on responder"):n!==r&&(this._performTransitionSideEffects(n,r,e,t),this._touchState=r))}_performTransitionSideEffects(e,t,n,r){if((n===d||n===u)&&(setTimeout(()=>{this._isPointerTouch=!1},0),this._touchActivatePosition=null,this._cancelLongPressDelayTimeout()),m(e)&&n===o){var i=this._config.onLongPress;null!=i&&null==r.nativeEvent.key&&(i(r),this._longPressDispatched=!0)}var s=f(e),l=f(t);if(!s&&l?this._activate(r):s&&!l&&this._deactivate(r),m(e)&&n===u){var c=this._config,h=c.onLongPress;null!=c.onPress&&(null!=h&&e===a||l||s||(this._activate(r),this._deactivate(r)))}this._cancelPressDelayTimeout()}_activate(e){var t=this._config,n=t.onPressChange,r=t.onPressStart,i=b(e);this._touchActivatePosition={pageX:i.pageX,pageY:i.pageY},null!=r&&r(e),null!=n&&n(!0)}_deactivate(e){var t=this._config,n=t.onPressChange,r=t.onPressEnd;function i(){null!=r&&r(e),null!=n&&n(!1)}var o=v(this._config.delayPressEnd);o>0?this._pressOutDelayTimeout=setTimeout(()=>{i()},o):i()}_handleLongPress(e){(this._touchState===l||this._touchState===a)&&this._receiveSignal(o,e)}_cancelLongPressDelayTimeout(){null!=this._longPressDelayTimeout&&(clearTimeout(this._longPressDelayTimeout),this._longPressDelayTimeout=null)}_cancelPressDelayTimeout(){null!=this._pressDelayTimeout&&(clearTimeout(this._pressDelayTimeout),this._pressDelayTimeout=null)}_cancelPressOutDelayTimeout(){null!=this._pressOutDelayTimeout&&(clearTimeout(this._pressOutDelayTimeout),this._pressOutDelayTimeout=null)}}function v(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=0),Math.max(t,null!=e?e:n)}function b(e){var t=e.nativeEvent,n=t.changedTouches,r=t.touches;return null!=r&&r.length>0?r[0]:null!=n&&n.length>0?n[0]:e.nativeEvent}var _=n(514041);function w(e,t){var n=(0,_.useRef)(null);
3null==n.current&&(n.current=new y(t));var r=n.current;return(0,_.useEffect)(()=>{r.configure(t)},[t,r]),(0,_.useEffect)(()=>()=>{r.reset()},[r]),(0,_.useDebugValue)(t),r.getEventHandlers()}},943588:function(e,t,n){"use strict";n.d(t,{A:function(){return y}});var r=n(921844),i=n(527079),o=n(939067),s=n.n(o),a=n(514041),l=n(843144),c=n(734545),u=function(e){return e&&"function"!=typeof e?function(t){e.current=t}:e},d=n(971541),h=n(538807),f=n(893815),p=n(716245),m=n(256187),g=a.forwardRef(function(e,t){var n=e.flip,o=e.offset,s=e.placement,d=e.containerPadding,g=e.popperConfig,y=e.transition,v=(0,c.A)(),b=v[0],_=v[1],w=(0,c.A)(),x=w[0],k=w[1],C=(0,a.useMemo)(function(){var e,n;return e=u(_),n=u(t),function(t){e&&e(t),n&&n(t)}},[_,t]),A=(0,p.A)(e.container),D=(0,p.A)(e.target),S=(0,a.useState)(!e.show),E=S[0],T=S[1],O=(0,h.A)(D,b,(0,m.Ay)({placement:s,enableEvents:!!e.show,containerPadding:(void 0===d?5:d)||5,flip:n,offset:o,arrowElement:x,popperConfig:void 0===g?{}:g})),M=O.styles,N=O.attributes,P=(0,i.A)(O,["styles","attributes"]);e.show?E&&T(!1):e.transition||E||T(!0);var R=e.show||y&&!E;if((0,f.A)(b,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!R)return null;var I=e.children((0,r.A)({},P,{show:!!e.show,props:(0,r.A)({},N.popper,{style:M.popper,ref:C}),arrowProps:(0,r.A)({},N.arrow,{style:M.arrow,ref:k})}));if(y){var F=e.onExit,L=e.onExiting,j=e.onEnter,z=e.onEntering,$=e.onEntered;I=a.createElement(y,{in:e.show,appear:!0,onExit:F,onExiting:L,onExited:function(){T(!0),e.onExited&&e.onExited.apply(e,arguments)},onEnter:j,onEntering:z,onEntered:$},I)}return A?l.createPortal(I,A):null});g.displayName="Overlay",g.propTypes={show:s().bool,placement:s().oneOf(d.DD),target:s().any,container:s().any,flip:s().bool,children:s().func.isRequired,containerPadding:s().number,popperConfig:s().object,rootClose:s().bool,rootCloseEvent:s().oneOf(["click","mousedown"]),rootCloseDisabled:s().bool,onHide:function(e){for(var t,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return e.rootClose?(t=s().func).isRequired.apply(t,[e].concat(r)):s().func.apply(s(),[e].concat(r))},transition:s().elementType,onEnter:s().func,onEntering:s().func,onEntered:s().func,onExit:s().func,onExiting:s().func,onExited:s().func};var y=g},256187:function(e,t,n){"use strict";var r=n(921844);function i(e){var t,n,i,o,s,a,l,c=e.enabled,u=e.enableEvents,d=e.placement,h=e.flip,f=e.offset,p=e.fixed,m=e.containerPadding,g=e.arrowElement,y=e.popperConfig,v=void 0===y?{}:y,b=(t=v.modifiers,n={},Array.isArray(t)?(null==t||t.forEach(function(e){n[e.name]=e}),n):t||n);return(0,r.A)({},v,{placement:d,enabled:c,strategy:p?"fixed":v.strategy,modifiers:(void 0===(i=(0,r.A)({},b,{eventListeners:{enabled:u},preventOverflow:(0,r.A)({},b.preventOverflow,{options:m?(0,r.A)({padding:m},null==(o=b.preventOverflow)?void 0:o.options):null==(s=b.preventOverflow)?void 0:s.options}),offset:{options:(0,r.A)({offset:f},null==(a=b.offset)?void 0:a.options)},arrow:(0,r.A)({},b.arrow,{enabled:!!g,options:(0,r.A)({},null==(l=b.arrow)?void 0:l.options,{element:g})}),flip:(0,r.A)({enabled:!!h},b.flip)}))&&(i={}),Array.isArray(i))?i:Object.keys(i).map(function(e){return i[e].name=e,i[e]})})}n.d(t,{Ay:function(){return i}})},538807:function(e,t,n){"use strict";n.d(t,{A:function(){return ec}});var r,i,o,s,a,l=n(921844),c=n(527079),u=n(514041),d=n(690961),h=function(e){var t=(0,d.A)();return[e[0],(0,u.useCallback)(function(n){if(t())return e[1](n)},[t,e[1]])]};function f(e){return e.split("-")[0]}function p(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function m(e){var t=p(e).Element;return e instanceof t||e instanceof Element}function g(e){var t=p(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function y(e){if("u"<typeof ShadowRoot)return!1;var t=p(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var v=Math.max,b=Math.min,_=Math.round;function w(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function x(){return!/^((?!chrome|android).)*safari/i.test(w())}
vendor: 4,209 bytes, line 3
3function k(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&g(e)&&(i=e.offsetWidth>0&&_(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&_(r.height)/e.offsetHeight||1);var s=(m(e)?p(e):window).visualViewport,a=!x()&&n,l=(r.left+(a&&s?s.offsetLeft:0))/i,c=(r.top+(a&&s?s.offsetTop:0))/o,u=r.width/i,d=r.height/o;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function C(e){var t=k(e),n=e.offsetWidth,r=e.offsetHeight;return 1>=Math.abs(t.width-n)&&(n=t.width),1>=Math.abs(t.height-r)&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function A(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&y(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function D(e){return e?(e.nodeName||"").toLowerCase():null}function S(e){return p(e).getComputedStyle(e)}function E(e){return((m(e)?e.ownerDocument:e.document)||window.document).documentElement}function T(e){return"html"===D(e)?e:e.assignedSlot||e.parentNode||(y(e)?e.host:null)||E(e)}function O(e){return g(e)&&"fixed"!==S(e).position?e.offsetParent:null}function M(e){for(var t=p(e),n=O(e);n&&["table","td","th"].indexOf(D(n))>=0&&"static"===S(n).position;)n=O(n);return n&&("html"===D(n)||"body"===D(n)&&"static"===S(n).position)?t:n||function(e){var t=/firefox/i.test(w());if(/Trident/i.test(w())&&g(e)&&"fixed"===S(e).position)return null;var n=T(e);for(y(n)&&(n=n.host);g(n)&&0>["html","body"].indexOf(D(n));){var r=S(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function N(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function P(e,t,n){return v(e,b(t,n))}function R(){return{top:0,right:0,bottom:0,left:0}}function I(e){return Object.assign({},R(),e)}function F(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var L=n(971541);function j(e){return e.split("-")[1]}var z={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $(e){var t,n,r,i,o,s,a,l=e.popper,c=e.popperRect,u=e.placement,d=e.variation,h=e.offsets,f=e.position,m=e.gpuAcceleration,g=e.adaptive,y=e.roundOffsets,v=e.isFixed,b=h.x,w=void 0===b?0:b,x=h.y,k=void 0===x?0:x,C="function"==typeof y?y({x:w,y:k}):{x:w,y:k};w=C.x,k=C.y;var A=h.hasOwnProperty("x"),D=h.hasOwnProperty("y"),T=L.kb,O=L.Mn,N=window;if(g){var P=M(l),R="clientHeight",I="clientWidth";P===p(l)&&"static"!==S(P=E(l)).position&&"absolute"===f&&(R="scrollHeight",I="scrollWidth"),(u===L.Mn||(u===L.kb||u===L.pG)&&d===L._N)&&(O=L.sQ,k-=(v&&P===N&&N.visualViewport?N.visualViewport.height:P[R])-c.height,k*=m?1:-1),(u===L.kb||(u===L.Mn||u===L.sQ)&&d===L._N)&&(T=L.pG,w-=(v&&P===N&&N.visualViewport?N.visualViewport.width:P[I])-c.width,w*=m?1:-1)}var F=Object.assign({position:f},g&&z),j=!0===y?(t={x:w,y:k},n=p(l),r=t.x,i=t.y,{x:_(r*(o=n.devicePixelRatio||1))/o||0,y:_(i*o)/o||0}):{x:w,y:k};return(w=j.x,k=j.y,m)?Object.assign({},F,((a={})[O]=D?"0":"",a[T]=A?"0":"",a.transform=1>=(N.devicePixelRatio||1)?"translate("+w+"px, "+k+"px)":"translate3d("+w+"px, "+k+"px, 0)",a)):Object.assign({},F,((s={})[O]=D?k+"px":"",s[T]=A?w+"px":"",s.transform="",s))}var B={passive:!0},V={left:"right",right:"left",bottom:"top",top:"bottom"};function Y(e){return e.replace(/left|right|bottom|top/g,function(e){return V[e]})}var q={start:"end",end:"start"};function H(e){return e.replace(/start|end/g,function(e){return q[e]})}function W(e){var t=p(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function U(e){return k(E(e)).left+W(e).scrollLeft}function G(e){var t=S(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Z(e,t){void 0===t&&(t=[]);var n,r=function e(t){return["html","body","#document"].indexOf(D(t))>=0?t.ownerDocument.body:g(t)&&G(t)?t:e(T(t))}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=p(r),s=i?[o].concat(o.visualViewport||[],G(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(Z(T(s)))}function J(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function K(e,t,n){var r,i,o,s,a,l,c,u,d,h;
3return t===L.R9?J(function(e,t){var n=p(e),r=E(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;var c=x();(c||!c&&"fixed"===t)&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a+U(e),y:l}}(e,n)):m(t)?((r=k(t,!1,"fixed"===n)).top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r):J((i=E(e),s=E(i),a=W(i),l=null==(o=i.ownerDocument)?void 0:o.body,c=v(s.scrollWidth,s.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),u=v(s.scrollHeight,s.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),d=-a.scrollLeft+U(i),h=-a.scrollTop,"rtl"===S(l||s).direction&&(d+=v(s.clientWidth,l?l.clientWidth:0)-c),{width:c,height:u,x:d,y:h}))}function X(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?f(i):null,s=i?j(i):null,a=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case L.Mn:t={x:a,y:n.y-r.height};break;case L.sQ:t={x:a,y:n.y+n.height};break;case L.pG:t={x:n.x+n.width,y:l};break;case L.kb:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?N(o):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case L.ni:t[c]=t[c]-(n[u]/2-r[u]/2);break;case L._N:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function Q(e,t){void 0===t&&(t={});var n,r,i,o,s,a,l=t,c=l.placement,u=void 0===c?e.placement:c,d=l.strategy,h=void 0===d?e.strategy:d,f=l.boundary,p=void 0===f?L.WY:f,y=l.rootBoundary,_=void 0===y?L.R9:y,w=l.elementContext,x=void 0===w?L.xf:w,C=l.altBoundary,O=l.padding,N=void 0===O?0:O,P=I("number"!=typeof N?N:F(N,L.OM)),R=x===L.xf?L.ir:L.xf,j=e.rects.popper,z=e.elements[void 0!==C&&C?R:x],$=(n=m(z)?z:z.contextElement||E(e.elements.popper),s=(o=[].concat("clippingParents"===p?(r=Z(T(n)),!m(i=["absolute","fixed"].indexOf(S(n).position)>=0&&g(n)?M(n):n)?[]:r.filter(function(e){return m(e)&&A(e,i)&&"body"!==D(e)})):[].concat(p),[_]))[0],(a=o.reduce(function(e,t){var r=K(n,t,h);return e.top=v(r.top,e.top),e.right=b(r.right,e.right),e.bottom=b(r.bottom,e.bottom),e.left=v(r.left,e.left),e},K(n,s,h))).width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a),B=k(e.elements.reference),V=X({reference:B,element:j,strategy:"absolute",placement:u}),Y=J(Object.assign({},j,V)),q=x===L.xf?Y:B,H={top:$.top-q.top+P.top,bottom:q.bottom-$.bottom+P.bottom,left:$.left-q.left+P.left,right:q.right-$.right+P.right},W=e.modifiersData.offset;if(x===L.xf&&W){var U=W[u];Object.keys(H).forEach(function(e){var t=[L.pG,L.sQ].indexOf(e)>=0?1:-1,n=[L.Mn,L.sQ].indexOf(e)>=0?"y":"x";H[e]+=U[n]*t})}return H}function ee(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function et(e){return[L.Mn,L.pG,L.sQ,L.kb].some(function(t){return e[t]>=0})}var en={placement:"bottom",modifiers:[],strategy:"absolute"};function er(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}var ei=(o=void 0===(i=(r={defaultModifiers:[{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=Q(t,{elementContext:"reference"}),a=Q(t,{altBoundary:!0}),l=ee(s,r),c=ee(a,i,o),u=et(l),d=et(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=X({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=n.adaptive,o=n.roundOffsets,s=void 0===o||o,a={placement:f(t.placement),variation:j(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===r||r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,$(Object.assign({},a,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===i||i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,$(Object.assign({},a,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,s=r.resize,a=void 0===s||s,l=p(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);
vendor: 5,961 bytes, line 3
3return o&&c.forEach(function(e){e.addEventListener("scroll",n.update,B)}),a&&l.addEventListener("resize",n.update,B),function(){o&&c.forEach(function(e){e.removeEventListener("scroll",n.update,B)}),a&&l.removeEventListener("resize",n.update,B)}},data:{}},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,s=L.DD.reduce(function(e,n){var r,i,s,a,l,c;return e[n]=(r=t.rects,i=f(n),s=[L.kb,L.Mn].indexOf(i)>=0?-1:1,l=(a="function"==typeof o?o(Object.assign({},r,{placement:n})):o)[0],c=a[1],l=l||0,c=(c||0)*s,[L.kb,L.pG].indexOf(i)>=0?{x:c,y:l}:{x:l,y:c}),e},{}),a=s[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,m=void 0===p||p,g=n.allowedAutoPlacements,y=t.options.placement,v=f(y)===y,b=l||(v||!m?[Y(y)]:function(e){if(f(e)===L.qZ)return[];var t=Y(e);return[H(e),t,H(t)]}(y)),_=[y].concat(b).reduce(function(e,n){var r,i,o,s,a,l,h,p,y,v,b,_;return e.concat(f(n)===L.qZ?(i=(r={placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:g}).placement,o=r.boundary,s=r.rootBoundary,a=r.padding,l=r.flipVariations,p=void 0===(h=r.allowedAutoPlacements)?L.DD:h,0===(b=(v=(y=j(i))?l?L.Ol:L.Ol.filter(function(e){return j(e)===y}):L.OM).filter(function(e){return p.indexOf(e)>=0})).length&&(b=v),Object.keys(_=b.reduce(function(e,n){return e[n]=Q(t,{placement:n,boundary:o,rootBoundary:s,padding:a})[f(n)],e},{})).sort(function(e,t){return _[e]-_[t]})):n)},[]),w=t.rects.reference,x=t.rects.popper,k=new Map,C=!0,A=_[0],D=0;D<_.length;D++){var S=_[D],E=f(S),T=j(S)===L.ni,O=[L.Mn,L.sQ].indexOf(E)>=0,M=O?"width":"height",N=Q(t,{placement:S,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),P=O?T?L.pG:L.kb:T?L.sQ:L.Mn;w[M]>x[M]&&(P=Y(P));var R=Y(P),I=[];if(o&&I.push(N[E]<=0),a&&I.push(N[P]<=0,N[R]<=0),I.every(function(e){return e})){A=S,C=!1;break}k.set(S,I)}if(C)for(var F=m?3:1,z=function(e){var t=_.find(function(t){var n=k.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return A=t,"break"},$=F;$>0&&"break"!==z($);$--);t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=n.altAxis,s=n.boundary,a=n.rootBoundary,l=n.altBoundary,c=n.padding,u=n.tether,d=void 0===u||u,h=n.tetherOffset,p=void 0===h?0:h,m=Q(t,{boundary:s,rootBoundary:a,padding:c,altBoundary:l}),g=f(t.placement),y=j(t.placement),_=!y,w=N(g),x="x"===w?"y":"x",k=t.modifiersData.popperOffsets,A=t.rects.reference,D=t.rects.popper,S="function"==typeof p?p(Object.assign({},t.rects,{placement:t.placement})):p,E="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(k){if(void 0===i||i){var I,F="y"===w?L.Mn:L.kb,z="y"===w?L.sQ:L.pG,$="y"===w?"height":"width",B=k[w],V=B+m[F],Y=B-m[z],q=d?-D[$]/2:0,H=y===L.ni?A[$]:D[$],W=y===L.ni?-D[$]:-A[$],U=t.elements.arrow,G=d&&U?C(U):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:R(),J=Z[F],K=Z[z],X=P(0,A[$],G[$]),ee=_?A[$]/2-q-X-J-E.mainAxis:H-X-J-E.mainAxis,et=_?-A[$]/2+q+X+K+E.mainAxis:W+X+K+E.mainAxis,en=t.elements.arrow&&M(t.elements.arrow),er=en?"y"===w?en.clientTop||0:en.clientLeft||0:0,ei=null!=(I=null==T?void 0:T[w])?I:0,eo=P(d?b(V,B+ee-ei-er):V,B,d?v(Y,B+et-ei):Y);k[w]=eo,O[w]=eo-B}if(void 0!==o&&o){var es,ea,el="x"===w?L.Mn:L.kb,ec="x"===w?L.sQ:L.pG,eu=k[x],ed="y"===x?"height":"width",eh=eu+m[el],ef=eu-m[ec],ep=-1!==[L.Mn,L.kb].indexOf(g),em=null!=(ea=null==T?void 0:T[x])?ea:0,eg=ep?eh:eu-A[ed]-D[ed]-em+E.altAxis,ey=ep?eu+A[ed]+D[ed]-em-E.altAxis:ef,ev=d&&ep?(es=P(eg,eu,ey))>ey?ey:es:P(d?eg:eh,eu,d?ey:ef);k[x]=ev,O[x]=ev-eu}t.modifiersData[r]=O}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=f(n.placement),l=N(a),c=[L.kb,L.pG].indexOf(a)>=0?"height":"width";if(o&&s){var u,d=(u=i.padding,I("number"!=typeof(u="function"==typeof u?u(Object.assign({},n.rects,{placement:n.placement})):u)?u:F(u,L.OM))),h=C(o),p="y"===l?L.Mn:L.kb,m="y"===l?L.sQ:L.pG,g=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],y=s[l]-n.rects.reference[l],v=M(o),b=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,_=d[p],w=b-h[c]-d[m],x=b/2-h[c]/2+(g/2-y/2),k=P(_,x,w);n.modifiersData[r]=((t={})[l]=k,t.centerOffset=k-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null==r||("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&A(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}]}).defaultModifiers)?[]:i,a=void 0===(s=r.defaultOptions)?en:s,function(e,t,n){void 0===n&&(n=a);var r,i,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},en,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:s,setOptions:function(n){var r,i,c,h,f,p,g="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},a,s.options,g),s.scrollParents={reference:m(e)?Z(e):e.contextElement?Z(e.contextElement):[],popper:Z(t)};var y=(i=Object.keys(r=[].concat(o,s.options.modifiers).reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{})).map(function(e){return r[e]}
3),c=new Map,h=new Set,f=[],i.forEach(function(e){c.set(e.name,e)}),i.forEach(function(e){h.has(e.name)||function e(t){h.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!h.has(t)){var n=c.get(t);n&&e(n)}}),f.push(t)}(e)}),p=f,L.GM.reduce(function(e,t){return e.concat(p.filter(function(e){return e.phase===t}))},[]));return s.orderedModifiers=y.filter(function(e){return e.enabled}),s.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=e.effect;if("function"==typeof r){var i=r({state:s,name:t,instance:u,options:void 0===n?{}:n});l.push(i||function(){})}}),u.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(er(t,n)){s.rects={reference:(r=M(n),i="fixed"===s.options.strategy,o=g(r),h=g(r)&&(l=_((a=r.getBoundingClientRect()).width)/r.offsetWidth||1,d=_(a.height)/r.offsetHeight||1,1!==l||1!==d),f=E(r),m=k(t,h,i),y={scrollLeft:0,scrollTop:0},v={x:0,y:0},(o||!o&&!i)&&(("body"!==D(r)||G(f))&&(y=function(e){return e!==p(e)&&g(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:W(e)}(r)),g(r)?(v=k(r,!0),v.x+=r.clientLeft,v.y+=r.clientTop):f&&(v.x=U(f))),{x:m.left+y.scrollLeft-v.x,y:m.top+y.scrollTop-v.y,width:m.width,height:m.height}),popper:C(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var r,i,o,a,l,d,h,f,m,y,v,b=0;b<s.orderedModifiers.length;b++){if(!0===s.reset){s.reset=!1,b=-1;continue}var w=s.orderedModifiers[b],x=w.fn,A=w.options,S=void 0===A?{}:A,T=w.name;"function"==typeof x&&(s=x({state:s,options:S,name:T,instance:u})||s)}}}},update:(r=function(){return new Promise(function(e){u.forceUpdate(),e(s)})},function(){return i||(i=new Promise(function(e){Promise.resolve().then(function(){i=void 0,e(r())})})),i}),destroy:function(){d(),c=!0}};if(!er(e,t))return u;function d(){l.forEach(function(e){return e()}),l=[]}return u.setOptions(n).then(function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)}),u}),eo=function(e){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}},es={name:"applyStyles",enabled:!1},ea={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:function(e){var t=e.state;return function(){var e=t.elements,n=e.reference,r=e.popper;if("removeAttribute"in n){var i=(n.getAttribute("aria-describedby")||"").split(",").filter(function(e){return e.trim()!==r.id});i.length?n.setAttribute("aria-describedby",i.join(",")):n.removeAttribute("aria-describedby")}}},fn:function(e){var t,n=e.state.elements,r=n.popper,i=n.reference,o=null==(t=r.getAttribute("role"))?void 0:t.toLowerCase();if(r.id&&"tooltip"===o&&"setAttribute"in i){var s=i.getAttribute("aria-describedby");if(s&&-1!==s.split(",").indexOf(r.id))return;i.setAttribute("aria-describedby",s?s+","+r.id:r.id)}}},el=[],ec=function(e,t,n){var r=void 0===n?{}:n,i=r.enabled,o=void 0===i||i,s=r.placement,a=void 0===s?"bottom":s,d=r.strategy,f=void 0===d?"absolute":d,p=r.modifiers,m=void 0===p?el:p,g=(0,c.A)(r,["enabled","placement","strategy","modifiers"]),y=(0,u.useRef)(),v=(0,u.useCallback)(function(){var e;null==(e=y.current)||e.update()},[]),b=(0,u.useCallback)(function(){var e;null==(e=y.current)||e.forceUpdate()},[]),_=h((0,u.useState)({placement:a,update:v,forceUpdate:b,attributes:{},styles:{popper:eo(f),arrow:{}}})),w=_[0],x=_[1],k=(0,u.useMemo)(function(){return{name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:function(e){var t=e.state,n={},r={};Object.keys(t.elements).forEach(function(e){n[e]=t.styles[e],r[e]=t.attributes[e]}),x({state:t,styles:n,attributes:r,update:v,forceUpdate:b,placement:t.placement})}}},[v,b,x]);return(0,u.useEffect)(function(){y.current&&o&&y.current.setOptions({placement:a,strategy:f,modifiers:[].concat(m,[k,es])})},[f,a,k,o]),(0,u.useEffect)(function(){if(o&&null!=e&&null!=t)return y.current=ei(e,t,(0,l.A)({},g,{placement:a,strategy:f,modifiers:[].concat(m,[ea,k])})),function(){null!=y.current&&(y.current.destroy(),y.current=void 0,x(function(e){return(0,l.A)({},e,{attributes:{},styles:{popper:eo(f)}})}))}},[o,e,t]),w}},893815:function(e,t,n){"use strict";n.d(t,{A:function(){return p}});var r=n(418973),i=n(562883),o=n(514041),s=n(794548),a=n(564674),l=n.n(a),c=n(969840),u=n(843144),d=function(e){return(0,c.A)(e&&"setState"in e?u.findDOMNode(e):null!=e?e:null)},h=function(){},f=function(e){return e&&("current"in e?e.current:e)},p=function(e,t,n){var a=void 0===n?{}:n,c=a.disabled,u=a.clickTrigger,p=void 0===u?"click":u,m=(0,o.useRef)(!1),g=t||h,y=(0,o.useCallback)(function(t){var n,i=f(e);l()(!!i,"RootClose captured a close event but does not have a ref to compare it to. useRootClose(), should be passed a ref that resolves to a DOM node"),m.current=!i||!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)||0!==t.button||!!(0,r.default)(i,null!=(n=null==t.composedPath?void 0:t.composedPath()[0])?n:t.target)},[e]),v=(0,s.A)(function(e){m.current||g(e)}
3),b=(0,s.A)(function(e){27===e.keyCode&&g(e)});(0,o.useEffect)(function(){if(!c&&null!=e){var t=window.event,n=d(f(e)),r=(0,i.default)(n,p,y,!0),o=(0,i.default)(n,p,function(e){if(e===t){t=void 0;return}v(e)}),s=(0,i.default)(n,"keyup",function(e){if(e===t){t=void 0;return}b(e)}),a=[];return"ontouchstart"in n.documentElement&&(a=[].slice.call(n.body.children).map(function(e){return(0,i.default)(e,"mousemove",h)})),function(){r(),o(),s(),a.forEach(function(e){return e()})}}},[e,c,p,y,v,b])}},716245:function(e,t,n){"use strict";var r=n(969840),i=n(514041),o=function(e){var t;return"u"<typeof document?null:null==e?(0,r.A)().body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),null!=(t=e)&&t.nodeType&&e||null)};function s(e,t){var n=(0,i.useState)(function(){return o(e)}),r=n[0],s=n[1];if(!r){var a=o(e);a&&s(a)}return(0,i.useEffect)(function(){t&&r&&t(r)},[t,r]),(0,i.useEffect)(function(){var t=o(e);t!==r&&s(t)},[e,r]),r}n.d(t,{A:function(){return s}})},894830:function(e,t,n){"use strict";n.d(t,{A:function(){return Z}});var r,i,o,s,a,l,c,u=n(585608),d=n(514041),h="right-scroll-bar-position",f="width-before-scroll-bar";function p(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var m="u">typeof window?d.useLayoutEffect:d.useEffect,g=new WeakMap,y=(void 0===r&&(r={}),(void 0===i&&(i=function(e){return e}),o=[],s=!1,a={read:function(){if(s)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:null},useMedium:function(e){var t=i(e,s);return o.push(t),function(){o=o.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(s=!0;o.length;){var t=o;o=[],t.forEach(e)}o={push:function(t){return e(t)},filter:function(){return o}}},assignMedium:function(e){s=!0;var t=[];if(o.length){var n=o;o=[],n.forEach(e),t=o}var r=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(r)};i(),o={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),o}}}}).options=(0,u.Cl)({async:!0,ssr:!1},r),a),v=function(){},b=d.forwardRef(function(e,t){var n,r,i,o,s=d.useRef(null),a=d.useState({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:v}),l=a[0],c=a[1],h=e.forwardProps,f=e.children,b=e.className,_=e.removeScrollBar,w=e.enabled,x=e.shards,k=e.sideCar,C=e.noRelative,A=e.noIsolation,D=e.inert,S=e.allowPinchZoom,E=e.as,T=e.gapMode,O=(0,u.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),M=(n=[s,t],r=function(e){return n.forEach(function(t){return p(t,e)})},(i=(0,d.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(e){var t=i.value;t!==e&&(i.value=e,i.callback(e,t))}}}})[0]).callback=r,o=i.facade,m(function(){var e=g.get(o);if(e){var t=new Set(e),r=new Set(n),i=o.current;t.forEach(function(e){r.has(e)||p(e,null)}),r.forEach(function(e){t.has(e)||p(e,i)})}g.set(o,n)},[n]),o),N=(0,u.Cl)((0,u.Cl)({},O),l);return d.createElement(d.Fragment,null,w&&d.createElement(k,{sideCar:y,removeScrollBar:_,shards:x,noRelative:C,noIsolation:A,inert:D,setCallbacks:c,allowPinchZoom:!!S,lockRef:s,gapMode:T}),h?d.cloneElement(d.Children.only(f),(0,u.Cl)((0,u.Cl)({},N),{ref:M})):d.createElement(void 0===E?"div":E,(0,u.Cl)({},N,{className:b,ref:M}),f))});b.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},b.classNames={fullWidth:f,zeroRight:h};var _=function(e){var t=e.sideCar,n=(0,u.Tt)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return d.createElement(r,(0,u.Cl)({},n))};_.isSideCarExport=!0;var w=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=c||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,o;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},x=function(){var e=w();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},k=function(){var e=x();return function(t){return e(t.styles,t.dynamic),null}},C={left:0,top:0,right:0,gap:0},A=function(e){return parseInt(e||"",10)||0},D=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[A(n),A(r),A(i)]},S=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return C;var t=D(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},E=k(),T="data-scroll-locked",O=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(a,"px ").concat(r,";\n  }\n  body[").concat(T,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(i,"px;\n    padding-top: ").concat(o,"px;\n    padding-right: ").concat(s,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(a,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";
3")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(h," {\n    right: ").concat(a,"px ").concat(r,";\n  }\n  \n  .").concat(f," {\n    margin-right: ").concat(a,"px ").concat(r,";\n  }\n  \n  .").concat(h," .").concat(h," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(f," .").concat(f," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(T,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n  }\n")},M=function(){var e=parseInt(document.body.getAttribute(T)||"0",10);return isFinite(e)?e:0},N=function(){d.useEffect(function(){return document.body.setAttribute(T,(M()+1).toString()),function(){var e=M()-1;e<=0?document.body.removeAttribute(T):document.body.setAttribute(T,e.toString())}},[])},P=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;N();var o=d.useMemo(function(){return S(i)},[i]);return d.createElement(E,{styles:O(o,!t,i,n?"":"!important")})},R=!1;if("u">typeof window)try{var I=Object.defineProperty({},"passive",{get:function(){return R=!0,!0}});window.addEventListener("test",I,I),window.removeEventListener("test",I,I)}catch(e){R=!1}var F=!!R&&{passive:!1},L=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},j=function(e,t){var n=t.ownerDocument,r=t;do{if("u">typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),z(e,r)){var i=$(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body)return!1},z=function(e,t){return"v"===e?L(t,"overflowY"):L(t,"overflowX")},$=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},B=function(e,t,n,r,i){var o,s=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),a=s*r,l=n.target,c=t.contains(l),u=!1,d=a>0,h=0,f=0;do{if(!l)break;var p=$(e,l),m=p[0],g=p[1]-p[2]-s*m;(m||g)&&z(e,l)&&(h+=g,f+=m);var y=l.parentNode;l=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!c&&l!==document.body||c&&(t.contains(l)||t===l))return d&&(i&&1>Math.abs(h)||!i&&a>h)?u=!0:!d&&(i&&1>Math.abs(f)||!i&&-a>f)&&(u=!0),u},V=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Y=function(e){return[e.deltaX,e.deltaY]},q=function(e){return e&&"current"in e?e.current:e},H=0,W=[],U=(l=function(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),i=d.useState(H++)[0],o=d.useState(k)[0],s=d.useRef(e);d.useEffect(function(){s.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,u.fX)([e.lockRef.current],(e.shards||[]).map(q),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=d.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var i,o=V(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-o[0],c="deltaY"in e?e.deltaY:a[1]-o[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var h=window.getSelection(),f=h&&h.anchorNode;if(f&&(f===u||f.contains(u)))return!1;var p=j(d,u);if(!p)return!0;if(p?i=d:(i="v"===d?"h":"v",p=j(d,u)),!p)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=i),!i)return!0;var m=r.current||i;return B(m,t,e,"h"===m?l:c,!0)},[]),l=d.useCallback(function(e){if(W.length&&W[W.length-1]===o){var n="deltaY"in e?Y(e):V(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var i=(s.current.shards||[]).map(q).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?a(e,i[0]):!s.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=d.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),h=d.useCallback(function(e){n.current=V(e),r.current=void 0},[]),f=d.useCallback(function(t){c(t.type,Y(t),t.target,a(t,e.lockRef.current))},[]),p=d.useCallback(function(t){c(t.type,V(t),t.target,a(t,e.lockRef.current))},[]);d.useEffect(function(){return W.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,F),document.addEventListener("touchmove",l,F),document.addEventListener("touchstart",h,F),function(){W=W.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,F),document.removeEventListener("touchmove",l,F),document.removeEventListener("touchstart",h,F)}},[]);var m=e.removeScrollBar,g=e.inert;return d.createElement(d.Fragment,null,g?d.createElement(o,{styles:"\n  .block-interactivity-".concat(i," {pointer-events: none;}\n  .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,m?d.createElement(P,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},y.useMedium(l),_),G=d.forwardRef(function(e,t){return d.createElement(b,(0,u.Cl)({},e,{ref:t,sideCar:U}))});G.classNames=b.classNames;var Z=G},523742:function(e,t,n){"use strict";function r(){return(r=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}).apply(null,arguments)}
3function i(e,t){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{A:function(){return function e(t,n,a){void 0===a&&(a=[]);var d,h=t.displayName||t.name||"Component",f=!!t&&("function"!=typeof t||t.prototype&&t.prototype.isReactComponent),p=Object.keys(n),m=p.map(u);f||!a.length||l()(!1);var g=function(e){function s(){for(var t,i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];(t=e.call.apply(e,[this].concat(o))||this).handlers=Object.create(null),p.forEach(function(e){var i=n[e];t.handlers[i]=function(n){if(t.props[i]){var o;t._notifying=!0;for(var s=arguments.length,a=Array(s>1?s-1:0),l=1;l<s;l++)a[l-1]=arguments[l];(o=t.props)[i].apply(o,[n].concat(a)),t._notifying=!1}t.unmounted||t.setState(function(t){var i,o=t.values;return{values:r(Object.create(null),o,((i={})[e]=n,i))}})}}),a.length&&(t.attachRef=function(e){t.inner=e});var l=Object.create(null);return p.forEach(function(e){l[e]=t.props[u(e)]}),t.state={values:l,prevProps:{}},t}s.prototype=Object.create(e.prototype),s.prototype.constructor=s,i(s,e);var l=s.prototype;return l.shouldComponentUpdate=function(){return!this._notifying},s.getDerivedStateFromProps=function(e,t){var n=t.values,i=t.prevProps,o={values:r(Object.create(null),n),prevProps:{}};return p.forEach(function(t){o.prevProps[t]=e[t],void 0===e[t]&&void 0!==i[t]&&(o.values[t]=e[u(t)])}),o},l.componentWillUnmount=function(){this.unmounted=!0},l.render=function(){var e=this,n=this.props,i=n.innerRef,s=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}(n,["innerRef"]);m.forEach(function(e){delete s[e]});var a={};return p.forEach(function(t){var n=e.props[t];a[t]=void 0!==n?n:e.state.values[t]}),o.createElement(t,r({},s,a,this.handlers,{ref:i||this.attachRef}))},s}(o.Component);(0,s.polyfill)(g),g.displayName="Uncontrolled("+h+")",g.propTypes=r({innerRef:function(){}},(d={},Object.keys(n).forEach(function(e){d[u(e)]=c}),d)),a.forEach(function(e){g.prototype[e]=function(){var t;return(t=this.inner)[e].apply(t,arguments)}});var y=g;return o.forwardRef&&((y=o.forwardRef(function(e,t){return o.createElement(g,r({},e,{innerRef:t,__source:{fileName:"/Users/jquense/src/uncontrollable/src/uncontrollable.js",lineNumber:128},__self:this}))})).propTypes=g.propTypes),y.ControlledComponent=t,y.deferControlTo=function(t,i,o){return void 0===i&&(i={}),e(t,r({},n,i),o)},y}}});var o=n(514041),s=n(590146),a=n(78958),l=n.n(a),c=function(){};function u(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}},514056:function(e,t,n){"use strict";var r=n(928459),i=n(698664),o=n(617641),s=n(885871),a=n(980344),l=n(33792),c=n(819331),u=n(238220);function d(e){var t=this;if(!(this instanceof d))return new d(e);l.A.call(this,{type:"array"}),this._subType=void 0,this.innerType=void 0,this.withMutation(function(){t.transform(function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null}),e&&t.of(e)})}t.A=d,(0,i.A)(d,l.A,{_typeCheck:function(e){return Array.isArray(e)},_cast:function(e,t){var n=this,i=l.A.prototype._cast.call(this,e,t);if(!this._typeCheck(i)||!this.innerType)return i;var o=!1,s=i.map(function(e,i){var s=n.innerType.cast(e,(0,r.A)({},t,{path:(t.path||"")+"["+i+"]"}));return s!==e&&(o=!0),s});return o?s:i},_validate:function(e,t,n){var i=this;void 0===t&&(t={});var o=[],s=t.sync,a=t.path,c=this.innerType,d=this._option("abortEarly",t),h=this._option("recursive",t),f=null!=t.originalValue?t.originalValue:e;l.A.prototype._validate.call(this,e,t,function(e,l){if(e){if(d)return void n(e);o.push(e),l=e.value}if(!h||!c||!i._typeCheck(l))return void n(o[0]||null,l);f=f||l;for(var p=Array(l.length),m=0;m<l.length;m++)!function(e){var n=l[e],i=(t.path||"")+"["+e+"]",o=(0,r.A)({},t,{path:i,strict:!0,parent:l,index:e,originalValue:f[e]});p[e]=function(e,t){return c.validate?c.validate(n,o,t):t(null)}}(m);(0,u.A)({sync:s,path:a,value:l,errors:o,endEarly:d,tests:p},n)})},_isPresent:function(e){return l.A.prototype._isPresent.call(this,e)&&e.length>0},of:function(e){var t=this.clone();if(!1!==e&&!(0,s.A)(e))throw TypeError("`array.of()` sub-schema must be a valid yup schema, or `false` to negate a current sub-schema. not: "+(0,a.A)(e));return t._subType=e,t.innerType=e,t},min:function(e,t){return t=t||c.YO.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},test:function(t){return(0,o.A)(t)||t.length>=this.resolve(e)}})},max:function(e,t){return t=t||c.YO.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},test:function(t){return(0,o.A)(t)||t.length<=this.resolve(e)}})},ensure:function(){var e=this;return this.default(function(){return[]}).transform(function(t,n){return e._typeCheck(t)?t:null==n?[]:[].concat(n)})},compact:function(e){var t=e?function(t,n,r){return!e(t,n,r)}:function(e){return!!e};return this.transform(function(e){return null!=e?e.filter(t):e})},describe:function(){var e=l.A.prototype.describe.call(this);return this.innerType&&(e.innerType=this.innerType.describe()),e}})},153384:function(e,t,n){"use strict";n.d(t,{Ay:function(){return T}});var r=n(554380),i=n(514041),o=n(558099),s=n(99561),a=n(939067),l=n.n(a);let c=new Date().getTime();function u(){return c++,`rnmr_${c.toString(16)}`}let d=/_open|_close/g;function h(e){let t="unknown";return e.type&&(t=e.type.replace(d,"")),"heading"===t&&(t=`${t}${e.tag.substr(1)}`),t}class f{constructor(e,t=0,n=null,r=!1){this.type=e,this.nesting=t,this.children=n,this.block=r}}var p=n(338239),m=n(388569),g=n(463156),y=n(377392),v=n.n(y),b=n(27
37634);function _(e,t){if(t){let n=t(e);e&&n&&"boolean"==typeof n&&b.A.openURL(e)}else e&&b.A.openURL(e)}function w(e,t){return e.findIndex(e=>e.type===t)>-1}var x=["textShadowOffset","color","fontSize","fontStyle","fontWeight","lineHeight","textAlign","textDecorationLine","textShadowColor","fontFamily","textShadowRadius","includeFontPadding","textAlignVertical","fontVariant","letterSpacing","textDecorationColor","textDecorationStyle","textTransform","writingDirection"],k=n(764573);class C{constructor(e,t,n,r,i,s,a,l){this.getRenderFunction=e=>{let t=this._renderRules[e];return t||(console.warn(`Warning, unknown render rule encountered: ${e}. 'unknown' render rule used (by default, returns null - nothing rendered)`),this._renderRules.unknown)},this.renderNode=(e,t,n=!1)=>{let r=this.getRenderFunction(e.type),i=[...t];if(!0===this._debugPrintTree){let t="";for(let e=0;e<i.length;e++)t+="-";console.log(`${t}${e.type}`)}i.unshift(e);let s=e.children.map(e=>this.renderNode(e,i));if("link"===e.type||"blocklink"===e.type)return r(e,s,t,this._style,this._onLinkPress);if("image"===e.type)return r(e,s,t,this._style,this._allowedImageHandlers,this._defaultImageHandler);if(0===s.length||"list_item"===e.type){let n={};for(let e=t.length-1;e>-1;e--){let r={};if(t[e].attributes&&t[e].attributes.style&&"string"==typeof t[e].attributes.style&&(r=function(e){let t=e.split(";").map(e=>{let[t,n]=e.split(":");return t&&n?[t=t.trim(),n=n.trim()]:null}).filter(e=>null!=e);return(0,k.Ay)(t)}(t[e].attributes.style)),this._style[t[e].type]&&(r={...r,...o.A.flatten(this._style[t[e].type])},"list_item"===t[e].type)){let n={};"bullet_list"===t[e+1].type?n=this._style.bullet_list_content:"ordered_list"===t[e+1].type&&(n=this._style.ordered_list_content),r={...r,...o.A.flatten(n)}}let i=Object.keys(r);for(let e=0;e<i.length;e++)x.includes(i[e])&&(n[i[e]]=r[i[e]])}return r(e,s,t,this._style,n)}return!0===n&&this._maxTopLevelChildren&&s.length>this._maxTopLevelChildren&&(s=s.slice(0,this._maxTopLevelChildren)).push(this._topLevelMaxExceededItem),r(e,s,t,this._style)},this.render=e=>{let t={type:"body",key:u(),children:e};return this.renderNode(t,[],!0)},this._renderRules=e,this._style=t,this._onLinkPress=n,this._maxTopLevelChildren=r,this._topLevelMaxExceededItem=i,this._allowedImageHandlers=s,this._defaultImageHandler=a,this._debugPrintTree=l}}var A=n(779182),D=n.n(A);let S={body:{},heading1:{flexDirection:"row",fontSize:32},heading2:{flexDirection:"row",fontSize:24},heading3:{flexDirection:"row",fontSize:18},heading4:{flexDirection:"row",fontSize:16},heading5:{flexDirection:"row",fontSize:13},heading6:{flexDirection:"row",fontSize:11},hr:{backgroundColor:"#000000",height:1},strong:{fontWeight:"bold"},em:{fontStyle:"italic"},s:{textDecorationLine:"line-through"},blockquote:{backgroundColor:"#F5F5F5",borderColor:"#CCC",borderLeftWidth:4,marginLeft:5,paddingHorizontal:5},bullet_list:{},ordered_list:{},list_item:{flexDirection:"row",justifyContent:"flex-start"},bullet_list_icon:{marginLeft:10,marginRight:10},bullet_list_content:{flex:1},ordered_list_icon:{marginLeft:10,marginRight:10},ordered_list_content:{flex:1},code_inline:{borderWidth:1,borderColor:"#CCCCCC",backgroundColor:"#f5f5f5",padding:10,borderRadius:4,...m.A.select({ios:{fontFamily:"Courier New"},android:{fontFamily:"monospace"}})},code_block:{borderWidth:1,borderColor:"#CCCCCC",backgroundColor:"#f5f5f5",padding:10,borderRadius:4,...m.A.select({ios:{fontFamily:"Courier New"},android:{fontFamily:"monospace"}})},fence:{borderWidth:1,borderColor:"#CCCCCC",backgroundColor:"#f5f5f5",padding:10,borderRadius:4,...m.A.select({ios:{fontFamily:"Courier New"},android:{fontFamily:"monospace"}})},table:{borderWidth:1,borderColor:"#000000",borderRadius:3},thead:{},tbody:{},th:{flex:1,padding:5},tr:{borderBottomWidth:1,borderColor:"#000000",flexDirection:"row"},td:{flex:1,padding:5},link:{textDecorationLine:"underline",marginBottom:-4},blocklink:{flex:1,borderColor:"#000000",borderBottomWidth:1},image:{flex:1},text:{},textgroup:{},paragraph:{marginTop:10,marginBottom:10,flexWrap:"wrap",flexDirection:"row",alignItems:"flex-start",justifyContent:"flex-start",width:"100%"},hardbreak:{width:"100%",height:1},softbreak:{},pre:{},inline:{},span:{}},E=i.memo(({children:e,textcomponent:t=s.A,renderer:n=null,rules:a=null,style:l=null,mergeStyle:c=!0,markdownit:d=D()({typographer:!0}),onLinkPress:y,maxTopLevelChildren:b=null,topLevelMaxExceededItem:k=(0,r.Y)(s.A,{children:"..."},"dotdotdot"),allowedImageHandlers:A=["data:image/png;base64","data:image/gif;base64","data:image/jpeg;base64","https://","http://"],defaultImageHandler:E="https://",debugPrintTree:T=!1})=>{let O=(0,i.useMemo)(()=>((e,t,n,i,s,a,l,c,u,d,h)=>{if(t&&n&&console.warn("react-native-markdown-display you are using renderer and rules at the same time. This is not possible, props.rules is ignored"),t&&i&&console.warn("react-native-markdown-display you are using renderer and style at the same time. This is not possible, props.style is ignored"),t)if("function"!=typeof t||t instanceof C)return t;else throw Error("Provided renderer is not compatible with function or AstRen
3derer. please change");{let t,f=(t={},!0===s&&null!==i?(Object.keys(i).forEach(e=>{t[e]={...o.A.flatten(i[e])}}),Object.keys(S).forEach(e=>{t[e]={...S[e],...o.A.flatten(i[e])}})):(t={...S},null!==i&&Object.keys(i).forEach(e=>{t[e]={...o.A.flatten(i[e])}})),Object.keys(t).forEach(e=>{var n;let r,i;t["_VIEW_SAFE_"+e]=(n=t[e],r=x.filter(e=>Object.keys(n).includes(e)),i={...n},r.forEach(e=>{delete i[e]}),i)}),o.A.create(t));return new C({unknown:(e,t,n,r)=>null,body:(e,t,n,i)=>(0,r.Y)(p.A,{style:i._VIEW_SAFE_body,children:t},e.key),heading1:(e,t,n,i)=>(0,r.Y)(p.A,{style:i._VIEW_SAFE_heading1,children:t},e.key),heading2:(e,t,n,i)=>(0,r.Y)(p.A,{style:i._VIEW_SAFE_heading2,children:t},e.key),heading3:(e,t,n,i)=>(0,r.Y)(p.A,{style:i._VIEW_SAFE_heading3,children:t},e.key),heading4:(e,t,n,i)=>(0,r.Y)(p.A,{style:i._VIEW_SAFE_heading4,children:t},e.key),heading5:(e,t,n,i)=>(0,r.Y)(p.A,{style:i._VIEW_SAFE_heading5,children:t},e.key),heading6:(e,t,n,i)=>(0,r.Y)(p.A,{style:i._VIEW_SAFE_heading6,children:t},e.key),hr:(e,t,n,i)=>(0,r.Y)(p.A,{style:i._VIEW_SAFE_hr},e.key),strong:(t,n,i,o)=>(0,r.Y)(e,{style:o.strong,children:n},t.key),em:(t,n,i,o)=>(0,r.Y)(e,{style:o.em,children:n},t.key),s:(t,n,i,o)=>(0,r.Y)(e,{style:o.s,children:n},t.key),blockquote:(e,t,n,i)=>(0,r.Y)(p.A,{style:i._VIEW_SAFE_blockquote,children:t},e.key),bullet_list:(e,t,n,i)=>(0,r.Y)(p.A,{style:i._VIEW_SAFE_bullet_list,children:t},e.key),ordered_list:(e,t,n,i)=>(0,r.Y)(p.A,{style:i._VIEW_SAFE_ordered_list,children:t},e.key),list_item:(t,n,i,s,a={})=>{let l={...a,...o.A.flatten(s.list_item)},c=Object.keys(l),u={};for(let e=0;e<c.length;e++)x.includes(c[e])&&(u[c[e]]=l[c[e]]);if(w(i,"bullet_list"))return(0,r.FD)(p.A,{style:s._VIEW_SAFE_list_item,children:[(0,r.Y)(e,{style:[u,s.bullet_list_icon],accessible:!1,children:m.A.select({android:"•",ios:"·",default:"•"})}),(0,r.Y)(p.A,{style:s._VIEW_SAFE_bullet_list_content,children:n})]},t.key);if(w(i,"ordered_list")){let o,a=i.findIndex(e=>"ordered_list"===e.type),l=i[a];return o=l.attributes&&l.attributes.start?l.attributes.start+t.index:t.index+1,(0,r.FD)(p.A,{style:s._VIEW_SAFE_list_item,children:[(0,r.FD)(e,{style:[u,s.ordered_list_icon],children:[o,t.markup]}),(0,r.Y)(p.A,{style:s._VIEW_SAFE_ordered_list_content,children:n})]},t.key)}return(0,r.Y)(p.A,{style:s._VIEW_SAFE_list_item,children:n},t.key)},code_inline:(t,n,i,o,s={})=>(0,r.Y)(e,{style:[s,o.code_inline],children:t.content},t.key),code_block:(t,n,i,o,s={})=>{let{content:a}=t;return"string"==typeof t.content&&"\n"===t.content.charAt(t.content.length-1)&&(a=t.content.substring(0,t.content.length-1)),(0,r.Y)(e,{style:[s,o.code_block],children:a},t.key)},fence:(t,n,i,o,s={})=>{let{content:a}=t;return"string"==typeof t.content&&"\n"===t.content.charAt(t.content.length-1)&&(a=t.content.substring(0,t.content.length-1)),(0,r.Y)(e,{style:[s,o.fence],children:a},t.key)},table:(e,t,n,i)=>(0,r.Y)(p.A,{style:i._VIEW_SAFE_table,children:t},e.key),thead:(e,t,n,i)=>(0,r.Y)(p.A,{style:i._VIEW_SAFE_thead,children:t},e.key),tbody:(e,t,n,i)=>(0,r.Y)(p.A,{style:i._VIEW_SAFE_tbody,children:t},e.key),th:(e,t,n,i)=>(0,r.Y)(p.A,{style:i._VIEW_SAFE_th,children:t},e.key),tr:(e,t,n,i)=>(0,r.Y)(p.A,{style:i._VIEW_SAFE_tr,children:t},e.key),td:(e,t,n,i)=>(0,r.Y)(p.A,{style:i._VIEW_SAFE_td,children:t},e.key),link:(t,n,i,o,s)=>(0,r.Y)(g.A,{accessibilityRole:"link",onPress:()=>_(t.attributes.href,s),children:(0,r.Y)(e,{style:o.link,children:n})},t.key),blocklink:(e,t,n,i,o)=>(0,r.Y)(g.A,{accessibilityRole:"link",onPress:()=>_(e.attributes.href,o),style:i.blocklink,children:(0,r.Y)(p.A,{style:i.image,children:t})},e.key),image:(e,t,n,i,o,s)=>{let{src:a,alt:l}=e.attributes,c=o.filter(e=>a.toLowerCase().startsWith(e.toLowerCase())).length>0;if(!1===c&&null===s)return null;let u={indicator:!0,key:e.key,style:i._VIEW_SAFE_image,source:{uri:!0===c?a:`${s}${a}`}};return l&&(u.accessible=!0,u.accessibilityLabel=l),(0,r.Y)(v(),{...u})},text:(t,n,i,o,s={})=>(0,r.Y)(e,{style:[s,o.text],children:t.content},t.key),textgroup:(t,n,i,o)=>(0,r.Y)(e,{style:o.textgroup,children:n},t.key),paragraph:(e,t,n,i)=>(0,r.Y)(p.A,{style:i._VIEW_SAFE_paragraph,children:t},e.key),hardbreak:(t,n,i,o)=>(0,r.Y)(e,{style:o.hardbreak,children:"\n"},t.key),softbreak:(t,n,i,o)=>(0,r.Y)(e,{style:o.softbreak,children:"\n"},t.key),pre:(e,t,n,i)=>(0,r.Y)(p.A,{style:i._VIEW_SAFE_pre,children:t},e.key),inline:(t,n,i,o)=>(0,r.Y)(e,{style:o.inline,children:n},t.key),span:(t,n,i,o)=>(0,r.Y)(e,{style:o.span,children:n},t.key),...n||{}},f,a,l,c,u,d,h)}})(t,n,a,l,c,y,b,k,A,E,T),[t,b,y,n,a,l,c,k,A,E,T]),M=(0,i.useMemo)(()=>d,[d]);return function(e,t,n){var r,i;let o,s,a,l;if(Array.isArray(e))return t(e);let c=function(e,t){let n=[];try{n=t.parse(e,{})}catch(e){console.warn(e)}return n}
3(e,n);return(r=function e(t){return t.reduce((t,n)=>{if("inline"===n.type&&n.children&&n.children.length>0){let r=e(n.children);for(;r.length;)t.push(r.shift())}else t.push(n);return t},[])}(r=c)).forEach(e=>{e.type=h(e),("image"===e.type||"hardbreak"===e.type)&&(e.block=!0),"image"===e.type&&(e.attrs[e.attrIndex("alt")][1]=function e(t){for(var n="",r=0,i=t.length;r<i;r++)"text"===t[r].type?n+=t[r].content:"image"===t[r].type&&(n+=e(t[r].children));return n}(e.children))}),o=[],c=r=r.reduce((e,t,n)=>{if("link"===t.type&&1===t.nesting)o.push(t);else if(o.length>0&&"link"===t.type&&-1===t.nesting)for(o.some(e=>e.block)&&(o[0].type="blocklink",o[0].block=!0,t.type="blocklink",t.block=!0),o.push(t);o.length;)e.push(o.shift());else o.length>0?o.push(t):e.push(t);return e},[]),s=[],a=!1,c.forEach((e,t)=>{e.block||a?!e.block&&a||e.block&&a&&(a=!1,s.push(new f("textgroup",-1))):(a=!0,s.push(new f("textgroup",1))),s.push(e)}),l=null,t(function e(t){let n=[],r=[];if(!t||0===t.length)return[];for(let i=0;i<t.length;i++){let o=t[i],s=function(t,n){let r=h(t),i=t.content,o={};return t.attrs&&(o=t.attrs.reduce((e,t)=>{let[n,r]=t;return{...e,[n]:r}},{})),{type:r,sourceType:t.type,sourceInfo:t.info,sourceMeta:t.meta,block:t.block,markup:t.markup,key:u()+"_"+r,content:i,tokenIndex:n,index:0,attributes:o,children:e(t.children)}}(o,i);("text"!==s.type||0!==s.children.length||""!==s.content)&&(s.index=r.length,1===o.nesting?(r.push(s),n.push(r),r=s.children):-1===o.nesting?r=n.pop():0===o.nesting&&r.push(s))}return r}(c=(i=c=s).filter((e,t)=>{if(null!==l&&(l+=e.nesting),"list_item"===e.type&&1===e.nesting&&null===l){let e=t+1 in i?i[t+1]:null;e&&"paragraph"===e.type&&1===e.nesting&&(l=0)}else if("paragraph"===e.type){if(1===e.nesting&&1===l)return!1;else if(-1===e.nesting&&0===l)return l=null,!1}return!0})))}(e,O.render,M)});E.displayName="Markdown",E.propTypes={children:l().oneOfType([l().node,l().array]).isRequired,textcomponent:l().elementType,renderer:l().oneOfType([l().func,l().instanceOf(C)]),onLinkPress:l().func,maxTopLevelChildren:l().number,topLevelMaxExceededItem:l().any,rules:(e,t,n)=>{let r=[],i=e[t];if(i){if("object"==typeof i&&(r=Object.keys(i).filter(e=>"function"!=typeof i[e])),"object"!=typeof i)return Error(`Invalid prop \`${t}\` supplied to \`${n}\`. Must be of shape {[index:string]:function} `);if(r.length>0)return Error(`Invalid prop \`${t}\` supplied to \`${n}\`. These props are not of type function \`${r.join(", ")}\` `)}},markdownit:l().instanceOf(D()),style:l().any,mergeStyle:l().bool,allowedImageHandlers:l().arrayOf(l().string),defaultImageHandler:l().string,debugPrintTree:l().bool};var T=E},415760:function(e,t,n){"use strict";n.d(t,{UE:function(){return ee},ll:function(){return G},rD:function(){return er},UU:function(){return K},jD:function(){return Q},mG:function(){return et},ER:function(){return en},cY:function(){return Z},iD:function(){return W},BN:function(){return J},Ej:function(){return X}});let r=["top","right","bottom","left"],i=Math.min,o=Math.max,s=Math.round,a=Math.floor,l=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"};function u(e,t){return"function"==typeof e?e(t):e}function d(e){return e.split("-")[0]}function h(e){return e.split("-")[1]}function f(e){return"x"===e?"y":"x"}function p(e){return"y"===e?"height":"width"}function m(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function g(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let y=["left","right"],v=["right","left"],b=["top","bottom"],_=["bottom","top"];function w(e){let t=d(e);return c[t]+e.slice(t.length)}function x(e){var t,n,r,i;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(i=e.left)?i:0}:{top:e,right:e,bottom:e,left:e}}function k(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function C(e,t,n){let r,{reference:i,floating:o}=e,s=m(t),a=f(m(t)),l=p(a),c=d(t),u=i.x+i.width/2-o.width/2,g=i.y+i.height/2-o.height/2,y=i[l]/2-o[l]/2;switch(c){case"top":r={x:u,y:i.y-o.height};break;case"bottom":r={x:u,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:g};break;case"left":r={x:i.x-o.width,y:g};break;default:r={x:i.x,y:i.y}}let v=h(t);return v&&(r[a]+=y*("end"===v?1:-1)*(n&&"y"===s?-1:1)),r}async function A(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:f=!1,padding:p=0}=u(t,e),m=x(p),g=a[f?"floating"===h?"reference":"floating":h],y=k(await o.getClippingRect
3({element:null==(n=await (null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),v="floating"===h?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,b=await (null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),_=await (null==o.isElement?void 0:o.isElement(b))&&await (null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},w=k(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:b,strategy:l}):v);return{top:(y.top-w.top+m.top)/_.y,bottom:(w.bottom-y.bottom+m.bottom)/_.y,left:(y.left-w.left+m.left)/_.x,right:(w.right-y.right+m.right)/_.x}}let D=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:A},l=await (null==s.isRTL?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=C(c,r,l),h=r,f=0,p={};for(let n=0;n<o.length;n++){let m=o[n];if(!m)continue;let{name:g,fn:y}=m,{x:v,y:b,data:_,reset:w}=await y({x:u,y:d,initialPlacement:r,placement:h,strategy:i,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=v?v:u,d=null!=b?b:d,p[g]={...p[g],..._},w&&f<50&&(f++,"object"==typeof w&&(w.placement&&(h=w.placement),w.rects&&(c=!0===w.rects?await s.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:u,y:d}=C(c,h,l)),n=-1)}return{x:u,y:d,placement:h,strategy:i,middlewareData:p}};function S(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function E(e){return r.some(t=>e[t]>=0)}function T(e){let t=i(...e.map(e=>e.left)),n=i(...e.map(e=>e.top));return{x:t,y:n,width:o(...e.map(e=>e.right))-t,height:o(...e.map(e=>e.bottom))-n}}let O=new Set(["left","top"]);async function M(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),s=d(n),a=h(n),l="y"===m(n),c=O.has(s)?-1:1,f=o&&l?-1:1,p=u(t,e),{mainAxis:g,crossAxis:y,alignmentAxis:v}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&"number"==typeof v&&(y="end"===a?-1*v:v),l?{x:y*f,y:g*c}:{x:g*c,y:y*f}}var N=n(501860);function P(e){let t=(0,N.L9)(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=(0,N.sb)(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=s(n)!==o||s(r)!==a;return l&&(n=o,r=a),{width:n,height:r,$:l}}function R(e){return(0,N.vq)(e)?e:e.contextElement}function I(e){let t=R(e);if(!(0,N.sb)(t))return l(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=P(t),a=(o?s(n.width):n.width)/r,c=(o?s(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),c&&Number.isFinite(c)||(c=1),{x:a,y:c}}let F=l(0);function L(e){let t=(0,N.zk)(e);return(0,N.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:F}function j(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),s=R(e),a=l(1);t&&(r?(0,N.vq)(r)&&(a=I(r)):a=I(e));let c=(void 0===(i=n)&&(i=!1),r&&i&&r===(0,N.zk)(s))?L(s):l(0),u=(o.left+c.x)/a.x,d=(o.top+c.y)/a.y,h=o.width/a.x,f=o.height/a.y;if(s&&r){let e=(0,N.zk)(s),t=(0,N.vq)(r)?(0,N.zk)(r):r,n=e,i=(0,N._m)(n);for(;i&&t!==n;){let e=I(i),t=i.getBoundingClientRect(),r=(0,N.L9)(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,d*=e.y,h*=e.x,f*=e.y,u+=o,d+=s,n=(0,N.zk)(i),i=(0,N._m)(n)}}return k({width:h,height:f,x:u,y:d})}function z(e,t){let n=(0,N.CP)(e).scrollLeft;return t?t.left+n:j((0,N.ep)(e)).left+n}function $(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-z(e,n),y:n.top+t.scrollTop}}function B(e,t,n){var r;let i;if("viewport"===t||"layoutViewport"===t)i=function(e,t,n){void 0===n&&(n="viewport");let r="layoutViewport"===n,i=(0,N.zk)(e),o=(0,N.ep)(e),s=i.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,u=0;if(s){let e=!(0,N.Tc)()||"fixed"===t;r?e||(c=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,e&&(c=s.offsetLeft,u=s.offsetTop))}if(0>
vendor: 4,270 bytes, line 3
3=z(o)){let e=o.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(o.clientWidth-t.clientWidth-r),s="stable both-edges"===getComputedStyle(o).scrollbarGutter?i/2:i;s<=25&&(a-=s)}return{width:a,height:l,x:c,y:u}}(e,n,t);else if("document"===t){let t,n,s,a,l,c;r=(0,N.ep)(e),t=(0,N.CP)(r),n=r.ownerDocument.body,s=o(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),a=o(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight),l=-t.scrollLeft+z(r),c=-t.scrollTop,"rtl"===(0,N.L9)(n).direction&&(l+=o(r.clientWidth,n.clientWidth)-s),i={width:s,height:a,x:l,y:c}}else if((0,N.vq)(t)){let e,r,o,s,a,l;r=(e=j(t,!0,"fixed"===n)).top+t.clientTop,o=e.left+t.clientLeft,s=I(t),a=t.clientWidth*s.x,l=t.clientHeight*s.y,i={width:a,height:l,x:o*s.x,y:r*s.y}}else{let n=L(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return k(i)}function V(e){return"static"===(0,N.L9)(e).position}function Y(e,t){if(!(0,N.sb)(e)||"fixed"===(0,N.L9)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,N.ep)(e)===n&&(n=n.ownerDocument.body),n}function q(e,t){let n=(0,N.zk)(e);if((0,N.Tf)(e))return n;if(!(0,N.sb)(e)){let t=(0,N.$4)(e);for(;t&&!(0,N.eu)(t);){if((0,N.vq)(t)&&!V(t))return t;t=(0,N.$4)(t)}return n}let r=Y(e,t);for(;r&&(0,N.Lv)(r)&&V(r);)r=Y(r,t);return r&&(0,N.eu)(r)&&V(r)&&!(0,N.sQ)(r)?n:r||(0,N.gJ)(e)||n}let H=async function(e){let t=this.getOffsetParent||q,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=(0,N.sb)(t),i=(0,N.ep)(t),o="fixed"===n,s=j(e,!0,o,t),a={scrollLeft:0,scrollTop:0},c=l(0);if((r||!o)&&(("body"!==(0,N.mq)(t)||(0,N.ZU)(i))&&(a=(0,N.CP)(t)),r)){let e=j(t,!0,o,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=z(i));let u=!i||r||o?l(0):$(i,a);return{x:s.left+a.scrollLeft-c.x-u.x,y:s.top+a.scrollTop-c.y-u.y,width:s.width,height:s.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},W={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,s=(0,N.ep)(r),a=!!t&&(0,N.Tf)(t.floating);if(r===s||a&&o)return n;let c={scrollLeft:0,scrollTop:0},u=l(1),d=l(0),h=(0,N.sb)(r);if((h||!o)&&(("body"!==(0,N.mq)(r)||(0,N.ZU)(s))&&(c=(0,N.CP)(r)),h)){let e=j(r);u=I(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}let f=!s||h||o?l(0):$(s,c);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+f.x,y:n.y*u.y-c.scrollTop*u.y+d.y+f.y}},getDocumentElement:N.ep,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e,a=[..."clippingAncestors"===n?(0,N.Tf)(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=(0,N.v9)(e,[],!1).filter(e=>(0,N.vq)(e)&&"body"!==(0,N.mq)(e)),i=null,o="fixed"===(0,N.L9)(e).position,s=o?(0,N.$4)(e):e;for(;(0,N.vq)(s)&&!(0,N.eu)(s);){let e=(0,N.L9)(s),t=(0,N.sQ)(s),n=i?i.position:o?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?i=e:r=r.filter(e=>e!==s),s=(0,N.$4)(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=B(t,a[0],s),c=l.top,u=l.right,d=l.bottom,h=l.left;for(let e=1;e<a.length;e++){let n=B(t,a[e],s);c=o(n.top,c),u=i(n.right,u),d=i(n.bottom,d),h=o(n.left,h)}return{width:u-h,height:d-c,x:h,y:c}},getOffsetParent:q,getElementRects:H,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:n}=P(e);return{width:t,height:n}},getScale:I,isElement:N.vq,isRTL:function(e){return"rtl"===(0,N.L9)(e).direction}};function U(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function G(e,t,n,r){let s;void 0===r&&(r={});let{ancestorScroll:l=!0,ancestorResize:c=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:h=!1}=r,f=R(e),p=l||c?[...f?(0,N.v9)(f):[],...t?(0,N.v9)(t):[]]:[];p.forEach(e=>{l&&e.addEventListener("scroll",n),c&&e.addEventListener("resize",n)});let m=f&&d?function(e,t,n){let r,s=null,l=(0,N.ep)(e);function c(){var e;clearTimeout(r),null==(e=s)||e.disconnect(),s=null}function u(n,d){void 0===n&&(n=!1),void 0===d&&(d=1),c();let h=e.getBoundingClientRect(),{left:f,top:p,width:m,height:g}
3=h;if(n||t(),!m||!g)return;let y={rootMargin:-a(p)+"px "+-a(l.clientWidth-(f+m))+"px "+-a(l.clientHeight-(p+g))+"px "+-a(f)+"px",threshold:o(0,i(1,d))||1},v=!0;function b(t){let n=t[0].intersectionRatio;if(!U(h,e.getBoundingClientRect()))return u();if(n!==d){if(!v)return u();n?u(!1,n):r=setTimeout(()=>{u(!1,1e-7)},1e3)}v=!1}try{s=new IntersectionObserver(b,{...y,root:l.ownerDocument})}catch(e){s=new IntersectionObserver(b,y)}s.observe(e)}let d=(0,N.zk)(e),h=()=>u(n);return d.addEventListener("resize",h),u(!0),()=>{d.removeEventListener("resize",h),c()}}(f,n,c):null,g=-1,y=null;u&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===f&&y&&t&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),f&&!h&&y.observe(f),t&&y.observe(t));let v=h?j(e):null;return h&&function t(){let r=j(e);v&&!U(v,r)&&n(),v=r,s=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach(e=>{l&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=y)||e.disconnect(),y=null,h&&cancelAnimationFrame(s)}}let Z=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:o,placement:s,middlewareData:a}=t,l=await M(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},J=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:s,platform:a}=t,{mainAxis:l=!0,crossAxis:c=!1,limiter:d={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...h}=u(e,t),p={x:n,y:r},g=await a.detectOverflow(t,h),y=m(s),v=f(y),b=p[v],_=p[y],w=(e,t)=>o(t+g["y"===e?"top":"left"],i(t,t-g["y"===e?"bottom":"right"]));l&&(b=w(v,b)),c&&(_=w(y,_));let x=d.fn({...t,[v]:b,[y]:_});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[v]:l,[y]:c}}}}}},K=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o,s,a,l,c;let x,k,C,{placement:A,middlewareData:D,rects:S,initialPlacement:E,platform:T,elements:O}=t,{mainAxis:M=!0,crossAxis:N=!0,fallbackPlacements:P,fallbackStrategy:R="bestFit",fallbackAxisSideDirection:I="none",flipAlignment:F=!0,...L}=u(e,t);if(null!=(n=D.arrow)&&n.alignmentOffset)return{};let j=d(A),z=m(E),$=d(E)===E,B=await (null==T.isRTL?void 0:T.isRTL(O.floating)),V=P||($||!F?[w(E)]:(x=w(E),[g(E),x,g(x)])),Y="none"!==I;!P&&Y&&V.push(...(k=h(E),C=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?v:y;return t?y:v;case"left":case"right":return t?b:_;default:return[]}}(d(E),"start"===I,B),k&&(C=C.map(e=>e+"-"+k),F&&(C=C.concat(C.map(g)))),C));let q=[E,...V],H=await T.detectOverflow(t,L),W=[],U=(null==(r=D.flip)?void 0:r.overflows)||[];if(M&&W.push(H[j]),N){let e,t,n,r,i=(a=A,l=S,void 0===(c=B)&&(c=!1),e=h(a),n=p(t=f(m(a))),r="x"===t?e===(c?"end":"start")?"right":"left":"start"===e?"bottom":"top",l.reference[n]>l.floating[n]&&(r=w(r)),[r,w(r)]);W.push(H[i[0]],H[i[1]])}if(U=[...U,{placement:A,overflows:W}],!W.every(e=>e<=0)){let e=((null==(i=D.flip)?void 0:i.index)||0)+1,t=q[e];if(t&&("alignment"!==N||z===m(t)||U.every(e=>m(e.placement)!==z||e.overflows[0]>0)))return{data:{index:e,overflows:U},reset:{placement:t}};let n=null==(o=U.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(R){case"bestFit":{let e=null==(s=U.filter(e=>{if(Y){let t=m(e.placement);return t===z||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:s[0];e&&(n=e);break}case"initialPlacement":n=E}if(A!==n)return{reset:{placement:n}}}return{}}}},X=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let n,r,{placement:s,rects:a,platform:l,elements:c}=t,{apply:f=()=>{},...p}=u(e,t),g=await l.detectOverflow(t,p),y=d(s),v=h(s),b="y"===m(s),{width:_,height:w}=a.floating;"top"===y||"bottom"===y?(n=y,r=v===(await (null==l.isRTL?void 0:l.isRTL(c.floating))?"start":"end")?"left":"right"):(r=y,n="end"===v?"top":"bottom");let x=w-g.top-g.bottom,k=_-g.left-g.right,C=i(w-g[n],x),A=i(_-g[r],k),D=t.middlewareData.shift,S=!D,E=C,T=A;null!=D&&D.enabled.x&&(T=k),null!=D&&D.enabled.y&&(E=x),S&&!v&&(b?T=_-2*o(g.left,g.right):E=w-2*o(g.top,g.bottom)),await f({...t,availableWidth:T,availableHeight:E});let O=await l.getDimensions(c.floating);return _!==O.width||w!==O.height?{reset:{rects:!0}}:{}}}},Q=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i="referenceHidden",...o}=u(e,t);
3switch(i){case"referenceHidden":{let e=S(await r.detectOverflow(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:E(e)}}}case"escaped":{let e=S(await r.detectOverflow(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:E(e)}}}default:return{}}}}},ee=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:s,rects:a,platform:l,elements:c,middlewareData:d}=t,{element:g,padding:y=0}=u(e,t)||{};if(null==g)return{};let v=x(y),b={x:n,y:r},_=f(m(s)),w=p(_),k=await l.getDimensions(g),C="y"===_,A=C?"clientHeight":"clientWidth",D=a.reference[w]+a.reference[_]-b[_]-a.floating[w],S=b[_]-a.reference[_],E=await (null==l.getOffsetParent?void 0:l.getOffsetParent(g)),T=E?E[A]:0;T&&await (null==l.isElement?void 0:l.isElement(E))||(T=c.floating[A]||a.floating[w]);let O=T/2-k[w]/2-1,M=i(v[C?"top":"left"],O),N=i(v[C?"bottom":"right"],O),P=T-k[w]-N,R=T/2-k[w]/2+(D/2-S/2),I=o(M,i(R,P)),F=!d.arrow&&null!=h(s)&&R!==I&&a.reference[w]/2-(R<M?M:N)-k[w]/2<0,L=F?R<M?R-M:R-P:0;return{[_]:b[_]+L,data:{[_]:I,centerOffset:R-I-L,...F&&{alignmentOffset:L}},reset:F}}}),et=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){let{placement:n,elements:r,rects:s,platform:a,strategy:l}=t,{padding:c=2,x:h,y:f}=u(e,t),p=Array.from(await (null==a.getClientRects?void 0:a.getClientRects(r.reference))||[]);if(!p.length)return{};let g=function(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>k(T(e)))}(p),y=k(T(p)),v=x(c),b=await a.getElementRects({reference:{getBoundingClientRect:function(){if(2===g.length&&(g[0].left>g[1].right||g[1].left>g[0].right)&&null!=h&&null!=f)return g.find(e=>h>e.left-v.left&&h<e.right+v.right&&f>e.top-v.top&&f<e.bottom+v.bottom)||y;if(g.length>=2){if("y"===m(n)){let e=g[0],t=g[g.length-1],r="top"===d(n),i=e.top,o=t.bottom,s=r?e.left:t.left;return k({x:s,y:i,width:(r?e.right:t.right)-s,height:o-i})}let e="left"===d(n),t=o(...g.map(e=>e.right)),r=i(...g.map(e=>e.left)),s=g.filter(n=>e?n.left===r:n.right===t),a=s[0].top;return k({x:r,y:a,width:t-r,height:s[s.length-1].bottom-a})}return y}},floating:r.floating,strategy:l});return s.reference.x!==b.reference.x||s.reference.y!==b.reference.y||s.reference.width!==b.reference.width||s.reference.height!==b.reference.height?{reset:{rects:b}}:{}}}},en=function(e){return void 0===e&&(e={}),{options:e,fn(t){var n,r,i,o;let{x:s,y:a,placement:l,rects:c,middlewareData:h}=t,{offset:p=0,mainAxis:g=!0,crossAxis:y=!0}=u(e,t),v={x:s,y:a},b=m(l),_=f(b),w=v[_],x=v[b],k=u(p,t),C="number"==typeof k?{mainAxis:k,crossAxis:0}:{mainAxis:null!=(n=k.mainAxis)?n:0,crossAxis:null!=(r=k.crossAxis)?r:0};if(g){let e="y"===_?"height":"width",t=c.reference[_]-c.floating[e]+C.mainAxis,n=c.reference[_]+c.reference[e]-C.mainAxis;w<t?w=t:w>n&&(w=n)}if(y){let e="y"===_?"width":"height",t=O.has(d(l)),n=c.reference[b]-c.floating[e]+(t&&(null==(i=h.offset)?void 0:i[b])||0)+(t?0:C.crossAxis),r=c.reference[b]+c.reference[e]+(t?0:(null==(o=h.offset)?void 0:o[b])||0)-(t?C.crossAxis:0);x<n?x=n:x>r&&(x=r)}return{[_]:w,[b]:x}}}},er=(e,t,n)=>{let r=new Map,i=null!=n?n:{},o={...W,...i.platform,_c:r};return D(e,t,{...i,platform:o})}},926584:function(e,t,n){"use strict";var r=n(415760),i=n(514041),o=n(843144),s="u">typeof document?i.useLayoutEffect:function(){};function a(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!a(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!a(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function l(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function c(e,t){let n=l(e);return Math.round(t*n)/n}function u(e){let t=i.useRef(e);return s(()=>{t.current=e}),t}function d(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:d=[],platform:h,elements:{reference:f,floating:p}={},transform:m=!0,whileElementsMounted:g,open:y}=e,[v,b]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[_,w]=i.useState(d);a(_,d)||w(d);let[x,k]=i.useState(null),[C,A]=i.useState(null),D=i.useCallback(e=>
3{e!==O.current&&(O.current=e,k(e))},[]),S=i.useCallback(e=>{e!==M.current&&(M.current=e,A(e))},[]),E=f||x,T=p||C,O=i.useRef(null),M=i.useRef(null),N=i.useRef(v),P=null!=g,R=u(g),I=u(h),F=u(y),L=i.useCallback(()=>{if(!O.current||!M.current)return;let e={placement:t,strategy:n,middleware:_};I.current&&(e.platform=I.current),(0,r.rD)(O.current,M.current,e).then(e=>{let t={...e,isPositioned:!1!==F.current};j.current&&!a(N.current,t)&&(N.current=t,o.flushSync(()=>{b(t)}))})},[_,t,n,I,F]);s(()=>{!1===y&&N.current.isPositioned&&(N.current.isPositioned=!1,b(e=>({...e,isPositioned:!1})))},[y]);let j=i.useRef(!1);s(()=>(j.current=!0,()=>{j.current=!1}),[]),s(()=>{if(E&&(O.current=E),T&&(M.current=T),E&&T){if(R.current)return R.current(E,T,L);L()}},[E,T,L,R,P]);let z=i.useMemo(()=>({reference:O,floating:M,setReference:D,setFloating:S}),[D,S]),$=i.useMemo(()=>({reference:E,floating:T}),[E,T]),B=i.useMemo(()=>{let e={position:n,left:0,top:0};if(!$.floating)return e;let t=c($.floating,v.x),r=c($.floating,v.y);return m?{...e,transform:"translate("+t+"px, "+r+"px)",...l($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,m,$.floating,v.x,v.y]);return i.useMemo(()=>({...v,update:L,refs:z,elements:$,floatingStyles:B}),[v,L,z,$,B])}n.d(t,{iD:function(){return r.iD},ll:function(){return r.ll},we:function(){return d}},{BN:(e,t)=>{let n=(0,r.BN)(e);return{name:n.name,fn:n.fn,options:[e,t]}},ER:(e,t)=>({fn:(0,r.ER)(e).fn,options:[e,t]}),Ej:(e,t)=>{let n=(0,r.Ej)(e);return{name:n.name,fn:n.fn,options:[e,t]}},UE:(e,t)=>{let n={name:"arrow",options:e,fn(t){let{element:n,padding:i}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?(0,r.UE)({element:n.current,padding:i}).fn(t):{}:n?(0,r.UE)({element:n,padding:i}).fn(t):{}}};return{name:n.name,fn:n.fn,options:[e,t]}},UU:(e,t)=>{let n=(0,r.UU)(e);return{name:n.name,fn:n.fn,options:[e,t]}},cY:(e,t)=>{let n=(0,r.cY)(e);return{name:n.name,fn:n.fn,options:[e,t]}},jD:(e,t)=>{let n=(0,r.jD)(e);return{name:n.name,fn:n.fn,options:[e,t]}},mG:(e,t)=>{let n=(0,r.mG)(e);return{name:n.name,fn:n.fn,options:[e,t]}}})},225957:function(e,t,n){"use strict";var r=n(831085),i=n(455302);function o({style:e,size:t=16,...n}){return(0,r.jsx)("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...e,width:(0,i.D)(t),height:(0,i.D)(t),display:"block"},...n,children:(0,r.jsx)("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}n(514041),o.displayName="@mantine/core/AccordionChevron",n.d(t,{U:function(){return o}})},450562:function(e,t,n){"use strict";n.d(t,{M:function(){return x}});var r=n(831085);n(514041);var i=n(621037),o=n(161959),s=n(845969),a=n(717226),l=n(427758),c=n(289094),u=n(340218),d=n(813962),h=n(305391),f=n(455302),p=n(784817),m={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};let g={orientation:"horizontal"},y=(0,o.V)((e,{borderWidth:t})=>({group:{"--ai-border-width":(0,f.D)(t)}})),v=(0,p.P9)((e,t)=>{let n=(0,s.Y)("ActionIconGroup",g,e),{className:i,style:o,classNames:c,styles:u,unstyled:d,orientation:h,vars:f,borderWidth:p,variant:v,mod:b,attributes:_,...w}=(0,s.Y)("ActionIconGroup",g,e),x=(0,a.I)({name:"ActionIconGroup",props:n,classes:m,className:i,style:o,classNames:c,styles:u,unstyled:d,attributes:_,vars:f,varsResolver:y,rootSelector:"group"});return(0,r.jsx)(l.a,{...x("group"),ref:t,variant:v,mod:[{"data-orientation":h},b],role:"group",...w})});v.classes=m,v.displayName="@mantine/core/ActionIconGroup";let b=(0,o.V)((e,{radius:t,color:n,gradient:r,variant:o,autoContrast:s,size:a})=>{let l=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:o||"filled",autoContrast:s});return{groupSection:{"--section-height":(0,i.YC)(a,"section-height"),"--section-padding-x":(0,i.YC)(a,"section-padding-x"),"--section-fz":(0,i.ny)(a),"--section-radius":void 0===t?void 0:(0,i.nJ)(t),"--section-bg":n||o?l.background:void 0,"--section-color":l.color,"--section-bd":n||o?l.border:void 0}}}),_=(0,p.P9)((e,t)=>{let n=(0,s.Y)("ActionIconGroupSection",null,e),{className:i,style:o,classNames:c,styles:u,unstyled:d,vars:h,variant:f,gradient:p,radius:g,autoContrast:y,attributes:v,..._}=n,w=(0,a.I)({name:"ActionIconGroupSection",props:n,classes:m,className:i,style:o,classNames:c,styles:u,unstyled:d,attributes:v,vars:h,varsResolver:b,rootSelector:"groupSection"});return(0,r.jsx)(l.a,{...w("groupSection"),ref:t,variant:f,..._})});_.classes=m,_.displayName="@mantine/core/ActionIconGroupSection";let w=(0,o.V)((e,{size:t,radius:n,variant:r,gradient:o,color:s,autoContrast:a})=>{let l=e.variantColorResolver({color:s||e.primaryColor,theme:e,gradient:o,variant:r||"filled",autoContrast:a});return{root:{"--ai-size":(0,i.YC)(t,"ai-size"),"--ai-radius":void 0===n?void 0:(0,i.nJ)(n),"--ai-bg":s||r?l.background:void 0,"--ai-hover":s||r?l.hover:void 0,"--ai-hover-color":s||r?l.hoverColor:void 0,"--ai-color":l.color,"--ai-bd":s||r?l.border:void 0}}}),x=(0,c.v)((e,t)=>{let n=(0,s.Y)("ActionIcon",null,e),{className:i,unstyled:o,variant:c,classNames:f,styles:p,style:g,loading:y,loaderProps:v,size:b,color:_,radius:x,__staticSelector:k,gradient:C,vars:A,children:D,disabled:S,"data-disabled":E,autoContrast:T,mod:O,attributes:M,...N}=n,P=(0,a.I)({name:["ActionIcon",k],props:n,className:i,style:g,classes:m,classNames:f,styles:p,unstyled:o,attributes:M,vars:A,varsResolver:w});return(0,r.jsxs)(h.N,{...P("root",{active:!S&&!y&&!E}),...N,unstyled:o,variant:c,size:b,disabled:S||y,ref:t,mod:[{loading:y,disabled:S||E},O],children:["boolean"==typeof y&&(0,r.jsx)(d.e,{mounted:y,transition:"slide-down",duration:150,children:e=>(0,r.jsx)(l.a,{component:"span",...P("loader",{style:e}
3),"aria-hidden":!0,children:(0,r.jsx)(u.a,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...v})})}),(0,r.jsx)(l.a,{component:"span",mod:{loading:y},...P("icon"),children:D})]})});x.classes=m,x.displayName="@mantine/core/ActionIcon",x.Group=v,x.GroupSection=_},728867:function(e,t,n){"use strict";n.d(t,{F:function(){return p}});var r=n(831085),i=n(398046);n(514041);var o=n(621037),s=n(161959),a=n(845969),l=n(717226),c=n(427758),u=n(784817),d=n(175677),h={root:"m_66836ed3",wrapper:"m_a5d60502",body:"m_667c2793",title:"m_6a03f287",label:"m_698f4f23",icon:"m_667f2a6a",message:"m_7fa78076",closeButton:"m_87f54839"};let f=(0,s.V)((e,{radius:t,color:n,variant:r,autoContrast:i})=>{let s=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:r||"light",autoContrast:i});return{root:{"--alert-radius":void 0===t?void 0:(0,o.nJ)(t),"--alert-bg":n||r?s.background:void 0,"--alert-color":s.color,"--alert-bd":n||r?s.border:void 0}}}),p=(0,u.P9)((e,t)=>{let n=(0,a.Y)("Alert",null,e),{classNames:o,className:s,style:u,styles:p,unstyled:m,vars:g,radius:y,color:v,title:b,children:_,id:w,icon:x,withCloseButton:k,onClose:C,closeButtonLabel:A,variant:D,autoContrast:S,attributes:E,...T}=n,O=(0,l.I)({name:"Alert",classes:h,props:n,className:s,style:u,classNames:o,styles:p,unstyled:m,attributes:E,vars:g,varsResolver:f}),M=(0,i.B)(w),N=b&&`${M}-title`||void 0,P=`${M}-body`;return(0,r.jsx)(c.a,{id:M,...O("root",{variant:D}),variant:D,ref:t,...T,role:"alert","aria-describedby":P,"aria-labelledby":N,children:(0,r.jsxs)("div",{...O("wrapper"),children:[x&&(0,r.jsx)("div",{...O("icon"),children:x}),(0,r.jsxs)("div",{...O("body"),children:[b&&(0,r.jsx)("div",{...O("title"),"data-with-close-button":k||void 0,children:(0,r.jsx)("span",{id:N,...O("label"),children:b})}),_&&(0,r.jsx)("div",{id:P,...O("message"),"data-variant":D,children:_})]}),k&&(0,r.jsx)(d.J,{...O("closeButton"),onClick:C,variant:"transparent",size:16,iconSize:16,"aria-label":A,unstyled:m})]})})});p.classes=h,p.displayName="@mantine/core/Alert"},821993:function(e,t,n){"use strict";n.d(t,{E:function(){return f}});var r=n(831085);n(514041);var i=n(621037),o=n(161959),s=n(884117),a=n(845969),l=n(717226),c=n(427758),u=n(289094),d={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};let h=(0,o.V)((e,{radius:t,color:n,gradient:r,variant:o,size:a,autoContrast:l})=>{let c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:o||"filled",autoContrast:l});return{root:{"--badge-height":(0,i.YC)(a,"badge-height"),"--badge-padding-x":(0,i.YC)(a,"badge-padding-x"),"--badge-fz":(0,i.YC)(a,"badge-fz"),"--badge-radius":void 0===t?void 0:(0,i.nJ)(t),"--badge-bg":n||o?c.background:void 0,"--badge-color":n||o?c.color:void 0,"--badge-bd":n||o?c.border:void 0,"--badge-dot-color":"dot"===o?(0,s.r)(n,e):void 0}}}),f=(0,u.v)((e,t)=>{let n=(0,a.Y)("Badge",null,e),{classNames:i,className:o,style:s,styles:u,unstyled:f,vars:p,radius:m,color:g,gradient:y,leftSection:v,rightSection:b,children:_,variant:w,fullWidth:x,autoContrast:k,circle:C,mod:A,attributes:D,...S}=n,E=(0,l.I)({name:"Badge",props:n,classes:d,className:o,style:s,classNames:i,styles:u,unstyled:f,attributes:D,vars:p,varsResolver:h});return(0,r.jsxs)(c.a,{variant:w,mod:[{block:x,circle:C,"with-right-section":!!b,"with-left-section":!!v},A],...E("root",{variant:w}),ref:t,...S,children:[v&&(0,r.jsx)("span",{...E("section"),"data-position":"left",children:v}),(0,r.jsx)("span",{...E("label"),children:_}),b&&(0,r.jsx)("span",{...E("section"),"data-position":"right",children:b})]})});f.classes=d,f.displayName="@mantine/core/Badge"},23560:function(e,t,n){"use strict";n.d(t,{$:function(){return w}});var r=n(831085),i=n(455302);n(514041);var o=n(621037),s=n(161959),a=n(845969),l=n(717226),c=n(427758),u=n(289094),d=n(340218),h=n(813962),f=n(305391),p=n(304279),m=n(784817),g=n(576667);let y=(0,s.V)((e,{radius:t,color:n,gradient:r,variant:i,autoContrast:s,size:a})=>{let l=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||"filled",autoContrast:s});return{groupSection:{"--section-height":(0,o.YC)(a,"section-height"),"--section-padding-x":(0,o.YC)(a,"section-padding-x"),"--section-fz":a?.includes("compact")?(0,o.ny)(a.replace("compact-","")):(0,o.ny)(a),"--section-radius":void 0===t?void 0:(0,o.nJ)(t),"--section-bg":n||i?l.background:void 0,"--section-color":l.color,"--section-bd":n||i?l.border:void 0}}}),v=(0,m.P9)((e,t)=>{let n=(0,a.Y)("ButtonGroupSection",null,e),{className:i,style:o,classNames:s,styles:u,unstyled:d,vars:h,variant:f,gradient:p,radius:m,autoContrast:v,attributes:b,..._}=n,w=(0,l.I)({name:"ButtonGroupSection",props:n,classes:g.A,className:i,style:o,classNames:s,styles:u,unstyled:d,attributes:b,vars:h,varsResolver:y,rootSelector:"groupSection"});return(0,r.jsx)(c.a,{...w("groupSection"),ref:t,variant:f,..._})});v.classes=g.A,v.displayName="@mantine/core/ButtonGroupSection";let b={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${(0,i.D)(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},_=(0,s.V)((e,{radius:t,color:n,gradient:r,variant:i,size:s,justify:a,autoContrast:l})=>{let c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||"filled",autoContrast:l});return{root:{"--button-justify":a,"--button-height":(0,o.YC)(s,"button-height"),"--button-padding-x":(0,o.YC)(s,"button-padding-x"),"--button-fz":s?.includes("compact")?(0,o.ny)(s.replace("compact-","")):(0,o.ny)(s),"--button-radius":void 0===t?void 0:(0,o.nJ)(t),"--button-bg":n||i?c.background:void 0,"--button-hover":n||i?c.hover:void 0,"--button-color":c.color,"--button-bd":n||i?c.border:void 0,"--button-hover-color":n||i?c.hoverColor:void 0}}}),w=(0,u.v)((e,t)=>{let n=(0,a.Y)("Button",null,e),{style:i,vars:o,className:s,color:u,disabled:p,children:m,leftSection:y,rightSection:v,fullWidth:w,variant:x,radius:k,loading:C,loaderProps:A,gradient:D,classNames:S,styles:E,unstyled:T,"data-disabled":O,autoContrast:M,mod:N,attributes:P,...R}=n,I=(0,l.I)({name:"Button",props:n,classes:g.A,className:s,style:i,classNames:S,styles:E,unstyled:T,attributes:P,vars:o,varsResolver:_}),F=!!y,L=!!v;return(0,r.jsxs)(f.N,{ref:t,...I("root",{active:!p&&!C&&!O}),unstyled:T,variant:x,disabled:p||C,mod:[{disabled:p||O,loading:C,block:w,"with-left-section":F,"with-right-section":L},N],...R,children:["boolean"==typeof C&&(0,r.jsx)(h.e,{mounted:C,transition:b,duration:150,children:e=>(0,r.jsx)(c.a,{component:"span",...I("loader",{style:e}
3),"aria-hidden":!0,children:(0,r.jsx)(d.a,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...A})})}),(0,r.jsxs)("span",{...I("inner"),children:[y&&(0,r.jsx)(c.a,{component:"span",...I("section"),mod:{position:"left"},children:y}),(0,r.jsx)(c.a,{component:"span",mod:{loading:C},...I("label"),children:m}),v&&(0,r.jsx)(c.a,{component:"span",...I("section"),mod:{position:"right"},children:v})]})]})});w.classes=g.A,w.displayName="@mantine/core/Button",w.Group=p.e,w.GroupSection=v},576667:function(e,t,n){"use strict";var r={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};n.d(t,{A:function(){return r}})},304279:function(e,t,n){"use strict";var r=n(831085),i=n(455302);n(514041);var o=n(161959),s=n(845969),a=n(717226),l=n(427758),c=n(784817),u=n(576667);let d={orientation:"horizontal"},h=(0,o.V)((e,{borderWidth:t})=>({group:{"--button-border-width":(0,i.D)(t)}})),f=(0,c.P9)((e,t)=>{let n=(0,s.Y)("ButtonGroup",d,e),{className:i,style:o,classNames:c,styles:f,unstyled:p,orientation:m,vars:g,borderWidth:y,variant:v,mod:b,attributes:_,...w}=(0,s.Y)("ButtonGroup",d,e),x=(0,a.I)({name:"ButtonGroup",props:n,classes:u.A,className:i,style:o,classNames:c,styles:f,unstyled:p,attributes:_,vars:g,varsResolver:h,rootSelector:"group"});return(0,r.jsx)(l.a,{...x("group"),ref:t,variant:v,mod:[{"data-orientation":m},b],role:"group",...w})});f.classes=u.A,f.displayName="@mantine/core/ButtonGroup",n.d(t,{},{e:f})},648658:function(e,t,n){"use strict";var r=n(831085),i=n(455302);function o({size:e,style:t,...n}){let s=void 0!==e?{width:(0,i.D)(e),height:(0,i.D)(e),...t}:t;return(0,r.jsx)("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:s,"aria-hidden":!0,...n,children:(0,r.jsx)("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function s({indeterminate:e,...t}){return e?(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 6","aria-hidden":!0,...t,children:(0,r.jsx)("rect",{width:"32",height:"6",fill:"currentColor",rx:"3"})}):(0,r.jsx)(o,{...t})}n(514041),n.d(t,{R:function(){return s},S:function(){return o}})},899761:function(e,t,n){"use strict";n.d(t,{S:function(){return $}});var r=n(831085),i=n(514041),o=n(398046),s=n(621037),a=n(161959),l=n(613745),c=n(884117),u=n(877657),d=n(764577),h=n(845969),f=n(717226),p=n(372944),m=n(427758),g=n(784817),y=n(427122),v=n(885268),b=n(305391);let _=(0,i.createContext)(null),w=_.Provider,x=()=>(0,i.useContext)(_),[k,C]=(0,n(677943).e)();var A={card:"m_26775b0a"};let D={withBorder:!0},S=(0,a.V)((e,{radius:t})=>({card:{"--card-radius":(0,s.nJ)(t)}})),E=(0,g.P9)((e,t)=>{let n=(0,h.Y)("CheckboxCard",D,e),{classNames:i,className:o,style:s,styles:a,unstyled:l,vars:c,checked:u,mod:d,withBorder:p,value:m,onClick:g,defaultChecked:y,onChange:_,attributes:w,...C}=n,E=(0,f.I)({name:"CheckboxCard",classes:A,props:n,className:o,style:s,classNames:i,styles:a,unstyled:l,attributes:w,vars:c,varsResolver:S,rootSelector:"card"}),T=x(),O="boolean"==typeof u?u:T?T.value.includes(m||""):void 0,[M,N]=(0,v.Z)({value:O,defaultValue:y,finalValue:!1,onChange:_});return(0,r.jsx)(k,{value:{checked:M},children:(0,r.jsx)(b.N,{ref:t,mod:[{"with-border":p,checked:M},d],...E("card"),...C,role:"checkbox","aria-checked":M,onClick:e=>{g?.(e),T?.onChange(m||""),N(!M)}})})});E.displayName="@mantine/core/CheckboxCard",E.classes=A;var T=n(831199),O=n(760978);let M=(0,g.P9)((e,t)=>{let{value:n,defaultValue:i,onChange:o,size:s,wrapperProps:a,children:l,readOnly:c,...u}=(0,h.Y)("CheckboxGroup",null,e),[d,f]=(0,v.Z)({value:n,defaultValue:i,finalValue:[],onChange:o});return(0,r.jsx)(w,{value:{value:d,onChange:e=>{let t="string"==typeof e?e:e.currentTarget.value;c||f(d.includes(t)?d.filter(e=>e!==t):[...d,t])},size:s},children:(0,r.jsx)(O.p.Wrapper,{size:s,ref:t,...a,...u,labelElement:"div",__staticSelector:"CheckboxGroup",children:(0,r.jsx)(T.F,{role:"group",children:l})})})});M.classes=O.p.Wrapper.classes,M.displayName="@mantine/core/CheckboxGroup";var N=n(648658),P={indicator:"m_5e5256ee",icon:"m_1b1c543a","indicator--outline":"m_76e20374"};let R={icon:N.R},I=(0,a.V)((e,{radius:t,color:n,size:r,iconColor:i,variant:o,autoContrast:a})=>{let h=(0,l.g)({color:n||e.primaryColor,theme:e}
3),f=h.isThemeColor&&void 0===h.shade?`var(--mantine-color-${h.color}-outline)`:h.color;return{indicator:{"--checkbox-size":(0,s.YC)(r,"checkbox-size"),"--checkbox-radius":void 0===t?void 0:(0,s.nJ)(t),"--checkbox-color":"outline"===o?f:(0,c.r)(n,e),"--checkbox-icon-color":i?(0,c.r)(i,e):(0,d.v)(a,e)?(0,u.w)({color:n,theme:e,autoContrast:a}):void 0}}}),F=(0,g.P9)((e,t)=>{let n=(0,h.Y)("CheckboxIndicator",R,e),{classNames:i,className:o,style:s,styles:a,unstyled:l,vars:c,icon:u,indeterminate:d,radius:p,color:g,iconColor:y,autoContrast:v,checked:b,mod:_,variant:w,disabled:x,attributes:k,...A}=n,D=(0,f.I)({name:"CheckboxIndicator",classes:P,props:n,className:o,style:s,classNames:i,styles:a,unstyled:l,attributes:k,vars:c,varsResolver:I,rootSelector:"indicator"}),S=C(),E="boolean"==typeof b||"boolean"==typeof d?b||d:S?.checked||!1;return(0,r.jsx)(m.a,{ref:t,...D("indicator",{variant:w}),variant:w,mod:[{checked:E,disabled:x},_],...A,children:(0,r.jsx)(u,{indeterminate:d,...D("icon")})})});F.displayName="@mantine/core/CheckboxIndicator",F.classes=P;var L={root:"m_bf2d988c",inner:"m_26062bec",input:"m_26063560",icon:"m_bf295423","input--outline":"m_215c4542"};let j={labelPosition:"right",icon:N.R},z=(0,a.V)((e,{radius:t,color:n,size:r,iconColor:i,variant:o,autoContrast:a})=>{let h=(0,l.g)({color:n||e.primaryColor,theme:e}),f=h.isThemeColor&&void 0===h.shade?`var(--mantine-color-${h.color}-outline)`:h.color;return{root:{"--checkbox-size":(0,s.YC)(r,"checkbox-size"),"--checkbox-radius":void 0===t?void 0:(0,s.nJ)(t),"--checkbox-color":"outline"===o?f:(0,c.r)(n,e),"--checkbox-icon-color":i?(0,c.r)(i,e):(0,d.v)(a,e)?(0,u.w)({color:n,theme:e,autoContrast:a}):void 0}}}),$=(0,g.P9)((e,t)=>{let n=(0,h.Y)("Checkbox",j,e),{classNames:s,className:a,style:l,styles:c,unstyled:u,vars:d,color:g,label:v,id:b,size:_,radius:w,wrapperProps:k,checked:C,labelPosition:A,description:D,error:S,disabled:E,variant:T,indeterminate:O,icon:M,rootRef:N,iconColor:P,onChange:R,autoContrast:I,mod:F,attributes:$,...B}=n,V=x(),Y=_||V?.size,q=(0,f.I)({name:"Checkbox",props:n,classes:L,className:a,style:l,classNames:s,styles:c,unstyled:u,attributes:$,vars:d,varsResolver:z}),{styleProps:H,rest:W}=(0,p.j)(B),U=(0,o.B)(b),G=V?{checked:V.value.includes(W.value),onChange:e=>{V.onChange(e),R?.(e)}}:{},Z=(0,i.useRef)(null),J=t||Z;return(0,i.useEffect)(()=>{J&&"current"in J&&J.current&&(J.current.indeterminate=O||!1)},[O,J]),(0,r.jsx)(y.I,{...q("root"),__staticSelector:"Checkbox",__stylesApiProps:n,id:U,size:Y,labelPosition:A,label:v,description:D,error:S,disabled:E,classNames:s,styles:c,unstyled:u,"data-checked":G.checked||C||void 0,variant:T,ref:N,mod:F,...H,...k,children:(0,r.jsxs)(m.a,{...q("inner"),mod:{"data-label-position":A},children:[(0,r.jsx)(m.a,{component:"input",id:U,ref:J,checked:C,disabled:E,mod:{error:!!S,indeterminate:O},...q("input",{focusable:!0,variant:T}),onChange:R,...W,...G,type:"checkbox"}),(0,r.jsx)(M,{indeterminate:O,...q("icon")})]})})});$.classes={...L,...y.M},$.displayName="@mantine/core/Checkbox",$.Group=M,$.Indicator=F,$.Card=E},175677:function(e,t,n){"use strict";n.d(t,{J:function(){return g}});var r=n(831085),i=n(455302),o=n(514041),s=n(621037),a=n(161959),l=n(845969),c=n(717226),u=n(289094),d=n(305391);let h=(0,o.forwardRef)(({size:e="var(--cb-icon-size, 70%)",style:t,...n},i)=>(0,r.jsx)("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...t,width:e,height:e},ref:i,...n,children:(0,r.jsx)("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}));h.displayName="@mantine/core/CloseIcon";var f={root:"m_86a44da5","root--subtle":"m_220c80f2"};let p={variant:"subtle"},m=(0,a.V)((e,{size:t,radius:n,iconSize:r})=>({root:{"--cb-size":(0,s.YC)(t,"cb-size"),"--cb-radius":void 0===n?void 0:(0,s.nJ)(n),"--cb-icon-size":(0,i.D)(r)}})),g=(0,u.v)((e,t)=>{let n=(0,l.Y)("CloseButton",p,e),{iconSize:i,children:o,vars:s,radius:a,className:u,classNames:g,style:y,styles:v,unstyled:b,"data-disabled":_,disabled:w,variant:x,icon:k,mod:C,attributes:A,__staticSelector:D,...S}=n,E=(0,c.I)({name:D||"CloseButton",props:n,className:u,style:y,classes:f,classNames:g,styles:v,unstyled:b,attributes:A,vars:s,varsResolver:m});return(0,r.jsxs)(d.N,{ref:t,...S,unstyled:b,variant:x,disabled:w,mod:[{disabled:w||_},C],...E("root",{variant:x,active:!w&&!_}),children:[k||(0,r.jsx)(h,{}),o]})});g.classes=f,g.displayName="@mantine/core/CloseButton"},376666:function(e,t,n){"use strict";n.d(t,{G:function(){return Y}});var r=n(831085),i=n(455302),o=n(514041),s=n(621037),a=n(161959),l=n(845969),c=n(717226),u=n(419967);let[d,h]=(0,n(751963).F)("Combobox component was not found in tree");var f=n(142394),p=n(760978);let m=(0,o.forwardRef)(({size:e,onMouseDown:t,onClick:n,onClear:i,...o},s)=>(0,r.jsx)(p.p.ClearButton,{ref:s,tabIndex:-1,"aria-hidden":!0,...o,onMouseDown:e=>{e.preventDefault(),t?.(e)},onClick:e=>{i(),n?.(e)}}));m.displayName="@mantine/core/ComboboxClearButton";var g=n(784817),y=n(925481);let v=(0,g.P9)((e,t)=>{let{classNames:n,styles:i,className:o,style:s,hidden:a,...c}=(0,l.Y)("ComboboxDropdown",null,e),d=h();return(0,r.jsx)(u.A.Dropdown,{...c,ref:t,role:"presentation","data-hidden":a||void 0,...d.getStyles("dropdown",{className:o,style:s,classNames:n,styles:i})})});v.classes=y.A,v.displayName="@mantine/core/ComboboxDropdown";var b=n(316019);let _={refProp:"ref"},w=(0,g.P9)((e,t)=>{let{children:n,refProp:i}=(0,l.Y)("ComboboxDropdownTarget",_,e);if(h(),!(0,b.v)(n))throw Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, str
3ings, numbers and other primitive values are not supported");return(0,r.jsx)(u.A.Target,{ref:t,refProp:i,children:n})});w.displayName="@mantine/core/ComboboxDropdownTarget";var x=n(427758);let k=(0,g.P9)((e,t)=>{let{classNames:n,className:i,style:o,styles:s,vars:a,...c}=(0,l.Y)("ComboboxEmpty",null,e),u=h();return(0,r.jsx)(x.a,{ref:t,...u.getStyles("empty",{className:i,classNames:n,styles:s,style:o}),...c})});k.classes=y.A,k.displayName="@mantine/core/ComboboxEmpty";var C=n(189102),A=n(860889);function D({onKeyDown:e,withKeyboardNavigation:t,withAriaAttributes:n,withExpandedAttribute:r,targetType:i,autoComplete:s}){let a=h(),[l,c]=(0,o.useState)(null);return{...n?{"aria-haspopup":"listbox","aria-expanded":r?!!(a.store.listId&&a.store.dropdownOpened):void 0,"aria-controls":a.store.dropdownOpened&&a.store.listId?a.store.listId:void 0,"aria-activedescendant":a.store.dropdownOpened&&l||void 0,autoComplete:s,"data-expanded":a.store.dropdownOpened||void 0,"data-mantine-stop-propagation":a.store.dropdownOpened||void 0}:{},onKeyDown:n=>{if((e?.(n),!a.readOnly&&t)&&!n.nativeEvent.isComposing){if("ArrowDown"===n.nativeEvent.code&&(n.preventDefault(),a.store.dropdownOpened?c(a.store.selectNextOption()):(a.store.openDropdown("keyboard"),c(a.store.selectActiveOption()),a.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),"ArrowUp"===n.nativeEvent.code&&(n.preventDefault(),a.store.dropdownOpened?c(a.store.selectPreviousOption()):(a.store.openDropdown("keyboard"),c(a.store.selectActiveOption()),a.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),"Enter"===n.nativeEvent.code||"NumpadEnter"===n.nativeEvent.code){if(229===n.nativeEvent.keyCode)return;let e=a.store.getSelectedOptionIndex();a.store.dropdownOpened&&-1!==e?(n.preventDefault(),a.store.clickSelectedOption()):"button"===i&&(n.preventDefault(),a.store.openDropdown("keyboard"))}"Escape"===n.key&&a.store.closeDropdown("keyboard"),"Space"===n.nativeEvent.code&&"button"===i&&(n.preventDefault(),a.store.toggleDropdown("keyboard"))}}}}let S={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},E=(0,g.P9)((e,t)=>{let{children:n,refProp:r,withKeyboardNavigation:i,withAriaAttributes:s,withExpandedAttribute:a,targetType:c,autoComplete:u,...d}=(0,l.Y)("ComboboxEventsTarget",S,e);if(!(0,b.v)(n))throw Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");let f=h(),p=D({targetType:c,withAriaAttributes:s,withKeyboardNavigation:i,withExpandedAttribute:a,onKeyDown:n.props.onKeyDown,autoComplete:u});return(0,o.cloneElement)(n,{...p,...d,[r]:(0,C.pc)(t,f.store.targetRef,(0,A.x)(n))})});E.displayName="@mantine/core/ComboboxEventsTarget";let T=(0,g.P9)((e,t)=>{let{classNames:n,className:i,style:o,styles:s,vars:a,...c}=(0,l.Y)("ComboboxFooter",null,e),u=h();return(0,r.jsx)(x.a,{ref:t,...u.getStyles("footer",{className:i,classNames:n,style:o,styles:s}),...c,onMouseDown:e=>{e.preventDefault()}})});T.classes=y.A,T.displayName="@mantine/core/ComboboxFooter";var O=n(398046);let M=(0,g.P9)((e,t)=>{let{classNames:n,className:i,style:o,styles:s,vars:a,children:c,label:u,id:d,...f}=(0,l.Y)("ComboboxGroup",null,e),p=h(),m=(0,O.B)(d);return(0,r.jsxs)(x.a,{ref:t,role:"group","aria-labelledby":u?m:void 0,...p.getStyles("group",{className:i,classNames:n,style:o,styles:s}),...f,children:[u&&(0,r.jsx)("div",{id:m,...p.getStyles("groupLabel",{classNames:n,styles:s}),children:u}),c]})});M.classes=y.A,M.displayName="@mantine/core/ComboboxGroup";let N=(0,g.P9)((e,t)=>{let{classNames:n,className:i,style:o,styles:s,vars:a,...c}=(0,l.Y)("ComboboxHeader",null,e),u=h();return(0,r.jsx)(x.a,{ref:t,...u.getStyles("header",{className:i,classNames:n,style:o,styles:s}),...c,onMouseDown:e=>{e.preventDefault()}})});function P({value:e,valuesDivider:t=",",...n}){return(0,r.jsx)("input",{type:"hidden",value:Array.isArray(e)?e.join(t):e||"",...n})}N.classes=y.A,N.displayName="@mantine/core/ComboboxHeader",P.displayName="@mantine/core/ComboboxHiddenInput";let R=(0,g.P9)((e,t)=>{let n=(0,l.Y)("ComboboxOption",null,e),{classNames:i,className:s,style:a,styles:c,vars:u,onClick:d,id:f,active:p,onMouseDown:m,onMouseOver:g,disabled:y,selected:v,mod:b,..._}=n,w=h(),k=(0,o.useId)();return(0,r.jsx)(x.a,{...w.getStyles("option",{className:s,classNames:i,styles:c,style:a}),..._,ref:t,id:f||k,mod:["combobox-option",{"combobox-active":p,"combobox-disabled":y,"combobox-selected":v},b],role:"option",onClick:e=>
3{y?e.preventDefault():(w.onOptionSubmit?.(n.value,n),d?.(e))},onMouseDown:e=>{e.preventDefault(),m?.(e)},onMouseOver:e=>{w.resetSelectionOnOptionHover&&w.store.resetSelectedOption(),g?.(e)}})});R.classes=y.A,R.displayName="@mantine/core/ComboboxOption";let I=(0,g.P9)((e,t)=>{let{classNames:n,className:i,style:s,styles:a,id:c,onMouseDown:u,labelledBy:d,...f}=(0,l.Y)("ComboboxOptions",null,e),p=h(),m=(0,O.B)(c);return(0,o.useEffect)(()=>{p.store.setListId(m)},[m]),(0,r.jsx)(x.a,{ref:t,...p.getStyles("options",{className:i,style:s,classNames:n,styles:a}),...f,id:m,role:"listbox","aria-labelledby":d,onMouseDown:e=>{e.preventDefault(),u?.(e)}})});I.classes=y.A,I.displayName="@mantine/core/ComboboxOptions";let F={withAriaAttributes:!0,withKeyboardNavigation:!0},L=(0,g.P9)((e,t)=>{let{classNames:n,styles:i,unstyled:o,vars:s,withAriaAttributes:a,onKeyDown:c,withKeyboardNavigation:u,size:d,...f}=(0,l.Y)("ComboboxSearch",F,e),m=h(),g=m.getStyles("search"),y=D({targetType:"input",withAriaAttributes:a,withKeyboardNavigation:u,withExpandedAttribute:!1,onKeyDown:c,autoComplete:"off"});return(0,r.jsx)(p.p,{ref:(0,C.pc)(t,m.store.searchRef),classNames:[{input:g.className},n],styles:[{input:g.style},i],size:d||m.size,...y,...f,__staticSelector:"Combobox"})});L.classes=y.A,L.displayName="@mantine/core/ComboboxSearch";let j={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},z=(0,g.P9)((e,t)=>{let{children:n,refProp:i,withKeyboardNavigation:s,withAriaAttributes:a,withExpandedAttribute:c,targetType:d,autoComplete:f,...p}=(0,l.Y)("ComboboxTarget",j,e);if(!(0,b.v)(n))throw Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");let m=h(),g=D({targetType:d,withAriaAttributes:a,withKeyboardNavigation:s,withExpandedAttribute:c,onKeyDown:n.props.onKeyDown,autoComplete:f}),y=(0,o.cloneElement)(n,{...g,...p});return(0,r.jsx)(u.A.Target,{ref:(0,C.pc)(t,m.store.targetRef),children:y})});z.displayName="@mantine/core/ComboboxTarget";var $=n(393919);let B={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0},size:"sm"},V=(0,a.V)((e,{size:t,dropdownPadding:n})=>({options:{"--combobox-option-fz":(0,s.ny)(t),"--combobox-option-padding":(0,s.YC)(t,"combobox-option-padding")},dropdown:{"--combobox-padding":void 0===n?void 0:(0,i.D)(n),"--combobox-option-fz":(0,s.ny)(t),"--combobox-option-padding":(0,s.YC)(t,"combobox-option-padding")}}));function Y(e){let t=(0,l.Y)("Combobox",B,e),{classNames:n,styles:i,unstyled:o,children:s,store:a,vars:h,onOptionSubmit:f,onClose:p,size:m,dropdownPadding:g,resetSelectionOnOptionHover:v,__staticSelector:b,readOnly:_,attributes:w,...x}=t,k=(0,$.B)(),C=a||k,A=(0,c.I)({name:b||"Combobox",classes:y.A,props:t,classNames:n,styles:i,unstyled:o,attributes:w,vars:h,varsResolver:V});return(0,r.jsx)(d,{value:{getStyles:A,store:C,onOptionSubmit:f,size:m,resetSelectionOnOptionHover:v,readOnly:_},children:(0,r.jsx)(u.A,{opened:C.dropdownOpened,preventPositionChangeWhenVisible:!0,...x,onChange:e=>!e&&void(p?.(),C.closeDropdown()),withRoles:!1,unstyled:o,children:s})})}Y.extend=e=>e,Y.classes=y.A,Y.displayName="@mantine/core/Combobox",Y.Target=z,Y.Dropdown=v,Y.Options=I,Y.Option=R,Y.Search=L,Y.Empty=k,Y.Chevron=f.l,Y.Footer=T,Y.Header=N,Y.EventsTarget=E,Y.DropdownTarget=w,Y.Group=M,Y.ClearButton=m,Y.HiddenInput=P},925481:function(e,t,n){"use strict";var r={dropdown:"m_88b62a41",search:"m_985517d8",options:"m_b2821a6e",option:"m_92253aa5",empty:"m_2530cd1d",header:"m_858f94bd",footer:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2"};n.d(t,{A:function(){return r}})},142394:function(e,t,n){"use strict";var r=n(831085);n(514041);var i=n(621037),o=n(161959),s=n(884117),a=n(845969),l=n(717226),c=n(427758),u=n(784817),d=n(925481);let h={error:null},f=(0,o.V)((e,{size:t,color:n})=>({chevron:{"--combobox-chevron-size":(0,i.YC)(t,"combobox-chevron-size"),"--combobox-chevron-color":n?(0,s.r)(n,e):void 0}})),p=(0,u.P9)((e,t)=>{let n=(0,a.Y)("ComboboxChevron",h,e),{size:i,error:o,style:s,className:u,classNames:p,styles:m,unstyled:g,vars:y,mod:v,...b}=n,_=(0,l.I)({name:"ComboboxChevron",classes:d.A,props:n,style:s,className:u,classNames:p,styles:m,unstyled:g,vars:y,varsResolver:f,rootSelector:"chevron"});return(0,r.jsx)(c.a,{component:"svg",...b,..._("chevron"),size:i,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:o},v],ref:t,children:(0,r.jsx)("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819
3L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})});p.classes=d.A,p.displayName="@mantine/core/ComboboxChevron",n.d(t,{},{l:p})},175881:function(e,t,n){"use strict";n.d(t,{i:function(){return d}});var r=n(831085),i=n(354357),o=n(648658),s=n(541463),a=n(376666),l=n(82090),c=n(925481);function u({data:e,withCheckIcon:t,value:n,checkIconPosition:s,unstyled:d,renderOption:h}){if(!(0,l.c)(e)){var f;let l=(f=e.value,Array.isArray(n)?n.includes(f):n===f),u=t&&l&&(0,r.jsx)(o.S,{className:c.A.optionsDropdownCheckIcon}),p=(0,r.jsxs)(r.Fragment,{children:["left"===s&&u,(0,r.jsx)("span",{children:e.label}),"right"===s&&u]});return(0,r.jsx)(a.G.Option,{value:e.value,disabled:e.disabled,className:(0,i.A)({[c.A.optionsDropdownOption]:!d}),"data-reverse":"right"===s||void 0,"data-checked":l||void 0,"aria-selected":l,active:l,children:"function"==typeof h?h({option:e,checked:l}):p})}let p=e.items.map(e=>(0,r.jsx)(u,{data:e,value:n,unstyled:d,withCheckIcon:t,checkIconPosition:s,renderOption:h},e.value));return(0,r.jsx)(a.G.Group,{label:e.group,children:p})}function d({data:e,hidden:t,hiddenWhenEmpty:n,filter:i,search:o,limit:c,maxDropdownHeight:h,withScrollArea:f=!0,filterOptions:p=!0,withCheckIcon:m=!1,value:g,checkIconPosition:y,nothingFoundMessage:v,unstyled:b,labelId:_,renderOption:w,scrollAreaProps:x,"aria-label":k}){!function e(t,n=new Set){if(Array.isArray(t))for(let r of t)if((0,l.c)(r))e(r.items,n);else{if(void 0===r.value)throw Error("[@mantine/core] Each option must have value property");if("string"!=typeof r.value)throw Error(`[@mantine/core] Option value must be a string, other data formats are not supported, got ${typeof r.value}`);if(n.has(r.value))throw Error(`[@mantine/core] Duplicate options are not supported. Option with value "${r.value}" was provided more than once`);n.add(r.value)}}(e);let C="string"==typeof o?(i||function e({options:t,search:n,limit:r}){let i=n.trim().toLowerCase(),o=[];for(let s=0;s<t.length;s+=1){let a=t[s];if(o.length===r)break;(0,l.c)(a)&&o.push({group:a.group,items:e({options:a.items,search:n,limit:r-o.length})}),!(0,l.c)(a)&&a.label.toLowerCase().includes(i)&&o.push(a)}return o})({options:e,search:p?o:"",limit:c??1/0}):e,A=function(e){if(0===e.length)return!0;for(let t of e)if(!("group"in t)||t.items.length>0)return!1;return!0}(C),D=C.map(e=>(0,r.jsx)(u,{data:e,withCheckIcon:m,value:g,checkIconPosition:y,unstyled:b,renderOption:w},(0,l.c)(e)?e.group:e.value));return(0,r.jsx)(a.G.Dropdown,{hidden:t||n&&A,"data-composed":!0,children:(0,r.jsxs)(a.G.Options,{labelledBy:_,"aria-label":k,children:[f?(0,r.jsx)(s.F.Autosize,{mah:h??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...x,children:D}):D,A&&v&&(0,r.jsx)(a.G.Empty,{children:v})]})})}},82090:function(e,t,n){"use strict";function r(e){return"group"in e}n.d(t,{c:function(){return r}})},403876:function(e,t,n){"use strict";n.d(t,{D:function(){return function e(t){return t.reduce((t,n)=>"group"in n?{...t,...e(n.items)}:(t[n.value]=n,t),{})}}})},598098:function(e,t,n){"use strict";function r(e){return e?e.map(e=>(function e(t){return"string"==typeof t?{value:t,label:t}:"value"in t&&!("label"in t)?{value:t.value,label:t.value,disabled:t.disabled}:"number"==typeof t?{value:t.toString(),label:t.toString()}:"group"in t?{group:t.group,items:t.items.map(t=>e(t))}:t})(e)):[]}n.d(t,{d:function(){return r}})},393919:function(e,t,n){"use strict";n.d(t,{B:function(){return o}});var r=n(514041),i=n(885268);function o({defaultOpened:e,opened:t,onOpenedChange:n,onDropdownClose:s,onDropdownOpen:a,loop:l=!0,scrollBehavior:c="instant"}={}){let[u,d]=(0,i.Z)({value:t,defaultValue:e,finalValue:!1,onChange:n}),h=(0,r.useRef)(null),f=(0,r.useRef)(-1),p=(0,r.useRef)(null),m=(0,r.useRef)(null),g=(0,r.useRef)(-1),y=(0,r.useRef)(-1),v=(0,r.useRef)(-1),b=(0,r.useCallback)((e="unknown")=>{u||(d(!0),a?.(e))},[d,a,u]),_=(0,r.useCallback)((e="unknown")=>{u&&(d(!1),s?.(e))},[d,s,u]),w=(0,r.useCallback)((e="unknown")=>{u?_(e):b(e)},[_,b,u]),x=(0,r.useCallback)(()=>{let e=document.querySelector(`#${h.current} [data-combobox-selected]`);e?.removeAttribute("data-combobox-selected"),e?.removeAttribute("aria-selected")},[]),k=(0,r.useCallback)(e=>{let t=document.getElementById(h.current),n=t?.querySelectorAll("[data-combobox-option]");if(!n)return null;let r=e>=n.length?0:e<0?n.length-1:e;return(f.current=r,n?.[r]&&!n[r].hasAttribute("data-combobox-disabled"))?(x(),n[r].setAttribute("data-combobox-selected","true"),n[r].setAttribute("aria-selected","true"),n[r].scrollIntoView({block:"nearest",behavior:c}),n[r].id):null},[c,x]),C=(0,r.useCallback)(()=>{let e=document.querySelector(`#${h.current} [data-combobox-active]`);return e?k(Array.from(document.querySelectorAll(`#${h.current} [data-combobox-option]`)).findIndex(t=>t===e)):k(0)},[k]),A=(0,r.useCallback)(()=>k(function(e,t,n){for(let n=e+1;n<t.length;n+=1)if(!t[n].hasAttribute("data-combobox-disabled"))return n;if(n){for(let e=0;e<t.length;e+=1)if(!t[e].hasAttribute("data-combobox-disabled"))return e}return e}(f.current,document.querySelectorAll(`#${h.current} [data-combobox-option]`),l)),[k,l]),D=(0,r.useCallback)(()=>k(function(e,t,n){for(let n=e-1;n>=0;n-=1)if(!t[n].hasAttribute("data-combobox-disabled"))return n;if(n){for(let e=t.length-1;e>-1;e-=1)if(!t[e].hasAttribute("data-combobox-disabled"))return e}return e}(f.current,document.querySelectorAll(`#${h.current} [data-combobox-option]`),l)),[k,l]),S=(0,r.useCallback)(()=>k(function(e){for(let t=0;t<e.length;t+=1)if(!e[t].hasAttribute("data-combobox-disabled"))return t;return -1}(document.querySelectorAll(`#${h.current} [data-combobox-option]`))),[k]),E=(0,r.useCallback)((e="selected",t)=>{v.current=window.setTimeout(()=>{let n=document.querySelectorAll(`#${h.current} [data-combobox-option]`),r=Array.from(n).findIndex(t=>t.hasAttribute(`data-combobox-${e}`));f.current=r,t?.scrollIntoView&&n[r]?.scrollIntoView({block:"nearest",behavior:c})},0)},[]),T=(0,r.useCallback)(()=>{f.current=-1,x()},[x]),O=(0,r.useCallback)(()=>{let e=document.querySelectorAll(`#${h.current} [data-combobox-option]`),t=e?.[f.current];t?.click()},[]),M=(0,r.useCallback)(e=>{h.current=e},[]),N=(0,r.useCallback)(()=>{g.current=window.setTimeout(()=>
3p.current?.focus(),0)},[]),P=(0,r.useCallback)(()=>{y.current=window.setTimeout(()=>m.current?.focus(),0)},[]),R=(0,r.useCallback)(()=>f.current,[]);return(0,r.useEffect)(()=>()=>{window.clearTimeout(g.current),window.clearTimeout(y.current),window.clearTimeout(v.current)},[]),{dropdownOpened:u,openDropdown:b,closeDropdown:_,toggleDropdown:w,selectedOptionIndex:f.current,getSelectedOptionIndex:R,selectOption:k,selectFirstOption:S,selectActiveOption:C,selectNextOption:A,selectPreviousOption:D,resetSelectedOption:T,updateSelectedOptionIndex:E,listId:h.current,setListId:M,clickSelectedOption:O,searchRef:p,focusSearchInput:N,targetRef:m,focusTarget:P}}},941809:function(e,t,n){"use strict";n.d(t,{L:function(){return f}});var r=n(831085);n(514041);var i=n(621037),o=n(161959),s=n(845969),a=n(717226),l=n(427758),c=n(784817),u={root:"m_e9408a47","root--default":"m_84c9523a","root--filled":"m_ef274e49","root--unstyled":"m_eda993d3",legend:"m_90794832","legend--unstyled":"m_74ca27fe"};let d={variant:"default"},h=(0,o.V)((e,{radius:t})=>({root:{"--fieldset-radius":void 0===t?void 0:(0,i.nJ)(t)}})),f=(0,c.P9)((e,t)=>{let n=(0,s.Y)("Fieldset",d,e),{classNames:i,className:o,style:c,styles:f,unstyled:p,vars:m,legend:g,variant:y,children:v,attributes:b,..._}=n,w=(0,a.I)({name:"Fieldset",classes:u,props:n,className:o,style:c,classNames:i,styles:f,unstyled:p,attributes:b,vars:m,varsResolver:h});return(0,r.jsxs)(l.a,{component:"fieldset",ref:t,variant:y,...w("root",{variant:y}),..._,children:[g&&(0,r.jsx)("legend",{...w("legend",{variant:y}),children:g}),v]})});f.classes=u,f.displayName="@mantine/core/Fieldset"},339645:function(e,t,n){"use strict";n.d(t,{s:function(){return m}});var r=n(831085),i=n(19239);n(514041);var o=n(847495),s=n(845969),a=n(717226),l=n(451268),c=n(967669),u=n(744135),d=n(427758),h=n(289094);let f={gap:{type:"spacing",property:"gap"},rowGap:{type:"spacing",property:"rowGap"},columnGap:{type:"spacing",property:"columnGap"},align:{type:"identity",property:"alignItems"},justify:{type:"identity",property:"justifyContent"},wrap:{type:"identity",property:"flexWrap"},direction:{type:"identity",property:"flexDirection"}};var p={root:"m_8bffd616"};let m=(0,h.v)((e,t)=>{let n=(0,s.Y)("Flex",null,e),{classNames:h,className:m,style:g,styles:y,unstyled:v,vars:b,gap:_,rowGap:w,columnGap:x,align:k,justify:C,wrap:A,direction:D,attributes:S,...E}=n,T=(0,a.I)({name:"Flex",classes:p,props:n,className:m,style:g,classNames:h,styles:y,unstyled:v,attributes:S,vars:b}),O=(0,o.xd)(),M=(0,u.C)(),N=(0,c.X)({styleProps:{gap:_,rowGap:w,columnGap:x,align:k,justify:C,wrap:A,direction:D},theme:O,data:f});return(0,r.jsxs)(r.Fragment,{children:[N.hasResponsiveStyles&&(0,r.jsx)(l.K,{selector:`.${M}`,styles:N.styles,media:N.media}),(0,r.jsx)(d.a,{ref:t,...T("root",{className:M,style:(0,i.J)(N.inlineStyles)}),...E})]})});m.classes=p,m.displayName="@mantine/core/Flex"},92719:function(e,t,n){"use strict";n.d(t,{g:function(){return g}});var r=n(831085),i=n(514041),o=n(189102),s=n(161959),a=n(845969),l=n(717226),c=n(427758),u=n(784817),d=n(515564),h=n(117767),f=n(698215),p={root:"m_96b553a6"};let m=(0,s.V)((e,{transitionDuration:t})=>({root:{"--transition-duration":"number"==typeof t?`${t}ms`:t}})),g=(0,u.P9)((e,t)=>{let n=(0,a.Y)("FloatingIndicator",null,e),{classNames:s,className:u,style:g,styles:y,unstyled:v,vars:b,target:_,parent:w,transitionDuration:x,mod:k,displayAfterTransitionEnd:C,attributes:A,...D}=n,S=(0,l.I)({name:"FloatingIndicator",classes:p,props:n,className:u,style:g,classNames:s,styles:y,unstyled:v,attributes:A,vars:b,varsResolver:m}),E=(0,i.useRef)(null),{initialized:T,hidden:O}=function({target:e,parent:t,ref:n,displayAfterTransitionEnd:r}){var o,s,a;let l,c,u=(0,i.useRef)(-1),[p,m]=(0,i.useState)(!1),[g,y]=(0,i.useState)("boolean"==typeof r&&r),v=()=>{if(!e||!t||!n.current)return;let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),o=window.getComputedStyle(e),s=window.getComputedStyle(t),a=(0,f.R)(o.borderTopWidth)+(0,f.R)(s.borderTopWidth),l=(0,f.R)(o.borderLeftWidth)+(0,f.R)(s.borderLeftWidth),c={top:r.top-i.top-a,left:r.left-i.left-l,width:r.width,height:r.height};n.current.style.transform=`translateY(${c.top}px) translateX(${c.left}px)`,n.current.style.width=`${c.width}px`,n.current.style.height=`${c.height}px`},b=()=>{window.clearTimeout(u.current),n.current&&(n.current.style.transitionDuration="0ms"),v(),u.current=window.setTimeout(()=>{n.current&&(n.current.style.transitionDuration="")},30)},_=(0,i.useRef)(null),w=(0,i.useRef)(null);return(0,i.useEffect)(()=>
3{if(v(),e)return _.current=new ResizeObserver(b),_.current.observe(e),t&&(w.current=new ResizeObserver(b),w.current.observe(t)),()=>{_.current?.disconnect(),w.current?.disconnect()}},[t,e]),(0,i.useEffect)(()=>{if(t){let e=e=>{(function(e,t){if(!t||!e)return!1;let n=t.parentNode;for(;null!=n;){if(n===e)return!0;n=n.parentNode}return!1})(e.target,t)&&(b(),y(!1))};return t.addEventListener("transitionend",e),()=>{t.removeEventListener("transitionend",e)}}},[t]),(0,d.Z)(()=>{"test"!==(0,h._)()&&m(!0)},20,{autoInvoke:!0}),o=e=>{e.forEach(e=>{"attributes"===e.type&&"dir"===e.attributeName&&b()})},s={attributes:!0,attributeFilter:["dir"]},a=()=>document.documentElement,l=(0,i.useRef)(null),c=(0,i.useRef)(null),(0,i.useEffect)(()=>{let e=a();return(e||c.current)&&(l.current=new MutationObserver(o),l.current.observe(e||c.current,s)),()=>{l.current?.disconnect()}},[o,s]),{initialized:p,hidden:g}}({target:_,parent:w,ref:E,displayAfterTransitionEnd:C}),M=(0,o.pc)(t,E);return _&&w?(0,r.jsx)(c.a,{ref:M,mod:[{initialized:T,hidden:O},k],...S("root"),...D}):null});g.displayName="@mantine/core/FloatingIndicator",g.classes=p},884521:function(e,t,n){"use strict";n.d(t,{s:function(){return f}});var r=n(831085),i=n(514041);let o=/input|select|textarea|button|object/,s="a, input, select, textarea, button, object, [tabindex]";function a(e){let t=e.getAttribute("tabindex");return null===t&&(t=void 0),parseInt(t,10)}function l(e){let t=e.nodeName.toLowerCase(),n=!Number.isNaN(a(e));return(o.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&function(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||"hidden"===e.getAttribute("type"))return!1;let t=e;for(;t&&t!==document.body&&11!==t.nodeType;){if("none"===t.style.display)return!1;t=t.parentNode}return!0}(e)}function c(e){let t=a(e);return(Number.isNaN(t)||t>=0)&&l(e)}var u=n(189102),d=n(316019),h=n(990729);function f({children:e,active:t=!0,refProp:n="ref",innerRef:r}){let o=function(e=!0){let t=(0,i.useRef)(null),n=e=>{let t=e.querySelector("[data-autofocus]");if(!t){let n=Array.from(e.querySelectorAll(s));!(t=n.find(c)||n.find(l)||null)&&l(e)&&(t=e)}t&&t.focus({preventScroll:!0})},r=(0,i.useCallback)(r=>{e&&null!==r&&t.current!==r&&(r?(setTimeout(()=>{r.getRootNode()&&n(r)}),t.current=r):t.current=null)},[e]);return(0,i.useEffect)(()=>{if(!e)return;t.current&&setTimeout(()=>n(t.current));let r=e=>{"Tab"===e.key&&t.current&&function(e,t){let n=Array.from(e.querySelectorAll(s)).filter(c);if(!n.length)return t.preventDefault();let r=n[t.shiftKey?0:n.length-1],i=e.getRootNode(),o=r===i.activeElement||e===i.activeElement,a=i.activeElement;if("INPUT"===a.tagName&&"radio"===a.getAttribute("type")&&(o=n.filter(e=>"radio"===e.getAttribute("type")&&e.getAttribute("name")===a.getAttribute("name")).includes(r)),!o)return;t.preventDefault();let l=n[t.shiftKey?n.length-1:0];l&&l.focus()}(t.current,e)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[e]),r}(t),a=(0,u.pc)(o,r);return(0,d.v)(e)?(0,i.cloneElement)(e,{[n]:a}):e}function p(e){return(0,r.jsx)(h.s,{tabIndex:-1,"data-autofocus":!0,...e})}f.displayName="@mantine/core/FocusTrap",p.displayName="@mantine/core/FocusTrapInitialFocus",f.InitialFocus=p},169605:function(e,t,n){"use strict";n.d(t,{Y:function(){return p}});var r=n(831085),i=n(514041),o=n(621037),s=n(161959),a=n(845969),l=n(717226),c=n(427758),u=n(784817),d={root:"m_4081bf90"};let h={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},f=(0,s.V)((e,{grow:t,preventGrowOverflow:n,gap:r,align:i,justify:s,wrap:a},{childWidth:l})=>({root:{"--group-child-width":t&&n?l:void 0,"--group-gap":(0,o.GY)(r),"--group-align":i,"--group-justify":s,"--group-wrap":a}})),p=(0,u.P9)((e,t)=>{let n=(0,a.Y)("Group",h,e),{classNames:s,className:u,style:p,styles:m,unstyled:g,children:y,gap:v,align:b,justify:_,wrap:w,grow:x,preventGrowOverflow:k,vars:C,variant:A,__size:D,mod:S,attributes:E,...T}=n,O=i.Children.toArray(y).filter(Boolean),M=O.length,N=(0,o.GY)(v??"md"),P=`calc(${100/M}% - (${N} - ${N} / ${M}))`,R=(0,l.I)({name:"Group",props:n,stylesCtx:{childWidth:P},className:u,style:p,classes:d,classNames:s,styles:m,unstyled:g,attributes:E,vars:C,varsResolver:f});return(0,r.jsx)(c.a,{...R("root"),ref:t,variant:A,mod:[{grow:x},S],size:D,...T,children:O})});p.classes=d,p.displayName="@mantine/core/Group"},760978:function(e,t,n){"use strict";n.d(t,{p:function(){return E}});var r=n(831085),i=n(455302);n(514041);var o=n(621037),s=n(161959),a=n(845969),l=n(717226),c=n(372944),u=n(427758),d=n(289094);let[h,f]=(0,n(677943).e)({size:"sm"});var p=n(903165),m=n(784817),g=n(175677);let y=(0,m.P9)((e,t)=>{let n=(0,a.Y)("InputClearButton",null,e),{size:i,variant:o,vars:s,classNames:l,styles:c,...u}=n,d=f(),{resolvedClassNames:h,resolvedStyles:m}=(0,p.Y)({classNames:l,styles:c,props:n});return(0,r.jsx)(g.J,{variant:o||"transparent",ref:t,size:i||d?.size||"sm",classNames:h,styles:m,__staticSelector:"InputClearButton",style:{pointerEvents:"all",background:"var(--input-bg)",...u.
3style},...u})});y.displayName="@mantine/core/InputClearButton";let v={xs:7,sm:8,md:10,lg:12,xl:15};var b=n(771627),_=n(183455),w=n(348099),x=n(759013);let k=(0,m.P9)((e,t)=>{let n=(0,a.Y)("InputPlaceholder",null,e),{classNames:i,className:o,style:s,styles:c,unstyled:d,vars:h,__staticSelector:f,variant:p,error:m,mod:g,attributes:y,...v}=n,b=(0,l.I)({name:["InputPlaceholder",f],props:n,classes:x.A,className:o,style:s,classNames:i,styles:c,unstyled:d,attributes:y,rootSelector:"placeholder"});return(0,r.jsx)(u.a,{...b("placeholder"),mod:[{error:!!m},g],component:"span",variant:p,ref:t,...v})});k.classes=x.A,k.displayName="@mantine/core/InputPlaceholder";var C=n(626266),A=n(247746);let D={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0,size:"sm"},S=(0,s.V)((e,t,n)=>({wrapper:{"--input-margin-top":n.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":n.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":(0,o.YC)(t.size,"input-height"),"--input-fz":(0,o.ny)(t.size),"--input-radius":void 0===t.radius?void 0:(0,o.nJ)(t.radius),"--input-left-section-width":void 0!==t.leftSectionWidth?(0,i.D)(t.leftSectionWidth):void 0,"--input-right-section-width":void 0!==t.rightSectionWidth?(0,i.D)(t.rightSectionWidth):void 0,"--input-padding-y":t.multiline?(0,o.YC)(t.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}})),E=(0,d.v)((e,t)=>{let n=(0,a.Y)("Input",D,e),{classNames:i,className:o,style:s,styles:d,unstyled:f,required:p,__staticSelector:m,__stylesApiProps:g,size:y,wrapperProps:b,error:_,disabled:w,leftSection:k,leftSectionProps:A,leftSectionWidth:E,rightSection:T,rightSectionProps:O,rightSectionWidth:M,rightSectionPointerEvents:N,leftSectionPointerEvents:P,variant:R,vars:I,pointer:F,multiline:L,radius:j,id:z,withAria:$,withErrorStyles:B,mod:V,inputSize:Y,attributes:q,__clearSection:H,__clearable:W,__defaultRightSection:U,...G}=n,{styleProps:Z,rest:J}=(0,c.j)(G),K=(0,C.e)(),X={offsetBottom:K?.offsetBottom,offsetTop:K?.offsetTop},Q=(0,l.I)({name:["Input",m],props:g||n,classes:x.A,className:o,style:s,classNames:i,styles:d,unstyled:f,attributes:q,stylesCtx:X,rootSelector:"wrapper",vars:I,varsResolver:S}),ee=$?{required:p,disabled:w,"aria-invalid":!!_,"aria-describedby":K?.describedBy,id:K?.inputId||z}:{},et=function({__clearable:e,__clearSection:t,rightSection:n,__defaultRightSection:i,size:o="sm"}){let s=e&&t;return s&&(n||i)?(0,r.jsxs)("div",{"data-combined-clear-section":!0,style:{display:"flex",gap:2,alignItems:"center",paddingInlineEnd:v[o]},children:[s,n||i]}):n||s||i}({__clearable:W,__clearSection:H,rightSection:T,__defaultRightSection:U,size:y});return(0,r.jsx)(h,{value:{size:y||"sm"},children:(0,r.jsxs)(u.a,{...Q("wrapper"),...Z,...b,mod:[{error:!!_&&B,pointer:F,disabled:w,multiline:L,"data-with-right-section":!!et,"data-with-left-section":!!k},V],variant:R,size:y,children:[k&&(0,r.jsx)("div",{...A,"data-position":"left",...Q("section",{className:A?.className,style:A?.style}),children:k}),(0,r.jsx)(u.a,{component:"input",...J,...ee,ref:t,required:p,mod:{disabled:w,error:!!_&&B},variant:R,__size:Y,...Q("input")}),et&&(0,r.jsx)("div",{...O,"data-position":"right",...Q("section",{className:O?.className,style:O?.style}),children:et})]})})});E.classes=x.A,E.Wrapper=A.o,E.Label=w.l,E.Error=_.d,E.Description=b.x,E.Placeholder=k,E.ClearButton=y,E.displayName="@mantine/core/Input"},759013:function(e,t,n){"use strict";var r={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};n.d(t,{A:function(){return r}})},771627:function(e,t,n){"use strict";var r=n(831085),i=n(455302);n(514041);var o=n(621037),s=n(161959),a=n(845969),l=n(717226),c=n(427758),u=n(784817),d=n(626266),h=n(759013);let f=(0,s.V)((e,{size:t})=>({description:{"--input-description-size":void 0===t?void 0:`calc(${(0,o.ny)(t)} - ${(0,i.D)(2)})`}})),p=(0,u.P9)((e,t)=>{let n=(0,a.Y)("InputDescription",null,e),{classNames:i,className:o,style:s,styles:u,unstyled:p,vars:m,size:g,__staticSelector:y,__inheritStyles:v=!0,attributes:b,variant:_,...w}=(0,a.Y)("InputDescription",null,n),x=(0,d.e)(),k=(0,l.I)({name:["InputWrapper",y],props:n,classes:h.A,className:o,style:s,classNames:i,styles:u,unstyled:p,attributes:b,rootSelector:"description",vars:m,varsResolver:f}),C=v&&x?.getStyles||k;return(0,r.jsx)(c.a,{component:"p",ref:t,variant:_,size:g,...C("description",x?.getStyles?{className:o,style:s}:void 0),...w})});p.classes=h.A,p.displayName="@mantine/core/InputDescription",n.d(t,{},{x:p})},183455:function(e,t,n){"use strict";var r=n(831085),i=n(455302);n(514041);var o=n(621037),s=n(161959),a=n(845969),l=n(717226),c=n(427758),u=n(784817),d=n(626266),h=n(759013);let f=(0,s.V)((e,{size:t})=>({error:{"--input-error-size":void 0===t?void 0:`calc(${(0,o.ny)(t)} - ${(0,i.D)(2)})`}})),p=(0,u.P9)((e,t)=>{let n=(0,a.Y)("InputError",null,e),{classNames:i,className:o,style:s,styles:u,unstyled:p,vars:m,size:g,attributes:y,__staticSelector:v,__inheritStyles:b=!0,variant:_,...w}=n,x=(0,l.I)({name:["InputWrapper",v],props:n,classes:h.A,className:o,style:s,classNames:i,styles:u,unstyled:p,attributes:y,rootSelector:"error",vars:m,varsResolver:f}),k=(0,d.e)(),C=b&&k?.getStyles||x;return(0,r.jsx)(c.a,{component:"p",ref:t,variant:_,size:g,...C("error",k?.getStyles?{className:o,style:s}:void 0),...w})});p.classes=h.A,p.displayName="@mantine/core/InputError",n.d(t,{},{d:p})},348099:function(e,t,n){"use strict";var r=n(831085);n(514041);var i=n(621037),o=n(161959),s=n(845969),a=n(717226),l=n(427758),c=n(784817),u=n(626266),d=n(759013);let h={labelElement:"label"},f=(0,o.V)((e,{size:t})=>({label:{"--input-label-size":(0,i.ny)(t),"--input-asterisk-color":void 0}})),p=(0,c.P9)((e,t)=>{let n=(0,s.Y)("InputLabel",h,e),{classNames:i,className:o,style:c,styles:p,unstyled:m,vars:g,labelElement:y,size:v,required:b,htmlFor:_,onMouseDown:w,children:x,__staticSelector:k,variant:C,mod:A,attributes:D,...S}=(0,s.Y)("InputLabel",h,n),E=(0,a.I)({name:["InputWrapper",k],props:n,classes:d.A,className:o,style:c,classNames:i,styles:p,unstyled:m,attributes:D,rootSelector:"label",vars:g,varsResolver:f}),T=(0,u.e)(),O=T?.getStyles||E;return(0,r.jsxs)(l.a,{...O("label",T?.getStyles?{className:o,style:c}:void 0),component:y,variant:C,size:v,ref:t,htmlFor:"label"===y?_:void 0,mod:[{required:b},A],onMouseDown:e=>{w?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault()},...S,children:[x,b&&(0,r.jsx)("span",{...O("required"),"aria-hidden":!0,
3children:" *"})]})});p.classes=d.A,p.displayName="@mantine/core/InputLabel",n.d(t,{},{l:p})},626266:function(e,t,n){"use strict";n(514041),n(831085);let[r,i]=(0,n(677943).e)({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});n.d(t,{},{D:r,e:i})},247746:function(e,t,n){"use strict";n.d(t,{o:function(){return _}});var r=n(831085),i=n(514041),o=n(398046),s=n(455302),a=n(621037),l=n(161959),c=n(845969),u=n(717226),d=n(427758),h=n(784817),f=n(771627),p=n(183455),m=n(348099),g=n(626266),y=n(759013);let v={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},b=(0,l.V)((e,{size:t})=>({label:{"--input-label-size":(0,a.ny)(t),"--input-asterisk-color":void 0},error:{"--input-error-size":void 0===t?void 0:`calc(${(0,a.ny)(t)} - ${(0,s.D)(2)})`},description:{"--input-description-size":void 0===t?void 0:`calc(${(0,a.ny)(t)} - ${(0,s.D)(2)})`}})),_=(0,h.P9)((e,t)=>{let n=(0,c.Y)("InputWrapper",v,e),{classNames:s,className:a,style:l,styles:h,unstyled:_,vars:w,size:x,variant:k,__staticSelector:C,inputContainer:A,inputWrapperOrder:D,label:S,error:E,description:T,labelProps:O,descriptionProps:M,errorProps:N,labelElement:P,children:R,withAsterisk:I,id:F,required:L,__stylesApiProps:j,mod:z,attributes:$,...B}=n,V=(0,u.I)({name:["InputWrapper",C],props:j||n,classes:y.A,className:a,style:l,classNames:s,styles:h,unstyled:_,attributes:$,vars:w,varsResolver:b}),Y={size:x,variant:k,__staticSelector:C},q=(0,o.B)(F),H=N?.id||`${q}-error`,W=M?.id||`${q}-description`,U=!!E&&"boolean"!=typeof E,G=!!T,Z=`${U?H:""} ${G?W:""}`,J=Z.trim().length>0?Z.trim():void 0,K=O?.id||`${q}-label`,X=S&&(0,r.jsx)(m.l,{labelElement:P,id:K,htmlFor:q,required:"boolean"==typeof I?I:L,...Y,...O,children:S},"label"),Q=G&&(0,r.jsx)(f.x,{...M,...Y,size:M?.size||Y.size,id:M?.id||W,children:T},"description"),ee=(0,r.jsx)(i.Fragment,{children:A(R)},"input"),et=U&&(0,i.createElement)(p.d,{...N,...Y,size:N?.size||Y.size,key:"error",id:N?.id||H},E),en=D.map(e=>{switch(e){case"label":return X;case"input":return ee;case"description":return Q;case"error":return et;default:return null}});return(0,r.jsx)(g.D,{value:{getStyles:V,describedBy:J,inputId:q,labelId:K,...function(e,{hasDescription:t,hasError:n}){let r=e.findIndex(e=>"input"===e),i=e.slice(0,r),o=e.slice(r+1),s=t&&i.includes("description")||n&&i.includes("error");return{offsetBottom:t&&o.includes("description")||n&&o.includes("error"),offsetTop:s}}(D,{hasDescription:G,hasError:U})},children:(0,r.jsx)(d.a,{ref:t,variant:k,size:x,mod:[{error:!!E},z],...V("root"),...B,children:en})})});_.classes=y.A,_.displayName="@mantine/core/InputWrapper"},503075:function(e,t,n){"use strict";n(514041),n(831085);var r=n(845969),i=n(372944);function o(e,t,n){let o=(0,r.Y)(e,t,n),{label:s,description:a,error:l,required:c,classNames:u,styles:d,className:h,unstyled:f,__staticSelector:p,__stylesApiProps:m,errorProps:g,labelProps:y,descriptionProps:v,wrapperProps:b,id:_,size:w,style:x,inputContainer:k,inputWrapperOrder:C,withAsterisk:A,variant:D,vars:S,mod:E,attributes:T,...O}=o,{styleProps:M,rest:N}=(0,i.j)(O),P={label:s,description:a,error:l,required:c,classNames:u,className:h,__staticSelector:p,__stylesApiProps:m||o,errorProps:g,labelProps:y,descriptionProps:v,unstyled:f,styles:d,size:w,style:x,inputContainer:k,inputWrapperOrder:C,withAsterisk:A,variant:D,id:_,mod:E,attributes:T,...b};return{...N,classNames:u,styles:d,unstyled:f,wrapperProps:{...P,...M},inputProps:{required:c,classNames:u,styles:d,unstyled:f,size:w,__staticSelector:p,__stylesApiProps:m||o,error:l,variant:D,id:_,attributes:T}}}n.d(t,{I:function(){return o}})},438872:function(e,t,n){"use strict";var r=n(831085);n(514041);var i=n(289094),o=n(760978),s=n(503075);let a={__staticSelector:"InputBase",withAria:!0,size:"sm"},l=(0,i.v)((e,t)=>{let{inputProps:n,wrapperProps:i,...l}=(0,s.I)("InputBase",a,e);return(0,r.jsx)(o.p.Wrapper,{...i,children:(0,r.jsx)(o.p,{...n,...l,ref:t})})});l.classes={...o.p.classes,...o.p.Wrapper.classes},l.displayName="@mantine/core/InputBase",n.d(t,{},{O:l})},529117:function(e,t,n){"use strict";n.d(t,{u:function(){return h}});var r=n(831085);n(514041);var i=n(621037),o=n(161959),s=n(845969),a=n(717226),l=n(427758),c=n(784817),u={root:"m_dc6f14e2"};
3let d=(0,o.V)((e,{size:t})=>({root:{"--kbd-fz":(0,i.YC)(t,"kbd-fz")}})),h=(0,c.P9)((e,t)=>{let n=(0,s.Y)("Kbd",null,e),{classNames:i,className:o,style:c,styles:h,unstyled:f,vars:p,attributes:m,...g}=n,y=(0,a.I)({name:"Kbd",classes:u,props:n,className:o,style:c,classNames:i,styles:h,unstyled:f,attributes:m,vars:p,varsResolver:d});return(0,r.jsx)(l.a,{component:"kbd",ref:t,...y("root"),...g})});h.classes=u,h.displayName="@mantine/core/Kbd"},340218:function(e,t,n){"use strict";n.d(t,{a:function(){return _}});var r=n(831085),i=n(514041),o=n(621037),s=n(161959),a=n(884117),l=n(845969),c=n(717226),u=n(427758),d=n(784817),h=n(354357),f={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};let p=(0,i.forwardRef)(({className:e,...t},n)=>(0,r.jsxs)(u.a,{component:"span",className:(0,h.A)(f.barsLoader,e),...t,ref:n,children:[(0,r.jsx)("span",{className:f.bar}),(0,r.jsx)("span",{className:f.bar}),(0,r.jsx)("span",{className:f.bar})]}));p.displayName="@mantine/core/Bars";let m=(0,i.forwardRef)(({className:e,...t},n)=>(0,r.jsxs)(u.a,{component:"span",className:(0,h.A)(f.dotsLoader,e),...t,ref:n,children:[(0,r.jsx)("span",{className:f.dot}),(0,r.jsx)("span",{className:f.dot}),(0,r.jsx)("span",{className:f.dot})]}));m.displayName="@mantine/core/Dots";let g=(0,i.forwardRef)(({className:e,...t},n)=>(0,r.jsx)(u.a,{component:"span",className:(0,h.A)(f.ovalLoader,e),...t,ref:n}));g.displayName="@mantine/core/Oval";let y={bars:p,oval:g,dots:m},v={loaders:y,type:"oval"},b=(0,s.V)((e,{size:t,color:n})=>({root:{"--loader-size":(0,o.YC)(t,"loader-size"),"--loader-color":n?(0,a.r)(n,e):void 0}})),_=(0,d.P9)((e,t)=>{let n=(0,l.Y)("Loader",v,e),{size:i,color:o,type:s,vars:a,className:d,style:h,classNames:p,styles:m,unstyled:g,loaders:y,variant:_,children:w,attributes:x,...k}=n,C=(0,c.I)({name:"Loader",props:n,classes:f,className:d,style:h,classNames:p,styles:m,unstyled:g,attributes:x,vars:a,varsResolver:b});return w?(0,r.jsx)(u.a,{...C("root"),ref:t,...k,children:w}):(0,r.jsx)(u.a,{...C("root"),ref:t,component:y[s],variant:_,size:i,...k})});_.defaultLoaders=y,_.classes=f,_.displayName="@mantine/core/Loader"},649883:function(e,t,n){"use strict";n.d(t,{a:function(){return L}});var r=n(831085),i=n(514041),o=n(159903),s=n(845969),a=n(784817),l=n(330875);let[c,u]=(0,n(751963).F)("Modal component was not found in tree");var d={root:"m_9df02822",content:"m_54c44539",inner:"m_1f958f16",header:"m_d0e2b9cd"};let h=(0,a.P9)((e,t)=>{let{classNames:n,className:i,style:o,styles:a,vars:c,...d}=(0,s.Y)("ModalBody",null,e),h=u();return(0,r.jsx)(l.v,{ref:t,...h.getStyles("body",{classNames:n,style:o,styles:a,className:i}),...d})});h.classes=d,h.displayName="@mantine/core/ModalBody";var f=n(508536);let p=(0,a.P9)((e,t)=>{let{classNames:n,className:i,style:o,styles:a,vars:l,...c}=(0,s.Y)("ModalCloseButton",null,e),d=u();return(0,r.jsx)(f.F,{ref:t,...d.getStyles("close",{classNames:n,style:o,styles:a,className:i}),...c})});p.classes=d,p.displayName="@mantine/core/ModalCloseButton";var m=n(455302),g=n(944867),y=n(217137);let v=(0,a.P9)((e,t)=>{let{classNames:n,className:i,style:o,styles:a,vars:l,children:c,__hidden:d,...h}=(0,s.Y)("ModalContent",null,e),f=u(),p=f.scrollAreaComponent||y.a;return(0,r.jsx)(g.c,{...f.getStyles("content",{className:i,style:o,styles:a,classNames:n}),innerProps:f.getStyles("inner",{className:i,style:o,styles:a,classNames:n}),"data-full-screen":f.fullScreen||void 0,"data-modal-content":!0,"data-hidden":d||void 0,ref:t,...h,children:(0,r.jsx)(p,{style:{maxHeight:f.fullScreen?"100dvh":`calc(100dvh - (${(0,m.D)(f.yOffset)} * 2))`},children:c})})});v.classes=d,v.displayName="@mantine/core/ModalContent";var b=n(315459);let _=(0,a.P9)((e,t)=>{let{classNames:n,className:i,style:o,styles:a,vars:l,...c}=(0,s.Y)("ModalHeader",null,e),d=u();return(0,r.jsx)(b.m,{ref:t,...d.getStyles("header",{classNames:n,style:o,styles:a,className:i}),...c})});_.classes=d,_.displayName="@mantine/core/ModalHeader";var w=n(983609);let x=(0,a.P9)((e,t)=>{let{classNames:n,className:i,style:o,styles:a,vars:l,...c}=(0,s.Y)("ModalOverlay",null,e),d=u();return(0,r.jsx)(w.V,{ref:t,...d.getStyles("overlay",{classNames:n,style:o,styles:a,className:i}),...c})});x.classes=d,x.displayName="@mantine/core/ModalOverlay";
3var k=n(621037),C=n(161959),A=n(717226),D=n(960914),S=n(541463);let E={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:(0,o.I)("modal"),transitionProps:{duration:200,transition:"fade-down"},yOffset:"5dvh"},T=(0,C.V)((e,{radius:t,size:n,yOffset:r,xOffset:i})=>({root:{"--modal-radius":void 0===t?void 0:(0,k.nJ)(t),"--modal-size":(0,k.YC)(n,"modal-size"),"--modal-y-offset":(0,m.D)(r),"--modal-x-offset":(0,m.D)(i)}})),O=(0,a.P9)((e,t)=>{let n=(0,s.Y)("ModalRoot",E,e),{classNames:i,className:o,style:a,styles:l,unstyled:u,vars:h,yOffset:f,scrollAreaComponent:p,radius:m,fullScreen:g,centered:y,xOffset:v,__staticSelector:b,attributes:_,...w}=n,x=(0,A.I)({name:b,classes:d,props:n,className:o,style:a,classNames:i,styles:l,unstyled:u,attributes:_,vars:h,varsResolver:T});return(0,r.jsx)(c,{value:{yOffset:f,scrollAreaComponent:p,getStyles:x,fullScreen:g},children:(0,r.jsx)(D.f,{ref:t,...x("root"),"data-full-screen":g||void 0,"data-centered":y||void 0,"data-offset-scrollbars":p===S.F.Autosize||void 0,unstyled:u,...w})})});O.classes=d,O.displayName="@mantine/core/ModalRoot";let[M,N]=(0,n(677943).e)();function P({children:e}){let[t,n]=(0,i.useState)([]),[s,a]=(0,i.useState)((0,o.I)("modal"));return(0,r.jsx)(M,{value:{stack:t,addModal:(e,t)=>{n(t=>[...new Set([...t,e])]),a(e=>"number"==typeof t&&"number"==typeof e?Math.max(e,t):e)},removeModal:e=>n(t=>t.filter(t=>t!==e)),getZIndex:e=>`calc(${s} + ${t.indexOf(e)} + 1)`,currentId:t[t.length-1],maxZIndex:s},children:e})}P.displayName="@mantine/core/ModalStack";var R=n(31929);let I=(0,a.P9)((e,t)=>{let{classNames:n,className:i,style:o,styles:a,vars:l,...c}=(0,s.Y)("ModalTitle",null,e),d=u();return(0,r.jsx)(R.$,{ref:t,...d.getStyles("title",{classNames:n,style:o,styles:a,className:i}),...c})});I.classes=d,I.displayName="@mantine/core/ModalTitle";let F={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:(0,o.I)("modal"),transitionProps:{duration:200,transition:"fade-down"},withOverlay:!0,withCloseButton:!0},L=(0,a.P9)((e,t)=>{let{title:n,withOverlay:a,overlayProps:l,withCloseButton:c,closeButtonProps:u,children:d,radius:f,opened:m,stackId:g,zIndex:y,...b}=(0,s.Y)("Modal",F,e),w=N(),k=!!n||c,C=w&&g?{closeOnEscape:w.currentId===g,trapFocus:w.currentId===g,zIndex:w.getZIndex(g)}:{},A=!1!==a&&(g&&w?w.currentId===g:m);return(0,i.useEffect)(()=>{w&&g&&(m?w.addModal(g,y||(0,o.I)("modal")):w.removeModal(g))},[m,g,y]),(0,r.jsxs)(O,{ref:t,radius:f,opened:m,zIndex:w&&g?w.getZIndex(g):y,...b,...C,children:[a&&(0,r.jsx)(x,{visible:A,transitionProps:w&&g?{duration:0}:void 0,...l}),(0,r.jsxs)(v,{radius:f,__hidden:!!w&&!!g&&!!m&&g!==w.currentId,children:[k&&(0,r.jsxs)(_,{children:[n&&(0,r.jsx)(I,{children:n}),c&&(0,r.jsx)(p,{...u})]}),(0,r.jsx)(h,{children:d})]})]})});L.classes=d,L.displayName="@mantine/core/Modal",L.Root=O,L.Overlay=x,L.Content=v,L.Body=h,L.Header=_,L.Title=I,L.CloseButton=p,L.Stack=P},32367:function(e,t,n){"use strict";n(514041);var r=n(751963);n(831085);let[i,o]=(0,r.F)("ModalBase component was not found in tree");n.d(t,{},{o:i,x:o})},960914:function(e,t,n){"use strict";n.d(t,{f:function(){return m}});var r=n(831085),i=n(514041),o=n(894830),s=n(159903),a=n(621037),l=n(427758),c=n(449614),u=n(32367),d=n(398046),h=n(318684),f=n(491448),p=n(646604);let m=(0,i.forwardRef)(({keepMounted:e,opened:t,onClose:n,id:m,transitionProps:g,onExitTransitionEnd:y,onEnterTransitionEnd:v,trapFocus:b,closeOnEscape:_,returnFocus:w,closeOnClickOutside:x,withinPortal:k,portalProps:C,lockScroll:A,children:D,zIndex:S,shadow:E,padding:T,__vars:O,unstyled:M,removeScrollProps:N,...P},R)=>{let{_id:I,titleMounted:F,bodyMounted:L,shouldLockScroll:j,setTitleMounted:z,setBodyMounted:$}=function({id:e,transitionProps:t,opened:n,trapFocus:r,closeOnEscape:o,onClose:s,returnFocus:a}){let l=(0,d.B)(e),[c,u]=(0,i.useState)(!1),[m,g]=(0,i.useState)(!1),y=function({opened:e,transitionDuration:t}){let[n,r]=(0,i.useState)(e),o=(0,i.useRef)(-1),s=(0,p.I)()?0:t;return(0,i.useEffect)(()=>(e?(r(!0),window.clearTimeout(o.current)):0===s?r(!1):o.current=window.setTimeout(()=>r(!1),s),()=>window.clearTimeout(o.current)),[e,s]),n}({opened:n,transitionDuration:"number"==typeof t?.duration?t?.duration:200});return(0,h.M)("keydown",e=>{"Escape"===e.key&&o&&!e.isComposing&&n&&e.target?.getAttribute("data-mantine-stop-propagation")!=="true"&&s()},{capture:!0}),(0,f.E)({opened:n,shouldReturnFocus:r&&a}),{_id:l,titleMounted:c,bodyMounted:m,shouldLockScroll:y,setTitleMounted:u,setBodyMounted:g}}({id:m,transitionProps:g,opened:t,trapFocus:b,closeOnEscape:_,onClose:n,returnFocus:w}),{key:B,...V}=N||{};return(0,r.jsx)(c.r,{...C,withinPortal:k,children:(0,r.jsx)(u.o,{value:{opened:t,onClose:n,closeOnClickOutside:x,onExitTransitionEnd:y,onEnterTransitionEnd:v,transitionProps:{...g,keepMounted:e},getTitleId:()=>`${I}-title`,getBodyId:()=>`${I}-body`,titleMounted:F,bodyMounted:L,setTitleMounted:z,setBodyMounted:$,trapFocus:b,closeOnEscape:_,zIndex:S,unstyled:M},children:(0,r.jsx)(o.A,{enabled:j&&A,...V,children:(0,r.jsx)(l.a,{ref:R,...P,__vars:{...O,"--mb-z-index":(S||(0,s.I)("modal")).toString(),"--mb-shadow":(0,a.dh)(E),"--mb-padding":(0,a.GY)(T)},children:D})},B)})})});m.displayName="@mantine/core/ModalBase"},251237:function(e,t,n){"use strict";var r={title:"m_615af6c9",header:"m_b5489c3c",inner:"m_60c222c7",content:"m_fd1ab0aa",close:"m_606cb269",body:"m_5df29311"};n.d(t,{A:function(){return r}})},330875:function(e,t,n){"use strict";n.d(t,{v:function(){return c}});var r=n(831085),i=n(514041),o=n(354357),s=n(427758),a=n(32367),l=n(251237);let c=(0,i.forwardRef)(({className:e,...t},n)=>{let c,u=(c=(0,a.x)(),(0,i.useEffect)(()=>(c.setBodyMounted(!0),()=>c.setBodyMounted(!1)),[]),c.getBodyId()),d=(0,a.x)();return(0,r.jsx)(s.a,{ref:n,...t,id:u,className:(0,o.A)({[l.A.body]:!d.unstyled},e)})});c.displayName="@mantine/core/ModalBaseBody"},508536:function(e,t,n){"use strict";var r=n(831085),i=n(514041),o=n(354357),s=n(175677),a=n(32367),l=n(251237);let c=(0,i.forwardRef)(({className:e,onClick:t,...n},i)=>{let c=(0,a.x)();return(0,r.jsx)(s.J,{ref:i,...n,onClick:e=>{c.onClose(),t?.(e)},className:(0,o.A)({[l.A.close]:!c.unstyled},e),unstyled:c.unstyled})});c.displayName="@mantine/core/ModalBaseCloseButton",n.d(t,{},{F:c})},944867:function(e,t,n){"use strict";var r=n(831085),i=n(514041),o=n(354357),s=n(884521),a=n(697358),l=n(813962),c=n(32367),u=n(251237);let d=(0,i.forwardRef)(({transitionProps:e,className:t,innerProps:n,onKeyDown:i,style:d,...h},f)=>{let p=(0,c.x)();return(0,r.jsx)(l.e,{mounted:p.opened,transition:"pop",...p.transitionProps,onExited:()=>{p.onExitTransitionEnd?.(),p.transitionProps?.onExited?.()},onEntered:()=>{p.onEnterTransitionEnd?.(),p.transitionProps?.onEntered?.()},...e,children:e=>(0,r.jsx)("div",{...n,className:(0,o.A)({[u.A.inner]:!p.unstyled},n.className),children:(0,r.jsx)(s.s,{active:p.opened&&p.trapFocus,innerRef:f,children:(0,r.jsx)(a.t,{...h,component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":p.bodyMounted?p.getBodyId():void 0,"aria-labelledby":p.titleMounted?p.getTitleId():void 0,style:[d,e],className:(0,o.A)({[u.A.content]:!p.unstyled},t),unstyled:p.unstyled,children:h.children})})})})});d.displayName="@mantine/core/ModalBaseContent",n.d(t,{},{c:d})},315459:function(e,t,n){"use strict";var r=n(831085),i=n(514041),o=n(354357),s=n(427758),a=n(32367),l=n(251237);let c=(0,i.forwardRef)(({className:e,...t},n)=>{let i=(0,a.x)();return(0,r.jsx)(s.a,{component:"header",ref:n,className:(0,o.A)({[l.A.header]:!i.unstyled},e),...t})});c.displayName="@mantine/core/ModalBaseHeader",n.d(t,{},{m:c})},983609:function(e,t,n){"use strict";n.d(t,{V:function(){return c}});var r=n(831085),i=n(514041),o=n(194770),s=n(813962),a=n(32367);let l={duration:200,timingFunction:"ease",transition:"fade"},c=(0,i.forwardRef)(({onClick:e,transitionProps:t,style:n,visible:i,...c},u)=>{let d,h=(0,a.x)(),f=(d=(0,a.x)(),{...l,...d.transitionProps,...t});return(0,r.jsx)(s.e,{mounted:void 0!==i?i:h.opened,...f,transition:"fade",children:t=>
3(0,r.jsx)(o.h,{ref:u,fixed:!0,style:[n,t],zIndex:h.zIndex,unstyled:h.unstyled,onClick:t=>{e?.(t),h.closeOnClickOutside&&h.onClose()},...c})})});c.displayName="@mantine/core/ModalBaseOverlay"},31929:function(e,t,n){"use strict";n.d(t,{$:function(){return c}});var r=n(831085),i=n(514041),o=n(354357),s=n(427758),a=n(32367),l=n(251237);let c=(0,i.forwardRef)(({className:e,...t},n)=>{let c,u=(c=(0,a.x)(),(0,i.useEffect)(()=>(c.setTitleMounted(!0),()=>c.setTitleMounted(!1)),[]),c.getTitleId()),d=(0,a.x)();return(0,r.jsx)(s.a,{component:"h2",ref:n,className:(0,o.A)({[l.A.title]:!d.unstyled},e),...t,id:u})});c.displayName="@mantine/core/ModalBaseTitle"},217137:function(e,t,n){"use strict";var r=n(831085);function i({children:e}){return(0,r.jsx)(r.Fragment,{children:e})}n.d(t,{a:function(){return i}})},194770:function(e,t,n){"use strict";n.d(t,{h:function(){return g}});var r=n(831085),i=n(455302);n(514041);var o=n(159903),s=n(621037),a=n(161959),l=n(196115),c=n(845969),u=n(717226),d=n(427758),h=n(289094),f={root:"m_9814e45f"};let p={zIndex:(0,o.I)("modal")},m=(0,a.V)((e,{gradient:t,color:n,backgroundOpacity:r,blur:o,radius:a,zIndex:c})=>({root:{"--overlay-bg":t||(void 0!==n||void 0!==r)&&(0,l.B)(n||"#000",r??.6)||void 0,"--overlay-filter":o?`blur(${(0,i.D)(o)})`:void 0,"--overlay-radius":void 0===a?void 0:(0,s.nJ)(a),"--overlay-z-index":c?.toString()}})),g=(0,h.v)((e,t)=>{let n=(0,c.Y)("Overlay",p,e),{classNames:i,className:o,style:s,styles:a,unstyled:l,vars:h,fixed:g,center:y,children:v,radius:b,zIndex:_,gradient:w,blur:x,color:k,backgroundOpacity:C,mod:A,attributes:D,...S}=n,E=(0,u.I)({name:"Overlay",props:n,classes:f,className:o,style:s,classNames:i,styles:a,unstyled:l,attributes:D,vars:h,varsResolver:m});return(0,r.jsx)(d.a,{ref:t,...E("root"),mod:[{center:y,fixed:g},A],...S,children:v})});g.classes=f,g.displayName="@mantine/core/Overlay"},697358:function(e,t,n){"use strict";n.d(t,{t:function(){return h}});var r=n(831085);n(514041);var i=n(621037),o=n(161959),s=n(845969),a=n(717226),l=n(427758),c=n(289094),u={root:"m_1b7284a3"};
3let d=(0,o.V)((e,{radius:t,shadow:n})=>({root:{"--paper-radius":void 0===t?void 0:(0,i.nJ)(t),"--paper-shadow":(0,i.dh)(n)}})),h=(0,c.v)((e,t)=>{let n=(0,s.Y)("Paper",null,e),{classNames:i,className:o,style:c,styles:h,unstyled:f,withBorder:p,vars:m,radius:g,shadow:y,variant:v,mod:b,attributes:_,...w}=n,x=(0,a.I)({name:"Paper",props:n,classes:u,className:o,style:c,classNames:i,styles:h,unstyled:f,attributes:_,vars:m,varsResolver:d});return(0,r.jsx)(l.a,{ref:t,mod:[{"data-with-border":p},b],...x("root"),variant:v,...w})});h.classes=u,h.displayName="@mantine/core/Paper"},153036:function(e,t,n){"use strict";n.d(t,{a:function(){return b}});var r=n(831085);n(514041);var i=n(621037),o=n(161959),s=n(845969),a=n(717226),l=n(427758),c=n(784817),u=n(175677),d=n(496277);let[h,f]=(0,n(677943).e)();var p={root:"m_7cda1cd6","root--default":"m_44da308b","root--contrast":"m_e3a01f8",label:"m_1e0e6180",remove:"m_ae386778",group:"m_1dcfd90b"};let m=(0,o.V)((e,{gap:t},{size:n})=>({group:{"--pg-gap":void 0!==t?(0,i.YC)(t):(0,i.YC)(n,"pg-gap")}})),g=(0,c.P9)((e,t)=>{let n=(0,s.Y)("PillGroup",null,e),{classNames:i,className:o,style:c,styles:u,unstyled:f,vars:g,size:y,disabled:v,attributes:b,..._}=n,w=(0,d.n)(),x=w?.size||y||void 0,k=(0,a.I)({name:"PillGroup",classes:p,props:n,className:o,style:c,classNames:i,styles:u,unstyled:f,attributes:b,vars:g,varsResolver:m,stylesCtx:{size:x},rootSelector:"group"});return(0,r.jsx)(h,{value:{size:x,disabled:v},children:(0,r.jsx)(l.a,{ref:t,size:x,...k("group"),..._})})});g.classes=p,g.displayName="@mantine/core/PillGroup";let y={variant:"default"},v=(0,o.V)((e,{radius:t},{size:n})=>({root:{"--pill-fz":(0,i.YC)(n,"pill-fz"),"--pill-height":(0,i.YC)(n,"pill-height"),"--pill-radius":void 0===t?void 0:(0,i.nJ)(t)}})),b=(0,c.P9)((e,t)=>{let n=(0,s.Y)("Pill",y,e),{classNames:i,className:o,style:c,styles:h,unstyled:m,vars:g,variant:b,children:_,withRemoveButton:w,onRemove:x,removeButtonProps:k,radius:C,size:A,disabled:D,mod:S,attributes:E,...T}=n,O=f(),M=(0,d.n)(),N=A||O?.size||void 0,P=M?.variant==="filled"?"contrast":b||"default",R=(0,a.I)({name:"Pill",classes:p,props:n,className:o,style:c,classNames:i,styles:h,unstyled:m,attributes:E,vars:g,varsResolver:v,stylesCtx:{size:N}});return(0,r.jsxs)(l.a,{component:"span",ref:t,variant:P,size:N,...R("root",{variant:P}),mod:[{"with-remove":w&&!D,disabled:D||O?.disabled},S],...T,children:[(0,r.jsx)("span",{...R("label"),children:_}),w&&(0,r.jsx)(u.J,{variant:"transparent",radius:C,tabIndex:-1,"aria-hidden":!0,unstyled:m,...k,...R("remove",{className:k?.className,style:k?.style}),onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),k?.onMouseDown?.(e)},onClick:e=>{e.stopPropagation(),x?.(),k?.onClick?.(e)}})]})});b.classes=p,b.displayName="@mantine/core/Pill",b.Group=g},496277:function(e,t,n){"use strict";n(514041),n(831085);let[r,i]=(0,n(677943).e)();n.d(t,{},{n:i,q:r})},596131:function(e,t,n){"use strict";n.d(t,{t:function(){return y}});var r=n(831085),i=n(514041),o=n(845969),s=n(784817),a=n(438872),l=n(496277),c=n(189102),u=n(717226),d=n(427758),h=n(626266),f={field:"m_45c4369d"};let p={type:"visible"},m=(0,s.P9)((e,t)=>{let n=(0,o.Y)("PillsInputField",p,e),{classNames:i,className:s,style:a,styles:m,unstyled:g,vars:y,type:v,disabled:b,id:_,pointer:w,mod:x,attributes:k,...C}=n,A=(0,l.n)(),D=(0,h.e)(),S=(0,u.I)({name:"PillsInputField",classes:f,props:n,className:s,style:a,classNames:i,styles:m,unstyled:g,attributes:k,rootSelector:"field"}),E=b||A?.disabled;return(0,r.jsx)(d.a,{component:"input",ref:(0,c.pc)(t,A?.fieldRef),"data-type":v,disabled:E,mod:[{disabled:E,pointer:w},x],...S("field"),...C,id:D?.inputId||_,"aria-invalid":A?.hasError,"aria-describedby":D?.describedBy,type:"text",onMouseDown:e=>!w&&e.stopPropagation()})});m.classes=f,m.displayName="@mantine/core/PillsInputField";let g={size:"sm"},y=(0,s.P9)((e,t)=>{let{children:n,onMouseDown:s,onClick:c,size:u,disabled:d,__staticSelector:h,error:f,variant:p,...m}=(0,o.Y)("PillsInput",g,e),y=(0,i.useRef)(null);return(0,r.jsx)(l.q,{value:{fieldRef:y,size:u,disabled:d,hasError:!!f,variant:p},children:(0,r.jsx)(a.O,{size:u,error:f,variant:p,component:"div",ref:t,"data-no-overflow":!0,onMouseDown:e=>{e.preventDefault(),s?.(e),y.current?.focus()},onClick:e=>{e.preventDefault();let t=e.currentTarget.closest("fieldset");t?.disabled||(y.current?.focus(),c?.(e))},...m,multiline:!0,disabled:d,__staticSelector:h||"PillsInput",withAria:!1,children:n})})});y.displayName="@mantine/core/PillsInput",y.Field=m},670695:function(e,t,n){"use strict";n(514041);var r=n(751963);n(831085);let[i,o]=(0,r.F)("Popover component was not found in the tree");n.d(t,{},{C:o,w:i})},419967:function(e,t,n){"use strict";n.d(t,{A:function(){return O}});var r=n(831085),i=n(514041),o=n(398046),s=n(907248),a=n(159903),l=n(621037),c=n(161959),u=n(903165),d=n(717226),h=n(730521),f=n(845969),p=n(651337),m=n(841628),g=n(194770),y=n(449614),v=n(813962),b=n(670695),_=n(637892),w=n(390766),x=n(926584),k=n(933050),C=n(415760),A=n(885268),D=n(644356),S=n(167773);let E={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,hideDetached:!0,clickOutsideEvents:["mousedown","touchstart"],zIndex:(0,a.I)("popover"),__staticSelector:"Popover",width:"max-content"},T=(0,c.V)((e,{radius:t,shadow:n})=>({dropdown:{"--popover-radius":void 0===t?void 0:(0,l.nJ)(t),"--popover-shadow":(0,l.dh)(n)}}));function O(e){let t=(0,f.Y)("Popover",E,e),{children:n,position:a,offset:l,onPositionChange:c,positionDependencies:_,opened:w,transitionProps:O,onExitTransitionEnd:M,onEnterTransitionEnd:N,width:P,middlewares:R,withArrow:I,arrowSize:F,arrowOffset:L,arrowRadius:j,arrowPosition:z,unstyled:$,classNames:B,styles:V,closeOnClickOutside:Y,withinPortal:q,portalProps:H,closeOnEscape:W,clickOutsideEvents:U,trapFocus:G,onClose:Z,onDismiss:J,onOpen:K,onChange:X,zIndex:Q,radius:ee,shadow:et,id:en,defaultOpened:er,__staticSelector:ei,withRoles:eo,disabled:es,returnFocus:ea,variant:el,keepMounted:ec,vars:eu,floatingStrategy:ed,withOverlay:eh,overlayProps:ef,hideDetached:ep,attributes:em,preventPositionChangeWhenVisible:eg,...ey}=t,ev=(0,d.I)({name:ei,props:t,classes:S.A,classNames:B,styles:V,unstyled:$,attributes:em,rootSelector:"dropdown",vars:eu,varsResolver:T}),{resolvedStyles:eb}=(0,u.Y)({classNames:B,styles:V,props:t}
3),[e_,ew]=(0,i.useState)(w??er??!1),ex=(0,i.useRef)(a),ek=(0,i.useRef)(null),[eC,eA]=(0,i.useState)(null),[eD,eS]=(0,i.useState)(null),{dir:eE}=(0,p.jH)(),eT=(0,h.bv)(),eO=(0,o.B)(en),eM=function(e){var t;let n,r,o=(0,h.bv)(),[s,a]=(0,A.Z)({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),l=(0,i.useRef)(s),c=(0,k.we)({strategy:e.strategy,placement:e.preventPositionChangeWhenVisible?e.positionRef.current:e.position,middleware:(t=()=>c,n=function(e){if(void 0===e)return{shift:!0,flip:!0};let t={...e};return void 0===e.shift&&(t.shift=!0),void 0===e.flip&&(t.flip=!0),t}(e.middlewares),r=[(0,x.cY)(e.offset),(0,x.jD)()],e.dropdownVisible&&"test"!==o&&e.preventPositionChangeWhenVisible&&(n.flip=!1),n.shift&&r.push((0,x.BN)("boolean"==typeof n.shift?{limiter:(0,x.ER)(),padding:5}:{limiter:(0,x.ER)(),padding:5,...n.shift})),n.flip&&r.push("boolean"==typeof n.flip?(0,x.UU)():(0,x.UU)(n.flip)),n.inline&&r.push("boolean"==typeof n.inline?(0,x.mG)():(0,x.mG)(n.inline)),r.push((0,x.UE)({element:e.arrowRef,padding:e.arrowOffset})),(n.size||"target"===e.width)&&r.push((0,x.Ej)({..."boolean"==typeof n.size?{}:n.size,apply({rects:r,availableWidth:i,availableHeight:o,...s}){let a=t(),l=a.refs.floating.current?.style??{};n.size&&("object"==typeof n.size&&n.size.apply?n.size.apply({rects:r,availableWidth:i,availableHeight:o,...s}):Object.assign(l,{maxWidth:`${i}px`,maxHeight:`${o}px`})),"target"===e.width&&Object.assign(l,{width:`${r.reference.width}px`})}})),r),whileElementsMounted:e.keepMounted?void 0:C.ll});return(0,i.useEffect)(()=>{if(c.refs.reference.current&&c.refs.floating.current&&s)return(0,C.ll)(c.refs.reference.current,c.refs.floating.current,c.update)},[s,c.update]),(0,D.C)(()=>{e.onPositionChange?.(c.placement),e.positionRef.current=c.placement},[c.placement,e.preventPositionChangeWhenVisible]),(0,D.C)(()=>{s!==l.current&&(s?e.onOpen?.():e.onClose?.()),l.current=s},[s,e.onClose,e.onOpen]),(0,D.C)(()=>{let t=-1;return s&&(t=window.setTimeout(()=>e.setDropdownVisible(!0),4)),()=>{window.clearTimeout(t)}},[s,e.position]),{floating:c,controlled:"boolean"==typeof e.opened,opened:s,onClose:()=>{s&&!e.disabled&&a(!1)},onToggle:()=>{e.disabled||a(!s)}}}({middlewares:R,width:P,position:(0,m.Q)(eE,a),offset:"number"==typeof l?l+(I?F/2:0):l,arrowRef:ek,arrowOffset:L,onPositionChange:c,positionDependencies:_,opened:w,defaultOpened:er,onChange:X,onOpen:K,onClose:Z,onDismiss:J,strategy:ed,dropdownVisible:e_,setDropdownVisible:ew,positionRef:ex,disabled:es,preventPositionChangeWhenVisible:eg,keepMounted:ec});(0,s.L)(()=>{Y&&(eM.onClose(),J?.())},U,[eC,eD]);let eN=(0,i.useCallback)(e=>{eA(e),eM.floating.refs.setReference(e)},[eM.floating.refs.setReference]),eP=(0,i.useCallback)(e=>{eS(e),eM.floating.refs.setFloating(e)},[eM.floating.refs.setFloating]),eR=(0,i.useCallback)(()=>{O?.onExited?.(),M?.(),ew(!1),ex.current=a},[O?.onExited,M]),eI=(0,i.useCallback)(()=>{O?.onEntered?.(),N?.()},[O?.onEntered,N]);return(0,r.jsxs)(b.w,{value:{returnFocus:ea,disabled:es,controlled:eM.controlled,reference:eN,floating:eP,x:eM.floating.x,y:eM.floating.y,arrowX:eM.floating?.middlewareData?.arrow?.x,arrowY:eM.floating?.middlewareData?.arrow?.y,opened:eM.opened,arrowRef:ek,transitionProps:{...O,onExited:eR,onEntered:eI},width:P,withArrow:I,arrowSize:F,arrowOffset:L,arrowRadius:j,arrowPosition:z,placement:eM.floating.placement,trapFocus:G,withinPortal:q,portalProps:H,zIndex:Q,radius:ee,shadow:et,closeOnEscape:W,onDismiss:J,onClose:eM.onClose,onToggle:eM.onToggle,getTargetId:()=>`${eO}-target`,getDropdownId:()=>`${eO}-dropdown`,withRoles:eo,targetProps:ey,__staticSelector:ei,classNames:B,styles:V,unstyled:$,variant:el,keepMounted:ec,getStyles:ev,resolvedStyles:eb,floatingStrategy:ed,referenceHidden:!!ep&&"test"!==eT&&eM.floating.middlewareData.hide?.referenceHidden},children:[n,eh&&(0,r.jsx)(v.e,{transition:"fade",mounted:eM.opened,duration:O?.duration||250,exitDuration:O?.exitDuration||250,children:e=>(0,r.jsx)(y.r,{withinPortal:q,children:(0,r.jsx)(g.h,{...ef,...ev("overlay",{className:ef?.className,style:[e,ef?.style]})})})})]})}
3O.Target=w.l,O.Dropdown=_.v,O.displayName="@mantine/core/Popover",O.extend=e=>e},167773:function(e,t,n){"use strict";var r={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};n.d(t,{A:function(){return r}})},637892:function(e,t,n){"use strict";n.d(t,{v:function(){return y}});var r=n(831085),i=n(491448),o=n(189102),s=n(455302);n(514041);var a=n(334709),l=n(845969),c=n(427758),u=n(784817),d=n(937018),h=n(884521),f=n(449614),p=n(813962),m=n(670695),g=n(167773);let y=(0,u.P9)((e,t)=>{let n=(0,l.Y)("PopoverDropdown",null,e),{className:u,style:g,vars:y,children:v,onKeyDownCapture:b,variant:_,classNames:w,styles:x,...k}=n,C=(0,m.C)(),A=(0,i.E)({opened:C.opened,shouldReturnFocus:C.returnFocus}),D=C.withRoles?{"aria-labelledby":C.getTargetId(),id:C.getDropdownId(),role:"dialog",tabIndex:-1}:{},S=(0,o.pc)(t,C.floating);return C.disabled?null:(0,r.jsx)(f.r,{...C.portalProps,withinPortal:C.withinPortal,children:(0,r.jsx)(p.e,{mounted:C.opened,...C.transitionProps,transition:C.transitionProps?.transition||"fade",duration:C.transitionProps?.duration??150,keepMounted:C.keepMounted,exitDuration:"number"==typeof C.transitionProps?.exitDuration?C.transitionProps.exitDuration:C.transitionProps?.duration,children:e=>(0,r.jsx)(h.s,{active:C.trapFocus&&C.opened,innerRef:S,children:(0,r.jsxs)(c.a,{...D,...k,variant:_,onKeyDownCapture:function(e,t={active:!0}){return"function"==typeof e&&t.active?n=>{"Escape"===n.key&&(e(n),t.onTrigger?.())}:t.onKeyDown||a.l}(()=>{C.onClose?.(),C.onDismiss?.()},{active:C.closeOnEscape,onTrigger:A,onKeyDown:b}),"data-position":C.placement,"data-fixed":"fixed"===C.floatingStrategy||void 0,...C.getStyles("dropdown",{className:u,props:n,classNames:w,styles:x,style:[{...e,zIndex:C.zIndex,top:C.y??0,left:C.x??0,width:"target"===C.width?void 0:(0,s.D)(C.width),...C.referenceHidden?{display:"none"}:null},C.resolvedStyles.dropdown,x?.dropdown,g]}),children:[v,(0,r.jsx)(d.i,{ref:C.arrowRef,arrowX:C.arrowX,arrowY:C.arrowY,visible:C.withArrow,position:C.placement,arrowSize:C.arrowSize,arrowRadius:C.arrowRadius,arrowOffset:C.arrowOffset,arrowPosition:C.arrowPosition,...C.getStyles("arrow",{props:n,classNames:w,styles:x})})]})})})})});y.classes=g.A,y.displayName="@mantine/core/PopoverDropdown"},390766:function(e,t,n){"use strict";var r=n(514041),i=n(354357),o=n(189102),s=n(316019);n(831085);var a=n(860889),l=n(845969),c=n(784817),u=n(670695);let d={refProp:"ref",popupType:"dialog"},h=(0,c.P9)((e,t)=>{let{children:n,refProp:c,popupType:h,...f}=(0,l.Y)("PopoverTarget",d,e);if(!(0,s.v)(n))throw Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");let p=(0,u.C)(),m=(0,o.pc)(p.reference,(0,a.x)(n),t),g=p.withRoles?{"aria-haspopup":h,"aria-expanded":p.opened,"aria-controls":p.getDropdownId(),id:p.getTargetId()}:{};return(0,r.cloneElement)(n,{...f,...g,...p.targetProps,className:(0,i.A)(p.targetProps.className,f.className,n.props.className),[c]:m,...!p.controlled?{onClick:()=>{p.onToggle(),n.props.onClick?.()}}:null})});h.displayName="@mantine/core/PopoverTarget",n.d(t,{},{l:h})},449614:function(e,t,n){"use strict";var r=n(831085);n(514041);var i=n(730521),o=n(784817),s=n(750118);let a=(0,o.P9)(({withinPortal:e=!0,children:t,...n},o)=>"test"!==(0,i.bv)()&&e?(0,r.jsx)(s.Z,{ref:o,...n,children:t}):(0,r.jsx)(r.Fragment,{children:t}));a.displayName="@mantine/core/OptionalPortal",n.d(t,{},{r:a})},750118:function(e,t,n){"use strict";var r=n(831085),i=n(514041),o=n(843144),s=n(875228),a=n(189102),l=n(845969),c=n(784817);function u(e){let t=document.createElement("div");return t.setAttribute("data-portal","true"),"string"==typeof e.className&&t.classList.add(...e.className.split(" ").filter(Boolean)),"object"==typeof e.style&&Object.assign(t.style,e.style),"string"==typeof e.id&&t.setAttribute("id",e.id),t}let d={reuseTargetNode:!0},h=(0,c.P9)((e,t)=>{let{children:n,target:c,reuseTargetNode:h,...f}=(0,l.Y)("Portal",d,e),[p,m]=(0,i.useState)(!1),g=(0,i.useRef)(null);return((0,s.o)(()=>(m(!0),g.current=function({target:e,reuseTargetNode:t,...n}){if(e)return"string"==typeof e?document.querySelector(e)||u(n):e;if(t){let e=document.querySelector("[data-mantine-shared-portal-node]");if(e)return e;let t=u(n);return t.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(t),t}return u(n)}({target:c,reuseTargetNode:h,...f}),(0,a.bl)(t,g.current),c||h||!g.current||document.body.appendChild(g.current),()=>{c||h||!g.current||document.body.removeChild(g.current)}),[c]),p&&g.current)?(0,o.createPortal)((0,r.jsx)(r.Fragment,{children:n}),g.current):null});h.displayName="@mantine/core/Portal",n.d(t,{},{Z:h})},541463:function(e,t,n){"use strict";n.d(t,{F:function(){return U}});var r=n(831085),i=n(514041),o=n(933050),s=n(455302),a=n(161959),l=n(845969),c=n(717226),u=n(427758),d=n(784817),h=n(751963);let[f,p]=(0,h.F)("ScrollArea.Root component was not found in tree");var m=n(210914),g=n(875228);function y(e,t){let n=(0,m.c)(t);(0,g.o)(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}let v=(0,i.forwardRef)((e,t)=>{let{style:n,...o}=e,s=p(),[a,l]=(0,i.useState)(0),[c,u]=(0,i.useState)(0),d=!!(a&&c);return y(s.scrollbarX,()=>{let e=s.scrollbarX?.offsetHeight||0;
3s.onCornerHeightChange(e),u(e)}),y(s.scrollbarY,()=>{let e=s.scrollbarY?.offsetWidth||0;s.onCornerWidthChange(e),l(e)}),d?(0,r.jsx)("div",{...o,ref:t,style:{...n,width:a,height:c}}):null}),b=(0,i.forwardRef)((e,t)=>{let n=p(),i=!!(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&i?(0,r.jsx)(v,{...e,ref:t}):null});var _=n(189102);let w={scrollHideDelay:1e3,type:"hover"},x=(0,i.forwardRef)((e,t)=>{let{type:n,scrollHideDelay:o,scrollbars:s,getStyles:a,...c}=(0,l.Y)("ScrollAreaRoot",w,e),[d,h]=(0,i.useState)(null),[p,m]=(0,i.useState)(null),[g,y]=(0,i.useState)(null),[v,b]=(0,i.useState)(null),[x,k]=(0,i.useState)(null),[C,A]=(0,i.useState)(0),[D,S]=(0,i.useState)(0),[E,T]=(0,i.useState)(!1),[O,M]=(0,i.useState)(!1),N=(0,_.pc)(t,e=>h(e));return(0,r.jsx)(f,{value:{type:n,scrollHideDelay:o,scrollArea:d,viewport:p,onViewportChange:m,content:g,onContentChange:y,scrollbarX:v,onScrollbarXChange:b,scrollbarXEnabled:E,onScrollbarXEnabledChange:T,scrollbarY:x,onScrollbarYChange:k,scrollbarYEnabled:O,onScrollbarYEnabledChange:M,onCornerWidthChange:A,onCornerHeightChange:S,getStyles:a},children:(0,r.jsx)(u.a,{...c,ref:N,__vars:{"--sa-corner-width":"xy"!==s?"0px":`${C}px`,"--sa-corner-height":"xy"!==s?"0px":`${D}px`}})})});x.displayName="@mantine/core/ScrollAreaRoot";var k=n(664780),C=n(651337);function A(e,t){let n=e/t;return Number.isNaN(n)?0:n}function D(e){let t=A(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-n)*t,18)}function S(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function E(e,t,n="ltr"){let r=D(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,s=t.content-t.viewport,a=function(e,[t,n]){return Math.min(n,Math.max(t,e))}(e,"ltr"===n?[0,s]:[-1*s,0]);return S([0,s],[0,o-r])(a)}var T=n(698215);function O(e,t,{checkForDefaultPrevented:n=!0}={}){return r=>{e?.(r),!1!==n&&r.defaultPrevented||t?.(r)}}let[M,N]=(0,h.F)("ScrollAreaScrollbar was not found in tree"),P=(0,i.forwardRef)((e,t)=>{let{sizes:n,hasThumb:o,onThumbChange:s,onThumbPointerUp:a,onThumbPointerDown:l,onThumbPositionChange:c,onDragScroll:u,onWheelScroll:d,onResize:h,...f}=e,g=p(),[v,b]=(0,i.useState)(null),w=(0,_.pc)(t,e=>b(e)),x=(0,i.useRef)(null),C=(0,i.useRef)(""),{viewport:A}=g,D=n.content-n.viewport,S=(0,m.c)(d),E=(0,m.c)(c),T=(0,k.Y)(h,10),N=e=>{x.current&&u({x:e.clientX-x.current.left,y:e.clientY-x.current.top})};return(0,i.useEffect)(()=>{let e=e=>{let t=e.target;v?.contains(t)&&S(e,D)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[A,v,D,S]),(0,i.useEffect)(E,[n,E]),y(v,T),y(g.content,T),(0,r.jsx)(M,{value:{scrollbar:v,hasThumb:o,onThumbChange:(0,m.c)(s),onThumbPointerUp:(0,m.c)(a),onThumbPositionChange:E,onThumbPointerDown:(0,m.c)(l)},children:(0,r.jsx)("div",{...f,ref:w,"data-mantine-scrollbar":!0,style:{position:"absolute",...f.style},onPointerDown:O(e.onPointerDown,e=>{e.preventDefault(),0===e.button&&(e.target.setPointerCapture(e.pointerId),x.current=v.getBoundingClientRect(),C.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",N(e))}),onPointerMove:O(e.onPointerMove,N),onPointerUp:O(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(e.preventDefault(),t.releasePointerCapture(e.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=C.current,x.current=null}})})}),R=(0,i.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:o,style:s,...a}=e,l=p(),[c,u]=(0,i.useState)(),d=(0,i.useRef)(null),h=(0,_.pc)(t,d,l.onScrollbarXChange);return(0,i.useEffect)(()=>{d.current&&u(getComputedStyle(d.current))},[d]),(0,r.jsx)(P,{"data-orientation":"horizontal",...a,ref:h,sizes:n,style:{...s,"--sa-thumb-width":`${D(n)}px`},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(l.viewport){let r=l.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),r>0&&r<n&&t.preventDefault()}},onResize:()=>{d.current&&l.viewport&&c&&o({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:d.current.clientWidth,paddingStart:(0,T.R)(c.paddingLeft),paddingEnd:(0,T.R)(c.paddingRight)}})}})});R.displayName="@mantine/core/ScrollAreaScrollbarX";let I=(0,i.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:o,style:s,...a}=e,l=p(),[c,u]=(0,i.useState)(),d=(0,i.useRef)(null),h=(0,_.pc)(t,d,l.onScrollbarYChange);return(0,i.useEffect)(()=>{d.current&&u(window.getComputedStyle(d.current))},[]),(0,r.jsx)(P,{...a,"data-orientation":"vertical",ref:h,sizes:n,style:{"--sa-thumb-height":`${D(n)}px`,...s},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>
3e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(l.viewport){let r=l.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),r>0&&r<n&&t.preventDefault()}},onResize:()=>{d.current&&l.viewport&&c&&o({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:d.current.clientHeight,paddingStart:(0,T.R)(c.paddingTop),paddingEnd:(0,T.R)(c.paddingBottom)}})}})});I.displayName="@mantine/core/ScrollAreaScrollbarY";let F=(0,i.forwardRef)((e,t)=>{let{orientation:n="vertical",...o}=e,{dir:s}=(0,C.jH)(),a=p(),l=(0,i.useRef)(null),c=(0,i.useRef)(0),[u,d]=(0,i.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),h=A(u.viewport,u.content),f={...o,sizes:u,onSizesChange:d,hasThumb:!!(h>0&&h<1),onThumbChange:e=>{l.current=e},onThumbPointerUp:()=>{c.current=0},onThumbPointerDown:e=>{c.current=e}},m=(e,t)=>(function(e,t,n,r="ltr"){let i=D(n),o=t||i/2,s=n.scrollbar.paddingStart+o,a=n.scrollbar.size-n.scrollbar.paddingEnd-(i-o),l=n.content-n.viewport;return S([s,a],"ltr"===r?[0,l]:[-1*l,0])(e)})(e,c.current,u,t);return"horizontal"===n?(0,r.jsx)(R,{...f,ref:t,onThumbPositionChange:()=>{if(a.viewport&&l.current){let e=E(a.viewport.scrollLeft,u,s);l.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollLeft=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollLeft=m(e,s))}}):"vertical"===n?(0,r.jsx)(I,{...f,ref:t,onThumbPositionChange:()=>{if(a.viewport&&l.current){let e=E(a.viewport.scrollTop,u);0===u.scrollbar.size?l.current.style.setProperty("--thumb-opacity","0"):l.current.style.setProperty("--thumb-opacity","1"),l.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollTop=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollTop=m(e))}}):null});F.displayName="@mantine/core/ScrollAreaScrollbarVisible";let L=(0,i.forwardRef)((e,t)=>{let n=p(),{forceMount:o,...s}=e,[a,l]=(0,i.useState)(!1),c="horizontal"===e.orientation,u=(0,k.Y)(()=>{if(n.viewport){let e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;l(c?e:t)}},10);return(y(n.viewport,u),y(n.content,u),o||a)?(0,r.jsx)(F,{"data-state":a?"visible":"hidden",...s,ref:t}):null});L.displayName="@mantine/core/ScrollAreaScrollbarAuto";let j=(0,i.forwardRef)((e,t)=>{let{forceMount:n,...o}=e,s=p(),[a,l]=(0,i.useState)(!1);return((0,i.useEffect)(()=>{let{scrollArea:e}=s,t=0;if(e){let n=()=>{window.clearTimeout(t),l(!0)},r=()=>{t=window.setTimeout(()=>l(!1),s.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}},[s.scrollArea,s.scrollHideDelay]),n||a)?(0,r.jsx)(L,{"data-state":a?"visible":"hidden",...o,ref:t}):null});j.displayName="@mantine/core/ScrollAreaScrollbarHover";let z=(0,i.forwardRef)((e,t)=>{let{forceMount:n,...o}=e,s=p(),a="horizontal"===e.orientation,[l,c]=(0,i.useState)("hidden"),u=(0,k.Y)(()=>c("idle"),100);return((0,i.useEffect)(()=>{if("idle"===l){let e=window.setTimeout(()=>c("hidden"),s.scrollHideDelay);return()=>window.clearTimeout(e)}},[l,s.scrollHideDelay]),(0,i.useEffect)(()=>{let{viewport:e}=s,t=a?"scrollLeft":"scrollTop";if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(c("scrolling"),u()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[s.viewport,a,u]),n||"hidden"!==l)?(0,r.jsx)(F,{"data-state":"hidden"===l?"hidden":"visible",...o,ref:t,onPointerEnter:O(e.onPointerEnter,()=>c("interacting")),onPointerLeave:O(e.onPointerLeave,()=>c("idle"))}):null}),$=(0,i.forwardRef)((e,t)=>{let{forceMount:n,...o}=e,s=p(),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:l}=s,c="horizontal"===e.orientation;return(0,i.useEffect)(()=>(c?a(!0):l(!0),()=>{c?a(!1):l(!1)}),[c,a,l]),"hover"===s.type?(0,r.jsx)(j,{...o,ref:t,forceMount:n}):"scroll"===s.type?(0,r.jsx)(z,{...o,ref:t,forceMount:n}):"auto"===s.type?(0,r.jsx)(L,{...o,ref:t,forceMount:n}):"always"===s.type?(0,r.jsx)(F,{...o,ref:t}):null});$.displayName="@mantine/core/ScrollAreaScrollbar";let B=(0,i.forwardRef)((e,t)=>{let{style:n,...o}=e,s=p(),a=N(),{onThumbPositionChange:l}=a,c=(0,_.pc)(t,e=>a.onThumbChange(e)),u=(0,i.useRef)(void 0),d=(0,k.Y)(()=>{u.current&&(u.current(),u.current=void 0)},100);return(0,i.useEffect)(()=>{let{viewport:e}=s;if(e){let t=()=>{d(),u.current||(u.current=function(e,t=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},r=0;return!function i(){let o={left:e.scrollLeft,top:e.scrollTop},s=n.left!==o.left,a=n.top!==o.top;(s||a)&&t(),n=o,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)}(e,l),l())};return l(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[s.viewport,d,l]),(0,r.jsx)("div",{"data-state":a.hasThumb?"visible":"hidden",...o,ref:c,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...n},onPointerDownCapture:O(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;a.onThumbPointerDown({x:n,y:r})}),onPointerUp:O(e.onPointerUp,a.onThumbPointerUp)})});B.displayName="@mantine/core/ScrollAreaThumb";let V=(0,i.forwardRef)((e,t)=>{let{forceMount:n,...i}=e,o=N();return n||o.hasThumb?(0,r.jsx)(B,{ref:t,...i}):null});V.displayName="@mantine/core/ScrollAreaThumb";let Y=(0,i.forwardRef)(({children:e,style:t,...n},i)=>{let o=p(),s=(0,_.pc)(i,o.onViewportChange);return(0,r.jsx)(u.a,{...n,ref:s,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...t},children:(0,r.jsx)("div",{...o.getStyles("content"),ref:o.onContentChange,children:e})})});Y.displayName="@mantine/core/ScrollAreaViewport";var q={root:"m_d57069b5",content:"m_b1336c6",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};let H={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},W=(0,a.V)((e,{scrollbarSize:t,overscrollBehavior:n})=>({root:{"--scrollarea-scrollbar-size":(0,s.D)(t),"--scrollarea-over-scroll-behavior":n}})),U=(0,d.P9)((e,t)=>{let n=(0,l.Y)("ScrollArea",H,e),{classNames:s,className:a,style:u,styles:d,unstyled:h,scrollbarSize:f,vars:p,type:m,scrollHideDelay:g,viewportProps:y,viewportRef:v,onScrollPositionChange:_,children:w,offsetScrollbars:k,scrollbars:C,onBottomReached:A,onTopReached:D,overscrollBehavior:S,attributes:E,...T}=n,[O,M]=(0,i.useState)(!1),[N,P]=(0,i.useState)(!1),[R,I]=(0,i.useState)(!1),F=(0,c.I)({name:"ScrollArea",props:n,classes:q,className:a,style:u,classNames:s,styles:d,unstyled:h,attributes:E,vars:p,varsResolver:W}),L=(0,i.useRef)(null),j=(0,o.SV)([v,L]);return(0,i.useEffect)(()=>
3{if(!L.current||"present"!==k)return;let e=L.current,t=new ResizeObserver(()=>{let{scrollHeight:t,clientHeight:n,scrollWidth:r,clientWidth:i}=e;P(t>n),I(r>i)});return t.observe(e),()=>t.disconnect()},[L,k]),(0,r.jsxs)(x,{getStyles:F,type:"never"===m?"always":m,scrollHideDelay:g,ref:t,scrollbars:C,...F("root"),...T,children:[(0,r.jsx)(Y,{...y,...F("viewport",{style:y?.style}),ref:j,"data-offset-scrollbars":!0===k?"xy":k||void 0,"data-scrollbars":C||void 0,"data-horizontal-hidden":"present"!==k||R?void 0:"true","data-vertical-hidden":"present"!==k||N?void 0:"true",onScroll:e=>{y?.onScroll?.(e),_?.({x:e.currentTarget.scrollLeft,y:e.currentTarget.scrollTop});let{scrollTop:t,scrollHeight:n,clientHeight:r}=e.currentTarget;t-(n-r)>=-.6&&A?.(),0===t&&D?.()},children:w}),("xy"===C||"x"===C)&&(0,r.jsx)($,{...F("scrollbar"),orientation:"horizontal","data-hidden":"never"===m||"present"===k&&!R||void 0,forceMount:!0,onMouseEnter:()=>M(!0),onMouseLeave:()=>M(!1),children:(0,r.jsx)(V,{...F("thumb")})}),("xy"===C||"y"===C)&&(0,r.jsx)($,{...F("scrollbar"),orientation:"vertical","data-hidden":"never"===m||"present"===k&&!N||void 0,forceMount:!0,onMouseEnter:()=>M(!0),onMouseLeave:()=>M(!1),children:(0,r.jsx)(V,{...F("thumb")})}),(0,r.jsx)(b,{...F("corner"),"data-hovered":O||void 0,"data-hidden":"never"===m||void 0})]})});U.displayName="@mantine/core/ScrollArea";let G=(0,d.P9)((e,t)=>{let{children:n,classNames:s,styles:a,scrollbarSize:c,scrollHideDelay:d,type:h,dir:f,offsetScrollbars:p,viewportRef:m,onScrollPositionChange:g,unstyled:y,variant:v,viewportProps:b,scrollbars:_,style:w,vars:x,onBottomReached:k,onTopReached:C,onOverflowChange:A,...D}=(0,l.Y)("ScrollAreaAutosize",H,e),S=(0,i.useRef)(null),E=(0,o.SV)([m,S]),[T,O]=(0,i.useState)(!1),M=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{if(!A)return;let e=S.current;if(!e)return;let t=()=>{let t=e.scrollHeight>e.clientHeight;t!==T&&(M.current?A?.(t):(M.current=!0,t&&A?.(!0)),O(t))};t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[A,T]),(0,r.jsx)(u.a,{...D,ref:t,style:[{display:"flex",overflow:"hidden"},w],children:(0,r.jsx)(u.a,{style:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden",..."y"===_&&{minWidth:0},..."x"===_&&{minHeight:0},..."xy"===_&&{minWidth:0,minHeight:0},...!1===_&&{minWidth:0,minHeight:0}},children:(0,r.jsx)(U,{classNames:s,styles:a,scrollHideDelay:d,scrollbarSize:c,type:h,dir:f,offsetScrollbars:p,viewportRef:E,onScrollPositionChange:g,unstyled:y,variant:v,viewportProps:b,vars:x,scrollbars:_,onBottomReached:k,onTopReached:C,"data-autosize":"true",children:n})})})});U.classes=q,G.displayName="@mantine/core/ScrollAreaAutosize",G.classes=q,U.Autosize=G},698215:function(e,t,n){"use strict";function r(e){return e?parseInt(e,10):0}n.d(t,{R:function(){return r}})},291171:function(e,t,n){"use strict";n.d(t,{I:function(){return x}});var r=n(831085),i=n(514041),o=n(330330),s=n(885268),a=n(398046),l=n(189102),c=n(621037),u=n(161959),d=n(884117),h=n(877657),f=n(847495),p=n(845969),m=n(717226),g=n(427758),y=n(784817),v=n(92719),b={root:"m_cf365364",indicator:"m_9e182ccd",label:"m_1738fcb2",input:"m_1714d588",control:"m_69686b9b",innerLabel:"m_78882f40"};let _={withItemsBorders:!0},w=(0,u.V)((e,{radius:t,color:n,transitionDuration:r,size:i,transitionTimingFunction:o})=>({root:{"--sc-radius":void 0===t?void 0:(0,c.nJ)(t),"--sc-color":n?(0,d.r)(n,e):void 0,"--sc-shadow":n?void 0:"var(--mantine-shadow-xs)","--sc-transition-duration":void 0===r?void 0:`${r}ms`,"--sc-transition-timing-function":o,"--sc-padding":(0,c.YC)(i,"sc-padding"),"--sc-font-size":(0,c.ny)(i)}})),x=(0,y.P9)((e,t)=>{var n,c;let u,d,y=(0,p.Y)("SegmentedControl",_,e),{classNames:x,className:k,style:C,styles:A,unstyled:D,vars:S,data:E,value:T,defaultValue:O,onChange:M,size:N,name:P,disabled:R,readOnly:I,fullWidth:F,orientation:L,radius:j,color:z,transitionDuration:$,transitionTimingFunction:B,variant:V,autoContrast:Y,withItemsBorders:q,mod:H,attributes:W,...U}=y,G=(0,m.I)({name:"SegmentedControl",props:y,classes:b,className:k,style:C,classNames:x,styles:A,unstyled:D,attributes:W,vars:S,varsResolver:w}),Z=(0,f.xd)(),J=E.map(e=>"string"==typeof e?{label:e,value:e}:e),K=function(){let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>t(!0),[]),e}(),[X,Q]=(0,i.useState)((0,o.z)()),[ee,et]=(0,i.useState)(null),[en,er]=(0,i.useState)({}),[ei,eo]=(0,s.Z)({value:T,defaultValue:O,finalValue:Array.isArray(E)?J.find(e=>!e.disabled)?.value??E[0]?.value??null:null,onChange:M}),es=(0,a.B)(P),ea=J.map(e=>(0,i.createElement)(g.a,{...G("control"),mod:{active:ei===e.value,orientation:L},key:e.value},(0,i.createElement)("input",{...G("input"),disabled:R||e.disabled,type:"radio",name:es,value:e.value,id:`${es}-${e.value}`,checked:ei===e.value,onChange:()=>!I&&eo(e.value),"data-focus-ring":Z.focusRing,key:`${e.value}-input`}),(0,i.createElement)(g.a,{component:"label",...G("label"),mod:{active:ei===e.value&&!(R||e.disabled),disabled:R||e.disabled,"read-only":I},htmlFor:`${es}-${e.value}`,ref:t=>{en[e.value]=t,er(en)},__vars:{"--sc-label-color":void 0!==z?(0,h.w)({color:z,theme:Z,autoContrast:Y}):void 0},key:`${e.value}-label`},(0,r.jsx)("span",{...G("innerLabel"),children:e.label})))),el=(0,l.pc)(t,e=>et(e));return(n=()=>{Q((0,o.z)())},c=[E.length],(0,i.useEffect)(n,(u=(0,i.useRef)([]),d=(0,i.useRef)(0),!function(e,t){if(!e||!t)return!1;if(e===t)return!0;
3if(e.length!==t.length)return!1;for(let n=0;n<e.length;n+=1)if(!function(e,t){if(e===t||Number.isNaN(e)&&Number.isNaN(t))return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=Object.keys(e),{length:r}=n;if(r!==Object.keys(t).length)return!1;for(let i=0;i<r;i+=1){let r=n[i];if(!(r in t)||e[r]!==t[r]&&!(Number.isNaN(e[r])&&Number.isNaN(t[r])))return!1}return!0}(e[n],t[n]))return!1;return!0}(u.current,c)&&(u.current=c,d.current+=1),[d.current])),0===E.length)?null:(0,r.jsxs)(g.a,{...G("root"),variant:V,size:N,ref:el,mod:[{"full-width":F,orientation:L,initialized:K,"with-items-borders":q},H],...U,role:"radiogroup","data-disabled":R,children:["string"==typeof ei&&(0,r.jsx)(v.g,{target:en[ei],parent:ee,component:"span",transitionDuration:"var(--sc-transition-duration)",...G("indicator")},X),ea]})});x.classes=b,x.displayName="@mantine/core/SegmentedControl"},148291:function(e,t,n){"use strict";n.d(t,{l:function(){return y}});var r=n(831085),i=n(514041),o=n(398046),s=n(885268),a=n(903165),l=n(845969),c=n(784817),u=n(598098),d=n(403876),h=n(376666),f=n(175881),p=n(393919),m=n(438872);let g={withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left"},y=(0,c.P9)((e,t)=>{let n,c=(0,l.Y)("Select",g,e),{classNames:y,styles:v,unstyled:b,vars:_,dropdownOpened:w,defaultDropdownOpened:x,onDropdownClose:k,onDropdownOpen:C,onFocus:A,onBlur:D,onClick:S,onChange:E,data:T,value:O,defaultValue:M,selectFirstOptionOnChange:N,onOptionSubmit:P,comboboxProps:R,readOnly:I,disabled:F,filter:L,limit:j,withScrollArea:z,maxDropdownHeight:$,size:B,searchable:V,rightSection:Y,checkIconPosition:q,withCheckIcon:H,nothingFoundMessage:W,name:U,form:G,searchValue:Z,defaultSearchValue:J,onSearchChange:K,allowDeselect:X,error:Q,rightSectionPointerEvents:ee,id:et,clearable:en,clearButtonProps:er,hiddenInputProps:ei,renderOption:eo,onClear:es,autoComplete:ea,scrollAreaProps:el,__defaultRightSection:ec,__clearSection:eu,__clearable:ed,chevronColor:eh,autoSelectOnBlur:ef,attributes:ep,...em}=c,eg=(0,i.useMemo)(()=>(0,u.d)(T),[T]),ey=(0,i.useRef)({}),ev=(0,i.useMemo)(()=>(0,d.D)(eg),[eg]),eb=(0,o.B)(et),[e_,ew,ex]=(0,s.Z)({value:O,defaultValue:M,finalValue:null,onChange:E}),ek="string"==typeof e_?e_ in ev?ev[e_]:ey.current[e_]:void 0,eC=(n=(0,i.useRef)(void 0),(0,i.useEffect)(()=>{n.current=ek},[ek]),n.current),[eA,eD,eS]=(0,s.Z)({value:Z,defaultValue:J,finalValue:ek?ek.label:"",onChange:K}),eE=(0,p.B)({opened:w,defaultOpened:x,onDropdownOpen:()=>{C?.(),eE.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{k?.(),setTimeout(eE.resetSelectedOption,0)}}),eT=e=>{eD(e),eE.resetSelectedOption()},{resolvedClassNames:eO,resolvedStyles:eM}=(0,a.Y)({props:c,styles:v,classNames:y});(0,i.useEffect)(()=>{N&&eE.selectFirstOption()},[N,eA]),(0,i.useEffect)(()=>{null===O&&eT(""),"string"==typeof O&&ek&&(eC?.value!==ek.value||eC?.label!==ek.label)&&eT(ek.label)},[O,ek]),(0,i.useEffect)(()=>{ex||eS||eT("string"==typeof e_?e_ in ev?ev[e_]?.label:ey.current[e_]?.label||"":"")},[ev,e_]),(0,i.useEffect)(()=>{e_&&e_ in ev&&(ey.current[e_]=ev[e_])},[ev,e_]);let eN=(0,r.jsx)(h.G.ClearButton,{...er,onClear:()=>{ew(null,null),eT(""),es?.()}}),eP=en&&!!e_&&!F&&!I;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(h.G,{store:eE,__staticSelector:"Select",classNames:eO,styles:eM,unstyled:b,readOnly:I,size:B,attributes:ep,keepMounted:ef,onOptionSubmit:e=>{P?.(e);let t=X&&ev[e].value===e_?null:ev[e],n=t?t.value:null;n!==e_&&ew(n,t),ex||eT("string"==typeof n&&t?.label||""),eE.closeDropdown()},...R,children:[(0,r.jsx)(h.G.Target,{targetType:V?"input":"button",autoComplete:ea,children:(0,r.jsx)(m.O,{id:eb,ref:t,__defaultRightSection:(0,r.jsx)(h.G.Chevron,{size:B,error:Q,unstyled:b,color:eh}),__clearSection:eN,__clearable:eP,rightSection:Y,rightSectionPointerEvents:ee||"none",...em,size:B,__staticSelector:"Select",disabled:F,readOnly:I||!V,value:eA,onChange:e=>{eT(e.currentTarget.value),eE.openDropdown(),N&&eE.selectFirstOption()},onFocus:e=>{V&&eE.openDropdown(),A?.(e)},onBlur:e=>{ef&&eE.clickSelectedOption(),V&&eE.closeDropdown();let t="string"==typeof e_&&(e_ in ev?ev[e_]:ey.current[e_]);eT(t&&t.label||""),D?.(e)},onClick:e=>{V?eE.openDropdown():eE.toggleDropdown(),S?.(e)},classNames:eO,styles:eM,unstyled:b,pointer:!V,error:Q,attributes:ep})}),(0,r.jsx)(f.i,{data:eg,hidden:I||F,filter:L,search:eA,limit:j,hiddenWhenEmpty:!W,withScrollArea:z,maxDropdownHeight:$,filterOptions:!!V&&ek?.label!==eA,value:e_,checkIconPosition:q,withCheckIcon:H,nothingFoundMessage:W,unstyled:b,labelId:em.label?`${eb}-label`:void 0,"aria-label":em.label?void 0:em["aria-label"],renderOption:eo,scrollAreaProps:el})]}),(0,r.jsx)(h.G.HiddenInput,{value:e_,name:U,form:G,disabled:F,...ei})]})});y.classes={...m.O.classes,...h.G.classes},y.displayName="@mantine/core/Select"},648244:function(e,t,n){"use strict";n.d(t,{r:function(){return x}});var r=n(831085);n(514041);var i=n(845969),o=n(717226),s=n(744135),a=n(427758),l=n(784817),c=n(668809),u=n(28658),d=n(19239),h=n(621037),f=n(356159),p=n(61673),m=n(847495),g=n(451268);function y({spacing:e,verticalSpacing:t,cols:n,selector:i}){let o=(0,m.xd)(),s=void 0===t?e:t,a=(0,d.J)({"--sg-spacing-x":(0,h.GY)((0,p.D)(e)),"--sg-spacing-y":(0,h.GY)((0,p.D)(s)),"--sg-cols":(0,p.D)(n)?.toString()}),l=(0,c.H)(o.breakpoints).reduce((t,r)=>(t[r]||(t[r]={}),"object"==typeof e&&void 0!==e[r]&&(t[r]["--sg-spacing-x"]=(0,h.GY)(e[r])),"object"==typeof s&&void 0!==s[r]&&(t[r]["--sg-spacing-y"]=(0,h.GY)(s[r])),"object"==typeof n&&void 0!==n[r]&&(t[r]["--sg-cols"]=n[r]),t),{}),u=(0,f.q)((0,c.H)(l),o.breakpoints).filter(e=>(0,c.H)(l[e.value]).length>0).map(e=>({query:`(min-width: ${o.breakpoints[e.value]})`,styles:l[e.value]}));return(0,r.jsx)(g.K,{styles:a,media:u,selector:i})}function v(e){return"object"==typeof e&&null!==e?(0,c.H)(e):[]}function b({spacing:e,verticalSpacing:t,cols:n,selector:i}){let o=void 0===t?e:t,s=(0,d.J)({"--sg-spacing-x":(0,h.GY)((0,p.D)(e)),"--sg-spacing-y":(0,h.GY)((0,p.D)(o)),"--sg-cols":(0,p.D)(n)?.toString()}),a=function({spacing:e,verticalSpacing:t,cols:n}){return Array.from(new Set([...v(e),...v(t),...v(n)])).sort((e,t)=>
3(0,u.px)(e)-(0,u.px)(t))}({spacing:e,verticalSpacing:t,cols:n}),l=a.reduce((t,r)=>(t[r]||(t[r]={}),"object"==typeof e&&void 0!==e[r]&&(t[r]["--sg-spacing-x"]=(0,h.GY)(e[r])),"object"==typeof o&&void 0!==o[r]&&(t[r]["--sg-spacing-y"]=(0,h.GY)(o[r])),"object"==typeof n&&void 0!==n[r]&&(t[r]["--sg-cols"]=n[r]),t),{}),c=a.map(e=>({query:`simple-grid (min-width: ${e})`,styles:l[e]}));return(0,r.jsx)(g.K,{styles:s,container:c,selector:i})}var _={container:"m_925c2d2c",root:"m_2415a157"};let w={cols:1,spacing:"md",type:"media"},x=(0,l.P9)((e,t)=>{let n=(0,i.Y)("SimpleGrid",w,e),{classNames:l,className:c,style:u,styles:d,unstyled:h,vars:f,cols:p,verticalSpacing:m,spacing:g,type:v,attributes:x,...k}=n,C=(0,o.I)({name:"SimpleGrid",classes:_,props:n,className:c,style:u,classNames:l,styles:d,unstyled:h,attributes:x,vars:f}),A=(0,s.C)();return"container"===v?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b,{...n,selector:`.${A}`}),(0,r.jsx)("div",{...C("container"),children:(0,r.jsx)(a.a,{ref:t,...C("root",{className:A}),...k})})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(y,{...n,selector:`.${A}`}),(0,r.jsx)(a.a,{ref:t,...C("root",{className:A}),...k})]})});x.classes=_,x.displayName="@mantine/core/SimpleGrid"},214072:function(e,t,n){"use strict";n.d(t,{B:function(){return f}});var r=n(831085);n(514041);var i=n(621037),o=n(161959),s=n(845969),a=n(717226),l=n(427758),c=n(784817),u={root:"m_6d731127"};let d={gap:"md",align:"stretch",justify:"flex-start"},h=(0,o.V)((e,{gap:t,align:n,justify:r})=>({root:{"--stack-gap":(0,i.GY)(t),"--stack-align":n,"--stack-justify":r}})),f=(0,c.P9)((e,t)=>{let n=(0,s.Y)("Stack",d,e),{classNames:i,className:o,style:c,styles:f,unstyled:p,vars:m,align:g,justify:y,gap:v,variant:b,attributes:_,...w}=n,x=(0,a.I)({name:"Stack",props:n,classes:u,className:o,style:c,classNames:i,styles:f,unstyled:p,attributes:_,vars:m,varsResolver:h});return(0,r.jsx)(l.a,{ref:t,...x("root"),variant:b,...w})});f.classes=u,f.displayName="@mantine/core/Stack"},488467:function(e,t,n){"use strict";n.d(t,{d:function(){return C}});var r=n(831085),i=n(398046),o=n(885268),s=n(514041),a=n(621037),l=n(161959),c=n(884117),u=n(845969),d=n(717226),h=n(372944),f=n(427758),p=n(784817),m=n(427122);let g=(0,s.createContext)(null),y=g.Provider;var v=n(831199),b=n(760978);let _=(0,p.P9)((e,t)=>{let{value:n,defaultValue:i,onChange:s,size:a,wrapperProps:l,children:c,readOnly:d,...h}=(0,u.Y)("SwitchGroup",null,e),[f,p]=(0,o.Z)({value:n,defaultValue:i,finalValue:[],onChange:s});return(0,r.jsx)(y,{value:{value:f,onChange:e=>{let t=e.currentTarget.value;d||p(f.includes(t)?f.filter(e=>e!==t):[...f,t])},size:a},children:(0,r.jsx)(b.p.Wrapper,{size:a,ref:t,...l,...h,labelElement:"div",__staticSelector:"SwitchGroup",children:(0,r.jsx)(v.F,{role:"group",children:c})})})});_.classes=b.p.Wrapper.classes,_.displayName="@mantine/core/SwitchGroup";var w={root:"m_5f93f3bb",input:"m_926b4011",track:"m_9307d992",thumb:"m_93039a1d",trackLabel:"m_8277e082"};let x={labelPosition:"right",withThumbIndicator:!0},k=(0,l.V)((e,{radius:t,color:n,size:r})=>({root:{"--switch-radius":void 0===t?void 0:(0,a.nJ)(t),"--switch-height":(0,a.YC)(r,"switch-height"),"--switch-width":(0,a.YC)(r,"switch-width"),"--switch-thumb-size":(0,a.YC)(r,"switch-thumb-size"),"--switch-label-font-size":(0,a.YC)(r,"switch-label-font-size"),"--switch-track-label-padding":(0,a.YC)(r,"switch-track-label-padding"),"--switch-color":n?(0,c.r)(n,e):void 0}})),C=(0,p.P9)((e,t)=>{let n=(0,u.Y)("Switch",x,e),{classNames:a,className:l,style:c,styles:p,unstyled:y,vars:v,color:b,label:_,offLabel:C,onLabel:A,id:D,size:S,radius:E,wrapperProps:T,thumbIcon:O,checked:M,defaultChecked:N,onChange:P,labelPosition:R,description:I,error:F,disabled:L,variant:j,rootRef:z,mod:$,withThumbIndicator:B,attributes:V,...Y}=n,q=(0,s.useContext)(g),H=S||q?.size,W=(0,d.I)({name:"Switch",props:n,classes:w,className:l,style:c,classNames:a,styles:p,unstyled:y,attributes:V,vars:v,varsResolver:k}),{styleProps:U,rest:G}=(0,h.j)(Y),Z=(0,i.B)(D),J=q?{checked:q.value.includes(G.value),onChange:q.onChange}:{},[K,X]=(0,o.Z)({value:J.checked??M,defaultValue:N,finalValue:!1});return(0,r.jsxs)(m.I,{...W("root"),__staticSelector:"Switch",__stylesApiProps:n,id:Z,size:H,labelPosition:R,label:_,description:I,error:F,disabled:L,bodyElement:"label",labelElement:"span",classNames:a,styles:p,unstyled:y,"data-checked":J.checked||M||void 0,variant:j,ref:z,mod:$,...U,...T,children:[(0,r.jsx)("input",{...G,disabled:L,checked:K,"data-checked":J.checked||M||void 0,onChange:e=>{q?J.onChange?.(e):P?.(e),X(e.currentTarget.checked)},id:Z,ref:t,type:"checkbox",role:"switch",...W("input")}),(0,r.jsxs)(f.a,{"aria-hidden":"true",component:"span",mod:{error:F,"label-position":R,"without-labels":!A&&!C}
3,...W("track"),children:[(0,r.jsx)(f.a,{component:"span",mod:{"reduce-motion":!0,"with-thumb-indicator":B&&!O},...W("thumb"),children:O}),(0,r.jsx)("span",{...W("trackLabel"),children:K?A:C})]})]})});C.classes={...w,...m.M},C.displayName="@mantine/core/Switch",C.Group=_},718972:function(e,t,n){"use strict";n.d(t,{u:function(){return C}});var r=n(831085),i=n(514041),o=n(398046),s=n(189102),a=n(885268),l=n(903165),c=n(717226),u=n(845969),d=n(372944),h=n(784817),f=n(598098),p=n(403876),m=n(376666),g=n(175881),y=n(393919),v=n(438872),b=n(153036),_=n(596131),w=n(82090);function x({splitChars:e,allowDuplicates:t,maxTags:n,value:r,currentTags:i}){let o=e?r.split(RegExp(`[${e.join("")}]`)).map(e=>e.trim()).filter(e=>""!==e):[r],s=t?[...i,...o]:[...new Set([...i,...o])];return n?s.slice(0,n):s}let k={maxTags:1/0,acceptValueOnBlur:!0,splitChars:[","],hiddenInputValuesDivider:",",size:"sm"},C=(0,h.P9)((e,t)=>{let n=(0,u.Y)("TagsInput",k,e),{classNames:h,className:v,style:C,styles:A,unstyled:D,vars:S,size:E,value:T,defaultValue:O,onChange:M,onKeyDown:N,maxTags:P,allowDuplicates:R,onDuplicate:I,variant:F,data:L,dropdownOpened:j,defaultDropdownOpened:z,onDropdownOpen:$,onDropdownClose:B,selectFirstOptionOnChange:V,onOptionSubmit:Y,comboboxProps:q,filter:H,limit:W,withScrollArea:U,maxDropdownHeight:G,searchValue:Z,defaultSearchValue:J,onSearchChange:K,readOnly:X,disabled:Q,splitChars:ee,onFocus:et,onBlur:en,onPaste:er,radius:ei,rightSection:eo,rightSectionWidth:es,rightSectionPointerEvents:ea,rightSectionProps:el,leftSection:ec,leftSectionWidth:eu,leftSectionPointerEvents:ed,leftSectionProps:eh,inputContainer:ef,inputWrapperOrder:ep,withAsterisk:em,required:eg,labelProps:ey,descriptionProps:ev,errorProps:eb,wrapperProps:e_,description:ew,label:ex,error:ek,withErrorStyles:eC,name:eA,form:eD,id:eS,clearable:eE,clearButtonProps:eT,hiddenInputProps:eO,hiddenInputValuesDivider:eM,mod:eN,renderOption:eP,onRemove:eR,onClear:eI,scrollAreaProps:eF,acceptValueOnBlur:eL,isDuplicate:ej,attributes:ez,...e$}=n,eB=(0,o.B)(eS),eV=(0,f.d)(L),eY=(0,p.D)(eV),eq=(0,i.useRef)(null),eH=(0,s.pc)(eq,t),eW=(0,y.B)({opened:j,defaultOpened:z,onDropdownOpen:$,onDropdownClose:()=>{B?.(),eW.resetSelectedOption()}}),{styleProps:eU,rest:{type:eG,autoComplete:eZ,...eJ}}=(0,d.j)(e$),[eK,eX]=(0,a.Z)({value:T,defaultValue:O,finalValue:[],onChange:M}),[eQ,e0]=(0,a.Z)({value:Z,defaultValue:J,finalValue:"",onChange:K}),e1=e=>{e0(e),eW.resetSelectedOption()},e2=(0,c.I)({name:"TagsInput",classes:{},props:n,classNames:h,styles:A,unstyled:D}),{resolvedClassNames:e3,resolvedStyles:e4}=(0,l.Y)({props:n,styles:A,classNames:h}),e5=e=>{let t=ej?ej(e,eK):eK.some(t=>t.toLowerCase()===e.toLowerCase());t&&I?.(e),(!t||t&&R)&&eK.length<P&&(Y?.(e),e1(""),e.length>0&&eX([...eK,e]))},e6=eK.map((e,t)=>(0,r.jsx)(b.a,{withRemoveButton:!X,onRemove:()=>{let n=eK.slice();n.splice(t,1),eX(n),eR?.(e)},unstyled:D,disabled:Q,attributes:ez,...e2("pill"),children:e},`${e}-${t}`));(0,i.useEffect)(()=>{V&&eW.selectFirstOption()},[V,eK,eQ]);let e9=(0,r.jsx)(m.G.ClearButton,{...eT,onClear:()=>{eX([]),e1(""),eq.current?.focus(),eW.openDropdown(),eI?.()}});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(m.G,{store:eW,classNames:e3,styles:e4,unstyled:D,size:E,readOnly:X,__staticSelector:"TagsInput",attributes:ez,onOptionSubmit:e=>{Y?.(e),e1(""),eK.length<P&&eX([...eK,eY[e].label]),eW.resetSelectedOption()},...q,children:[(0,r.jsx)(m.G.DropdownTarget,{children:(0,r.jsx)(_.t,{...eU,__staticSelector:"TagsInput",classNames:e3,styles:e4,unstyled:D,size:E,className:v,style:C,variant:F,disabled:Q,radius:ei,rightSection:eo,__clearSection:e9,__clearable:eE&&eK.length>0&&!Q&&!X,rightSectionWidth:es,rightSectionPointerEvents:ea,rightSectionProps:el,leftSection:ec,leftSectionWidth:eu,leftSectionPointerEvents:ed,leftSectionProps:eh,inputContainer:ef,inputWrapperOrder:ep,withAsterisk:em,required:eg,labelProps:ey,descriptionProps:ev,errorProps:eb,wrapperProps:e_,description:ew,label:ex,error:ek,withErrorStyles:eC,__stylesApiProps:{...n,multiline:!0},id:eB,mod:eN,attributes:ez,children:(0,r.jsxs)(b.a.Group,{disabled:Q,unstyled:D,...e2("pillsList"),children:[e6,(0,r.jsx)(m.G.EventsTarget,{autoComplete:eZ,children:(0,r.jsx)(_.t.Field,{...eJ,ref:eH,...e2("inputField"),unstyled:D,onKeyDown:e=>{if(N?.(e),e.isPropagationStopped())return;let t=eQ.trim(),{length:n}=t;
3if(ee.includes(e.key)&&n>0&&(eX(x({splitChars:ee,allowDuplicates:R,maxTags:P,value:eQ,currentTags:eK})),e1(""),e.preventDefault()),"Enter"===e.key&&n>0&&!e.nativeEvent.isComposing){if(e.preventDefault(),document.querySelector(`#${eW.listId} [data-combobox-option][data-combobox-selected]`))return;e5(t)}"Backspace"!==e.key||0!==n||!(eK.length>0)||e.nativeEvent.isComposing||X||(eR?.(eK[eK.length-1]),eX(eK.slice(0,eK.length-1)))},onFocus:e=>{et?.(e),eW.openDropdown()},onBlur:e=>{en?.(e),eL&&e5(eQ),eW.closeDropdown()},onPaste:e=>{if(er?.(e),e.preventDefault(),e.clipboardData){let t=e.clipboardData.getData("text/plain");eX(x({splitChars:ee,allowDuplicates:R,maxTags:P,value:`${eQ}${t}`,currentTags:eK})),e1("")}},value:eQ,onChange:e=>e1(e.currentTarget.value),required:eg&&0===eK.length,disabled:Q,readOnly:X,id:eB})})]})})}),(0,r.jsx)(g.i,{data:function({data:e,value:t}){let n=t.map(e=>e.trim().toLowerCase());return e.reduce((e,t)=>((0,w.c)(t)?e.push({group:t.group,items:t.items.filter(e=>-1===n.indexOf(e.label.toLowerCase().trim()))}):-1===n.indexOf(t.label.toLowerCase().trim())&&e.push(t),e),[])}({data:eV,value:eK}),hidden:X||Q,filter:H,search:eQ,limit:W,hiddenWhenEmpty:!0,withScrollArea:U,maxDropdownHeight:G,unstyled:D,labelId:ex?`${eB}-label`:void 0,"aria-label":ex?void 0:e$["aria-label"],renderOption:eP,scrollAreaProps:eF})]}),(0,r.jsx)(m.G.HiddenInput,{name:eA,form:eD,value:eK,valuesDivider:eM,disabled:Q,...eO})]})});C.classes={...v.O.classes,...m.G.classes},C.displayName="@mantine/core/TagsInput"},102754:function(e,t,n){"use strict";n.d(t,{E:function(){return m}});var r=n(831085);n(514041);var i=n(621037),o=n(161959),s=n(884117),a=n(544313),l=n(845969),c=n(717226),u=n(427758),d=n(289094),h={root:"m_b6d8b162"};let f={inherit:!1},p=(0,o.V)((e,{variant:t,lineClamp:n,gradient:r,size:o,color:l})=>({root:{"--text-fz":(0,i.ny)(o),"--text-lh":(0,i.ks)(o),"--text-gradient":"gradient"===t?(0,a.v)(r,e):void 0,"--text-line-clamp":"number"==typeof n?n.toString():void 0,"--text-color":l?(0,s.r)(l,e):void 0}})),m=(0,d.v)((e,t)=>{let n=(0,l.Y)("Text",f,e),{lineClamp:i,truncate:o,inline:s,inherit:a,gradient:d,span:m,__staticSelector:g,vars:y,className:v,style:b,classNames:_,styles:w,unstyled:x,variant:k,mod:C,size:A,attributes:D,...S}=n,E=(0,c.I)({name:["Text",g],props:n,classes:h,className:v,style:b,classNames:_,styles:w,unstyled:x,attributes:D,vars:y,varsResolver:p});return(0,r.jsx)(u.a,{...E("root",{focusable:!0}),ref:t,component:m?"span":"p",variant:k,mod:[{"data-truncate":"start"===o?"start":"end"===o||o?"end":void 0,"data-line-clamp":"number"==typeof i,"data-inline":s,"data-inherit":a},C],size:A,...S})});m.classes=h,m.displayName="@mantine/core/Text"},111192:function(e,t,n){"use strict";var r=n(831085);n(514041);var i=n(845969),o=n(784817),s=n(438872);let a=(0,o.P9)((e,t)=>{let n=(0,i.Y)("TextInput",null,e);return(0,r.jsx)(s.O,{component:"input",ref:t,...n,__staticSelector:"TextInput"})});a.classes=s.O.classes,a.displayName="@mantine/core/TextInput",n.d(t,{},{k:a})},286175:function(e,t,n){"use strict";n.d(t,{T:function(){return T}});var r=n(831085);function i(){return(i=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}).apply(null,arguments)}var o=n(514041),s=n(130468),a=function(e){var t=o.useRef(e);return(0,s.A)(function(){t.current=e}),t},l=function(e,t){"function"==typeof e?e(t):e.current=t},c=function(e,t){var n=(0,o.useRef)();return(0,o.useCallback)(function(r){e.current=r,n.current&&l(n.current,null),n.current=t,t&&l(t,r)},[t])},u={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},d=function(e){Object.keys(u).forEach(function(t){e.style.setProperty(t,u[t],"important")})},h=null,f=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize},p=function(){},m=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],g=!!document.documentElement.currentStyle,y=function(e){var t=window.getComputedStyle(e);
3if(null===t)return null;var n=m.reduce(function(e,n){return e[n]=t[n],e},{}),r=n.boxSizing;if(""===r)return null;g&&"border-box"===r&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px");var i=parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),o=parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth);return{sizingStyle:n,paddingSize:i,borderSize:o}};function v(e,t,n){var r=a(n);o.useLayoutEffect(function(){var n=function(e){return r.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}},[])}var b=function(e,t){v(document.body,"reset",function(n){e.current.form===n.target&&t(n)})},_=function(e){v(window,"resize",e)},w=function(e){v(document.fonts,"loadingdone",e)},x=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],k=o.forwardRef(function(e,t){var n=e.cacheMeasurements,r=e.maxRows,s=e.minRows,a=e.onChange,l=void 0===a?p:a,u=e.onHeightChange,m=void 0===u?p:u,g=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,x),v=void 0!==g.value,k=o.useRef(null),C=c(k,t),A=o.useRef(0),D=o.useRef(),S=function(){var e=k.current,t=n&&D.current?D.current:y(e);if(t){D.current=t;var i,o,a,l,c,u,p,g,v,b,_,w=(i=e.value||e.placeholder||"x",void 0===(o=s)&&(o=1),void 0===(a=r)&&(a=1/0),h||((h=document.createElement("textarea")).setAttribute("tabindex","-1"),h.setAttribute("aria-hidden","true"),d(h)),null===h.parentNode&&document.body.appendChild(h),l=t.paddingSize,c=t.borderSize,p=(u=t.sizingStyle).boxSizing,Object.keys(u).forEach(function(e){h.style[e]=u[e]}),d(h),h.value=i,g=f(h,t),h.value=i,g=f(h,t),h.value="x",b=(v=h.scrollHeight-l)*o,"border-box"===p&&(b=b+l+c),g=Math.max(b,g),_=v*a,"border-box"===p&&(_=_+l+c),[g=Math.min(_,g),v]),x=w[0],C=w[1];A.current!==x&&(A.current=x,e.style.setProperty("height",x+"px","important"),m(x,{rowHeight:C}))}};return o.useLayoutEffect(S),b(k,function(){if(!v){var e=k.current.value;requestAnimationFrame(function(){var t=k.current;t&&e!==t.value&&S()})}}),_(S),w(S),o.createElement("textarea",i({},g,{onChange:function(e){v||S(),l(e)},ref:C}))}),C=n(117767),A=n(845969),D=n(784817),S=n(438872);let E={size:"sm"},T=(0,D.P9)((e,t)=>{let{autosize:n,maxRows:i,minRows:o,__staticSelector:s,resize:a,...l}=(0,A.Y)("Textarea",E,e),c=n&&"test"!==(0,C._)();return(0,r.jsx)(S.O,{component:c?k:"textarea",ref:t,...l,__staticSelector:s||"Textarea",multiline:!0,"data-no-overflow":n&&void 0===i||void 0,__vars:{"--input-resize":a},...c?{maxRows:i,minRows:o}:{}})});T.classes=S.O.classes,T.displayName="@mantine/core/Textarea"},678967:function(e,t,n){"use strict";n.d(t,{m:function(){return V}});var r=n(831085),i=n(514041),o=n(354357),s=n(189102),a=n(316019),l=n(159903),c=n(621037),u=n(860889),d=n(161959),h=n(845969),f=n(717226),p=n(427758),m=n(784817),g=n(651337),y=n(937018),v=n(841628),b=n(449614),_=n(813962);let w={duration:100,transition:"fade"};function x(e,t){return{...w,...t,...e}}var k=n(884117),C=n(847495),A=n(647649),D=n(933050),S=n(926584),E=n(501860),T={tooltip:"m_1b3c8819",arrow:"m_f898399f"};let O={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:(0,l.I)("popover")},M=(0,d.V)((e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":void 0===t?void 0:(0,c.nJ)(t),"--tooltip-bg":n?(0,k.r)(n,e):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}})),N=(0,m.P9)((e,t)=>{let n=(0,h.Y)("TooltipFloating",O,e),{children:o,refProp:l,withinPortal:c,style:d,className:m,classNames:g,styles:y,unstyled:v,radius:_,color:w,label:x,offset:k,position:N,multiline:P,zIndex:R,disabled:I,defaultOpened:F,variant:L,vars:j,portalProps:z,attributes:$,...B}=n,V=(0,C.xd)(),Y=(0,f.I)({name:"TooltipFloating",props:n,classes:T,className:m,style:d,classNames:g,styles:y,unstyled:v,attributes:$,rootSelector:"tooltip",vars:j,varsResolver:M}),{handleMouseMove:q,x:H,y:W,opened:U,boundaryRef:G,floating:Z,setOpened:J}=function({offset:e,position:t,defaultOpened:n}){let[r,o]=(0,i.useState)(n),s=(0,i.useRef)(null),{x:a,y:l,elements:c,refs:u,update:d,placement:h}=(0,D.we)({placement:t,middleware:[(0,S.BN)({crossAxis:!0,padding:5,rootBoundary:"document"})]}),f=h.includes("right")?e:t.includes("left")?-1*e:0,p=h.includes("bottom")?e:t.includes("top")?-1*e:0,m=(0,i.useCallback)(({clientX:e,clientY:t})=>{u.setPositionReference({getBoundingClientRect:()=>({width:0,height:0,x:e,y:t,left:e+f,top:t+p,right:e,bottom:t})})},[c.reference]);return(0,i.useEffect)(()=>
3{if(u.floating.current){let e=s.current;e.addEventListener("mousemove",m);let t=(0,E.v9)(u.floating.current);return t.forEach(e=>{e.addEventListener("scroll",d)}),()=>{e.removeEventListener("mousemove",m),t.forEach(e=>{e.removeEventListener("scroll",d)})}}},[c.reference,u.floating.current,d,m,r]),{handleMouseMove:m,x:a,y:l,opened:r,setOpened:o,boundaryRef:s,floating:u.setFloating}}({offset:k,position:N,defaultOpened:F});if(!(0,a.v)(o))throw Error("[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");let K=(0,s.pc)(G,(0,u.x)(o),t),X=o.props;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b.r,{...z,withinPortal:c,children:(0,r.jsx)(p.a,{...B,...Y("tooltip",{style:{...(0,A.X)(d,V),zIndex:R,display:!I&&U?"block":"none",top:(W&&Math.round(W))??"",left:(H&&Math.round(H))??""}}),variant:L,ref:Z,mod:{multiline:P},children:x})}),(0,i.cloneElement)(o,{...X,[l]:K,onMouseEnter:e=>{X.onMouseEnter?.(e),q(e),J(!0)},onMouseLeave:e=>{X.onMouseLeave?.(e),J(!1)}})]})});N.classes=T,N.displayName="@mantine/core/TooltipFloating";let P=(0,i.createContext)(!1),R=P.Provider,I={openDelay:0,closeDelay:0};function F(e){let{openDelay:t,closeDelay:n,children:i}=(0,h.Y)("TooltipGroup",I,e);return(0,r.jsx)(R,{value:!0,children:(0,r.jsx)(D.T3,{delay:{open:t,close:n},children:i})})}F.displayName="@mantine/core/TooltipGroup",F.extend=e=>e;var L=n(415760),j=n(398046),z=n(644356);let $={position:"top",refProp:"ref",withinPortal:!0,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:(0,l.I)("popover"),positionDependencies:[],middlewares:{flip:!0,shift:!0,inline:!1}},B=(0,d.V)((e,{radius:t,color:n,variant:r,autoContrast:i})=>{let o=e.variantColorResolver({theme:e,color:n||e.primaryColor,autoContrast:i,variant:r||"filled"});return{tooltip:{"--tooltip-radius":void 0===t?void 0:(0,c.nJ)(t),"--tooltip-bg":n?o.background:void 0,"--tooltip-color":n?o.color:void 0}}}),V=(0,m.P9)((e,t)=>{let n=(0,h.Y)("Tooltip",$,e),{children:l,position:c,refProp:d,label:m,openDelay:w,closeDelay:k,onPositionChange:C,opened:A,defaultOpened:E,withinPortal:O,radius:M,color:N,classNames:R,styles:I,unstyled:F,style:V,className:Y,withArrow:q,arrowSize:H,arrowOffset:W,arrowRadius:U,arrowPosition:G,offset:Z,transitionProps:J,multiline:K,events:X,zIndex:Q,disabled:ee,positionDependencies:et,onClick:en,onMouseEnter:er,onMouseLeave:ei,inline:eo,variant:es,keepMounted:ea,vars:el,portalProps:ec,mod:eu,floatingStrategy:ed,middlewares:eh,autoContrast:ef,attributes:ep,target:em,...eg}=(0,h.Y)("Tooltip",$,n),{dir:ey}=(0,g.jH)(),ev=(0,i.useRef)(null),eb=function(e){let t,n,[r,o]=(0,i.useState)(e.defaultOpened),s="boolean"==typeof e.opened?e.opened:r,a=(0,i.useContext)(P),l=(0,j.B)(),c=(0,i.useCallback)(e=>{o(e),e&&b(l)},[l]),{x:u,y:d,context:h,refs:f,placement:p,middlewareData:{arrow:{x:m,y:g}={}}}=(0,D.we)({strategy:e.strategy,placement:e.position,open:s,onOpenChange:c,middleware:(t=function(e){if(void 0===e)return{shift:!0,flip:!0};let t={...e};return void 0===e.shift&&(t.shift=!0),void 0===e.flip&&(t.flip=!0),t}(e.middlewares),n=[(0,S.cY)(e.offset)],t.shift&&n.push((0,S.BN)("boolean"==typeof t.shift?{padding:8}:{padding:8,...t.shift})),t.flip&&n.push("boolean"==typeof t.flip?(0,S.UU)():(0,S.UU)(t.flip)),n.push((0,S.UE)({element:e.arrowRef,padding:e.arrowOffset})),t.inline?n.push("boolean"==typeof t.inline?(0,S.mG)():(0,S.mG)(t.inline)):e.inline&&n.push((0,S.mG)()),n),whileElementsMounted:L.ll}),{delay:y,currentId:v,setCurrentId:b}=(0,D.ck)(h,{id:l}),{getReferenceProps:_,getFloatingProps:w}=(0,D.bv)([(0,D.Mk)(h,{enabled:e.events?.hover,delay:a?y:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events?.touch}),(0,D.iQ)(h,{enabled:e.events?.focus,visibleOnly:!0}),(0,D.It)(h,{role:"tooltip"}),(0,D.s9)(h,{enabled:void 0===e.opened})]);(0,z.C)(()=>{e.onPositionChange?.(p)},[p]);let x=s&&v&&v!==l;return{x:u,y:d,arrowX:m,arrowY:g,reference:f.setReference,floating:f.setFloating,getFloatingProps:w,getReferenceProps:_,isGroupPhase:x,opened:s,placement:p}}({position:(0,v.Q)(ey,c),closeDelay:k,openDelay:w,onPositionChange:C,opened:A,defaultOpened:E,events:X,arrowRef:ev,arrowOffset:W,offset:"number"==typeof Z?Z+(q?H/2:0):Z,positionDependencies:[...et,em??l],inline:eo,strategy:ed,middlewares:eh});(0,i.useEffect)(()=>{let e=em instanceof HTMLElement?em:"string"==typeof em?document.querySelector(em):em?.current||null;e&&eb.reference(e)},[em,eb]);let e_=(0,f.I)({name:"Tooltip",props:n,classes:T,className:Y,style:V,classNames:R,styles:I,unstyled:F,attributes:ep,rootSelector:"tooltip",vars:el,varsResolver:B});if(!em&&!(0,a.v)(l))return null;if(em){let e=x(J,{duration:100,transition:"fade"});return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(b.r,{...ec,withinPortal:O,children:(0,r.jsx)(_.e,{...e,keepMounted:ea,mounted:!ee&&!!eb.opened,duration:eb.isGroupPhase?10:e.duration,children:e=>(0,r.jsxs)(p.a,{...eg,"data-fixed":"fixed"===ed||void 0,variant:es,mod:[{multiline:K},eu],...eb.getFloatingProps({ref:eb.floating,className:e_("tooltip").className,style:{...e_("tooltip").style,...e,zIndex:Q,top:eb.y??0,left
3:eb.x??0}}),children:[m,(0,r.jsx)(y.i,{ref:ev,arrowX:eb.arrowX,arrowY:eb.arrowY,visible:q,position:eb.placement,arrowSize:H,arrowOffset:W,arrowRadius:U,arrowPosition:G,...e_("arrow")})]})})})})}let ew=l.props,ex=(0,s.pc)(eb.reference,(0,u.x)(l),t),ek=x(J,{duration:100,transition:"fade"});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b.r,{...ec,withinPortal:O,children:(0,r.jsx)(_.e,{...ek,keepMounted:ea,mounted:!ee&&!!eb.opened,duration:eb.isGroupPhase?10:ek.duration,children:e=>(0,r.jsxs)(p.a,{...eg,"data-fixed":"fixed"===ed||void 0,variant:es,mod:[{multiline:K},eu],...eb.getFloatingProps({ref:eb.floating,className:e_("tooltip").className,style:{...e_("tooltip").style,...e,zIndex:Q,top:eb.y??0,left:eb.x??0}}),children:[m,(0,r.jsx)(y.i,{ref:ev,arrowX:eb.arrowX,arrowY:eb.arrowY,visible:q,position:eb.placement,arrowSize:H,arrowOffset:W,arrowRadius:U,arrowPosition:G,...e_("arrow")})]})})}),(0,i.cloneElement)(l,eb.getReferenceProps({onClick:en,onMouseEnter:er,onMouseLeave:ei,onMouseMove:n.onMouseMove,onPointerDown:n.onPointerDown,onPointerEnter:n.onPointerEnter,className:(0,o.A)(Y,ew.className),...ew,[d]:ex}))]})});V.classes=T,V.displayName="@mantine/core/Tooltip",V.Floating=N,V.Group=F},813962:function(e,t,n){"use strict";n.d(t,{e:function(){return f}});var r=n(831085),i=n(514041),o=n(730521);let s=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${"bottom"===e?10:-10}px)`},transitionProperty:"transform, opacity"}),a={fade:{in:{opacity:1},out:{opacity:0}
3,transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(30px)"},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-30px)"},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(30px)"},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-30px)"},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...s("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...s("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...s("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...s("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...s("top"),common:{transformOrigin:"top right"}}},l={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};var c=n(843144),u=n(646604),d=n(644356),h=n(847495);function f({keepMounted:e,transition:t="fade",duration:n=250,exitDuration:s=n,mounted:p,children:m,timingFunction:g="ease",onExit:y,onEntered:v,onEnter:b,onExited:_,enterDelay:w,exitDelay:x}){let k=(0,o.bv)(),{transitionDuration:C,transitionStatus:A,transitionTimingFunction:D}=function({duration:e,exitDuration:t,timingFunction:n,mounted:r,onEnter:o,onExit:s,onEntered:a,onExited:l,enterDelay:f,exitDelay:p}){let m=(0,h.xd)(),g=(0,u.I)(),y=!!m.respectReducedMotion&&g,[v,b]=(0,i.useState)(y?0:e),[_,w]=(0,i.useState)(r?"entered":"exited"),x=(0,i.useRef)(-1),k=(0,i.useRef)(-1),C=(0,i.useRef)(-1);function A(){window.clearTimeout(x.current),window.clearTimeout(k.current),cancelAnimationFrame(C.current)}let D=n=>{A();let r=n?o:s,i=n?a:l,u=y?0:n?e:t;b(u),0===u?("function"==typeof r&&r(),"function"==typeof i&&i(),w(n?"entered":"exited")):C.current=requestAnimationFrame(()=>{c.flushSync(()=>{w(n?"pre-entering":"pre-exiting")}),C.current=requestAnimationFrame(()=>{"function"==typeof r&&r(),w(n?"entering":"exiting"),x.current=window.setTimeout(()=>{"function"==typeof i&&i(),w(n?"entered":"exited")},u)})})};return(0,d.C)(()=>{(A(),"number"!=typeof(r?f:p))?D(r):k.current=window.setTimeout(()=>{D(r)},r?f:p)},[r]),(0,i.useEffect)(()=>()=>{A()},[]),{transitionDuration:v,transitionStatus:_,transitionTimingFunction:n||"ease"}}({mounted:p,exitDuration:s,duration:n,timingFunction:g,onExit:y,onEntered:v,onEnter:b,onExited:_,enterDelay:w,exitDelay:x});return 0===C||"test"===k?p?(0,r.jsx)(r.Fragment,{children:m({})}):e?m({display:"none"}):null:"exited"===A?e?m({display:"none"}):null:(0,r.jsx)(r.Fragment,{children:m(function({transition:e,state:t,duration:n,timingFunction:r}
3){let i={WebkitBackfaceVisibility:"hidden",willChange:"transform, opacity",transitionDuration:`${n}ms`,transitionTimingFunction:r};return"string"==typeof e?e in a?{transitionProperty:a[e].transitionProperty,...i,...a[e].common,...a[e][l[t]]}:{}:{transitionProperty:e.transitionProperty,...i,...e.common,...e[l[t]]}}({transition:t,duration:C,state:A,timingFunction:D}))})}f.displayName="@mantine/core/Transition"},305391:function(e,t,n){"use strict";n.d(t,{N:function(){return u}});var r=n(831085);n(514041);var i=n(845969),o=n(717226),s=n(427758),a=n(289094),l={root:"m_87cf2631"};let c={__staticSelector:"UnstyledButton"},u=(0,a.v)((e,t)=>{let n=(0,i.Y)("UnstyledButton",c,e),{className:a,component:u="button",__staticSelector:d,unstyled:h,classNames:f,styles:p,style:m,attributes:g,...y}=n,v=(0,o.I)({name:d,props:n,classes:l,className:a,style:m,classNames:f,styles:p,unstyled:h,attributes:g});return(0,r.jsx)(s.a,{...v("root",{focusable:!0}),component:u,ref:t,type:"button"===u?"button":void 0,...y})});u.classes=l,u.displayName="@mantine/core/UnstyledButton"},990729:function(e,t,n){"use strict";n.d(t,{s:function(){return c}});var r=n(831085);n(514041);var i=n(845969),o=n(717226),s=n(427758),a=n(784817),l={root:"m_515a97f8"};let c=(0,a.P9)((e,t)=>{let n=(0,i.Y)("VisuallyHidden",null,e),{classNames:a,className:c,style:u,styles:d,unstyled:h,vars:f,attributes:p,...m}=n,g=(0,o.I)({name:"VisuallyHidden",classes:l,props:n,className:c,style:u,classNames:a,styles:d,unstyled:h,attributes:p});return(0,r.jsx)(s.a,{component:"span",ref:t,...g("root"),...m})});c.classes=l,c.displayName="@mantine/core/VisuallyHidden"},427758:function(e,t,n){"use strict";n.d(t,{a:function(){return v}});var r=n(831085),i=n(514041),o=n(354357),s=n(601912),a=n(451268),l=n(198085),c=n(730521),u=n(847495);function d(e){return e.startsWith("data-")?e:`data-${e}`}function h(e,t){return Array.isArray(e)?[...e].reduce((e,n)=>({...e,...h(n,t)}),{}):"function"==typeof e?e(t):null==e?{}:e}var f=n(372944);let p={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bdrs:{type:"radius",property:"borderRadius"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"size",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};var m=n(967669),g=n(744135);let y=(0,i.forwardRef)(({component:e,style:t,__vars:n,className:i,variant:s,mod:y,size:v,hiddenFrom:b,visibleFrom
3:_,lightHidden:w,darkHidden:x,renderRoot:k,__size:C,...A},D)=>{let S=(0,u.xd)(),{styleProps:E,rest:T}=(0,f.j)(A),O=(0,c.NL)(),M=O?.()?.(E.sx),N=(0,g.C)(),P=(0,m.X)({styleProps:E,theme:S,data:p}),R={ref:D,style:function({theme:e,style:t,vars:n,styleProps:r}){let i=h(t,e),o=h(n,e);return{...i,...o,...r}}({theme:S,style:t,vars:n,styleProps:P.inlineStyles}),className:(0,o.A)(i,M,{[N]:P.hasResponsiveStyles,"mantine-light-hidden":w,"mantine-dark-hidden":x,[`mantine-hidden-from-${b}`]:b,[`mantine-visible-from-${_}`]:_}),"data-variant":s,"data-size":(0,l.t)(v)?void 0:v||void 0,size:C,...function e(t){return t?"string"==typeof t?{[d(t)]:!0}:Array.isArray(t)?[...t].reduce((t,n)=>({...t,...e(n)}),{}):Object.keys(t).reduce((e,n)=>{let r=t[n];return void 0===r||""===r||!1===r||null===r||(e[d(n)]=t[n]),e},{}):null}(y),...T};return(0,r.jsxs)(r.Fragment,{children:[P.hasResponsiveStyles&&(0,r.jsx)(a.K,{selector:`.${N}`,styles:P.styles,media:P.media}),"function"==typeof k?k(R):(0,r.jsx)(e||"div",{...R})]})});y.displayName="@mantine/core/Box";let v=(0,s.K)(y)},647649:function(e,t,n){"use strict";n.d(t,{X:function(){return function e(t,n){return Array.isArray(t)?[...t].reduce((t,r)=>({...t,...e(r,n)}),{}):"function"==typeof t?t(n):null==t?{}:t}}})},372944:function(e,t,n){"use strict";var r=n(19239);function i(e){let{m:t,mx:n,my:i,mt:o,mb:s,ml:a,mr:l,me:c,ms:u,p:d,px:h,py:f,pt:p,pb:m,pl:g,pr:y,pe:v,ps:b,bd:_,bdrs:w,bg:x,c:k,opacity:C,ff:A,fz:D,fw:S,lts:E,ta:T,lh:O,fs:M,tt:N,td:P,w:R,miw:I,maw:F,h:L,mih:j,mah:z,bgsz:$,bgp:B,bgr:V,bga:Y,pos:q,top:H,left:W,bottom:U,right:G,inset:Z,display:J,flex:K,hiddenFrom:X,visibleFrom:Q,lightHidden:ee,darkHidden:et,sx:en,...er}=e;return{styleProps:(0,r.J)({m:t,mx:n,my:i,mt:o,mb:s,ml:a,mr:l,me:c,ms:u,p:d,px:h,py:f,pt:p,pb:m,pl:g,pr:y,pe:v,ps:b,bd:_,bg:x,c:k,opacity:C,ff:A,fz:D,fw:S,lts:E,ta:T,lh:O,fs:M,tt:N,td:P,w:R,miw:I,maw:F,h:L,mih:j,mah:z,bgsz:$,bgp:B,bgr:V,bga:Y,pos:q,top:H,left:W,bottom:U,right:G,inset:Z,display:J,flex:K,bdrs:w,hiddenFrom:X,visibleFrom:Q,lightHidden:ee,darkHidden:et,sx:en}),rest:er}}n(514041),n(831085),n.d(t,{j:function(){return i}})},967669:function(e,t,n){"use strict";n.d(t,{X:function(){return h}});var r=n(668809);n(514041),n(831085);var i=n(455302),o=n(613745);function s(e,t){let n=(0,o.g)({color:e,theme:t});return"dimmed"===n.color?"var(--mantine-color-dimmed)":"bright"===n.color?"var(--mantine-color-bright)":n.variable?`var(${n.variable})`:n.color}let a={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"},l=["h1","h2","h3","h4","h5","h6"],c=["h1","h2","h3","h4","h5","h6"],u={color:s,textColor:function(e,t){let n=(0,o.g)({color:e,theme:t});return n.isThemeColor&&void 0===n.shade?`var(--mantine-color-${n.color}-text)`:s(e,t)},fontSize:function(e,t){return"string"==typeof e&&e in t.fontSizes?`var(--mantine-font-size-${e})`:"string"==typeof e&&l.includes(e)?`var(--mantine-${e}-font-size)`:"number"==typeof e||"string"==typeof e?(0,i.D)(e):e},spacing:function(e,t){if("number"==typeof e)return(0,i.D)(e);if("string"==typeof e){let n=e.replace("-","");if(!(n in t.spacing))return(0,i.D)(e);let r=`--mantine-spacing-${n}`;return e.startsWith("-")?`calc(var(${r}) * -1)`:`var(${r})`}return e},radius:function(e,t){return"string"==typeof e&&e in t.radius?`var(--mantine-radius-${e})`:"number"==typeof e||"string"==typeof e?(0,i.D)(e):e},identity:function(e){return e},size:function(e){return"number"==typeof e?(0,i.D)(e):e},lineHeight:function(e,t){return"string"==typeof e&&e in t.lineHeights?`var(--mantine-line-height-${e})`:"string"==typeof e&&c.includes(e)?`var(--mantine-${e}-line-height)`:e},fontFamily:function(e){return"string"==typeof e&&e in a?a[e]:e},border:function(e,t){if("number"==typeof e)return(0,i.D)(e);if("string"==typeof e){let[n,r,...o]=e.split(" ").filter(e=>""!==e.trim()),a=`${(0,i.D)(n)}`;return r&&(a+=` ${r}`),o.length>0&&(a+=` ${s(o.join(" "),t)}`),a.trim()}return e}};function d(e){return e.replace("(min-width: ","").replace("em)","")}function h({styleProps:e,data:t,theme:n}){return function({media:e,...t}){let n=Object.keys(e).sort((e,t)=>
3Number(d(e))-Number(d(t))).map(t=>({query:t,styles:e[t]}));return{...t,media:n}}((0,r.H)(e).reduce((i,o)=>{var s,a;if("hiddenFrom"===o||"visibleFrom"===o||"sx"===o)return i;let l=t[o],c=Array.isArray(l.property)?l.property:[l.property],d="object"==typeof(a=e[o])&&null!==a?"base"in a?a.base:void 0:a;if(!function(e){if("object"!=typeof e||null===e)return!1;let t=Object.keys(e);return 1!==t.length||"base"!==t[0]}(e[o]))return c.forEach(e=>{i.inlineStyles[e]=u[l.type](d,n)}),i;i.hasResponsiveStyles=!0;let h="object"==typeof(s=e[o])&&null!==s?(0,r.H)(s).filter(e=>"base"!==e):[];return c.forEach(t=>{null!=d&&(i.styles[t]=u[l.type](d,n)),h.forEach(r=>{var s;let a=`(min-width: ${n.breakpoints[r]})`;i.media[a]={...i.media[a],[t]:u[l.type]((s=e[o],"object"==typeof s&&null!==s&&r in s?s[r]:s),n)}})}),i},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}},744135:function(e,t,n){"use strict";var r=n(514041);function i(){let e=(0,r.useId)().replace(/[:«»]/g,"");return`__m__-${e}`}n.d(t,{C:function(){return i}})},651337:function(e,t,n){"use strict";n(831085);var r=n(514041);let i=(0,r.createContext)({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function o(){return(0,r.useContext)(i)}n.d(t,{jH:function(){return o}})},451268:function(e,t,n){"use strict";n.d(t,{K:function(){return a}});var r=n(831085);n(514041);var i=n(730521),o=n(668809);function s(e){return(0,o.H)(e).reduce((t,n)=>void 0!==e[n]?`${t}${n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}:${e[n]};`:t,"").trim()}function a(e){let t=(0,i.WV)();return(0,r.jsx)("style",{"data-mantine-styles":"inline",nonce:t?.(),dangerouslySetInnerHTML:{__html:function({selector:e,styles:t,media:n,container:r}){let i=t?s(t):"",o=Array.isArray(n)?n.map(t=>`@media${t.query}{${e}{${s(t.styles)}}}`):[],a=Array.isArray(r)?r.map(t=>`@container ${t.query}{${e}{${s(t.styles)}}}`):[];return`${i?`${e}{${i}}`:""}${o.join("")}${a.join("")}`.trim()}(e)}})}},764577:function(e,t,n){"use strict";function r(e,t){return"boolean"==typeof e?e:t.autoContrast}n.d(t,{v:function(){return r}})},544313:function(e,t,n){"use strict";var r=n(884117);function i(e,t){let n={from:e?.from||t.defaultGradient.from,to:e?.to||t.defaultGradient.to,deg:e?.deg??t.defaultGradient.deg??0},i=(0,r.r)(n.from,t),o=(0,r.r)(n.to,t);return`linear-gradient(${n.deg}deg, ${i} 0%, ${o} 100%)`}n.d(t,{v:function(){return i}})},899065:function(e,t,n){"use strict";function r(e,t){return"number"==typeof e.primaryShade?e.primaryShade:"dark"===t?e.primaryShade.dark:e.primaryShade.light}n.d(t,{g:function(){return r}})},884117:function(e,t,n){"use strict";var r=n(613745);function i(e,t){let n=(0,r.g)({color:e||t.primaryColor,theme:t});return n.variable?`var(${n.variable})`:e}n.d(t,{r:function(){return i}})},613745:function(e,t,n){"use strict";var r=n(899065),i=n(433);function o({color:e,theme:t,colorScheme:n}){if("string"!=typeof e)throw Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if("bright"===e)return{color:e,value:"dark"===n?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:(0,i.e)("dark"===n?t.white:t.black,t.luminanceThreshold),variable:"--mantine-color-bright"};if("dimmed"===e)return{color:e,value:"dark"===n?t.colors.dark[2]:t.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:(0,i.e)("dark"===n?t.colors.dark[2]:t.colors.gray[6],t.luminanceThreshold),variable:"--mantine-color-dimmed"};if("white"===e||"black"===e)return{color:e,value:"white"===e?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:(0,i.e)("white"===e?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};let[s,a]=e.split("."),l=a?Number(a):void 0,c=s in t.colors;if(c){let e=void 0!==l?t.colors[s][l]:t.colors[s][(0,r.g)(t,n||"light")];return{color:s,value:e,shade:l,isThemeColor:c,isLight:(0,i.e)(e,t.luminanceThreshold),variable:a?`--mantine-color-${s}-${l}`:`--mantine-color-${s}-filled`}}return{color:e,value:e,isThemeColor:c,isLight:(0,i.e)(e,t.luminanceThreshold),shade:l,variable:void 0}}n.d(t,{g:function(){return o}})},135825:function(e,t,n){"use strict";function r(e){if(/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)){let t=e.replace("#","");if(3===t.length){let e=t.split("");t=[e[0],e[0],e[1],e[1],e[2],e[2]].join("")}if(8===t.length){let e=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:e}}let n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:255&n,a:1}}return e.startsWith("rgb")?function(e){let[t,n,r,i]=e.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:t,g:n,b:r,a:void 0===i?1:i}}(e):e.startsWith("hsl")?function(e){let t,n,r,i=e.match(/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i);if(!i)return{r:0,g:0,b:0,a:1};let o=parseInt(i[1],10),s=parseInt(i[2],10)/100,a=parseInt(i[3],10)/100,l=i[5]?parseFloat(i[5]):void 0,c=(1-Math.abs(2*a-1))*s,u=o/60,d=c*(1-Math.abs(u%2-1)),h=a-c/2;return u>=0&&u<1?(t=c,n=d,r=0):u>=1&&u<2?(t=d,n=c,r=0):u>=2&&u<3?(t=0,n=c,r=d):u>=3&&u<4?(t=0,n=d,r=c):u>=4&&u<5?(t=d,n=0,r=c):(t=c,n=0,r=d),{r:Math.round((t+h)*255),g:Math.round((n+h)*255),b:Math.round((r+h)*255),a:l||1}}(e):{r:0,g:0,b:0,a:1}}n.d(t,{K:function(){return r}})},543547:function(e,t,n){"use strict";function r(e){return e}n.d(t,{a:function(){return r}})},195533:function(e,t,n){"use strict";n.d(t,{S:function(){return u}});var r=n(455302);n(514041),n(831085);var i=n(135825);function o(e,t){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, black ${100*t}%)`;let{r:n,g:r,b:o,a:s}=(0,i.K)(e),a=1-t,l=e=>Math.round(e*a);return`rgba(${l(n)}, ${l(r)}, ${l(o)}, ${s})`}var s=n(544313),a=n(613745),l=n(196115);let c="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",u={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:{dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:({color:e,theme:t,variant:n,gradient:i,autoContrast:c})=>{let u=(0,a.g)({color:e,theme:t}),d="boolean"==typeof c?c:t.autoContrast;if("none"===n)return{background:"transparent",hover:"transparent",color:"inherit",border:"none"};if("filled"===n){let t=d&&u.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return u.isThemeColor?void 0===u.shade?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:t,border:`${(0,r.D)(1)} solid transparent`}:{background:`var(--mantine-color-${u.color}-${u.shade})`,hover:`var(--mantine-color-${u.color}-${9===u.shade?8:u.shade+1})`,color:t,border:`${(0,r.D)(1)} solid transparent`}:{background:e,hover:o(e,.1),color:t,border:`${(0,r.D)(1)} solid transparent`}}if("light"===n){if(u.isThemeColor){if(void 0===u.shade)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${(0,r.D)(1)} solid transparent`};let n=t.colors[u.color][u.shade];return{background:(0,l.B)(n,.1),hover:(0,l.B)(n,.12),color:`var(--mantine-color-${u.color}-${Math.min(u.shade,6)})`,border:`${(0,r.D)(1)} solid transparent`}}return{background:(0,l.B)(e,.1),hover:(0,l.B)(e,.12),color:e,border:`${(0,r.D)(1)} solid transparent`}}if("outline"===n)return u.isThemeColor?void 0===u.shade?{background:"transparent",hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${(0,r.D)(1)} solid var(--mantine-color-${e}-outline)`}:{background:"transparent",hover:(0,l.B)(t.colors[u.color][u.shade],.05),color:`var(--mantine-color-${u.color}-${u.shade})`,border:`${(0,r.D)(1)} solid var(--mantine-color-${u.color}-${u.shade})`}:{background:"transparent",hover:(0,l.B)(e,.05),color:e,border:`${(0,r.D)(1)} solid ${e}`};if("subtle"===n){if(u.isThemeColor){if(void 0===u.shade)return{background:"transparent",hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${(0,r.D)(1)} solid transparent`};let n=t.colors[u.color][u.shade];return{background:"transparent",hover:(0,l.B)(n,.12),color:`var(--mantine-color-${u.color}-${Math.min(u.shade,6)})`,border:`${(0,r.D)(1)} solid transparent`}}return{background:"transparent",hover:(0,l.B)(e,.12),color:e,border:`${(0,r.D)(1)} solid transparent`}}if("transparent"===n)return u.isThemeColor?void 0===u.shade?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${e}-light-color)`,border:`${(0,r.D)(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${u.color}-${Math.min(u.shade,6)})`,border:`${(0,r.D)(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:e,border:`${(0,r.D)(1)} solid transparent`};if("white"===n)return u.isThemeColor?void 0===u.shade?{background:"var(--mantine-color-white)",hover:o(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${(0,r.D)(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:o(t.white,.01),color:`var(--mantine-color-${u.color}-${u.shade})`,border:`${(0,r.D)(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:o(t.white,.01),color:e,border:`${(0,r.D)(1)} solid transparent`};return"gradient"===n?{background:(0,s.v)(i,t),hover:(0,s.v)(i,t),color:"var(--mantine-color-white)",border:"none"}:"default"===n?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${(0,r.D)(1)} solid var(--mantine-color-default-border)`}:{}},autoContrast:!1,luminanceThreshold:.3,fontFamily:c,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",respectReducedMotion:!1,cursorType:"default",defaultGradient:{from:"blue",to:"cyan",deg:45},defaultRadius:"sm",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:c,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:(0,r.D)(34),lineHeight:"1.3"},h2:{fontSize:(0,r.D)(26),lineHeight:"1.35"},h3:{fontSize:(0,r.D)(22),lineHeight:"1.4"},h4:{fontSize:(0,r.D)(18),lineHeight:"1.45"},h5:{fontSize:(0,r.D)(16),lineHeight:"1.5"},h6:{fontSize:(0,r.D)(14),lineHeight:"1.5"}}},fontSizes:{xs:(0,r.D)(12),sm:(0,r.D)(14),md:(0,r.D)(16),lg:(0,r.D)(18),xl:(0,r.D)(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:(0,r.D)(2),sm:(0,r.D)(4),md:(0,r.D)(8),lg:(0,r.D)(16),xl:(0,r.D)(32)},spacing:{xs:(0,r.D)(10),sm:(0,r.D)(12),md:(0,r.D)(16),lg:(0,r.D)(20),xl:(0,r.D)(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${(0,r.D)(1)} ${(0,r.D)(3)} rgba(0, 0, 0, 0.05), 0 ${(0,r.D)(1)} ${(0,r.D)(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${(0,r.D)(1)} ${(0,r.D)(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${(0,r.D)(10)} ${(0,r.D)(15)} ${(0,r.D)(-5)}, rgba(0, 0, 0, 0.04) 0 ${(0,r.D)(7)} ${(0,r.D)(7)} ${(0,r.D)(-5)}`,md:`0 ${(0,r.D)(1)} ${(0,r.D)(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${(0,r.D)(20)} ${(0,r.D)(25)} ${(0,r.D)(-5)}, rgba(0, 0, 0, 0.04) 0 ${(0,r.D)(10)} ${(0,r.D)(10)} ${(0,r.D)(-5)}`,lg:`0 ${(0,r.D)(1)} ${(0,r.D)(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${(0,r.D)(28)} ${(0,r.D)(23)} ${(0,r.D)(-7)}, rgba(0, 0, 0, 0.04) 0 ${(0,r.D)(12)} ${(0,r.D)(12)} ${(0,r.D)(-7)}`,xl:`0 ${(0,r.D)(1)} ${(0,r.D)(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${(0,r.D)(36)} ${(0,r.D)(28)} ${(0,r.D)(-7)}, rgba(0, 0, 0, 0.04) 0 ${(0,r.D)(17)} ${(0,r.D)(17)} ${(0,r.D)(-7)}`},other:{},components:{}}},172281:function(e,t,n){"use strict";var r=n(387959);n(514041),n(831085);function i(e){return!(e<0)&&!(e>9)&&parseInt(e.toString(),10)===e}function o(e){if(!(e.primaryColor in e.colors))throw Error("[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color");
3if("object"==typeof e.primaryShade&&(!i(e.primaryShade.dark)||!i(e.primaryShade.light))||"number"==typeof e.primaryShade&&!i(e.primaryShade))throw Error("[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }")}function s(e,t){if(!t)return o(e),e;let n=(0,r.$)(e,t);return t.fontFamily&&!t.headings?.fontFamily&&(n.headings.fontFamily=t.fontFamily),o(n),n}n.d(t,{io:function(){return s}})},845969:function(e,t,n){"use strict";var r=n(19239);n(514041),n(831085);var i=n(847495);function o(e,t,n){let o=(0,i.xd)(),s=o.components[e]?.defaultProps,a="function"==typeof s?s(o):s;return{...t,...a,...(0,r.J)(n)}}n.d(t,{Y:function(){return o}})},601912:function(e,t,n){"use strict";function r(e){return e}n.d(t,{K:function(){return r}})},289094:function(e,t,n){"use strict";var r=n(831085),i=n(514041),o=n(784817);function s(e){let t=(0,i.forwardRef)(e);return t.withProps=e=>{let n=(0,i.forwardRef)((n,i)=>(0,r.jsx)(t,{...e,...n,ref:i}));return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t.extend=o.D_,t}n.d(t,{v:function(){return s}})},161959:function(e,t,n){"use strict";function r(e){return e}n.d(t,{V:function(){return r}})},903165:function(e,t,n){"use strict";n(514041),n(831085);var r=n(847495),i=n(670290),o=n(843229);function s({classNames:e,styles:t,props:n,stylesCtx:a}){let l=(0,r.xd)();return{resolvedClassNames:(0,i.J)({theme:l,classNames:e,props:n,stylesCtx:a||void 0}),resolvedStyles:(0,o.N)({theme:l,styles:t,props:n,stylesCtx:a||void 0})}}n.d(t,{Y:function(){return s}})},670290:function(e,t,n){"use strict";var r=n(354357);let i={};function o({theme:e,classNames:t,props:n,stylesCtx:s}){let a;return a={},(Array.isArray(t)?t:[t]).map(t=>"function"==typeof t?t(e,n,s):t||i).forEach(e=>{Object.entries(e).forEach(([e,t])=>{a[e]?a[e]=(0,r.A)(a[e],t):a[e]=t})}),a}n.d(t,{J:function(){return o}})},843229:function(e,t,n){"use strict";function r({theme:e,styles:t,props:n,stylesCtx:i}){return(Array.isArray(t)?t:[t]).reduce((t,r)=>"function"==typeof r?{...t,...r(e,n,i)}:{...t,...r},{})}n.d(t,{N:function(){return r}})},717226:function(e,t,n){"use strict";n.d(t,{I:function(){return h}}),n(514041),n(831085);var r=n(730521),i=n(847495),o=n(354357);let s={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};var a=n(670290);function l({selector:e,stylesCtx:t,theme:n,classNames:r,props:i}){return(0,a.J)({theme:n,classNames:r,props:i,stylesCtx:t})[e]}var c=n(843229);function u({style:e,theme:t}){return Array.isArray(e)?[...e].reduce((e,n)=>({...e,...u({style:n,theme:t})}),{}):"function"==typeof e?e(t):null==e?{}:e}var d=n(19239);function h({name:e,classes:t,props:n,stylesCtx:f,className:p,style:m,rootSelector:g="root",unstyled:y,classNames:v,styles:b,vars:_,varsResolver:w,attributes:x}){let k=(0,i.xd)(),C=(0,r.AI)(),A=(0,r.If)(),D=(0,r.FI)(),S=(Array.isArray(e)?e:[e]).filter(e=>e),{withStylesTransform:E,getTransformedStyles:T}=function({props:e,stylesCtx:t,themeName:n}){let o=(0,i.xd)(),s=(0,r.m6)()?.();return{getTransformedStyles:r=>s?[...r.map(n=>s(n,{props:e,theme:o,ctx:t})),...n.map(n=>s(o.components[n]?.styles,{props:e,theme:o,ctx:t}))].filter(Boolean):[],withStylesTransform:!!s}}({props:n,stylesCtx:f,themeName:S});return(e,r)=>({className:function({theme:e,options:t,themeName:n,selector:r,classNamesPrefix:i,classNames:c,classes:u,unstyled:d,className:h,rootSelector:f,props:p,stylesCtx:m,withStaticClasses:g,headless:y,transformedStyles:v}){return(0,o.A)(function({theme:e,options:t,unstyled:n}){return(0,o.A)(t?.focusable&&!n&&(e.focusClassName||s[e.focusRing]),t?.active&&!n&&e.activeClassName)}({theme:e,options:t,unstyled:d||y}),function({themeName:e,theme:t,selector:n,props:r,stylesCtx:i}){return e.map(e=>(0,a.J)({theme:t,classNames:t.components[e]?.classNames,props:r,stylesCtx:i})?.[n])}({theme:e,themeName:n,selector:r,props:p,stylesCtx:m}),function({options:e,classes:t,selector:n,unstyled:r}){return e?.variant&&!r?t[`${n}--${e.variant}`]:void 0}({options:t,classes:u,selector:r,unstyled:d}),l({selector:r,stylesCtx:m,theme:e,classNames:c,props:p}),l({selector:r,stylesCtx:m,theme:e,classNames:v,props:p}),function({selector:e,stylesCtx:t,options:n,props:r,theme:i}){return(0,a.J)({theme:i,classNames:n?.classNames,props:n?.props||r,stylesCtx:t})[e]}({selector:r,stylesCtx:m,options:t,props:p,theme:e}),function({rootSelector:e,selector:t,className:n}){return e===t?n:void 0}({rootSelector:f,selector:r,className:h}),function({selector:e,classes:t,unstyled:n}){return n?void 0:t[e]}({selector:r,classes:u,unstyled:d||y}),g&&!y&&function({themeName:e,classNamesPrefix:t,selector:n,withStaticClass:r}){return!1===r?[]:e.map(e=>`${t}-${e}-${n}`)}({themeName:n,classNamesPrefix:i,selector:r,withStaticClass:t?.withStaticClass}),t?.className)}({theme:k,options:r,themeName:S,selector:e,classNamesPrefix:C,classNames:v,classes:t,unstyled:y,className:p,rootSelector:g,props:n,stylesCtx:f,withStaticClasse
3s:A,headless:D,transformedStyles:T([r?.styles,b])}),style:function({theme:e,themeName:t,selector:n,options:r,props:i,stylesCtx:o,rootSelector:s,styles:a,style:l,vars:h,varsResolver:f,headless:p,withStylesTransform:m}){return{...!m&&function({theme:e,themeName:t,props:n,stylesCtx:r,selector:i}){return t.map(t=>(0,c.N)({theme:e,styles:e.components[t]?.styles,props:n,stylesCtx:r})[i]).reduce((e,t)=>({...e,...t}),{})}({theme:e,themeName:t,props:i,stylesCtx:o,selector:n}),...!m&&(0,c.N)({theme:e,styles:a,props:i,stylesCtx:o})[n],...!m&&(0,c.N)({theme:e,styles:r?.styles,props:r?.props||i,stylesCtx:o})[n],...function({vars:e,varsResolver:t,theme:n,props:r,stylesCtx:i,selector:o,themeName:s,headless:a}){return[a?{}:t?.(n,r,i),...s.map(e=>n.components?.[e]?.vars?.(n,r,i)),e?.(n,r,i)].reduce((e,t)=>(t&&Object.keys(t).forEach(n=>{e[n]={...e[n],...(0,d.J)(t[n])}}),e),{})?.[o]}({theme:e,props:i,stylesCtx:o,vars:h,varsResolver:f,selector:n,themeName:t,headless:p}),...s===n?u({style:l,theme:e}):null,...u({style:r?.style,theme:e})}}({theme:k,themeName:S,selector:e,options:r,props:n,stylesCtx:f,rootSelector:g,styles:b,style:m,vars:_,varsResolver:w,headless:D,withStylesTransform:E}),...x?.[e]})}},677943:function(e,t,n){"use strict";var r=n(831085),i=n(514041);function o(e=null){let t=(0,i.createContext)(e);return[({children:e,value:n})=>(0,r.jsx)(t.Provider,{value:n,children:e}),()=>(0,i.useContext)(t)]}n.d(t,{e:function(){return o}})},751963:function(e,t,n){"use strict";var r=n(831085),i=n(514041);function o(e){let t=(0,i.createContext)(null);return[({children:e,value:n})=>(0,r.jsx)(t.Provider,{value:n,children:e}),()=>{let n=(0,i.useContext)(t);if(null===n)throw Error(e);return n}]}n.d(t,{F:function(){return o}})},387959:function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&!Array.isArray(e)}n.d(t,{$:function(){return function e(t,n){let i={...t};return r(t)&&r(n)&&Object.keys(n).forEach(o=>{r(n[o])&&o in t?i[o]=e(i[o],n[o]):i[o]=n[o]}),i}}})},19239:function(e,t,n){"use strict";function r(e){return Object.keys(e).reduce((t,n)=>(void 0!==e[n]&&(t[n]=e[n]),t),{})}n.d(t,{J:function(){return r}})},61673:function(e,t,n){"use strict";function r(e){return"object"==typeof e&&null!==e?"base"in e?e.base:void 0:e}n.d(t,{D:function(){return r}})},203721:function(e,t,n){"use strict";var r=n(28658);function i(e,t){return e in t?(0,r.px)(t[e]):(0,r.px)(e)}n.d(t,{r:function(){return i}})},159903:function(e,t,n){"use strict";let r={app:100,modal:200,popover:300,overlay:400,max:9999};function i(e){return r[e]}n.d(t,{I:function(){return i}})},117767:function(e,t,n){"use strict";var r=n(814830);function i(){return void 0!==r&&r.env&&1?"production":"development"}n.d(t,{_:function(){return i}})},860889:function(e,t,n){"use strict";var r=n(514041);function i(e){let t=r.version;return"string"!=typeof r.version||t.startsWith("18.")?e?.ref:e?.props?.ref}n.d(t,{x:function(){return i}})},621037:function(e,t,n){"use strict";var r=n(198085),i=n(455302);function o(e,t="size",n=!0){if(void 0!==e)return(0,r.t)(e)?n?(0,i.D)(e):e:`var(--${t}-${e})`}function s(e){return o(e,"mantine-spacing")}function a(e){return void 0===e?"var(--mantine-radius-default)":o(e,"mantine-radius")}function l(e){return o(e,"mantine-font-size")}function c(e){return o(e,"mantine-line-height",!1)}function u(e){if(e)return o(e,"mantine-shadow",!1)}n.d(t,{GY:function(){return s},YC:function(){return o},dh:function(){return u},ks:function(){return c},nJ:function(){return a},ny:function(){return l}})},356159:function(e,t,n){"use strict";var r=n(203721);function i(e,t){let n=e.map(e=>({value:e,px:(0,r.r)(e,t)}));return n.sort((e,t)=>e.px-t.px),n}n.d(t,{q:function(){return i}})},316019:function(e,t,n){"use strict";var r=n(514041);function i(e){return!Array.isArray(e)&&null!==e&&"object"==typeof e&&e.type!==r.Fragment}n.d(t,{v:function(){return i}})},198085:function(e,t,n){"use strict";function r(e){if("number"==typeof e)return!0;if("string"==typeof e){if(e.startsWith("calc(")||e.startsWith("var(")||e.includes(" ")&&""!==e.trim())return!0;let t=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|
3cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(e=>t.test(e))}return!1}n.d(t,{t:function(){return r}})},668809:function(e,t,n){"use strict";function r(e){return Object.keys(e)}n.d(t,{H:function(){return r}})},334709:function(e,t,n){"use strict";n.d(t,{},{l:()=>{}})},28658:function(e,t,n){"use strict";function r(e){let t="string"==typeof e&&e.includes("var(--mantine-scale)")?e.match(/^calc\((.*?)\)$/)?.[1].split("*")[0].trim():e;return"number"==typeof t?t:"string"==typeof t?t.includes("calc")||t.includes("var")?t:t.includes("px")?Number(t.replace("px","")):t.includes("rem")?16*Number(t.replace("rem","")):t.includes("em")?16*Number(t.replace("em","")):Number(t):0/0}n.d(t,{px:function(){return r}})},937018:function(e,t,n){"use strict";n.d(t,{i:function(){return c}});var r=n(831085),i=n(514041),o=n(651337);function s(e,t,n,r){return"center"===e||"center"===r?{top:t}:"end"===e?{bottom:n}:"start"===e?{top:n}:{}}function a(e,t,n,r,i){return"center"===e||"center"===r?{left:t}:"end"===e?{["ltr"===i?"right":"left"]:n}:"start"===e?{["ltr"===i?"left":"right"]:n}:{}}let l={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"},c=(0,i.forwardRef)(({position:e,arrowSize:t,arrowOffset:n,arrowRadius:i,arrowPosition:c,visible:u,arrowX:d,arrowY:h,style:f,...p},m)=>{let{dir:g}=(0,o.jH)();return u?(0,r.jsx)("div",{...p,ref:m,style:{...f,...function({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,arrowX:o,arrowY:c,dir:u}){let[d,h="center"]=e.split("-"),f={width:t,height:t,transform:"rotate(45deg)",position:"absolute",[l[d]]:r},p=-t/2;return"left"===d?{...f,...s(h,c,n,i),right:p,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:"right"===d?{...f,...s(h,c,n,i),left:p,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:"top"===d?{...f,...a(h,o,n,i,u),bottom:p,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:"bottom"===d?{...f,...a(h,o,n,i,u),top:p,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}({position:e,arrowSize:t,arrowOffset:n,arrowRadius:i,arrowPosition:c,dir:g,arrowX:d,arrowY:h})}}):null});c.displayName="@mantine/core/FloatingArrow"},841628:function(e,t,n){"use strict";function r(e,t){if("rtl"===e&&(t.includes("right")||t.includes("left"))){let[e,n]=t.split("-"),r="right"===e?"left":"right";return void 0===n?r:`${r}-${n}`}return t}n.d(t,{Q:function(){return r}})},427122:function(e,t,n){"use strict";n.d(t,{I:function(){return d},M:function(){return u}});var r=n(831085),i=n(514041),o=n(760978),s=n(621037),a=n(717226),l=n(427758),c={root:"m_5f75b09e",body:"m_5f6e695e",labelWrapper:"m_d3ea56bb",label:"m_8ee546b8",description:"m_328f68c0",error:"m_8e8a99cc"};let u=c,d=(0,i.forwardRef)(({__staticSelector:e,__stylesApiProps:t,className:n,classNames:i,styles:u,unstyled:d,children:h,label:f,description:p,id:m,disabled:g,error:y,size:v,labelPosition:b="left",bodyElement:_="div",labelElement:w="label",variant:x,style:k,vars:C,mod:A,attributes:D,...S},E)=>{let T=(0,a.I)({name:e,props:t,className:n,style:k,classes:c,classNames:i,styles:u,unstyled:d,attributes:D});return(0,r.jsx)(l.a,{...T("root"),ref:E,__vars:{"--label-fz":(0,s.ny)(v),"--label-lh":(0,s.YC)(v,"label-lh")},mod:[{"label-position":b},A],variant:x,size:v,...S,children:(0,r.jsxs)(l.a,{component:_,htmlFor:"label"===_?m:void 0,...T("body"),children:[h,(0,r.jsxs)("div",{...T("labelWrapper"),"data-disabled":g||void 0,children:[f&&(0,r.jsx)(l.a,{component:w,htmlFor:"label"===w?m:void 0,...T("label"),"data-disabled":g||void 0,children:f}),p&&(0,r.jsx)(o.p.Description,{size:v,__inheritStyles:!1,...T("description"),children:p}),y&&"boolean"!=typeof y&&(0,r.jsx)(o.p.Error,{size:v,__inheritStyles:!1,...T("error"),children:y})]})]})})});d.displayName="@mantine/core/InlineInput"},831199:function(e,t,n){"use strict";var r=n(831085);n(514041);var i=n(626266);function o({children:e,role:t}){let n=(0,i.e)();return n?(0,r.jsx)("div",{role:t,"aria-labelledby":n.labelId,"aria-describedby":n.describedBy,children:e}):(0,r.jsx)(r.Fragment,{children:e})}n.d(t,{F:function(){return o}})},908303:function(e,t,n){"use strict";n.d(t,{V:function(){return ep}});var r=n(831085),i=n(123464),o=n(514041),s=n(784817),a=n(845969),l=n(903165),c=n(427758),u=n(885268),d=n(49738),h=n(302059);function f({controlsRef:e,levelIndex:t,rowIndex:n,cellIndex:r,event:i}){let o=function(e){switch(e){case"ArrowDown":return"down";case"ArrowUp":return"up";case"ArrowRight":return"right";case"ArrowLeft":return"left";default:return null}}(i.key);if(o){i.preventDefault();let s=e.current?.map(e=>e.map(e=>e.length));!function e({controlsRef:t,direction:n,levelIndex:r,rowIndex:i,cellIndex:o,size:s}){let a=function({direction:e,levelIndex:t,rowIndex:n,cellIndex:r,size:i}){switch(e){case"up":if(0===t&&0===n)return null;if(0===n)return{levelIndex:t-1,rowIndex:r<=i[t-1][i[t-1].length-1]-1?i[t-1].length-1:i[t-1].length-2,cellIndex:r};
3return{levelIndex:t,rowIndex:n-1,cellIndex:r};case"down":if(n===i[t].length-1||n===i[t].length-2&&r>=i[t][i[t].length-1])return{levelIndex:t+1,rowIndex:0,cellIndex:r};return{levelIndex:t,rowIndex:n+1,cellIndex:r};case"left":if(0===t&&0===n&&0===r)return null;if(0===n&&0===r)return{levelIndex:t-1,rowIndex:i[t-1].length-1,cellIndex:i[t-1][i[t-1].length-1]-1};if(0===r)return{levelIndex:t,rowIndex:n-1,cellIndex:i[t][n-1]-1};return{levelIndex:t,rowIndex:n,cellIndex:r-1};case"right":if(n===i[t].length-1&&r===i[t][n]-1)return{levelIndex:t+1,rowIndex:0,cellIndex:0};if(r===i[t][n]-1)return{levelIndex:t,rowIndex:n+1,cellIndex:0};return{levelIndex:t,rowIndex:n,cellIndex:r+1};default:return{levelIndex:t,rowIndex:n,cellIndex:r}}}({direction:n,size:s,rowIndex:i,cellIndex:o,levelIndex:r});if(!a)return;let l=t.current?.[a.levelIndex]?.[a.rowIndex]?.[a.cellIndex];l&&(l.disabled||l.getAttribute("data-hidden")||l.getAttribute("data-outside")?e({controlsRef:t,direction:n,levelIndex:a.levelIndex,cellIndex:a.cellIndex,rowIndex:a.rowIndex,size:s}):l.focus())}({controlsRef:e,direction:o,levelIndex:t,rowIndex:n,cellIndex:r,size:s})}}var p=n(161959),m=n(621037),g=n(717226),y=n(305391),v=n(225957),b={calendarHeader:"m_730a79ed",calendarHeaderLevel:"m_f6645d97",calendarHeaderControl:"m_2351eeb0",calendarHeaderControlIcon:"m_367dc749"};let _={hasNextLevel:!0,withNext:!0,withPrevious:!0,headerControlsOrder:["previous","level","next"]},w=(0,p.V)((e,{size:t})=>({calendarHeader:{"--dch-control-size":(0,m.YC)(t,"dch-control-size"),"--dch-fz":(0,m.ny)(t)}})),x=(0,s.P9)((e,t)=>{let n=(0,a.Y)("CalendarHeader",_,e),{classNames:i,className:s,style:l,styles:u,unstyled:d,vars:h,nextIcon:f,previousIcon:p,nextLabel:m,previousLabel:x,onNext:k,onPrevious:C,onLevelClick:A,label:D,nextDisabled:S,previousDisabled:E,hasNextLevel:T,levelControlAriaLabel:O,withNext:M,withPrevious:N,headerControlsOrder:P,__staticSelector:R,__preventFocus:I,__stopPropagation:F,attributes:L,...j}=n,z=(0,g.I)({name:R||"CalendarHeader",classes:b,props:n,className:s,style:l,classNames:i,styles:u,unstyled:d,attributes:L,vars:h,varsResolver:w,rootSelector:"calendarHeader"}),$=I?e=>e.preventDefault():void 0,B=N&&(0,o.createElement)(y.N,{...z("calendarHeaderControl"),key:"previous","data-direction":"previous","aria-label":x,onClick:C,unstyled:d,onMouseDown:$,disabled:E,"data-disabled":E||void 0,tabIndex:I||E?-1:0,"data-mantine-stop-propagation":F||void 0},p||(0,r.jsx)(v.U,{...z("calendarHeaderControlIcon"),"data-direction":"previous",size:"45%"})),V=(0,o.createElement)(y.N,{component:T?"button":"div",...z("calendarHeaderLevel"),key:"level",onClick:T?A:void 0,unstyled:d,onMouseDown:T?$:void 0,disabled:!T,"data-static":!T||void 0,"aria-label":O,tabIndex:I||!T?-1:0,"data-mantine-stop-propagation":F||void 0},D),Y=M&&(0,o.createElement)(y.N,{...z("calendarHeaderControl"),key:"next","data-direction":"next","aria-label":m,onClick:k,unstyled:d,onMouseDown:$,disabled:S,"data-disabled":S||void 0,tabIndex:I||S?-1:0,"data-mantine-stop-propagation":F||void 0},f||(0,r.jsx)(v.U,{...z("calendarHeaderControlIcon"),"data-direction":"next",size:"45%"})),q=P.map(e=>"previous"===e?B:"level"===e?V:"next"===e?Y:null);return(0,r.jsx)(c.a,{...z("calendarHeader"),ref:t,...j,children:q})});x.classes=b,x.displayName="@mantine/dates/CalendarHeader";var k=n(213713),C={pickerControl:"m_dc6a3c71"};let A=(0,p.V)((e,{size:t})=>({pickerControl:{"--dpc-fz":(0,m.ny)(t),"--dpc-size":(0,m.YC)(t,"dpc-size")}})),D=(0,s.P9)((e,t)=>{let n=(0,a.Y)("PickerControl",null,e),{classNames:i,className:o,style:s,styles:l,unstyled:c,vars:u,firstInRange:d,lastInRange:h,inRange:f,__staticSelector:p,selected:m,disabled:v,attributes:b,..._}=n,w=(0,g.I)({name:p||"PickerControl",classes:C,props:n,className:o,style:s,classNames:i,styles:l,unstyled:c,attributes:b,vars:u,varsResolver:A,rootSelector:"pickerControl"});return(0,r.jsx)(y.N,{...w("pickerControl"),ref:t,unstyled:c,"data-picker-control":!0,"data-selected":m&&!v||void 0,"data-disabled":v||void 0,"data-in-range":f&&!v&&!m||void 0,"data-first-in-range":d&&!v||void 0,"data-last-in-range":h&&!v||void 0,disabled:v,..._})});function S({year:e,minDate:t,maxDate:n}){return(!!t||!!n)&&!!(t&&i(e).isBefore(t,"year")||n&&i(e).isAfter(n,"year"))}function E(e){let t=i(e).year(),n=t-t%10,r=0,o=[[],[],[],[]];for(let e=0;e<4;e+=1){let t=3===e?1:3;for(let s=0;s<t;s+=1)o[e].push(i(new Date(n+r,0)).format("YYYY-MM-DD")),r+=1}return o}D.classes=C,D.displayName="@mantine/dates/PickerControl";var T={yearsList:"m_9206547b",yearsListCell:"m_c5a19c7d"};let O={yearsListFormat:"YYYY",withCellSpacing:!0},M=(0,s.P9)((e,t)=>{let n=(0,a.Y)("YearsList",O,e),{classNames:o,className:s,style:l,styles:u,unstyled:d,vars:h,decade:f,yearsListFormat:p,locale:m,minDate:y,maxDate:v,getYearControlProps:b,__staticSelector:_,__getControlRef:w,__onControlKeyDown:x,__onControlClick:C,__onControlMouseEnter:A,__preventFocus:M,__stopPropagation:N,withCellSpacing:P,size:R,attributes:I,...F}=n,L=(0,g.I)({name:_||"YearsList",classes:T,props:n,className:s,style:l,classNames:o,styles:u,unstyled:d,attributes:I,vars:h,rootSelector:"yearsList"}),j=(0,k.E)(),z=E(f),$=function({years:e,minDate:t,maxDate:n,getYearControlProps:r}){let o=e.flat().filter(e=>!S({year:e,minDate:t,maxDate:n})&&!r?.(e)?.disabled),s=o.find(e=>r?.(e)?.selected);if(s)return s;let a=o.find(e=>i().isSame(e,"year"));return a||o[0]}({years:z,minDate:y,maxDate:v,getYearControlProps:b}),B=z.map((e,t)=>{let n=e.map((e,n)=>{let o=b?.(e),s=i(e).isSame($,"year");return(0,r.jsx)("td",{...L("yearsListCell"),"data-with-spacing":P||void 0,children:(0,r.jsx)(D,{...L("yearsListControl"),size:R,unstyled:d,"data-mantine-stop-propagation":N||void 0,disabled:S({year:e,minDate:y,maxDate:v}),ref:e=>{e&&w?.(t,n,e)},...o,onKeyDown:r=>{o?.onKeyDown?.(r),x?.(r,{rowIndex:t,cellIndex:n,date:e})},onClick:t=>{o?.onClick?.(t),C?.(t,e)},onMouseEnter:t=>{o?.onMouseEnter?.(t),A?.(t,e)},onMouseDown:e=>{o?.onMouseDown?.(e),M&&e.preventDefault()}
3,tabIndex:M||!s?-1:0,children:i(e).locale(j.getLocale(m)).format(p)})},n)});return(0,r.jsx)("tr",{...L("yearsListRow"),children:n},t)});return(0,r.jsx)(c.a,{component:"table",ref:t,size:R,...L("yearsList"),...F,children:(0,r.jsx)("tbody",{children:B})})});M.classes=T,M.displayName="@mantine/dates/YearsList";let N={decadeLabelFormat:"YYYY"},P=(0,s.P9)((e,t)=>{let n,{decade:o,locale:s,minDate:l,maxDate:u,yearsListFormat:d,getYearControlProps:h,__getControlRef:f,__onControlKeyDown:p,__onControlClick:m,__onControlMouseEnter:g,withCellSpacing:y,__preventFocus:v,nextIcon:b,previousIcon:_,nextLabel:w,previousLabel:C,onNext:A,onPrevious:D,nextDisabled:S,previousDisabled:T,levelControlAriaLabel:O,withNext:P,withPrevious:R,headerControlsOrder:I,decadeLabelFormat:F,classNames:L,styles:j,unstyled:z,__staticSelector:$,__stopPropagation:B,size:V,attributes:Y,...q}=(0,a.Y)("DecadeLevel",N,e),H=(0,k.E)(),[W,U]=[(n=E(o))[0][0],n[3][0]],G={__staticSelector:$||"DecadeLevel",classNames:L,styles:j,unstyled:z,size:V,attributes:Y},Z="boolean"==typeof S?S:!!u&&!i(U).endOf("year").isBefore(u),J="boolean"==typeof T?T:!!l&&!i(W).startOf("year").isAfter(l),K=(e,t)=>i(e).locale(s||H.locale).format(t);return(0,r.jsxs)(c.a,{"data-decade-level":!0,size:V,ref:t,...q,children:[(0,r.jsx)(x,{label:"function"==typeof F?F(W,U):`${K(W,F)} – ${K(U,F)}`,__preventFocus:v,__stopPropagation:B,nextIcon:b,previousIcon:_,nextLabel:w,previousLabel:C,onNext:A,onPrevious:D,nextDisabled:Z,previousDisabled:J,hasNextLevel:!1,levelControlAriaLabel:O,withNext:P,withPrevious:R,headerControlsOrder:I,...G}),(0,r.jsx)(M,{decade:o,locale:s,minDate:l,maxDate:u,yearsListFormat:d,getYearControlProps:h,__getControlRef:f,__onControlKeyDown:p,__onControlClick:m,__onControlMouseEnter:g,__preventFocus:v,__stopPropagation:B,withCellSpacing:y,...G})]})});P.classes={...M.classes,...x.classes},P.displayName="@mantine/dates/DecadeLevel";var R={levelsGroup:"m_30b26e33"};let I=(0,s.P9)((e,t)=>{let n=(0,a.Y)("LevelsGroup",null,e),{classNames:i,className:o,style:s,styles:l,unstyled:u,vars:d,__staticSelector:h,attributes:f,...p}=n,m=(0,g.I)({name:h||"LevelsGroup",classes:R,props:n,className:o,style:s,classNames:i,styles:l,unstyled:u,attributes:f,vars:d,rootSelector:"levelsGroup"});return(0,r.jsx)(c.a,{ref:t,...m("levelsGroup"),...p})});I.classes=R,I.displayName="@mantine/dates/LevelsGroup";let F={numberOfColumns:1},L=(0,s.P9)((e,t)=>{let{decade:n,locale:s,minDate:l,maxDate:c,yearsListFormat:u,getYearControlProps:d,__onControlClick:h,__onControlMouseEnter:p,withCellSpacing:m,__preventFocus:g,nextIcon:y,previousIcon:v,nextLabel:b,previousLabel:_,onNext:w,onPrevious:x,nextDisabled:k,previousDisabled:C,headerControlsOrder:A,classNames:D,styles:S,unstyled:E,__staticSelector:T,__stopPropagation:O,numberOfColumns:M,levelControlAriaLabel:N,decadeLabelFormat:R,size:L,vars:j,attributes:z,...$}=(0,a.Y)("DecadeLevelGroup",F,e),B=(0,o.useRef)([]),V=Array(M).fill(0).map((e,t)=>{let o=i(n).add(10*t,"years").format("YYYY-MM-DD");return(0,r.jsx)(P,{size:L,yearsListFormat:u,decade:o,withNext:t===M-1,withPrevious:0===t,decadeLabelFormat:R,__onControlClick:h,__onControlMouseEnter:p,__onControlKeyDown:(e,n)=>f({levelIndex:t,rowIndex:n.rowIndex,cellIndex:n.cellIndex,event:e,controlsRef:B}),__getControlRef:(e,n,r)=>{Array.isArray(B.current[t])||(B.current[t]=[]),Array.isArray(B.current[t][e])||(B.current[t][e]=[]),B.current[t][e][n]=r},levelControlAriaLabel:"function"==typeof N?N(o):N,locale:s,minDate:l,maxDate:c,__preventFocus:g,__stopPropagation:O,nextIcon:y,previousIcon:v,nextLabel:b,previousLabel:_,onNext:w,onPrevious:x,nextDisabled:k,previousDisabled:C,getYearControlProps:d,__staticSelector:T||"DecadeLevelGroup",classNames:D,styles:S,unstyled:E,withCellSpacing:m,headerControlsOrder:A,attributes:z},t)});return(0,r.jsx)(I,{classNames:D,styles:S,__staticSelector:T||"DecadeLevelGroup",ref:t,size:L,unstyled:E,attributes:z,...$,children:V})});L.classes={...I.classes,...P.classes},L.displayName="@mantine/dates/DecadeLevelGroup";var j={day:"m_396ce5cb"};let z=(0,p.V)((e,{size:t})=>({day:{"--day-size":(0,m.YC)(t,"day-size")}})),$=(0,s.P9)((e,t)=>{let n=(0,a.Y)("Day",null,e),{classNames:o,className:s,style:l,styles:c,unstyled:u,vars:d,date:h,disabled:f,__staticSelector:p,weekend:m,outside:v,selected:b,renderDay:_,inRange:w,firstInRange:x,lastInRange:k,hidden:C,static:A,highlightToday:D,attributes:S,...E}=n,T=(0,g.I)({name:p||"Day",classes:j,props:n,className:s,style:l,classNames:o,styles:c,unstyled:u,attributes:S,vars:d,varsResolver:z,rootSelector:"day"});return(0,r.jsx)(y.N,{...T("day",{style:C?{display:"none"}:void 0}),component:A?"div":"button",ref:t,disabled:f,"data-today":i(h).isSame(new Date,"day")||void 0,"data-hidden":C||void 0,"data-highlight-today":D||void 0,"data-disabled":f||void 0,"data-weekend":!f&&!v&&m||void 0,"data-outside":!f&&v||void 0,"data-selected":!f&&b||void 0,"data-in-range":w&&!f||void 0,"data-first-in-range":x&&!f||void 0,"data-last-in-range":k&&!f||void 0,"data-static":A||void 0,unstyled:u,...E,children:_?.(h)||i(h).date()})});$.classes=j,$.displayName="@mantine/dates/Day";var B={weekday:"m_18a3eca"};let V=(0,p.V)((e,{size:t})=>({weekdaysRow:{"--wr-fz":(0,m.ny)(t),"--wr-spacing":(0,m.GY)(t)}})),Y=(0,s.P9)((e,t)=>{let n=(0,a.Y)("WeekdaysRow",null,e),{classNames:o,className:s,style:l,styles:u,unstyled:d,vars:h,locale:f,firstDayOfWeek:p,weekdayFormat:m,cell
3Component:y="th",__staticSelector:v,withWeekNumbers:b,attributes:_,...w}=n,x=(0,g.I)({name:v||"WeekdaysRow",classes:B,props:n,className:s,style:l,classNames:o,styles:u,unstyled:d,attributes:_,vars:h,varsResolver:V,rootSelector:"weekdaysRow"}),C=(0,k.E)(),A=(function({locale:e,format:t="dd",firstDayOfWeek:n=1}){let r=i().day(n),o=[];for(let n=0;n<7;n+=1)"string"==typeof t?o.push(i(r).add(n,"days").locale(e).format(t)):o.push(t(i(r).add(n,"days").format("YYYY-MM-DD")));return o})({locale:C.getLocale(f),format:m,firstDayOfWeek:C.getFirstDayOfWeek(p)}).map((e,t)=>(0,r.jsx)(y,{...x("weekday"),children:e},t));return(0,r.jsxs)(c.a,{component:"tr",ref:t,...x("weekdaysRow"),...w,children:[b&&(0,r.jsx)(y,{...x("weekday"),children:"#"}),A]})});function q(e,t){return!t||i(e).isAfter(i(t).subtract(1,"day"),"day")}function H(e,t){return!t||i(e).isBefore(i(t).add(1,"day"),"day")}Y.classes=B,Y.displayName="@mantine/dates/WeekdaysRow";var W=n(534457),U=n(58390);i.extend(U);var G={month:"m_cc9820d3",monthCell:"m_8f457cd5",weekNumber:"m_6cff9dea"};let Z={withCellSpacing:!0},J=(0,p.V)((e,{size:t})=>({weekNumber:{"--wn-fz":(0,m.ny)(t),"--wn-size":(0,m.YC)(t,"wn-size")}})),K=(0,s.P9)((e,t)=>{let n=(0,a.Y)("Month",Z,e),{classNames:o,className:s,style:u,styles:d,unstyled:f,vars:p,__staticSelector:m,locale:y,firstDayOfWeek:v,weekdayFormat:b,month:_,weekendDays:w,getDayProps:x,excludeDate:C,minDate:A,maxDate:D,renderDay:S,hideOutsideDates:E,hideWeekdays:T,getDayAriaLabel:O,static:M,__getDayRef:N,__onDayKeyDown:P,__onDayCl
3ick:R,__onDayMouseEnter:I,__preventFocus:F,__stopPropagation:L,withCellSpacing:j,size:z,highlightToday:B,withWeekNumbers:V,attributes:U,...K}=n,X=(0,g.I)({name:m||"Month",classes:G,props:n,className:s,style:u,classNames:o,styles:d,unstyled:f,attributes:U,vars:p,varsResolver:J,rootSelector:"month"}),Q=(0,k.E)(),ee=function({month:e,firstDayOfWeek:t=1,consistentWeeks:n}){let r=i(e).subtract(i(e).date()-1,"day"),o=i(r.format("YYYY-M-D")),s=o.format("YYYY-MM-DD"),a=function(e,t=1){let n=i(e),r=0===t?6:t-1;for(;n.day()!==r;)n=n.add(1,"day");return n.format("YYYY-MM-DD")}(o.add(o.daysInMonth()-1,"day").format("YYYY-MM-DD"),t),l=[],c=i(function(e,t=1){let n=i(e);for(;n.day()!==t;)n=n.subtract(1,"day");return n.format("YYYY-MM-DD")}(s,t));for(;i(c).isBefore(a,"day");){let e=[];for(let t=0;t<7;t+=1)e.push(c.format("YYYY-MM-DD")),c=c.add(1,"day");l.push(e)}if(n&&l.length<6){let e=l[l.length-1],t=i(e[e.length-1]).add(1,"day");for(;l.length<6;){let e=[];for(let n=0;n<7;n+=1)e.push(t.format("YYYY-MM-DD")),t=t.add(1,"day");l.push(e)}}return l}({month:_,firstDayOfWeek:Q.getFirstDayOfWeek(v),consistentWeeks:Q.consistentWeeks}),et=function({dates:e,minDate:t,maxDate:n,getDayProps:r,excludeDate:o,hideOutsideDates:s,month:a}){let l=e.flat().filter(e=>H(e,n)&&q(e,t)&&!o?.(e)&&!r?.(e)?.disabled&&(!s||(0,W.t)(e,a))),c=l.find(e=>r?.(e)?.selected);if(c)return c;let u=l.find(e=>i().isSame(e,"date"));return u||l[0]}({dates:ee,minDate:(0,h.H)(A),maxDate:(0,h.H)(D),getDayProps:x,excludeDate:C,hideOutsideDates:E,month:_}),{resolvedClassNames:en,resolvedStyles:er}=(0,l.Y)({classNames:o,styles:d,props:n}),ei=ee.map((e,t)=>{let n,o=e.map((e,n)=>{let o=!(0,W.t)(e,_),s=O?.(e)||i(e).locale(y||Q.locale).format("D MMMM YYYY"),a=x?.(e),l=i(e).isSame(et,"date");return(0,r.jsx)("td",{...X("monthCell"),"data-with-spacing":j||void 0,children:(0,r.jsx)($,{__staticSelector:m||"Month",classNames:en,styles:er,unstyled:f,"data-mantine-stop-propagation":L||void 0,highlightToday:B,renderDay:S,date:e,size:z,weekend:Q.getWeekendDays(w).includes(i(e).get("day")),outside:o,hidden:!!E&&o,"aria-label":s,static:M,disabled:C?.(e)||!H(e,(0,h.H)(D))||!q(e,(0,h.H)(A)),ref:e=>{e&&N?.(t,n,e)},...a,onKeyDown:r=>{a?.onKeyDown?.(r),P?.(r,{rowIndex:t,cellIndex:n,date:e})},onMouseEnter:t=>{a?.onMouseEnter?.(t),I?.(t,e)},onClick:t=>{a?.onClick?.(t),R?.(t,e)},onMouseDown:e=>{a?.onMouseDown?.(e),F&&e.preventDefault()},tabIndex:F||!l?-1:0})},e.toString())});return(0,r.jsxs)("tr",{...X("monthRow"),children:[V&&(0,r.jsx)("td",{...X("weekNumber"),children:(n=e.find(e=>1===i(e).day()),i(n).isoWeek())}),o]},t)});return(0,r.jsxs)(c.a,{component:"table",...X("month"),size:z,ref:t,...K,children:[!T&&(0,r.jsx)("thead",{...X("monthThead"),children:(0,r.jsx)(Y,{__staticSelector:m||"Month",locale:y,firstDayOfWeek:v,weekdayFormat:b,size:z,classNames:en,styles:er,unstyled:f,withWeekNumbers:V})}),(0,r.jsx)("tbody",{...X("monthTbody"),children:ei})]})});K.classes=G,K.displayName="@mantine/dates/Month";let X={monthLabelFormat:"MMMM YYYY"},Q=(0,s.P9)((e,t)=>{let{month:n,locale:o,firstDayOfWeek:s,weekdayFormat:l,weekendDays:u,getDayProps:d,excludeDate:h,minDate:f,maxDate:p,renderDay:m,hideOutsideDates:g,hideWeekdays:y,getDayAriaLabel:v,__getDayRef:b,__onDayKeyDown:_,__onDayClick:w,__onDayMouseEnter:C,withCellSpacing:A,highlightToday:D,withWeekNumbers:S,__preventFocus:E,__stopPropagation:T,nextIcon:O,previousIcon:M,nextLabel:N,previousLabel:P,onNext:R,onPrevious:I,onLevelClick:F,nextDisabled:L,previousDisabled:j,hasNextLevel:z,levelControlAriaLabel:$,withNext:B,withPrevious:V,headerControlsOrder:Y,monthLabelFormat:q,classNames:H,styles:W,unstyled:U,__staticSelector:G,size:Z,static:J,attributes:Q,...ee}=(0,a.Y)("MonthLevel",X,e),et=(0,k.E)(),en={__staticSelector:G||"MonthLevel",classNames:H,styles:W,unstyled:U,size:Z,attributes:Q},er="boolean"==typeof L?L:!!p&&!i(n).endOf("month").isBefore(p),ei="boolean"==typeof j?j:!!f&&!i(n).startOf("month").isAfter(f);return(0,r.jsxs)(c.a,{"data-month-level":!0,size:Z,ref:t,...ee,children:[(0,r.jsx)(x,{label:"function"==typeof q?q(n):i(n).locale(o||et.locale).format(q),__preventFocus:E,__stopPropagation:T,nextIcon:O,previousIcon:M,nextLabel:N,previousLabel:P,onNext:R,onPrevious:I,onLevelClick:F,nextDisabled:er,previousDisabled:ei,hasNextLevel:z,levelControlAriaLabel:$,withNext:B,withPrevious:V,headerControlsOrder:Y,...en}),(0,r.jsx)(K,{month:n,locale:o,firstDayOfWeek:s,weekdayFormat:l,weekendDays:u,getDayProps:d,excludeDate:h,minDate:f,maxDate:p,renderDay:m,hideOutsideDates:g,hideWeekdays:y,getDayAriaLabel:v,__getDayRef:b,__onDayKeyDown:_,__onDayCl
3ick:w,__onDayMouseEnter:C,__preventFocus:E,__stopPropagation:T,static:J,withCellSpacing:A,highlightToday:D,withWeekNumbers:S,...en})]})});Q.classes={...K.classes,...x.classes},Q.displayName="@mantine/dates/MonthLevel";let ee={numberOfColumns:1},et=(0,s.P9)((e,t)=>{let{month:n,locale:s,firstDayOfWeek:l,weekdayFormat:c,weekendDays:u,getDayProps:d,excludeDate:h,minDate:p,maxDate:m,renderDay:g,hideOutsideDates:y,hideWeekdays:v,getDayAriaLabel:b,__onDayClick:_,__onDayMouseEnter:w,withCellSpacing:x,highlightToday:k,withWeekNumbers:C,__preventFocus:A,nextIcon:D,previousIcon:S,nextLabel:E,previousLabel:T,onNext:O,onPrevious:M,onLevelClick:N,nextDisabled:P,previousDisabled:R,hasNextLevel:F,headerControlsOrder:L,classNames:j,styles:z,unstyled:$,numberOfColumns:B,levelControlAriaLabel:V,monthLabelFormat:Y,__staticSelector:q,__stopPropagation:H,size:W,static:U,vars:G,attributes:Z,...J}=(0,a.Y)("MonthLevelGroup",ee,e),K=(0,o.useRef)([]),X=Array(B).fill(0).map((e,t)=>{let o=i(n).add(t,"months").format("YYYY-MM-DD");return(0,r.jsx)(Q,{month:o,withNext:t===B-1,withPrevious:0===t,monthLabelFormat:Y,__stopPropagation:H,__onDayClick:_,__onDayMouseEnter:w,__onDayKeyDown:(e,n)=>f({levelIndex:t,rowIndex:n.rowIndex,cellIndex:n.cellIndex,event:e,controlsRef:K}),__getDayRef:(e,n,r)=>{Array.isArray(K.current[t])||(K.current[t]=[]),Array.isArray(K.current[t][e])||(K.current[t][e]=[]),K.current[t][e][n]=r},levelControlAriaLabel:"function"==typeof V?V(o):V,locale:s,firstDayOfWeek:l,weekdayFormat:c,weekendDays:u,getDayProps:d,excludeDate:h,minDate:p,maxDate:m,renderDay:g,hideOutsideDates:y,hideWeekdays:v,getDayAriaLabel:b,__preventFocus:A,nextIcon:D,previousIcon:S,nextLabel:E,previousLabel:T,onNext:O,onPrevious:M,onLevelClick:N,nextDisabled:P,previousDisabled:R,hasNextLevel:F,classNames:j,styles:z,unstyled:$,__staticSelector:q||"MonthLevelGroup",size:W,static:U,withCellSpacing:x,highlightToday:k,withWeekNumbers:C,headerControlsOrder:L,attributes:Z},t)});return(0,r.jsx)(I,{classNames:j,styles:z,__staticSelector:q||"MonthLevelGroup",ref:t,size:W,attributes:Z,...J,children:X})});function en({month:e,minDate:t,maxDate:n}){return(!!t||!!n)&&!!(t&&i(e).isBefore(t,"month")||n&&i(e).isAfter(n,"month"))}et.classes={...I.classes,...Q.classes},et.displayName="@mantine/dates/MonthLevelGroup";var er={monthsList:"m_2a6c32d",monthsListCell:"m_fe27622f"};let ei={monthsListFormat:"MMM",withCellSpacing:!0},eo=(0,s.P9)((e,t)=>{let n=(0,a.Y)("MonthsList",ei,e),{classNames:o,className:s,style:l,styles:u,unstyled:d,vars:f,__staticSelector:p,year:m,monthsListFormat:y,locale:v,minDate:b,maxDate:_,getMonthControlProps:w,__getControlRef:x,__onControlKeyDown:C,__onControlClick:A,__onControlMouseEnter:S,__preventFocus:E,__stopPropagation:T,withCellSpacing:O,size:M,attributes:N,...P}=n,R=(0,g.I)({name:p||"MonthsList",classes:er,props:n,className:s,style:l,classNames:o,styles:u,unstyled:d,attributes:N,vars:f,rootSelector:"monthsList"}),I=(0,k.E)(),F=function(e){let t=i(e).startOf("year").toDate(),n=[[],[],[],[]],r=0;for(let e=0;e<4;e+=1)for(let o=0;o<3;o+=1)n[e].push(i(t).add(r,"months").format("YYYY-MM-DD")),r+=1;return n}(m),L=function({months:e,minDate:t,maxDate:n,getMonthControlProps:r}){let o=e.flat().filter(e=>!en({month:e,minDate:t,maxDate:n})&&!r?.(e)?.disabled),s=o.find(e=>r?.(e)?.selected);if(s)return s;let a=o.find(e=>i().isSame(e,"month"));return a||o[0]}({months:F,minDate:(0,h.H)(b),maxDate:(0,h.H)(_),getMonthControlProps:w}),j=F.map((e,t)=>{let n=e.map((e,n)=>{let o=w?.(e),s=i(e).isSame(L,"month");return(0,r.jsx)("td",{...R("monthsListCell"),"data-with-spacing":O||void 0,children:(0,r.jsx)(D,{...R("monthsListControl"),size:M,unstyled:d,__staticSelector:p||"MonthsList","data-mantine-stop-propagation":T||void 0,disabled:en({month:e,minDate:(0,h.H)(b),maxDate:(0,h.H)(_)}),ref:e=>{e&&x?.(t,n,e)},...o,onKeyDown:r=>{o?.onKeyDown?.(r),C?.(r,{rowIndex:t,cellIndex:n,date:e})},onClick:t=>{o?.onClick?.(t),A?.(t,e)},onMouseEnter:t=>{o?.onMouseEnter?.(t),S?.(t,e)},onMouseDown:e=>{o?.onMouseDown?.(e),E&&e.preventDefault()},tabIndex:E||!s?-1:0,children:i(e).locale(I.getLocale(v)).format(y)})},n)});
3return(0,r.jsx)("tr",{...R("monthsListRow"),children:n},t)});return(0,r.jsx)(c.a,{component:"table",ref:t,size:M,...R("monthsList"),...P,children:(0,r.jsx)("tbody",{children:j})})});eo.classes=er,eo.displayName="@mantine/dates/MonthsList";let es={yearLabelFormat:"YYYY"},ea=(0,s.P9)((e,t)=>{let{year:n,locale:o,minDate:s,maxDate:l,monthsListFormat:u,getMonthControlProps:d,__getControlRef:h,__onControlKeyDown:f,__onControlClick:p,__onControlMouseEnter:m,withCellSpacing:g,__preventFocus:y,nextIcon:v,previousIcon:b,nextLabel:_,previousLabel:w,onNext:C,onPrevious:A,onLevelClick:D,nextDisabled:S,previousDisabled:E,hasNextLevel:T,levelControlAriaLabel:O,withNext:M,withPrevious:N,headerControlsOrder:P,yearLabelFormat:R,__staticSelector:I,__stopPropagation:F,size:L,classNames:j,styles:z,unstyled:$,attributes:B,...V}=(0,a.Y)("YearLevel",es,e),Y=(0,k.E)(),q={__staticSelector:I||"YearLevel",classNames:j,styles:z,unstyled:$,size:L,attributes:B},H="boolean"==typeof S?S:!!l&&!i(n).endOf("year").isBefore(l),W="boolean"==typeof E?E:!!s&&!i(n).startOf("year").isAfter(s);return(0,r.jsxs)(c.a,{"data-year-level":!0,size:L,ref:t,...V,children:[(0,r.jsx)(x,{label:"function"==typeof R?R(n):i(n).locale(o||Y.locale).format(R),__preventFocus:y,__stopPropagation:F,nextIcon:v,previousIcon:b,nextLabel:_,previousLabel:w,onNext:C,onPrevious:A,onLevelClick:D,nextDisabled:H,previousDisabled:W,hasNextLevel:T,levelControlAriaLabel:O,withNext:M,withPrevious:N,headerControlsOrder:P,...q}),(0,r.jsx)(eo,{year:n,locale:o,minDate:s,maxDate:l,monthsListFormat:u,getMonthControlProps:d,__getControlRef:h,__onControlKeyDown:f,__onControlClick:p,__onControlMouseEnter:m,__preventFocus:y,__stopPropagation:F,withCellSpacing:g,...q})]})});ea.classes={...x.classes,...eo.classes},ea.displayName="@mantine/dates/YearLevel";let el={numberOfColumns:1},ec=(0,s.P9)((e,t)=>{let{year:n,locale:s,minDate:l,maxDate:c,monthsListFormat:u,getMonthControlProps:d,__onControlClick:h,__onControlMouseEnter:p,withCellSpacing:m,__preventFocus:g,nextIcon:y,previousIcon:v,nextLabel:b,previousLabel:_,onNext:w,onPrevious:x,onLevelClick:k,nextDisabled:C,previousDisabled:A,hasNextLevel:D,headerControlsOrder:S,classNames:E,styles:T,unstyled:O,__staticSelector:M,__stopPropagation:N,numberOfColumns:P,levelControlAriaLabel:R,yearLabelFormat:F,size:L,vars:j,attributes:z,...$}=(0,a.Y)("YearLevelGroup",el,e),B=(0,o.useRef)([]),V=Array(P).fill(0).map((e,t)=>{let o=i(n).add(t,"years").format("YYYY-MM-DD");return(0,r.jsx)(ea,{size:L,monthsListFormat:u,year:o,withNext:t===P-1,withPrevious:0===t,yearLabelFormat:F,__stopPropagation:N,__onControlClick:h,__onControlMouseEnter:p,__onControlKeyDown:(e,n)=>f({levelIndex:t,rowIndex:n.rowIndex,cellIndex:n.cellIndex,event:e,controlsRef:B}),__getControlRef:(e,n,r)=>{Array.isArray(B.current[t])||(B.current[t]=[]),Array.isArray(B.current[t][e])||(B.current[t][e]=[]),B.current[t][e][n]=r},levelControlAriaLabel:"function"==typeof R?R(o):R,locale:s,minDate:l,maxDate:c,__preventFocus:g,nextIcon:y,previousIcon:v,nextLabel:b,previousLabel:_,onNext:w,onPrevious:x,onLevelClick:k,nextDisabled:C,previousDisabled:A,hasNextLevel:D,getMonthControlProps:d,classNames:E,styles:T,unstyled:O,__staticSelector:M||"YearLevelGroup",withCellSpacing:m,headerControlsOrder:S,attributes:z},t)});return(0,r.jsx)(I,{classNames:E,styles:T,__staticSelector:M||"YearLevelGroup",ref:t,size:L,unstyled:O,attributes:z,...$,children:V})});ec.classes={...ea.classes,...I.classes},ec.displayName="@mantine/dates/YearLevelGroup";var eu=n(138218);function ed(e,t){return e?"month"===e?0:"year"===e?1:2:t||0}function eh(e,t,n){var r;return 0===(r=(0,eu.q)(ed(e,0),ed(t,0),ed(n,2)))?"month":1===r?"year":"decade"}let ef={maxLevel:"decade",minLevel:"month",__updateDateOnYearSelect:!0,__updateDateOnMonthSelect:!0,enableKeyboardNavigation:!0},ep=(0,s.P9)((e,t)=>{let n=(0,a.Y)("Calendar",ef,e),{vars:s,maxLevel:f,minLevel:p,defaultLevel:m,level:g,onLevelChange:y,date:v,defaultDate:b,onDateChange:_,numberOfColumns:w,columnsToScroll:x,ariaLabels:k,nextLabel:C,previousLabel:A,onYearSelect:D,onMonthSelect:S,onYearMouseEnter:E,onMonthMouseEnter:T,headerControlsOrder:O,__updateDateOnYearSelect:M,__updateDateOnMonthSelect:N,__setDateRef:P,__setLevelRef:R,firstDayOfWeek:I,weekdayFormat:F,weekendDays:j,getDayProps:z,excludeDate:$,renderDay:B,hideOutsideDates:V,hideWeekdays:Y,getDayAriaLabel:q,monthLabelFormat:H,nextIcon:W,previousIcon:U,__onDayCl
3ick:G,__onDayMouseEnter:Z,withCellSpacing:J,highlightToday:K,withWeekNumbers:X,monthsListFormat:Q,getMonthControlProps:ee,yearLabelFormat:en,yearsListFormat:er,getYearControlProps:ei,decadeLabelFormat:eo,classNames:es,styles:ea,unstyled:el,minDate:eu,maxDate:ed,locale:ep,__staticSelector:em,size:eg,__preventFocus:ey,__stopPropagation:ev,onNextDecade:eb,onPreviousDecade:e_,onNextYear:ew,onPreviousYear:ex,onNextMonth:ek,onPreviousMonth:eC,static:eA,enableKeyboardNavigation:eD,attributes:eS,...eE}=n,{resolvedClassNames:eT,resolvedStyles:eO}=(0,l.Y)({classNames:es,styles:ea,props:n}),[eM,eN]=(0,u.Z)({value:g?eh(g,p,f):void 0,defaultValue:m?eh(m,p,f):void 0,finalValue:eh(void 0,p,f),onChange:y}),[eP,eR]=(0,d.w)({type:"default",value:(0,h.H)(v),defaultValue:(0,h.H)(b),onChange:_});(0,o.useImperativeHandle)(P,()=>e=>{eR(e)}),(0,o.useImperativeHandle)(R,()=>e=>{eN(e)});let eI={__staticSelector:em||"Calendar",styles:eO,classNames:eT,unstyled:el,size:eg,attributes:eS},eF=x||w||1,eL=new Date,ej=eu&&i(eL).isAfter(eu)?eu:i(eL).format("YYYY-MM-DD"),ez=eP||ej,e$=()=>{let e=i(ez).add(eF,"year").format("YYYY-MM-DD");ew?.(e),eR(e)},eB=()=>{let e=i(ez).subtract(eF,"year").format("YYYY-MM-DD");ex?.(e),eR(e)},eV=()=>{let e=i(ez).add(10*eF,"year").format("YYYY-MM-DD");eb?.(e),eR(e)},eY=()=>{let e=i(ez).subtract(10*eF,"year").format("YYYY-MM-DD");e_?.(e),eR(e)},eq=(0,o.useRef)(null);return(0,o.useEffect)(()=>{if(!eD||eA)return;let e=e=>{if(!eq.current?.contains(document.activeElement))return;let t=e.ctrlKey||e.metaKey,n=e.shiftKey;switch(e.key){case"ArrowUp":t&&n?(e.preventDefault(),eY()):t&&(e.preventDefault(),eB());break;case"ArrowDown":t&&n?(e.preventDefault(),eV()):t&&(e.preventDefault(),e$());break;case"y":case"Y":"month"===eM&&(e.preventDefault(),eN("year"))}};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[eD,eA,eM,e$,eB,eV,eY]),(0,r.jsxs)(c.a,{ref:e=>{eq.current=e,"function"==typeof t?t(e):t&&(t.current=e)},size:eg,"data-calendar":!0,...eE,children:["month"===eM&&(0,r.jsx)(et,{month:ez,minDate:eu,maxDate:ed,firstDayOfWeek:I,weekdayFormat:F,weekendDays:j,getDayProps:z,excludeDate:$,renderDay:B,hideOutsideDates:V,hideWeekdays:Y,getDayAriaLabel:q,onNext:()=>{let e=i(ez).add(eF,"month").format("YYYY-MM-DD");ek?.(e),eR(e)},onPrevious:()=>{let e=i(ez).subtract(eF,"month").format("YYYY-MM-DD");eC?.(e),eR(e)},hasNextLevel:"month"!==f,onLevelClick:()=>eN("year"),numberOfColumns:w,locale:ep,levelControlAriaLabel:k?.monthLevelControl,nextLabel:k?.nextMonth??C,nextIcon:W,previousLabel:k?.previousMonth??A,previousIcon:U,monthLabelFormat:H,__onDayClick:G,__onDayMouseEnter:Z,__preventFocus:ey,__stopPropagation:ev,static:eA,withCellSpacing:J,highlightToday:K,withWeekNumbers:X,headerControlsOrder:O,...eI}),"year"===eM&&(0,r.jsx)(ec,{year:ez,numberOfColumns:w,minDate:eu,maxDate:ed,monthsListFormat:Q,getMonthControlProps:ee,locale:ep,onNext:e$,onPrevious:eB,hasNextLevel:"month"!==f&&"year"!==f,onLevelClick:()=>eN("decade"),levelControlAriaLabel:k?.yearLevelControl,nextLabel:k?.nextYear??C,nextIcon:W,previousLabel:k?.previousYear??A,previousIcon:U,yearLabelFormat:en,__onControlMouseEnter:T,__onControlClick:(e,t)=>{N&&eR(t),eN(eh("month",p,f)),S?.(t)},__preventFocus:ey,__stopPropagation:ev,withCellSpacing:J,headerControlsOrder:O,...eI}),"decade"===eM&&(0,r.jsx)(L,{decade:ez,minDate:eu,maxDate:ed,yearsListFormat:er,getYearControlProps:ei,locale:ep,onNext:eV,onPrevious:eY,numberOfColumns:w,nextLabel:k?.nextDecade??C,nextIcon:W,previousLabel:k?.previousDecade??A,previousIcon:U,decadeLabelFormat:eo,__onControlMouseEnter:E,__onControlClick:(e,t)=>{M&&eR(t),eN(eh("year",p,f)),D?.(t)},__preventFocus:ey,__stopPropagation:ev,withCellSpacing:J,headerControlsOrder:O,...eI})]})});ep.classes={...L.classes,...ec.classes,...et.classes},ep.displayName="@mantine/dates/Calendar"},447815:function(e,t,n){"use strict";function r(e){let{maxLevel:t,minLevel:n,defaultLevel:r,level:i,onLevelChange:o,nextIcon:s,previousIcon:a,date:l,defaultDate:c,onDateChange:u,numberOfColumns:d,columnsToScroll:h,ariaLabels:f,nextLabel:p,previousLabel:m,onYearSelect:g,onMonthSelect:y,onYearMouseEnter:v,onMonthMouseEnter:b,onNextMonth:_,onPreviousMonth:w,onNextYear:x,onPreviousYear:k,onNextDecade:C,onPreviousDecade:A,withCellSpacing:D,highlightToday:S,__updateDateOnYearSelect:E,__updateDateOnMonthSelect:T,__setDateRef:O,__setLevelRef:M,withWeekNumbers:N,headerControlsOrder:P,firstDayOfWeek:R,weekdayFormat:I,weekendDays:F,getDayProps:L,excludeDate:j,renderDay:z,hideOutsideDates:$,hideWeekdays:B,getDayAriaLabel:V,monthLabelFormat:Y,monthsListFormat:q,getMonthControlProps:H,yearLabelFormat:W,yearsListFormat:U,getYearControlProps:G,decadeLabelFormat:Z,allowSingleDateInRange:J,allowDeselect:K,minDate:X,maxDate:Q,locale:ee,...et}=e;return{calendarProps:{maxLevel:t,minLevel:n,defaultLevel:r,level:i,onLevelChange:o,nextIcon:s,previousIcon:a,date:l,defaultDate:c,onDateChange:u,numberOfColumns:d,columnsToScroll:h,ariaLabels:f,nextLabel:p,previousLabel:m,onYearSelect:g,onMonthSelect:y,onYearMouseEnter:v,onMonthMouseEnter:b,onNextMonth:_,onPreviousMonth:w,onNextYear:x,onPreviousYear:k,onNextDecade:C,onPreviousDecade:A,withCellSpacing:D,highlightToday:S,__updateDateOnYearSelect:E,__updateDateOnMonthSelect:T,__setDateRef:O,withWeekNumbers:N,headerControlsOrder:P,firstDayOfWeek:R,weekdayFormat:I,weekendDays:F,getDayProps:L,excludeDate:j,renderDay:z,hideOutsideDates:$,hideWeekdays:B,getDayAriaLabel:V,monthLabelFormat:Y,monthsListFormat:q,getMonthControlProps:H,yearLabelFormat:W,yearsListFormat:U,getYearControlProps:G,decadeLabelFormat:Z,allowSingleDateInRange:J,allowDeselect:K,minDate:X,maxDate:Q,locale:ee},others:et}}n.d(t,{q:function(){return r}})},24750:function(e,t,n){"use strict";n.d(t,{l:function(){return w}});var r=n(831085),i=n(123464),o=n(514041),s=n(161959),a=n(621037),l=n(784817),c=n(845969),u=n(71
37226),d=n(903165),h=n(305391),f=n(427758),p=n(855208),m=n(908303),g=n(447815),y=n(534457),v={datePickerRoot:"m_765a40cf",presetsList:"m_d6a681e1",presetButton:"m_acd30b22"};let b=(0,s.V)((e,{size:t})=>({datePickerRoot:{"--preset-font-size":(0,a.ny)(t)}})),_={type:"default",defaultLevel:"month",numberOfColumns:1,size:"sm"},w=(0,l.P9)((e,t)=>{let n=(0,c.Y)("DatePicker",_,e),{allowDeselect:s,allowSingleDateInRange:a,value:l,defaultValue:w,onChange:x,onMouseLeave:k,classNames:C,styles:A,__staticSelector:D,__onDayClick:S,__onDayMouseEnter:E,__onPresetSelect:T,__stopPropagation:O,presets:M,className:N,style:P,unstyled:R,size:I,vars:F,attributes:L,...j}=n,{calendarProps:z,others:$}=(0,g.q)(j),B=(0,o.useRef)(null),V=(0,o.useRef)(null),Y=(0,u.I)({name:D||"DatePicker",classes:v,props:n,className:N,style:P,classNames:C,styles:A,unstyled:R,attributes:L,rootSelector:M?"datePickerRoot":void 0,varsResolver:b,vars:F}),{onDateChange:q,onRootMouseLeave:H,onHoveredDateChange:W,getControlProps:U,_value:G,setValue:Z}=(0,p.k)({type:$.type,level:"day",allowDeselect:s,allowSingleDateInRange:a,value:l,defaultValue:w,onChange:x,onMouseLeave:k}),{resolvedClassNames:J,resolvedStyles:K}=(0,d.Y)({classNames:C,styles:A,props:n}),X=(0,r.jsx)(m.V,{ref:t,classNames:J,styles:K,__staticSelector:D||"DatePicker",onMouseLeave:H,size:I,...z,...!M?$:{},__stopPropagation:O,__setDateRef:B,__setLevelRef:V,minLevel:z.minLevel||"month",__onDayMouseEnter:(e,t)=>{W(t),E?.(e,t)},__onDayClick:(e,t)=>{q(t),S?.(e,t)},getDayProps:e=>({...U(e),...z.getDayProps?.(e)}),getMonthControlProps:e=>({selected:"string"==typeof G&&(0,y.t)(e,G),...z.getMonthControlProps?.(e)}),getYearControlProps:e=>({selected:"string"==typeof G&&i(e).isSame(G,"year"),...z.getYearControlProps?.(e)}),hideOutsideDates:z.hideOutsideDates??1!==z.numberOfColumns,...!M?{className:N,style:P,attributes:L}:{}});if(!M)return X;let Q=M.map((e,t)=>(0,r.jsx)(h.N,{...Y("presetButton"),onClick:()=>{var t;let n;void 0!==(n=Array.isArray(t=e.value)?t[0]:t)&&(B.current?.(n),V.current?.("month"),T?T(n):Z(t))},onMouseDown:e=>e.preventDefault(),"data-mantine-stop-propagation":O||void 0,children:e.label},t));return(0,r.jsxs)(f.a,{...Y("datePickerRoot"),size:I,...$,children:[(0,r.jsx)("div",{...Y("presetsList"),children:Q}),X]})});w.classes=m.V.classes,w.displayName="@mantine/dates/DatePicker"},811430:function(e,t,n){"use strict";var r=n(831085),i=n(784817),o=n(845969),s=n(903165);n(123464),n(514041);var a=n(877723),l=n(748495),c=n(447815),u=n(24750),d=n(121997);let h={type:"default",valueFormat:"MMMM D, YYYY",closeOnChange:!0,sortDates:!0,dropdownType:"popover"},f=(0,i.P9)((e,t)=>{let n=(0,o.Y)("DatePickerInput",h,e),{type:i,value:f,defaultValue:p,onChange:m,valueFormat:g,labelSeparator:y,locale:v,classNames:b,styles:_,unstyled:w,closeOnChange:x,size:k,variant:C,dropdownType:A,sortDates:D,minDate:S,maxDate:E,vars:T,defaultDate:O,valueFormatter:M,presets:N,attributes:P,...R}=n,{resolvedClassNames:I,resolvedStyles:F}=(0,s.Y)({classNames:b,styles:_,props:n}),{calendarProps:L,others:j}=(0,c.q)(R),{_value:z,setValue:$,formattedValue:B,dropdownHandlers:V,dropdownOpened:Y,onClear:q,shouldClear:H}=(0,l.j)({type:i,value:f,defaultValue:p,onChange:m,locale:v,format:g,labelSeparator:y,closeOnChange:x,sortDates:D,valueFormatter:M}),W=Array.isArray(z)?z[0]||O:z||O;return(0,r.jsx)(d._,{formattedValue:B,dropdownOpened:Y,dropdownHandlers:V,classNames:I,styles:F,unstyled:w,ref:t,onClear:q,shouldClear:H,value:z,size:k,variant:C,dropdownType:A,...j,type:i,__staticSelector:"DatePickerInput",attributes:P,children:(0,r.jsx)(u.l,{...L,size:k,variant:C,type:i,value:z,defaultDate:W||(0,a.U)({maxDate:E,minDate:S}),onChange:$,locale:v,classNames:I,styles:F,unstyled:w,__staticSelector:"DatePickerInput",__stopPropagation:"popover"===A,minDate:S,maxDate:E,presets:N,attributes:P})})});f.classes={...d._.classes,...u.l.classes},f.displayName="@mantine/dates/DatePickerInput",n.d(t,{},{t:f})},37170:function(e,t,n){"use strict";n.d(t,{K:function(){return ei}});var r=n(831085),i=n(123464),o=n(514041),s=n(784817),a=n(845969),l=n(717226),c=n(903165),u=n(450562),d=n(648658),h=n(189102),f=n(42536),p=n(644356),m=n(49738),g=n(213713);function y(e,t){let n=e?i(e):i();if(""===t)return n.format("YYYY-MM-DD HH:mm:ss");let[r,o,s=0]=t.split(":").map(Number);return(n=(n=(n=(n=n.set("hour",r)).set("minute",o)).set("second",s)).set("millisecond",0)).format("YYYY-MM-DD HH:mm:ss")}var v=n(877723),b=n(302059);function _(e,t,n){return e||t?e&&i(n).isBefore(e)?(0,b.M)(e):t&&i(n).isAfter(t)?(0,b.M)(t):(0,b.M)(n):(0,b.M)(n)}var w=n(447815),x=n(24750),k=n(121997),C=n(161959),A=n(621037),D=n(419967),S=n(438872),E=n(175677),T=n(398046),O=n(138218);function M(e){return e<10?`0${e}`:`${e}`}let N=(0,o.forwardRef)(({value:e,min:t,max:n,onChange:i,focusable:o,step:s,onNextInput:a,onPreviousInput:l,onFocus:c,readOnly:u,allowTemporaryZero:d=!1,...h},f)=>{let p=Number(n.toFixed(0)[0]),m=n+1-s;return(0,r.jsx)("input",{ref:f,type:"text",role:"spinbutton","aria-valuemin":t,"aria-valuemax":n,"aria-valuenow":null===e?0:e,"data-empty":null===e||void 0,inputMode:"numeric",placeholder:"--",value:null===e?"":M(e),onChange:e=>(e=>{if(u)return;let r=e.replace(/\D/g,"");if(""!==r){let o=parseInt(r,10),s=d&&0===o&&t>0?0:(0,O.q)(o,t,n);i(s),(s>p||e.startsWith("00"))&&a?.()}})(e.currentTarget.value),onKeyDown:r=>{u||(("0"===r.key||"Num0"===r.key)&&0===e&&(r.preventDefault(),a?.()),"Home"===r.key&&(r.preventDefault(),i(t)),"End"===r.key&&(r.preventDefault(),i(n)),("Backspace"===r.key||"Delete"===r.key)&&(r.preventDefault(),null!==e?i(null):l?.()),"ArrowRight"===r.key&&(r.preventDefault(),a?.()),"ArrowLeft"===r.key&&(r.preventDefault(),l?.()),"ArrowUp"===r.key&&(r.preventDefault(),i(null===e?t:(0,O.q)(e+s,t,m))),"ArrowDown"===r.key&&(r.preventDefault(),i(null===e?m:(0,O.q)(e-s,t,m))))},onFocus:e=>{e.currentTarget.select(),c?.(e)},onClick:e=>{e.stopPropagation(),e.currentTarget.select()},onMouseDown:e=>e.stopPropagation(),...h})});N.displayName="@mantine/dates/SpinInput";let[P,R]=(0,n(751963).F)("TimeInput component was not found in the component tree"),I=(0,o.forwardRef)(({labels:e,value:t,onChange:n,className:i,style:o,onPreviousInput:s,readOnly:a,onMouseDown:l,onTouchStart:c,inputType:u,...d},h)=>{let f=R(),p=r=>{a||("Home"===r.key&&(r.preventDefault(),n(e.am)),"End"===r.key&&(r.preventDefault(),n(e.pm)),("Backspace"===r.key||"Delete"===r.key)&&(r.preventDefault(),null===t?s?.():n(null)),"ArrowLeft"===r.key&&(r.preventDefault(),s?.()),("ArrowUp"===r.key||"ArrowDown"===r.key)&&(r.preventDefault(),n(t===e.am?e.pm:e.am)),"KeyA"===r.code&&(r.preventDefault(),n(e.am)),"KeyP"===r.code&&(r.preventDefault(),n(e.pm)))};return"input"===u?(0,r.jsx)("input",{...f.getStyles("field",{className:i,style:o}),ref:h,value:t||"--",onChange:e=>!a&&n(e.target.value||null),onClick:e=>e.stopPropagation(),onKeyDown:p,onMouseDown:e=>{e.stopPropagation(),l?.(e)},"data-am-pm":!0,...d}):(0,r.jsxs)("select",{...f.getStyles("field",{className:i,style:o}),ref:h,value:t||"",onChange:e=>!a&&n(e.target.value||null),onClick:e=>e.stopPropagation(),onKeyDown:p,onMouseDown:e=>{e.stopPropagation(),l?.(e)},"data-am-pm":!0,...d,children:[(0,r.jsx)("option",{value:"",children:"--"}),(0,r.jsx)("option",{value:e.am,children:e.am}),(0,r.jsx)("option",{value:e.pm,children:e.pm})]})});I.displayName="@mantine/dates/AmPmInput";var F=n(305391);function L({value:e,active:t,onSelect:n}){let i=R();return(0,r.jsx)(F.N,{mod:{active:t},onClick:()=>n(e),onMouseDown:e=>e.preventDefault(),"data-value":e,tabIndex:-1,...i.getStyles("control"),children:"number"==typeof e?M(e):e})}function j({labels:e,value:t,onSelect:n}){let i=R(),o=[e.am,e.pm].map(e=>(0,r.jsx)(L,{value:e,active:t===e,onSelect:n},e));return(0,r.jsx)("div",{...i.getStyles("controlsList"),children:o})}L.displayName="@mantine/dates/TimeControl",j.displayName="@mantine/dates/AmPmControlsList";var z=n(541463);function $({min:e,max:t,step:n,value:i,onSelect:s,reversed:a}){let l=R(),c=(0,o.useRef)(null),u=function(e,t,n){let r=[];for(let i=e;i<=t;i+=n)r.push(i);return r}(e,t,n),d=(a?u.reverse():u).map(e=>(0,r.jsx)(L,{value:e,active:i===e,onSelect:s},e));return(0,o.useEffect)(()=>{null!==i&&requestAnimationFrame(()=>
3{let e=c.current?.querySelector(`[data-value="${i}"]`);!function(e,t){if(!e||!t)return!1;let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return n.top>=r.top&&n.bottom<=r.bottom&&n.left>=r.left&&n.right<=r.right}(e,c.current)&&e?.scrollIntoView({block:"nearest"})})},[i]),(0,r.jsx)(z.F,{h:l.maxDropdownContentHeight,type:"never",viewportRef:c,...l.getStyles("scrollarea"),...l.scrollAreaProps,children:(0,r.jsx)("div",{...l.getStyles("controlsList"),children:d})})}$.displayName="@mantine/dates/TimeControlsList";var B=n(648244);function V(e){let[t=null,n=null,r=null]=e.split(":").map(Number);return{hours:t,minutes:n,seconds:r}}function Y({time:e,compare:t,withSeconds:n}){let r=V(e),i=V(t);return n?r.hours===i.hours&&r.minutes===i.minutes&&r.seconds===i.seconds:r.hours===i.hours&&r.minutes===i.minutes}function q({value:e,format:t="24h",amPmLabels:n={am:"AM",pm:"PM"},withSeconds:i=!1}){return(0,r.jsx)(r.Fragment,{children:function({value:e,format:t,amPmLabels:n,withSeconds:r}){let i=V("string"==typeof e?e:`${e.getHours()}:${e.getMinutes()}${r?`:${e.getSeconds()}`:""}`);if(null===i.hours||null===i.minutes)return null;if("24h"===t)return`${M(i.hours)}:${M(i.minutes)}${r?`:${M(i.seconds||0)}`:""}`;let o=i.hours>=12,s=i.hours%12==0?12:i.hours%12;return`${s}:${M(i.minutes)}${r?`:${M(i.seconds||0)}`:""} ${o?n.pm:n.am}`}({value:e,format:t,amPmLabels:n,withSeconds:i})})}function H({value:e,active:t,onChange:n,format:i,amPmLabels:o,withSeconds:s}){let a=R();return(0,r.jsx)(F.N,{mod:{active:t},onClick:()=>n(e),...a.getStyles("presetControl"),children:(0,r.jsx)(q,{withSeconds:s,value:e,format:i,amPmLabels:o})})}function W({value:e,data:t,onChange:n,format:i,amPmLabels:o,withSeconds:s}){let a=R(),l=t.values.map(t=>(0,r.jsx)(H,{value:t,format:i,amPmLabels:o,withSeconds:s,active:Y({time:t,compare:e,withSeconds:s}),onChange:n},t));return(0,r.jsxs)("div",{...a.getStyles("presetsGroup"),children:[(0,r.jsx)("div",{...a.getStyles("presetsGroupLabel"),children:t.label}),(0,r.jsx)(B.r,{cols:s?2:3,spacing:4,children:l})]})}function U({presets:e,format:t,amPmLabels:n,withSeconds:i,value:o,onChange:s}){let a=R();if(0===e.length)return null;if("string"==typeof e[0]){let l=e.map(e=>(0,r.jsx)(H,{value:e,format:t,amPmLabels:n,withSeconds:i,active:Y({time:e,compare:o,withSeconds:i}),onChange:s},e));return(0,r.jsx)(z.F.Autosize,{mah:a.maxDropdownContentHeight,type:"never",...a.getStyles("scrollarea"),...a.scrollAreaProps,children:(0,r.jsx)("div",{...a.getStyles("presetsRoot"),children:(0,r.jsx)(B.r,{cols:i?2:3,spacing:4,children:l})})})}let l=e.map((e,a)=>(0,r.jsx)(W,{data:e,value:o,format:t,amPmLabels:n,withSeconds:i,onChange:s},a));return(0,r.jsx)(z.F.Autosize,{mah:a.maxDropdownContentHeight,type:"never",...a.getStyles("scrollarea"),...a.scrollAreaProps,children:(0,r.jsx)("div",{...a.getStyles("presetsRoot"),children:l})})}function G(e){let[t=0,n=0,r=0]=e.split(":").map(Number);return 3600*t+60*n+r}function Z(e,t,n){var r;let i,o,s,a=G(e);return i=Math.floor((r=Math.max(G(t),Math.min(a,G(n))))/3600),o=Math.floor(r%3600/60),s=r%60,{timeString:`${M(i)}:${M(o)}:${M(s)}`,hours:i,minutes:o,seconds:s}}function J({time:e,format:t,amPmLabels:n}){if(""===e)return{hours:null,minutes:null,seconds:null,amPm:null};let{hours:r,minutes:i,seconds:o}=V(e),s={hours:r,minutes:i,seconds:o};return"12h"===t?function({hours:e,minutes:t,seconds:n,amPmLabels:r}){if(null===e)return{hours:null,minutes:null,seconds:null,amPm:null};let i=e>=12?r.pm:r.am;return{hours:e%12==0?12:e%12,minutes:"number"==typeof t?t:null,seconds:"number"==typeof n?n:null,amPm:i}}({...s,amPmLabels:n}):{...s,amPm:null}}function K({hours:e,minutes:t,seconds:n,format:r,withSeconds:i,amPm:o,amPmLabels:s}){return null===e||null===t||i&&null===n?{valid:!1,value:""}:"24h"===r?{valid:!0,value:`${M(e)}:${M(t)}${i?`:${M(n)}`:""}`}:null===o?{valid:!1,value:""}:{valid:!0,value:function({hours:e,minutes:t,seconds:n,amPm:r,amPmLabels:i,withSeconds:o}){let s=e;return r===i.pm&&12!==e?s+=12:r===i.am&&12===e&&(s=0),`${M(s)}:${M(t)}${o?`:${M(n||0)}`:""}`}({hours:e,minutes:t,seconds:n,amPm:o,amPmLabels:s,withSeconds:i})}}q.displayName="@mantine/dates/TimeValue",H.displayName="@mantine/dates/TimePresetControl",W.displayName="@mantine/dates/TimePresetGroup",U.displayName="@mantine/dates/TimePresets";var X={fieldsRoot:"m_7a8f1e6d",fieldsGroup:"m_d6bb0a54",controlsList:"m_b97ecb26",controlsListGroup:"m_31fe42f9",dropdown:"m_9c4817c3",control:"m_154c536b",presetControl:"m_7be09d0c",presetsGroup:"m_7d00001d",presetsGroupLabel:"m_d8d918d7",field:"m_6b43ba88"};let Q={hoursStep:1,minutesStep:1,secondsStep:1,format:"24h",amPmLabels:{am:"AM",pm:"PM"},pasteSplit:J,maxDropdownContentHeight:200},ee=(0,C.V)((e,{size:t})=>({dropdown:{"--control-font-size":(0,A.ny)(t)}})),et=(0,s.P9)((e,t)=>{let n=(0,a.Y)("TimePicker",Q,e),{classNames:i,className:s,style:u,styles:d,unstyled:f,vars:m,onClick:g,format:y,value:v,defaultValue:b,onChange:_,hoursStep:w,minutesStep:x,secondsStep:k,withSeconds:C,hoursInputLabel:A,minutesInputLabel:O,secondsInputLabel:M,amPmInputLabel:R,amPmLabels:F,clearable:L,onMouseDown:z,onFocusCapture:B,onBlurCapture:V,min:Y,max:q,popoverProps:H,withDropdown:W,rightSection:G,onFocus:et,onBlur:en,clearButtonProps:er,hoursInputProps:ei,minutesInputProps:eo,secondsInputProps:es,amPmSelectProps:ea,readOnly:el,disabled:ec,size:eu,name:ed,form:eh,hiddenInputProps:ef,labelProps:ep,pasteSplit:em,hoursRef:eg,minutesRef:ey,secondsRef:ev,amPmRef:eb,presets:e_,maxDropdownContentHeight:ew,scrollAreaProps:ex,attributes:ek,reverseTimeControlsList:eC,...eA}=n,{resolvedClassNames:eD,resolvedStyles:eS}=(0,c.Y)({classNames:i,styles:d,props:n}),eE=(0,l.I)({name:"TimePicker",classes:X,props:n,className:s,style:u,classNames:i,styles:d,unstyled:f,attributes:ek,vars:m,varsResolver:ee}),eT=function({value:e,defaultValue:t,onChange:n,format:r,amPmLabels:i,withSeconds:s=!1,min:a,max:l,clearable:c,readOnly:u,disabled:d,pasteSplit:h}){let f=J({time:e||t||"",amPmLabels:i,format:r}),m=(0,o.useRef)(!0),[g,y]=(0,o.useState)(f.hours),[v,b]=(0,o.useState)(f.minutes),[_,w]=(0,o.useState)(f.seconds),[x,k]=(0,o.useState)(f.amPm),C=c&&!u&&!d&&(null!==g||null!==v||null!==_||null!==x),A=(0,o.useRef)(null),D=(0,o.useRef)(null),S=(0,o.useRef)(null),E=(0,o.useRef)(null),T=e=>{"hours"===e&&A.current?.focus(),"minutes"===e&&D.current?.focus(),"seconds"===e&&S.current?.focus(),"amPm"===e&&E.current?.focus()}
3,O=(t,o)=>{let a=K({...{hours:g,minutes:v,seconds:_,amPm:x,[t]:o},format:r,withSeconds:s,amPmLabels:i});a.valid?(m.current=!1,"hours"===t&&y(o),"minutes"===t&&b(o),"seconds"===t&&w(o),"amPm"===t&&k(o),n?.(a.value)):(m.current=!1,"string"==typeof e&&""!==e&&n?.(""))},M=K({hours:g,minutes:v,seconds:_,format:r,withSeconds:s,amPm:x,amPmLabels:i});return(0,p.C)(()=>{if(""===e){m.current=!1,y(null),b(null),w(null),k(null),m.current=!0;return}if(m.current&&"string"==typeof e){let t=J({time:e||"",amPmLabels:i,format:r});y(t.hours),b(t.minutes),w(t.seconds),k(t.amPm)}m.current=!0},[e]),{refs:{hours:A,minutes:D,seconds:S,amPm:E},values:{hours:g,minutes:v,seconds:_,amPm:x},setHours:e=>{let t=e;"12h"===r&&"number"==typeof e&&e>12&&(t=(e-1)%12+1),y(t),O("hours",t),T("hours")},setMinutes:e=>{b(e),O("minutes",e),T("minutes")},setSeconds:e=>{w(e),O("seconds",e),T("seconds")},setAmPm:e=>{k(e),O("amPm",e),T("amPm")},focus:T,clear:()=>{m.current=!1,y(null),b(null),w(null),k(null),n?.(""),T("hours")},onPaste:e=>{e.preventDefault();let t=(h||J)({time:e.clipboardData.getData("text"),format:r,amPmLabels:i}),o=K({...t,format:r,withSeconds:s,amPmLabels:i});if(o.valid){m.current=!1;let e=Z(o.value,a||"00:00:00",l||"23:59:59");n?.(e.timeString),y(t.hours),b(t.minutes),w(t.seconds),k(t.amPm)}},setTimeString:e=>{m.current=!1;let t=J({time:e,amPmLabels:i,format:r});y(t.hours),b(t.minutes),w(t.seconds),k(t.amPm),n?.(e)},isClearable:C,hiddenInputValue:M.value}}({value:v,defaultValue:b,onChange:_,format:y,amPmLabels:F,withSeconds:C,min:Y,max:q,clearable:L,disabled:ec,readOnly:el,pasteSplit:em}),eO=(0,h.pc)(eT.refs.hours,eg),eM=(0,h.pc)(eT.refs.minutes,ey),eN=(0,h.pc)(eT.refs.seconds,ev),eP=(0,h.pc)(eT.refs.amPm,eb),eR=(0,T.B)(),eI=(0,o.useRef)(!1),[eF,eL]=(0,o.useState)(!1),ej=e=>{eI.current||(eI.current=!0,et?.(e))};return(0,r.jsx)(P,{value:{getStyles:eE,scrollAreaProps:ex,maxDropdownContentHeight:ew},children:(0,r.jsxs)(D.A,{opened:eF,transitionProps:{duration:0},position:"bottom-start",withRoles:!1,disabled:ec||el||!W,...H,children:[(0,r.jsx)(D.A.Target,{children:(0,r.jsxs)(S.O,{component:"div",size:eu,disabled:ec,ref:t,onClick:e=>{g?.(e),eT.focus("hours")},onMouseDown:e=>{e.preventDefault(),z?.(e)},onFocusCapture:e=>{eL(!0),B?.(e)},onBlurCapture:e=>{eL(!1),V?.(e)},rightSection:G||eT.isClearable&&(0,r.jsx)(E.J,{...er,size:eu,onClick:e=>{eT.clear(),er?.onClick?.(e)},onMouseDown:e=>{e.preventDefault(),er?.onMouseDown?.(e)}}),labelProps:{htmlFor:eR,...ep},style:u,className:s,classNames:eD,styles:eS,__staticSelector:"TimePicker",...eA,children:[(0,r.jsx)("div",{...eE("fieldsRoot"),dir:"ltr",children:(0,r.jsxs)("div",{...eE("fieldsGroup"),onBlur:e=>{if(!e.currentTarget.contains(e.relatedTarget)){let t=K({...eT.values,format:y,amPmLabels:F,withSeconds:!!C});if(t.valid&&Y&&q){let e=Z(t.value,Y,q);e.timeString!==t.value&&eT.setTimeString(e.timeString)}eI.current=!1,en?.(e)}},children:[(0,r.jsx)(N,{id:eR,...ei,...eE("field",{className:ei?.className,style:ei?.style}),value:eT.values.hours,onChange:eT.setHours,onNextInput:()=>eT.focus("minutes"),min:+("12h"===y),max:"12h"===y?12:23,allowTemporaryZero:"12h"===y,focusable:!0,step:w,ref:eO,"aria-label":A,readOnly:el,disabled:ec,onPaste:eT.onPaste,onFocus:e=>{ej(e),ei?.onFocus?.(e)},onBlur:e=>{let t=e.currentTarget.value,n=t?parseInt(t,10):null;"12h"===y&&0===n&&eT.setHours(12),ei?.onBlur?.(e)}}),(0,r.jsx)("span",{children:":"}),(0,r.jsx)(N,{...eo,...eE("field",{className:eo?.className,style:eo?.style}),value:eT.values.minutes,onChange:eT.setMinutes,min:0,max:59,focusable:!0,step:x,ref:eM,onPreviousInput:()=>eT.focus("hours"),onNextInput:()=>C?eT.focus("seconds"):eT.focus("amPm"),"aria-label":O,tabIndex:-1,readOnly:el,disabled:ec,onPaste:eT.onPaste,onFocus:e=>{ej(e),eo?.onFocus?.(e)}}),C&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{children:":"}),(0,r.jsx)(N,{...es,...eE("field",{className:es?.className,style:es?.style}),value:eT.values.seconds,onChange:eT.setSeconds,min:0,max:59,focusable:!0,step:k,ref:eN,onPreviousInput:()=>eT.focus("minutes"),onNextInput:()=>eT.focus("amPm"),"aria-label":M,tabIndex:-1,readOnly:el,disabled:ec,onPaste:eT.onPaste,onFocus:e=>{ej(e),es?.onFocus?.(e)}})]}),"12h"===y&&(0,r.jsx)(I,{...ea,inputType:W?"input":"select",labels:F,value:eT.values.amPm,onChange:eT.setAmPm,ref:eP,"aria-label":R,onPreviousInput:()=>C?eT.focus("seconds"):eT.focus("minutes"),readOnly:el,disabled:ec,tabIndex:-1,onPaste:eT.onPaste,onFocus:e=>{ej(e),ea?.onFocus?.(e)}})]})}),(0,r.jsx)("input",{type:"hidden",name:ed,form:eh,value:eT.hiddenInputValue,...ef})]})}),(0,r.jsx)(D.A.Dropdown,{...eE("dropdown"),onMouseDown:e=>e.preventDefault(),children:e_?(0,r.jsx)(U,{value:eT.hiddenInputValue,onChange:eT.setTimeString,format:y,presets:e_,amPmLabels:F,withSeconds:C||!1}):(0,r.jsxs)("div",{...eE("controlsListGroup"),children:[(0,r.jsx)($,{min:+("12h"===y),max:"12h"===y?12:23,step:w,value:eT.values.hours,onSelect:eT.setHours,reversed:eC}),(0,r.jsx)($,{min:0,max:59,step:x,value:eT.values.minutes,onSelect:eT.setMinutes,reversed:eC}),C&&(0,r.jsx)($,{min:0,max:59,step:k,value:eT.values.seconds,onSelect:eT.setSeconds,reversed:eC}),"12h"===y&&(0,r.jsx)(j,{labels:F,value:eT.values.amPm,onSelect:eT.setAmPm})]})})]})})});et.displayName="@mantine/dates/TimePicker",et.classes=X;var en={timeWrapper:"m_208d2562",timeInput:"m_62ee059"};let er={dropdownType:"popover",size:"sm"},ei=(0,s.P9)((e,t)=>{let n=(0,a.Y)("DateTimePicker",er,e),{value:s,defaultValue:b,onChange:C,valueFormat:A,locale:D,classNames:S,styles:E,unstyled:T,timePickerProps:O,submitButtonProps:M,withSeconds:N,level:P,defaultLevel:R,size:I,variant:F,dropdownType:L,vars:j,minDate:z,maxDate:$,defaultDate:B,defaultTimeValue:V,presets:Y,attributes:q,onDropdownClose:H,...W}=n,U=(0,l.I)({name:"DateTimePicker",classes:en,props:n,classNames:S,styles:E,unstyled:T,attributes:q,vars:j}),{resolvedClassNames:G,resolvedStyles:Z}=(0,c.Y)({classNames:S,styles:E,props:n}),J=(0,o.useRef)(null),K=(0,h.pc)(J,O?.hoursRef),{calendarProps:{allowSingleDateInRange:X,...Q},others:ee}=(0,w.q)(W),ei=(0,g.E)(),[eo,es]=(0,m.w)({type:"default",value:s,defaultValue:b,onChange:C,withTime:!0}),ea=B||eo,el=e=>e?i(e).format(N?"HH:mm:ss":"HH:mm"):"",[ec,eu]=(0,o.useState)(V||el(eo)),[ed,eh]=(0,o.useState)(P||R||"month"),[ef,ep]=(0,f.j)(!1),em=eo?i(eo).locale(ei.getLocale(D)).format(A||(N?"DD/MM/YYYY HH:mm:ss":"DD/MM/YYYY HH:mm")):"";(0,p.C)(()=>{ef||eu(el(eo))},[eo,ef]),(0,p.C)(()=>{ef&&eh("month")},[ef]);let eg="popover"===L,ey=()=>{let e=_(z,$,eo);eo&&eo!==e&&es(_(z,$,eo)),H?.()};return(0,r.jsxs)(k._,{formattedValue:em,dropdownOpened:!W.disabled&&ef,dropdownHandlers:ep,classNames:G,styles:Z,unstyled:T,ref:t,onClear:()=>es(null),shouldClear:!!eo,value:eo,size:I,variant:F,dropdownType:L,...ee,type:"default",__staticSelector:"DateTimePicker",onDropdownClose:ey,withTime:!0,attributes:q,children:[(0,r.jsx)(x.l,{...Q,maxDate:$,minDate:z,size:I,variant:F,type:"default",value:eo,defaultDate:ea||(0,v.U)({maxDate:$,minDate:z}),onChange:e=>{e&&es(y(_(z,$,e),ec||V||"")),J.current?.focus()},locale:D,classNames:G,styles:Z,unstyled:T,__staticSelector:"DateTimePicker",__stopPropagation:eg,level:P,defaultLevel:R,onLevelChange:e=>{eh(e),Q.onLevelChange?.(e)},presets:Y,__onPresetSelect:e=>{es(e),e&&eu(el(e))},attributes:q}),"month"===ed&&(0,r.jsxs)("div",{...U("timeWrapper"),children:[(0,r.jsx)(et,{value:ec,withSeconds:N,unstyled:T,min:function({minDate:e,value:t}){let n=e?i(e).format("HH:mm:ss"):null;return t&&e&&t===e&&null!=n?n:void 0}({minDate:z,value:eo}),max:function({maxDate:e,value:t}){let n=e?i(e).format("HH:mm:ss"):null;return t&&e&&t===e&&null!=n?n:void 0}({maxDate:$,value:eo}),...O,...U("timeInput",{className:O?.className,style:O?.style}),onChange:e=>{O?.onChange?.(e),eu(e),e&&es(y(eo,e))},onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),ep.close())},size:I,"data-mantine-stop-propagation":eg||void 0,hoursRef:K,attributes:q}),(0,r.jsx)(u.M,{variant:"default",size:`input-${I||"sm"}
3`,...U("submitButton",{className:M?.className,style:M?.style}),unstyled:T,"data-mantine-stop-propagation":eg||void 0,children:(0,r.jsx)(d.S,{size:"30%"}),...M,onClick:e=>{M?.onClick?.(e),ep.close(),ey()}})]})]})});ei.classes={...en,...k._.classes,...x.l.classes},ei.displayName="@mantine/dates/DateTimePicker"},213713:function(e,t,n){"use strict";var r=n(514041),i=n(491502);function o(){let e=(0,r.useContext)(i.sg),t=(0,r.useCallback)(t=>t||e.locale,[e.locale]),n=(0,r.useCallback)(t=>"number"==typeof t?t:e.firstDayOfWeek,[e.firstDayOfWeek]),o=(0,r.useCallback)(t=>Array.isArray(t)?t:e.weekendDays,[e.weekendDays]),s=(0,r.useCallback)(t=>"string"==typeof t?t:e.labelSeparator,[e.labelSeparator]);return{...e,getLocale:t,getFirstDayOfWeek:n,getWeekendDays:o,getLabelSeparator:s}}n.d(t,{E:function(){return o}})},168606:function(e,t,n){"use strict";var r=n(831085);n(123464);var i=n(302059);function o({value:e,type:t,name:n,form:s,withTime:a=!1}){return(0,r.jsx)("input",{type:"hidden",value:function({value:e,type:t,withTime:n}){let r=n?i.M:i.H;if("range"===t&&Array.isArray(e)){let t=r(e[0]),n=r(e[1]);return t?n?`${t} – ${n}`:`${t} –`:""}return"multiple"===t&&Array.isArray(e)?e.filter(Boolean).join(", "):!Array.isArray(e)&&e?r(e):""}({value:e,type:t,withTime:a}),name:n,form:s})}o.displayName="@mantine/dates/HiddenDatesInput",n.d(t,{E:function(){return o}})},534457:function(e,t,n){"use strict";var r=n(123464);function i(e,t){return r(e).format("YYYY-MM")===r(t).format("YYYY-MM")}n.d(t,{t:function(){return i}})},121997:function(e,t,n){"use strict";n.d(t,{_:function(){return h}});var r=n(831085),i=n(354357),o=n(784817),s=n(503075),a=n(760978),l=n(649883),c=n(419967),u=n(168606),d={input:"m_6fa5e2aa"};let h=(0,o.P9)((e,t)=>{let{inputProps:n,wrapperProps:o,placeholder:h,classNames:f,styles:p,unstyled:m,popoverProps:g,modalProps:y,dropdownType:v,children:b,formattedValue:_,dropdownHandlers:w,dropdownOpened:x,onClick:k,clearable:C,onClear:A,clearButtonProps:D,rightSection:S,shouldClear:E,readOnly:T,disabled:O,value:M,name:N,form:P,type:R,onDropdownClose:I,withTime:F,...L}=(0,s.I)("PickerInputBase",{size:"sm"},e),j=(0,r.jsx)(a.p.ClearButton,{onClick:A,unstyled:m,...D}),z=()=>{"range"===R&&Array.isArray(M)&&M[0]&&!M[1]&&A(),w.close()};return(0,r.jsxs)(r.Fragment,{children:["modal"===v&&!T&&(0,r.jsx)(l.a,{opened:x,onClose:z,withCloseButton:!1,size:"auto","data-dates-modal":!0,unstyled:m,...y,children:b}),(0,r.jsx)(a.p.Wrapper,{...o,children:(0,r.jsxs)(c.A,{position:"bottom-start",opened:x,trapFocus:!0,returnFocus:!1,unstyled:m,onClose:I,...g,disabled:g?.disabled||"modal"===v||T,onChange:e=>{e||(g?.onClose?.(),z())},children:[(0,r.jsx)(c.A.Target,{children:(0,r.jsx)(a.p,{"data-dates-input":!0,"data-read-only":T||void 0,disabled:O,component:"button",type:"button",multiline:!0,onClick:e=>{k?.(e),w.toggle()},__clearSection:j,__clearable:C&&E&&!T&&!O,rightSection:S,...n,ref:t,classNames:{...f,input:(0,i.A)(d.input,f?.input)},...L,children:_||(0,r.jsx)(a.p.Placeholder,{error:n.error,unstyled:m,className:f?.placeholder,style:p?.placeholder,children:h})})}),(0,r.jsx)(c.A.Dropdown,{"data-dates-dropdown":!0,children:b})]})}),(0,r.jsx)(u.E,{value:M,name:N,form:P,type:R,withTime:F})]})});h.classes=d,h.displayName="@mantine/dates/PickerInputBase"},748495:function(e,t,n){"use strict";n.d(t,{j:function(){return a}});var r=n(123464),i=n(42536),o=n(213713),s=n(49738);function a({type:e,value:t,defaultValue:n,onChange:l,locale:c,format:u,closeOnChange:d,sortDates:h,labelSeparator:f,valueFormatter:p}){let m=(0,o.E)(),[g,y]=(0,i.j)(!1),[v,b]=(0,s.w)({type:e,value:t,defaultValue:n,onChange:l}),_=function({formatter:e,...t}){return(e||function({type:e,date:t,locale:n,format:i,labelSeparator:o}){let s=e=>r(e).locale(n).format(i);if("default"===e)return null===t?"":s(t);if("multiple"===e)return t.map(s).join(", ");if("range"===e&&Array.isArray(t)){if(t[0]&&t[1])return`${s(t[0])} ${o} ${s(t[1])}`;if(t[0])return`${s(t[0])} ${o} `}return""})(t)}({type:e,date:v,locale:m.getLocale(c),format:u,labelSeparator:m.getLabelSeparator(f),formatter:p}),w=t=>{d&&("default"===e&&y.close(),"range"===e&&t[0]&&t[1]&&y.close()),h&&"multiple"===e?b([...t].sort((e,t)=>
3r(e).isAfter(r(t))?1:-1)):b(t)},x="range"===e?!!v[0]:"multiple"===e?v.length>0:null!==v;return{_value:v,setValue:w,onClear:()=>w("range"===e?[null,null]:"multiple"===e?[]:null),shouldClear:x,formattedValue:_,dropdownOpened:g,dropdownHandlers:y}}},855208:function(e,t,n){"use strict";n.d(t,{k:function(){return a}});var r=n(123464),i=n(514041),o=n(49738);function s(e,t){let n=[...t].sort((e,t)=>r(e).isAfter(r(t))?1:-1);return r(n[0]).startOf("day").subtract(1,"ms").isBefore(e)&&r(n[1]).endOf("day").add(1,"ms").isAfter(e)}function a({type:e,level:t,value:n,defaultValue:l,onChange:c,allowSingleDateInRange:u,allowDeselect:d,onMouseLeave:h}){let[f,p]=(0,o.w)({type:e,value:n,defaultValue:l,onChange:c}),[m,g]=(0,i.useState)("range"===e&&f[0]&&!f[1]?f[0]:null),[y,v]=(0,i.useState)(null),b="range"===e?e=>{h?.(e),v(null)}:h,_="range"===e&&m?v:()=>{};return(0,i.useEffect)(()=>{if("range"===e)if(f[0]&&!f[1])g(f[0]);else{let e=null==f[0]&&null==f[1],t=null!=f[0]&&null!=f[1];(e||t)&&(g(null),v(null))}},[f]),{onDateChange:n=>{if("range"===e){if(m&&!f[1]){if(r(n).isSame(m,t)&&!u){g(null),v(null),p([null,null]);return}let e=[n,m];e.sort((e,t)=>r(e).isAfter(r(t))?1:-1),p(e),v(null),g(null);return}if(f[0]&&!f[1]&&r(n).isSame(f[0],t)&&!u){g(null),v(null),p([null,null]);return}p([n,null]),v(null),g(n);return}"multiple"===e?f.some(e=>r(e).isSame(n,t))?p(f.filter(e=>!r(e).isSame(n,t))):p([...f,n]):f&&d&&r(n).isSame(f,t)?p(null):p(n)},onRootMouseLeave:b,onHoveredDateChange:_,getControlProps:n=>{if("range"===e)return{selected:f.some(e=>e&&r(e).isSame(n,t)),inRange:m&&y?s(n,[y,m]):!!f[0]&&!!f[1]&&s(n,f),firstInRange:!!f[0]&&!!r(n).isSame(f[0],t)&&!(y&&r(y).isBefore(f[0])),lastInRange:f[1]?r(n).isSame(f[1],t):!!f[0]&&!!y&&r(y).isBefore(f[0])&&r(n).isSame(f[0],t),"data-autofocus":!!f[0]&&r(f[0]).isSame(n,t)||void 0};if("multiple"===e)return{selected:f.some(e=>e&&r(e).isSame(n,t)),"data-autofocus":!!f[0]&&r(f[0]).isSame(n,t)||void 0};let i=r(f).isSame(n,t);return{selected:i,"data-autofocus":i||void 0}},_value:f,setValue:p}}},49738:function(e,t,n){"use strict";var r=n(514041),i=n(885268);n(123464);var o=n(302059);let s=e=>"range"===e?[null,null]:"multiple"===e?[]:null,a=(e,t)=>{let n=t?o.M:o.H;return Array.isArray(e)?e.map(n):n(e)};function l({type:e,value:t,defaultValue:n,onChange:o,withTime:c=!1}){let u=(0,r.useRef)(e),[d,h,f]=(0,i.Z)({value:a(t,c),defaultValue:a(n,c),finalValue:s(e),onChange:o}),p=d;return u.current!==e&&(u.current=e,void 0===t&&h(p=void 0!==n?n:s(e))),[p,h,f]}n.d(t,{w:function(){return l}})},877723:function(e,t,n){"use strict";var r=n(123464),i=n(302059);function o({minDate:e,maxDate:t}){let n=r();return e||t?e&&r(n).isBefore(e)?(0,i.H)(e):t&&r(n).isAfter(t)?(0,i.H)(t):(0,i.H)(n):(0,i.H)(n)}n.d(t,{U:function(){return o}})},302059:function(e,t,n){"use strict";var r=n(123464);function i(e){return null==e||""===e?e:r(e).format("YYYY-MM-DD")}function o(e){return null==e||""===e?e:r(e).format("YYYY-MM-DD HH:mm:ss")}n.d(t,{H:function(){return i},M:function(){return o}})},907248:function(e,t,n){"use strict";var r=n(514041);let i=["mousedown","touchstart"];function o(e,t,n){let o=(0,r.useRef)(null),s=t||i;return(0,r.useEffect)(()=>{let t=t=>{let{target:r}=t??{};if(Array.isArray(n)){let i=!document.body.contains(r)&&r?.tagName!=="HTML";n.every(e=>!!e&&!t.composedPath().includes(e))&&!i&&e(t)}else o.current&&!o.current.contains(r)&&e(t)};return s.forEach(e=>document.addEventListener(e,t)),()=>{s.forEach(e=>document.removeEventListener(e,t))}},[o,e,n]),o}n.d(t,{L:function(){return o}})},664780:function(e,t,n){"use strict";var r=n(514041),i=n(210914);function o(e,t){let{delay:n,flushOnUnmount:o,leading:s}="number"==typeof t?{delay:t,flushOnUnmount:!1,leading:!1}:t,a=(0,i.c)(e),l=(0,r.useRef)(0),c=(0,r.useMemo)(()=>{let e=Object.assign((...t)=>{window.clearTimeout(l.current);let r=e._isFirstCall;function i(){window.clearTimeout(l.current),l.current=0,e._isFirstCall=!0}if(e._isFirstCall=!1,s&&r){a(...t),e.flush=()=>{0!==l.current&&(i(),a(...t))},e.cancel=()=>{i()},l.current=window.setTimeout(()=>{i()},n);return}if(s&&!r){e.flush=()=>{0!==l.current&&(i(),a(...t))},e.cancel=()=>{i()},l.current=window.setTimeout(()=>{i()},n);return}let o=()=>{0!==l.current&&(i(),a(...t))};e.flush=o,e.cancel=()=>{i()},l.current=window.setTimeout(o,n)},{flush:()=>{},cancel:()=>{},_isFirstCall:!0});return e},[a,n,s]);return(0,r.useEffect)(()=>()=>{o?c.flush():c.cancel()},[c,o]),c}n.d(t,{Y:function(){return o}})},644356:function(e,t,n){"use strict";var r=n(514041);function i(e,t){let n=(0,r.useRef)(!1);(0,r.useEffect)(()=>()=>{n.current=!1},[]),(0,r.useEffect)(()=>
3{if(n.current)return e();n.current=!0},t)}n.d(t,{C:function(){return i}})},42536:function(e,t,n){"use strict";var r=n(514041);function i(e=!1,t={}){let[n,o]=(0,r.useState)(e),s=(0,r.useCallback)(()=>{o(e=>e||(t.onOpen?.(),!0))},[t.onOpen]),a=(0,r.useCallback)(()=>{o(e=>e?(t.onClose?.(),!1):e)},[t.onClose]),l=(0,r.useCallback)(()=>{n?a():s()},[a,s,n]);return[n,{open:s,close:a,toggle:l}]}n.d(t,{j:function(){return i}})},491448:function(e,t,n){"use strict";var r=n(514041),i=n(644356);function o({opened:e,shouldReturnFocus:t=!0}){let n=(0,r.useRef)(null),s=()=>{n.current&&"focus"in n.current&&"function"==typeof n.current.focus&&n.current?.focus({preventScroll:!0})};return(0,i.C)(()=>{let r=-1,i=e=>{"Tab"===e.key&&window.clearTimeout(r)};return document.addEventListener("keydown",i),e?n.current=document.activeElement:t&&(r=window.setTimeout(s,10)),()=>{window.clearTimeout(r),document.removeEventListener("keydown",i)}},[e,t]),s}n.d(t,{E:function(){return o}})},398046:function(e,t,n){"use strict";n.d(t,{B:function(){return a}});var r=n(514041),i=n(875228),o=n(330330);let s=r["useId".toString()]||(()=>void 0);function a(e){let t,n=(t=s())?`mantine-${t.replace(/:/g,"")}`:"",[a,l]=(0,r.useState)(n);return((0,i.o)(()=>{l((0,o.z)())},[]),"string"==typeof e)?e:"u"<typeof window?n:a}},875228:function(e,t,n){"use strict";var r=n(514041);let i="u">typeof document?r.useLayoutEffect:r.useEffect;n.d(t,{},{o:i})},774604:function(e,t,n){"use strict";var r=n(514041);function i(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){let[o,s]=(0,r.useState)(n?t:!!("u">typeof window&&"matchMedia"in window)&&window.matchMedia(e).matches);return(0,r.useEffect)(()=>{try{let n=window.matchMedia(e);s(n.matches);var t=e=>s(e.matches);try{return n.addEventListener("change",t),()=>n.removeEventListener("change",t)}catch(e){return n.addListener(t),()=>n.removeListener(t)}}catch(e){return}},[e]),o||!1}n.d(t,{U:function(){return i}})},646604:function(e,t,n){"use strict";var r=n(774604);function i(e,t){return(0,r.U)("(prefers-reduced-motion: reduce)",e,t)}n.d(t,{I:function(){return i}})},515564:function(e,t,n){"use strict";var r=n(514041);function i(e,t,n={autoInvoke:!1}){let o=(0,r.useRef)(null),s=(0,r.useCallback)((...n)=>{o.current||(o.current=window.setTimeout(()=>{e(n),o.current=null},t))},[t]),a=(0,r.useCallback)(()=>{o.current&&(window.clearTimeout(o.current),o.current=null)},[]);return(0,r.useEffect)(()=>(n.autoInvoke&&s(),a),[a,s]),{start:s,clear:a}}n.d(t,{Z:function(){return i}})},885268:function(e,t,n){"use strict";var r=n(514041);function i({value:e,defaultValue:t,finalValue:n,onChange:o=()=>{}}){let[s,a]=(0,r.useState)(void 0!==t?t:n);return void 0!==e?[e,o,!0]:[s,(e,...t)=>{a(e),o?.(e,...t)},!1]}n.d(t,{Z:function(){return i}})},318684:function(e,t,n){"use strict";var r=n(514041);function i(e,t,n){(0,r.useEffect)(()=>(window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)),[e,t])}n.d(t,{M:function(){return i}})},138218:function(e,t,n){"use strict";function r(e,t,n){return void 0===t&&void 0===n?e:void 0!==t&&void 0===n?Math.max(e,t):void 0===t&&void 0!==n?Math.min(e,n):Math.min(Math.max(e,t),n)}n.d(t,{q:function(){return r}})},330330:function(e,t,n){"use strict";function r(e="mantine-"){return`${e}${Math.random().toString(36).slice(2,11)}`}n.d(t,{z:function(){return r}})},210914:function(e,t,n){"use strict";var r=n(514041);function i(e){let t=(0,r.useRef)(e);return(0,r.useEffect)(()=>{t.current=e}),(0,r.useMemo)(()=>(...e)=>t.current?.(...e),[])}n.d(t,{c:function(){return i}})},53240:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(514041),i={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};let o=(e,t,n,o)=>{let s=(0,r.forwardRef)(({color:n="currentColor",size:s=24,stroke:a=2,title:l,className:c,children:u,...d},h)=>(0,r.createElement)("svg",{ref:h,...i[e],width:s,height:s,className:["tabler-icon",`tabler-icon-${t}`,c].join(" "),..."filled"===e?{fill:n}:{strokeWidth:a,stroke:n},...d},[l&&(0,r.createElement)("title",{key:"svg-title"},l),...o.map(([e,t])=>(0,r.createElement)(e,t)),...Array.isArray(u)?u:[u]]));return s.displayName=`${n}`,s}},514181:function(e,t,n){"use strict";var r=n(105952);let i="u"<typeof window||"Deno"in globalThis;function o(){}function s(e,t){return"function"==typeof e?e(t):e}function a(e){return"number"==typeof e&&e>=0&&1/0!==e}function l(e,t){return Math.max(e+(t||0)-Date.now(),0)}function c(e,t){return"function"==typeof e?e(t):e}function u(e,t){let{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==h(s,t.options))return!1}else if(!p(t.queryKey,s))return!1}if("all"!==n){let e=t.isActive();if("active"===n&&!e||"inactive"===n&&e)return!1}return("boolean"!=typeof a||t.isStale()===a)&&(!i||i===t.state.fetchStatus)&&(!o||!!o(t))}function d(e,t){let{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;
3if(n){if(f(t.options.mutationKey)!==f(o))return!1}else if(!p(t.options.mutationKey,o))return!1}return(!r||t.state.status===r)&&(!i||!!i(t))}function h(e,t){return(t?.queryKeyHashFn||f)(e)}function f(e){return JSON.stringify(e,(e,t)=>b(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function p(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(Array.isArray(e)&&Array.isArray(t)){for(let n=0;n<t.length;n++)if(!p(e[n],t[n]))return!1;return!0}for(let n of Object.keys(t))if(!p(e[n],t[n]))return!1;return!0}return!1}let m=Object.prototype.hasOwnProperty;function g(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=v(e)&&v(t);if(!r&&!(b(e)&&b(t)))return t;let i=(r?e:Object.keys(e)).length,o=r?t:Object.keys(t),s=o.length,a=r?Array(s):{},l=0;for(let c=0;c<s;c++){let s=r?c:o[c],u=e[s],d=t[s];if(u===d){a[s]=u,(r?c<i:m.call(e,s))&&l++;continue}if(null===u||null===d||"object"!=typeof u||"object"!=typeof d){a[s]=d;continue}let h=g(u,d,n+1);a[s]=h,h===u&&l++}return i===s&&l===i?e:a}function y(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function v(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function b(e){if(!_(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!_(n)&&!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function _(e){return"[object Object]"===Object.prototype.toString.call(e)}function w(e){return new Promise(t=>{r.zs.setTimeout(t,e)})}function x(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?g(e,t):t}function k(e){return e}function C(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function A(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}let D=Symbol();function S(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==D?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}function E(e,t){return"function"==typeof e?e(...t):!!e}function T(e,t,n){let r,i=!1;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(r??=t(),i||(i=!0,r.aborted?n():r.addEventListener("abort",n,{once:!0})),r)}),e}n.d(t,{BH:function(){return g},Cp:function(){return p},EN:function(){return f},F$:function(){return h},GF:function(){return c},GU:function(){return E},MK:function(){return u},ZM:function(){return S},ZZ:function(){return A},Zw:function(){return s},f8:function(){return y},gn:function(){return a},j3:function(){return l},lQ:function(){return o},nJ:function(){return d},ox:function(){return T},pl:function(){return x},rX:function(){return k},y9:function(){return C},yy:function(){return w}},{S$:i,hT:D})},630827:function(e,t,n){"use strict";var r=n(208946),i=n(514041),o=n(514181),s=n(278852);function a(e,t){let n=(0,r.jE)(t);return function(e={},t){let n=(0,r.jE)(t).getMutationCache(),a=i.useRef(e),c=i.useRef(null);return null===c.current&&(c.current=l(n,e)),i.useEffect(()=>{a.current=e}),i.useSyncExternalStore(i.useCallback(e=>n.subscribe(()=>{let t=(0,o.BH)(c.current,l(n,a.current));c.current!==t&&(c.current=t,s.jG.schedule(e))}),[n]),()=>c.current,()=>c.current)}({filters:{...e,status:"pending"}},n).length}function l(e,t){return e.findAll(t.filters).map(e=>t.select?t.select(e):e.state)}n.d(t,{l:function(){return a}})},85236:function(e,t,n){"use strict";function r(e,t){let n=new Date(e);if(t.y&&(t.year=t.y,delete t.y),t.mo&&(t.month=t.mo,delete t.mo),t.M&&(t.month=t.M,delete t.M),t.w&&(t.week=t.w,delete t.w),t.d&&(t.day=t.d,delete t.d),t.h&&(t.hour=t.h,delete t.h),t.m&&(t.minute=t.m,delete t.m),t.s&&(t.second=t.s,delete t.s),t.ms&&(t.millisecond=t.ms,delete t.ms),"year"in t){let e=Math.floor(t.year);n.setFullYear(n.getFullYear()+e);let r=t.year-e;r>0&&(t.month=t?.month??0,t.month+=12*r)}if("quarter"in t){let e=Math.floor(t.quarter);n.setMonth(n.getMonth()+3*e)}if("month"in t){let e=Math.floor(t.month);n.setMonth(n.getMonth()+e);let r=t.month-e;r>0&&(t.week=t?.week??0,t.week+=4*r)}if("week"in t){let e=Math.floor(t.week);n.setDate(n.getDate()+7*e);let r=t.week-e;r>0&&(t.day=t?.day??0,t.day+=Math.round(7*r))}if("day"in t){let e=Math.floor(t.day);n.setDate(n.getDate()+e);let r=t.day-e;r>0&&(t.hour=t?.hour??0,t.hour+=Math.round(24*r))}if("hour"in t){let e=Math.floor(t.hour);n.setHours(n.getHours()+e);let r=t.hour-e;r>0&&(t.minute=t?.minute??0,t.minute+=Math.round(60*r))}if("minute"in t){let e=Math.floor(t.minute);n.setMinutes(n.getMinutes()+e);let r=t.minute-e;r>0&&(t.second=t?.second??0,t.second+=Math.round(60*r))}if("second"in t){let e=Math.floor(t.second);n.setSeconds(n.getSeconds()+e);let r=t.second-e;r>
30&&(t.millisecond=t?.millisecond??0,t.millisecond+=Math.round(1e3*r))}if("millisecond"in t){let e=Math.floor(t.millisecond);n.setMilliseconds(n.getMilliseconds()+e)}return n}function i(e){let t={};for(let n in e)t[n]=-e[n];return t}n.d(t,{Gw:function(){return r},x4:function(){return i}},{ks:{day:0,second:0,millisecond:0}})},360835:function(e,t,n){"use strict";var r=n(986093),i=n(562822);function o(e,t,n){let o=function(e,t,n){var i,o;let l,c,u=e.getDay();switch(n){case"this":return s(e,t);case"last":return a(e,t);case"next":if(u==r.Bw.SUNDAY)return t==r.Bw.SUNDAY?7:t;if(u==r.Bw.SATURDAY){if(t==r.Bw.SATURDAY)return 7;if(t==r.Bw.SUNDAY)return 8;return 1+t}if(t<u&&t!=r.Bw.SUNDAY)return s(e,t);return s(e,t)+7}return l=a(i=e,o=t),(c=s(i,o))<-l?c:l}(e.getDateWithAdjustedTimezone(),t,n),l=new i.BP(e);return(l=l.addDurationAsImplied({day:o})).assign("weekday",t),l}function s(e,t){let n=t-e.getDay();return n<0&&(n+=7),n}function a(e,t){let n=t-e.getDay();return n>=0&&(n-=7),n}n.d(t,{Y5:function(){return o}})},151076:function(e,t,n){"use strict";var r=n(85236);function i(e){return e<100&&(e>50?e+=1900:e+=2e3),e}function o(e,t,n){let i=new Date(e);i.setMonth(n-1),i.setDate(t);let o=(0,r.Gw)(i,{year:1}),s=(0,r.Gw)(i,{year:-1});return Math.abs(o.getTime()-e.getTime())<Math.abs(i.getTime()-e.getTime())?i=o:Math.abs(s.getTime()-e.getTime())<Math.abs(i.getTime()-e.getTime())&&(i=s),i.getFullYear()}n.d(t,{D:function(){return i},Y:function(){return o}})},108625:function(e,t,n){"use strict";var r=n(562822),i=n(716421);class o{parsers;refiners;defaultConfig=new i.A;constructor(e){e=e||this.defaultConfig.createCasualConfiguration(),this.parsers=[...e.parsers],this.refiners=[...e.refiners]}clone(){return new o({parsers:[...this.parsers],refiners:[...this.refiners]})}parseDate(e,t,n){let r=this.parse(e,t,n);return r.length>0?r[0].start.date():null}parse(e,t,n){let r=new s(e,t,n),i=[];return this.parsers.forEach(e=>{let t=o.executeParser(r,e);i=i.concat(t)}),i.sort((e,t)=>e.index-t.index),this.refiners.forEach(function(e){i=e.refine(r,i)}),i}static executeParser(e,t){let n=[],i=t.pattern(e),o=e.text,s=e.text,a=i.exec(s);for(;a;){let l=a.index+o.length-s.length;a.index=l;let c=t.extract(e,a);if(!c){s=o.substring(a.index+1),a=i.exec(s);continue}let u=null;c instanceof r.s4?u=c:c instanceof r.BP?(u=e.createParsingResult(a.index,a[0])).start=c:u=e.createParsingResult(a.index,a[0],c);let d=u.index,h=u.text;e.debug(()=>console.log(`${t.constructor.name} extracted (at index=${d}) '${h}'`)),n.push(u),s=o.substring(d+h.length),a=i.exec(s)}return n}}class s{text;option;reference;refDate;constructor(e,t,n){this.text=e,this.option=n??{},this.reference=r.b5.fromInput(t,this.option.timezones),this.refDate=this.reference.instant}createParsingComponents(e){return e instanceof r.BP?e:new r.BP(this.reference,e)}createParsingResult(e,t,n,i){let o="string"==typeof t?t:this.text.substring(e,t),s=n?this.createParsingComponents(n):null,a=i?this.createParsingComponents(i):null;return new r.s4(this.reference,e,o,s,a)}debug(e){this.option.debug&&(this.option.debug instanceof Function?this.option.debug(e):this.option.debug.debug(e))}}n.d(t,{u:function(){return o}})},512534:function(e,t,n){"use strict";class r{refine(e,t){return t.filter(t=>this.isValid(e,t))}}class i{refine(e,t){if(t.length<2)return t;let n=[],r=t[0],i=null;for(let o=1;o<t.length;o++){i=t[o];let s=e.text.substring(r.index+r.text.length,i.index);if(this.shouldMergeResults(s,r,i,e)){let t=r,n=i,o=this.mergeResults(s,t,n,e);e.debug(()=>{console.log(`${this.constructor.name} merged ${t} and ${n} into ${o}`)}),r=o}else n.push(r),r=i}return null!=r&&n.push(r),n}}n.d(t,{X:function(){return i},d:function(){return r}})},706141:function(e,t,n){"use strict";var r=n(562822),i=n(311099),o=n(986093);function s(e){let t=e.getDateWithAdjustedTimezone(),n=new r.BP(e,{});return(0,i.Pl)(n,t),(0,i.i2)(n,t),n.assign("timezoneOffset",e.getTimezoneOffset()),n.addTag("casualReference/now"),n}function a(e){let t=e.getDateWithAdjustedTimezone(),n=new r.BP(e,{});return(0,i.Pl)(n,t),(0,i.A4)(n,t),n.delete("meridiem"),n.addTag("casualReference/today"),n}function l(e){return u(e,-1).addTag("casualReference/yesterday")}function c(e){return u(e,1).addTag("casualReference/tomorrow")}function u(e,t){let n=e.getDateWithAdjustedTimezone(),o=new r.BP(e,{}),s=new Date(n.getTime());return s.setDate(s.getDate()+t),(0,i.Pl)(o,s),(0,i.A4)(o,s),o.delete("meridiem"),o}function d(e,t=22){let n=e.getDateWithAdjustedTimezone(),s=new r.BP(e,{});return(0,i.Pl)(s,n),s.imply("hour",t),s.imply("meridiem",o.FF.PM),s.addTag("casualReference/tonight"),s}function h(e,t=20){let n=new r.BP(e,{});return n.imply("meridiem",o.FF.PM),n.imply("hour",t),n.addTag("casualReference/evening"),n}function f(e){let t=new r.BP(e,{});return e.getDateWithAdjustedTimezone().getHours()>2&&t.addDurationAsImplied({day:1}),t.assign("hour",0),t.imply("minute",0),t.imply("second",0),t.imply("millisecond",0),t.addTag("casualReference/midnight"),t}function p(e,t=6){let n=new r.BP(e,{});return n.imply("meridiem",o.FF.AM),n.imply("hour",t),n.imply("minute",0),n.imply("second",0),n.imply("millisecond",0),n.addTag("casualReference/morning"),n}
3function m(e,t=15){let n=new r.BP(e,{});return n.imply("meridiem",o.FF.PM),n.imply("hour",t),n.imply("minute",0),n.imply("second",0),n.imply("millisecond",0),n.addTag("casualReference/afternoon"),n}function g(e){let t=new r.BP(e,{});return t.imply("meridiem",o.FF.AM),t.assign("hour",12),t.imply("minute",0),t.imply("second",0),t.imply("millisecond",0),t.addTag("casualReference/noon"),t}n.d(t,{AV:function(){return u},A_:function(){return d},Bm:function(){return f},Ec:function(){return a},F1:function(){return p},Jp:function(){return h},ZB:function(){return m},jI:function(){return l},tB:function(){return s},uf:function(){return c},zW:function(){return g}})},998596:function(e,t,n){"use strict";class r{innerPatternHasChange(e,t){return this.innerPattern(e)!==t}patternLeftBoundary(){return"(\\W|^)"}cachedInnerPattern=null;cachedPattern=null;pattern(e){return this.cachedInnerPattern&&!this.innerPatternHasChange(e,this.cachedInnerPattern)||(this.cachedInnerPattern=this.innerPattern(e),this.cachedPattern=RegExp(`${this.patternLeftBoundary()}${this.cachedInnerPattern.source}`,this.cachedInnerPattern.flags)),this.cachedPattern}extract(e,t){let n=t[1]??"";t.index=t.index+n.length,t[0]=t[0].substring(n.length);for(let e=2;e<t.length;e++)t[e-1]=t[e];return this.innerExtract(e,t)}}n.d(t,{c:function(){return r}})},778929:function(e,t,n){"use strict";var r=n(986093);class i{strictMode;constructor(e=!1){this.strictMode=e}patternFlags(){return"i"}primaryPatternLeftBoundary(){return"(^|\\s|T|\\b)"}primarySuffix(){return"(?!/)(?=\\W|$)"}followingSuffix(){return"(?!/)(?=\\W|$)"}pattern(e){return this.getPrimaryTimePatternThroughCache()}extract(e,t){let n=this.extractPrimaryTimeComponents(e,t);if(!n)return t[0].match(/^\d{4}/)?t.index+=4:t.index+=t[0].length,null;let r=t.index+t[1].length,i=t[0].substring(t[1].length),o=e.createParsingResult(r,i,n);t.index+=t[0].length;let s=e.text.substring(t.index),a=this.getFollowingTimePatternThroughCache().exec(s);return i.match(/^\d{3,4}/)&&a&&(a[0].match(/^\s*([+-])\s*\d{2,4}$/)||a[0].match(/^\s*([+-])\s*\d{2}\W\d{2}/))?null:!a||a[0].match(/^\s*([+-])\s*\d{3,4}$/)?this.checkAndReturnWithoutFollowingPattern(o):(o.end=this.extractFollowingTimeComponents(e,a,o),o.end&&(o.text+=a[0]),this.checkAndReturnWithFollowingPattern(o))}extractPrimaryTimeComponents(e,t,n=!1){let i=e.createParsingComponents(),o=0,s=null,a=parseInt(t[2]);if(a>100){if(4==t[2].length&&null==t[3]&&!t[6]||this.strictMode||null!=t[3])return null;o=a%100,a=Math.floor(a/100)}if(a>24)return null;if(null!=t[3]){if(1==t[3].length&&!t[6])return null;o=parseInt(t[3])}if(o>=60)return null;if(a>12&&(s=r.FF.PM),null!=t[6]){if(a>12)return null;let e=t[6][0].toLowerCase();"a"==e&&(s=r.FF.AM,12==a&&(a=0)),"p"==e&&(s=r.FF.PM,12!=a&&(a+=12))}if(i.assign("hour",a),i.assign("minute",o),null!==s?i.assign("meridiem",s):a<12?i.imply("meridiem",r.FF.AM):i.imply("meridiem",r.FF.PM),null!=t[5]){let e=parseInt(t[5].substring(0,3));if(e>=1e3)return null;i.assign("millisecond",e)}if(null!=t[4]){let e=parseInt(t[4]);if(e>=60)return null;i.assign("second",e)}return i}extractFollowingTimeComponents(e,t,n){let i=e.createParsingComponents();if(null!=t[5]){let e=parseInt(t[5].substring(0,3));if(e>=1e3)return null;i.assign("millisecond",e)}if(null!=t[4]){let e=parseInt(t[4]);if(e>=60)return null;i.assign("second",e)}let o=parseInt(t[2]),s=0,a=-1;if(null!=t[3]?s=parseInt(t[3]):o>100&&(s=o%100,o=Math.floor(o/100)),s>=60||o>24)return null;if(o>=12&&(a=r.FF.PM),null!=t[6]){if(o>12)return null;let e=t[6][0].toLowerCase();"a"==e&&(a=r.FF.AM,12==o&&(o=0,i.isCertain("day")||i.imply("day",i.get("day")+1))),"p"==e&&(a=r.FF.PM,12!=o&&(o+=12)),n.start.isCertain("meridiem")||(a==r.FF.AM?(n.start.imply("meridiem",r.FF.AM),12==n.start.get("hour")&&n.start.assign("hour",0)):(n.start.imply("meridiem",r.FF.PM),12!=n.start.get("hour")&&n.start.assign("hour",n.start.get("hour")+12)))}return i.assign("hour",o),i.assign("minute",s),a>=0?i.assign("meridiem",a):n.start.isCertain("meridiem")&&n.start.get("hour")>12?n.start.get("hour")-12>o?i.imply("meridiem",r.FF.AM):o<=12&&(i.assign("hour",o+12),i.assign("meridiem",r.F
3F.PM)):o>12?i.imply("meridiem",r.FF.PM):o<=12&&i.imply("meridiem",r.FF.AM),i.date().getTime()<n.start.date().getTime()&&i.imply("day",i.get("day")+1),i}checkAndReturnWithoutFollowingPattern(e){if(e.text.match(/^\d$/)||e.text.match(/^\d\d\d+$/)||e.text.match(/\d[apAP]$/))return null;let t=e.text.match(/[^\d:.](\d[\d.]+)$/);if(t){let e=t[1];if(this.strictMode||e.includes(".")&&!e.match(/\d(\.\d{2})+$/)||parseInt(e)>24)return null}return e}checkAndReturnWithFollowingPattern(e){if(e.text.match(/^\d+-\d+$/))return null;let t=e.text.match(/[^\d:.](\d[\d.]+)\s*-\s*(\d[\d.]+)$/);if(t){if(this.strictMode)return null;let e=t[1],n=t[2];if(n.includes(".")&&!n.match(/\d(\.\d{2})+$/))return null;let r=parseInt(n),i=parseInt(e);if(r>24||i>24)return null}return e}cachedPrimaryPrefix=null;cachedPrimarySuffix=null;cachedPrimaryTimePattern=null;getPrimaryTimePatternThroughCache(){var e;let t=this.primaryPrefix(),n=this.primarySuffix();return this.cachedPrimaryPrefix===t&&this.cachedPrimarySuffix===n?this.cachedPrimaryTimePattern:(this.cachedPrimaryTimePattern=(e=this.primaryPatternLeftBoundary(),RegExp(`${e}${t}(\\d{1,4})(?:(?:\\.|:|:)(\\d{1,2})(?:(?::|:)(\\d{2})(?:\\.(\\d{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?))?${n}`,this.patternFlags())),this.cachedPrimaryPrefix=t,this.cachedPrimarySuffix=n,this.cachedPrimaryTimePattern)}cachedFollowingPhase=null;cachedFollowingSuffix=null;cachedFollowingTimePatten=null;getFollowingTimePatternThroughCache(){let e=this.followingPhase(),t=this.followingSuffix();return this.cachedFollowingPhase===e&&this.cachedFollowingSuffix===t?this.cachedFollowingTimePatten:(this.cachedFollowingTimePatten=RegExp(`^(${e})(\\d{1,4})(?:(?:\\.|\\:|\\:)(\\d{1,2})(?:(?:\\.|\\:|\\:)(\\d{1,2})(?:\\.(\\d{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?))?${t}`,"i"),this.cachedFollowingPhase=e,this.cachedFollowingSuffix=t,this.cachedFollowingTimePatten)}}n.d(t,{B:function(){return i}})},346558:function(e,t,n){"use strict";var r=n(151076);let i=RegExp("([^\\d]|^)([0-3]{0,1}[0-9]{1})[\\/\\.\\-]([0-3]{0,1}[0-9]{1})(?:[\\/\\.\\-]([0-9]{4}|[0-9]{2}))?(\\W|$)","i");class o{groupNumberMonth;groupNumberDay;constructor(e){this.groupNumberMonth=e?3:2,this.groupNumberDay=e?2:3}pattern(){return i}extract(e,t){let n=t.index+t[1].length,i=t.index+t[0].length-t[5].length;if(n>0&&e.text.substring(0,n).match("\\d/?$")||i<e.text.length&&e.text.substring(i).match("^/?\\d"))return;let o=e.text.substring(n,i);if(o.match(/^\d\.\d$/)||o.match(/^\d\.\d{1,2}\.\d{1,2}\s*$/)||!t[4]&&0>o.indexOf("/"))return;let s=e.createParsingResult(n,o),a=parseInt(t[this.groupNumberMonth]),l=parseInt(t[this.groupNumberDay]);if((a<1||a>12)&&a>12)if(!(l>=1)||!(l<=12)||!(a<=31))return null;else[l,a]=[a,l];if(l<1||l>31)return null;if(s.start.assign("day",l),s.start.assign("month",a),t[4]){let e=parseInt(t[4]),n=(0,r.D)(e);s.start.assign("year",n)}else{let t=(0,r.Y)(e.refDate,l,a);s.start.imply("year",t)}return s.addTag("parser/SlashDateFormatParser")}}n.d(t,{A:function(){return o}})},168935:function(e,t,n){"use strict";var r=n(512534),i=n(85236);class o extends r.X{shouldMergeResults(e,t,n){return!t.end&&!n.end&&null!=e.match(this.patternBetween())}mergeResults(e,t,n){if(t.start.isOnlyWeekdayComponent()||n.start.isOnlyWeekdayComponent()||(n.start.getCertainComponents().forEach(e=>{t.start.isCertain(e)||t.start.imply(e,n.start.get(e))}),t.start.getCertainComponents().forEach(e=>{n.start.isCertain(e)||n.start.imply(e,t.start.get(e))})),t.start.date()>n.start.date()){let e=t.start.date(),r=n.start.date();n.start.isOnlyWeekdayComponent()&&(0,i.Gw)(r,{day:7})>e?(r=(0,i.Gw)(r,{day:7}),n.start.imply("day",r.getDate()),n.start.imply("month",r.getMonth()+1),n.start.imply("year",r.getFullYear())):t.start.isOnlyWeekdayComponent()&&(0,i.Gw)(e,{day:-7})<r?(e=(0,i.Gw)(e,{day:-7}),t.start.imply("day",e.getDate()),t.start.imply("month",e.getMonth()+1),t.start.imply("year",e.getFullYear())):n.start.isDateWithUnknownYear()&&(0,i.Gw)(r,{year:1})>e?(r=(0,i.Gw)(r,{year:1}),n.start.imply("year",r.getFullYear())):t.start.isDateWithUnknownYear()&&(0,i.Gw)(e,{year:-1})<r?(e=(0,i.Gw)(e,{year:-1}),t.start.imply("year",e.getFullYear())):[n,t]=[t,n]}let r=t.clone();return r.start=t.start,r.end=n.start,r.index=Math.min(t.index,n.index),t.index<n.index?r.text=t.text+e+n.text:r.text=n.text+e+t.text,r}}n.d(t,{A:function(){return o}})},27884:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var r=n(512534),i=n(986093),o=n(311099);function s(e,t){let n=e.clone();if(n.start=a(e.start,t.start),null!=e.end||null!=t.end){let r=a(null==e.end?e.start:e.end,null==t.end?t.start:t.end);if(null==e.end&&r.date().getTime()<n.start.date().getTime()){let e=new Date(r.date().getTime());e.setDate(e.getDate()+1),r.isCertain("day")?(0,o.Pl)(r,e):(0,o.Hq)(r,e)}n.end=r}return n}function a(e,t){let n=e.clone();return t.isCertain("hour")?(n.assign("hour",t.get("hour")),n.assign("minute",t.get("minute")),t.isCertain("second")?(n.assign("second",t.get("second")),t.isCertain("millisecond")?n.assign("millisecond",t.get("millisecond")):n.imply("millisecond",t.get("millisecond"))):(n.imply("second",t.get("second")),n.imply("millisecond",t.get("millisecond")))):(n.imply("hour",t.get("hour")),n.imply("minute",t.get("minute")),n.imply("second",t.get("second")),n.imply("millisecond",t.get("millisecond"))),t.isCertain("timezoneOffset")&&n.assign("timezoneOffset",t.get("timezoneOffset")),t.isCertain("meridiem")?n.assign("meridiem",t.get("meridiem")):null!=t.get("meridiem")&&null==n.get("meridiem")&&n.imply("meridiem",t.get("meridiem")),n.get("meridiem")==i.FF.PM&&12>n.get("hour")&&(t.isCertain("hour")?n.assign("hour",n.get("hour")+12):n.imply("hour",n.get("hour")+12)),n.addTags(e.tags()),n.addTags(t.tags()),n}class l extends r.X{shouldMergeResults(e,t,n){return(t.start.isOnlyDate()&&n.start.isOnlyTime()||n.start.isOnlyDate()&&t.start.isOnlyTime())&&null!=e.match(this.patternBetween())}mergeResults(e,t,n){let r=t.start.isOnlyDate()?s(t,n):s(n,t);return r.index=t.index,r.text=t.text+e+n.text,r}}},69717:function(e,t,n){"use strict";class r{refine(e,t){if(t.length<2)return t;let n=[],r=t[0];for(let i=1;i<t.length;i++){let o=t[i];if(o.index>=r.index+r.text.length){n.push(r),r=o;continue}let s=null,a=null;o.text.length>r.text.length?(s=o,a=r):(s=r,a=o),e.debug(()=>{console.log(`${this.constructor.name} remove ${a} by ${s}`)}),r=s}return null!=r&&n.push(r),n}}n.d(t,{A:function(){return r}})},723916:function(e,t,n){"use strict";n.d(t,{i:function(){return v}});var r=n(634909);let i=RegExp("^\\s*,?\\s*\\(?([A-Z]{2,4})\\)?(?=\\W|$)","i");class o{timezoneOverrides;constructor(e){this.timezoneOverrides=e}refine(e,t){let n=e.option.timezones??{};return t.forEach(t=>{let o=e.text.substring(t.index+t.text.length),s=i.exec(o);if(!s)return;let a=s[1].toUpperCase(),l=t.start.date()??t.refDate??new Date,c={...this.timezoneOverrides,...n},u=(0,r.Cm)(a,l,c);if(null==u)return;e.debug(()=>{console.log(`Extracting timezone: '${a}' into: ${u} for: ${t.start}`)});let d=t.start.get("timezoneOffset");!(null!==d&&u!=d&&(t.start.isCertain("timezoneOffset")||a!=s[1]))&&(!t.start.isOnlyDate()||a==s[1])&&(t.text+=s[0],t.start.isCertain("timezoneOffset")||t.start.assign("timezoneOffset",u),null==t.end||t.end.isCertain("timezoneOffset")||t.end.assign("timezoneOffset",u))}),t}}let s=RegExp("^\\s*(?:\\(?(?:GMT|UTC)\\s?)?([+-])(\\d{1,2})(?::?(\\d{2}))?\\)?","i");class a{refine(e,t){return t.forEach(function(t){if(t.start.isCertain("timezoneOffset"))return;let n=e.text.substring(t.index+t.text.length),r=s.exec(n);if(!r)return;e.debug(()=>{console.log(`Extracting timezone: '${r[0]}' into : ${t}`)});let i=60*parseInt(r[2])+parseInt(r[3]||"0");i>840||("-"===r[1]&&(i=-i),null!=t.end&&t.end.assign("timezoneOffset",i),t.start.assign("timezoneOffset",i),t.text+=r[0])}),t}}var l=n(69717),c=n(311099),u=n(85236);class d{refine(e,t){return e.option.forwardDate&&t.forEach(t=>{let n=e.reference.getDateWithAdjustedTimezone();if(t.start.isOnlyTime()&&e.reference.instant>t.start.date()){let n=e.reference.getDateWithAdjustedTimezone(),r=new Date(n);r.setDate(r.getDate()+1),c.Hq(t.start,r),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} time from the ref date (${n}) to the following day (${r})`)}),t.end&&t.end.isOnlyTime()&&(c.Hq(t.end,r),t.start.date()>t.end.date()&&(r.setDate(r.getDate()+1),c.Hq(t.end,r)))}if(t.start.isOnlyWeekdayComponent()&&n>t.start.date()){let r=t.start.get("weekday")-n.getDay();if(r<=0&&(r+=7),n=(0,u.Gw)(n,{day:r}),(0,c.Hq)(t.start,n),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} weekday (${t.start})`)}),t.end&&t.end.isOnlyWeekdayComponent()){let r=t.end.get("weekday")-n.getDay();r<=0&&(r+=7),n=(0,u.Gw)(n,{day:r}),(0,c.Hq)(t.end,n),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} weekday (${t.end})`)})}}if(t.start.isDateWithUnknownYear()&&n>t.start.date())for(let r=0;r<3&&n>t.start.date();r++)t.start.imply("year",t.start.get("year")+1),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} year (${t.start})`)}),t.end&&!t.end.isCertain("year")&&(t.end.imply("year",t.end.get("year")+1),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} month (${t.start})`)}))}),t}}var h=n(512534);class f extends h.d{strictMode;constructor(e){super(),this.strictMode=e}isValid(e,t){return t.text.replace(" ","").match(/^\d*(\.\d*)?$/)?(e.debug(()=>{console.log(`Removing unlikely result '${t.text}'`)}),!1):t.start.isValidDate()?t.end&&!t.end.isValidDate()?(e.debug(()=>{console.log(`Removing invalid result: ${t} (${t.end})`)}),!1):!this.strictMode||this.isStrictModeValid(e,t):(e.debug(()=>{console.log(`Removing invalid result: ${t} (${t.start})`)}),!1)}isStrictModeValid(e,t){return!t.start.isOnlyWeekdayComponent()||(e.debug(()=>{console.log(`(Strict) Removing weekday only component: ${t} (${t.end})`)}),!1)}}var p=n(998596);let m=RegExp("([0-9]{4})\\-([0-9]{1,2})\\-([0-9]{1,2})(?:T([0-9]{1,2}):([0-9]{1,2})(?::([0-9]{1,2})(?:\\.(\\d{1,4}))?)?(Z|([+-]\\d{2}):?(\\d{2})?)?)?(?=\\W|$)","i");class g extends p.c{innerPattern(){return m}innerExtract(e,t){let n=e.createParsingComponents({year:parseInt(t[1]),month:parseInt(t[2]),day:parseInt(t[3])});if(null!=t[4]&&(n.assign("hour",parseInt(t[4])),n.assign("minute",parseInt(t[5])),null!=t[6]&&n.assign("second",parseInt(t[6])),null!=t[7]&&n.assign("millisecond",parseInt(t[7])),null!=t[8])){let e=0;if(t[9]){let n=parseInt(t[9]),r=0;null!=t[10]&&(r=parseInt(t[10])),(e=60*n)<0?e-=r:e+=r}n.assign("timezoneOffset",e)}return n.addTag("parser/ISOFormatParser")}}class y extends h.X{mergeResults(e,t,n){let r=n.clone();return r.index=t.index,r.text=t.text+e+r.text,r.start.assign("weekday",t.start.get("weekday")),r.end&&r.end.assign("weekday",t.start.get("weekday")),r}shouldMergeResults(e,t,n){return t.start.isOnlyWeekdayComponent()&&!t.start.isCertain("hour")&&n.start.isCertain("day")&&null!=e.match(/^,?\s*$/)}}function v(e,t=!1){return e.parsers.unshift(new g),e.refiners.unshift(new y),e.refiners.unshift(new a),e.refiners.unshift(new l.A),e.refiners.push(new o),e.refiners.push(new l.A),e.refiners.push(new d),e.refiners.push(new f(t)),e}},716421:function(e,t,n){"use strict";n.d(t,{A:function(){return eA}});var r=n(811328),i=n(151076);let o={sunday:0,sun:0,"sun.":0,monday:1,mon:1,"mon.":1,tuesday:2,tue:2,"tue.":2,wednesday:3,wed:3,"wed.":3,thursday:4,thurs:4,"thurs.":4,thur:4,"thur.":4,thu:4,"thu.":4,friday:5,fri:5,"fri.":5,saturday:6,sat:6,"sat.":6},s={january:1,february:2,march:3,april:4,may:5,june:6,july:7,august:8,september:9,october:10,november:11,december:12},a={...s,jan:1,"jan.":1,feb:2,"feb.":2,mar:3,"mar.":3,apr:4,"apr.":4,jun:6,"jun.":6,jul:7,"jul.":7,aug:8,"aug.":8,sep:9,"sep.":9,sept:9,"sept.":9,oct:10,"oct.":10,nov:11,"nov.":11,dec:12,"dec.":12},l={one:1,two:2,three:3,four:4,five:5,six:6,seven:7,eight:8,nine:9,ten:10,eleven:11,twelve:12},c={first:1,second:2,third:3,fourth:4,fifth:5,sixth:6,seventh:7,eighth:8,ninth:9,tenth:10,eleventh:11,twelfth:12,thirteenth:13,fourteenth:14,fifteenth:15,sixteenth:16,seventeenth:17,eighteenth:18,nineteenth:19,twentieth:20,"twenty first":21,"twenty-first":21,"twenty second":22,"twenty-second":22,"twenty third":23,"twenty-third":23,"twenty fourth":24,"twenty-fourth":24,"twenty fifth":25,"twenty-fifth":25,"twenty sixth":26,"twenty-sixth":26,"twenty seventh":27,"twenty-seventh":27,"twenty eighth":28,"twenty-eighth":28,"twenty ninth":29,"twenty-ninth":29,thirtieth:30,"thirty first":31,"thirty-first":31},u={second:"second",seconds:"second",minute:"minute",minutes:"minute",hour:"hour",hours:"hour",day:"day",days:"day",week:"week",weeks:"week",month:"month",months:"month",quarter:"quarter",quarters:"quarter",year:"year",years:"year"},d={s:"second",sec:"second",second:"second",seconds:"second",m:"minute",min:"minute",mins:"minute",minute:"minute",minutes:"minute",h:"hour",hr:"hour",hrs:"hour",hour:"hour",hours:"hour",d:"day",day:"day",days:"day",w:"week",week:"week",weeks:"week",mo:"month",mon:"month",mos:"month",month:"month",months:"month",qtr:"quarter",quarter:"quarter",quarters:"quarter",y:"year",yr:"year",year:"year",years:"year",...u},h=`(?:${(0,r.uJ)(l)}|[0-9]+|[0-9]+\\.[0-9]+|half(?:\\s{0,2}an?)?|an?\\b(?:\\s{0,2}few)?|few|several|the|a?\\s{0,2}couple\\s{0,2}(?:of)?)`,f=`(?:${(0,r.uJ)(c)}|[0-9]{1,2}(?:st|nd|rd|th)?)`;function p(e){let t=e.toLowerCase();return void 0!==c[t]?c[t]:parseInt(t=t.replace(/(?:st|nd|rd|th)$/i,""))}let m="(?:[1-9][0-9]{0,3}\\s{0,2}(?:BE|AD|BC|BCE|CE)|[1-2][0-9]{3}|[5-9][0-9]|2[0-5])";function g(e){if(/BE/i.test(e))return parseInt(e=e.replace(/BE/i,""))-543;if(/BCE?/i.test(e))return-parseInt(e=e.replace(/BCE?/i,""));if(/(AD|CE)/i.test(e))return parseInt(e=e.replace(/(AD|CE)/i,""));let t=parseInt(e);return(0,i.D)(t)}let y=`(${h})\\s{0,3}(${(0,r.uJ)(d)})`,v=RegExp(y,"i"),b=`(${h})\\s{0,3}(${(0,r.uJ)(u)})`,_="\\s{0,5},?(?:\\s*and)?\\s{0,5}",w=(0,r.mb)("(?:(?:about|around)\\s{0,3})?",y,_),x=(0,r.mb)("(?:(?:about|around)\\s{0,3})?",b,_);function k(e){let t={},n=e,r=v.exec(n);for(;r;)(function(e,t){if(t[0].match(/^[a-zA-Z]+$/))return;let n=function(e){let t=e.toLowerCase();if(void 0!==l[t])return l[t];if("a"===t||"an"===t||"the"==t)return 1;if(t.match(/few/))return 3;if(t.match(/half/))return .5;if(t.match(/couple/))return 2;else if(t.match(/several/))return 7;return parseFloat(t)}(t[1]);e[d[t[2].toLowerCase()]]=n}
3)(t,r),n=n.substring(r[0].length).trim(),r=v.exec(n);return 0==Object.keys(t).length?null:t}var C=n(562822),A=n(998596);let D=RegExp(`(?:(?:within|in|for)\\s*)?(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${w})(?=\\W|$)`,"i"),S=RegExp(`(?:within|in|for)\\s*(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${w})(?=\\W|$)`,"i"),E=RegExp(`(?:within|in|for)\\s*(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${x})(?=\\W|$)`,"i");class T extends A.c{strictMode;constructor(e){super(),this.strictMode=e}innerPattern(e){return this.strictMode?E:e.option.forwardDate?D:S}innerExtract(e,t){if(t[0].match(/^for\s*the\s*\w+/))return null;let n=k(t[1]);return n?C.BP.createRelativeFromReference(e.reference,n):null}}let O=RegExp(`(?:on\\s{0,3})?(${f})(?:\\s{0,3}(?:to|\\-|\\–|until|through|till)?\\s{0,3}(${f}))?(?:-|/|\\s{0,3}(?:of)?\\s{0,3})(${(0,r.uJ)(a)})(?:(?:-|/|,?\\s{0,3})(${m}(?!\\w)))?(?=\\W|$)`,"i");class M extends A.c{innerPattern(){return O}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=a[t[3].toLowerCase()],o=p(t[1]);if(o>31)return t.index=t.index+t[1].length,null;if(n.start.assign("month",r),n.start.assign("day",o),t[4]){let e=g(t[4]);n.start.assign("year",e)}else{let t=(0,i.Y)(e.refDate,o,r);n.start.imply("year",t)}if(t[2]){let e=p(t[2]);n.end=n.start.clone(),n.end.assign("day",e)}return n}}let N=RegExp(`(${(0,r.uJ)(a)})(?:-|/|\\s*,?\\s*)(${f})(?!\\s*(?:am|pm))\\s*(?:(?:to|\\-)\\s*(${f})\\s*)?(?:(?:-|/|\\s*,\\s*|\\s+)(${m}))?(?=\\W|$)(?!\\:\\d)`,"i");class P extends A.c{shouldSkipYearLikeDate;constructor(e){super(),this.shouldSkipYearLikeDate=e}innerPattern(){return N}innerExtract(e,t){let n=a[t[1].toLowerCase()],r=p(t[2]);if(r>31||this.shouldSkipYearLikeDate&&!t[3]&&!t[4]&&t[2].match(/^2[0-5]$/))return null;let o=e.createParsingComponents({day:r,month:n}).addTag("parser/ENMonthNameMiddleEndianParser");if(t[4]){let e=g(t[4]);o.assign("year",e)}else{let t=(0,i.Y)(e.refDate,r,n);o.imply("year",t)}if(!t[3])return o;let s=p(t[3]),l=e.createParsingResult(t.index,t[0]);return l.start=o,l.end=o.clone(),l.end.assign("day",s),l}}let R=RegExp(`((?:in)\\s*)?(${(0,r.uJ)(a)})\\s*(?:(?:,|-|of)?\\s*(${m})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,"i");class I extends A.c{innerPattern(){return R}innerExtract(e,t){let n=t[2].toLowerCase();if(t[0].length<=3&&!s[n])return null;let r=e.createParsingResult(t.index+(t[1]||"").length,t.index+t[0].length);r.start.imply("day",1),r.start.addTag("parser/ENMonthNameParser");let o=a[n];if(r.start.assign("month",o),t[3]){let e=g(t[3]);r.start.assign("year",e)}else{let t=(0,i.Y)(e.refDate,1,o);r.start.imply("year",t)}return r}}let F=RegExp(`([0-9]{4})[-\\.\\/\\s](?:(${(0,r.uJ)(a)})|([0-9]{1,2}))[-\\.\\/\\s]([0-9]{1,2})(?=\\W|$)`,"i");class L extends A.c{strictMonthDateOrder;constructor(e){super(),this.strictMonthDateOrder=e}innerPattern(){return F}innerExtract(e,t){let n=parseInt(t[1]),r=parseInt(t[4]),i=t[3]?parseInt(t[3]):a[t[2].toLowerCase()];if(i<1||i>12){if(this.strictMonthDateOrder)return null;r>=1&&r<=12&&([i,r]=[r,i])}return r<1||r>31?null:{day:r,month:i,year:n}}}let j=RegExp("([0-9]|0[1-9]|1[012])/([0-9]{4})","i");class z extends A.c{innerPattern(){return j}innerExtract(e,t){let n=parseInt(t[2]),r=parseInt(t[1]);return e.createParsingComponents().imply("day",1).assign("month",r).assign("year",n)}}var $=n(986093),B=n(778929);class V extends B.B{constructor(e){super(e)}followingPhase(){return"\\s*(?:\\-|\\–|\\~|\\〜|to|until|through|till|\\?)\\s*"}primaryPrefix(){return"(?:(?:at|from)\\s*)??"}primarySuffix(){return"(?:\\s*(?:o\\W*clock|at\\s*night|in\\s*the\\s*(?:morning|afternoon)))?(?!/)(?=\\W|$)"}extractPrimaryTimeComponents(e,t){let n=super.extractPrimaryTimeComponents(e,t);if(!n)return n;if(t[0].endsWith("night")){let e=n.get("hour");e>=6&&e<12?(n.assign("hour",n.get("hour")+12),n.assign("meridiem",$.FF.PM)):e<6&&n.assign("meridiem",$.FF.AM)}if(t[0].endsWith("afternoon")){n.assign("meridiem",$.FF.PM);let e=n.get("hour");e>=0&&e<=6&&n.assign("hour",n.get("hour")+12)}return t[0].endsWith("morning")&&(n.assign("meridiem",$.FF.AM),12>n.get("hour")&&n.assign("hour",n.get("hour"))),n.addTag("parser/ENTimeExpressionParser")}
3extractFollowingTimeComponents(e,t,n){let r=super.extractFollowingTimeComponents(e,t,n);return r&&r.addTag("parser/ENTimeExpressionParser"),r}}var Y=n(85236);let q=RegExp(`(${w})\\s{0,5}(?:ago|before|earlier)(?=\\W|$)`,"i"),H=RegExp(`(${x})\\s{0,5}(?:ago|before|earlier)(?=\\W|$)`,"i");class W extends A.c{strictMode;constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?H:q}innerExtract(e,t){let n=k(t[1]);return n?C.BP.createRelativeFromReference(e.reference,(0,Y.x4)(n)):null}}let U=RegExp(`(${w})\\s{0,5}(?:later|after|from now|henceforth|forward|out)(?=(?:\\W|$))`,"i"),G=RegExp(`(${x})\\s{0,5}(later|after|from now)(?=\\W|$)`,"i");class Z extends A.c{strictMode;constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?G:U}innerExtract(e,t){let n=k(t[1]);return n?C.BP.createRelativeFromReference(e.reference,n):null}}var J=n(168935);class K extends J.A{patternBetween(){return/^\s*(to|-|–|until|through|till)\s*$/i}}var X=n(27884);class Q extends X.A{patternBetween(){return RegExp("^\\s*(T|at|after|before|on|of|,|-|\\.|∙|:)?\\s*$")}}var ee=n(723916),et=n(311099),en=n(706141);let er=/(now|today|tonight|tomorrow|overmorrow|tmr|tmrw|yesterday|last\s*night)(?=\W|$)/i;class ei extends A.c{innerPattern(e){return er}innerExtract(e,t){let n=e.refDate,r=t[0].toLowerCase(),i=e.createParsingComponents();switch(r){case"now":i=en.tB(e.reference);break;case"today":i=en.Ec(e.reference);break;case"yesterday":i=en.jI(e.reference);break;case"tomorrow":case"tmr":case"tmrw":i=en.uf(e.reference);break;case"tonight":i=en.A_(e.reference);break;case"overmorrow":i=en.AV(e.reference,2);break;default:if(r.match(/last\s*night/)){if(n.getHours()>6){let e=new Date(n.getTime());e.setDate(e.getDate()-1),n=e}(0,et.Pl)(i,n),i.imply("hour",0)}}return i.addTag("parser/ENCasualDateParser"),i}}let eo=/(?:this)?\s{0,3}(morning|afternoon|evening|night|midnight|midday|noon)(?=\W|$)/i;class es extends A.c{innerPattern(){return eo}innerExtract(e,t){let n=null;switch(t[1].toLowerCase()){case"afternoon":n=en.ZB(e.reference);break;case"evening":case"night":n=en.Jp(e.reference);break;case"midnight":n=en.Bm(e.reference);break;case"morning":n=en.F1(e.reference);break;case"noon":case"midday":n=en.zW(e.reference)}return n&&n.addTag("parser/ENCasualTimeParser"),n}}var ea=n(360835);let el=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:on\\s*?)?(?:(this|last|past|next)\\s*)?(${(0,r.uJ)(o)}|weekend|weekday)(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(this|last|past|next)\\s*week)?(?=\\W|$)`,"i");class ec extends A.c{innerPattern(){return el}innerExtract(e,t){let n,r=t[1],i=t[3],s=r||i;s=(s=s||"").toLowerCase();let a=null;"last"==s||"past"==s?a="last":"next"==s?a="next":"this"==s&&(a="this");let l=t[2].toLowerCase();if(void 0!==o[l])n=o[l];else if("weekend"==l)n="last"==a?$.Bw.SUNDAY:$.Bw.SATURDAY;else{if("weekday"!=l)return null;let t=e.reference.getDateWithAdjustedTimezone().getDay();t==$.Bw.SUNDAY||t==$.Bw.SATURDAY?n="last"==a?$.Bw.FRIDAY:$.Bw.MONDAY:(n=t-1,n=(n="last"==a?n-1:n+1)%5+1)}return(0,ea.Y5)(e.reference,n,a)}}let eu=RegExp(`(this|last|past|next|after\\s*this)\\s*(${(0,r.uJ)(d)})(?=\\s*)(?=\\W|$)`,"i");class ed extends A.c{innerPattern(){return eu}innerExtract(e,t){let n=t[1].toLowerCase(),r=t[2].toLowerCase(),i=d[r];if("next"==n||n.startsWith("after")){let t={};return t[i]=1,C.BP.createRelativeFromReference(e.reference,t)}if("last"==n||"past"==n){let t={};return t[i]=-1,C.BP.createRelativeFromReference(e.reference,t)}let o=e.createParsingComponents(),s=new Date(e.reference.instant.getTime());return r.match(/week/i)?(s.setDate(s.getDate()-s.getDay()),o.imply("day",s.getDate()),o.imply("month",s.getMonth()+1),o.imply("year",s.getFullYear())):r.match(/month/i)?(s.setDate(1),o.imply("day",s.getDate()),o.assign("year",s.getFullYear()),o.assign("month",s.getMonth()+1)):r.match(/year/i)&&(s.setDate(1),s.setMonth(0),o.imply("day",s.getDate()),o.imply("month",s.getMonth()+1),o.assign("year",s.getFullYear())),o}}var eh=n(346558);let ef=RegExp(`(this|last|past|next|after|\\+|-)\\s*(${w})(?=\\W|$)`,"i"),ep=RegExp(`(this|last|past|next|after|\\+|-)\\s*(${x})(?=\\W|$)`,"i");class em extends A.c{allowAbbreviations;constructor(e=!0){super(),this.allowAbbreviations=e}innerPattern(){return this.allowAbbreviations?ef:ep}innerExtract(e,t){let n=t[1].toLowerCase(),r=k(t[2]);if(!r)return null;switch(n){case"last":case"past":case"-":r=(0,Y.x4)(r)}
3return C.BP.createRelativeFromReference(e.reference,r)}}var eg=n(512534);function ey(e){return null!=e.text.match(/^-/i)}class ev extends eg.X{shouldMergeResults(e,t,n){return!!e.match(/^\s*$/i)&&(null!=n.text.match(/^[+-]/i)||ey(n))}mergeResults(e,t,n,r){let i=k(n.text);ey(n)&&(i=(0,Y.x4)(i));let o=C.BP.createRelativeFromReference(C.b5.fromDate(t.start.date()),i);return new C.s4(t.reference,t.index,`${t.text}${e}${n.text}`,o)}}function eb(e){return null!=e.text.match(/\s+(before|from)$/i)}class e_ extends eg.X{patternBetween(){return/^\s*$/i}shouldMergeResults(e,t,n){return!!e.match(this.patternBetween())&&(!!eb(t)||null!=t.text.match(/\s+(after|since)$/i))&&!!n.start.get("day")&&!!n.start.get("month")&&!!n.start.get("year")}mergeResults(e,t,n){let r=k(t.text);eb(t)&&(r=(0,Y.x4)(r));let i=C.BP.createRelativeFromReference(C.b5.fromDate(n.start.date()),r);return new C.s4(n.reference,t.index,`${t.text}${e}${n.text}`,i)}}var ew=n(69717);let ex=RegExp(`^\\s*(${m})`,"i");class ek{refine(e,t){return t.forEach(function(t){if(!t.start.isDateWithUnknownYear())return;let n=e.text.substring(t.index+t.text.length),r=ex.exec(n);if(!r||r[0].trim().length<=3)return;e.debug(()=>{console.log(`Extracting year: '${r[0]}' into : ${t}`)});let i=g(r[1]);null!=t.end&&t.end.assign("year",i),t.start.assign("year",i),t.text+=r[0]}),t}}class eC extends eg.d{constructor(){super()}isValid(e,t){let n=t.text.trim();return n===e.text.trim()||("may"!==n.toLowerCase()||e.text.substring(0,t.index).trim().match(/\b(in)$/i)?!n.toLowerCase().endsWith("the second")||(e.text.substring(t.index+t.text.length).trim().length>0&&e.debug(()=>{console.log(`Removing unlikely result: ${t}`)}),!1):(e.debug(()=>{console.log(`Removing unlikely result: ${t}`)}),!1))}}class eA{createCasualConfiguration(e=!1){let t=this.createConfiguration(!1,e);return t.parsers.push(new ei),t.parsers.push(new es),t.parsers.push(new I),t.parsers.push(new ed),t.parsers.push(new em),t.refiners.push(new eC),t}createConfiguration(e=!0,t=!1){let n=(0,ee.i)({parsers:[new eh.A(t),new T(e),new M,new P(t),new ec,new z,new V(e),new W(e),new Z(e)],refiners:[new Q]},e);return n.parsers.unshift(new L(e)),n.refiners.unshift(new e_),n.refiners.unshift(new ev),n.refiners.unshift(new ew.A),n.refiners.push(new Q),n.refiners.push(new ek),n.refiners.push(new K),n}}},296674:function(e,t,n){"use strict";var r=n(108625);let i=new(n(716421)).A,o=new r.u(i.createCasualConfiguration(!1));new r.u(i.createConfiguration(!0,!1)),new r.u(i.createCasualConfiguration(!0)),n.d(t,{},{Si:o})},284014:function(e,t,n){"use strict";n.d(t,{Si:function(){return I}});var r=n(723916),i=n(108625),o=n(346558),s=n(811328);let a={domingo:0,dom:0,lunes:1,lun:1,martes:2,mar:2,miércoles:3,miercoles:3,mié:3,mie:3,jueves:4,jue:4,viernes:5,vie:5,sábado:6,sabado:6,sáb:6,sab:6},l={enero:1,ene:1,"ene.":1,febrero:2,feb:2,"feb.":2,marzo:3,mar:3,"mar.":3,abril:4,abr:4,"abr.":4,mayo:5,may:5,"may.":5,junio:6,jun:6,"jun.":6,julio:7,jul:7,"jul.":7,agosto:8,ago:8,"ago.":8,septiembre:9,setiembre:9,sep:9,"sep.":9,octubre:10,oct:10,"oct.":10,noviembre:11,nov:11,"nov.":11,diciembre:12,dic:12,"dic.":12},c={uno:1,dos:2,tres:3,cuatro:4,cinco:5,seis:6,siete:7,ocho:8,nueve:9,diez:10,once:11,doce:12,trece:13},u={sec:"second",segundo:"second",segundos:"second",min:"minute",mins:"minute",minuto:"minute",minutos:"minute",h:"hour",hr:"hour",hrs:"hour",hora:"hour",horas:"hour",día:"day",días:"day",semana:"week",semanas:"week",mes:"month",meses:"month",cuarto:"quarter",cuartos:"quarter",año:"year",años:"year"},d=`(?:${(0,s.uJ)(c)}|[0-9]+|[0-9]+\\.[0-9]+|un?|uno?|una?|algunos?|unos?|demi-?)`,h=`(${d})\\s{0,5}(${(0,s.uJ)(u)})\\s{0,5}`,f=RegExp(h,"i"),p=(0,s.mb)("",h);var m=n(998596),g=n(360835);let y=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:(este|esta|pasado|pr[o\xf3]ximo)\\s*)?(${(0,s.uJ)(a)})(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(este|esta|pasado|pr[\xf3o]ximo)\\s*semana)?(?=\\W|\\d|$)`,"i");class v extends m.c{innerPattern(){return y}innerExtract(e,t){let n=a[t[2].toLowerCase()];if(void 0===n)return null;let r=t[1],i=t[3],o=r||i||"";o=o.toLowerCase();let s=null;return"pasado"==o?s="this":"próximo"==o||"proximo"==o?s="next":"este"==o&&(s="this"),(0,g.Y5)(e.reference,n,s)}}var b=n(778929);class _ extends b.B{primaryPrefix(){return"(?:(?:aslas|deslas|las?|al?|de|del)\\s*)?"}followingPhase(){return"\\s*(?:\\-|\\–|\\~|\\〜|a(?:l)?|\\?)\\s*"}}var w=n(27884);class x extends w.A{patternBetween(){return RegExp("^\\s*(?:,|de|aslas|a)?\\s*$")}}var k=n(168935);class C extends k.A{patternBetween(){return/^\s*(?:-)\s*$/i}}var A=n(151076);let D=RegExp(`([0-9]{1,2})(?:\xba|\xaa|\xb0)?(?:\\s*(?:desde|de|\\-|\\–|ao?|\\s)\\s*([0-9]{1,2})(?:\xba|\xaa|\xb0)?)?\\s*(?:de)?\\s*(?:-|/|\\s*(?:de|,)?\\s*)(${(0,s.uJ)(l)})(?:\\s*(?:de|,)?\\s*([0-9]{1,4}(?![^\\s]\\d)(?:\\s*[a|d]\\.?\\s*c\\.?|\\s*a\\.?\\s*d\\.?)?))?(?=\\W|$)`,"i");class S extends m.c{innerPattern(){return D}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=l[t[3].toLowerCase()],i=parseInt(t[1]);if(i>31)return t.index=t.index+t[1].length,null;if(n.start.assign("month",r),n.start.assign("day",i),t[4]){let e=function(e){if(e.match(/^[0-9]{1,4}$/)){let t=parseInt(e);return t<100&&(t>50?t+=1900:t+=2e3),t}return e.match(/a\.?\s*c\.?/i)?-parseInt(e=e.replace(/a\.?\s*c\.?/i,"")):parseInt(e)}(t[4]);n.start.assign("year",e)}else{let t=(0,A.Y)(e.refDate,i,r);n.start.imply("year",t)}if(t[2]){let e=parseInt(t[2]);n.end=n.start.clone(),n.end.assign("day",e)}return n}}var E=n(706141);class T extends m.c{innerPattern(e){return/(ahora|hoy|mañana|ayer)(?=\W|$)/i}innerExtract(e,t){let n=t[0].toLowerCase(),r=e.createParsingComponents();switch(n){case"ahora":return E.tB(e.reference);case"hoy":return E.Ec(e.reference);case"mañana":return E.uf(e.reference);case"ayer":return E.jI(e.reference)}return r}}var O=n(986093),M=n(311099);class N extends m.c{innerPattern(){return/(?:esta\s*)?(mañana|tarde|medianoche|mediodia|mediodía|noche)(?=\W|$)/i}innerExtract(e,t){let n=e.refDate,r=e.createParsingComponents();switch(t[1].toLowerCase()){case"tarde":r.imply("meridiem",O.FF.PM),r.imply("hour",15);break;case"noche":r.imply("meridiem",O.FF.PM),r.imply("hour",22);break;case"mañana":r.imply("meridiem",O.FF.AM),r.imply("hour",6);break;case"medianoche":let i=new Date(n.getTime());i.setDate(i.getDate()+1),(0,M.Pl)(r,i),(0,M.A4)(r,i),r.imply("hour",0),r.imply("minute",0),r.imply("second",0);break;case"mediodia":case"mediodía":r.imply("meridiem",O.FF.AM),r.imply("hour",12)}return r}}var P=n(562822);class R extends m.c{innerPattern(){return RegExp(`(?:en|por|durante|de|dentro de)\\s*(${p})(?=\\W|$)`,"i")}innerExtract(e,t){let n=function(e){let t={},n=e,r=f.exec(n);for(;r;)(function(e,t){let n=function(e){let t=e.toLowerCase();if(void 0!==c[t])return c[t];if("un"===t||"una"===t||"uno"===t)return 1;if(t.match(/algunos?/))return 3;if(t.match(/unos?/))return 3;if(t.match(/media?/))return .5;return parseFloat(t)}(t[1]);e[u[t[2].toLowerCase()]]=n})(t,r),n=n.substring(r[0].length),r=f.exec(n);return t}(t[1]);return P.BP.createRelativeFromReference(e.reference,n)}}let I=new i.u(function(e=!0){let t=F(!1,e);return t.parsers.push(new T),t.parsers.push(new N),t}());function F(e=!0,t=!0){return(0,r.i)({parsers:[new o.A(t),new v,new _,new S,new R],refiners:[new x,new C]},e)}new i.u(F(!0))},801172:function(e,t,n){"use strict";n.d(t,{Si:function(){return H}});var r=n(723916),i=n(108625),o=n(986093),s=n(998596),a=n(311099),l=n(706141);class c extends s.c{innerPattern(e){return/(maintenant|aujourd'hui|demain|hier|cette\s*nuit|la\s*veille)(?=\W|$)/i}innerExtract(e,t){let n=e.refDate,r=t[0].toLowerCase(),i=e.createParsingComponents();switch(r){case"maintenant":return l.tB(e.reference);case"aujourd'hui":return l.Ec(e.reference);case"hier":return l.jI(e.reference);case"demain":return l.uf(e.reference);default:if(r.match(/cette\s*nuit/))(0,a.Pl)(i,n),i.imply("hour",22),i.imply("meridiem",o.FF.PM);else if(r.match(/la\s*veille/)){let e=new Date(n.getTime());e.setDate(e.getDate()-1),(0,a.Pl)(i,e),i.imply("hour",0)}}return i}}class u extends s.c{innerPattern(e){return/(cet?)?\s*(matin|soir|après-midi|aprem|a midi|à minuit)(?=\W|$)/i}innerExtract(e,t){let n=t[2].toLowerCase(),r=e.createParsingComponents();switch(n){case"après-midi":case"aprem":r.imply("hour",14),r.imply("minute",0),r.imply("meridiem",o.FF.PM);break;case"soir":r.imply("hour",18),r.imply("minute",0),r.imply("meridiem",o.FF.PM);break;
3case"matin":r.imply("hour",8),r.imply("minute",0),r.imply("meridiem",o.FF.AM);break;case"a midi":r.imply("hour",12),r.imply("minute",0),r.imply("meridiem",o.FF.AM);break;case"à minuit":r.imply("hour",0),r.imply("meridiem",o.FF.AM)}return r}}var d=n(346558),h=n(778929);class f extends h.B{primaryPrefix(){return"(?:(?:[àa])\\s*)?"}followingPhase(){return"\\s*(?:\\-|\\–|\\~|\\〜|[àa]|\\?)\\s*"}extractPrimaryTimeComponents(e,t){return t[0].match(/^\s*\d{4}\s*$/)?null:super.extractPrimaryTimeComponents(e,t)}}var p=n(27884);class m extends p.A{patternBetween(){return RegExp("^\\s*(T|à|a|au|vers|de|,|-)?\\s*$")}}var g=n(168935);class y extends g.A{patternBetween(){return/^\s*(à|a|au|-)\s*$/i}}var v=n(811328);let b={dimanche:0,dim:0,lundi:1,lun:1,mardi:2,mar:2,mercredi:3,mer:3,jeudi:4,jeu:4,vendredi:5,ven:5,samedi:6,sam:6},_={janvier:1,jan:1,"jan.":1,février:2,fév:2,"fév.":2,fevrier:2,fev:2,"fev.":2,mars:3,mar:3,"mar.":3,avril:4,avr:4,"avr.":4,mai:5,juin:6,jun:6,juillet:7,juil:7,jul:7,"jul.":7,août:8,aout:8,septembre:9,sep:9,"sep.":9,sept:9,"sept.":9,octobre:10,oct:10,"oct.":10,novembre:11,nov:11,"nov.":11,décembre:12,decembre:12,dec:12,"dec.":12},w={un:1,deux:2,trois:3,quatre:4,cinq:5,six:6,sept:7,huit:8,neuf:9,dix:10,onze:11,douze:12,treize:13},x={sec:"second",seconde:"second",secondes:"second",min:"minute",mins:"minute",minute:"minute",minutes:"minute",h:"hour",hr:"hour",hrs:"hour",heure:"hour",heures:"hour",jour:"day",jours:"day",semaine:"week",semaines:"week",mois:"month",trimestre:"quarter",trimestres:"quarter",ans:"year",année:"year",années:"year"},k=`(?:${(0,v.uJ)(w)}|[0-9]+|[0-9]+\\.[0-9]+|une?\\b|quelques?|demi-?)`;function C(e){let t=e.toLowerCase();return void 0!==w[t]?w[t]:"une"===t||"un"===t?1:t.match(/quelques?/)?3:t.match(/demi-?/)?.5:parseFloat(t)}let A="(?:[0-9]{1,2}(?:er)?)";function D(e){let t=e.toLowerCase();return parseInt(t=t.replace(/(?:er)$/i,""))}let S=`(${k})\\s{0,5}(${(0,v.uJ)(x)})\\s{0,5}`,E=RegExp(S,"i"),T=(0,v.mb)("",S);function O(e){let t={},n=e,r=E.exec(n);for(;r;)(function(e,t){let n=C(t[1]);e[x[t[2].toLowerCase()]]=n})(t,r),n=n.substring(r[0].length),r=E.exec(n);return t}var M=n(360835);let N=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:(?:ce)\\s*)?(${(0,v.uJ)(b)})(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(dernier|prochain)\\s*)?(?=\\W|\\d|$)`,"i");class P extends s.c{innerPattern(){return N}innerExtract(e,t){let n=b[t[1].toLowerCase()];if(void 0===n)return null;let r=t[2];r=(r=r||"").toLowerCase();let i=null;return"dernier"==r?i="last":"prochain"==r&&(i="next"),(0,M.Y5)(e.reference,n,i)}}let R=RegExp("(^|\\s|T)(?:(?:[àa])\\s*)?(\\d{1,2})(?:h|:)?(?:(\\d{1,2})(?:m|:)?)?(?:(\\d{1,2})(?:s|:)?)?(?:\\s*(A\\.M\\.|P\\.M\\.|AM?|PM?))?(?=\\W|$)","i"),I=RegExp("^\\s*(\\-|\\–|\\~|\\〜|[àa]|\\?)\\s*(\\d{1,2})(?:h|:)?(?:(\\d{1,2})(?:m|:)?)?(?:(\\d{1,2})(?:s|:)?)?(?:\\s*(A\\.M\\.|P\\.M\\.|AM?|PM?))?(?=\\W|$)","i");class F{pattern(e){return R}extract(e,t){let n=e.createParsingResult(t.index+t[1].length,t[0].substring(t[1].length));if(n.text.match(/^\d{4}$/)||(n.start=F.extractTimeComponent(n.start.clone(),t),!n.start))return t.index+=t[0].length,null;let r=e.text.substring(t.index+t[0].length),i=I.exec(r);return i&&(n.end=F.extractTimeComponent(n.start.clone(),i),n.end&&(n.text+=i[0])),n}static extractTimeComponent(e,t){let n=0,r=0,i=null;if(n=parseInt(t[2]),null!=t[3]&&(r=parseInt(t[3])),r>=60||n>24)return null;if(n>=12&&(i=o.FF.PM),null!=t[5]){if(n>12)return null;let e=t[5][0].toLowerCase();"a"==e&&(i=o.FF.AM,12==n&&(n=0)),"p"==e&&(i=o.FF.PM,12!=n&&(n+=12))}if(e.assign("hour",n),e.assign("minute",r),null!==i?e.assign("meridiem",i):n<12?e.imply("meridiem",o.FF.AM):e.imply("meridiem",o.FF.PM),null!=t[4]){let n=parseInt(t[4]);if(n>=60)return null;e.assign("second",n)}return e}}var L=n(151076);let j=RegExp(`(?:on\\s*?)?(${A})(?:\\s*(?:au|\\-|\\–|jusqu'au?|\\s)\\s*(${A}))?(?:-|/|\\s*(?:de)?\\s*)(${(0,v.uJ)(_)})(?:(?:-|/|,?\\s*)((?:[1-9][0-9]{0,3}\\s*(?:AC|AD|p\\.\\s*C(?:hr?)?\\.\\s*n\\.)|[1-2][0-9]{3}|[5-9][0-9])(?![^\\s]\\d)))?(?=\\W|$)`,"i");class z extends s.c{innerPattern(){return j}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=_[t[3].toLowerCase()],i=D(t[1]);if(i>31)return t.index=t.index+t[1].length,null;if(n.start.assign("month",r),n.start.assign("day",i),t[4]){let e=function(e){if(/AC/i.test(e))return-parseInt(e=e.replace(/BC/i,""));if(/AD/i.test(e)||/C/i.test(e))return parseInt(e=e.replace(/[^\d]+/i,""));let t=parseInt(e);return t<100&&(t>50?t+=1900:t+=2e3),t}(t[4]);n.start.assign("year",e)}else{let t=(0,L.Y)(e.refDate,i,r);n.start.imply("year",t)}if(t[2]){let e=D(t[2]);n.end=n.start.clone(),n.end.assign("day",e)}return n}}var $=n(562822),B=n(85236);class V extends s.c{constructor(){super()}innerPattern(){return RegExp(`il y a\\s*(${T})(?=(?:\\W|$))`,"i")}innerExtract(e,t){let n=O(t[1]),r=(0,B.x4)(n);return $.BP.createRelativeFromReference(e.reference,r)}}class Y extends s.c{innerPattern(){return RegExp(`(?:dans|en|pour|pendant|de)\\s*(${T})(?=\\W|$)`,"i")}innerExtract(e,t){let n=O(t[1]);return $.BP.createRelativeFromReference(e.reference,n)}}class q extends s.c{constructor(){super()}innerPattern(){return RegExp(`(?:les?|la|l'|du|des?)\\s*(${k})?(?:\\s*(prochaine?s?|derni[e\xe8]re?s?|pass[\xe9e]e?s?|pr[\xe9e]c[\xe9e]dents?|suivante?s?))?\\s*(${(0,v.uJ)(x)})(?:\\s*(prochaine?s?|derni[e\xe8]re?s?|pass[\xe9e]e?s?|pr[\xe9e]c[\xe9e]dents?|suivante?s?))?`,"i")}innerExtract(e,t){let n=t[1]?C(t[1]):1,r=x[t[3].toLowerCase()],i={};i[r]=n;let o=t[2]||t[4]||"";if(o=o.toLowerCase())return(/derni[eè]re?s?/.test(o)||/pass[ée]e?s?/.test(o)||/pr[ée]c[ée]dents?/.test(o))&&(i=(0,B.x4)(i)),$.BP.createRelativeFromReference(e.reference,i)}}let H=new i.u(function(e=!0){let t=W(!1,e);return t.parsers.unshift(new c),t.parsers.unshift(new u),t.parsers.unshift(new q),t}());function W(e=!0,t=!0){return(0,r.i)({parsers:[new d.A(t),new z,new f,new F,new V,new Y,new P],refiners:[new m,new y]},e)}new i.u(W(!0))},217897:function(e,t,n){"use strict";n.d(t,{Si:function(){return eo}});var r=n(723916),i=n(108625),o=n(168935);class s extends o.A{patternBetween(){return/^\s*(tot|-)\s*$/i}}var a=n(27884);class l extends a.A{patternBetween(){return RegExp("^\\s*(om|na|voor|in de|,|-)?\\s*$")}}var c=n(998596),u=n(706141);class d extends c.c{innerPattern(e){return/(nu|vandaag|morgen|morgend|gisteren)(?=\W|$)/i}innerExtract(e,t){let n=t[0].toLowerCase(),r=e.createParsingComponents();switch(n){case"nu":return u.tB(e.reference);case"vandaag":return u.Ec(e.reference);case"morgen":case"morgend":return u.uf(e.reference);case"gisteren":return u.jI(e.reference)}return r}}var h=n(986093),f=n(311099);class p extends c.c{innerPattern(){return/(deze)?\s*(namiddag|avond|middernacht|ochtend|middag|'s middags|'s avonds|'s ochtends)(?=\W|$)/i}innerExtract(e,t){let n=e.refDate,r=e.createParsingComponents();switch("deze"===t[1]&&(r.assign("day",e.refDate.getDate()),r.assign("month",e.refDate.getMonth()+1),r.assign("year",e.refDate.getFullYear())),t[2].toLowerCase()){case"namiddag":case"'s namiddags":r.imply("meridiem",h.FF.PM),r.imply("hour",15);break;case"avond":case"'s avonds'":r.imply("meridiem",h.FF.PM),r.imply("hour",20);break;case"middernacht":let i=new Date(n.getTime());i.setDate(i.getDate()+1),(0,f.Pl)(r,i),(0,f.A4)(r,i),r.imply("hour",0),r.imply("minute",0),r.imply("second",0);break;case"ochtend":case"'s ochtends":r.imply("meridiem",h.FF.AM),r.imply("hour",6);break;case"middag":case"'s middags":r.imply("meridiem",h.FF.AM),r.imply("hour",12)}return r}}var m=n(346558),g=n(811328),y=n(151076);let v={zondag:0,zon:0,"zon.":0,zo:0,"zo.":0,maandag:1,ma:1,"ma.":1,dinsdag:2,din:2,"din.":2,di:2,"di.":2,woensdag:3,woe:3,"woe.":3,wo:3,"wo.":3,donderdag:4,dond:4,"dond.":4,do:4,"do.":4,vrijdag:5,vrij:5,"vrij.":5,vr:5,"vr.":5,zaterdag:6,zat:6,"zat.":6,za:6,"za.":6},b={januari:1,jan:1,"jan.":1,februari:2,feb:2,"feb.":2,maart:3,mar:3,"mar.":3,mrt:3,"mrt.":3,april:4,apr:4,"apr.":4,mei:5,juni:6,jun:6,"jun.":6,juli:7,jul:7,"jul.":7,augustus:8,aug:8,"aug.":8,september:9,sep:9,"sep.":9,sept:9,"sept.":9,oktober:10,okt:10,"okt.":10,november:11,nov:11,"nov.":11,december:12,dec:12,"dec.":12},_={een:1,twee:2,drie:3,vier:4,vijf:5,zes:6,zeven:7,acht:8,negen:9,tien:10,elf:11,twaalf:12},w={eerste:1,tweede:2,derde:3,vierde:4,vijfde:5,zesde:6,zevende:7,achtste:8,negende:9,tiende:10,elfde:11,twaalfde:12,dertiende:13,veertiende:14,vijftiende:15,zestiende:16,zeventiende:17,achttiende:18,negentiende:19,twintigste:20,eenentwintigste:21,tweeëntwintigste:22,drieentwintigste:23,vierentwintigste:24,vijfentwintigste:25,zesentwintigste:26,zevenentwintigste:27,achtentwintig:28,negenentwintig:29,dertigste:30,eenendertigste:31},x={sec:"second",second:"second",seconden:"second",min:"minute",mins:"minute",minute:"minute",minuut:"minute",minuten:"minute",minuutje:"minute",h:"hour",hr:"hour",hrs:"hour",uur:"hour",u:"hour",uren:"hour",dag:"day",dagen:"day",week:"week",weken:"week",maand:"month",maanden:"month",jaar:"year",jr:"year",jaren:"year"},k=`(?:${(0,g.uJ)(_)}|[0-9]+|[0-9]+[\\.,][0-9]+|halve?|half|paar)`,C=`(?:${(0,g.uJ)(w)}|[0-9]{1,2}(?:ste|de)?)`;function A(e){let t=e.toLowerCase();return void 0!==w[t]?w[t]:parseInt(t=t.replace(/(?:ste|de)$/i,""))}let D="(?:[1-9][0-9]{0,3}\\s*(?:voor Christus|na Christus)|[1-2][0-9]{3}|[5-9][0-9])";function S(e){if(/voor Christus/i.test(e))return-parseInt(e=e.replace(/voor Christus/i,""));if(/na Christus/i.test(e))return parseInt(e=e.replace(/na Christus/i,""));let t=parseInt(e);return(0,y.D)(t)}let E=`(${k})\\s{0,5}(${(0,g.uJ)(x)})\\s{0,5}`,T=RegExp(E,"i"),O=(0,g.mb)("(?:(?:binnen|in)\\s*)?",E);function M(e){let t={},n=e,r=T.exec(n);for(;r;)(function(e,t){let n=function(e){let t=e.toLowerCase();return void 0!==_[t]?_[t]:"paar"===t?2:"half"===t||t.match(/halve?/)?.5:parseFloat(t.replace(",","."))}(t[1]);e[x[t[2].toLowerCase()]]=n})(t,r),n=n.substring(r[0].length),r=T.exec(n);return t}var N=n(562822);class P extends c.c{innerPattern(){return RegExp("(?:binnen|in|binnen de|voor)\\s*("
3+O+")(?=\\W|$)","i")}innerExtract(e,t){let n=M(t[1]);return N.BP.createRelativeFromReference(e.reference,n)}}var R=n(360835);let I=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:op\\s*?)?(?:(deze|vorige|volgende)\\s*(?:week\\s*)?)?(${(0,g.uJ)(v)})(?=\\W|$)`,"i");class F extends c.c{innerPattern(){return I}innerExtract(e,t){let n=v[t[2].toLowerCase()],r=t[1],i=t[3],o=r||i;o=(o=o||"").toLowerCase();let s=null;return"vorige"==o?s="last":"volgende"==o?s="next":"deze"==o&&(s="this"),(0,R.Y5)(e.reference,n,s)}}let L=RegExp(`(?:on\\s*?)?(${C})(?:\\s*(?:tot|\\-|\\–|until|through|till|\\s)\\s*(${C}))?(?:-|/|\\s*(?:of)?\\s*)(`+(0,g.uJ)(b)+")(?:(?:-|/|,?\\s*)"+`(${D}(?![^\\s]\\d))`+")?(?=\\W|$)","i");class j extends c.c{innerPattern(){return L}innerExtract(e,t){let n=b[t[3].toLowerCase()],r=A(t[1]);if(r>31)return t.index=t.index+t[1].length,null;let i=e.createParsingComponents({day:r,month:n});if(t[4]){let e=S(t[4]);i.assign("year",e)}else{let t=(0,y.Y)(e.refDate,r,n);i.imply("year",t)}if(!t[2])return i;let o=A(t[2]),s=e.createParsingResult(t.index,t[0]);return s.start=i,s.end=i.clone(),s.end.assign("day",o),s}}let z=RegExp(`(${(0,g.uJ)(b)})\\s*(?:[,-]?\\s*(${D})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,"i");class $ extends c.c{innerPattern(){return z}innerExtract(e,t){let n=e.createParsingComponents();n.imply("day",1);let r=b[t[1].toLowerCase()];if(n.assign("month",r),t[2]){let e=S(t[2]);n.assign("year",e)}else{let t=(0,y.Y)(e.refDate,1,r);n.imply("year",t)}return n}}let B=RegExp("([0-9]|0[1-9]|1[012])/([0-9]{4})","i");class V extends c.c{innerPattern(){return B}innerExtract(e,t){let n=parseInt(t[2]),r=parseInt(t[1]);return e.createParsingComponents().imply("day",1).assign("month",r).assign("year",n)}}var Y=n(778929);class q extends Y.B{primaryPrefix(){return"(?:(?:om)\\s*)?"}followingPhase(){return"\\s*(?:\\-|\\–|\\~|\\〜|om|\\?)\\s*"}primarySuffix(){return"(?:\\s*(?:uur))?(?!/)(?=\\W|$)"}extractPrimaryTimeComponents(e,t){return t[0].match(/^\s*\d{4}\s*$/)?null:super.extractPrimaryTimeComponents(e,t)}}let H=RegExp(`([0-9]{4})[\\.\\/\\s](?:(${(0,g.uJ)(b)})|([0-9]{1,2}))[\\.\\/\\s]([0-9]{1,2})(?=\\W|$)`,"i");class W extends c.c{innerPattern(){return H}innerExtract(e,t){let n=t[3]?parseInt(t[3]):b[t[2].toLowerCase()];if(n<1||n>12)return null;let r=parseInt(t[1]);return{day:parseInt(t[4]),month:n,year:r}}}class U extends c.c{innerPattern(e){return/(gisteren|morgen|van)(ochtend|middag|namiddag|avond|nacht)(?=\W|$)/i}innerExtract(e,t){let n=t[1].toLowerCase(),r=t[2].toLowerCase(),i=e.createParsingComponents(),o=e.refDate;switch(n){case"gisteren":let s=new Date(o.getTime());s.setDate(s.getDate()-1),(0,f.Pl)(i,s);break;case"van":(0,f.Pl)(i,o);break;case"morgen":let a=new Date(o.getTime());a.setDate(a.getDate()+1),(0,f.Pl)(i,a),(0,f.A4)(i,a)}switch(r){case"ochtend":i.imply("meridiem",h.FF.AM),i.imply("hour",6);break;case"middag":i.imply("meridiem",h.FF.AM),i.imply("hour",12);break;case"namiddag":i.imply("meridiem",h.FF.PM),i.imply("hour",15);break;case"avond":i.imply("meridiem",h.FF.PM),i.imply("hour",20)}return i}}var G=n(85236);let Z=RegExp(`(dit|deze|vorig|afgelopen|(?:aan)?komend|over|\\+|-)e?\\s*(${O})(?=\\W|$)`,"i");class J extends c.c{innerPattern(){return Z}innerExtract(e,t){let n=t[1].toLowerCase(),r=M(t[2]);switch(n){case"vorig":case"afgelopen":case"-":r=(0,G.x4)(r)}return N.BP.createRelativeFromReference(e.reference,r)}}let K=RegExp(`(dit|deze|(?:aan)?komend|volgend|afgelopen|vorig)e?\\s*(${(0,g.uJ)(x)})(?=\\s*)(?=\\W|$)`,"i");class X extends c.c{innerPattern(){return K}innerExtract(e,t){let n=t[1].toLowerCase(),r=t[2].toLowerCase(),i=x[r];if("volgend"==n||"komend"==n||"aankomend"==n){let t={};return t[i]=1,N.BP.createRelativeFromReference(e.reference,t)}if("afgelopen"==n||"vorig"==n){let t={};return t[i]=-1,N.BP.createRelativeFromReference(e.reference,t)}let o=e.createParsingComponents(),s=new Date(e.reference.instant.getTime());return r.match(/week/i)?(s.setDate(s.getDate()-s.getDay()),o.imply("day",s.getDate()),o.imply("month",s.getMonth()+1),o.imply("year",s.getFullYear())):r.match(/maand/i)?(s.setDate(1),o.imply("day",s.getDate()),o.assign("year",s.getFullYear()),o.assign("month",s.getMonth()+1)):r.match(/jaar/i)&&(s.setDate(1),s.setMonth(0),o.imply("day",s.getDate()),o.imply("month",s.getMonth()+1),o.assign("year",s.getFullYear())),o}}let Q=RegExp("("+O+")(?:geleden|voor|eerder)(?=(?:\\W|$))","i"),ee=RegExp("("+O+")geleden(?=(?:\\W|$))","i");class et extends c.c{strictMode;constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?ee:Q}innerExtract(e,t){let n=M(t[1]),r=(0,G.x4)(n);return N.BP.createRelativeFromReference(e.reference,r)}}let en=RegExp("("+O+")(later|na|vanaf nu|voortaan|vooruit|uit)(?=(?:\\W|$))","i"),er=RegExp("("+O+")(later|vanaf nu)(?=(?:\\W|$))","i");class ei extends c.c{strictMode;constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?er:en}innerExtract(e,t){let n=M(t[1]);return N.BP.createRelativeFromReference(e.reference,n)}}let eo=new i.u(function(e=!0){let t=es(!1,e);return t.parsers.unshift(new d),t.parsers.unshift(new p),t.parsers.unshift(new U),t.parsers.unshift(new $),t.parsers.unshift(new X),t.parsers.unshift(new J),t}());function es(e=!0,t=!0){return(0,r.i)({parsers:[new m.A(t),new P,new j,new $,new F,new W,new V,new q(e),new et(e),new ei(e)],refiners:[new l,new s]},e)}new i.u(es(!0))},562822:function(e,t,n){"use strict";var r=n(311099),i=n(634909),o=n(85236);class s{instant;timezoneOffset;constructor(e,t){this.instant=e??new Date,this.timezoneOffset=t??null}static fromDate(e){return new s(e)}static fromInput(e,t){if(e instanceof Date)return s.fromDate(e);let n=e?.instant??new Date,r=(0,i.Cm)(e?.timezone,n,t);return new s(n,r)}getDateWithAdjustedTimezone(){let e=new Date(this.instant);return null!==this.timezoneOffset&&e.setMinutes(e.getMinutes()-this.getSystemTimezoneAdjustmentMinute(this.instant)),e}getSystemTimezoneAdjustmentMinute(e,t){(!e||0>e.getTime())&&(e=new Date);let n=-e.getTimezoneOffset(),r=t??this.timezoneOffset??n;return n-r}getTimezoneOffset(){return this.timezoneOffset??-this.instant.getTimezoneOffset()}}class a{knownValues;impliedValues;reference;_tags=new Set;constructor(e,t){if(this.reference=e,this.knownValues={}
3,this.impliedValues={},t)for(let e in t)this.knownValues[e]=t[e];let n=e.getDateWithAdjustedTimezone();this.imply("day",n.getDate()),this.imply("month",n.getMonth()+1),this.imply("year",n.getFullYear()),this.imply("hour",12),this.imply("minute",0),this.imply("second",0),this.imply("millisecond",0)}static createRelativeFromReference(e,t=o.ks){let n=(0,o.Gw)(e.getDateWithAdjustedTimezone(),t),i=new a(e);return i.addTag("result/relativeDate"),"hour"in t||"minute"in t||"second"in t||"millisecond"in t?(i.addTag("result/relativeDateAndTime"),(0,r.i2)(i,n),(0,r.Pl)(i,n),i.assign("timezoneOffset",e.getTimezoneOffset())):((0,r.A4)(i,n),i.imply("timezoneOffset",e.getTimezoneOffset()),"day"in t?(i.assign("day",n.getDate()),i.assign("month",n.getMonth()+1),i.assign("year",n.getFullYear()),i.assign("weekday",n.getDay())):"week"in t?(i.assign("day",n.getDate()),i.assign("month",n.getMonth()+1),i.assign("year",n.getFullYear()),i.imply("weekday",n.getDay())):(i.imply("day",n.getDate()),"month"in t?(i.assign("month",n.getMonth()+1),i.assign("year",n.getFullYear())):(i.imply("month",n.getMonth()+1),"year"in t?i.assign("year",n.getFullYear()):i.imply("year",n.getFullYear())))),i}get(e){return e in this.knownValues?this.knownValues[e]:e in this.impliedValues?this.impliedValues[e]:null}isCertain(e){return e in this.knownValues}getCertainComponents(){return Object.keys(this.knownValues)}imply(e,t){return e in this.knownValues||(this.impliedValues[e]=t),this}assign(e,t){return this.knownValues[e]=t,delete this.impliedValues[e],this}addDurationAsImplied(e){let t=this.dateWithoutTimezoneAdjustment(),n=(0,o.Gw)(t,e);return("day"in e||"week"in e||"month"in e||"year"in e)&&(this.delete(["day","weekday","month","year"]),this.imply("day",n.getDate()),this.imply("weekday",n.getDay()),this.imply("month",n.getMonth()+1),this.imply("year",n.getFullYear())),("second"in e||"minute"in e||"hour"in e)&&(this.delete(["second","minute","hour"]),this.imply("second",n.getSeconds()),this.imply("minute",n.getMinutes()),this.imply("hour",n.getHours())),this}delete(e){for(let t of("string"==typeof e&&(e=[e]),e))delete this.knownValues[t],delete this.impliedValues[t]}clone(){let e=new a(this.reference);for(let t in e.knownValues={},e.impliedValues={},this.knownValues)e.knownValues[t]=this.knownValues[t];for(let t in this.impliedValues)e.impliedValues[t]=this.impliedValues[t];return e}isOnlyDate(){return!this.isCertain("hour")&&!this.isCertain("minute")&&!this.isCertain("second")}isOnlyTime(){return!this.isCertain("weekday")&&!this.isCertain("day")&&!this.isCertain("month")&&!this.isCertain("year")}isOnlyWeekdayComponent(){return this.isCertain("weekday")&&!this.isCertain("day")&&!this.isCertain("month")}isDateWithUnknownYear(){return this.isCertain("month")&&!this.isCertain("year")}isValidDate(){let e=this.dateWithoutTimezoneAdjustment();return e.getFullYear()===this.get("year")&&e.getMonth()===this.get("month")-1&&e.getDate()===this.get("day")&&(null==this.get("hour")||e.getHours()==this.get("hour"))&&(null==this.get("minute")||e.getMinutes()==this.get("minute"))}toString(){return`[ParsingComponents {
4            tags: ${JSON.stringify(Array.from(this._tags).sort())}, 
5            knownValues: ${JSON.stringify(this.knownValues)}, 
6            impliedValues: ${JSON.stringify(this.impliedValues)}}, 
7            reference: ${JSON.stringify(this.reference)}]`}date(){let e=this.dateWithoutTimezoneAdjustment(),t=this.reference.getSystemTimezoneAdjustmentMinute(e,this.get("timezoneOffset"));return new Date(e.getTime()+6e4*t)}addTag(e){return this._tags.add(e),this}addTags(e){for(let t of e)this._tags.add(t);return this}tags(){return new Set(this._tags)}dateWithoutTimezoneAdjustment(){let e=new Date(this.get("year"),this.get("month")-1,this.get("day"),this.get("hour"),this.get("minute"),this.get("second"),this.get("millisecond"));return e.setFullYear(this.get("year")),e}}class l{refDate;index;text;reference;start;end;constructor(e,t,n,r,i){this.reference=e,this.refDate=e.instant,this.index=t,this.text=n,this.start=r||new a(e),this.end=i}clone(){let e=new l(this.reference,this.index,this.text);return e.start=this.start?this.start.clone():null,e.end=this.end?this.end.clone():null,e}date(){return this.start.date()}addTag(e){return this.start.addTag(e),this.end&&this.end.addTag(e),this}addTags(e){return this.start.addTags(e),this.end&&this.end.addTags(e),this}tags(){let e=new Set(this.start.tags());if(this.end)for(let t of this.end.tags())e.add(t);return e}toString(){let e=Array.from(this.tags()).sort();return`[ParsingResult {index: ${this.index}, text: '${this.text}', tags: ${JSON.stringify(e)} ...}]`}}n.d(t,{BP:function(){return a},b5:function(){return s},s4:function(){return l}})},634909:function(e,t,n){"use strict";var r=n(986093);let i={ACDT:630,ACST:570,ADT:-180,AEDT:660,AEST:600,AFT:270,AKDT:-480,AKST:-540,ALMT:360,AMST:-180,AMT:-240,ANAST:720,ANAT:720,AQTT:300,ART:-180,AST:-240,AWDT:540,AWST:480,AZOST:0,AZOT:-60,AZST:300,AZT:240,BNT:480,BOT:-240,BRST:-120,BRT:-180,BST:60,BTT:360,CAST:480,CAT:120,CCT:390,CDT:-300,CEST:120,CET:{timezoneOffsetDuringDst:120,timezoneOffsetNonDst:60,dstStart:e=>s(e,r.fF.MARCH,r.Bw.SUNDAY,2),dstEnd:e=>s(e,r.fF.OCTOBER,r.Bw.SUNDAY,3)},CHADT:825,CHAST:765,CKT:-600,CLST:-180,CLT:-240,COT:-300,CST:-360,CT:{timezoneOffsetDuringDst:-300,timezoneOffsetNonDst:-360,dstStart:e=>o(e,r.fF.MARCH,r.Bw.SUNDAY,2,2),dstEnd:e=>o(e,r.fF.NOVEMBER,r.Bw.SUNDAY,1,2)},CVT:-60,CXT:420,ChST:600,DAVT:420,EASST:-300,EAST:-360,EAT:180,ECT:-300,EDT:-240,EEST:180,EET:120,EGST:0,EGT:-60,EST:-300,ET:{timezoneOffsetDuringDst:-240,timezoneOffsetNonDst:-300,dstStart:e=>o(e,r.fF.MARCH,r.Bw.SUNDAY,2,2),dstEnd:e=>o(e,r.fF.NOVEMBER,r.Bw.SUNDAY,1,2)},FJST:780,FJT:720,FKST:-180,FKT:-240,FNT:-120,GALT:-360,GAMT:-540,GET:240,GFT:-180,GILT:720,GMT:0,GST:240,GYT:-240,HAA:-180,HAC:-300,HADT:-540,HAE:-240,HAP:-420,HAR:-360,HAST:-600,HAT:-90,HAY:-480,HKT:480,HLV:-210,HNA:-240,HNC:-360,HNE:-300,HNP:-480,HNR:-420,HNT:-150,HNY:-540,HOVT:420,ICT:420,IDT:180,IOT:360,IRDT:270,IRKST:540,IRKT:540,IRST:210,IST:330,JST:540,KGT:360,KRAST:480,KRAT:480,KST:540,KUYT:240,LHDT:660,LHST:630,LINT:840,MAGST:720,MAGT:720,MART:-510,MAWT:300,MDT:-360,MESZ:120,MEZ:60,MHT:720,MMT:390,MSD:240,MSK:180,MST:-420,MT:{timezoneOffsetDuringDst:-360,timezoneOffsetNonDst:-420,dstStart:e=>o(e,r.fF.MARCH,r.Bw.SUNDAY,2,2),dstEnd:e=>o(e,r.fF.NOVEMBER,r.Bw.SUNDAY,1,2)},MUT:240,MVT:300,MYT:480,NCT:660,NDT:-90,NFT:690,NOVST:420,NOVT:360,NPT:345,NST:-150,NUT:-660,NZDT:780,NZST:720,OMSST:420,OMST:420,PDT:-420,PET:-300,PETST:720,PETT:720,PGT:600,PHOT:780,PHT:480,PKT:300,PMDT:-120,PMST:-180,PONT:660,PST:-480,PT:{timezoneOffsetDuringDst:-420,timezoneOffsetNonDst:-480,dstStart:e=>o(e,r.fF.MARCH,r.Bw.SUNDAY,2,2),dstEnd:e=>o(e,r.fF.NOVEMBER,r.Bw.SUNDAY,1,2)},PWT:540,PYST:-180,PYT:-240,RET:240,SAMT:240,SAST:120,SBT:660,SCT:240,SGT:480,SRT:-180,SST:-660,TAHT:-600,TFT:300,TJT:300,TKT:780,TLT:540,TMT:300,TVT:720,ULAT:480,UTC:0,UYST:-120,UYT:-180,UZT:300,VET:-210,VLAST:660,VLAT:660,VUT:660,WAST:120,WAT:60,WEST:60,WESZ:60,WET:0,WEZ:0,WFT:720,WGST:-120,WGT:-180,WIB:420,WIT:540,WITA:480,WST:780,WT:0,YAKST:600,YAKT:600,YAPT:600,YEKST:360,YEKT:360};function o(e,t,n,r,i=0){let s=0,a=0;for(;a<r;)new Date(e,t-1,++s).getDay()===n&&a++;return new Date(e,t-1,s,i)}function s(e,t,n,r=0){let i,o=0===n?7:n,a=new Date(e,t-1+1,1,12),l=0===a.getDay()?7:a.getDay();return i=l===o?7:l<o?7+l-o:l-o,a.setDate(a.getDate()-i),new Date(e,t-1,a.getDate(),r)}function a(e,t,n={}){if(null==e)return null;if("number"==typeof e)return e;let r=n[e]??i[e];return null==r?null:"number"==typeof r?r:null==t?null:t>r.dstStart(t.getFullYear())&&!(t>r.dstEnd(t.getFullYear()))?r.timezoneOffsetDuringDst:r.timezoneOffsetNonDst}n.d(t,{Cm:function(){return a}})},986093:function(e,t,n){"use strict";var r,i,o,s,a,l;(s=r||(r={}))[s.AM=0]="AM",s[s.PM=1]="PM",(a=i||(i={}))[a.SUNDAY=0]="SUNDAY",a[a.MONDAY=1]="MONDAY",a[a.TUESDAY=2]="TUESDAY",a[a.WEDNESDAY=3]="WEDNESDAY",a[a.THURSDAY=4]="THURSDAY",a[a.FRIDAY=5]="FRIDAY",a[a.SATURDAY=6]="SATURDAY",(l=o||(o={}))[l.JANUARY=1]="JANUARY",l[l.FEBRUARY=2]="FEBRUARY",l[l.MARCH=3]="MARCH",l[l.APRIL=4]="APRIL",l[l.MAY=5]="MAY",l[l.JUNE=6]="JUNE",l[l.JULY=7]="JULY",l[l.AUGUST=8]="AUGUST",l[l.SEPTEMBER=9]="SEPTEMBER",l[l.OCTOBER=10]="OCTOBER",l[l.NOVEMBER=11]="NOVEMBER",l[l.DECEMBER=12]="DECEMBER",n.d(t,{Bw:function(){return i},FF:function(){return r},fF:function(){return o}})},311099:function(e,t,n){"use strict";var r=n(986093);function i(e,t){e.assign("day",t.getDate()),e.assign("month",t.getMonth()+1),e.assign("year",t.getFullYear())}function o(e,t){e.assign("hour",t.getHours()),e.assign("minute",t.getMinutes()),e.assign("second",t.getSeconds()),e.assign("millisecond",t.getMilliseconds()),e.assign("meridiem",12>
7t.getHours()?r.FF.AM:r.FF.PM)}function s(e,t){e.imply("day",t.getDate()),e.imply("month",t.getMonth()+1),e.imply("year",t.getFullYear())}function a(e,t){e.imply("hour",t.getHours()),e.imply("minute",t.getMinutes()),e.imply("second",t.getSeconds()),e.imply("millisecond",t.getMilliseconds()),e.imply("meridiem",12>t.getHours()?r.FF.AM:r.FF.PM)}n.d(t,{A4:function(){return a},Hq:function(){return s},Pl:function(){return i},i2:function(){return o}})},811328:function(e,t,n){"use strict";function r(e,t,n="\\s{0,5},?\\s{0,5}"){let i=t.replace(/\((?!\?)/g,"(?:");return`${e}${i}(?:${n}${i}){0,10}`}function i(e){let t=(e instanceof Array?[...e]:e instanceof Map?Array.from(e.keys()):Object.keys(e)).sort((e,t)=>t.length-e.length).join("|").replace(/\./g,"\\.");return`(?:${t})`}n.d(t,{mb:function(){return r},uJ:function(){return i}})},842439:function(e,t,n){"use strict";n.d(t,{D:function(){return s}});var r=n(656862),i=n(818494),o=n(130554);function s(e,t,n){let s=(0,i.a)(e,n?.in),a=(0,o.c)(s,n);if(isNaN(t))return(0,r.w)(n?.in,0/0);let l=s.getHours(),c=t<0?-1:1,u=Math.trunc(t/5);s.setDate(s.getDate()+7*u);let d=Math.abs(t%5);for(;d>0;)s.setDate(s.getDate()+c),(0,o.c)(s,n)||(d-=1);a&&(0,o.c)(s,n)&&0!==t&&(6===(0,i.a)(s,n?.in).getDay()&&s.setDate(s.getDate()+(c<0?2:-1)),0===(0,i.a)(s,n?.in).getDay()&&s.setDate(s.getDate()+(c<0?1:-2)));return s.setHours(l),s}},130554:function(e,t,n){"use strict";var r=n(818494);function i(e,t){let n=(0,r.a)(e,t?.in).getDay();return 0===n||6===n}n.d(t,{c:function(){return i}})},1913:function(e,t,n){"use strict";function r(){return(r=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}).apply(null,arguments)}n.d(t,{A:function(){return r}})},123200:function(e,t,n){"use strict";var r,i,o,s,a,l,c,u,d=n(377181),h=n(545275),f=n(910670);function p(e){return e>=a.ZERO&&e<=a.NINE}(r=a||(a={}))[r.NUM=35]="NUM",r[r.SEMI=59]="SEMI",r[r.EQUALS=61]="EQUALS",r[r.ZERO=48]="ZERO",r[r.NINE=57]="NINE",r[r.LOWER_A=97]="LOWER_A",r[r.LOWER_F=102]="LOWER_F",r[r.LOWER_X=120]="LOWER_X",r[r.LOWER_Z=122]="LOWER_Z",r[r.UPPER_A=65]="UPPER_A",r[r.UPPER_F=70]="UPPER_F",r[r.UPPER_Z=90]="UPPER_Z",(i=l||(l={}))[i.VALUE_LENGTH=49152]="VALUE_LENGTH",i[i.BRANCH_LENGTH=16256]="BRANCH_LENGTH",i[i.JUMP_TABLE=127]="JUMP_TABLE",(o=c||(c={}))[o.EntityStart=0]="EntityStart",o[o.NumericStart=1]="NumericStart",o[o.NumericDecimal=2]="NumericDecimal",o[o.NumericHex=3]="NumericHex",o[o.NamedEntity=4]="NamedEntity",(s=u||(u={}))[s.Legacy=0]="Legacy",s[s.Strict=1]="Strict",s[s.Attribute=2]="Attribute";class m{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=c.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=u.Strict}startEntity(e){this.decodeMode=e,this.state=c.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case c.EntityStart:if(e.charCodeAt(t)===a.NUM)return this.state=c.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=c.NamedEntity,this.stateNamedEntity(e,t);case c.NumericStart:return this.stateNumericStart(e,t);case c.NumericDecimal:return this.stateNumericDecimal(e,t);case c.NumericHex:return this.stateNumericHex(e,t);case c.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===a.LOWER_X?(this.state=c.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=c.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){let i=n-t;this.result=this.result*Math.pow(r,i)+parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){let n=t;for(;t<e.length;){var r;let i=e.charCodeAt(t);if(!p(i)&&(!((r=i)>=a.UPPER_A)||!(r<=a.UPPER_F))&&(!(r>=a.LOWER_A)||!(r<=a.LOWER_F)))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(i,3);t+=1}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){let n=t;for(;t<e.length;){let r=e.charCodeAt(t);if(!p(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return null==(n=this.errors)||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===a.SEMI)this.consumed+=1;else if(this.decodeMode===u.Strict)return 0;return this.emitCodePoint((0,f.y6)(this.result),this.consumed),this.errors&&(e!==a.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,r=n[this.treeIndex],i=(r&l.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let o=e.charCodeAt(t);if(this.treeIndex=function(e,t,n,r){let i=(t&l.BRANCH_LENGTH)>>7,o=t&l.JUMP_TABLE;if(0===i)return 0!==o&&r===o?n:-1;if(o){let t=r-o;return t<0||t>=i?-1:e[n+t]-1}let s=n,a=s+i-1;for(;s<=a;){let t=s+a>>>1,n=e[t];if(n<r)s=t+1;else{if(!(n>r))return e[t+i];a=t-1}}return -1}(n,r,this.treeIndex+Math.max(1,i),o),this.treeIndex<0)return 0===this.result||this.decodeMode===u.Attribute&&(0===i||function(e){var t;return e===a.EQUALS||(t=e)>=a.UPPER_A&&t<=a.UPPER_Z||t>=a.LOWER_A&&t<=a.LOWER_Z||p(t)}(o))?0:this.emitNotTerminatedNamedEntity();if(0!=(i=((r=n[this.treeIndex])&l.VALUE_LENGTH)>>14)){if(o===a.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==u.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&l.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null==(e=this.errors)||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~l.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case c.NamedEntity:return 0!==this.result&&(this.decodeMode!==u.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case c.NumericDecimal:return this.emitNumericEntity(0,2);case c.NumericHex:return this.emitNumericEntity(0,3);case c.NumericStart:return null==(e=this.errors)||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case c.EntityStart:return 0}}}function g(e){let t="",n=new m(e,e=>t+=(0,f.MK)(e));return function(e,r){let i=0,o=0;for(;(o=e.indexOf("&",o))>=0;){t+=e.slice(i,o),n.startEntity(r);let s=n.write(e,o+1);if(s<0){i=o+n.end();break}i=o+s,o=0===s?i+1:i}let s=t+e.slice(i);return t="",s}}let y=g(d.A);function v(e,t=u.Legacy){return y(e,t)}g(h.A),n.d(t,{FJ:function(){return u},Gz:function(){return v},MK:function(){return f.MK},Wf:function(){return m},qN:function(){return d.A},sr:function(){return h.A}})},821476:function(e,t,n){"use strict";var r,i,o,s,a=n(123200);n(276594),n(137045),(r=o||(o={}))[r.XML=0]="XML",r[r.HTML=1]="HTML",(i=s||(s={}))[i.UTF8=0]="UTF8",i[i.ASCII=1]="ASCII",i[i.Extensive=2]="Extensive",i[i.Attribute=3]="Attribute",i[i.Text=4]="Text",n.d(t,{Gz:function(){return a.Gz}})},710680:function(e,t,n){"use strict";n.d(t,{y:function(){return s}});var r=n(585112),i=n(296664);function o(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(e=Math.min(e,Number.isNaN(n=(0,i.R)(n))?0:n)),void 0!==t&&(e=Math.max(e,Number.isNaN(t=(0,i.R)(t))?0:t)),e}function s(...e){var t,n;let i=0,a=1,l=!1;switch(e.length){case 1:"boolean"==typeof e[0]?l=e[0]:a=e[0];break;case 2:if("boolean"==typeof e[1]){a=e[0],l=e[1];break}i=e[0],a=e[1];case 3:"object"==typeof e[2]&&null!=e[2]&&e[2][e[1]]===e[0]?(i=0,a=e[0],l=!1):(i=e[0],a=e[1],l=e[2])}return("number"!=typeof i&&(i=Number(i)),"number"!=typeof a&&(a=Number(a)),i||(i=0),a||(a=0),i>a&&([i,a]=[a,i]),l||Number.isInteger(i)&&Number.isInteger(a)||(l=!0),(i=o(i,-Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER))===(a=o(a,-Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER)))?i:l?(0,r.y)(i,a):(t=i,n=a+1,Math.floor((0,r.y)(t,n)))}},540329:function(e,t,n){"use strict";var r=n(518516),i=n(735416),o=n(533236),s=n(457672);function a(e){let t=(0,o.a)((0,s.d)((0,i.d)(e)));if(0===t.length)return"";let[n,...a]=t;return`${n.toLowerCase()}${a.map(e=>(0,r.Z)(e)).join("")}`}n.d(t,{x:function(){return a}})},585112:function(e,t,n){"use strict";function r(e,t){if(null==t&&(t=e,e=0),e>=t)throw Error("Invalid input: The maximum value must be greater than the minimum value.");return Math.random()*(t-e)+e}n.d(t,{y:function(){return r}})},706110:function(e,t,n){"use strict";var r=n(394537);function i(e){return(0,r.a)(e).map(e=>e.toLowerCase()).join("_")}n.d(t,{L:function(){return i}})},666113:function(e,t,n){"use strict";var r=n(540379),i=n(114185);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
7t%2?s(Object(n),!0).forEach(function(t){var r,i,s;r=e,i=t,s=n[t],(i=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}(i))in r?Object.defineProperty(r,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):r[i]=s}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(){var e=(0,r.A)(arguments),t=e.text,n=e.options,o=e.metadata;n=a(a({},n),{},{extract:!1});var s=(0,i.A)(t,n,o);return s&&s.isValid()||!1}n.d(t,{A:function(){return l}})},320006:function(e,t,n){"use strict";var r=n(641914),i=n(540379);function o(){var e=(0,i.A)(arguments),t=e.text,n=e.options,o=e.metadata;return(0,r.A)(t,n,o)}n.d(t,{A:function(){return o}})},183721:function(e,t,n){"use strict";var r=n(675723),i=n(666113);function o(){return(0,r.A)(i.A,arguments)}n.d(t,{g:function(){return o}})},297022:function(e,t,n){"use strict";var r=n(675723),i=n(320006);function o(){return(0,r.A)(i.A,arguments)}n.d(t,{L:function(){return o}})},933794:function(e,t,n){"use strict";n.d(t,{A:function(){return b}});var r=n(824152),i=n(872153),o=n(192735),s=n(655369);function a(e){let t=Array.prototype.slice.call(arguments,1);return t.forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function l(e){return Object.prototype.toString.call(e)}function c(e){return"[object Function]"===l(e)}function u(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}let d={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},h={"http:":{validate:function(e,t,n){let r=e.slice(t);return(n.re.http||(n.re.http=RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r))?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){let r=e.slice(t);return(n.re.no_http||(n.re.no_http=RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r))?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){let r=e.slice(t);return(n.re.mailto||(n.re.mailto=RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r))?r.match(n.re.mailto)[0].length:0}}},f="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function p(){return function(e,t){t.normalize(e)}}function m(e){var t;let n,a,d=(t=e.__opts__,t=t||{},(n={}).src_Any=r.A.source,n.src_Cc=i.A.source,n.src_Z=o.A.source,n.src_P=s.A.source,n.src_ZPCc=[n.src_Z,n.src_P,n.src_Cc].join("|"),n.src_ZCc=[n.src_Z,n.src_Cc].join("|"),n.src_pseudo_letter="(?:(?!"+(a="[><|]")+"|"+n.src_ZPCc+")"+n.src_Any+")",n.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",n.src_auth="(?:(?:(?!"+n.src_ZCc+"|[@/\\[\\]()]).)+@)?",n.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",n.src_host_terminator="(?=$|"+a+"|"+n.src_ZPCc+")(?!"+(t["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+n.src_ZPCc+"))",n.src_path="(?:[/?#](?:(?!"+n.src_ZCc+"|"+a+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+n.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+n.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+n.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+n.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+n.src_ZCc+"|[']).)+\\'|\\'(?="+n.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+n.src_ZCc+"|[.]|$)|"+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+n.src_ZCc+"|$)|;(?!"+n.src_ZCc+"|$)|\\!+(?!"+n.src_ZCc+"|[!]|$)|\\?(?!"+n.src_ZCc+"|[?]|$))+|\\/)?",n.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',n.src_xn="xn--[a-z0-9\\-]{1,59}",n.src_domain_root="(?:"+n.src_xn+"|"+n.src_pseudo_letter+"{1,63})",n.src_domain="(?:"+n.src_xn+"|(?:"+n.src_pseudo_letter+")|(?:"+n.src_pseudo_letter+"(?:-|"+n.src_pseudo_letter+"){0,61}
7"+n.src_pseudo_letter+"))",n.src_host="(?:(?:(?:(?:"+n.src_domain+")\\.)*"+n.src_domain+"))",n.tpl_host_fuzzy="(?:"+n.src_ip4+"|(?:(?:(?:"+n.src_domain+")\\.)+(?:%TLDS%)))",n.tpl_host_no_ip_fuzzy="(?:(?:(?:"+n.src_domain+")\\.)+(?:%TLDS%))",n.src_host_strict=n.src_host+n.src_host_terminator,n.tpl_host_fuzzy_strict=n.tpl_host_fuzzy+n.src_host_terminator,n.src_host_port_strict=n.src_host+n.src_port+n.src_host_terminator,n.tpl_host_port_fuzzy_strict=n.tpl_host_fuzzy+n.src_port+n.src_host_terminator,n.tpl_host_port_no_ip_fuzzy_strict=n.tpl_host_no_ip_fuzzy+n.src_port+n.src_host_terminator,n.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+n.src_ZPCc+"|>|$))",n.tpl_email_fuzzy="(^|"+a+'|"|\\(|'+n.src_ZCc+")("+n.src_email_name+"@"+n.tpl_host_fuzzy_strict+")",n.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+n.src_ZPCc+"))((?![$+<=>^`||])"+n.tpl_host_port_fuzzy_strict+n.src_path+")",n.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+n.src_ZPCc+"))((?![$+<=>^`||])"+n.tpl_host_port_no_ip_fuzzy_strict+n.src_path+")",e.re=n),h=e.__tlds__.slice();function f(e){return e.replace("%TLDS%",d.src_tlds)}e.onCompile(),e.__tlds_replaced__||h.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),h.push(d.src_xn),d.src_tlds=h.join("|"),d.email_fuzzy=RegExp(f(d.tpl_email_fuzzy),"i"),d.link_fuzzy=RegExp(f(d.tpl_link_fuzzy),"i"),d.link_no_ip_fuzzy=RegExp(f(d.tpl_link_no_ip_fuzzy),"i"),d.host_fuzzy_test=RegExp(f(d.tpl_host_fuzzy_test),"i");let m=[];function g(e,t){throw Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){let n=e.__schemas__[t];if(null===n)return;let r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===l(n)){if("[object RegExp]"===l(n.validate)){var i;i=n.validate,r.validate=function(e,t){let n=e.slice(t);return i.test(n)?n.match(i)[0].length:0}}else c(n.validate)?r.validate=n.validate:g(t,n);c(n.normalize)?r.normalize=n.normalize:n.normalize?g(t,n):r.normalize=p();return}"[object String]"===l(n)?m.push(t):g(t,n)}),m.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:p()};let y=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(u).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+d.src_ZPCc+"))("+y+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+d.src_ZPCc+"))("+y+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),e.__index__=-1,e.__text_cache__=""}function g(e,t){let n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function y(e,t){let n=new g(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function v(e,t){if(!(this instanceof v))return new v(e,t);!t&&Object.keys(e||{}).reduce(function(e,t){return e||d.hasOwnProperty(t)},!1)&&(t=e,e={}),this.__opts__=a({},d,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=a({},h,e),this.__compiled__={},this.__tlds__=f,this.__tlds_replaced__=!1,this.re={},m(this)}v.prototype.add=function(e,t){return this.__schemas__[e]=t,m(this),this},v.prototype.set=function(e){return this.__opts__=a(this.__opts__,e),this},v.prototype.test=function(e){let t,n,r,i,o,s,a,l;if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;if(this.re.schema_test.test(e)){for((a=this.re.schema_search).lastIndex=0;null!==(t=a.exec(e));)if(i=this.testSchemaAt(e,t[2],a.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,s=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=s)),this.__index__>=0},v.prototype.pretest=function(e){return this.re.pretest.test(e)},v.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},v.prototype.match=function(e){let t=[],n=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(y(this,n)),n=this.__last_index__);let r=n?e.slice(n):e;for(;this.test(r);)t.push(y(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return t.length?t:null},v.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;let t=this.re.schema_at_start.exec(e);if(!t)return null;let n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,y(this,0)):null},v.prototype.tlds=function(e,t){return(e=Array.isArray(e)?e:[e],t)?this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse():(this.__tlds__=e.slice(),this.__tlds_replaced__=!0),m(this),this},v.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},v.prototype.onCompile=function(){};var b=v},125715:function(e,t,n){"use strict";var r=n(311329),i=n(120258),o=n(881570);let s=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function a(e,t,n=!1){for(let r=e;r;r="start"==t?r.firstChild:r.lastChild){if(r.isTextblock)return!0;
7if(n&&1!=r.childCount)break}return!1}function l(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function c(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}function u(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}let d=(e,t)=>{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),s=n.indexAfter(-1),a=u(i.contentMatchAt(s));if(!a||!i.canReplaceWith(s,s,a))return!1;if(t){let r=n.after(),i=e.tr.replaceWith(r,r,a.createAndFill());i.setSelection(o.LN.near(i.doc.resolve(r),1)),t(i.scrollIntoView())}return!0},h=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof o.i5||r.parent.inlineContent||i.parent.inlineContent)return!1;let s=u(i.parent.contentMatchAt(i.indexAfter()));if(!s||!s.isTextblock)return!1;if(t){let n=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,a=e.tr.insert(n,s.createAndFill());a.setSelection(o.U3.create(a.doc,n+1)),t(a.scrollIntoView())}return!0},f=(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let i=n.before();if((0,r.zy)(e.doc,i))return t&&t(e.tr.split(i).scrollIntoView()),!0}let i=n.blockRange(),o=i&&(0,r.jP)(i);return null!=o&&(t&&t(e.tr.lift(i,o).scrollIntoView()),!0)},p=(e,t)=>{let{$from:n,$to:i}=e.selection;if(e.selection instanceof o.nh&&e.selection.node.isBlock)return!!n.parentOffset&&!!(0,r.zy)(e.doc,n.pos)&&(t&&t(e.tr.split(n.pos).scrollIntoView()),!0);if(!n.depth)return!1;let s=[],a,l,c=!1,d=!1;for(let e=n.depth;;e--){if(n.node(e).isBlock){let t;c=n.end(e)==n.pos+(n.depth-e),d=n.start(e)==n.pos-(n.depth-e),l=u(n.node(e-1).contentMatchAt(n.indexAfter(e-1)));s.unshift(t||(c&&l?{type:l}:null)),a=e;break}if(1==e)return!1;s.unshift(null)}let h=e.tr;(e.selection instanceof o.U3||e.selection instanceof o.i5)&&h.deleteSelection();let f=h.mapping.map(n.pos),p=(0,r.zy)(h.doc,f,s.length,s);if(p||(s[0]=l?{type:l}:null,p=(0,r.zy)(h.doc,f,s.length,s)),!p)return!1;if(h.split(f,s.length,s),!c&&d&&n.node(a).type!=l){let e=h.mapping.map(n.before(a)),t=h.doc.resolve(e);l&&n.node(a-1).canReplaceWith(t.index(),t.index()+1,l)&&h.setNodeMarkup(h.mapping.map(n.before(a)),l)}return t&&t(h.scrollIntoView()),!0};function m(e,t,n,s){let l,c,u,d=t.nodeBefore,h=t.nodeAfter,f,p,m=d.type.spec.isolating||h.type.spec.isolating;if(!m&&(l=t.nodeBefore,c=t.nodeAfter,u=t.index(),l&&c&&l.type.compatibleContent(c.type)&&(!l.content.size&&t.parent.canReplace(u-1,u)?(n&&n(e.tr.delete(t.pos-l.nodeSize,t.pos).scrollIntoView()),!0):!!t.parent.canReplace(u,u+1)&&!!(c.isTextblock||(0,r.n9)(e.doc,t.pos))&&(n&&n(e.tr.join(t.pos).scrollIntoView()),!0))))return!0;let g=!m&&t.parent.canReplace(t.index(),t.index()+1);if(g&&(f=(p=d.contentMatchAt(d.childCount)).findWrapping(h.type))&&p.matchType(f[0]||h.type).validEnd){if(n){let o=t.pos+h.nodeSize,s=i.FK.empty;for(let e=f.length-1;e>=0;e--)s=i.FK.from(f[e].create(null,s));s=i.FK.from(d.copy(s));let a=e.tr.step(new r.Wg(t.pos-1,o,t.pos,o,new i.Ji(s,1,0),f.length,!0)),l=a.doc.resolve(o+2*f.length);l.nodeAfter&&l.nodeAfter.type==d.type&&(0,r.n9)(a.doc,l.pos)&&a.join(l.pos),n(a.scrollIntoView())}return!0}let y=h.type.spec.isolating||s>0&&m?null:o.LN.findFrom(t,1),v=y&&y.$from.blockRange(y.$to),b=v&&(0,r.jP)(v);if(null!=b&&b>=t.depth)return n&&n(e.tr.lift(v,b).scrollIntoView()),!0;if(g&&a(h,"start",!0)&&a(d,"end")){let o=d,s=[];for(;s.push(o),!o.isTextblock;)o=o.lastChild;let a=h,l=1;for(;!a.isTextblock;a=a.firstChild)l++;if(o.canReplace(o.childCount,o.childCount,a.content)){if(n){let o=i.FK.empty;for(let e=s.length-1;e>=0;e--)o=i.FK.from(s[e].copy(o));n(e.tr.step(new r.Wg(t.pos-s.length,t.pos+h.nodeSize,t.pos+l,t.pos+h.nodeSize-l,new i.Ji(o,s.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function g(e){return function(t,n){let r=t.selection,i=e<0?r.$from:r.$to,s=i.depth;for(;i.node(s).isInline;){if(!s)return!1;s--}return!!i.node(s).isTextblock&&(n&&n(t.tr.setSelection(o.U3.create(t.doc,e<0?i.start(s):i.end(s)))),!0)}}let y=g(-1),v=g(1);function b(e,t=null){return function(n,r){let i=!1;for(let r=0;r<n.selection.ranges.length&&!i;r++){let{$from:{pos:o},$to:{pos:s}}=n.selection.ranges[r];n.doc.nodesBetween(o,s,(r,o)=>{if(i)return!1;if(!(!r.isTextblock||r.hasMarkup(e,t)))if(r.type==e)i=!0;else{let t=n.doc.resolve(o),r=t.index();i=t.parent.canReplaceWith(r,r+1,e)}})}if(!i)return!1;if(r){let i=n.tr;for(let r=0;r<n.selection.ranges.length;r++){let{$from:{pos:o},$to:{pos:s}}=n.selection.ranges[r];i.setBlockType(o,s,e,t)}r(i.scrollIntoView())}return!0}}function _(e,t=null,n){let r=!1!==(n&&n.removeWhenPresent),i=!1!==(n&&n.enterInlineAtoms),s=!(n&&n.includeWhitespace);return function(n,a){let{empty:l,$cursor:c,ranges:u}=n.selection;if(l&&!c||!function(e,t,n,r){for(let i=0;i<t.length;i++){let{$from:o,$to:s}=t[i],a=0==o.depth&&e.inlineContent&&e.type.allowsMarkType(n);if(e.nodesBetween(o.pos,s.pos,(e,t)=>{if(a||!r&&e.isAtom&&e.isInline&&t>=o.pos&&t+e.nodeSize<=s.pos)return!1;a=e.inlineContent&&e.type.allowsMarkType(n)}),a)return!0}return!1}(n.doc,u,e,i))return!1;if(a)if(c)a(e.isInSet(n.storedMarks||c.marks())?n.tr.removeStoredMark(e):n.tr.addStoredMark(e.create(t)));else{let l,c=n.tr;i||(u=function(e){let t=[];for(let n=0;n<e.length;n++){let{$from:r,$to:i}=e[n];r.doc.nodesBetween(r.pos,i.pos,(e,n)=>{if(e.isAtom&&e.content.size&&e.isInline&&n>=r.pos&&n+e.nodeSize<=i.pos)return n+1>r.pos&&t.push(new o.yn(r,r.doc.resolve(n+1))),r=r.doc.resolve(n+1+e.content.size),!1}),r.pos<i.pos&&t.push(new o.yn(r,i))}return t}(u)),l=r?!u.some(t=>n.doc.rangeHasMark(t.$from.pos,t.$to.pos,e)):!u.every(t=>{let n=!1;return c.doc.nodesBetween(t.$from.pos,t.$to.pos,(r,i,o)=>
7{if(n)return!1;n=!e.isInSet(r.marks)&&!!o&&o.type.allowsMarkType(e)&&!(r.isText&&/^\s*$/.test(r.textBetween(Math.max(0,t.$from.pos-i),Math.min(r.nodeSize,t.$to.pos-i))))}),!n});for(let n=0;n<u.length;n++){let{$from:r,$to:i}=u[n];if(l){let n=r.pos,o=i.pos,a=r.nodeAfter,l=i.nodeBefore,u=s&&a&&a.isText?/^\s*/.exec(a.text)[0].length:0,d=s&&l&&l.isText?/\s*$/.exec(l.text)[0].length:0;n+u<o&&(n+=u,o-=d),c.addMark(n,o,e.create(t))}else c.removeMark(r.pos,i.pos,e)}a(c.scrollIntoView())}return!0}}function w(...e){return function(t,n,r){for(let i=0;i<e.length;i++)if(e[i](t,n,r))return!0;return!1}}let x=w(s,(e,t,n)=>{let s=function(e,t){let{$cursor:n}=e.selection;return n&&(t?t.endOfTextblock("backward",e):!(n.parentOffset>0))?n:null}(e,n);if(!s)return!1;let c=l(s);if(!c){let n=s.blockRange(),i=n&&(0,r.jP)(n);return null!=i&&(t&&t(e.tr.lift(n,i).scrollIntoView()),!0)}let u=c.nodeBefore;if(m(e,c,t,-1))return!0;if(0==s.parent.content.size&&(a(u,"end")||o.nh.isSelectable(u)))for(let n=s.depth;;n--){let l=(0,r.$L)(e.doc,s.before(n),s.after(n),i.Ji.empty);if(l&&l.slice.size<l.to-l.from){if(t){let n=e.tr.step(l);n.setSelection(a(u,"end")?o.LN.findFrom(n.doc.resolve(n.mapping.map(c.pos,-1)),-1):o.nh.create(n.doc,c.pos-u.nodeSize)),t(n.scrollIntoView())}return!0}if(1==n||s.node(n-1).childCount>1)break}return!!u.isAtom&&c.depth==s.depth-1&&(t&&t(e.tr.delete(c.pos-u.nodeSize,c.pos).scrollIntoView()),!0)},(e,t,n)=>{let{$head:r,empty:i}=e.selection,s=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;s=l(r)}let a=s&&s.nodeBefore;return!!a&&!!o.nh.isSelectable(a)&&(t&&t(e.tr.setSelection(o.nh.create(e.doc,s.pos-a.nodeSize)).scrollIntoView()),!0)}),k=w(s,(e,t,n)=>{let s=function(e,t){let{$cursor:n}=e.selection;return n&&(t?t.endOfTextblock("forward",e):!(n.parentOffset<n.parent.content.size))?n:null}(e,n);if(!s)return!1;let l=c(s);if(!l)return!1;let u=l.nodeAfter;if(m(e,l,t,1))return!0;if(0==s.parent.content.size&&(a(u,"start")||o.nh.isSelectable(u))){let n=(0,r.$L)(e.doc,s.before(),s.after(),i.Ji.empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(a(u,"start")?o.LN.findFrom(r.doc.resolve(r.mapping.map(l.pos)),1):o.nh.create(r.doc,r.mapping.map(l.pos))),t(r.scrollIntoView())}return!0}}return!!u.isAtom&&l.depth==s.depth-1&&(t&&t(e.tr.delete(l.pos,l.pos+u.nodeSize).scrollIntoView()),!0)},(e,t,n)=>{let{$head:r,empty:i}=e.selection,s=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size)return!1;s=c(r)}let a=s&&s.nodeAfter;return!!a&&!!o.nh.isSelectable(a)&&(t&&t(e.tr.setSelection(o.nh.create(e.doc,s.pos)).scrollIntoView()),!0)}),C={Enter:w((e,t)=>{let{$head:n,$anchor:r}=e.selection;return!!n.parent.type.spec.code&&!!n.sameParent(r)&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)},h,f,p),"Mod-Enter":d,Backspace:x,"Mod-Backspace":x,"Shift-Backspace":x,Delete:k,"Mod-Delete":k,"Mod-a":(e,t)=>(t&&t(e.tr.setSelection(new o.i5(e.doc))),!0)},A={"Ctrl-h":C.Backspace,"Alt-Backspace":C["Mod-Backspace"],"Ctrl-d":C.Delete,"Ctrl-Alt-Backspace":C["Mod-Delete"],"Alt-Delete":C["Mod-Delete"],"Alt-d":C["Mod-Delete"],"Ctrl-a":y,"Ctrl-e":v};for(let e in C)A[e]=C[e];let D=("u">typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"u">typeof os&&!!os.platform&&"darwin"==os.platform())?A:C;n.d(t,{st:function(){return w},wh:function(){return _},y_:function(){return b}},{I$:d,RV:D,Z1:h,aw:p,iz:f})},969972:function(e,t,n){"use strict";var r=n(881570),i=n(311329);function o(e={}){return new r.k_({view:t=>new s(t,e)})}class s{constructor(e,t){var n;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!=(n=t.width)?n:1,this.color=!1===t.color?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map(t=>{let n=e=>{this[t](e)};return e.dom.addEventListener(t,n),{name:t,handler:n}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>
7e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e,t,n=this.editorView.state.doc.resolve(this.cursorPos),r=!n.parent.inlineContent,i,o=this.editorView.dom,s=o.getBoundingClientRect(),a=s.width/o.offsetWidth,l=s.height/o.offsetHeight;if(r){let e=n.nodeBefore,t=n.nodeAfter;if(e||t){let n=this.editorView.nodeDOM(this.cursorPos-(e?e.nodeSize:0));if(n){let r=n.getBoundingClientRect(),o=e?r.bottom:r.top;e&&t&&(o=(o+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let s=this.width/2*l;i={left:r.left,right:r.right,top:o-s,bottom:o+s}}}}if(!i){let e=this.editorView.coordsAtPos(this.cursorPos),t=this.width/2*a;i={left:e.left-t,right:e.left+t,top:e.top,bottom:e.bottom}}let c=this.editorView.dom.offsetParent;if(!this.element&&(this.element=c.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",r),this.element.classList.toggle("prosemirror-dropcursor-inline",!r),c&&(c!=document.body||"static"!=getComputedStyle(c).position)){let n=c.getBoundingClientRect(),r=n.width/c.offsetWidth,i=n.height/c.offsetHeight;e=n.left-c.scrollLeft*r,t=n.top-c.scrollTop*i}else e=-pageXOffset,t=-pageYOffset;this.element.style.left=(i.left-e)/a+"px",this.element.style.top=(i.top-t)/l+"px",this.element.style.width=(i.right-i.left)/a+"px",this.element.style.height=(i.bottom-i.top)/l+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),r=n&&n.type.spec.disableDropCursor,o="function"==typeof r?r(this.editorView,t,e):r;if(t&&!o){let e=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let t=(0,i.Um)(this.editorView.state.doc,e,this.editorView.dragging.slice);null!=t&&(e=t)}this.setCursor(e),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}n.d(t,{A:function(){return o}})},682097:function(e,t,n){"use strict";n.d(t,{b6:function(){return b},ZS:function(){return x},tN:function(){return w}});var r=function(){};r.prototype.append=function(e){return e.length?(e=r.from(e),!this.length&&e||e.length<200&&this.leafAppend(e)||this.length<200&&e.leafPrepend(this)||this.appendInner(e)):this},r.prototype.prepend=function(e){return e.length?r.from(e).append(this):this},r.prototype.appendInner=function(e){return new o(this,e)},r.prototype.slice=function(e,t){return(void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t)?r.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},r.prototype.get=function(e){if(!(e<0)&&!(e>=this.length))return this.getInner(e)},r.prototype.forEach=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},r.prototype.map=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length);var r=[];return this.forEach(function(t,n){return r.push(e(t,n))},t,n),r},r.from=function(e){return e instanceof r?e:e&&e.length?new i(e):r.empty};var i=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return 0==e&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,r){for(var i=t;i<n;i++)if(!1===e(this.values[i],r+i))return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){for(var i=t-1;i>=n;i--)if(!1===e(this.values[i],r+i))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=200)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=200)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(r);r.empty=new i([]);var o=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,r){var i=this.left.length;if(t<i&&!1===this.left.forEachInner(e,t,Math.min(n,i),r)||n>i&&!1===this.right.forEachInner(e,Math.max(t-i,0),Math.min(this.length,n)-i,r+i))return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){var i=this.left.length;if(t>i&&!1===this.right.forEachInvertedInner(e,t-i,Math.max(n,i)-i,r+i)||n<i&&!1===this.left.forEachInvertedInner(e,Math.min(t,i),n,r))return!1},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this;var n=this.left.length;return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(r),s=n(311329),a=n(881570);class l{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){let n,r,i,o;if(0==this.eventCount)return null;let s=this.items.length;for(;;s--)if(this.items.get(s-1).selection){--s;break}t&&(r=(n=this.remapping(s,this.items.length)).maps.length);let a=e.tr,u=[],d=[];
7return this.items.forEach((e,t)=>{if(!e.step){n||(r=(n=this.remapping(s,t+1)).maps.length),r--,d.push(e);return}if(n){d.push(new c(e.map));let t=e.step.map(n.slice(r)),i;t&&a.maybeStep(t).doc&&(i=a.mapping.maps[a.mapping.maps.length-1],u.push(new c(i,void 0,void 0,u.length+d.length))),r--,i&&n.appendMap(i,r)}else a.maybeStep(e.step);if(e.selection)return i=n?e.selection.map(n.slice(r)):e.selection,o=new l(this.items.slice(0,s).append(d.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:o,transform:a,selection:i}}addTransform(e,t,n,r){var i,o;let s,a=[],u=this.eventCount,h=this.items,f=!r&&h.length?h.get(h.length-1):null;for(let n=0;n<e.steps.length;n++){let i=e.steps[n].invert(e.docs[n]),o=new c(e.mapping.maps[n],i,t),s;(s=f&&f.merge(o))&&(o=s,n?a.pop():h=h.slice(0,h.length-1)),a.push(o),t&&(u++,t=void 0),r||(f=o)}let p=u-n.depth;return p>d&&(i=h,o=p,i.forEach((e,t)=>{if(e.selection&&0==o--)return s=t,!1}),h=i.slice(s),u-=p),new l(h.append(a),u)}remapping(e,t){let n=new s.X9;return this.items.forEach((t,r)=>{let i=null!=t.mirrorOffset&&r-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:void 0;n.appendMap(t.map,i)},e,t),n}addMaps(e){return 0==this.eventCount?this:new l(this.items.append(e.map(e=>new c(e))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let n=[],r=Math.max(0,this.items.length-t),i=e.mapping,o=e.steps.length,s=this.eventCount;this.items.forEach(e=>{e.selection&&s--},r);let a=t;this.items.forEach(t=>{let r=i.getMirror(--a);if(null==r)return;o=Math.min(o,r);let l=i.maps[r];if(t.step){let o=e.steps[r].invert(e.docs[r]),u=t.selection&&t.selection.map(i.slice(a+1,r));u&&s++,n.push(new c(l,o,u))}else n.push(new c(l))},r);let u=[];for(let e=t;e<o;e++)u.push(new c(i.maps[e]));let d=new l(this.items.slice(0,r).append(u).append(n),s);return d.emptyItemCount()>500&&(d=d.compress(this.items.length-n.length)),d}emptyItemCount(){let e=0;return this.items.forEach(t=>{!t.step&&e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),n=t.maps.length,i=[],o=0;return this.items.forEach((r,s)=>{if(s>=e)i.push(r),r.selection&&o++;else if(r.step){let e=r.step.map(t.slice(n)),s=e&&e.getMap();if(n--,s&&t.appendMap(s,n),e){let a=r.selection&&r.selection.map(t.slice(n));a&&o++;let l=new c(s.invert(),e,a),u,d=i.length-1;(u=i.length&&i[d].merge(l))?i[d]=u:i.push(l)}}else r.map&&n--},this.items.length,0),new l(r.from(i.reverse()),o)}}l.empty=new l(r.empty,0);class c{constructor(e,t,n,r){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=r}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new c(t.getMap().invert(),t,this.selection)}}}class u{constructor(e,t,n,r,i){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r,this.prevComposition=i}}let d=20;function h(e){let t=[];for(let n=e.length-1;n>=0&&0==t.length;n--)e[n].forEach((e,n,r,i)=>t.push(r,i));return t}function f(e,t){if(!e)return null;let n=[];for(let r=0;r<e.length;r+=2){let i=t.map(e[r],1),o=t.map(e[r+1],-1);i<=o&&n.push(i,o)}return n}let p=!1,m=null;function g(e){let t=e.plugins;if(m!=t){p=!1,m=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){p=!0;break}}return p}let y=new a.hs("history"),v=new a.hs("closeHistory");function b(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new a.k_({key:y,state:{init:()=>new u(l.empty,l.empty,null,0,-1),apply:(t,n,r)=>(function(e,t,n,r){let i=n.getMeta(y),o;if(i)return i.historyState;n.getMeta(v)&&(e=new u(e.done,e.undone,null,0,-1));let s=n.getMeta("appendedTransaction");if(0==n.steps.length)return e;if(s&&s.getMeta(y))if(s.getMeta(y).redo)return new u(e.done.addTransform(n,void 0,r,g(t)),e.undone,h(n.mapping.maps),e.prevTime,e.prevComposition);else return new u(e.done,e.undone.addTransform(n,void 0,r,g(t)),null,e.prevTime,e.prevComposition);if(!1===n.getMeta("addToHistory")||s&&!1===s.getMeta("addToHistory"))if(o=n.getMeta("rebased"))return new u(e.done.rebased(n,o),e.undone.rebased(n,o),f(e.prevRanges,n.mapping),e.prevTime,e.prevComposition);else return new u(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),f(e.prevRanges,n.mapping),e.prevTime,e.prevComposition);{let i=n.getMeta("composition"),o=0==e.prevTime||!s&&e.prevComposition!=i&&(e.prevTime<(n.time||0)-r.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;
7return e.mapping.maps[0].forEach((e,r)=>{for(let i=0;i<t.length;i+=2)e<=t[i+1]&&r>=t[i]&&(n=!0)}),n}(n,e.prevRanges)),a=s?f(e.prevRanges,n.mapping):h(n.mapping.maps);return new u(e.done.addTransform(n,o?t.selection.getBookmark():void 0,r,g(t)),l.empty,a,n.time,null==i?e.prevComposition:i)}})(n,r,t,e)},config:e,props:{handleDOMEvents:{beforeinput(e,t){let n=t.inputType,r="historyUndo"==n?w:"historyRedo"==n?x:null;return!!r&&(t.preventDefault(),r(e.state,e.dispatch))}}}})}function _(e,t){return(n,r)=>{let i=y.getState(n);if(!i||0==(e?i.undone:i.done).eventCount)return!1;if(r){let o=function(e,t,n){let r=g(t),i=y.get(t).spec.config,o=(n?e.undone:e.done).popEvent(t,r);if(!o)return null;let s=o.selection.resolve(o.transform.doc),a=(n?e.done:e.undone).addTransform(o.transform,t.selection.getBookmark(),i,r),l=new u(n?a:o.remaining,n?o.remaining:a,null,0,-1);return o.transform.setSelection(s).setMeta(y,{redo:n,historyState:l})}(i,n,e);o&&r(t?o.scrollIntoView():o)}return!0}}let w=_(!1,!0),x=_(!0,!0)},180096:function(e,t,n){"use strict";var r=n(881570),i=n(311329);class o{constructor(e,t,n={}){var r;this.match=e,this.match=e,this.handler="string"==typeof t?(r=t,function(e,t,n,i){let o=r;if(t[1]){let e=t[0].lastIndexOf(t[1]);o+=t[0].slice(e+t[1].length);let r=(n+=e)-i;r>0&&(o=t[0].slice(e-r,e)+o,n=i)}return e.tr.insertText(o,n,i)}):t,this.undoable=!1!==n.undoable,this.inCode=n.inCode||!1,this.inCodeMark=!1!==n.inCodeMark}}function s({rules:e}){let t=new r.k_({state:{init:()=>null,apply(e,t){let n=e.getMeta(this);return n||(e.selectionSet||e.docChanged?null:t)}},props:{handleTextInput:(n,r,i,o)=>a(n,r,i,o,e,t),handleDOMEvents:{compositionend:n=>{setTimeout(()=>{let{$cursor:r}=n.state.selection;r&&a(n,r.pos,r.pos,"",e,t)})}}},isInputRules:!0});return t}function a(e,t,n,r,i,o){if(e.composing)return!1;let s=e.state,a=s.doc.resolve(t),l=a.parent.textBetween(Math.max(0,a.parentOffset-500),a.parentOffset,null,"")+r;for(let c=0;c<i.length;c++){let u=i[c];if(!u.inCodeMark&&a.marks().some(e=>e.type.spec.code))continue;if(a.parent.type.spec.code){if(!u.inCode)continue}else if("only"===u.inCode)continue;let d=u.match.exec(l),h=d&&d[0].length>=r.length&&u.handler(s,d,t-(d[0].length-r.length),n);if(h)return u.undoable&&h.setMeta(o,{transform:h,from:t,to:n,text:r}),e.dispatch(h),!0}return!1}function l(e,t,n=null,r){return new o(e,(e,o,s,a)=>{let l=n instanceof Function?n(o):n,c=e.tr.delete(s,a),u=c.doc.resolve(s).blockRange(),d=u&&(0,i.oM)(u,t,l);if(!d)return null;c.wrap(u,d);let h=c.doc.resolve(s-1).nodeBefore;return h&&h.type==t&&(0,i.n9)(c.doc,s-1)&&(!r||r(o,h))&&c.join(s-1),c})}new o(/--$/,"—",{inCodeMark:!1}),new o(/\.\.\.$/,"…",{inCodeMark:!1}),new o(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“",{inCodeMark:!1}),new o(/"$/,"”",{inCodeMark:!1}),new o(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘",{inCodeMark:!1}),new o(/'$/,"’",{inCodeMark:!1}),n.d(t,{fV:function(){return o},sM:function(){return s},tG:function(){return l}})},305799:function(e,t,n){"use strict";n.d(t,{K6:function(){return tm},ee:function(){return tf},lR:function(){return tg},wQ:function(){return ts}});var r={};n.r(r),n.d(r,{decode:function(){return u},encode:function(){return f},format:function(){return p},parse:function(){return A}});var i={};n.r(i),n.d(i,{Any:function(){return E.A},Cc:function(){return T.A},Cf:function(){return O},P:function(){return D.A},S:function(){return S},Z:function(){return M.A}});var o={};n.r(o),n.d(o,{arrayReplaceAt:function(){return L},assign:function(){return F},escapeHtml:function(){return Z},escapeRE:function(){return K},fromCodePoint:function(){return z},has:function(){return I},isMdAsciiPunct:function(){return et},isPunctChar:function(){return ee},isSpace:function(){return X},isString:function(){return P},isValidEntityCode:function(){return j},isWhiteSpace:function(){return Q},lib:function(){return er},normalizeReference:function(){return en},unescapeAll:function(){return q},unescapeMd:function(){return Y}});var s={};n.r(s),n.d(s,{parseLinkDestination:function(){return eo},parseLinkLabel:function(){return ei},parseLinkTitle:function(){return es}});var a=n(120258);let l={};function c(e,t){"string"!=typeof t&&(t=c.defaultChars);let n=function(e){let t=l[e];if(t)return t;t=l[e]=[];for(let e=0;e<128;
7e++){let n=String.fromCharCode(e);t.push(n)}for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return t}(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(e){let t="";for(let r=0,i=e.length;r<i;r+=3){let o=parseInt(e.slice(r+1,r+3),16);if(o<128){t+=n[o];continue}if((224&o)==192&&r+3<i){let n=parseInt(e.slice(r+4,r+6),16);if((192&n)==128){let e=o<<6&1984|63&n;e<128?t+="��":t+=String.fromCharCode(e),r+=3;continue}}if((240&o)==224&&r+6<i){let n=parseInt(e.slice(r+4,r+6),16),i=parseInt(e.slice(r+7,r+9),16);if((192&n)==128&&(192&i)==128){let e=o<<12&61440|n<<6&4032|63&i;e<2048||e>=55296&&e<=57343?t+="���":t+=String.fromCharCode(e),r+=6;continue}}if((248&o)==240&&r+9<i){let n=parseInt(e.slice(r+4,r+6),16),i=parseInt(e.slice(r+7,r+9),16),s=parseInt(e.slice(r+10,r+12),16);if((192&n)==128&&(192&i)==128&&(192&s)==128){let e=o<<18&1835008|n<<12&258048|i<<6&4032|63&s;e<65536||e>1114111?t+="����":(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),r+=9;continue}}t+="�"}return t})}c.defaultChars=";/?:@&=+$,#",c.componentChars="";var u=c;let d={};function h(e,t,n){"string"!=typeof t&&(n=t,t=h.defaultChars),void 0===n&&(n=!0);let r=function(e){let t=d[e];if(t)return t;t=d[e]=[];for(let e=0;e<128;e++){let n=String.fromCharCode(e);/^[0-9a-z]$/i.test(n)?t.push(n):t.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}(t),i="";for(let t=0,o=e.length;t<o;t++){let s=e.charCodeAt(t);if(n&&37===s&&t+2<o&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3))){i+=e.slice(t,t+3),t+=2;continue}if(s<128){i+=r[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&t+1<o){let n=e.charCodeAt(t+1);if(n>=56320&&n<=57343){i+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}i+="%EF%BF%BD";continue}i+=encodeURIComponent(e[t])}return i}h.defaultChars=";/?:@&=+$,-_.!~*'()#",h.componentChars="-_.!~*'()";var f=h;function p(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}function m(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}let g=/^([a-z0-9.+-]+:)/i,y=/:[0-9]*$/,v=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,b=["%","/","?",";","#"].concat(["'"].concat(["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","	"]))),_=["/","?","#"],w=/^[+a-z0-9A-Z_-]{0,63}$/,x=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,k={javascript:!0,"javascript:":!0},C={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};m.prototype.parse=function(e,t){let n,r,i,o=e;if(o=o.trim(),!t&&1===e.split("#").length){let e=v.exec(o);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let s=g.exec(o);if(s&&(n=(s=s[0]).toLowerCase(),this.protocol=s,o=o.substr(s.length)),(t||s||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i="//"===o.substr(0,2))&&!(s&&k[s])&&(o=o.substr(2),this.slashes=!0),!k[s]&&(i||s&&!C[s])){let e,t,n=-1;for(let e=0;e<_.length;e++)-1!==(r=o.indexOf(_[e]))&&(-1===n||r<n)&&(n=r);-1!==(t=-1===n?o.lastIndexOf("@"):o.lastIndexOf("@",n))&&(e=o.slice(0,t),o=o.slice(t+1),this.auth=e),n=-1;for(let e=0;e<b.length;e++)-1!==(r=o.indexOf(b[e]))&&(-1===n||r<n)&&(n=r);-1===n&&(n=o.length),":"===o[n-1]&&n--;let i=o.slice(0,n);o=o.slice(n),this.parseHost(i),this.hostname=this.hostname||"";let s="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!s){let e=this.hostname.split(/\./);for(let t=0,n=e.length;t<n;t++){let n=e[t];if(n&&!n.match(w)){let r="";for(let e=0,t=n.length;e<t;e++)n.charCodeAt(e)>127?r+="x":r+=n[e];if(!r.match(w)){let r=e.slice(0,t),i=e.slice(t+1),s=n.match(x);s&&(r.push(s[1]),i.unshift(s[2])),i.length&&(o=i.join(".")+o),this.hostname=r.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),s&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let a=o.indexOf("#");-1!==a&&(this.hash=o.substr(a),o=o.slice(0,a));let l=o.indexOf("?");return -1!==l&&(this.search=o.substr(l),o=o.slice(0,l)),o&&(this.pathname=o),C[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},m.prototype.parseHost=function(e){let t=y.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var A=function(e,t){if(e&&e instanceof m)return e;let n=new m;return n.parse(e,t),n},D=n(655369),S=/[\$\+<->
7\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,E=n(824152),T=n(872153),O=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,M=n(192735),N=n(821476);function P(e){return"[object String]"===Object.prototype.toString.call(e)}let R=Object.prototype.hasOwnProperty;function I(e,t){return R.call(e,t)}function F(e){let t=Array.prototype.slice.call(arguments,1);return t.forEach(function(t){if(t){if("object"!=typeof t)throw TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}function L(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function j(e){return(!(e>=55296)||!(e<=57343))&&(!(e>=64976)||!(e<=65007))&&(65535&e)!=65535&&(65535&e)!=65534&&(!(e>=0)||!(e<=8))&&11!==e&&(!(e>=14)||!(e<=31))&&(!(e>=127)||!(e<=159))&&!(e>1114111)&&!0}function z(e){return e>65535?String.fromCharCode(55296+((e-=65536)>>10),56320+(1023&e)):String.fromCharCode(e)}let $=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,B=RegExp($.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),V=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Y(e){return 0>e.indexOf("\\")?e:e.replace($,"$1")}function q(e){return 0>e.indexOf("\\")&&0>e.indexOf("&")?e:e.replace(B,function(e,t,n){if(t)return t;if(35===n.charCodeAt(0)&&V.test(n)){let t="x"===n[1].toLowerCase()?parseInt(n.slice(2),16):parseInt(n.slice(1),10);return j(t)?z(t):e}let r=(0,N.Gz)(e);return r!==e?r:e})}let H=/[&<>"]/,W=/[&<>"]/g,U={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function G(e){return U[e]}function Z(e){return H.test(e)?e.replace(W,G):e}let J=/[.?*+^$[\]\\(){}|-]/g;function K(e){return e.replace(J,"\\$&")}function X(e){switch(e){case 9:case 32:return!0}return!1}function Q(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function ee(e){return D.A.test(e)||S.test(e)}function et(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 
761:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function en(e){return(e=e.trim().replace(/\s+/g," ")).toLowerCase().toUpperCase()}let er={mdurl:r,ucmicro:i};function ei(e,t,n){let r,i,o,s,a=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<a;){if(93===(o=e.src.charCodeAt(e.pos))&&0==--r){i=!0;break}if(s=e.pos,e.md.inline.skipToken(e),91===o){if(s===e.pos-1)r++;else if(n)return e.pos=l,-1}}let c=-1;return i&&(c=e.pos),e.pos=l,c}function eo(e,t,n){let r,i=t,o={ok:!1,pos:0,str:""};if(60===e.charCodeAt(i)){for(i++;i<n&&10!==(r=e.charCodeAt(i))&&60!==r;){if(62===r){o.pos=i+1,o.str=q(e.slice(t+1,i)),o.ok=!0;break}if(92===r&&i+1<n){i+=2;continue}i++}return o}let s=0;for(;i<n&&32!==(r=e.charCodeAt(i))&&!(r<32)&&127!==r;){if(92===r&&i+1<n){if(32===e.charCodeAt(i+1))break;i+=2;continue}if(40===r&&++s>32)return o;if(41===r){if(0===s)break;s--}i++}return t===i||0!==s||(o.str=q(e.slice(t,i)),o.pos=i,o.ok=!0),o}function es(e,t,n,r){let i,o=t,s={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)s.str=r.str,s.marker=r.marker;else{if(o>=n)return s;let r=e.charCodeAt(o);if(34!==r&&39!==r&&40!==r)return s;t++,o++,40===r&&(r=41),s.marker=r}for(;o<n;){if((i=e.charCodeAt(o))===s.marker)return s.pos=o+1,s.str+=q(e.slice(t,o)),s.ok=!0,s;if(40===i&&41===s.marker)return s;92===i&&o+1<n&&o++,o++}return s.can_continue=!0,s.str+=q(e.slice(t,o)),s}let ea={};function el(){this.rules=F({},ea)}function ec(){this.__rules__=[],this.__cache__=null}function eu(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}function ed(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}ea.code_inline=function(e,t,n,r,i){let o=e[t];return"<code"+i.renderAttrs(o)+">"+Z(o.content)+"</code>"},ea.code_block=function(e,t,n,r,i){let o=e[t];return"<pre"+i.renderAttrs(o)+"><code>"+Z(e[t].content)+"</code></pre>\n"},ea.fence=function(e,t,n,r,i){let o,s=e[t],a=s.info?q(s.info).trim():"",l="",c="";if(a){let e=a.split(/(\s+)/g);l=e[0],c=e.slice(2).join("")}if(0===(o=n.highlight&&n.highlight(s.content,l,c)||Z(s.content)).indexOf("<pre"))return o+"\n";if(a){let e=s.attrIndex("class"),t=s.attrs?s.attrs.slice():[];return e<0?t.push(["class",n.langPrefix+l]):(t[e]=t[e].slice(),t[e][1]+=" "+n.langPrefix+l),`<pre><code${i.renderAttrs({attrs:t})}>${o}</code></pre>
8`}return`<pre><code${i.renderAttrs(s)}>${o}</code></pre>
9`},ea.image=function(e,t,n,r,i){let o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},ea.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},ea.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},ea.text=function(e,t){return Z(e[t].content)},ea.html_block=function(e,t){return e[t].content},ea.html_inline=function(e,t){return e[t].content},el.prototype.renderAttrs=function(e){let t,n,r;if(!e.attrs)return"";for(t=0,r="",n=e.attrs.length;t<n;t++)r+=" "+Z(e.attrs[t][0])+'="'+Z(e.attrs[t][1])+'"';return r},el.prototype.renderToken=function(e,t,n){let r=e[t],i="";if(r.hidden)return"";r.block&&-1!==r.nesting&&t&&e[t-1].hidden&&(i+="\n"),i+=(-1===r.nesting?"</":"<")+r.tag,i+=this.renderAttrs(r),0===r.nesting&&n.xhtmlOut&&(i+=" /");let o=!1;if(r.block&&(o=!0,1===r.nesting&&t+1<e.length)){let n=e[t+1];"inline"===n.type||n.hidden?o=!1:-1===n.nesting&&n.tag===r.tag&&(o=!1)}return i+(o?">\n":">")},el.prototype.renderInline=function(e,t,n){let r="",i=this.rules;for(let o=0,s=e.length;o<s;o++){let s=e[o].type;void 0!==i[s]?r+=i[s](e,o,t,n,this):r+=this.renderToken(e,o,t)}return r},el.prototype.renderInlineAsText=function(e,t,n){let r="";for(let i=0,o=e.length;i<o;i++)switch(e[i].type){case"text":case"html_inline":case"html_block":r+=e[i].content;break;case"image":r+=this.renderInlineAsText(e[i].children,t,n);break;case"softbreak":case"hardbreak":r+="\n"}return r},el.prototype.render=function(e,t,n){let r="",i=this.rules;for(let o=0,s=e.length;o<s;o++){let s=e[o].type;"inline"===s?r+=this.renderInline(e[o].children,t,n):void 0!==i[s]?r+=i[s](e,o,t,n,this):r+=this.renderToken(e,o,t,n)}return r},ec.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return -1},ec.prototype.__compile__=function(){let e=this,t=[""];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){0>t.indexOf(e)&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){!n.enabled||t&&0>n.alt.indexOf(t)||e.__cache__[t].push(n.fn)})})},ec.prototype.at=function(e,t,n){let r=this.__find__(e);
9if(-1===r)throw Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=(n||{}).alt||[],this.__cache__=null},ec.prototype.before=function(e,t,n,r){let i=this.__find__(e);if(-1===i)throw Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:(r||{}).alt||[]}),this.__cache__=null},ec.prototype.after=function(e,t,n,r){let i=this.__find__(e);if(-1===i)throw Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:(r||{}).alt||[]}),this.__cache__=null},ec.prototype.push=function(e,t,n){this.__rules__.push({name:e,enabled:!0,fn:t,alt:(n||{}).alt||[]}),this.__cache__=null},ec.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(function(e){let r=this.__find__(e);if(r<0){if(t)return;throw Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)},this),this.__cache__=null,n},ec.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},ec.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(function(e){let r=this.__find__(e);if(r<0){if(t)return;throw Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)},this),this.__cache__=null,n},ec.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},eu.prototype.attrIndex=function(e){if(!this.attrs)return -1;let t=this.attrs;for(let n=0,r=t.length;n<r;n++)if(t[n][0]===e)return n;return -1},eu.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},eu.prototype.attrSet=function(e,t){let n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},eu.prototype.attrGet=function(e){let t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},eu.prototype.attrJoin=function(e,t){let n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},ed.prototype.Token=eu;let eh=/\r\n?|\n/g,ef=/\0/g,ep=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,em=/\((c|tm|r)\)/i,eg=/\((c|tm|r)\)/ig,ey={c:"©",r:"®",tm:"™"};function ev(e,t){return ey[t.toLowerCase()]}let eb=/['"]/,e_=/['"]/g;function ew(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}let ex=[["normalize",function(e){let t;t=(t=e.src.replace(eh,"\n")).replace(ef,"�"),e.src=t}],["block",function(e){let t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}],["inline",function(e){let t=e.tokens;for(let n=0,r=t.length;n<r;n++){let r=t[n];"inline"===r.type&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}],["linkify",function(e){let t=e.tokens;if(e.md.options.linkify)for(let i=0,o=t.length;i<o;i++){if("inline"!==t[i].type||!e.md.linkify.pretest(t[i].content))continue;let o=t[i].children,s=0;for(let a=o.length-1;a>=0;a--){let l=o[a];if("link_close"===l.type){for(a--;o[a].level!==l.level&&"link_open"!==o[a].type;)a--;continue}if("html_inline"===l.type){var n,r;n=l.content,/^<a[>\s]/i.test(n)&&s>0&&s--,r=l.content,/^<\/a\s*>/i.test(r)&&s++}if(!(s>0)&&"text"===l.type&&e.md.linkify.test(l.content)){let n=l.content,r=e.md.linkify.match(n),s=[],c=l.level,u=0;r.length>0&&0===r[0].index&&a>0&&"text_special"===o[a-1].type&&(r=r.slice(1));for(let t=0;t<r.length;t++){let i=r[t].url,o=e.md.normalizeLink(i);if(!e.md.validateLink(o))continue;let a=r[t].text;a=r[t].schema?"mailto:"!==r[t].schema||/^mailto:/i.test(a)?e.md.normalizeLinkText(a):e.md.normalizeLinkText("mailto:"+a).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+a).replace(/^http:\/\//,"");let l=r[t].index;if(l>u){let t=new e.Token("text","",0);t.content=n.slice(u,l),t.level=c,s.push(t)}let d=new e.Token("link_open","a",1);d.attrs=[["href",o]],d.level=c++,d.markup="linkify",d.info="auto",s.push(d);let h=new e.Token("text","",0);h.content=a,h.level=c,s.push(h);let f=new e.Token("link_close","a",-1);f.level=--c,f.markup="linkify",f.info="auto",s.push(f),u=r[t].lastIndex}if(u<n.length){let t=new e.Token("text","",0);t.content=n.slice(u),t.level=c,s.push(t)}t[i].children=o=L(o,a,s)}}}}],["replacements",function(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(em.test(e.tokens[t].content)&&function(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];"text"!==r.type||t||(r.content=r.content.replace(eg,ev)),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}(e.tokens[t].children),ep.test(e.tokens[t].content)&&function(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];"text"===r.type&&!t&&ep.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}(e.tokens[t].children))}],["smartquotes",function(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&eb.test(e.tokens[t].content)&&function(e,t){let n,r=[];for(let i=0;i<e.length;i++){let o=e[i],s=e[i].level;for(n=r.length-1;n>=0&&!(r[n].level<=s);n--);if(r.length=n+1,"text"!==o.type)continue;let a=o.content,l=0,c=a.length;e:for(;l<c;){e_.lastIndex=l;let u=e_.exec(a);if(!u)break;let d=!0,h=!0;l=u.index+1;let f="'"===u[0],p=32;if(u.index-1>
9=0)p=a.charCodeAt(u.index-1);else for(n=i-1;n>=0&&"softbreak"!==e[n].type&&"hardbreak"!==e[n].type;n--)if(e[n].content){p=e[n].content.charCodeAt(e[n].content.length-1);break}let m=32;if(l<c)m=a.charCodeAt(l);else for(n=i+1;n<e.length&&"softbreak"!==e[n].type&&"hardbreak"!==e[n].type;n++)if(e[n].content){m=e[n].content.charCodeAt(0);break}let g=et(p)||ee(String.fromCharCode(p)),y=et(m)||ee(String.fromCharCode(m)),v=Q(p),b=Q(m);if(b?d=!1:y&&!(v||g)&&(d=!1),v?h=!1:g&&!(b||y)&&(h=!1),34===m&&'"'===u[0]&&p>=48&&p<=57&&(h=d=!1),d&&h&&(d=g,h=y),!d&&!h){f&&(o.content=ew(o.content,u.index,"’"));continue}if(h)for(n=r.length-1;n>=0;n--){let d=r[n];if(r[n].level<s)break;if(d.single===f&&r[n].level===s){let s,h;d=r[n],f?(s=t.md.options.quotes[2],h=t.md.options.quotes[3]):(s=t.md.options.quotes[0],h=t.md.options.quotes[1]),o.content=ew(o.content,u.index,h),e[d.token].content=ew(e[d.token].content,d.pos,s),l+=h.length-1,d.token===i&&(l+=s.length-1),c=(a=o.content).length,r.length=n;continue e}}d?r.push({token:i,pos:u.index,single:f,level:s}):h&&f&&(o.content=ew(o.content,u.index,"’"))}}}(e.tokens[t].children,e)}],["text_join",function(e){let t,n,r=e.tokens,i=r.length;for(let e=0;e<i;e++){if("inline"!==r[e].type)continue;let i=r[e].children,o=i.length;for(t=0;t<o;t++)"text_special"===i[t].type&&(i[t].type="text");for(t=n=0;t<o;t++)"text"===i[t].type&&t+1<o&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}}]];function ek(){this.ruler=new ec;for(let e=0;e<ex.length;e++)this.ruler.push(ex[e][0],ex[e][1])}function eC(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;let i=this.src;for(let e=0,t=0,n=0,r=0,o=i.length,s=!1;t<o;t++){let a=i.charCodeAt(t);if(!s)if(X(a)){n++,9===a?r+=4-r%4:r++;continue}else s=!0;(10===a||t===o-1)&&(10!==a&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(n),this.sCount.push(r),this.bsCount.push(0),s=!1,n=0,r=0,e=t+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}function eA(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function eD(e){let t=[],n=e.length,r=0,i=e.charCodeAt(r),o=!1,s=0,a="";for(;r<n;)124===i&&(o?(a+=e.substring(s,r-1),s=r):(t.push(a+e.substring(s,r)),a="",s=r+1)),o=92===i,r++,i=e.charCodeAt(r);return t.push(a+e.substring(s)),t}function eS(e,t){let n=e.eMarks[t],r=e.bMarks[t]+e.tShift[t],i=e.src.charCodeAt(r++);return 42!==i&&45!==i&&43!==i||r<n&&!X(e.src.charCodeAt(r))?-1:r}function eE(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t],i=n;if(i+1>=r)return -1;let o=e.src.charCodeAt(i++);if(o<48||o>57)return -1;for(;;){if(i>=r)return -1;if((o=e.src.charCodeAt(i++))>=48&&o<=57){if(i-n>=10)return -1;continue}if(41===o||46===o)break;return -1}return i<r&&!X(o=e.src.charCodeAt(i))?-1:i}ek.prototype.process=function(e){let t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)},ek.prototype.State=ed,eC.prototype.push=function(e,t,n){let r=new eu(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},eC.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},eC.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},eC.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t&&X(this.src.charCodeAt(e));e++);return e},eC.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!X(this.src.charCodeAt(--e)))return e+1;return e},eC.prototype.skipChars=function(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},eC.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},eC.prototype.getLines=function(e,t,n,r){if(e>=t)return"";let i=Array(t-e);for(let o=0,s=e;s<t;s++,o++){let e,a=0,l=this.bMarks[s],c=l;for(e=s+1<t||r?this.eMarks[s]+1:this.eMarks[s];c<e&&a<n;
9){let e=this.src.charCodeAt(c);if(X(e))9===e?a+=4-(a+this.bsCount[s])%4:a++;else if(c-l<this.tShift[s])a++;else break;c++}a>n?i[o]=Array(a-n+1).join(" ")+this.src.slice(c,e):i[o]=this.src.slice(c,e)}return i.join("")},eC.prototype.Token=eu;let eT="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",eO="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",eM=RegExp("^(?:"+eT+"|"+eO+"|\x3c!---?>|\x3c!--(?:[^-]|-[^-]|--[^>])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),eN=RegExp("^(?:"+eT+"|"+eO+")"),eP=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[RegExp("^</?(address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?=(\\s|/?>|$))","i"),/^$/,!0],[RegExp(eN.source+"\\s*$"),/^$/,!1]],eR=[["table",function(e,t,n,r){let i;if(t+2>n)return!1;let o=t+1;if(e.sCount[o]<e.blkIndent||e.sCount[o]-e.blkIndent>=4)return!1;let s=e.bMarks[o]+e.tShift[o];if(s>=e.eMarks[o])return!1;let a=e.src.charCodeAt(s++);if(124!==a&&45!==a&&58!==a||s>=e.eMarks[o])return!1;let l=e.src.charCodeAt(s++);if(124!==l&&45!==l&&58!==l&&!X(l)||45===a&&X(l))return!1;for(;s<e.eMarks[o];){let t=e.src.charCodeAt(s);if(124!==t&&45!==t&&58!==t&&!X(t))return!1;s++}let c=eA(e,t+1),u=c.split("|"),d=[];for(let e=0;e<u.length;e++){let t=u[e].trim();if(!t)if(0===e||e===u.length-1)continue;else return!1;if(!/^:?-+:?$/.test(t))return!1;58===t.charCodeAt(t.length-1)?d.push(58===t.charCodeAt(0)?"center":"right"):58===t.charCodeAt(0)?d.push("left"):d.push("")}if(-1===(c=eA(e,t).trim()).indexOf("|")||e.sCount[t]-e.blkIndent>=4)return!1;(u=eD(c)).length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop();let h=u.length;if(0===h||h!==d.length)return!1;if(r)return!0;let f=e.parentType;e.parentType="table";let p=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),g=[t,0];m.map=g,e.push("thead_open","thead",1).map=[t,t+1],e.push("tr_open","tr",1).map=[t,t+1];for(let t=0;t<u.length;t++){let n=e.push("th_open","th",1);d[t]&&(n.attrs=[["style","text-align:"+d[t]]]);let r=e.push("inline","",0);r.content=u[t].trim(),r.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let y=0;for(o=t+2;o<n&&!(e.sCount[o]<e.blkIndent);o++){let r=!1;for(let t=0,i=p.length;t<i;t++)if(p[t](e,o,n,!0)){r=!0;break}if(r||!(c=eA(e,o).trim())||e.sCount[o]-e.blkIndent>=4||((u=eD(c)).length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),(y+=h-u.length)>65536))break;o===t+2&&(e.push("tbody_open","tbody",1).map=i=[t+2,0]),e.push("tr_open","tr",1).map=[o,o+1];for(let t=0;t<h;t++){let n=e.push("td_open","td",1);d[t]&&(n.attrs=[["style","text-align:"+d[t]]]);let r=e.push("inline","",0);r.content=u[t]?u[t].trim():"",r.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return i&&(e.push("tbody_close","tbody",-1),i[1]=o),e.push("table_close","table",-1),g[1]=o,e.parentType=f,e.line=o,!0},["paragraph","reference"]],["code",function(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,i=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){i=++r;continue}break}e.line=i;let o=e.push("code_block","code",0);return o.content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",o.map=[t,e.line],!0}],["fence",function(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>o)return!1;let s=e.src.charCodeAt(i);if(126!==s&&96!==s)return!1;let a=i,l=(i=e.skipChars(i,s))-a;if(l<3)return!1;let c=e.src.slice(a,i),u=e.src.slice(i,o);if(96===s&&u.indexOf(String.fromCharCode(s))>=0)return!1;if(r)return!0;let d=t,h=!1;for(;!(++d>=n)&&(!((i=a=e.bMarks[d]+e.tShift[d])<(o=e.eMarks[d]))||!(e.sCount[d]<e.blkIndent));){;
9if(!(e.src.charCodeAt(i)!==s||e.sCount[d]-e.blkIndent>=4||(i=e.skipChars(i,s))-a<l)&&!((i=e.skipSpaces(i))<o)){h=!0;break}}l=e.sCount[t],e.line=d+ +!!h;let f=e.push("fence","code",0);return f.info=u,f.content=e.getLines(t+1,d,l,!0),f.markup=c,f.map=[t,e.line],!0},["paragraph","reference","blockquote","list"]],["blockquote",function(e,t,n,r){let i,o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t],a=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||62!==e.src.charCodeAt(o))return!1;if(r)return!0;let l=[],c=[],u=[],d=[],h=e.md.block.ruler.getRules("blockquote"),f=e.parentType;e.parentType="blockquote";let p=!1;for(i=t;i<n;i++){let t=e.sCount[i]<e.blkIndent;if((o=e.bMarks[i]+e.tShift[i])>=(s=e.eMarks[i]))break;if(62===e.src.charCodeAt(o++)&&!t){let t,n,r=e.sCount[i]+1;32===e.src.charCodeAt(o)?(o++,r++,n=!1,t=!0):9===e.src.charCodeAt(o)?(t=!0,(e.bsCount[i]+r)%4==3?(o++,r++,n=!1):n=!0):t=!1;let a=r;for(l.push(e.bMarks[i]),e.bMarks[i]=o;o<s;){let t=e.src.charCodeAt(o);if(X(t))9===t?a+=4-(a+e.bsCount[i]+ +!!n)%4:a++;else break;o++}p=o>=s,c.push(e.bsCount[i]),e.bsCount[i]=e.sCount[i]+1+ +!!t,u.push(e.sCount[i]),e.sCount[i]=a-r,d.push(e.tShift[i]),e.tShift[i]=o-e.bMarks[i];continue}if(p)break;let r=!1;for(let t=0,o=h.length;t<o;t++)if(h[t](e,i,n,!0)){r=!0;break}if(r){e.lineMax=i,0!==e.blkIndent&&(l.push(e.bMarks[i]),c.push(e.bsCount[i]),d.push(e.tShift[i]),u.push(e.sCount[i]),e.sCount[i]-=e.blkIndent);break}l.push(e.bMarks[i]),c.push(e.bsCount[i]),d.push(e.tShift[i]),u.push(e.sCount[i]),e.sCount[i]=-1}let m=e.blkIndent;e.blkIndent=0;let g=e.push("blockquote_open","blockquote",1);g.markup=">";let y=[t,0];g.map=y,e.md.block.tokenize(e,t,i),e.push("blockquote_close","blockquote",-1).markup=">",e.lineMax=a,e.parentType=f,y[1]=e.line;for(let n=0;n<d.length;n++)e.bMarks[n+t]=l[n],e.tShift[n+t]=d[n],e.sCount[n+t]=u[n],e.bsCount[n+t]=c[n];return e.blkIndent=m,!0},["paragraph","reference","blockquote","list"]],["hr",function(e,t,n,r){let i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.bMarks[t]+e.tShift[t],s=e.src.charCodeAt(o++);if(42!==s&&45!==s&&95!==s)return!1;let a=1;for(;o<i;){let t=e.src.charCodeAt(o++);if(t!==s&&!X(t))return!1;t===s&&a++}if(a<3)return!1;if(r)return!0;e.line=t+1;let l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(a+1).join(String.fromCharCode(s)),!0},["paragraph","reference","blockquote","list"]],["list",function(e,t,n,r){let i,o,s,a,l,c,u,d=t,h=!0;if(e.sCount[d]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[d]-e.listIndent>=4&&e.sCount[d]<e.blkIndent)return!1;let f=!1;if(r&&"paragraph"===e.parentType&&e.sCount[d]>=e.blkIndent&&(f=!0),(u=eE(e,d))>=0){if(l=!0,s=e.bMarks[d]+e.tShift[d],c=Number(e.src.slice(s,u-1)),f&&1!==c)return!1}else{if(!((u=eS(e,d))>=0))return!1;l=!1}if(f&&e.skipSpaces(u)>=e.eMarks[d])return!1;if(r)return!0;let p=e.src.charCodeAt(u-1),m=e.tokens.length;l?(a=e.push("ordered_list_open","ol",1),1!==c&&(a.attrs=[["start",c]])):a=e.push("bullet_list_open","ul",1);let g=[d,0];a.map=g,a.markup=String.fromCharCode(p);let y=!1,v=e.md.block.ruler.getRules("list"),b=e.parentType;for(e.parentType="list";d<n;){let t;o=u,i=e.eMarks[d];let r=e.sCount[d]+u-(e.bMarks[d]+e.tShift[d]),c=r;for(;o<i;){let t=e.src.charCodeAt(o);if(9===t)c+=4-(c+e.bsCount[d])%4;else if(32===t)c++;else break;o++}let f=o;(t=f>=i?1:c-r)>4&&(t=1);let m=r+t;(a=e.push("list_item_open","li",1)).markup=String.fromCharCode(p);let g=[d,0];a.map=g,l&&(a.info=e.src.slice(s,u-1));let b=e.tight,_=e.tShift[d],w=e.sCount[d],x=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=m,e.tight=!0,e.tShift[d]=f-e.bMarks[d],e.sCount[d]=c,f>=i&&e.isEmpty(d+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,d,n,!0),(!e.tight||y)&&(h=!1),y=e.line-d>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=x,e.tShift[d]=_,e.sCount[d]=w,e.tight=b,(a=e.push("list_item_close","li",-1)).markup=String.fromCharCode(p),d=e.line,g[1]=d,d>=n||e.sCount[d]<e.blkIndent||e.sCount[d]-e.blkIndent>=4)break;let k=!1;for(let t=0,r=v.length;t<r;t++)if(v[t](e,d,n,!0)){k=!0;break}if(k)break;if(l){if((u=eE(e,d))<0)break;s=e.bMarks[d]+e.tShift[d]}else if((u=eS(e,d))<0)break;
9if(p!==e.src.charCodeAt(u-1))break}return(a=l?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(p),g[1]=d,e.line=d,e.parentType=b,h&&function(e,t){let n=e.level+2;for(let r=t+2,i=e.tokens.length-2;r<i;r++)e.tokens[r].level===n&&"paragraph_open"===e.tokens[r].type&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}(e,m),!0},["paragraph","reference","blockquote"]],["reference",function(e,t,n,r){let i,o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t],a=t+1;if(e.sCount[t]-e.blkIndent>=4||91!==e.src.charCodeAt(o))return!1;function l(t){let n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){let r=e.md.block.ruler.getRules("reference"),i=e.parentType;e.parentType="reference";let o=!1;for(let i=0,s=r.length;i<s;i++)if(r[i](e,t,n,!0)){o=!0;break}if(e.parentType=i,o)return null}let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];return e.src.slice(i,o+1)}let c=e.src.slice(o,s+1);s=c.length;let u=-1;for(o=1;o<s;o++){let e=c.charCodeAt(o);if(91===e)return!1;if(93===e){u=o;break}if(10===e){let e=l(a);null!==e&&(c+=e,s=c.length,a++)}else if(92===e&&++o<s&&10===c.charCodeAt(o)){let e=l(a);null!==e&&(c+=e,s=c.length,a++)}}if(u<0||58!==c.charCodeAt(u+1))return!1;for(o=u+2;o<s;o++){let e=c.charCodeAt(o);if(10===e){let e=l(a);null!==e&&(c+=e,s=c.length,a++)}else if(X(e));else break}let d=e.md.helpers.parseLinkDestination(c,o,s);if(!d.ok)return!1;let h=e.md.normalizeLink(d.str);if(!e.md.validateLink(h))return!1;let f=o=d.pos,p=a,m=o;for(;o<s;o++){let e=c.charCodeAt(o);if(10===e){let e=l(a);null!==e&&(c+=e,s=c.length,a++)}else if(X(e));else break}let g=e.md.helpers.parseLinkTitle(c,o,s);for(;g.can_continue;){let t=l(a);if(null===t)break;c+=t,o=s,s=c.length,a++,g=e.md.helpers.parseLinkTitle(c,o,s,g)}for(o<s&&m!==o&&g.ok?(i=g.str,o=g.pos):(i="",o=f,a=p);o<s&&X(c.charCodeAt(o));)o++;if(o<s&&10!==c.charCodeAt(o)&&i)for(i="",o=f,a=p;o<s&&X(c.charCodeAt(o));)o++;if(o<s&&10!==c.charCodeAt(o))return!1;let y=en(c.slice(1,u));return!!y&&(!!r||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[y]&&(e.env.references[y]={title:i,href:h}),e.line=a,!0))}],["html_block",function(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||60!==e.src.charCodeAt(i))return!1;let s=e.src.slice(i,o),a=0;for(;a<eP.length&&!eP[a][0].test(s);a++);if(a===eP.length)return!1;if(r)return eP[a][2];let l=t+1;if(!eP[a][1].test(s)){for(;l<n&&!(e.sCount[l]<e.blkIndent);l++)if(i=e.bMarks[l]+e.tShift[l],o=e.eMarks[l],s=e.src.slice(i,o),eP[a][1].test(s)){0!==s.length&&l++;break}}e.line=l;let c=e.push("html_block","",0);return c.map=[t,l],c.content=e.getLines(t,l,e.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["heading",function(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.src.charCodeAt(i);if(35!==s||i>=o)return!1;let a=1;for(s=e.src.charCodeAt(++i);35===s&&i<o&&a<=6;)a++,s=e.src.charCodeAt(++i);if(a>6||i<o&&!X(s))return!1;if(r)return!0;o=e.skipSpacesBack(o,i);let l=e.skipCharsBack(o,35,i);l>i&&X(e.src.charCodeAt(l-1))&&(o=l),e.line=t+1;let c=e.push("heading_open","h"+String(a),1);c.markup="########".slice(0,a),c.map=[t,e.line];let u=e.push("inline","",0);return u.content=e.src.slice(i,o).trim(),u.map=[t,e.line],u.children=[],e.push("heading_close","h"+String(a),-1).markup="########".slice(0,a),!0},["paragraph","reference","blockquote"]],["lheading",function(e,t,n){let r,i=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.parentType;e.parentType="paragraph";let s=0,a=t+1;for(;a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3)continue;if(e.sCount[a]>=e.blkIndent){let t=e.bMarks[a]+e.tShift[a],n=e.eMarks[a];if(t<n&&(45===(r=e.src.charCodeAt(t))||61===r)&&(t=e.skipChars(t,r),(t=e.skipSpaces(t))>=n)){s=61===r?1:2;break}}if(e.sCount[a]<0)continue;let t=!1;for(let r=0,o=i.length;r<o;r++)if(i[r](e,a,n,!0)){t=!0;break}if(t)break}if(!s)return!1;let l=e.getLines(t,a,e.blkIndent,!1).trim();e.line=a+1;let c=e.push("heading_open","h"+String(s),1);c.markup=String.fromCharCode(r),c.map=[t,e.line];let u=e.push("inline","",0);return u.content=l,u.map=[t,e.line-1],u.children=[],e.push("heading_close","h"+String(s),-1).markup=String.fromCharCode(r),e.parentType=
9o,!0}],["paragraph",function(e,t,n){let r=e.md.block.ruler.getRules("paragraph"),i=e.parentType,o=t+1;for(e.parentType="paragraph";o<n&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3||e.sCount[o]<0)continue;let t=!1;for(let i=0,s=r.length;i<s;i++)if(r[i](e,o,n,!0)){t=!0;break}if(t)break}let s=e.getLines(t,o,e.blkIndent,!1).trim();e.line=o,e.push("paragraph_open","p",1).map=[t,e.line];let a=e.push("inline","",0);return a.content=s,a.map=[t,e.line],a.children=[],e.push("paragraph_close","p",-1),e.parentType=i,!0}]];function eI(){this.ruler=new ec;for(let e=0;e<eR.length;e++)this.ruler.push(eR[e][0],eR[e][1],{alt:(eR[e][2]||[]).slice()})}function eF(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}eI.prototype.tokenize=function(e,t,n){let r=this.ruler.getRules(""),i=r.length,o=e.md.options.maxNesting,s=t,a=!1;for(;s<n&&(e.line=s=e.skipEmptyLines(s),!(s>=n)&&!(e.sCount[s]<e.blkIndent));){if(e.level>=o){e.line=n;break}let t=e.line,l=!1;for(let o=0;o<i;o++)if(l=r[o](e,s,n,!1)){if(t>=e.line)throw Error("block rule didn't increment state.line");break}if(!l)throw Error("none of the block rules matched");e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),(s=e.line)<n&&e.isEmpty(s)&&(a=!0,e.line=++s)}},eI.prototype.parse=function(e,t,n,r){if(!e)return;let i=new this.State(e,t,n,r);this.tokenize(i,i.line,i.lineMax)},eI.prototype.State=eC,eF.prototype.pushPending=function(){let e=new eu("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},eF.prototype.push=function(e,t,n){this.pending&&this.pushPending();let r=new eu(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},eF.prototype.scanDelims=function(e,t){let n=this.posMax,r=this.src.charCodeAt(e),i=e>0?this.src.charCodeAt(e-1):32,o=e;for(;o<n&&this.src.charCodeAt(o)===r;)o++;let s=o-e,a=o<n?this.src.charCodeAt(o):32,l=et(i)||ee(String.fromCharCode(i)),c=et(a)||ee(String.fromCharCode(a)),u=Q(i),d=Q(a),h=!d&&(!c||u||l),f=!u&&(!l||d||c);return{can_open:h&&(t||!f||l),can_close:f&&(t||!h||c),length:s}},eF.prototype.Token=eu;let eL=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,ej=[];for(let e=0;e<256;e++)ej.push(0);function ez(e,t){let n,r=[],i=t.length;for(let o=0;o<i;o++){let i=t[o];if(126!==i.marker||-1===i.end)continue;let s=t[i.end];(n=e.tokens[i.token]).type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",(n=e.tokens[s.token]).type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="","text"===e.tokens[s.token-1].type&&"~"===e.tokens[s.token-1].content&&r.push(s.token-1)}for(;r.length;){let t=r.pop(),i=t+1;for(;i<e.tokens.length&&"s_close"===e.tokens[i].type;)i++;t!==--i&&(n=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=n)}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){ej[e.charCodeAt(0)]=1});function e$(e,t){let n=t.length;for(let r=n-1;r>=0;r--){let n=t[r];if(95!==n.marker&&42!==n.marker||-1===n.end)continue;let i=t[n.end],o=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===i.token+1,s=String.fromCharCode(n.marker),a=e.tokens[n.token];a.type=o?"strong_open":"em_open",a.tag=o?"strong":"em",a.nesting=1,a.markup=o?s+s:s,a.content="";let l=e.tokens[i.token];l.type=o?"strong_close":"em_close",l.tag=o?"strong":"em",l.nesting=-1,l.markup=o?s+s:s,l.content="",o&&(e.tokens[t[r-1].token].content="",e.tokens[t[n.end+1].token].content="",r--)}}let eB=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,eV=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/,eY=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,eq=/^&([a-z][a-z0-9]{1,31});/i;function eH(e){let t={},n=e.length;if(!n)return;let r=0,i=-2,o=[];for(let s=0;s<n;s++){let n=e[s];if(o.push(0),(e[r].marker!==n.marker||i!==n.token-1)&&(r=s),i=n.token,n.length=n.length||0,!n.close)continue;t.hasOwnProperty(n.marker)||(t[n.marker]=[-1,-1,-1,-1,-1,-1]);let a=t[n.marker][3*!!n.open+n.length%3],l=r-o[r]-1,c=l;for(;l>a;l-=o[l]+1){let t=e[l];if(t.marker===n.marker&&t.open&&t.end<0){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3!=0||n.length%3!=0)&&(r=!0),!r){let r=l>0&&!e[l-1].open?o[l-1]+1:0;o[s]=s-l+r,o[l]=r,n.open=!1,t.end=s,t.close=!1,c=-1,i=-2;break}}}-1!==c&&(t[n.marker][3*!!n.open+(n.length||0)%3]=c)}}let eW=[["text",function(e,t){let n=e.pos;for(;n<e.posMax&&!function(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 
961:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}],["linkify",function(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let n=e.pos;if(n+3>e.posMax||58!==e.src.charCodeAt(n)||47!==e.src.charCodeAt(n+1)||47!==e.src.charCodeAt(n+2))return!1;let r=e.pending.match(eL);if(!r)return!1;let i=r[1],o=e.md.linkify.matchAtStart(e.src.slice(n-i.length));if(!o)return!1;let s=o.url;if(s.length<=i.length)return!1;let a=s.length;for(;a>0&&42===s.charCodeAt(a-1);)a--;a!==s.length&&(s=s.slice(0,a));let l=e.md.normalizeLink(s);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-i.length);let t=e.push("link_open","a",1);t.attrs=[["href",l]],t.markup="linkify",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(s);let n=e.push("link_close","a",-1);n.markup="linkify",n.info="auto"}return e.pos+=s.length-i.length,!0}],["newline",function(e,t){let n=e.pos;if(10!==e.src.charCodeAt(n))return!1;let r=e.pending.length-1,i=e.posMax;if(!t)if(r>=0&&32===e.pending.charCodeAt(r))if(r>=1&&32===e.pending.charCodeAt(r-1)){let t=r-1;for(;t>=1&&32===e.pending.charCodeAt(t-1);)t--;e.pending=e.pending.slice(0,t),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<i&&X(e.src.charCodeAt(n));)n++;return e.pos=n,!0}],["escape",function(e,t){let n=e.pos,r=e.posMax;if(92!==e.src.charCodeAt(n)||++n>=r)return!1;let i=e.src.charCodeAt(n);if(10===i){for(t||e.push("hardbreak","br",0),n++;n<r&&X(i=e.src.charCodeAt(n));)n++;return e.pos=n,!0}let o=e.src[n];if(i>=55296&&i<=56319&&n+1<r){let t=e.src.charCodeAt(n+1);t>=56320&&t<=57343&&(o+=e.src[n+1],n++)}let s="\\"+o;if(!t){let t=e.push("text_special","",0);i<256&&0!==ej[i]?t.content=o:t.content=s,t.markup=s,t.info="escape"}return e.pos=n+1,!0}],["backticks",function(e,t){let n,r=e.pos;if(96!==e.src.charCodeAt(r))return!1;let i=r;r++;let o=e.posMax;for(;r<o&&96===e.src.charCodeAt(r);)r++;let s=e.src.slice(i,r),a=s.length;if(e.backticksScanned&&(e.backticks[a]||0)<=i)return t||(e.pending+=s),e.pos+=a,!0;let l=r;
9for(;-1!==(n=e.src.indexOf("`",l));){for(l=n+1;l<o&&96===e.src.charCodeAt(l);)l++;let i=l-n;if(i===a){if(!t){let t=e.push("code_inline","code",0);t.markup=s,t.content=e.src.slice(r,n).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[i]=n}return e.backticksScanned=!0,t||(e.pending+=s),e.pos+=a,!0}],["strikethrough",function(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||126!==r)return!1;let i=e.scanDelims(e.pos,!0),o=i.length,s=String.fromCharCode(r);if(o<2)return!1;o%2&&(e.push("text","",0).content=s,o--);for(let t=0;t<o;t+=2)e.push("text","",0).content=s+s,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}],["emphasis",function(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||95!==r&&42!==r)return!1;let i=e.scanDelims(e.pos,42===r);for(let t=0;t<i.length;t++)e.push("text","",0).content=String.fromCharCode(r),e.delimiters.push({marker:r,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}],["link",function(e,t){let n,r,i,o,s="",a="",l=e.pos,c=!0;if(91!==e.src.charCodeAt(e.pos))return!1;let u=e.pos,d=e.posMax,h=e.pos+1,f=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(f<0)return!1;let p=f+1;if(p<d&&40===e.src.charCodeAt(p)){for(c=!1,p++;p<d&&(X(n=e.src.charCodeAt(p))||10===n);p++);if(p>=d)return!1;if(l=p,(i=e.md.helpers.parseLinkDestination(e.src,p,e.posMax)).ok){for(s=e.md.normalizeLink(i.str),e.md.validateLink(s)?p=i.pos:s="",l=p;p<d&&(X(n=e.src.charCodeAt(p))||10===n);p++);if(i=e.md.helpers.parseLinkTitle(e.src,p,e.posMax),p<d&&l!==p&&i.ok)for(a=i.str,p=i.pos;p<d&&(X(n=e.src.charCodeAt(p))||10===n);p++);}(p>=d||41!==e.src.charCodeAt(p))&&(c=!0),p++}if(c){if(void 0===e.env.references)return!1;if(p<d&&91===e.src.charCodeAt(p)?(l=p+1,(p=e.md.helpers.parseLinkLabel(e,p))>=0?r=e.src.slice(l,p++):p=f+1):p=f+1,r||(r=e.src.slice(h,f)),!(o=e.env.references[en(r)]))return e.pos=u,!1;s=o.href,a=o.title}if(!t){e.pos=h,e.posMax=f;let t=e.push("link_open","a",1),n=[["href",s]];t.attrs=n,a&&n.push(["title",a]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=p,e.posMax=d,!0}],["image",function(e,t){let n,r,i,o,s,a,l,c,u="",d=e.pos,h=e.posMax;if(33!==e.src.charCodeAt(e.pos)||91!==e.src.charCodeAt(e.pos+1))return!1;let f=e.pos+2,p=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(p<0)return!1;if((o=p+1)<h&&40===e.src.charCodeAt(o)){for(o++;o<h&&(X(n=e.src.charCodeAt(o))||10===n);o++);if(o>=h)return!1;for(c=o,(a=e.md.helpers.parseLinkDestination(e.src,o,e.posMax)).ok&&(u=e.md.normalizeLink(a.str),e.md.validateLink(u)?o=a.pos:u=""),c=o;o<h&&(X(n=e.src.charCodeAt(o))||10===n);o++);if(a=e.md.helpers.parseLinkTitle(e.src,o,e.posMax),o<h&&c!==o&&a.ok)for(l=a.str,o=a.pos;o<h&&(X(n=e.src.charCodeAt(o))||10===n);o++);else l="";if(o>=h||41!==e.src.charCodeAt(o))return e.pos=d,!1;o++}else{if(void 0===e.env.references)return!1;if(o<h&&91===e.src.charCodeAt(o)?(c=o+1,(o=e.md.helpers.parseLinkLabel(e,o))>=0?i=e.src.slice(c,o++):o=p+1):o=p+1,i||(i=e.src.slice(f,p)),!(s=e.env.references[en(i)]))return e.pos=d,!1;u=s.href,l=s.title}if(!t){r=e.src.slice(f,p);let t=[];e.md.inline.parse(r,e.md,e.env,t);let n=e.push("image","img",0),i=[["src",u],["alt",""]];n.attrs=i,n.children=t,n.content=r,l&&i.push(["title",l])}return e.pos=o,e.posMax=h,!0}],["autolink",function(e,t){let n=e.pos;if(60!==e.src.charCodeAt(n))return!1;let r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;let t=e.src.charCodeAt(n);if(60===t)return!1;if(62===t)break}let o=e.src.slice(r+1,n);if(eV.test(o)){let n=e.md.normalizeLink(o);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(o);let r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=o.length+2,!0}if(eB.test(o)){let n=e.md.normalizeLink("mailto:"+o);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(o);let r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=o.length+2,!0}return!1}],["html_inline",function(e,t){let n;if(!e.md.options.html)return!1;let r=e.posMax,i=e.pos;
9if(60!==e.src.charCodeAt(i)||i+2>=r)return!1;let o=e.src.charCodeAt(i+1);if(33!==o&&63!==o&&47!==o&&(!((n=32|o)>=97)||!(n<=122)))return!1;let s=e.src.slice(i).match(eM);if(!s)return!1;if(!t){var a,l;let t=e.push("html_inline","",0);t.content=s[0],a=t.content,/^<a[>\s]/i.test(a)&&e.linkLevel++,l=t.content,/^<\/a\s*>/i.test(l)&&e.linkLevel--}return e.pos+=s[0].length,!0}],["entity",function(e,t){let n=e.pos,r=e.posMax;if(38!==e.src.charCodeAt(n)||n+1>=r)return!1;if(35===e.src.charCodeAt(n+1)){let r=e.src.slice(n).match(eY);if(r){if(!t){let t="x"===r[1][0].toLowerCase()?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push("text_special","",0);n.content=j(t)?z(t):z(65533),n.markup=r[0],n.info="entity"}return e.pos+=r[0].length,!0}}else{let r=e.src.slice(n).match(eq);if(r){let n=(0,N.Gz)(r[0]);if(n!==r[0]){if(!t){let t=e.push("text_special","",0);t.content=n,t.markup=r[0],t.info="entity"}return e.pos+=r[0].length,!0}}}return!1}]],eU=[["balance_pairs",function(e){let t=e.tokens_meta,n=e.tokens_meta.length;eH(e.delimiters);for(let e=0;e<n;e++)t[e]&&t[e].delimiters&&eH(t[e].delimiters)}],["strikethrough",function(e){let t=e.tokens_meta,n=e.tokens_meta.length;ez(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&ez(e,t[r].delimiters)}],["emphasis",function(e){let t=e.tokens_meta,n=e.tokens_meta.length;e$(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&e$(e,t[r].delimiters)}],["fragments_join",function(e){let t,n,r=0,i=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,"text"===i[t].type&&t+1<o&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}]];function eG(){this.ruler=new ec;for(let e=0;e<eW.length;e++)this.ruler.push(eW[e][0],eW[e][1]);this.ruler2=new ec;for(let e=0;e<eU.length;e++)this.ruler2.push(eU[e][0],eU[e][1])}eG.prototype.skipToken=function(e){let t=e.pos,n=this.ruler.getRules(""),r=n.length,i=e.md.options.maxNesting,o=e.cache;if(void 0!==o[t]){e.pos=o[t];return}let s=!1;if(e.level<i){for(let i=0;i<r;
9i++)if(e.level++,s=n[i](e,!0),e.level--,s){if(t>=e.pos)throw Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;!s&&e.pos++,o[t]=e.pos},eG.prototype.tokenize=function(e){let t=this.ruler.getRules(""),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos<r;){let o=e.pos,s=!1;if(e.level<i){for(let r=0;r<n;r++)if(s=t[r](e,!1)){if(o>=e.pos)throw Error("inline rule didn't increment state.pos");break}}if(s){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},eG.prototype.parse=function(e,t,n,r){let i=new this.State(e,t,n,r);this.tokenize(i);let o=this.ruler2.getRules(""),s=o.length;for(let e=0;e<s;e++)o[e](i)},eG.prototype.State=eF;var eZ=n(933794);let eJ=/^xn--/,eK=/[^\0-\x7F]/,eX=/[\x2E\u3002\uFF0E\uFF61]/g,eQ={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},e0=Math.floor,e1=String.fromCharCode;function e2(e){throw RangeError(eQ[e])}function e3(e,t){let n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+(function(e,t){let n=[],r=e.length;for(;r--;)n[r]=t(e[r]);return n})((e=e.replace(eX,".")).split("."),t).join(".")}let e4=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},e5=function(e,t,n){let r=0;for(e=n?e0(e/700):e>>1,e+=e0(e/t);e>455;r+=36)e=e0(e/35);return e0(r+36*e/(e+38))},e6=function(e){let t=[],n=e.length,r=0,i=128,o=72,s=e.lastIndexOf("-");s<0&&(s=0);for(let n=0;n<s;++n)e.charCodeAt(n)>=128&&e2("not-basic"),t.push(e.charCodeAt(n));for(let l=s>0?s+1:0;l<n;){let s=r;for(let t=1,i=36;;i+=36){var a;l>=n&&e2("invalid-input");let s=(a=e.charCodeAt(l++))>=48&&a<58?26+(a-48):a>=65&&a<91?a-65:a>=97&&a<123?a-97:36;s>=36&&e2("invalid-input"),s>e0((0x7fffffff-r)/t)&&e2("overflow"),r+=s*t;let c=i<=o?1:i>=o+26?26:i-o;if(s<c)break;let u=36-c;t>e0(0x7fffffff/u)&&e2("overflow"),t*=u}let c=t.length+1;o=e5(r-s,c,0==s),e0(r/c)>0x7fffffff-i&&e2("overflow"),i+=e0(r/c),r%=c,t.splice(r++,0,i)}return String.fromCodePoint(...t)},e9=function(e){let t=[],n=(e=function(e){let t=[],n=0,r=e.length;for(;n<r;){let i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){let r=e.charCodeAt(n++);(64512&r)==56320?t.push(((1023&i)<<10)+(1023&r)+65536):(t.push(i),n--)}else t.push(i)}return t}(e)).length,r=128,i=0,o=72;for(let n of e)n<128&&t.push(e1(n));let s=t.length,a=s;for(s&&t.push("-");a<n;){let n=0x7fffffff;for(let t of e)t>=r&&t<n&&(n=t);let l=a+1;for(let c of(n-r>e0((0x7fffffff-i)/l)&&e2("overflow"),i+=(n-r)*l,r=n,e))if(c<r&&++i>0x7fffffff&&e2("overflow"),c===r){let e=i;for(let n=36;;n+=36){let r=n<=o?1:n>=o+26?26:n-o;if(e<r)break;let i=e-r,s=36-r;t.push(e1(e4(r+i%s,0))),e=e0(i/s)}t.push(e1(e4(e,0))),o=e5(i,l,a===s),i=0,++a}++i,++r}return t.join("")},e8={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},e7=/^(vbscript|javascript|file|data):/,te=/^data:image\/(gif|png|jpeg|webp);/;function tt(e){let t=e.trim().toLowerCase();return!e7.test(t)||te.test(t)}let tn=["http:","https:","mailto:"];function tr(e){let t=A(e,!0);if(t.hostname&&(!t.protocol||tn.indexOf(t.protocol)>=0))try{var n;n=t.hostname,t.hostname=e3(n,function(e){return eK.test(e)?"xn--"+e9(e):e})}catch(e){}return f(p(t))}function ti(e){let t=A(e,!0);if(t.hostname&&(!t.protocol||tn.indexOf(t.protocol)>=0))try{var n;n=t.hostname,t.hostname=e3(n,function(e){return eJ.test(e)?e6(e.slice(4).toLowerCase()):e})}catch(e){}return u(p(t),u.defaultChars+"%")}function to(e,t){if(!(this instanceof to))return new to(e,t);t||P(e)||(t=e||{},e="default"),this.inline=new eG,this.block=new eI,this.core=new ek,this.renderer=new el,this.linkify=new eZ.A,this.validateLink=tt,this.normalizeLink=tr,this.normalizeLinkText=ti,this.utils=o,this.helpers=F({},s),this.options={},this.configure(e),t&&this.set(t)}to.prototype.set=function(e){return F(this.options,e),this},to.prototype.configure=function(e){let t=this;if(P(e)){let t=e;if(!(e=e8[t]))throw Error('Wrong `markdown-it` preset "'+t+'", check name')}if(!e)throw Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEac
9h(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this},to.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));let r=e.filter(function(e){return 0>n.indexOf(e)});if(r.length&&!t)throw Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},to.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));let r=e.filter(function(e){return 0>n.indexOf(e)});if(r.length&&!t)throw Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},to.prototype.use=function(e){let t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},to.prototype.parse=function(e,t){if("string"!=typeof e)throw Error("Input data should be a String");let n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},to.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},to.prototype.parseInline=function(e,t){let n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},to.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};let ts=new a.Sj({nodes:{doc:{content:"block+"},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM:()=>["p",0]},blockquote:{content:"block+",group:"block",parseDOM:[{tag:"blockquote"}],toDOM:()=>["blockquote",0]},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM:()=>["div",["hr"]]},heading:{attrs:{level:{default:1}},content:"(text | image)*",group:"block",defining:!0,parseDOM:[{tag:"h1",attrs:{level:1}},{tag:"h2",attrs:{level:2}},{tag:"h3",attrs:{level:3}},{tag:"h4",attrs:{level:4}},{tag:"h5",attrs:{level:5}},{tag:"h6",attrs:{level:6}}],toDOM:e=>["h"+e.attrs.level,0]},code_block:{content:"text*",group:"block",code:!0,defining:!0,marks:"",attrs:{params:{default:""}},parseDOM:[{tag:"pre",preserveWhitespace:"full",getAttrs:e=>({params:e.getAttribute("data-params")||""})}],toDOM:e=>["pre",e.attrs.params?{"data-params":e.attrs.params}:{},["code",0]]},ordered_list:{content:"list_item+",group:"block",attrs:{order:{default:1},tight:{default:!1}},parseDOM:[{tag:"ol",getAttrs:e=>({order:e.hasAttribute("start")?+e.getAttribute("start"):1,tight:e.hasAttribute("data-tight")})}],toDOM:e=>["ol",{start:1==e.attrs.order?null:e.attrs.order,"data-tight":e.attrs.tight?"true":null},0]},bullet_list:{content:"list_item+",group:"block",attrs:{tight:{default:!1}},parseDOM:[{tag:"ul",getAttrs:e=>({tight:e.hasAttribute("data-tight")})}],toDOM:e=>["ul",{"data-tight":e.attrs.tight?"true":null},0]},list_item:{content:"block+",defining:!0,parseDOM:[{tag:"li"}],toDOM:()=>["li",0]},text:{group:"inline"},image:{inline:!0,attrs:{src:{},alt:{default:null},title:{default:null}},group:"inline",draggable:!0,parseDOM:[{tag:"img[src]",getAttrs:e=>({src:e.getAttribute("src"),title:e.getAttribute("title"),alt:e.getAttribute("alt")})}],toDOM:e=>["img",e.attrs]},hard_break:{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM:()=>["br"]}},marks:{em:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"},{style:"font-style=normal",clearMark:e=>"em"==e.type.name}],toDOM:()=>["em"]},strong:{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!=e.style.fontWeight&&null},{style:"font-weight=400",clearMark:e=>"strong"==e.type.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}],toDOM:()=>["strong"]},link:{attrs:{href:{},title:{default:null}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:e=>({href:e.getAttribute("href"),title:e.getAttribute("title")})}],toDOM:e=>["a",e.attrs]},code:{code:!0,parseDOM:[{tag:"code"}],toDOM:()=>["code"]}}});class ta{constructor(e,t){this.schema=e,this.tokenHandlers=t,this.stack=[{type:e.topNodeType,attrs:null,content:[],marks:a.
9CU.none}]}top(){return this.stack[this.stack.length-1]}push(e){this.stack.length&&this.top().content.push(e)}addText(e){if(!e)return;let t=this.top(),n=t.content,r=n[n.length-1],i=this.schema.text(e,t.marks),o;r&&(o=function(e,t){if(e.isText&&t.isText&&a.CU.sameSet(e.marks,t.marks))return e.withText(e.text+t.text)}(r,i))?n[n.length-1]=o:n.push(i)}openMark(e){let t=this.top();t.marks=e.addToSet(t.marks)}closeMark(e){let t=this.top();t.marks=e.removeFromSet(t.marks)}parseTokens(e){for(let t=0;t<e.length;t++){let n=e[t],r=this.tokenHandlers[n.type];if(!r)throw Error("Token type `"+n.type+"` not supported by Markdown parser");r(this,n,e,t)}}addNode(e,t,n){let r=this.top(),i=e.createAndFill(t,n,r?r.marks:[]);return i?(this.push(i),i):null}openNode(e,t){this.stack.push({type:e,attrs:t,content:[],marks:a.CU.none})}closeNode(){let e=this.stack.pop();return this.addNode(e.type,e.attrs,e.content)}}function tl(e,t,n,r){return e.getAttrs?e.getAttrs(t,n,r):e.attrs instanceof Function?e.attrs(t):e.attrs}function tc(e,t){return e.noCloseToken||"code_inline"==t||"code_block"==t||"fence"==t}function tu(e){return"\n"==e[e.length-1]?e.slice(0,e.length-1):e}function td(){}function th(e,t){for(;++t<e.length;)if("list_item_open"!=e[t].type)return e[t].hidden;return!1}let tf=new class{constructor(e,t,n){this.schema=e,this.tokenizer=t,this.tokens=n,this.tokenHandlers=function(e,t){let n=Object.create(null);for(let r in t){let i=t[r];if(i.block){let t=e.nodeType(i.block);tc(i,r)?n[r]=(e,n,r,o)=>{e.openNode(t,tl(i,n,r,o)),e.addText(tu(n.content)),e.closeNode()}:(n[r+"_open"]=(e,n,r,o)=>e.openNode(t,tl(i,n,r,o)),n[r+"_close"]=e=>e.closeNode())}else if(i.node){let t=e.nodeType(i.node);n[r]=(e,n,r,o)=>e.addNode(t,tl(i,n,r,o))}else if(i.mark){let t=e.marks[i.mark];tc(i,r)?n[r]=(e,n,r,o)=>{e.openMark(t.create(tl(i,n,r,o))),e.addText(tu(n.content)),e.closeMark(t)}:(n[r+"_open"]=(e,n,r,o)=>e.openMark(t.create(tl(i,n,r,o))),n[r+"_close"]=e=>e.closeMark(t))}else if(i.ignore)tc(i,r)?n[r]=td:(n[r+"_open"]=td,n[r+"_close"]=td);else throw RangeError("Unrecognized parsing spec "+JSON.stringify(i))}return n.text=(e,t)=>e.addText(t.content),n.inline=(e,t)=>e.parseTokens(t.children),n.softbreak=n.softbreak||(e=>e.addText(" ")),n}(e,n)}parse(e,t={}){let n=new ta(this.schema,this.tokenHandlers),r;n.parseTokens(this.tokenizer.parse(e,t));do r=n.closeNode();while(n.stack.length)return r||this.schema.topNodeType.createAndFill()}}(ts,to("commonmark",{html:!1}),{blockquote:{block:"blockquote"},paragraph:{block:"paragraph"},list_item:{block:"list_item"},bullet_list:{block:"bullet_list",getAttrs:(e,t,n)=>({tight:th(t,n)})},ordered_list:{block:"ordered_list",getAttrs:(e,t,n)=>({order:+e.attrGet("start")||1,tight:th(t,n)})},heading:{block:"heading",getAttrs:e=>({level:+e.tag.slice(1)})},code_block:{block:"code_block",noCloseToken:!0},fence:{block:"code_block",getAttrs:e=>({params:e.info||""}),noCloseToken:!0},hr:{node:"horizontal_rule"},image:{node:"image",getAttrs:e=>({src:e.attrGet("src"),title:e.attrGet("title")||null,alt:e.children[0]&&e.children[0].content||null})},hardbreak:{node:"hard_break"},em:{mark:"em"},strong:{mark:"strong"},link:{mark:"link",getAttrs:e=>({href:e.attrGet("href"),title:e.attrGet("title")||null})},code_inline:{mark:"code",noCloseToken:!0}}),tp={open:"",close:"",mixable:!0};class tm{constructor(e,t,n={}){this.nodes=e,this.marks=t,this.options=n}serialize(e,t={}){t=Object.assign({},this.options,t);let n=new tv(this.nodes,this.marks,t);return n.renderContent(e),n.out}}let tg=new tm({blockquote(e,t){e.wrapBlock("> ",null,t,()=>e.renderContent(t))},code_block(e,t){let n=t.textContent.match(/`{3,}/gm),r=n?n.sort().slice(-1)[0]+"`":"```";e.write(r+(t.attrs.params||"")+"\n"),e.text(t.textContent,!1),e.write("\n"),e.write(r),e.closeBlock(t)},heading(e,t){e.write(e.repeat("#",t.attrs.level)+" "),e.renderInline(t,!1),e.closeBlock(t)},horizontal_rule(e,t){e.write(t.attrs.markup||"---"),e.closeBlock(t)},bullet_list(e,t){e.renderList(t,"  ",()=>(t.attrs.bullet||"*")+" ")},ordered_list(e,t){let n=t.attrs.order||1,r=String(n+t.childCount-1).length,i=e.repeat(" ",r+2);e.renderList(t,i,t=>{let i=String(n+t);return e.repeat(" ",r-i.length)+i+". "})},list_item(e,t){e.renderContent(t)},paragraph(e,t){e.renderInline(t),e.closeBlock(t)},image(e,t){e.write("!["+e.esc(t.attrs.alt||"")+"]("+t.attrs.src.replace(/[\(\)]/g,"\\$&")+(t.attrs.title?' "'+t.attrs.title.replace(/"/g,'\\"')+'"':"")+")")},hard_break(e,t,n,r){for(let i=r+1;i<n.childCount;i++)if(n.child(i).type!=t.type)return void e.write("\\\n")},text(e,t){e.text(t.text,!e.inAutolink)}},{em:{open:"*",close:"*",mixable:!0,expelEnclosingWhitespace:!0},strong:{open:"**",close:"**",mixable:!0,expelEnclosingWhitespace:!0},link:{open:(e,t,n,r)=>(e.inAutolink=function(e,t,n){if(e.attrs.title||!/^\w+:/.test(e.attrs.href))return!1;let r=t.child(n);return!!r.isText&&r.text==e.attrs.href&&r.marks[r.marks.length-1]==e&&(n==t.childCount-1||!e.isInSet(t.child(n+1).marks))}
9(t,n,r),e.inAutolink?"<":"["),close(e,t,n,r){let{inAutolink:i}=e;return e.inAutolink=void 0,i?">":"]("+t.attrs.href.replace(/[\(\)"]/g,"\\$&")+(t.attrs.title?` "${t.attrs.title.replace(/"/g,'\\"')}"`:"")+")"},mixable:!0},code:{open:(e,t,n,r)=>ty(n.child(r),-1),close:(e,t,n,r)=>ty(n.child(r-1),1),escape:!1}});function ty(e,t){let n=/`+/g,r,i=0;if(e.isText)for(;r=n.exec(e.text);)i=Math.max(i,r[0].length);let o=i>0&&t>0?" `":"`";for(let e=0;e<i;e++)o+="`";return i>0&&t<0&&(o+=" "),o}class tv{constructor(e,t,n){this.nodes=e,this.marks=t,this.options=n,this.delim="",this.out="",this.closed=null,this.inAutolink=void 0,this.atBlockStart=!1,this.inTightList=!1,void 0===this.options.tightLists&&(this.options.tightLists=!1),void 0===this.options.hardBreakNodeName&&(this.options.hardBreakNodeName="hard_break")}flushClose(e=2){if(this.closed){if(this.atBlank()||(this.out+="\n"),e>1){let t=this.delim,n=/\s+$/.exec(t);n&&(t=t.slice(0,t.length-n[0].length));for(let n=1;n<e;n++)this.out+=t+"\n"}this.closed=null}}getMark(e){let t=this.marks[e];if(!t){if(!1!==this.options.strict)throw Error(`Mark type \`${e}\` not supported by Markdown renderer`);t=tp}return t}wrapBlock(e,t,n,r){let i=this.delim;this.write(null!=t?t:e),this.delim+=e,r(),this.delim=i,this.closeBlock(n)}atBlank(){return/(^|\n)$/.test(this.out)}ensureNewLine(){this.atBlank()||(this.out+="\n")}write(e){this.flushClose(),this.delim&&this.atBlank()&&(this.out+=this.delim),e&&(this.out+=e)}closeBlock(e){this.closed=e}text(e,t=!0){let n=e.split("\n");for(let e=0;e<n.length;e++)this.write(),!t&&"["==n[e][0]&&/(^|[^\\])\!$/.test(this.out)&&(this.out=this.out.slice(0,this.out.length-1)+"\\!"),this.out+=t?this.esc(n[e],this.atBlockStart):n[e],e!=n.length-1&&(this.out+="\n")}render(e,t,n){if(this.nodes[e.type.name])this.nodes[e.type.name](this,e,t,n);else if(!1!==this.options.strict)throw Error("Token type `"+e.type.name+"` not supported by Markdown renderer");else!e.type.isLeaf&&(e.type.inlineContent?this.renderInline(e):this.renderContent(e),e.isBlock&&this.closeBlock(e))}renderContent(e){e.forEach((t,n,r)=>this.render(t,e,r))}renderInline(e,t=!0){this.atBlockStart=t;let n=[],r="",i=(t,i,o)=>{let s=t?t.marks:[];t&&t.type.name===this.options.hardBreakNodeName&&(s=s.filter(t=>{if(o+1==e.childCount)return!1;let n=e.child(o+1);return t.isInSet(n.marks)&&(!n.isText||/\S/.test(n.text))}));let a=r;if(r="",t&&t.isText&&s.some(e=>{let t=this.getMark(e.type.name);return t&&t.expelEnclosingWhitespace&&!e.isInSet(n)})){let[e,r,i]=/^(\s*)(.*)$/m.exec(t.text);r&&(a+=r,(t=i?t.withText(i):null)||(s=n))}if(t&&t.isText&&s.some(t=>{let n=this.getMark(t.type.name);return n&&n.expelEnclosingWhitespace&&(o==e.childCount-1||!t.isInSet(e.child(o+1).marks))})){let[e,i,o]=/^(.*?)(\s*)$/m.exec(t.text);o&&(r=o,(t=i?t.withText(i):null)||(s=n))}let l=s.length?s[s.length-1]:null,c=l&&!1===this.getMark(l.type.n
9ame).escape,u=s.length-!!c;t:for(let e=0;e<u;e++){let t=s[e];if(!this.getMark(t.type.name).mixable)break;for(let r=0;r<n.length;r++){let i=n[r];if(!this.getMark(i.type.name).mixable)break;if(t.eq(i)){e>r?s=s.slice(0,r).concat(t).concat(s.slice(r,e)).concat(s.slice(e+1,u)):r>e&&(s=s.slice(0,e).concat(s.slice(e+1,r)).concat(t).concat(s.slice(r,u)));continue t}}}let d=0;for(;d<Math.min(n.length,u)&&s[d].eq(n[d]);)++d;for(;d<n.length;)this.text(this.markString(n.pop(),!1,e,o),!1);if(a&&this.text(a),t){for(;n.length<u;){let t=s[n.length];n.push(t),this.text(this.markString(t,!0,e,o),!1),this.atBlockStart=!1}c&&t.isText?this.text(this.markString(l,!0,e,o)+t.text+this.markString(l,!1,e,o+1),!1):this.render(t,e,o),this.atBlockStart=!1}(null==t?void 0:t.isText)&&t.nodeSize>0&&(this.atBlockStart=!1)};e.forEach(i),i(null,0,e.childCount),this.atBlockStart=!1}renderList(e,t,n){this.closed&&this.closed.type==e.type?this.flushClose(3):this.inTightList&&this.flushClose(1);let r=void 0!==e.attrs.tight?e.attrs.tight:this.options.tightLists,i=this.inTightList;this.inTightList=r,e.forEach((i,o,s)=>{s&&r&&this.flushClose(1),this.wrapBlock(t,n(s),e,()=>this.render(i,e,s))}),this.inTightList=i}esc(e,t=!1){return e=e.replace(/[`*\\~\[\]_]/g,(t,n)=>"_"==t&&n>0&&n+1<e.length&&e[n-1].match(/\w/)&&e[n+1].match(/\w/)?t:"\\"+t),t&&(e=e.replace(/^(\+[ ]|[\-*>])/,"\\$&").replace(/^(\s*)(#{1,6})(\s|$)/,"$1\\$2$3").replace(/^(\s*\d+)\.\s/,"$1\\. ")),this.options.escapeExtraCharacters&&(e=e.replace(this.options.escapeExtraCharacters,"\\$&")),e}quote(e){let t=-1==e.indexOf('"')?'""':-1==e.indexOf("'")?"''":"()";return t[0]+e+t[1]}repeat(e,t){let n="";for(let r=0;r<t;r++)n+=e;return n}markString(e,t,n,r){let i=this.getMark(e.type.name),o=t?i.open:i.close;return"string"==typeof o?o:o(this,e,n,r)}getEnclosingWhitespace(e){return{leading:(e.match(/^(\s+)/)||[void 0])[0],trailing:(e.match(/(\s+)$/)||[void 0])[0]}}}},120258:function(e,t,n){"use strict";function r(e){this.content=e}n.d(t,{S4:function(){return $},ZF:function(){return Z},FK:function(){return i},CU:function(){return l},sX:function(){return L},bP:function(){return k},u$:function(){return w},vI:function(){return c},Sj:function(){return j},Ji:function(){return u}}),r.prototype={constructor:r,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return -1},get:function(e){var t=this.find(e);return -1==t?void 0:this.content[t+1]},update:function(e,t,n){var i=n&&n!=e?this.remove(n):this,o=i.find(e),s=i.content.slice();return -1==o?s.push(n||e,t):(s[o+1]=t,n&&(s[o]=n)),new r(s)},remove:function(e){var t=this.find(e);if(-1==t)return this;var n=this.content.slice();return n.splice(t,2),new r(n)},addToStart:function(e,t){return new r([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new r(n)},addBefore:function(e,t,n){var i=this.remove(t),o=i.content.slice(),s=i.find(e);return o.splice(-1==s?o.length:s,0,t,n),new r(o)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return(e=r.from(e)).size?new r(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=r.from(e)).size?new r(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=r.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},r.from=function(e){if(e instanceof r)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new r(t)};class i{constructor(e,t){if(this.content=e,this.size=t||0,null==t)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,i){for(let o=0,s=0;s<t;o++){let a=this.content[o],l=s+a.nodeSize;if(l>e&&!1!==n(a,r+s,i||null,o)&&a.content.size){let i=s+1;a.nodesBetween(Math.max(0,e-i),Math.min(a.content.size,t-i),n,r+i)}s=l}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i="",o=!0;return this.nodesBetween(e,t,(s,a)=>{let l=s.isText?s.text.slice(Math.max(e,a)-a,t-a):s.isLeaf?r?"function"==typeof r?r(s):r:s.type.spec.leafText?s.type.spec.leafText(s):"":"";s.isBlock&&(s.isLeaf&&l||s.isTextblock)&&n&&(o?o=!1:i+=n),i+=l},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,n=e.firstChild,r=this.content.slice(),o=0;for(t.isText&&t.sameMarkup(n)&&(r[r.length-1]=t.withText(t.text+n.text),o=1);o<e.content.length;o++)r.push(e.content[o]);return new i(r,this.size+e.size)}cut(e,t=this.size){if(0==e&&t==this.size)return this;let n=[],r=0;if(t>e)for(let i=0,o=0;o<t;i++){let s=this.content[i],a=o+s.nodeSize;a>e&&((o<e||a>t)&&(s=s.isText?s.cut(Math.max(0,e-o),Math.min(s.text.length,t-o)):s.cut(Math.max(0,e-o-1),Math.min(s.content.size,t-o-1))),n.push(s),r+=s.nodeSize),o=a}return new i(n,r)}cutByIndex(e,t){return e==t?i.empty:0==e&&t==this.content.length?this:new i(this.content.slice(e,t))}replaceChild(e,t){let n=this.content[e];if(n==t)return this;
9let r=this.content.slice(),o=this.size+t.nodeSize-n.nodeSize;return r[e]=t,new i(r,o)}addToStart(e){return new i([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new i(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return function e(t,n,r){for(let i=0;;i++){if(i==t.childCount||i==n.childCount)return t.childCount==n.childCount?null:r;let o=t.child(i),s=n.child(i);if(o==s){r+=o.nodeSize;continue}if(!o.sameMarkup(s))return r;if(o.isText&&o.text!=s.text){for(let e=0;o.text[e]==s.text[e];e++)r++;return r}if(o.content.size||s.content.size){let t=e(o.content,s.content,r+1);if(null!=t)return t}r+=o.nodeSize}}(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return function e(t,n,r,i){for(let o=t.childCount,s=n.childCount;;){if(0==o||0==s)return o==s?null:{a:r,b:i};let a=t.child(--o),l=n.child(--s),c=a.nodeSize;if(a==l){r-=c,i-=c;continue}if(!a.sameMarkup(l))return{a:r,b:i};if(a.isText&&a.text!=l.text){let e=0,t=Math.min(a.text.length,l.text.length);for(;e<t&&a.text[a.text.length-e-1]==l.text[l.text.length-e-1];)e++,r--,i--;return{a:r,b:i}}if(a.content.size||l.content.size){let t=e(a.content,l.content,r-1,i-1);if(t)return t}r-=c,i-=c}}(this,e,t,n)}findIndex(e){if(0==e)return s(0,e);if(e==this.size)return s(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=n+this.child(t).nodeSize;if(r>=e){if(r==e)return s(t+1,r);return s(t,n)}n=r}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return i.empty;if(!Array.isArray(t))throw RangeError("Invalid input for Fragment.fromJSON");return new i(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return i.empty;let t,n=0;for(let r=0;r<e.length;r++){let i=e[r];n+=i.nodeSize,r&&i.isText&&e[r-1].sameMarkup(i)?(t||(t=e.slice(0,r)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}return new i(t||e,n)}static from(e){if(!e)return i.empty;if(e instanceof i)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new i([e],e.nodeSize);throw RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}i.empty=new i([],0);let o={index:0,offset:0};function s(e,t){return o.index=e,o.offset=t,o}function a(e,t){if(e===t)return!0;if(!(e&&"object"==typeof e)||!(t&&"object"==typeof t))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!a(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!a(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}class l{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||(t=e.slice(0,r));else{if(i.type.excludes(this.type))return e;!n&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,r)),t.push(this),n=!0),t&&t.push(i)}}return t||(t=e.slice()),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&a(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError("Invalid input for Mark.fromJSON");let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);let r=n.create(t.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,t){if(e==t)return!0;
vendor: 5,545 bytes, line 9
9if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&0==e.length)return l.none;if(e instanceof l)return[e];let t=e.slice();return t.sort((e,t)=>e.type.rank-t.type.rank),t}}l.none=[];class c extends Error{}class u{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let n=function e(t,n,r,i){let{index:o,offset:s}=t.findIndex(n),a=t.maybeChild(o);if(s==n||a.isText)return i&&!i.canReplace(o,o,r)?null:t.cut(0,n).append(r).append(t.cut(n));let l=e(a.content,n-s-1,r,a);return l&&t.replaceChild(o,a.copy(l))}(this.content,e+this.openStart,t);return n&&new u(n,this.openStart,this.openEnd)}removeBetween(e,t){return new u(function e(t,n,r){let{index:i,offset:o}=t.findIndex(n),s=t.maybeChild(i),{index:a,offset:l}=t.findIndex(r);if(o==n||s.isText){if(l!=r&&!t.child(a).isText)throw RangeError("Removing non-flat range");return t.cut(0,n).append(t.cut(r))}if(i!=a)throw RangeError("Removing non-flat range");return t.replaceChild(i,s.copy(e(s.content,n-o-1,r-o-1)))}(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return u.empty;let n=t.openStart||0,r=t.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw RangeError("Invalid input for Slice.fromJSON");return new u(i.fromJSON(e,t.content),n,r)}static maxOpen(e,t=!0){let n=0,r=0;for(let r=e.firstChild;r&&!r.isLeaf&&(t||!r.type.spec.isolating);r=r.firstChild)n++;for(let n=e.lastChild;n&&!n.isLeaf&&(t||!n.type.spec.isolating);n=n.lastChild)r++;return new u(e,n,r)}}function d(e,t){if(!t.type.compatibleContent(e.type))throw new c("Cannot join "+t.type.name+" onto "+e.type.name)}function h(e,t,n){let r=e.node(n);return d(r,t.node(n)),r}function f(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function p(e,t,n,r){let i=(t||e).node(n),o=0,s=t?t.index(n):i.childCount;e&&(o=e.index(n),e.depth>n?o++:e.textOffset&&(f(e.nodeAfter,r),o++));for(let e=o;e<s;e++)f(i.child(e),r);t&&t.depth==n&&t.textOffset&&f(t.nodeBefore,r)}function m(e,t){return e.type.checkContent(t),e.copy(t)}function g(e,t,n){let r=[];return p(null,e,n,r),e.depth>n&&f(m(h(e,t,n+1),g(e,t,n+1)),r),p(t,null,n,r),new i(r)}u.empty=new u(i.empty,0,0);class y{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[3*t],r=0==t?0:this.path[3*t-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(0==e.content.size)return l.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let i=n.marks;for(var o=0;o<i.length;o++)!1!==i[o].type.spec.inclusive||r&&i[o].isInSet(r.marks)||(i=i[o--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)!1!==n[i].type.spec.inclusive||r&&n[i].isInSet(r.marks)||(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new w(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw RangeError("Position "+t+" out of range");let n=[],r=0,i=t;for(let t=e;;){let{index:e,offset:o}=t.content.findIndex(i),s=i-o;if(n.push(t,e,r+o),!s||(t=t.child(e)).isText)break;
9i=s-1,r+=o+1}return new y(t,n,i)}static resolveCached(e,t){let n=_.get(e);if(n)for(let e=0;e<n.elts.length;e++){let r=n.elts[e];if(r.pos==t)return r}else _.set(e,n=new v);let r=n.elts[n.i]=y.resolve(e,t);return n.i=(n.i+1)%b,r}}class v{constructor(){this.elts=[],this.i=0}}let b=12,_=new WeakMap;class w{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}let x=Object.create(null);class k{constructor(e,t,n,r=l.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||i.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&a(this.attrs,t||e.defaultAttrs||x)&&l.sameSet(this.marks,n||l.none)}copy(e=null){return e==this.content?this:new k(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new k(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return u.empty;let r=this.resolve(e),i=this.resolve(t),o=n?0:r.sharedDepth(t),s=r.start(o);return new u(r.node(o).content.cut(r.pos-s,i.pos-s),r.depth-o,i.depth-o)}replace(e,t,n){var r=this.resolve(e),o=this.resolve(t);if(n.openStart>r.depth)throw new c("Inserted content deeper than insertion position");if(r.depth-n.openStart!=o.depth-n.openEnd)throw new c("Inconsistent open depths");return function e(t,n,r,o){let s=t.index(o),a=t.node(o);if(s==n.index(o)&&o<t.depth-r.openStart){let i=e(t,n,r,o+1);return a.copy(a.content.replaceChild(s,i))}if(!r.content.size)return m(a,g(t,n,o));if(r.openStart||r.openEnd||t.depth!=o||n.depth!=o){let{start:e,end:s}=function(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(i.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}(r,t);return m(a,function e(t,n,r,o,s){let a=t.depth>s&&h(t,n,s+1),l=o.depth>s&&h(r,o,s+1),c=[];return p(null,t,s,c),a&&l&&n.index(s)==r.index(s)?(d(a,l),f(m(a,e(t,n,r,o,s+1)),c)):(a&&f(m(a,g(t,n,s+1)),c),p(n,r,s,c),l&&f(m(l,g(r,o,s+1)),c)),p(o,null,s,c),new i(c)}(t,e,s,n,o))}{let e=t.parent,i=e.content;return m(e,i.cut(0,t.parentOffset).append(r.content).append(i.cut(n.parentOffset)))}}(r,o,n,0)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(!(t=t.maybeChild(n)))return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(0==e)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return y.resolveCached(this,e)}resolveNoCache(e){return y.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}
9toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),A(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,n=i.empty,r=0,o=n.childCount){let s=this.contentMatchAt(e).matchFragment(n,r,o),a=s&&s.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(let e=r;e<o;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),o=i&&i.matchFragment(this.content,t);return!!o&&o.validEnd}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=l.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!l.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){let n;if(!t)throw RangeError("Invalid input for Node.fromJSON");if(t.marks){if(!Array.isArray(t.marks))throw RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw RangeError("Invalid text node in JSON");return e.text(t.text,n)}let r=i.fromJSON(e,t.content),o=e.nodeType(t.type).create(t.attrs,r,n);return o.type.checkAttrs(o.attrs),o}}k.prototype.text=void 0;class C extends k{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):A(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new C(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new C(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function A(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class D{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){var n;let r,i=new S(e,t);if(null==i.next)return D.empty;let o=function e(t){let n=[];do n.push(function(t){let n=[];do n.push(function(t){let n=function(t){if(t.eat("(")){let n=e(t);return t.eat(")")||t.err("Missing closing paren"),n}if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=(function(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let e in n){let r=n[e];r.isInGroup(t)&&i.push(r)}return 0==i.length&&e.err("No node type or group '"+t+"' found"),i})(t,t.next).map(e=>(null==t.inline?t.inline=e.isInline:t.inline!=e.isInline&&t.err("Mixing inline and block content"),{type:"name",value:e}));return t.pos++,1==e.length?e[0]:{type:"choice",exprs:e}}}(t);for(;;)if(t.eat("+"))n={type:"plus",expr:n};else if(t.eat("*"))n={type:"star",expr:n};else if(t.eat("?"))n={type:"opt",expr:n};else if(t.eat("{"))n=function(e,t){let n=E(e),r=n;return e.eat(",")&&(r="}"!=e.next?E(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}(t,n);else break;return n}(t));while(t.next&&")"!=t.next&&"|"!=t.next)return 1==n.length?n[0]:{type:"seq",exprs:n}}(t));while(t.eat("|"))return 1==n.length?n[0]:{type:"choice",exprs:n}}(i);i.next&&i.err("Unexpected trailing text");let s=(n=function(e){let t=[[]];return i(function e(t,o){if("choice"==t.type)return t.exprs.reduce((t,n)=>t.concat(e(n,o)),[]);if("seq"==t.type)for(let r=0;;r++){let s=e(t.exprs[r],o);if(r==t.exprs.length-1)return s;i(s,o=n())}else if("star"==t.type){let s=n();return r(o,s),i(e(t.expr,s),s),[r(s)]}else if("plus"==t.type){let s=n();return i(e(t.expr,o),s),i(e(t.expr,s),s),[r(s)]}else if("opt"==t.type)return[r(o)].concat(e(t.expr,o));else if("range"==t.type){let s=o;for(let r=0;r<t.min;r++){let r=n();i(e(t.expr,s),r),s=r}if(-1==t.max)i(e(t.expr,s),s);else for(let o=t.min;o<t.max;o++){let o=n();r(s,o),i(e(t.expr,s),o),s=o}return[r(s)]}else if("name"==t.type)return[r(o,void 0,t.value)];else throw Error("Unknown expr type")}(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let i={term:r,to:n};return t[e].push(i),i}
vendor: 5,547 bytes, line 9
9function i(e,t){e.forEach(e=>e.to=t)}}(o),r=Object.create(null),function e(t){let i=[];t.forEach(e=>{n[e].forEach(({term:e,to:t})=>{let r;if(e){for(let t=0;t<i.length;t++)i[t][0]==e&&(r=i[t][1]);O(n,t).forEach(t=>{r||i.push([e,r=[]]),-1==r.indexOf(t)&&r.push(t)})}})});let o=r[t.join(",")]=new D(t.indexOf(n.length-1)>-1);for(let t=0;t<i.length;t++){let n=i[t][1].sort(T);o.next.push({type:i[t][0],next:r[n.join(",")]||e(n)})}return o}(O(n,0)));return function(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],i=!e.validEnd,o=[];for(let t=0;t<e.next.length;t++){let{type:n,next:s}=e.next[t];o.push(n.name),i&&!(n.isText||n.hasRequiredAttrs())&&(i=!1),-1==r.indexOf(s)&&r.push(s)}i&&t.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(s,i),s}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];return function o(s,a){let l=s.matchFragment(e,n);if(l&&(!t||l.validEnd))return i.from(a.map(e=>e.createAndFill()));for(let e=0;e<s.next.length;e++){let{type:t,next:n}=s.next[e];if(!(t.isText||t.hasRequiredAttrs())&&-1==r.indexOf(n)){r.push(n);let e=o(n,a.concat(t));if(e)return e}}return null}(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:o,next:s}=i.next[e];o.isLeaf||o.hasRequiredAttrs()||o.name in t||r.type&&!s.validEnd||(n.push({match:o.contentMatch,type:o,via:r}),t[o.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];return!function t(n){e.push(n);for(let r=0;r<n.next.length;r++)-1==e.indexOf(n.next[r].next)&&t(n.next[r].next)}(this),e.map((t,n)=>{let r=n+(t.validEnd?"*":" ")+" ";for(let n=0;n<t.next.length;n++)r+=(n?", ":"")+t.next[n].type.name+"->"+e.indexOf(t.next[n].next);return r}).join("\n")}}D.empty=new D(!0);class S{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+" (in content expression '"+this.string+"')")}}function E(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function T(e,t){return t-e}function O(e,t){let n=[];return function t(r){let i=e[r];if(1==i.length&&!i[0].term)return t(i[0].to);n.push(r);for(let e=0;e<i.length;e++){let{term:r,to:o}=i[e];r||-1!=n.indexOf(o)||t(o)}}(t),n.sort(T)}function M(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function N(e,t){let n=Object.create(null);for(let r in e){let i=t&&t[r];if(void 0===i){let t=e[r];if(t.hasDefault)i=t.default;else throw RangeError("No value supplied for attribute "+r)}n[r]=i}return n}function P(e,t,n,r){for(let r in t)if(!(r in e))throw RangeError(`Unsupported attribute ${r} for ${n} of type ${r}`);for(let n in e){let r=e[n];r.validate&&r.validate(t[n])}}function R(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new F(e,r,t[r]);return n}class I{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=R(e,n.attrs),this.defaultAttrs=M(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==e),this.isText="text"==e}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==D.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:N(this.attrs,e)}create(e=null,t,n){if(this.isText)throw Error("NodeType.create can't construct text nodes");return new k(this,this.computeAttrs(e),i.from(t),l.setFrom(n))}createChecked(e=null,t,n){return t=i.from(t),this.checkContent(t),new k(this,this.computeAttrs(e),t,l.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),(t=i.from(t)).size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),o=r&&r.fillBefore(i.empty,!0);return o?new k(this,e,t.append(o),l.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);
9if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){P(this.attrs,e,"node",this.name)}allowsMarkType(e){return null==this.markSet||this.markSet.indexOf(e)>-1}allowsMarks(e){if(null==this.markSet)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){let t;if(null==this.markSet)return e;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||(t=e.slice(0,n));return t?t.length?t:l.none:e}static compile(e,t){let n=Object.create(null);e.forEach((e,r)=>n[e]=new I(e,t,r));let r=t.spec.topNode||"doc";if(!n[r])throw RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw RangeError("Every schema needs a 'text' type");for(let e in n.text.attrs)throw RangeError("The text node type should not have attributes");return n}}class F{constructor(e,t,n){let r;this.hasDefault=Object.prototype.hasOwnProperty.call(n,"default"),this.default=n.default,this.validate="string"==typeof n.validate?(r=n.validate.split("|"),n=>{let i=null===n?"null":typeof n;if(0>r.indexOf(i))throw RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${i}`)}):n.validate}get isRequired(){return!this.hasDefault}}class L{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=R(e,r.attrs),this.excluded=null;let i=M(this.attrs);this.instance=i?new l(this,i):null}create(e=null){return!e&&this.instance?this.instance:new l(this,N(this.attrs,e))}static compile(e,t){let n=Object.create(null),r=0;return e.forEach((e,i)=>n[e]=new L(e,r++,t,i)),n}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){P(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class j{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=r.from(e.nodes),t.marks=r.from(e.marks||{}),this.nodes=I.compile(this.spec.nodes,this),this.marks=L.compile(this.spec.marks,this);let n=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+" can not be both a node and a mark");let t=this.nodes[e],r=t.spec.content||"",i=t.spec.marks;if(t.contentMatch=n[r]||(n[r]=D.parse(r,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError("Multiple linebreak nodes defined");if(!t.isInline||!t.isLeaf)throw RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=t}t.markSet="_"==i?null:i?z(this,i.split(" ")):""!=i&&t.inlineContent?null:[]}for(let e in this.marks){let t=this.marks[e],n=t.spec.excludes;t.excluded=null==n?[t]:""==n?[]:z(this,n.split(" "))}this.nodeFromJSON=e=>k.fromJSON(this,e),this.markFromJSON=e=>l.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if("string"==typeof e)e=this.nodeType(e);else if(e instanceof I){if(e.schema!=this)throw RangeError("Node type from different schema used ("+e.name+")")}else throw RangeError("Invalid node type: "+e);return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new C(n,n.defaultAttrs,e,l.setFrom(t))}mark(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError("Unknown node type: "+e);return t}}function z(e,t){let n=[];for(let r=0;r<t.length;r++){let i=t[r],o=e.marks[i],s=o;if(o)n.push(o);else for(let t in e.marks){let r=e.marks[t];("_"==i||r.spec.group&&r.spec.group.split(" ").indexOf(i)>-1)&&n.push(s=r)}if(!s)throw SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}class ${constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];t.forEach(e=>{if(null!=e.tag)this.tags.push(e);else if(null!=e.style){let t=/[^=]*/.exec(e.style)[0];0>n.indexOf(t)&&n.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)})}parse(e,t={}){let n=new W(this,t,!1);return n.addAll(e,l.none,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new W(this,t,!0);return n.addAll(e,l.none,t.from,t.to),u.maxOpen(n.finish())}matchTag(e,t,n){for(let o=n?this.tags.indexOf(n)+1:0;o<this.tags.length;o++){var r,i;let n=this.tags[o];if(r=e,i=n.tag,(r.matches||r.msMatchesSelector||r.webkitMatchesSelector||r.mozMatchesSelector).call(r,i)&&(void 0===n.namespace||e.namespaceURI==n.namespace)&&(!n.context||t.matchesContext(n.context))){if(n.getAttrs
9){let t=n.getAttrs(e);if(!1===t)continue;n.attrs=t||void 0}return n}}}matchStyle(e,t,n,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let r=this.styles[i],o=r.style;if(0==o.indexOf(e)&&(!r.context||n.matchesContext(r.context))&&(!(o.length>e.length)||61==o.charCodeAt(e.length)&&o.slice(e.length+1)==t)){if(r.getAttrs){let e=r.getAttrs(t);if(!1===e)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=null==e.priority?50:e.priority,r=0;for(;r<t.length;r++){let e=t[r];if((null==e.priority?50:e.priority)<n)break}t.splice(r,0,e)}for(let t in e.marks){let r=e.marks[t].spec.parseDOM;r&&r.forEach(e=>{n(e=U(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})}for(let t in e.nodes){let r=e.nodes[t].spec.parseDOM;r&&r.forEach(e=>{n(e=U(e)),e.node||e.ignore||e.mark||(e.node=t)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new $(e,$.schemaRules(e)))}}let B={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},V={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Y={ol:!0,ul:!0};function q(e,t,n){return null!=t?!!t|2*("full"===t):e&&"pre"==e.whitespace?3:-5&n}class H{constructor(e,t,n,r,i,o){this.type=e,this.attrs=t,this.marks=n,this.solid=r,this.options=o,this.content=[],this.activeMarks=l.none,this.match=i||(4&o?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(i.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let t=this.type.contentMatch,n;return(n=t.findWrapping(e.type))?(this.match=t,n):null}}return this.match.findWrapping(e.type)}finish(e){if(!(1&this.options)){let e=this.content[this.content.length-1],t;e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))&&(e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=e.withText(e.text.slice(0,e.text.length-t[0].length)))}let t=i.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(i.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!B.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class W{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let r=t.topNode,i,o=q(null,t.preserveWhitespace,0)|4*!!n;i=r?new H(r.type,r.attrs,l.none,!0,t.topMatch||r.type.contentMatch,o):n?new H(null,null,l.none,!0,null,o):new H(e.schema.topNodeType,null,l.none,!0,null,o),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){3==e.nodeType?this.addTextNode(e,t):1==e.nodeType&&this.addElement(e,t)}addTextNode(e,t){let n=e.nodeValue,r=this.top,i=2&r.options?"full":this.localPreserveWS||(1&r.options)>0;if("full"===i||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(i)n="full"!==i?n.replace(/\r?\n|\r/g," "):n.replace(/\r\n?/g,"\n");else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let t=r.content[r.content.length-1],i=e.previousSibling;(!t||i&&"BR"==i.nodeName||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(n=n.slice(1))}n&&this.insertNode(this.parser.schema.text(n),t,!/\S/.test(n)),this.findInText(e)}else this.findInside(e)}addElement(e,t,n){let r=this.localPreserveWS,i=this.top;("PRE"==e.tagName||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let o=e.nodeName.toLowerCase(),s;Y.hasOwnProperty(o)&&this.parser.normalizeLists&&function(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=1==t.nodeType?t.nodeName.toLowerCase():null;e&&Y.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):"li"==e?n=t:e&&(n=null)}}(e);let a=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(s=this.parser.matchTag(e,this,n));n:if(a?a.ignore:V.hasOwnProperty(o))this.findInside(e),this.ignoreFallback(e,t);else if(!a||a.skip||a.closeParent){a&&a.closeParent?this.open=Math.max(0,this.open-1):a&&a.skip.nodeType&&(e=a.skip);let n,r=this.needsBlock;if(B.hasOwnProperty(o))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),n=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break n}let s=a&&a.skip?t:this.readStyles(e,t);s&&this.addAll(e,s),n&&this.sync(i),this.needsBlock=r}else{let n=this.readStyles(e,t);n&&this.addElementByRule(e,a,n,!1===a.consuming?s:void 0)}this.localPreserveWS=r}leafFallback(e,t){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"),t)}ignoreFallback(e,t){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"),t,!0)}readStyles(e,t){let n=e.style;if(n&&n.length)for(let e=0;e<this.parser.matchedStyles.length;e++){let r=this.parser.matchedStyles[e],i=n.getPropertyValue(r);if(i)for(let e;;){let n=this.parser.matchStyle(r,i,this,e);if(!n)break;if(n.ignore)return null;if(t=n.clearMark?t.filter(e=>!n.clearMark(e)):t.concat(this.parser.schema.marks[n.mark].create(n.attrs)),!1===n.consuming)e=n;else break}}return t}addElementByRule(e,t,n,r){let i,o;
vendor: 4,107 bytes, line 9
9if(t.node)if((o=this.parser.schema.nodes[t.node]).isLeaf)this.insertNode(o.create(t.attrs),n,"BR"==e.nodeName)||this.leafFallback(e,n);else{let e=this.enter(o,t.attrs||null,n,t.preserveWhitespace);e&&(i=!0,n=e)}else{let e=this.parser.schema.marks[t.mark];n=n.concat(e.create(t.attrs))}let s=this.top;if(o&&o.isLeaf)this.findInside(e);else if(r)this.addElement(e,n,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,n,!1));else{let r=e;"string"==typeof t.contentElement?r=e.querySelector(t.contentElement):"function"==typeof t.contentElement?r=t.contentElement(e):t.contentElement&&(r=t.contentElement),this.findAround(e,r,!0),this.addAll(r,n),this.findAround(e,r,!1)}i&&this.sync(s)&&this.open--}addAll(e,t,n,r){let i=n||0;for(let o=n?e.childNodes[n]:e.firstChild,s=null==r?null:e.childNodes[r];o!=s;o=o.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(o,t);this.findAtPoint(e,i)}findPlace(e,t,n){let r,i;for(let t=this.open,o=0;t>=0;t--){let s=this.nodes[t],a=s.findWrapping(e);if(a&&(!r||r.length>a.length+o)&&(r=a,i=s,!a.length))break;if(s.solid){if(n)break;o+=2}}if(!r)return null;this.sync(i);for(let e=0;e<r.length;e++)t=this.enterInner(r[e],null,t,!1);return t}insertNode(e,t,n){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(t=this.enterInner(e,null,t))}let r=this.findPlace(e,t,n);if(r){this.closeExtra();let t=this.top;t.match&&(t.match=t.match.matchType(e.type));let n=l.none;for(let i of r.concat(e.marks))(t.type?t.type.allowsMarkType(i.type):G(i.type,e.type))&&(n=i.addToSet(n));return t.content.push(e.mark(n)),!0}return!1}enter(e,t,n,r){let i=this.findPlace(e.create(t),n,!1);return i&&(i=this.enterInner(e,t,n,!0,r)),i}enterInner(e,t,n,r=!1,i){this.closeExtra();let o=this.top;o.match=o.match&&o.match.matchType(e);let s=q(e,i,o.options);4&o.options&&0==o.content.length&&(s|=4);let a=l.none;return n=n.filter(t=>(o.type?!o.type.allowsMarkType(t.type):!G(t.type,e))||(a=t.addToSet(a),!1)),this.nodes.push(new H(e,t,a,r,null,s)),this.open++,n}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;else this.localPreserveWS&&(this.nodes[t].options|=1);return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,n){if(e!=t&&this.find)for(let r=0;r<this.find.length;r++)null==this.find[r].pos&&1==e.nodeType&&e.contains(this.find[r].node)&&t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+ +!r,o=(e,s)=>{for(;e>=0;e--){let a=t[e];if(""==a){if(e==t.length-1||0==e)continue;for(;s>=i;s--)if(o(e-1,s))return!0;return!1}{let e=s>0||0==s&&r?this.nodes[s].type:n&&s>=i?n.node(s-i).type:null;if(!e||e.name!=a&&!e.isInGroup(a))return!1;s--}}return!0};return o(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];
9if(t.isTextblock&&t.defaultAttrs)return t}}}function U(e){let t={};for(let n in e)t[n]=e[n];return t}function G(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let o=[],s=e=>{o.push(e);for(let n=0;n<e.edgeCount;n++){let{type:r,next:i}=e.edge(n);if(r==t||0>o.indexOf(i)&&s(i))return!0}};if(s(i.contentMatch))return!0}}class Z{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||(n=K(t).createDocumentFragment());let r=n,i=[];return e.forEach(e=>{if(i.length||e.marks.length){let n=0,o=0;for(;n<i.length&&o<e.marks.length;){let t=e.marks[o];if(!this.marks[t.type.name]){o++;continue}if(!t.eq(i[n][0])||!1===t.type.spec.spanning)break;n++,o++}for(;n<i.length;)r=i.pop()[1];for(;o<e.marks.length;){let n=e.marks[o++],s=this.serializeMark(n,e.isInline,t);s&&(i.push([n,r]),r.appendChild(s.dom),r=s.contentDOM||s.dom)}}r.appendChild(this.serializeNodeInner(e,t))}),n}serializeNodeInner(e,t){let{dom:n,contentDOM:r}=Q(K(t),this.nodes[e.type.name](e),null,e.attrs);if(r){if(e.isLeaf)throw RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,r)}return n}serializeNode(e,t={}){let n=this.serializeNodeInner(e,t);for(let r=e.marks.length-1;r>=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(e,t,n={}){let r=this.marks[e.type.name];return r&&Q(K(n),r(e,t),null,e.attrs)}static renderSpec(e,t,n=null,r){return Q(e,t,n,r)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Z(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=J(e.nodes);return t.text||(t.text=e=>e.text),t}static marksFromSchema(e){return J(e.marks)}}function J(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function K(e){return e.document||window.document}let X=new WeakMap;function Q(e,t,n,r){let i,o,s;if("string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;let a=t[0],l;if("string"!=typeof a)throw RangeError("Invalid array passed to renderSpec");if(r&&(void 0===(o=X.get(r))&&X.set(r,(s=null,!function e(t){if(t&&"object"==typeof t)if(Array.isArray(t))if("string"==typeof t[0])s||(s=[]),s.push(t);else for(let n=0;n<t.length;n++)e(t[n]);else for(let n in t)e(t[n])}(r),o=s)),l=o)&&l.indexOf(t)>-1)throw RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let c=a.indexOf(" ");c>0&&(n=a.slice(0,c),a=a.slice(c+1));let u=n?e.createElementNS(n,a):e.createElement(a),d=t[1],h=1;if(d&&"object"==typeof d&&null==d.nodeType&&!Array.isArray(d)){for(let e in h=2,d)if(null!=d[e]){let t=e.indexOf(" ");t>0?u.setAttributeNS(e.slice(0,t),e.slice(t+1),d[e]):"style"==e&&u.style?u.style.cssText=d[e]:u.setAttribute(e,d[e])}}for(let o=h;o<t.length;o++){let s=t[o];if(0===s){if(o<t.length-1||o>h)throw RangeError("Content hole must be the only child of its parent node");return{dom:u,contentDOM:u}}{let{dom:t,contentDOM:o}=Q(e,s,n,r);if(u.appendChild(t),o){if(i)throw RangeError("Multiple content holes");i=o}}}return{dom:u,contentDOM:i}}},881570:function(e,t,n){"use strict";var r=n(120258),i=n(311329);let o=Object.create(null);class s{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new a(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=r.Ji.empty){let n=t.content.lastChild,i=null;for(let e=0;e<t.openEnd;e++)i=n,n=n.lastChild;let o=e.steps.length,s=this.ranges;for(let a=0;a<s.length;a++){let{$from:l,$to:c}=s[a],u=e.mapping.slice(o);e.replaceRange(u.map(l.pos),u.map(c.pos),a?r.Ji.empty:t),0==a&&y(e,o,(n?n.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(e,t){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:o,$to:s}=r[i],a=e.mapping.slice(n),l=a.map(o.pos),c=a.map(s.pos);i?e.deleteRange(l,c):(e.replaceRangeWith(l,c,t),y(e,n,t.isInline?-1:1))}}static findFrom(e,t,n=!1){let r=e.parent.inlineContent?new u(e):g(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(let r=e.depth-1;r>=0;r--){let i=t<0?g(e.node(0),e.node(r),e.before(r+1),e.index(r),t,n):g(e.node(0),e.node(r),e.after(r+1),e.index(r)+1,t,n);if(i)return i}return null}
9static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new p(e.node(0))}static atStart(e){return g(e,e,0,0,1)||new p(e)}static atEnd(e){return g(e,e,e.content.size,e.childCount,-1)||new p(e)}static fromJSON(e,t){if(!t||!t.type)throw RangeError("Invalid input for Selection.fromJSON");let n=o[t.type];if(!n)throw RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in o)throw RangeError("Duplicate use of selection JSON ID "+e);return o[e]=t,t.prototype.jsonID=e,t}getBookmark(){return u.between(this.$anchor,this.$head).getBookmark()}}s.prototype.visible=!0;class a{constructor(e,t){this.$from=e,this.$to=t}}let l=!1;function c(e){l||e.parent.inlineContent||(l=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class u extends s{constructor(e,t=e){c(e),c(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let n=e.resolve(t.map(this.head));if(!n.parent.inlineContent)return s.near(n);let r=e.resolve(t.map(this.anchor));return new u(r.parent.inlineContent?r:n,n)}replace(e,t=r.Ji.empty){if(super.replace(e,t),t==r.Ji.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof u&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new d(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw RangeError("Invalid input for TextSelection.fromJSON");return new u(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,n=t){let r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}static between(e,t,n){let r=e.pos-t.pos;if((!n||r)&&(n=r>=0?1:-1),!t.parent.inlineContent){let e=s.findFrom(t,n,!0)||s.findFrom(t,-n,!0);if(!e)return s.near(t,n);t=e.$head}return e.parent.inlineContent||(0==r?e=t:(e=(s.findFrom(e,-n,!0)||s.findFrom(e,n,!0)).$anchor).pos<t.pos!=r<0&&(e=t)),new u(e,t)}}s.jsonID("text",u);class d{constructor(e,t){this.anchor=e,this.head=t}map(e){return new d(e.map(this.anchor),e.map(this.head))}resolve(e){return u.between(e.resolve(this.anchor),e.resolve(this.head))}}class h extends s{constructor(e){let t=e.nodeAfter,n=e.node(0).resolve(e.pos+t.nodeSize);super(e,n),this.node=t}map(e,t){let{deleted:n,pos:r}=t.mapResult(this.anchor),i=e.resolve(r);return n?s.near(i):new h(i)}content(){return new r.Ji(r.FK.from(this.node),0,0)}eq(e){return e instanceof h&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new f(this.anchor)}static fromJSON(e,t){if("number"!=typeof t.anchor)throw RangeError("Invalid input for NodeSelection.fromJSON");return new h(e.resolve(t.anchor))}static create(e,t){return new h(e.resolve(t))}static isSelectable(e){return!e.isText&&!1!==e.type.spec.selectable}}h.prototype.visible=!1,s.jsonID("node",h);class f{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:n}=e.mapResult(this.anchor);return t?new d(n,n):new f(n)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&h.isSelectable(n)?new h(t):s.near(t)}}class p extends s{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=r.Ji.empty){if(t==r.Ji.empty){e.delete(0,e.doc.content.size);let t=s.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new p(e)}map(e){return new p(e)}eq(e){return e instanceof p}getBookmark(){return m}}s.jsonID("all",p);let m={map(){return this},resolve:e=>new p(e)};function g(e,t,n,r,i,o=!1){if(t.inlineContent)return u.create(e,n);for(let s=r-(i>0?0:1);i>0?s<t.childCount:s>=0;s+=i){let r=t.child(s);if(r.isAtom){if(!o&&h.isSelectable(r))return h.create(e,n-(i<0?r.nodeSize:0))}else{let t=g(e,r,n+i,i<0?r.childCount:0,i,o);if(t)return t}n+=r.nodeSize*i}return null}function y(e,t,n){let r,o=e.steps.length-1;if(o<t)return;let a=e.steps[o];(a instanceof i.Ln||a instanceof i.Wg)&&(e.mapping.maps[o].forEach((e,t,n,i)=>{null==r&&(r=i)}),e.setSelection(s.near(e.doc.resolve(r),n)))}class v extends i.dL{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(1|this.updated)&-3,this.storedMarks=null,this}get selectionSet(){return(1&this.updated)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=2,this}ensureMarks(e){return r.CU.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(e,t){super.addStep(e,t),this.updated=-3&this.updated,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let n=this.selection;return t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||r.CU.none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,n){let r=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(null==n&&(n=t),n=null==n?t:n,!e)return this.deleteRange(t,n);let i=this.storedMarks;if(!i){let e=this.doc.resolve(t);i=n==t?e.marks():e.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,i)),this.selection.empty||this.setSelection(s.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function b(e,t){return t&&e?e.bind(t):e}
9class _{constructor(e,t,n){this.name=e,this.init=b(t.init,n),this.apply=b(t.apply,n)}}let w=[new _("doc",{init:e=>e.doc||e.schema.topNodeType.createAndFill(),apply:e=>e.doc}),new _("selection",{init:(e,t)=>e.selection||s.atStart(t.doc),apply:e=>e.selection}),new _("storedMarks",{init:e=>e.storedMarks||null,apply:(e,t,n,r)=>r.selection.$cursor?e.storedMarks:null}),new _("scrollToSelection",{init:()=>0,apply:(e,t)=>e.scrolledIntoView?t+1:t})];class x{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=w.slice(),t&&t.forEach(e=>{if(this.pluginsByKey[e.key])throw RangeError("Adding different instances of a keyed plugin ("+e.key+")");this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new _(e.key,e.spec.state,e))})}}class k{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=t){let t=this.config.plugins[n];if(t.spec.filterTransaction&&!t.spec.filterTransaction.call(t,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],n=this.applyInner(e),r=null;for(;;){let i=!1;for(let o=0;o<this.config.plugins.length;o++){let s=this.config.plugins[o];if(s.spec.appendTransaction){let a=r?r[o].n:0,l=r?r[o].state:this,c=a<t.length&&s.spec.appendTransaction.call(s,a?t.slice(a):t,l,n);if(c&&n.filterTransaction(c,o)){if(c.setMeta("appendedTransaction",e),!r){r=[];for(let e=0;e<this.config.plugins.length;e++)r.push(e<o?{state:n,n:t.length}:{state:this,n:0})}t.push(c),n=n.applyInner(c),i=!0}r&&(r[o]={state:n,n:t.length})}}if(!i)return{state:n,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw RangeError("Applying a mismatched transaction");let t=new k(this.config),n=this.config.fields;for(let r=0;r<n.length;r++){let i=n[r];t[i.name]=i.apply(e,this[i.name],this,t)}return t}get tr(){return new v(this)}static create(e){let t=new x(e.doc?e.doc.type.schema:e.schema,e.plugins),n=new k(t);for(let r=0;r<t.fields.length;r++)n[t.fields[r].name]=t.fields[r].init(e,n);return n}reconfigure(e){let t=new x(this.schema,e.plugins),n=t.fields,r=new k(t);for(let t=0;t<n.length;t++){let i=n[t].name;r[i]=this.hasOwnProperty(i)?this[i]:n[t].init(e,r)}return r}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(e=>e.toJSON())),e&&"object"==typeof e)for(let n in e){if("doc"==n||"selection"==n)throw RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[n],i=r.spec.state;i&&i.toJSON&&(t[n]=i.toJSON.call(r,this[r.key]))}return t}static fromJSON(e,t,n){if(!t)throw RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw RangeError("Required config field 'schema' missing");let i=new x(e.schema,e.plugins),o=new k(i);return i.fields.forEach(i=>{if("doc"==i.name)o.doc=r.bP.fromJSON(e.schema,t.doc);else if("selection"==i.name)o.selection=s.fromJSON(o.doc,t.selection);else if("storedMarks"==i.name)t.storedMarks&&(o.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(n)for(let r in n){let s=n[r],a=s.spec.state;if(s.key==i.name&&a&&a.fromJSON&&Object.prototype.hasOwnProperty.call(t,r)){o[i.name]=a.fromJSON.call(s,e,t[r],o);return}}o[i.name]=i.init(e,o)}}),o}}class C{constructor(e){this.spec=e,this.props={},e.props&&function e(t,n,r){for(let i in t){let o=t[i];o instanceof Function?o=o.bind(n):"handleDOMEvents"==i&&(o=e(o,n,{})),r[i]=o}return r}(e.props,this,this.props),this.key=e.key?e.key.key:D("plugin")}getState(e){return e[this.key]}}let A=Object.create(null);function D(e){return e in A?e+"$"+ ++A[e]:(A[e]=0,e+"$")}class S{constructor(e="key"){this.key=D(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}n.d(t,{$t:function(){return k},LN:function(){return s},U3:function(){return u},hs:function(){return S},i5:function(){return p},k_:function(){return C},nh:function(){return h},yn:function(){return a}})},873686:function(e,t,n){"use strict";var r=n(881570),i=n(120258),o=n(311329);let s=function(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t},a=function(e){let t=e.assignedSlot||e.parentNode;return t&&11==t.nodeType?t.host:t},l=null,c=function(e,t,n){let r=l||(l=document.createRange());return r.setEnd(e,null==n?e.nodeValue.length:n),r.setStart(e,t||0),r},u=function(){l=null},d=function(e,t,n,r){return n&&(f(e,t,n,r,-1)||f(e,t,n,r,1))},h=/^(img|br|input|textarea|hr)$/i;function f(e,t,n,r,i){for(var o;;){if(e==n&&t==r)return!0;
9if(t==(i<0?0:p(e))){let n=e.parentNode;if(!n||1!=n.nodeType||m(e)||h.test(e.nodeName)||"false"==e.contentEditable)return!1;t=s(e)+(i<0?0:1),e=n}else{if(1!=e.nodeType)return!1;let n=e.childNodes[t+(i<0?-1:0)];if(1==n.nodeType&&"false"==n.contentEditable)if(null==(o=n.pmViewDesc)||!o.ignoreForSelection)return!1;else t+=i;else e=n,t=i<0?p(e):0}}}function p(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function m(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}let g=function(e){return e.focusNode&&d(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function y(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}let v="u">typeof navigator?navigator:null,b="u">typeof document?document:null,_=v&&v.userAgent||"",w=/Edge\/(\d+)/.exec(_),x=/MSIE \d/.exec(_),k=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(_),C=!!(x||k||w),A=x?document.documentMode:k?+k[1]:w?+w[1]:0,D=!C&&/gecko\/(\d+)/i.test(_);D&&(/Firefox\/(\d+)/.exec(_)||[0,0])[1];let S=!C&&/Chrome\/(\d+)/.exec(_),E=!!S,T=S?+S[1]:0,O=!C&&!!v&&/Apple Computer/.test(v.vendor),M=O&&(/Mobile\/\w+/.test(_)||!!v&&v.maxTouchPoints>2),N=M||!!v&&/Mac/.test(v.platform),P=!!v&&/Win/.test(v.platform),R=/Android \d/.test(_),I=!!b&&"webkitFontSmoothing"in b.documentElement.style,F=I?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function L(e,t){return"number"==typeof e?e:e[t]}function j(e,t,n){let r=e.someProp("scrollThreshold")||0,i=e.someProp("scrollMargin")||5,o=e.dom.ownerDocument;for(let s=n||e.dom;s;){if(1!=s.nodeType){s=a(s);continue}let e=s,n=e==o.body,l=n?function(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}(o):function(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}(e),c=0,u=0;if(t.top<l.top+L(r,"top")?u=-(l.top-t.top+L(i,"top")):t.bottom>l.bottom-L(r,"bottom")&&(u=t.bottom-t.top>l.bottom-l.top?t.top+L(i,"top")-l.top:t.bottom-l.bottom+L(i,"bottom")),t.left<l.left+L(r,"left")?c=-(l.left-t.left+L(i,"left")):t.right>l.right-L(r,"right")&&(c=t.right-l.right+L(i,"right")),c||u)if(n)o.defaultView.scrollBy(c,u);else{let n=e.scrollLeft,r=e.scrollTop;u&&(e.scrollTop+=u),c&&(e.scrollLeft+=c);let i=e.scrollLeft-n,o=e.scrollTop-r;t={left:t.left-i,top:t.top-o,right:t.right-i,bottom:t.bottom-o}}let d=n?"fixed":getComputedStyle(s).position;if(/^(fixed|sticky)$/.test(d))break;s="absolute"==d?s.offsetParent:a(s)}}function z(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=a(r));return t}function $(e,t){for(let n=0;n<e.length;n++){let{dom:r,top:i,left:o}=e[n];r.scrollTop!=i+t&&(r.scrollTop=i+t),r.scrollLeft!=o&&(r.scrollLeft=o)}}let B=null;function V(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function Y(e){return e.top<e.bottom||e.left<e.right}function q(e,t){let n=e.getClientRects();if(n.length){let e=n[t<0?0:n.length-1];if(Y(e))return e}return Array.prototype.find.call(n,Y)||e.getBoundingClientRect()}let H=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function W(e,t,n){let{node:r,offset:i,atom:o}=e.docView.domFromPos(t,n<0?-1:1),s=I||D;if(3==r.nodeType)if(s&&(H.test(r.nodeValue)||(n<0?!i:i==r.nodeValue.length))){let e=q(c(r,i,i),n);if(D&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){let t=q(c(r,i-1,i-1),-1);if(t.top==e.top){let n=q(c(r,i,i+1),-1);if(n.top!=e.top)return U(n,n.left<t.left)}}return e}else{let e=i,t=i,o=n<0?1:-1;return n<0&&!i?(t++,o=-1):n>=0&&i==r.nodeValue.length?(e--,o=1):n<0?e--:t++,U(q(c(r,e,t),o),o<0)}if(!e.state.doc.resolve(t-(o||0)).parent.inlineContent){if(null==o&&i&&(n<0||i==p(r))){let e=r.childNodes[i-1];if(1==e.nodeType)return G(e.getBoundingClientRect(),!1)}if(null==o&&i<p(r)){let e=r.childNodes[i];if(1==e.nodeType)return G(e.getBoundingClientRect(),!0)}return G(r.getBoundingClientRect(),n>=0)}if(null==o&&i&&(n<0||i==p(r))){let e=r.childNodes[i-1],t=3==e.nodeType?c(e,p(e)-!s):1!=e.nodeType||"BR"==e.nodeName&&e.nextSibling?null:e;if(t)return U(q(t,1),!1)}if(null==o&&i<p(r)){let e=r.childNodes[i];for(;
9e.pmViewDesc&&e.pmViewDesc.ignoreForCoords;)e=e.nextSibling;let t=e?3==e.nodeType?c(e,0,+!s):1==e.nodeType?e:null:null;if(t)return U(q(t,-1),!0)}return U(q(3==r.nodeType?c(r):r,-n),n>=0)}function U(e,t){if(0==e.width)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function G(e,t){if(0==e.height)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function Z(e,t,n){let r=e.state,i=e.root.activeElement;r!=t&&e.updateState(t),i!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),i!=e.dom&&i&&i.focus()}}let J=/[\u0590-\u08ac]/,K=null,X=null,Q=!1;class ee{constructor(e,t,n,r){this.parent=e,this.children=t,this.dom=n,this.contentDOM=r,this.dirty=0,n.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,n){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;t<this.children.length;t++)e+=this.children[t].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let t=0,n=this.posAtStart;;t++){let r=this.children[t];if(r==e)return n;n+=r.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,t,n){let r;if(this.contentDOM&&this.contentDOM.contains(1==e.nodeType?e:e.parentNode))if(n<0){let n,r;if(e==this.contentDOM)n=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.previousSibling}for(;n&&!((r=n.pmViewDesc)&&r.parent==this);)n=n.previousSibling;return n?this.posBeforeChild(r)+r.size:this.posAtStart}else{let n,r;if(e==this.contentDOM)n=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.nextSibling}for(;n&&!((r=n.pmViewDesc)&&r.parent==this);)n=n.nextSibling;return n?this.posBeforeChild(r):this.posAtEnd}if(e==this.dom&&this.contentDOM)r=t>s(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=2&e.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==t)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!1;break}if(t.previousSibling)break}if(null==r&&t==e.childNodes.length)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!0;break}if(t.nextSibling)break}}return(null==r?n>0:r)?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let n=!0,r=e;r;r=r.parentNode){let i=this.getDesc(r),o;if(i&&(!t||i.node))if(!n||!(o=i.nodeDOM)||(1==o.nodeType?o.contains(1==e.nodeType?e:e.parentNode):o==e))return i;else n=!1}}getDesc(e){let t=e.pmViewDesc;for(let e=t;e;e=e.parent)if(e==this)return t}posFromDOM(e,t,n){for(let r=e;r;r=r.parentNode){let i=this.getDesc(r);if(i)return i.localPosFromDOM(e,t,n)}return -1}descAt(e){for(let t=0,n=0;t<this.children.length;t++){let r=this.children[t],i=n+r.size;if(n==e&&i!=n){for(;!r.border&&r.children.length;)for(let e=0;e<r.children.length;e++){let t=r.children[e];if(t.size){r=t;break}}return r}if(e<i)return r.descAt(e-n-r.border);n=i}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let n=0,r=0;for(let t=0;n<this.children.length;n++){let i=this.children[n],o=t+i.size;if(o>
9e||i instanceof ea){r=e-t;break}t=o}if(r)return this.children[n].domFromPos(r-this.children[n].border,t);for(let e;n&&!(e=this.children[n-1]).size&&e instanceof et&&e.side>=0;n--);if(t<=0){let e,r=!0;for(;(e=n?this.children[n-1]:null)&&e.dom.parentNode!=this.contentDOM;n--,r=!1);return e&&t&&r&&!e.border&&!e.domAtom?e.domFromPos(e.size,t):{node:this.contentDOM,offset:e?s(e.dom)+1:0}}{let e,r=!0;for(;(e=n<this.children.length?this.children[n]:null)&&e.dom.parentNode!=this.contentDOM;n++,r=!1);return e&&r&&!e.border&&!e.domAtom?e.domFromPos(0,t):{node:this.contentDOM,offset:e?s(e.dom):this.contentDOM.childNodes.length}}}parseRange(e,t,n=0){if(0==this.children.length)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,i=-1;for(let o=n,a=0;;a++){let n=this.children[a],l=o+n.size;if(-1==r&&e<=l){let i=o+n.border;if(e>=i&&t<=l-n.border&&n.node&&n.contentDOM&&this.contentDOM.contains(n.contentDOM))return n.parseRange(e,t,i);e=o;for(let t=a;t>0;t--){let n=this.children[t-1];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(1)){r=s(n.dom)+1;break}e-=n.size}-1==r&&(r=0)}if(r>-1&&(l>t||a==this.children.length-1)){t=l;for(let e=a+1;e<this.children.length;e++){let n=this.children[e];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(-1)){i=s(n.dom);break}t+=n.size}-1==i&&(i=this.contentDOM.childNodes.length);break}o=l}return{node:this.contentDOM,from:e,to:t,fromOffset:r,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return 0==t.size||t.emptyChildAt(e)}domAfterPos(e){let{node:t,offset:n}=this.domFromPos(e,0);if(1!=t.nodeType||n==t.childNodes.length)throw RangeError("No node after pos "+e);return t.childNodes[n]}setSelection(e,t,n,r=!1){let i=Math.min(e,t),o=Math.max(e,t);for(let s=0,a=0;s<this.children.length;s++){let l=this.children[s],c=a+l.size;if(i>a&&o<c)return l.setSelection(e-a-l.border,t-a-l.border,n,r);a=c}let a=this.domFromPos(e,e?-1:1),l=t==e?a:this.domFromPos(t,t?-1:1),c=n.root.getSelection(),u=n.domSelectionRange(),h=!1;if((D||O)&&e==t){let{node:e,offset:t}=a;if(3==e.nodeType){if((h=!!(t&&"\n"==e.nodeValue[t-1]))&&t==e.nodeValue.length)for(let t=e,n;t;t=t.parentNode){if(n=t.nextSibling){"BR"==n.nodeName&&(a=l={node:n.parentNode,offset:s(n)+1});break}let e=t.pmViewDesc;if(e&&e.node&&e.node.isBlock)break}}else{let n=e.childNodes[t-1];h=n&&("BR"==n.nodeName||"false"==n.contentEditable)}}if(D&&u.focusNode&&u.focusNode!=l.node&&1==u.focusNode.nodeType){let e=u.focusNode.childNodes[u.focusOffset];e&&"false"==e.contentEditable&&(r=!0)}if(!(r||h&&O)&&d(a.node,a.offset,u.anchorNode,u.anchorOffset)&&d(l.node,l.offset,u.focusNode,u.focusOffset))return;let f=!1;if((c.extend||e==t)&&!(h&&D)){c.collapse(a.node,a.offset);try{e!=t&&c.extend(l.node,l.offset),f=!0}catch(e){}}if(!f){if(e>t){let e=a;a=l,l=e}let n=document.createRange();n.setEnd(l.node,l.offset),n.setStart(a.node,a.offset),c.removeAllRanges(),c.addRange(n)}}ignoreMutation(e){return!this.contentDOM&&"selection"!=e.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let n=0,r=0;r<this.children.length;r++){let i=this.children[r],o=n+i.size;if(n==o?e<=o&&t>=n:e<o&&t>n){let r=n+i.border,s=o-i.border;if(e>=r&&t<=s){this.dirty=e==n||t==o?2:1,e==r&&t==s&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=3:i.markDirty(e-r,t-r);return}i.dirty=i.dom!=i.contentDOM||i.dom.parentNode!=this.contentDOM||i.children.length?3:2}n=o}this.dirty=2}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let n=1==e?2:1;t.dirty<n&&(t.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}}class et extends ee{constructor(e,t,n,r){let i,o=t.type.toDOM;if("function"==typeof o&&(o=o(n,()=>i?i.parent?i.parent.posBeforeChild(i):void 0:r)),!t.type.spec.raw){if(1!=o.nodeType){let e=document.createElement("span");e.appendChild(o),o=e}o.contentEditable="false",o.classList.add("ProseMirror-widget")}super(e,[],o,null),this.widget=t,this.widget=t,i=this}matchesWidget(e){return 0==this.dirty&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return!!t&&t(e)}ignoreMutation(e){return"selection"!=e.type||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class en extends ee{constructor(e,t,n,r){super(e,[],t,null),this.textDOM=n,this.text=r}get size(){return this.text.length}localPosFromDOM(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return"characterData"===e.type&&e.target.nodeValue==e.oldValue}}class er extends ee{constructor(e,t,n,r,i){super(e,[],n,r),this.mark=t,this.spec=i}
9static create(e,t,n,r){let o=r.nodeViews[t.type.name],s=o&&o(t,r,n);return s&&s.dom||(s=i.ZF.renderSpec(document,t.type.spec.toDOM(t,n),null,t.attrs)),new er(e,t,s.dom,s.contentDOM||s.dom,s)}parseRule(){return 3&this.dirty||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return 3!=this.dirty&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),0!=this.dirty){let e=this.parent;for(;!e.node;)e=e.parent;e.dirty<this.dirty&&(e.dirty=this.dirty),this.dirty=0}}slice(e,t,n){let r=er.create(this.parent,this.mark,!0,n),i=this.children,o=this.size;t<o&&(i=ev(i,t,o,n)),e>0&&(i=ev(i,0,e,n));for(let e=0;e<i.length;e++)i[e].parent=r;return r.children=i,r}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class ei extends ee{constructor(e,t,n,r,i,o,s,a,l){super(e,[],i,o),this.node=t,this.outerDeco=n,this.innerDeco=r,this.nodeDOM=s}static create(e,t,n,r,o,s){let a=o.nodeViews[t.type.name],l,c=a&&a(t,o,()=>l?l.parent?l.parent.posBeforeChild(l):void 0:s,n,r),u=c&&c.dom,d=c&&c.contentDOM;if(t.isText)if(u){if(3!=u.nodeType)throw RangeError("Text must be rendered as a DOM text node")}else u=document.createTextNode(t.text);else if(!u){let e=i.ZF.renderSpec(document,t.type.spec.toDOM(t),null,t.attrs);({dom:u,contentDOM:d}=e)}d||t.isText||"BR"==u.nodeName||(u.hasAttribute("contenteditable")||(u.contentEditable="false"),t.type.spec.draggable&&(u.draggable=!0));let h=u;return(u=ef(u,n,t),c)?l=new el(e,t,n,r,u,d||null,h,c,o,s+1):t.isText?new es(e,t,n,r,u,h,o):new ei(e,t,n,r,u,d||null,h,o,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(e.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let t=this.children.length-1;t>=0;t--){let n=this.children[t];if(this.dom.contains(n.dom.parentNode)){e.contentElement=n.dom.parentNode;break}}e.contentElement||(e.getContent=()=>i.FK.empty)}else e.contentElement=this.contentDOM;else e.getContent=()=>this.node.content;return e}matchesNode(e,t,n){return 0==this.dirty&&e.eq(this.node)&&ep(t,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return+!this.node.isLeaf}updateChildren(e,t){let n=this.node.inlineContent,r=t,o=e.composing?this.localCompositionInfo(e,t):null,s=o&&o.pos>-1?o:null,a=o&&o.pos<0,l=new eg(this,s&&s.node,e);(function(e,t,n,r){let i=t.locals(e),o=0;if(0==i.length){for(let n=0;n<e.childCount;n++){let s=e.child(n);r(s,i,t.forChild(o,s),n),o+=s.nodeSize}return}let s=0,a=[],l=null;for(let c=0;;){let u,d,h,f;for(;s<i.length&&i[s].to==o;){let e=i[s++];e.widget&&(u?(d||(d=[u])).push(e):u=e)}if(u)if(d){d.sort(ey);for(let e=0;e<d.length;e++)n(d[e],c,!!l)}else n(u,c,!!l);if(l)f=-1,h=l,l=null;else if(c<e.childCount)f=c,h=e.child(c++);else break;for(let e=0;e<a.length;e++)a[e].to<=o&&a.splice(e--,1);for(;s<i.length&&i[s].from<=o&&i[s].to>o;)a.push(i[s++]);let p=o+h.nodeSize;if(h.isText){let e=p;s<i.length&&i[s].from<e&&(e=i[s].from);for(let t=0;t<a.length;t++)a[t].to<e&&(e=a[t].to);e<p&&(l=h.cut(e-o),h=h.cut(0,e-o),p=e,f=-1)}else for(;s<i.length&&i[s].to<p;)s++;let m=h.isInline&&!h.isLeaf?a.filter(e=>!e.inline):a.slice();r(h,m,t.forChild(o,h),f),o=p}})(this.node,this.innerDeco,(t,o,s)=>{t.spec.marks?l.syncToMarks(t.spec.marks,n,e):t.type.side>=0&&!s&&l.syncToMarks(o==this.node.childCount?i.CU.none:this.node.child(o).marks,n,e),l.placeWidget(t,e,r)},(t,i,s,c)=>{let u;l.syncToMarks(t.marks,n,e),l.findNodeMatch(t,i,s,c)||a&&e.state.selection.from>r&&e.state.selection.to<r+t.nodeSize&&(u=l.findIndexWithChild(o.node))>-1&&l.updateNodeAt(t,i,s,u,e)||l.updateNextNode(t,i,s,e,c,r)||l.addNode(t,i,s,e,r),r+=t.nodeSize}),l.syncToMarks([],n,e),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||2==this.dirty)&&(s&&this.protectLocalComposition(e,s),function e(t,n,r){let i=t.firstChild,o=!1;for(let s=0;s<n.length;s++){let a=n[s],l=a.dom;if(l.parentNode==t){for(;l!=i;)i=em(i),o=!0;i=i.nextSibling}else o=!0,t.insertBefore(l,i);if(a instanceof er){let n=i?i.previousSibling:t.lastChild;e(a.contentDOM,a.children,r),i=n?n.nextSibling:t.firstChild}}for(;i;)i=em(i),o=!0;o&&r.trackWrites==t&&(r.trackWrites=null)}(this.contentDOM,this.children,e),M&&function(e){if("UL"==e.nodeName||"OL"==e.nodeName){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}(this.dom))}localCompositionInfo(e,t){let{from:n,to:i}=e.state.selection;if(!(e.state.selection instanceof r.U3)||n<t||i>t+this.node.content.size)return null;let o=e.input.compositionNode;if(!o||!this.dom.contains(o.parentNode))return null;if(!this.node.inlineContent)return{node:o,pos:-1,text:""};{let e=o.nodeValue,r=function(e,t,n,r){for(let i=0,o=0;i<e.childCount&&o<=r;){let s=e.child(i++),a=o;if(o+=s.nodeSize,!s.isText)continue;let l=s.text;for(;i<e.childCount;){let t=e.child(i++);if(o+=t.nodeSize,!t.isText)break;l+=t.text}
9if(o>=n){if(o>=r&&l.slice(r-t.length-a,r-a)==t)return r-t.length;let e=a<r?l.lastIndexOf(t,r-a-1):-1;if(e>=0&&e+t.length+a>=n)return a+e;if(n==r&&l.length>=r+t.length-a&&l.slice(r-a,r-a+t.length)==t)return r}}return -1}(this.node.content,e,n-t,i-t);return r<0?null:{node:o,pos:r,text:e}}}protectLocalComposition(e,{node:t,pos:n,text:r}){if(this.getDesc(t))return;let i=t;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let o=new en(this,i,t,r);e.input.compositionNodes.push(o),this.children=ev(this.children,n,n+r.length,e,o)}update(e,t,n,r){return 3!=this.dirty&&!!e.sameMarkup(this.node)&&(this.updateInner(e,t,n,r),!0)}updateInner(e,t,n,r){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=0}updateOuterDeco(e){if(ep(e,this.outerDeco))return;let t=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=eh(this.dom,this.nodeDOM,ed(this.outerDeco,this.node,t),ed(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){1==this.nodeDOM.nodeType&&(this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){1==this.nodeDOM.nodeType&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function eo(e,t,n,r,i){ef(r,t,e);let o=new ei(void 0,e,t,n,r,r,r,i,0);return o.contentDOM&&o.updateChildren(i,0),o}class es extends ei{constructor(e,t,n,r,i,o,s){super(e,t,n,r,i,null,o,s,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,t,n,r){return 3!=this.dirty&&(0==this.dirty||!!this.inParent())&&!!e.sameMarkup(this.node)&&(this.updateOuterDeco(t),(0!=this.dirty||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=0,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,n){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,n)}ignoreMutation(e){return"characterData"!=e.type&&"selection"!=e.type}slice(e,t,n){let r=this.node.cut(e,t),i=document.createTextNode(r.text);return new es(this.parent,r,this.outerDeco,this.innerDeco,i,i,n)}markDirty(e,t){super.markDirty(e,t),this.dom!=this.nodeDOM&&(0==e||t==this.nodeDOM.nodeValue.length)&&(this.dirty=3)}get domAtom(){return!1}isText(e){return this.node.text==e}}class ea extends ee{parseRule(){return{ignore:!0}}matchesHack(e){return 0==this.dirty&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class el extends ei{constructor(e,t,n,r,i,o,s,a,l,c){super(e,t,n,r,i,o,s,l,c),this.spec=a}update(e,t,n,r){if(3==this.dirty)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let i=this.spec.update(e,t,n);return i&&this.updateInner(e,t,n,r),i}return(!!this.contentDOM||!!e.isLeaf)&&super.update(e,t,n,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,n,r){this.spec.setSelection?this.spec.setSelection(e,t,n.root):super.setSelection(e,t,n,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}let ec=function(e){e&&(this.nodeName=e)};ec.prototype=Object.create(null);let eu=[new ec];function ed(e,t,n){if(0==e.length)return eu;let r=n?eu[0]:new ec,i=[r];for(let o=0;o<e.length;o++){let s=e[o].type.attrs;if(s)for(let e in s.nodeName&&i.push(r=new ec(s.nodeName)),s){let o=s[e];null!=o&&(n&&1==i.length&&i.push(r=new ec(t.isInline?"span":"div")),"class"==e?r.class=(r.class?r.class+" ":"")+o:"style"==e?r.style=(r.style?r.style+";":"")+o:"nodeName"!=e&&(r[e]=o))}}return i}
9function eh(e,t,n,r){if(n==eu&&r==eu)return t;let i=t;for(let t=0;t<r.length;t++){let o=r[t],s=n[t];if(t){let t;s&&s.nodeName==o.nodeName&&i!=e&&(t=i.parentNode)&&t.nodeName.toLowerCase()==o.nodeName||((t=document.createElement(o.nodeName)).pmIsDeco=!0,t.appendChild(i),s=eu[0]),i=t}!function(e,t,n){for(let r in t)"class"==r||"style"==r||"nodeName"==r||r in n||e.removeAttribute(r);for(let r in n)"class"!=r&&"style"!=r&&"nodeName"!=r&&n[r]!=t[r]&&e.setAttribute(r,n[r]);if(t.class!=n.class){let r=t.class?t.class.split(" ").filter(Boolean):[],i=n.class?n.class.split(" ").filter(Boolean):[];for(let t=0;t<r.length;t++)-1==i.indexOf(r[t])&&e.classList.remove(r[t]);for(let t=0;t<i.length;t++)-1==r.indexOf(i[t])&&e.classList.add(i[t]);0==e.classList.length&&e.removeAttribute("class")}if(t.style!=n.style){if(t.style){let n=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,r;for(;r=n.exec(t.style);)e.style.removeProperty(r[1])}n.style&&(e.style.cssText+=n.style)}}(i,s||eu[0],o)}return i}function ef(e,t,n){return eh(e,e,eu,ed(t,n,1!=e.nodeType))}function ep(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function em(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class eg{constructor(e,t,n){this.lock=t,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=function(e,t){let n=t,r=n.children.length,i=e.childCount,o=new Map,s=[];t:for(;i>0;){let a;for(;;)if(r){let e=n.children[r-1];if(e instanceof er)n=e,r=e.children.length;else{a=e,r--;break}}else if(n==t)break t;else r=n.parent.children.indexOf(n),n=n.parent;let l=a.node;if(l){if(l!=e.child(i-1))break;--i,o.set(a,i),s.push(a)}}return{index:i,matched:o,matches:s.reverse()}}(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let n=e;n<t;n++)this.top.children[n].destroy();this.top.children.splice(e,t-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,t,n){let r=0,i=this.stack.length>>1,o=Math.min(i,e.length);for(;r<o&&(r==i-1?this.top:this.stack[r+1<<1]).matchesMark(e[r])&&!1!==e[r].type.spec.spanning;)r++;for(;r<i;)this.destroyRest(),this.top.dirty=0,this.index=this.stack.pop(),this.top=this.stack.pop(),i--;for(;i<e.length;){this.stack.push(this.top,this.index+1);let r=-1;for(let t=this.index;t<Math.min(this.index+3,this.top.children.length);t++){let n=this.top.children[t];if(n.matchesMark(e[i])&&!this.isLocked(n.dom)){r=t;break}}if(r>-1)r>this.index&&(this.changed=!0,this.destroyBetween(this.index,r)),this.top=this.top.children[this.index];else{let r=er.create(this.top,e[i],t,n);this.top.children.splice(this.index,0,r),this.top=r,this.changed=!0}this.index=0,i++}}findNodeMatch(e,t,n,r){let i=-1,o;if(r>=this.preMatch.index&&(o=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&o.matchesNode(e,t,n))i=this.top.children.indexOf(o,this.index);else for(let r=this.index,o=Math.min(this.top.children.length,r+5);r<o;r++){let o=this.top.children[r];if(o.matchesNode(e,t,n)&&!this.preMatch.matched.has(o)){i=r;break}}return!(i<0)&&(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,t,n,r,i){let o=this.top.children[r];return 3==o.dirty&&o.dom==o.contentDOM&&(o.dirty=2),!!o.update(e,t,n,i)&&(this.destroyBetween(this.index,r),this.index++,!0)}findIndexWithChild(e){for(;;){let t=e.parentNode;if(!t)return -1;if(t==this.top.contentDOM){let t=e.pmViewDesc;if(t){for(let e=this.index;e<this.top.children.length;e++)if(this.top.children[e]==t)return e}return -1}e=t}}updateNextNode(e,t,n,r,i,o){for(let s=this.index;s<this.top.children.length;s++){let a=this.top.children[s];if(a instanceof ei){let l=this.preMatch.matched.get(a);if(null!=l&&l!=i)return!1;let c=a.dom,u,d=this.isLocked(c)&&!(e.isText&&a.node&&a.node.isText&&a.nodeDOM.nodeValue==e.text&&3!=a.dirty&&ep(t,a.outerDeco));if(!d&&a.update(e,t,n,r))return this.destroyBetween(this.index,s),a.dom!=c&&(this.changed=!0),this.index++,!0;if(!d&&(u=this.recreateWrapper(a,e,t,n,r,o)))return this.destroyBetween(this.index,s),this.top.children[this.index]=u,u.contentDOM&&(u.dirty=2,u.updateChildren(r,o+1),u.dirty=0),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,t,n,r,i,o){if(e.dirty||t.isAtom||!e.children.length||!e.node.content.eq(t.content)||!ep(n,e.outerDeco)||!r.eq(e.innerDeco))return null;let s=ei.create(this.top,t,n,r,i,o);if(s.contentDOM)for(let t of(s.children=e.children,e.children=[],s.children))t.parent=s;return e.destroy(),s}addNode(e,t,n,r,i){let o=ei.create(this.top,e,t,n,r,i);o.contentDOM&&o.updateChildren(r,i+1),this.top.children.splice(this.index++,0,o),this.changed=!0}placeWidget(e,t,n){let r=this.index<this.top.children.length?this.top.children[this.index]:null;if(r&&r.matchesWidget(e)&&(e==r.widget||!r.widget.type.toDOM.parentNode))this.index++;else{let r=new et(this.top,e,t,n);this.top.children.splice(this.index++,0,r),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],t=this.top;for(;e instanceof er;)e=(t=e).children[t.children.length-1];(!e||!(e instanceof es)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((O||E)&&e&&"false"==e.dom.contentEditable&&this.addHackNode("IMG",t),this.addHackNode("BR",this.top))}addHackNode(e,t){if(t==this.top&&this.index<t.children.length&&t.children[this.index].matchesHack(e))this.index++;else{let n=document.createElement(e);"IMG"==e&&(n.className="ProseMirror-separator",n.alt=""),"BR"==e&&(n.className="ProseMirror-trailingBreak");let r=new ea(this.top,[],n,null);t!=this.top?t.children.push(r):t.children.splice(this.index++,0,r),this.changed=!0}}
9isLocked(e){return this.lock&&(e==this.lock||1==e.nodeType&&e.contains(this.lock.parentNode))}}function ey(e,t){return e.type.side-t.type.side}function ev(e,t,n,r,i){let o=[];for(let s=0,a=0;s<e.length;s++){let l=e[s],c=a,u=a+=l.size;c>=n||u<=t?o.push(l):(c<t&&o.push(l.slice(0,t-c,r)),i&&(o.push(i),i=void 0),u>n&&o.push(l.slice(n-c,l.size,r)))}return o}function eb(e,t=null){let n=e.domSelectionRange(),i=e.state.doc;if(!n.focusNode)return null;let o=e.docView.nearestDesc(n.focusNode),a=o&&0==o.size,l=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(l<0)return null;let c=i.resolve(l),u,d;if(g(n)){for(u=l;o&&!o.node;)o=o.parent;let e=o.node;if(o&&e.isAtom&&r.nh.isSelectable(e)&&o.parent&&!(e.isInline&&function(e,t,n){for(let r=0==t,i=t==p(e);r||i;){if(e==n)return!0;let t=s(e);if(!(e=e.parentNode))return!1;r=r&&0==t,i=i&&t==p(e)}}(n.focusNode,n.focusOffset,o.dom))){let e=o.posBefore;d=new r.nh(l==e?c:i.resolve(e))}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let t=l,r=l;for(let i=0;i<n.rangeCount;i++){let o=n.getRangeAt(i);t=Math.min(t,e.docView.posFromDOM(o.startContainer,o.startOffset,1)),r=Math.max(r,e.docView.posFromDOM(o.endContainer,o.endOffset,-1))}if(t<0)return null;[u,l]=r==e.state.selection.anchor?[r,t]:[t,r],c=i.resolve(l)}else u=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(u<0)return null}let h=i.resolve(u);if(!d){let n="pointer"==t||e.state.selection.head<c.pos&&!a?1:-1;d=eE(e,h,c,n)}return d}function e_(e){return e.editable?e.hasFocus():eO(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function ew(e,t=!1){let n=e.state.selection;if(eD(e,n),e_(e)){if(!t&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&E){let t=e.domSelectionRange(),n=e.domObserver.currentSelection;if(t.anchorNode&&n.anchorNode&&d(t.anchorNode,t.anchorOffset,n.anchorNode,n.anchorOffset)){e.input.mouseDown.delayedSelectionSync=!0,e.domObserver.setCurSelection();return}}if(e.domObserver.disconnectSelection(),e.cursorWrapper)!function(e){let t=e.domSelection();if(!t)return;let n=e.cursorWrapper.dom,r="IMG"==n.nodeName;r?t.collapse(n.parentNode,s(n)+1):t.collapse(n,0),!r&&!e.state.selection.visible&&C&&A<=11&&(n.disabled=!0,n.disabled=!1)}(e);else{var i;let o,s,a,l,{anchor:c,head:u}=n,d,h;ex&&!(n instanceof r.U3)&&(n.$from.parent.inlineContent||(d=ek(e,n.from)),n.empty||n.$from.parent.inlineContent||(h=ek(e,n.to))
9),e.docView.setSelection(c,u,e,t),ex&&(d&&eA(d),h&&eA(h)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&((o=(i=e).dom.ownerDocument).removeEventListener("selectionchange",i.input.hideSelectionGuard),a=(s=i.domSelectionRange()).anchorNode,l=s.anchorOffset,o.addEventListener("selectionchange",i.input.hideSelectionGuard=()=>{(s.anchorNode!=a||s.anchorOffset!=l)&&(o.removeEventListener("selectionchange",i.input.hideSelectionGuard),setTimeout(()=>{(!e_(i)||i.state.selection.visible)&&i.dom.classList.remove("ProseMirror-hideselection")},20))})))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}let ex=O||E&&T<63;function ek(e,t){let{node:n,offset:r}=e.docView.domFromPos(t,0),i=r<n.childNodes.length?n.childNodes[r]:null,o=r?n.childNodes[r-1]:null;if(O&&i&&"false"==i.contentEditable)return eC(i);if((!i||"false"==i.contentEditable)&&(!o||"false"==o.contentEditable)){if(i)return eC(i);else if(o)return eC(o)}}function eC(e){return e.contentEditable="true",O&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function eA(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function eD(e,t){if(t instanceof r.nh){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(eS(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else eS(e)}function eS(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function eE(e,t,n,i){return e.someProp("createSelectionBetween",r=>r(e,t,n))||r.U3.between(t,n,i)}function eT(e){return(!e.editable||!!e.hasFocus())&&eO(e)}function eO(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch(e){return!1}}function eM(e,t){let{$anchor:n,$head:i}=e.selection,o=t>0?n.max(i):n.min(i),s=o.parent.inlineContent?o.depth?e.doc.resolve(t>0?o.after():o.before()):null:o;return s&&r.LN.findFrom(s,t)}function eN(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function eP(e,t,n){let i=e.state.selection;if(i instanceof r.U3){if(n.indexOf("s")>-1){let{$head:n}=i,o=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter;if(!o||o.isText||!o.isLeaf)return!1;let s=e.state.doc.resolve(n.pos+o.nodeSize*(t<0?-1:1));return eN(e,new r.U3(i.$anchor,s))}else if(!i.empty)return!1;else if(e.endOfTextblock(t>0?"forward":"backward")){let n=eM(e.state,t);return!!n&&n instanceof r.nh&&eN(e,n)}else if(!(N&&n.indexOf("m")>-1)){let n=i.$head,o=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter,s;if(!o||o.isText)return!1;let a=t<0?n.pos-o.nodeSize:n.pos;return!!(o.isAtom||(s=e.docView.descAt(a))&&!s.contentDOM)&&(r.nh.isSelectable(o)?eN(e,new r.nh(t<0?e.state.doc.resolve(n.pos-o.nodeSize):n)):!!I&&eN(e,new r.U3(e.state.doc.resolve(t<0?a:a+o.nodeSize))))}}else{if(i instanceof r.nh&&i.node.isInline)return eN(e,new r.U3(t>0?i.$to:i.$from));let n=eM(e.state,t);return!!n&&eN(e,n)}}function eR(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function eI(e,t){let n=e.pmViewDesc;return n&&0==n.size&&(t<0||e.nextSibling||"BR"!=e.nodeName)}function eF(e,t){return t<0?function(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,o,a=!1;for(D&&1==n.nodeType&&r<eR(n)&&eI(n.childNodes[r],-1)&&(a=!0);;)if(r>0)if(1!=n.nodeType)break;else{let e=n.childNodes[r-1];if(eI(e,-1))i=n,o=--r;else if(3==e.nodeType)r=(n=e).nodeValue.length;else break}else if(eL(n))break;else{let t=n.previousSibling;for(;t&&eI(t,-1);)i=n.parentNode,o=s(t),t=t.previousSibling;if(t)r=eR(n=t);else{if((n=n.parentNode)==e.dom)break;r=0}}a?ej(e,n,r):i&&ej(e,i,o)}(e):function(e){let t,n,r=e.domSelectionRange(),i=r.focusNode,o=r.focusOffset;if(!i)return;let a=eR(i);for(;;)if(o<a){if(1!=i.nodeType)break;if(eI(i.childNodes[o],1))t=i,n=++o;else break}else if(eL(i))break;else{let r=i.nextSibling;for(;r&&eI(r,1);)t=r.parentNode,n=s(r)+1,r=r.nextSibling;if(r)o=0,a=eR(i=r);else{if((i=i.parentNode)==e.dom)break;o=a=0}}
9t&&ej(e,t,n)}(e)}function eL(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function ej(e,t,n){if(3!=t.nodeType){let e,r;(r=function(e,t){for(;e&&t==e.childNodes.length&&!m(e);)t=s(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let n=e.childNodes[t];if(3==n.nodeType)return n;if(1==n.nodeType&&"false"==n.contentEditable)break;e=n,t=0}}(t,n))?(t=r,n=0):(e=function(e,t){for(;e&&!t&&!m(e);)t=s(e),e=e.parentNode;for(;e&&t;){let n=e.childNodes[t-1];if(3==n.nodeType)return n;if(1==n.nodeType&&"false"==n.contentEditable)break;t=(e=n).childNodes.length}}(t,n))&&(t=e,n=e.nodeValue.length)}let r=e.domSelection();if(!r)return;if(g(r)){let e=document.createRange();e.setEnd(t,n),e.setStart(t,n),r.removeAllRanges(),r.addRange(e)}else r.extend&&r.extend(t,n);e.domObserver.setCurSelection();let{state:i}=e;setTimeout(()=>{e.state==i&&ew(e)},50)}function ez(e,t){let n=e.state.doc.resolve(t);if(!(E||P)&&n.parent.inlineContent){let r=e.coordsAtPos(t);if(t>n.start()){let n=e.coordsAtPos(t-1),i=(n.top+n.bottom)/2;if(i>r.top&&i<r.bottom&&Math.abs(n.left-r.left)>1)return n.left<r.left?"ltr":"rtl"}if(t<n.end()){let n=e.coordsAtPos(t+1),i=(n.top+n.bottom)/2;if(i>r.top&&i<r.bottom&&Math.abs(n.left-r.left)>1)return n.left>r.left?"ltr":"rtl"}}return"rtl"==getComputedStyle(e.dom).direction?"rtl":"ltr"}function e$(e,t,n){let i=e.state.selection;if(i instanceof r.U3&&!i.empty||n.indexOf("s")>-1||N&&n.indexOf("m")>-1)return!1;let{$from:o,$to:s}=i;if(!o.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let n=eM(e.state,t);if(n&&n instanceof r.nh)return eN(e,n)}if(!o.parent.inlineContent){let n=t<0?o:s,a=i instanceof r.i5?r.LN.near(n,t):r.LN.findFrom(n,t);return!!a&&eN(e,a)}return!1}function eB(e,t){if(!(e.state.selection instanceof r.U3))return!0;let{$head:n,$anchor:i,empty:o}=e.state.selection;if(!n.sameParent(i))return!0;if(!o)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let s=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(s&&!s.isText){let r=e.state.tr;return t<0?r.delete(n.pos-s.nodeSize,n.pos):r.delete(n.pos,n.pos+s.nodeSize),e.dispatch(r),!0}return!1}function eV(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function eY(e,t){e.someProp("transformCopied",n=>{t=n(t,e)});let n=[],{content:r,openStart:o,openEnd:s}=t;for(;o>1&&s>1&&1==r.childCount&&1==r.firstChild.childCount;){o--,s--;let e=r.firstChild;n.push(e.type.name,e.attrs!=e.type.defaultAttrs?e.attrs:null),r=e.content}let a=e.someProp("clipboardSerializer")||i.ZF.fromSchema(e.state.schema),l=eK(),c=l.createElement("div");c.appendChild(a.serializeFragment(r,{document:l}));let u=c.firstChild,d,h=0;for(;u&&1==u.nodeType&&(d=eZ[u.nodeName.toLowerCase()]);){for(let e=d.length-1;e>=0;e--){let t=l.createElement(d[e]);for(;c.firstChild;)t.appendChild(c.firstChild);c.appendChild(t),h++}u=c.firstChild}return u&&1==u.nodeType&&u.setAttribute("data-pm-slice",`${o} ${s}${h?` -${h}`:""} ${JSON.stringify(n)}`),{dom:c,text:e.someProp("clipboardTextSerializer",n=>n(t,e))||t.content.textBetween(0,t.content.size,"\n\n"),slice:t}}function eq(e,t,n,r,o){let s,a,l=o.parent.type.spec.code;if(!n&&!t)return null;let c=!!t&&(r||l||!n);if(c){if(e.someProp("transformPastedText",n=>{t=n(t,l||r,e)}),l)return a=new i.Ji(i.FK.from(e.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0),e.someProp("transformPasted",t=>{a=t(a,e,!0)}),a;let n=e.someProp("clipboardTextParser",n=>n(t,o,r,e));if(n)a=n;else{let n=o.marks(),{schema:r}=e.state,a=i.ZF.fromSchema(r);s=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(e=>{let t=s.appendChild(document.createElement("p"));e&&t.appendChild(a.serializeNode(r.text(e,n)))})}}else e.someProp("transformPastedHTML",t=>{n=t(n,e)}),s=function(e){var t;let n,r=/^(\s*<meta [^>]*>)*/.exec(e);r&&(e=e.slice(r[0].length));let i=eK().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(e),s;if((s=o&&eZ[o[1].toLowerCase()])&&(e=s.map(e=>"<"+e+">").join("")+e+s.map(e=>"</"+e+">").reverse().join("")),i.innerHTML=(t=e,(n=window.trustedTypes)?(eX||(eX=n.defaultPolicy||n.createPolicy("ProseMirrorClipboard",{createHTML:e=>e})),eX.createHTML(t)):t),s)for(let e=0;e<s.length;e++)i=i.querySelector(s[e])||i;return i}(n),I&&function(e){let t=e.querySelectorAll(E?"span:not([class]):not
9([style])":"span.Apple-converted-space");for(let n=0;n<t.length;n++){let r=t[n];1==r.childNodes.length&&" "==r.textContent&&r.parentNode&&r.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),r)}}(s);let u=s&&s.querySelector("[data-pm-slice]"),d=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(d&&d[3])for(let e=+d[3];e>0;e--){let e=s.firstChild;for(;e&&1!=e.nodeType;)e=e.nextSibling;if(!e)break;s=e}if(a||(a=(e.someProp("clipboardParser")||e.someProp("domParser")||i.S4.fromSchema(e.state.schema)).parseSlice(s,{preserveWhitespace:!!(c||d),context:o,ruleFromNode:e=>"BR"!=e.nodeName||e.nextSibling||!e.parentNode||eH.test(e.parentNode.nodeName)?null:{ignore:!0}})),d)a=function(e,t){if(!e.size)return e;let n=e.content.firstChild.type.schema,r;try{r=JSON.parse(t)}catch(t){return e}let{content:o,openStart:s,openEnd:a}=e;for(let e=r.length-2;e>=0;e-=2){let t=n.nodes[r[e]];if(!t||t.hasRequiredAttrs())break;o=i.FK.from(t.create(r[e+1],o)),s++,a++}return new i.Ji(o,s,a)}(eG(a,+d[1],+d[2]),d[4]);else if((a=i.Ji.maxOpen(function(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.index(n)),o,s=[];if(e.forEach(e=>{if(!s)return;let t=r.findWrapping(e.type),n;if(!t)return s=null;if(n=s.length&&o.length&&function e(t,n,r,o,s){if(s<t.length&&s<n.length&&t[s]==n[s]){let a=e(t,n,r,o.lastChild,s+1);if(a)return o.copy(o.content.replaceChild(o.childCount-1,a));if(o.contentMatchAt(o.childCount).matchType(s==t.length-1?r.type:t[s+1]))return o.copy(o.content.append(i.FK.from(eW(r,t,s+1))))}}(t,o,e,s[s.length-1],0))s[s.length-1]=n;else{s.length&&(s[s.length-1]=function e(t,n){if(0==n)return t;let r=t.content.replaceChild(t.childCount-1,e(t.lastChild,n-1)),o=t.contentMatchAt(t.childCount).fillBefore(i.FK.empty,!0);return t.copy(r.append(o))}(s[s.length-1],o.length));let n=eW(e,t);s.push(n),r=r.matchType(n.type),o=t}}),s)return i.FK.from(s)}return e}(a.content,o),!0)).openStart||a.openEnd){let e=0,t=0;for(let t=a.content.firstChild;e<a.openStart&&!t.type.spec.isolating;e++,t=t.firstChild);for(let e=a.content.lastChild;t<a.openEnd&&!e.type.spec.isolating;t++,e=e.lastChild);a=eG(a,e,t)}return e.someProp("transformPasted",t=>{a=t(a,e,c)}),a}let eH=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function eW(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,i.FK.from(e));return e}function eU(e,t,n,r,o,s){let a=t<0?e.firstChild:e.lastChild,l=a.content;return e.childCount>1&&(s=0),o<r-1&&(l=eU(l,t,n,r,o+1,s)),o>=n&&(l=t<0?a.contentMatchAt(0).fillBefore(l,s<=o).append(l):l.append(a.contentMatchAt(a.childCount).fillBefore(i.FK.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,a.copy(l))}function eG(e,t,n){return t<e.openStart&&(e=new i.Ji(eU(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new i.Ji(eU(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}let eZ={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]},eJ=null;function eK(){return eJ||(eJ=document.implementation.createHTMLDocument("title"))}let eX=null,eQ={},e0={},e1={touchstart:!0,touchmove:!0};class e2{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function e3(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function e4(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=t=>e5(e,t))})}function e5(e,t){return e.someProp("handleDOMEvents",n=>{let r=n[t.type];return!!r&&(r(e,t)||t.defaultPrevented)})}function e6(e){return{left:e.clientX,top:e.clientY}}function e9(e,t,n,r,i){if(-1==r)return!1;let o=e.state.doc.resolve(r);for(let r=o.depth+1;r>0;r--)if(e.someProp(t,t=>r>o.depth?t(e,n,o.nodeAfter,o.before(r),i,!0):t(e,n,o.node(r),o.before(r),i,!1)))return!0;return!1}function e8(e,t,n){if(e.focused||e.focus(),e.state.selection.eq(t))return;let r=e.state.tr.setSelection(t);"pointer"==n&&r.setMeta("pointer",!0),e.dispatch(r)}e0.keydown=(e,t)=>{if((e.input.shiftKey=16==t.keyCode||t.shiftKey,!tt(e,t))&&(e.input.lastKeyCode=t.keyCode,e.input.lastKeyCodeTime=Date.now(),!R||!E||13!=t.keyCode))if(229!=t.keyCode&&e.domObserver.forceFlush(),!M||13!=t.keyCode||t.ctrlKey||t.altKey||t.metaKey)e.someProp("handleKeyDown",n=>n(e,t))||function(e,t){let n,r=t.keyCode,i=(n="",t.ctrlKey&&(n+="c"),t.metaKey&&(n+="m"),t.altKey&&
9(n+="a"),t.shiftKey&&(n+="s"),n);if(8==r||N&&72==r&&"c"==i)return eB(e,-1)||eF(e,-1);if(46==r&&!t.shiftKey||N&&68==r&&"c"==i)return eB(e,1)||eF(e,1);if(13==r||27==r)return!0;if(37==r||N&&66==r&&"c"==i){let t=37==r?"ltr"==ez(e,e.state.selection.from)?-1:1:-1;return eP(e,t,i)||eF(e,t)}if(39==r||N&&70==r&&"c"==i){let t=39==r?"ltr"==ez(e,e.state.selection.from)?1:-1:1;return eP(e,t,i)||eF(e,t)}else if(38==r||N&&80==r&&"c"==i)return e$(e,-1,i)||eF(e,-1);else if(40==r||N&&78==r&&"c"==i)return function(e){if(!O||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&1==t.nodeType&&0==n&&t.firstChild&&"false"==t.firstChild.contentEditable){let n=t.firstChild;eV(e,n,"true"),setTimeout(()=>eV(e,n,"false"),20)}return!1}(e)||e$(e,1,i)||eF(e,1);else if(i==(N?"m":"c")&&(66==r||73==r||89==r||90==r))return!0;return!1}(e,t)?t.preventDefault():e3(e,"key");else{let t=Date.now();e.input.lastIOSEnter=t,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==t&&(e.someProp("handleKeyDown",t=>t(e,y(13,"Enter"))),e.input.lastIOSEnter=0)},200)}},e0.keyup=(e,t)=>{16==t.keyCode&&(e.input.shiftKey=!1)},e0.keypress=(e,t)=>{if(tt(e,t)||!t.charCode||t.ctrlKey&&!t.altKey||N&&t.metaKey)return;if(e.someProp("handleKeyPress",n=>n(e,t)))return void t.preventDefault();let n=e.state.selection;if(!(n instanceof r.U3)||!n.$from.sameParent(n.$to)){let r=String.fromCharCode(t.charCode),i=()=>e.state.tr.insertText(r).scrollIntoView();/[\r\n]/.test(r)||e.someProp("handleTextInput",t=>t(e,n.$from.pos,n.$to.pos,r,i))||e.dispatch(i()),t.preventDefault()}};let e7=N?"metaKey":"ctrlKey";eQ.mousedown=(e,t)=>{var n;let i,o;e.input.shiftKey=t.shiftKey;let s=to(e),a=Date.now(),l="singleClick";a-e.input.lastClick.time<500&&(i=(n=e.input.lastClick).x-t.clientX)*i+(o=n.y-t.clientY)*o<100&&!t[e7]&&e.input.lastClick.button==t.button&&("singleClick"==e.input.lastClick.type?l="doubleClick":"doubleClick"==e.input.lastClick.type&&(l="tripleClick")),e.input.lastClick={time:a,x:t.clientX,y:t.clientY,type:l,button:t.button};let c=e.posAtCoords(e6(t));c&&("singleClick"==l?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new te(e,c,t,!!s)):("doubleClick"==l?function(e,t,n,r){return e9(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",n=>n(e,t,r))}:function(e,t,n,i){return e9(e,"handleTripleClickOn",t,n,i)||e.someProp("handleTripleClick",n=>n(e,t,i))||function(e,t,n){if(0!=n.button)return!1;let i=e.state.doc;if(-1==t)return!!i.inlineContent&&(e8(e,r.U3.create(i,0,i.content.size),"pointer"),!0);let o=i.resolve(t);for(let t=o.depth+1;t>0;t--){let n=t>o.depth?o.nodeAfter:o.node(t),s=o.before(t);if(n.inlineContent)e8(e,r.U3.create(i,s+1,s+1+n.content.size),"pointer");else{if(!r.nh.isSelectable(n))continue;e8(e,r.nh.create(i,s),"pointer")}return!0}}(e,n,i)})(e,c.pos,c.inside,t)?t.preventDefault():e3(e,"pointer"))};class te{constructor(e,t,n,i){let o,s;if(this.view=e,this.pos=t,this.event=n,this.flushed=i,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!n[e7],this.allowDefault=n.shiftKey,t.inside>-1)o=e.state.doc.nodeAt(t.inside),s=t.inside;else{let n=e.state.doc.resolve(t.pos);o=n.parent,s=n.depth?n.before():0}let a=i?null:n.target,l=a?e.docView.nearestDesc(a,!0):null;this.target=l&&1==l.nodeDOM.nodeType?l.nodeDOM:null;let{selection:c}=e.state;(0==n.button&&o.type.spec.draggable&&!1!==o.type.spec.selectable||c instanceof r.nh&&c.from<=s&&c.to>s)&&(this.mightDrag={node:o,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&D&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),e3(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>ew(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;if(this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(e6(e))),this.updateAllowDefault(e),this.allowDefault||!t)e3(this.view,"pointer");else{var n,i,o,s;(n=this.view,i=t.pos,o=t.inside,s=this.selectNode,e9(n,"handleClickOn",i,o,e)||n.someProp("handleClick",t=>t(n,i,e))||(s?function(e,t){if(-1==t)return!1;let n=e.state.selection,i,o;n instanceof r.nh&&(i=n.node);let s=e.state.doc.resolve(t);for(let e=s.depth+1;e>0;e--){let t=e>s.depth?s.nodeAfter:s.node(e);if(r.nh.isSelectable(t)){o=i&&n.$from.depth>0&&e>=n.$from.depth&&s.before(n.$from.depth+1)==n.$from.pos?s.before(n.$from.depth):s.before(e);break}}
9return null!=o&&(e8(e,r.nh.create(e.state.doc,o),"pointer"),!0)}(n,o):function(e,t){if(-1==t)return!1;let n=e.state.doc.resolve(t),i=n.nodeAfter;return!!(i&&i.isAtom&&r.nh.isSelectable(i))&&(e8(e,new r.nh(n),"pointer"),!0)}(n,o)))?e.preventDefault():0==e.button&&(this.flushed||O&&this.mightDrag&&!this.mightDrag.node.isAtom||E&&!this.view.state.selection.visible&&2>=Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to)))?(e8(this.view,r.LN.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):e3(this.view,"pointer")}}move(e){this.updateAllowDefault(e),e3(this.view,"pointer"),0==e.buttons&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}function tt(e,t){return!!e.composing||!!(O&&500>Math.abs(t.timeStamp-e.input.compositionEndedAt))&&(e.input.compositionEndedAt=-2e8,!0)}eQ.touchstart=e=>{e.input.lastTouch=Date.now(),to(e),e3(e,"pointer")},eQ.touchmove=e=>{e.input.lastTouch=Date.now(),e3(e,"pointer")},eQ.contextmenu=e=>to(e);let tn=R?5e3:-1;function tr(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>to(e),t))}function ti(e){let t;for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=((t=document.createEvent("Event")).initEvent("event",!0,!0),t.timeStamp));e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function to(e,t=!1){if(!R||!(e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),ti(e),t||e.docView&&e.docView.dirty){let n=eb(e),r=e.state.selection;return n&&!n.eq(r)?e.dispatch(e.state.tr.setSelection(n)):(e.markCursor||t)&&!r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?e.dispatch(e.state.tr.deleteSelection()):e.updateState(e.state),!0}return!1}}e0.compositionstart=e0.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof r.U3&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(e=>!1===e.type.spec.inclusive)))e.markCursor=e.state.storedMarks||n.marks(),to(e,!0),e.markCursor=null;else if(to(e,!t.selection.empty),D&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let t=e.domSelectionRange();for(let n=t.focusNode,r=t.focusOffset;n&&1==n.nodeType&&0!=r;){let t=r<0?n.lastChild:n.childNodes[r-1];if(!t)break;if(3==t.nodeType){let n=e.domSelection();n&&n.collapse(t,t.nodeValue.length);break}n=t,r=-1}}e.input.composing=!0}tr(e,tn)},e0.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,tr(e,20))};let ts=C&&A<15||M&&F<604;function ta(e,t,n,r,o){let s=eq(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",t=>t(e,o,s||i.Ji.empty)))return!0;if(!s)return!1;let a=0==s.openStart&&0==s.openEnd&&1==s.content.childCount?s.content.firstChild:null,l=a?e.state.tr.replaceSelectionWith(a,r):e.state.tr.replaceSelection(s);return e.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function tl(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}eQ.copy=e0.cut=(e,t)=>{let n=e.state.selection,r="cut"==t.type;if(n.empty)return;let i=ts?null:t.clipboardData,{dom:o,text:s}=eY(e,n.content());i?(t.preventDefault(),i.clearData(),i.setData("text/html",o.innerHTML),i.setData("text/plain",s)):function(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),i=document.createRange();i.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}(e,o),r&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},e0.paste=(e,t)=>
9{if(e.composing&&!R)return;let n=ts?null:t.clipboardData,r=e.input.shiftKey&&45!=e.input.lastKeyCode;n&&ta(e,tl(n),n.getData("text/html"),r,t)?t.preventDefault():function(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let i=e.input.shiftKey&&45!=e.input.lastKeyCode;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?ta(e,r.value,null,i,t):ta(e,r.textContent,r.innerHTML,i,t)},50)}(e,t)};class tc{constructor(e,t,n){this.slice=e,this.move=t,this.node=n}}let tu=N?"altKey":"ctrlKey";function td(e,t){let n=e.someProp("dragCopies",e=>!e(t));return null!=n?n:!t[tu]}for(let e in eQ.dragstart=(e,t)=>{let n,i=e.input.mouseDown;if(i&&i.done(),!t.dataTransfer)return;let o=e.state.selection,s=o.empty?null:e.posAtCoords(e6(t));if(s&&s.pos>=o.from&&s.pos<=(o instanceof r.nh?o.to-1:o.to));else if(i&&i.mightDrag)n=r.nh.create(e.state.doc,i.mightDrag.pos);else if(t.target&&1==t.target.nodeType){let i=e.docView.nearestDesc(t.target,!0);i&&i.node.type.spec.draggable&&i!=e.docView&&(n=r.nh.create(e.state.doc,i.posBefore))}let a=(n||e.state.selection).content(),{dom:l,text:c,slice:u}=eY(e,a);t.dataTransfer.files.length&&E&&!(T>120)||t.dataTransfer.clearData(),t.dataTransfer.setData(ts?"Text":"text/html",l.innerHTML),t.dataTransfer.effectAllowed="copyMove",ts||t.dataTransfer.setData("text/plain",c),e.dragging=new tc(u,td(e,t),n)},eQ.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},e0.dragover=e0.dragenter=(e,t)=>t.preventDefault(),e0.drop=(e,t)=>{let n=e.dragging;if(e.dragging=null,!t.dataTransfer)return;let s=e.posAtCoords(e6(t));if(!s)return;let a=e.state.doc.resolve(s.pos),l=n&&n.slice;l?e.someProp("transformPasted",t=>{l=t(l,e,!1)}):l=eq(e,tl(t.dataTransfer),ts?null:t.dataTransfer.getData("text/html"),!1,a);let c=!!(n&&td(e,t));if(e.someProp("handleDrop",n=>n(e,t,l||i.Ji.empty,c)))return void t.preventDefault();if(!l)return;t.preventDefault();let u=l?(0,o.Um)(e.state.doc,a.pos,l):a.pos;null==u&&(u=a.pos);let d=e.state.tr;if(c){let{node:e}=n;e?e.replace(d):d.deleteSelection()}let h=d.mapping.map(u),f=0==l.openStart&&0==l.openEnd&&1==l.content.childCount,p=d.doc;if(f?d.replaceRangeWith(h,h,l.content.firstChild):d.replaceRange(h,h,l),d.doc.eq(p))return;let m=d.doc.resolve(h);if(f&&r.nh.isSelectable(l.content.firstChild)&&m.nodeAfter&&m.nodeAfter.sameMarkup(l.content.firstChild))d.setSelection(new r.nh(m));else{let t=d.mapping.map(u);d.mapping.maps[d.mapping.maps.length-1].forEach((e,n,r,i)=>t=i),d.setSelection(eE(e,m,d.doc.resolve(t)))}e.focus(),e.dispatch(d.setMeta("uiEvent","drop"))},eQ.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&ew(e)},20))},eQ.blur=(e,t)=>{e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),t.relatedTarget&&e.dom.contains(t.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)},eQ.beforeinput=(e,t)=>{if(E&&R&&"deleteContentBackward"==t.inputType){e.domObserver.flushSoon();let{domChangeCount:t}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=t||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",t=>t(e,y(8,"Backspace")))))return;let{$cursor:n}=e.state.selection;n&&n.pos>0&&e.dispatch(e.state.tr.delete(n.pos-1,n.pos).scrollIntoView())},50)}},e0)eQ[e]=e0[e];function th(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class tf{constructor(e,t){this.toDOM=e,this.spec=t||tv,this.side=this.spec.side||0}map(e,t,n,r){let{pos:i,deleted:o}=e.mapResult(t.from+r,this.side<0?-1:1);return o?null:new tg(i-n,i-n,this)}valid(){return!0}eq(e){return this==e||e instanceof tf&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&th(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class tp{constructor(e,t){this.attrs=e,this.spec=t||tv}map(e,t,n,r){let i=e.map(t.from+r,this.spec.inclusiveStart?-1:1)-n,o=e.map(t.to+r,this.spec.inclusiveEnd?1:-1)-n;return i>=o?null:new tg(i,o,this)}valid(e,t){return t.from<t.to}eq(e){return this==e||e instanceof tp&&th(this.attrs,e.attrs)&&th(this.spec,e.spec)}static is(e){return e.type instanceof tp}
vendor: 4,374 bytes, line 9
9destroy(){}}class tm{constructor(e,t){this.attrs=e,this.spec=t||tv}map(e,t,n,r){let i=e.mapResult(t.from+r,1);if(i.deleted)return null;let o=e.mapResult(t.to+r,-1);return o.deleted||o.pos<=i.pos?null:new tg(i.pos-n,o.pos-n,this)}valid(e,t){let{index:n,offset:r}=e.content.findIndex(t.from),i;return r==t.from&&!(i=e.child(n)).isText&&r+i.nodeSize==t.to}eq(e){return this==e||e instanceof tm&&th(this.attrs,e.attrs)&&th(this.spec,e.spec)}destroy(){}}class tg{constructor(e,t,n){this.from=e,this.to=t,this.type=n}copy(e,t){return new tg(e,t,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,n){return this.type.map(e,this,t,n)}static widget(e,t,n){return new tg(e,e,new tf(t,n))}static inline(e,t,n,r){return new tg(e,t,new tp(n,r))}static node(e,t,n,r){return new tg(e,t,new tm(n,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof tp}get widget(){return this.type instanceof tf}}let ty=[],tv={};class tb{constructor(e,t){this.local=e.length?e:ty,this.children=t.length?t:ty}static create(e,t){return t.length?tA(t,e,0,tv):t_}find(e,t,n){let r=[];return this.findInner(null==e?0:e,null==t?1e9:t,r,0,n),r}findInner(e,t,n,r,i){for(let o=0;o<this.local.length;o++){let s=this.local[o];s.from<=t&&s.to>=e&&(!i||i(s.spec))&&n.push(s.copy(s.from+r,s.to+r))}for(let o=0;o<this.children.length;o+=3)if(this.children[o]<t&&this.children[o+1]>e){let s=this.children[o]+1;this.children[o+2].findInner(e-s,t-s,n,r+s,i)}}map(e,t,n){return this==t_||0==e.maps.length?this:this.mapInner(e,t,0,0,n||tv)}mapInner(e,t,n,r,i){let o;for(let s=0;s<this.local.length;s++){let a=this.local[s].map(e,n,r);a&&a.type.valid(t,a)?(o||(o=[])).push(a):i.onRemove&&i.onRemove(this.local[s].spec)}return this.children.length?function(e,t,n,r,i,o,s){let a=e.slice();for(let e=0,t=o;e<n.maps.length;e++){let r=0;n.maps[e].forEach((e,n,i,o)=>{let s=o-i-(n-e);for(let i=0;i<a.length;i+=3){let o=a[i+1];if(o<0||e>o+t-r)continue;let l=a[i]+t-r;n>=l?a[i+1]=e<=l?-2:-1:e>=t&&s&&(a[i]+=s,a[i+1]+=s)}r+=s}),t=n.maps[e].map(t,-1)}let l=!1;for(let t=0;t<a.length;t+=3)if(a[t+1]<0){if(-2==a[t+1]){l=!0,a[t+1]=-1;continue}let c=n.map(e[t]+o),u=c-i;if(u<0||u>=r.content.size){l=!0;continue}let d=n.map(e[t+1]+o,-1)-i,{index:h,offset:f}=r.content.findIndex(u),p=r.maybeChild(h);if(p&&f==u&&f+p.nodeSize==d){let r=a[t+2].mapInner(n,p,c+1,e[t]+o+1,s);r!=t_?(a[t]=u,a[t+1]=d,a[t+2]=r):(a[t+1]=-2,l=!0)}else l=!0}if(l){let l=tA(function(e,t,n,r,i,o,s){for(let a=0;a<e.length;a+=3)-1==e[a+1]&&function e(t,o){for(let e=0;e<t.local.length;e++){let a=t.local[e].map(r,i,o);a?n.push(a):s.onRemove&&s.onRemove(t.local[e].spec)}for(let n=0;n<t.children.length;n+=3)e(t.children[n+2],t.children[n]+o+1)}(e[a+2],t[a]+o+1);return n}(a,e,t,n,i,o,s),r,0,s);t=l.local;for(let e=0;e<a.length;e+=3)a[e+1]<0&&(a.splice(e,3),e-=3);for(let e=0,t=0;e<l.children.length;e+=3){let n=l.children[e];for(;t<a.length&&a[t]<n;)t+=3;a.splice(t,0,l.children[e],l.children[e+1],l.children[e+2])}}return new tb(t.sort(tD),a)}(this.children,o||[],e,t,n,r,i):o?new tb(o.sort(tD),ty):t_}add(e,t){return t.length?this==t_?tb.create(e,t):this.addInner(e,t,0):this}addInner(e,t,n){let r,i=0;e.forEach((e,o)=>{let s=o+n,a;if(a=tk(t,e,s)){for(r||(r=this.children.slice());i<r.length&&r[i]<o;)i+=3;r[i]==o?r[i+2]=r[i+2].addInner(e,a,s+1):r.splice(i,0,o,o+e.nodeSize,tA(a,e,s+1,tv)),i+=3}});let o=tx(i?tC(t):t,-n);for(let t=0;t<o.length;t++)o[t].type.valid(e,o[t])||o.splice(t--,1);return new tb(o.length?this.local.concat(o).sort(tD):this.local,r||this.children)}remove(e){return 0==e.length||this==t_?this:this.removeInner(e,0)}removeInner(e,t){let n=this.children,r=this.local;for(let r=0;r<n.length;r+=3){let i,o=n[r]+t,s=n[r+1]+t;for(let t=0,n;t<e.length;t++)(n=e[t])&&n.from>o&&n.to<s&&(e[t]=null,(i||(i=[])).push(n));if(!i)continue;n==this.children&&(n=this.children.slice());let a=n[r+2].removeInner(i,o+1);a!=t_?n[r+2]=a:(n.splice(r,3),r-=3)}if(r.length){for(let n=0,i;n<e.length;n++)if(i=e[n])for(let e=0;e<r.length;e++)r[e].eq(i,t)&&(r==this.local&&(r=this.local.slice()),r.splice(e--,1))}return n==this.children&&r==this.local?this:r.length||n.length?new tb(r,n):t_}forChild(e,t){let n,r;if(this==t_)return this;if(t.isLeaf)return tb.empty;for(let t=0;t<this.children.length;t+=3)if(this.children[t]>=e){this.children[t]==e&&(n=this.children[t+2]);break}let i=e+1,o=i+t.content.size;
vendor: 4,184 bytes, line 9
9for(let e=0;e<this.local.length;e++){let t=this.local[e];if(t.from<o&&t.to>i&&t.type instanceof tp){let e=Math.max(i,t.from)-i,n=Math.min(o,t.to)-i;e<n&&(r||(r=[])).push(t.copy(e,n))}}if(r){let e=new tb(r.sort(tD),ty);return n?new tw([e,n]):e}return n||t_}eq(e){if(this==e)return!0;if(!(e instanceof tb)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(let t=0;t<this.children.length;t+=3)if(this.children[t]!=e.children[t]||this.children[t+1]!=e.children[t+1]||!this.children[t+2].eq(e.children[t+2]))return!1;return!0}locals(e){return tS(this.localsInner(e))}localsInner(e){if(this==t_)return ty;if(e.inlineContent||!this.local.some(tp.is))return this.local;let t=[];for(let e=0;e<this.local.length;e++)this.local[e].type instanceof tp||t.push(this.local[e]);return t}forEachSet(e){e(this)}}tb.empty=new tb([],[]),tb.removeOverlap=tS;let t_=tb.empty;class tw{constructor(e){this.members=e}map(e,t){let n=this.members.map(n=>n.map(e,t,tv));return tw.from(n)}forChild(e,t){if(t.isLeaf)return tb.empty;let n=[];for(let r=0;r<this.members.length;r++){let i=this.members[r].forChild(e,t);i!=t_&&(i instanceof tw?n=n.concat(i.members):n.push(i))}return tw.from(n)}eq(e){if(!(e instanceof tw)||e.members.length!=this.members.length)return!1;for(let t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0}locals(e){let t,n=!0;for(let r=0;r<this.members.length;r++){let i=this.members[r].localsInner(e);if(i.length)if(t){n&&(t=t.slice(),n=!1);for(let e=0;e<i.length;e++)t.push(i[e])}else t=i}return t?tS(n?t:t.sort(tD)):ty}static from(e){switch(e.length){case 0:return t_;case 1:return e[0];default:return new tw(e.every(e=>e instanceof tb)?e:e.reduce((e,t)=>e.concat(t instanceof tb?t:t.members),[]))}}forEachSet(e){for(let t=0;t<this.members.length;t++)this.members[t].forEachSet(e)}}function tx(e,t){if(!t||!e.length)return e;let n=[];for(let r=0;r<e.length;r++){let i=e[r];n.push(new tg(i.from+t,i.to+t,i.type))}return n}function tk(e,t,n){if(t.isLeaf)return null;let r=n+t.nodeSize,i=null;for(let t=0,o;t<e.length;t++)(o=e[t])&&o.from>n&&o.to<r&&((i||(i=[])).push(o),e[t]=null);return i}function tC(e){let t=[];for(let n=0;n<e.length;n++)null!=e[n]&&t.push(e[n]);return t}function tA(e,t,n,r){let i=[],o=!1;t.forEach((t,s)=>{let a=tk(e,t,s+n);if(a){o=!0;let e=tA(a,t,n+s+1,r);e!=t_&&i.push(s,s+t.nodeSize,e)}});let s=tx(o?tC(e):e,-n).sort(tD);for(let e=0;e<s.length;e++)s[e].type.valid(t,s[e])||(r.onRemove&&r.onRemove(s[e].spec),s.splice(e--,1));return s.length||i.length?new tb(s,i):t_}function tD(e,t){return e.from-t.from||e.to-t.to}function tS(e){let t=e;for(let n=0;n<t.length-1;n++){let r=t[n];if(r.from!=r.to)for(let i=n+1;i<t.length;i++){let o=t[i];if(o.from==r.from){o.to!=r.to&&(t==e&&(t=e.slice()),t[i]=o.copy(o.from,r.to),tE(t,i+1,o.copy(r.to,o.to)));continue}o.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,o.from),tE(t,i,r.copy(o.from,r.to)));break}}return t}function tE(e,t,n){for(;t<e.length&&tD(n,e[t])>0;)t++;e.splice(t,0,n)}function tT(e){let t=[];return e.someProp("decorations",n=>{let r=n(e.state);r&&r!=t_&&t.push(r)}),e.cursorWrapper&&t.push(tb.create(e.state.doc,[e.cursorWrapper.deco])),tw.from(t)}let tO={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},tM=C&&A<=11;class tN{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class tP{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new tN,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(e=>{for(let t=0;t<e.length;t++)this.queue.push(e[t]);C&&A<=11&&e.some(e=>
9"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():this.flush()}),tM&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,tO)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;t<e.length;t++)this.queue.push(e[t]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(eT(this.view)){if(this.suppressingSelectionUpdates)return ew(this.view);if(C&&A<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&d(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t=new Set,n;for(let n=e.focusNode;n;n=a(n))t.add(n);for(let r=e.anchorNode;r;r=a(r))if(t.has(r)){n=r;break}let r=n&&this.view.docView.nearestDesc(n);if(r&&r.ignoreMutation({type:"selection",target:3==n.nodeType?n.parentNode:n}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){var e;let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let i=t.domSelectionRange(),o=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(i)&&eT(t)&&!this.ignoreSelectionChange(i),s=-1,a=-1,l=!1,c=[];if(t.editable)for(let e=0;e<n.length;e++){let t=this.registerMutation(n[e],c);t&&(s=s<0?t.from:Math.min(t.from,s),a=a<0?t.to:Math.max(t.to,a),t.typeOver&&(l=!0))}if(D&&c.length){let e=c.filter(e=>"BR"==e.nodeName);if(2==e.length){let[t,n]=e;t.parentNode&&t.parentNode.parentNode==n.parentNode?n.remove():t.remove()}else{let{focusNode:n}=this.currentSelection;for(let r of e){let e=r.parentNode;e&&"LI"==e.nodeName&&(!n||function(e,t){for(let n=t.parentNode;n&&n!=e.dom;n=n.parentNode){let t=e.docView.nearestDesc(n,!0);if(t&&t.node.isBlock)return n}return null}(t,n)!=e)&&r.remove()}}}let u=null;s<0&&o&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)<Date.now()-300&&g(i)&&(u=eb(t))&&u.eq(r.LN.near(t.state.doc.resolve(0),1))?(t.input.lastFocus=0,ew(t),this.currentSelection.set(i),t.scrollToSelection()):(s>-1||o)&&(s>-1&&(t.docView.markDirty(s,a),e=t,!tR.has(e)&&(tR.set(e,null),-1!==["normal","nowrap","pre-line"].indexOf(getComputedStyle(e.dom).whiteSpace))&&(e.requiresGeckoHackNode=D,tI||(console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),tI=!0))),this.handleDOMChange(s,a,l,c),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(i)||ew(t),this.currentSelection.set(i))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let n=this.view.docView.nearestDesc(e.target);if("attributes"==e.type&&(n==this.view.docView||"contenteditable"==e.attributeName||"style"==e.attributeName&&!e.oldValue&&!e.target.getAttribute("style"))||
9!n||n.ignoreMutation(e))return null;if("childList"==e.type){for(let n=0;n<e.addedNodes.length;n++){let r=e.addedNodes[n];t.push(r),3==r.nodeType&&(this.lastChangedTextNode=r)}if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};let r=e.previousSibling,i=e.nextSibling;if(C&&A<=11&&e.addedNodes.length)for(let t=0;t<e.addedNodes.length;t++){let{previousSibling:n,nextSibling:o}=e.addedNodes[t];(!n||0>Array.prototype.indexOf.call(e.addedNodes,n))&&(r=n),(!o||0>Array.prototype.indexOf.call(e.addedNodes,o))&&(i=o)}let o=r&&r.parentNode==e.target?s(r)+1:0,a=n.localPosFromDOM(e.target,o,-1),l=i&&i.parentNode==e.target?s(i):e.target.childNodes.length;return{from:a,to:n.localPosFromDOM(e.target,l,1)}}return"attributes"==e.type?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:(this.lastChangedTextNode=e.target,{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let tR=new WeakMap,tI=!1;function tF(e,t){let n=t.startContainer,r=t.startOffset,i=t.endContainer,o=t.endOffset,s=e.domAtPos(e.state.selection.anchor);return d(s.node,s.offset,i,o)&&([n,r,i,o]=[i,o,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}}function tL(e){let t=e.pmViewDesc;if(t)return t.parseRule();if("BR"==e.nodeName&&e.parentNode){if(O&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let e=document.createElement("div");return e.appendChild(document.createElement("li")),{skip:e}}else if(e.parentNode.lastChild==e||O&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if("IMG"==e.nodeName&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}let tj=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function tz(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:eE(e,t.resolve(n.anchor),t.resolve(n.head))}function t$(e,t,n){let r=e.depth,i=t?e.end():e.pos;for(;r>0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,i++,t=!1;if(n){let t=e.node(r).maybeChild(e.indexAfter(r));for(;t&&!t.isLeaf;)t=t.firstChild,i++}return i}function tB(e){if(2!=e.length)return!1;let t=e.charCodeAt(0),n=e.charCodeAt(1);return t>=56320&&t<=57343&&n>=55296&&n<=56319}class tV{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new e2,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(tU),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):"function"==typeof e?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=tH(this),tq(this),this.nodeViews=tW(this),this.docView=eo(this.state.doc,tY(this),tT(this),this.dom,this),this.domObserver=new tP(this,(e,t,n,o)=>(function(e,t,n,o,s){let a,l,c,u,d=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let t=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,n=eb(e,t);
9if(n&&!e.state.selection.eq(n)){if(E&&R&&13===e.input.lastKeyCode&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp("handleKeyDown",t=>t(e,y(13,"Enter"))))return;let r=e.state.tr.setSelection(n);"pointer"==t?r.setMeta("pointer",!0):"key"==t&&r.scrollIntoView(),d&&r.setMeta("composition",d),e.dispatch(r)}return}let h=e.state.doc.resolve(t),f=h.sharedDepth(n);t=h.before(f+1),n=e.state.doc.resolve(n).after(f+1);let p=e.state.selection,m=function(e,t,n){let r,{node:o,fromOffset:s,toOffset:a,from:l,to:c}=e.docView.parseRange(t,n),u=e.domSelectionRange(),d=u.anchorNode;if(d&&e.dom.contains(1==d.nodeType?d:d.parentNode)&&(r=[{node:d,offset:u.anchorOffset}],g(u)||r.push({node:u.focusNode,offset:u.focusOffset})),E&&8===e.input.lastKeyCode)for(let e=a;e>s;e--){let t=o.childNodes[e-1],n=t.pmViewDesc;if("BR"==t.nodeName&&!n){a=e;break}if(!n||n.size)break}let h=e.state.doc,f=e.someProp("domParser")||i.S4.fromSchema(e.state.schema),p=h.resolve(l),m=null,y=f.parse(o,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:s,to:a,preserveWhitespace:"pre"!=p.parent.type.whitespace||"full",findPositions:r,ruleFromNode:tL,context:p});if(r&&null!=r[0].pos){let e=r[0].pos,t=r[1]&&r[1].pos;null==t&&(t=e),m={anchor:e+l,head:t+l}}return{doc:y,sel:m,from:l,to:c}}(e,t,n),v=e.state.doc,b=v.slice(m.from,m.to);8===e.input.lastKeyCode&&Date.now()-100<e.input.lastKeyCodeTime?(a=e.state.selection.to,l="end"):(a=e.state.selection.from,l="start"),e.input.lastKeyCode=null;let _=function(e,t,n,r,i){let o=e.findDiffStart(t,n);if(null==o)return null;let{a:s,b:a}=e.findDiffEnd(t,n+e.size,n+t.size);if("end"==i){let e=Math.max(0,o-Math.min(s,a));r-=s+e-o}if(s<o&&e.size<t.size){let e=r<=o&&r>=s?o-r:0;(o-=e)&&o<t.size&&tB(t.textBetween(o-1,o+1))&&(o+=e?1:-1),a=o+(a-s),s=o}else if(a<o){let t=r<=o&&r>=a?o-r:0;(o-=t)&&o<e.size&&tB(e.textBetween(o-1,o+1))&&(o+=t?1:-1),s=o+(s-a),a=o}return{start:o,endA:s,endB:a}}(b.content,m.doc.content,m.from,a,l);if(_&&e.input.domChangeCount++,(M&&e.input.lastIOSEnter>Date.now()-225||R)&&s.some(e=>1==e.nodeType&&!tj.test(e.nodeName))&&(!_||_.endA>=_.endB)&&e.someProp("handleKeyDown",t=>t(e,y(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!_)if(o&&p instanceof r.U3&&!p.empty&&p.$head.sameParent(p.$anchor)&&!e.composing&&!(m.sel&&m.sel.anchor!=m.sel.head))_={start:p.from,endA:p.to,endB:p.to};else{if(m.sel){let t=tz(e,e.state.doc,m.sel);if(t&&!t.eq(e.state.selection)){let n=e.state.tr.setSelection(t);d&&n.setMeta("composition",d),e.dispatch(n)}}return}e.state.selection.from<e.state.selection.to&&_.start==_.endB&&e.state.selection instanceof r.U3&&(_.start>e.state.selection.from&&_.start<=e.state.selection.from+2&&e.state.selection.from>=m.from?_.start=e.state.selection.from:_.endA<e.state.selection.to&&_.endA>=e.state.selection.to-2&&e.state.selection.to<=m.to&&(_.endB+=e.state.selection.to-_.endA,_.endA=e.state.selection.to)),C&&A<=11&&_.endB==_.start+1&&_.endA==_.start&&_.start>m.from&&"  "==m.doc.textBetween(_.start-m.from-1,_.start-m.from+1)&&(_.start--,_.endA--,_.endB--);let w=m.doc.resolveNoCache(_.start-m.from),x=m.doc.resolveNoCache(_.endB-m.from),k=v.resolve(_.start),D=w.sameParent(x)&&w.parent.inlineContent&&k.end()>=_.endA;if((M&&e.input.lastIOSEnter>Date.now()-225&&(!D||s.some(e=>"DIV"==e.nodeName||"P"==e.nodeName))||!D&&w.pos<m.doc.content.size&&(!w.sameParent(x)||!w.parent.inlineContent)&&!/\S/.test(m.doc.textBetween(w.pos,x.pos,"",""))&&(c=r.LN.findFrom(m.doc.resolve(w.pos+1),1,!0))&&c.head>w.pos)&&e.someProp("handleKeyDown",t=>t(e,y(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>_.start&&function(e,t,n,r,i){if(n-t<=i.pos-r.pos||t$(r,!0,!1)<i.pos)return!1;let o=e.resolve(t);if(!r.parent.isTextblock){let e=o.nodeAfter;return null!=e&&n==t+e.nodeSize}if(o.parentOffset<o.parent.content.size||!o.parent.isTextblock)return!1;let s=e.resolve(t$(o,!0,!0));return!(!s.parent.isTextblock||s.pos>n||t$(s,!0,!1)<n)&&r.parent.content.cut(r.parentOffset).eq(s.parent.content)}(v,_.start,_.endA,w,x)&&e.someProp("handleKeyDown",t=>t(e,y(8,"Backspace")))){R&&E&&e.domObserver.suppressSelectionUpdates();return}
9E&&_.endB==_.start&&(e.input.lastChromeDelete=Date.now()),R&&!D&&w.start()!=x.start()&&0==x.parentOffset&&w.depth==x.depth&&m.sel&&m.sel.anchor==m.sel.head&&m.sel.head==_.endA&&(_.endB-=2,x=m.doc.resolveNoCache(_.endB-m.from),setTimeout(()=>{e.someProp("handleKeyDown",function(t){return t(e,y(13,"Enter"))})},20));let S=_.start,T=_.endA,O=t=>{let n=t||e.state.tr.replace(S,T,m.doc.slice(_.start-m.from,_.endB-m.from));if(m.sel){let t=tz(e,n.doc,m.sel);t&&!(E&&e.composing&&t.empty&&(_.start!=_.endB||e.input.lastChromeDelete<Date.now()-100)&&(t.head==S||t.head==n.mapping.map(T)-1)||C&&t.empty&&t.head==S)&&n.setSelection(t)}return d&&n.setMeta("composition",d),n.scrollIntoView()};if(D){if(w.pos==x.pos){C&&A<=11&&0==w.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>ew(e),20));let t=O(e.state.tr.delete(S,T)),n=v.resolve(_.start).marksAcross(v.resolve(_.endA));n&&t.ensureMarks(n),e.dispatch(t)}else if(_.endA==_.endB&&(u=function(e,t){let n=e.firstChild.marks,r=t.firstChild.marks,o=n,s=r,a,l,c;for(let e=0;e<r.length;e++)o=r[e].removeFromSet(o);for(let e=0;e<n.length;e++)s=n[e].removeFromSet(s);if(1==o.length&&0==s.length)l=o[0],a="add",c=e=>e.mark(l.addToSet(e.marks));else{if(0!=o.length||1!=s.length)return null;l=s[0],a="remove",c=e=>e.mark(l.removeFromSet(e.marks))}let u=[];for(let e=0;e<t.childCount;e++)u.push(c(t.child(e)));if(i.FK.from(u).eq(e))return{mark:l,type:a}}(w.parent.content.cut(w.parentOffset,x.parentOffset),k.parent.content.cut(k.parentOffset,_.endA-k.start())))){let t=O(e.state.tr);"add"==u.type?t.addMark(S,T,u.mark):t.removeMark(S,T,u.mark),e.dispatch(t)}else if(w.parent.child(w.index()).isText&&w.index()==x.index()-!x.textOffset){let t=w.parent.textBetween(w.parentOffset,x.parentOffset),n=()=>O(e.state.tr.insertText(t,S,T));e.someProp("handleTextInput",r=>r(e,S,T,t,n))||e.dispatch(n())}}else e.dispatch(O())})(this,e,t,n,o)),this.domObserver.start();var n=this;for(let e in eQ){let t=eQ[e];n.dom.addEventListener(e,n.input.eventHandlers[e]=e=>{!function(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||11==n.nodeType||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}(n,e)||e5(n,e)||!n.editable&&e.type in e0||t(n,e)},e1[e]?{passive:!0}:void 0)}O&&n.dom.addEventListener("input",()=>null),e4(n),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;for(let t in this._props={},e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&e4(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(tU),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let e in this._props)t[e]=this._props[e];for(let n in t.state=this.state,e)t[n]=e[n];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){var n,r,i;let o=this.state,a=!1,l=!1;e.storedMarks&&this.composing&&(ti(this),l=!0),this.state=e;let c=o.plugins!=e.plugins||this._props.plugins!=t.plugins;if(c||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let e=tW(this);(function(e,t){let n=0,r=0;for(let r in e){if(e[r]!=t[r])return!0;n++}for(let e in t)r++;return n!=r})(e,this.nodeViews)&&(this.nodeViews=e,a=!0)}(c||t.handleDOMEvents!=this._props.handleDOMEvents)&&e4(this),this.editable=tH(this),tq(this);let u=tT(this),h=tY(this),f=o.plugins==e.plugins||o.doc.eq(e.doc)?e.scrollToSelection>o.scrollToSelection?"to selection":"preserve":"reset",g=a||!this.docView.matchesNode(e.doc,h,u);(g||!e.selection.eq(o.selection))&&(l=!0);let y="preserve"==f&&l&&null==this.dom.style.overflowAnchor&&function(e){let t,n,r=e.dom.getBoundingClientRect(),i=Math.max(0,r.top);for(let o=(r.left+r.right)/2,s=i+1;s<Math.min(innerHeight,r.bottom);s+=5){let r=e.root.elementFromPoint(o,s);if(!r||r==e.dom||!e.dom.contains(r))continue;let a=r.getBoundingClientRect();if(a.top>=i-20){t=r,n=a.top;break}}return{refDOM:t,refTop:n,stack:z(e.dom)}}(this);if(l){let t,n,l;this.domObserver.stop();let c=g&&(C||E)&&!this.composing&&!o.selection.empty&&!e.selection.empty&&(r=o.selection,i=e.selection,l=Math.min(r.$anchor.sharedDepth(r.head),i.$anchor.sharedDepth(i.head)),r.$anchor.start(l)!=i.$anchor.start(l));if(g){let t=E?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=function(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=function(e,t){for(;;){if(3==e.nodeType&&t)return e;if(1==e.nodeType&&t>0){if("false"==e.contentEditable)return null;t=p(e=e.childNodes[t-1])}else{if(!e.parentNode||m(e))return null;t=s(e),e=e.parentNode}}}(t.focusNode,t.focusOffset),r=function(e,t){for(;;){if(3==e.nodeType&&t<e.nodeValue.length)return e;if(1==e.nodeType&&t<e.childNodes.length){if("false"==e.contentEditable)return null;e=e.childNodes[t],t=0}else{if(!e.parentNode||m(e))return null;t=s(e)+1,e=e.parentNode}}}(t.focusNode,t.focusOffset);
9if(n&&r&&n!=r){let t=r.pmViewDesc,i=e.domObserver.lastChangedTextNode;if(n==i||r==i)return i;if(!t||!t.isText(r.nodeValue))return r;if(e.input.compositionNode==r){let e=n.pmViewDesc;if(!(!e||!e.isText(n.nodeValue)))return r}}return n||r}(this)),(a||!this.docView.update(e.doc,h,u,this))&&(this.docView.updateOuterDeco(h),this.docView.destroy(),this.docView=eo(e.doc,h,u,this.dom,this)),t&&!this.trackWrites&&(c=!0)}c||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&(t=this.docView.domFromPos(this.state.selection.anchor,0),n=this.domSelectionRange(),d(t.node,t.offset,n.anchorNode,n.anchorOffset)))?ew(this,c):(eD(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(o),(null==(n=this.dragging)?void 0:n.node)&&!o.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,o),"reset"==f?this.dom.scrollTop=0:"to selection"==f?this.scrollToSelection():y&&function({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;$(n,0==r?0:r-t)}(y)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(e&&this.dom.contains(1==e.nodeType?e:e.parentNode))if(this.someProp("handleScrollToSelection",e=>e(this)));else if(this.state.selection instanceof r.nh){let t=this.docView.domAfterPos(this.state.selection.from);1==t.nodeType&&j(this,t.getBoundingClientRect(),e)}else j(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(e&&e.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(let t=0;t<this.pluginViews.length;t++){let n=this.pluginViews[t];n.update&&n.update(this,e)}else{this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let e=0;e<this.directPlugins.length;e++){let t=this.directPlugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}for(let e=0;e<this.state.plugins.length;e++){let t=this.state.plugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}}}updateDraggedNode(e,t){let n=e.node,i=-1;if(this.state.doc.nodeAt(n.from)==n.node)i=n.from;else{let e=n.from+(this.state.doc.content.size-t.doc.content.size);(e>0&&this.state.doc.nodeAt(e))==n.node&&(i=e)}this.dragging=new tc(e.slice,e.move,i<0?void 0:r.nh.create(this.state.doc,i))}someProp(e,t){let n=this._props&&this._props[e],r;if(null!=n&&(r=t?t(n):n))return r;for(let n=0;n<this.directPlugins.length;n++){let i=this.directPlugins[n].props[e];if(null!=i&&(r=t?t(i):i))return r}let i=this.state.plugins;if(i)for(let n=0;n<i.length;n++){let o=i[n].props[e];if(null!=o&&(r=t?t(o):o))return r}}hasFocus(){if(C){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if("false"==e.contentEditable)return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&function(e){if(e.setActive)return e.setActive();if(B)return e.focus(B);let t=z(e);e.focus(null==B?{get preventScroll(){return B={preventScroll:!0},!0}}:void 0),B||(B=!1,$(t,0))}(this.dom),ew(this),this.domObserver.start()}get root(){let e=this._root;if(null==e){for(let e=this.dom.parentNode;e;e=e.parentNode)if(9==e.nodeType||11==e.nodeType&&e.host)return e.getSelection||(Object.getPrototypeOf(e).getSelection=()=>e.ownerDocument.getSelection()),this._root=e}return e||document}updateRoot(){this._root=null}posAtCoords(e){return function(e,t){var n;let r,i,o=e.dom.ownerDocument,s,l=0,u=function(e,t,n){if(e.caretPositionFromPoint)try{let r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,offset:Math.min(p(r.offsetNode),r.offset)}}catch(e){}if(e.caretRangeFromPoint){let r=e.caretRangeFromPoint(t,n);if(r)return{node:r.startContainer,offset:Math.min(p(r.startContainer),r.startOffset)}}}(o,t.left,t.top);u&&({node:s,offset:l}=u);let d=(e.root.elementFromPoint?e.root:o).elementFromPoint(t.left,t.top);if(!d||!e.dom.contains(1!=d.nodeType?d.parentNode:d)){let n=e.dom.getBoundingClientRect();if(!V(t,n)||!(d=function e(t,n,r){let i=t.childNodes.length;if(i&&r.top<r.bottom)for(let o=Math.max(0,Math.min(i-1,Math.floor(i*(n.top-r.top)/(r.bottom-r.top))-2)),s=o;;){let r=t.childNodes[s];if(1==r.nodeType){let t=r.getClientRects();for(let i=0;i<t.length;i++){let o=t[i];if(V(n,o))return e(r,n,o)}}if((s=(s+1)%i)==o)break}return t}(e.dom,t,n)))return null}if(O)for(let e=d;s&&e;e=a(e))e.draggable&&(s=void 0);if(d=(r=(n=d).parentNode)&&/^li$/i.test(r.nodeName)&&t.left<n.getBoundingClientRect().left?r:n,s){let n;if(D&&1==s.nodeType&&(l=Math.min(l,s.childNodes.length))<s.childNodes.length){let e=s.childNodes[l],n;"IMG"==e.nodeName&&(n=e.getBoundingClientRect()).right<=t.left&&n.bottom>t.top&&l++}I&&l&&1==s.nodeType&&1==(n=s.childNodes[l-1]).nodeType&&"false"==n.contentEditable&&n.getBoundingClientRect().top>=t.top&&l--,s==e.dom&&l==s.childNodes.length-1&&1==s.lastChild.nodeType&&t.top>
9s.lastChild.getBoundingClientRect().bottom?i=e.state.doc.content.size:(0==l||1!=s.nodeType||"BR"!=s.childNodes[l-1].nodeName)&&(i=function(e,t,n,r){let i=-1;for(let n=t,o=!1;n!=e.dom;){let t=e.docView.nearestDesc(n,!0),s;if(!t)return null;if(1==t.dom.nodeType&&(t.node.isBlock&&t.parent||!t.contentDOM)&&((s=t.dom.getBoundingClientRect()).width||s.height)&&(t.node.isBlock&&t.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(t.dom.nodeName)&&(!o&&s.left>r.left||s.top>r.top?i=t.posBefore:(!o&&s.right<r.left||s.bottom<r.top)&&(i=t.posAfter),o=!0),!t.contentDOM&&i<0&&!t.node.isText))return(t.node.isBlock?r.top<(s.top+s.bottom)/2:r.left<(s.left+s.right)/2)?t.posBefore:t.posAfter;n=t.dom.parentNode}return i>-1?i:e.docView.posFromDOM(t,n,-1)}(e,s,l,t))}null==i&&(i=function(e,t,n){let{node:r,offset:i}=function e(t,n){let r,i,o,s=2e8,a,l=0,u=n.top,d=n.top;for(let e=t.firstChild,h=0;e;e=e.nextSibling,h++){let t;if(1==e.nodeType)t=e.getClientRects();else{if(3!=e.nodeType)continue;t=c(e).getClientRects()}for(let c=0;c<t.length;c++){let f=t[c];if(f.top<=u&&f.bottom>=d){u=Math.max(f.bottom,u),d=Math.min(f.top,d);let t=f.left>n.left?f.left-n.left:f.right<n.left?n.left-f.right:0;if(t<s){o=e,s=t,a=t&&3==o.nodeType?{left:f.right<n.left?f.right:f.left,top:n.top}:n,1==e.nodeType&&t&&(l=h+ +(n.left>=(f.left+f.right)/2));continue}}else f.top>n.top&&!r&&f.left<=n.left&&f.right>=n.left&&(r=e,i={left:Math.max(f.left,Math.min(f.right,n.left)),top:f.top});!o&&(n.left>=f.right&&n.top>=f.top||n.left>=f.left&&n.top>=f.bottom)&&(l=h+1)}}return(!o&&r&&(o=r,a=i,s=0),o&&3==o.nodeType)?function(e,t){let n=e.nodeValue.length,r=document.createRange();for(let i=0;i<n;i++){r.setEnd(e,i+1),r.setStart(e,i);let n=q(r,1);if(n.top!=n.bottom&&V(t,n))return{node:e,offset:i+ +(t.left>=(n.left+n.right)/2)}}return{node:e,offset:0}}(o,a):!o||s&&1==o.nodeType?{node:t,offset:l}:e(o,a)}(t,n),o=-1;if(1==r.nodeType&&!r.firstChild){let e=r.getBoundingClientRect();o=e.left!=e.right&&n.left>(e.left+e.right)/2?1:-1}return e.docView.posFromDOM(r,i,o)}(e,d,t));let h=e.docView.nearestDesc(d,!0);return{pos:i,inside:h?h.posAtStart-h.border:-1}}(this,e)}coordsAtPos(e,t=1){return W(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,n=-1){let r=this.docView.posFromDOM(e,t,n);if(null==r)throw RangeError("DOM position not inside the editor");return r}endOfTextblock(e,t){return function(e,t,n){let r,i;return K==t&&X==n?Q:(K=t,X=n,Q="up"==n||"down"==n?(r=t.selection,i="up"==n?r.$from:r.$to,Z(e,t,()=>{let{node:t}=e.docView.domFromPos(i.pos,"up"==n?-1:1);for(;;){let n=e.docView.nearestDesc(t,!0);if(!n)break;if(n.node.isBlock){t=n.contentDOM||n.dom;break}t=n.dom.parentNode}let r=W(e,i.pos,1);for(let e=t.firstChild;e;e=e.nextSibling){let t;if(1==e.nodeType)t=e.getClientRects();else{if(3!=e.nodeType)continue;t=c(e,0,e.nodeValue.length).getClientRects()}for(let e=0;e<t.length;e++){let i=t[e];if(i.bottom>i.top+1&&("up"==n?r.top-i.top>(i.bottom-r.top)*2:i.bottom-r.bottom>(r.bottom-i.top)*2))return!1}}return!0})):function(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,o=i==r.parent.content.size,s=e.domSelection();return s?J.test(r.parent.textContent)&&s.modify?Z(e,t,()=>{let{focusNode:t,focusOffset:i,anchorNode:o,anchorOffset:a}=e.domSelectionRange(),l=s.caretBidiLevel;s.modify("move",n,"character");let c=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:u,focusOffset:d}=e.domSelectionRange(),h=u&&!c.contains(1==u.nodeType?u:u.parentNode)||t==u&&i==d;try{s.collapse(o,a),t&&(t!=o||i!=a)&&s.extend&&s.extend(t,i)}catch(e){}return null!=l&&(s.caretBidiLevel=l),h}):"left"==n||"backward"==n?!i:o:r.pos==r.start()||r.pos==r.end()}(e,t,n))}(this,t||this.state,e)}pasteHTML(e,t){return ta(this,"",e,!1,t||new ClipboardEvent("paste"))}pasteText(e,t){return ta(this,e,null,!0,t||new ClipboardEvent("paste"))}serializeForClipboard(e){return eY(this,e)}destroy(){if(this.docView){for(let e in this.domObserver.stop(),this.input.eventHandlers)this.dom.removeEventListener(e,this.input.eventHandlers[e]);clearTimeout(this.input.composingTimeout),clearTimeout(this.input.lastIOSEnterFallbackTimeout),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],tT(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,u()}}get isDestroyed(){return null==this.docView}dispatchEvent(e){!e5(this,e)&&eQ[e.type]&&(this.editable||!(e.type in e0))&&eQ[e.type](this,e)}domSelectionRange(){let e=this.domSelection();return e?O&&11===this.root.nodeType&&function(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom&&function(e,t){let n;if(t.getComposedRanges){let n=t.getComposedRanges(e.root)[0];if(n)return tF(e,n)}function r(e){e.preventDefault(),e.stopImmediatePropagation(),n=e.getTargetRanges()[0]}return e.dom.addEventListener("beforeinput",r,!0),document.execCommand("indent"),e.dom.removeEventListener("beforeinput",r,!0),n?tF(e,n):null}
9(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}function tY(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",n=>{if("function"==typeof n&&(n=n(e.state)),n)for(let e in n)"class"==e?t.class+=" "+n[e]:"style"==e?t.style=(t.style?t.style+";":"")+n[e]:t[e]||"contenteditable"==e||"nodeName"==e||(t[e]=String(n[e]))}),t.translate||(t.translate="no"),[tg.node(0,e.state.doc.content.size,t)]}function tq(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:tg.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function tH(e){return!e.someProp("editable",t=>!1===t(e.state))}function tW(e){let t=Object.create(null);function n(e){for(let n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function tU(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw RangeError("Plugins passed directly to the view must not have a state component")}tV.prototype.dispatch=function(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))},n.d(t,{Lz:function(){return tV},NZ:function(){return tg},zF:function(){return tb}})},468911:function(e,t,n){"use strict";function r(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}n.d(t,{A:function(){return r}})},200235:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{A:function(){return r}})},592609:function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(i=function(){return!!e})()}n.d(t,{A:function(){return s}});var o=n(912506);function s(e,t,n){return t=r(t),function(e,t){if(t&&("object"==(0,o.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e,i()?Reflect.construct(t,n||[],r(e).constructor):t.apply(e,n))}},264631:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}n.d(t,{A:function(){return r}})},205123:function(e,t,n){"use strict";var r=n(823875);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(0,r.A)(i.key),i)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{A:function(){return o}})},437405:function(e,t,n){"use strict";var r=n(823875);function i(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{A:function(){return i}})},797126:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){if("function"!=typeof t&&null!==t)throw 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&&r(e,t)}n.d(t,{A:function(){return i}})},308907:function(e,t,n){"use strict";function r(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{A:function(){return r}})},159288:function(e,t,n){"use strict";function r(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:function(){return r}})},966065:function(e,t,n){"use strict";var r=n(437405);function i(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]:{};
9t%2?i(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}n.d(t,{A:function(){return o}})},655113:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i=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 o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{A:function(){return r}})},775226:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r=n(200235),i=n(460882),o=n(159288);function s(e,t){return(0,r.A)(e)||function(e,t){var n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||(0,i.A)(e,t)||(0,o.A)()}},784933:function(e,t,n){"use strict";var r=n(200235),i=n(308907),o=n(460882),s=n(159288);function a(e){return(0,r.A)(e)||(0,i.A)(e)||(0,o.A)(e)||(0,s.A)()}n.d(t,{A:function(){return a}})},911410:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r=n(468911),i=n(308907),o=n(460882);function s(e){return function(e){if(Array.isArray(e))return(0,r.A)(e)}(e)||(0,i.A)(e)||(0,o.A)(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},823875:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(912506);function i(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=(0,r.A)(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},912506:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{A:function(){return r}})},460882:function(e,t,n){"use strict";var r=n(468911);function i(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}n.d(t,{A:function(){return i}})},921844:function(e,t,n){"use strict";function r(){return(r=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}).apply(null,arguments)}n.d(t,{A:function(){return r}})},527079:function(e,t,n){"use strict";function r(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}n.d(t,{A:function(){return r}})},872153:function(e,t){"use strict";t.A=/[\0-\x1F\x7F-\x9F]/},655369:function(e,t){"use strict";t.A=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},192735:function(e,t){"use strict";t.A=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},824152:function(e,t){"use strict";t.A=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},226642:function(e)
vendor: 12,348 bytes, line 9
9{"use strict";e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","
vendor: 20,673 bytes, line 9
9Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}')
9},496287:function(e){"use strict";e.exports=JSON.parse('{"black":"#000000","silver":"#c0c0c0","gray":"#808080","white":"#ffffff","maroon":"#800000","red":"#ff0000","purple":"#800080","fuchsia":"#ff00ff","green":"#008000","lime":"#00ff00","olive":"#808000","yellow":"#ffff00","navy":"#000080","blue":"#0000ff","teal":"#008080","aqua":"#00ffff","orange":"#ffa500","aliceblue":"#f0f8ff","antiquewhite":"#faebd7","aquamarine":"#7fffd4","azure":"#f0ffff","beige":"#f5f5dc","bisque":"#ffe4c4","blanchedalmond":"#ffebcd","blueviolet":"#8a2be2","brown":"#a52a2a","burlywood":"#deb887","cadetblue":"#5f9ea0","chartreuse":"#7fff00","chocolate":"#d2691e","coral":"#ff7f50","cornflowerblue":"#6495ed","cornsilk":"#fff8dc","crimson":"#dc143c","darkblue":"#00008b","darkcyan":"#008b8b","darkgoldenrod":"#b8860b","darkgray":"#a9a9a9","darkgreen":"#006400","darkgrey":"#a9a9a9","darkkhaki":"#bdb76b","darkmagenta":"#8b008b","darkolivegreen":"#556b2f","darkorange":"#ff8c00","darkorchid":"#9932cc","darkred":"#8b0000","darksalmon":"#e9967a","darkseagreen":"#8fbc8f","darkslateblue":"#483d8b","darkslategray":"#2f4f4f","darkslategrey":"#2f4f4f","darkturquoise":"#00ced1","darkviolet":"#9400d3","deeppink":"#ff1493","deepskyblue":"#00bfff","dimgray":"#696969","dimgrey":"#696969","dodgerblue":"#1e90ff","firebrick":"#b22222","floralwhite":"#fffaf0","forestgreen":"#228b22","gainsboro":"#dcdcdc","ghostwhite":"#f8f8ff","gold":"#ffd700","goldenrod":"#daa520","greenyellow":"#adff2f","grey":"#808080","honeydew":"#f0fff0","hotpink":"#ff69b4","indianred":"#cd5c5c","indigo":"#4b0082","ivory":"#fffff0","khaki":"#f0e68c","lavender":"#e6e6fa","lavenderblush":"#fff0f5","lawngreen":"#7cfc00","lemonchiffon":"#fffacd","lightblue":"#add8e6","lightcoral":"#f08080","lightcyan":"#e0ffff","lightgoldenrodyellow":"#fafad2","lightgray":"#d3d3d3","lightgreen":"#90ee90","lightgrey":"#d3d3d3","lightpink":"#ffb6c1","lightsalmon":"#ffa07a","lightseagreen":"#20b2aa","lightskyblue":"#87cefa","lightslategray":"#778899","lightslategrey":"#778899","lightsteelblue":"#b0c4de","lightyellow":"#ffffe0","limegreen":"#32cd32","linen":"#faf0e6","mediumaquamarine":"#66cdaa","mediumblue":"#0000cd","mediumorchid":"#ba55d3","mediumpurple":"#9370db","mediumseagreen":"#3cb371","mediumslateblue":"#7b68ee","mediumspringgreen":"#00fa9a","mediumturquoise":"#48d1cc","mediumvioletred":"#c71585","midnightblue":"#191970","mintcream":"#f5fffa","mistyrose":"#ffe4e1","moccasin":"#ffe4b5","navajowhite":"#ffdead","oldlace":"#fdf5e6","olivedrab":"#6b8e23","orangered":"#ff4500","orchid":"#da70d6","palegoldenrod":"#eee8aa","palegreen":"#98fb98","paleturquoise":"#afeeee","palevioletred":"#db7093","papayawhip":"#ffefd5","peachpuff":"#ffdab9","peru":"#cd853f","pink":"#ffc0cb","plum":"#dda0dd","powderblue":"#b0e0e6","rosybrown":"#bc8f8f","royalblue":"#4169e1","saddlebrown":"#8b4513","salmon":"#fa8072","sandybrown":"#f4a460","seagreen":"#2e8b57","seashell":"#fff5ee","sienna":"#a0522d","skyblue":"#87ceeb","slateblue":"#6a5acd","slategray":"#708090","slategrey":"#708090","snow":"#fffafa","springgreen":"#00ff7f","steelblue":"#4682b4","tan":"#d2b48c","thistle":"#d8bfd8","tomato":"#ff6347","turquoise":"#40e0d0","violet":"#ee82ee","wheat":"#f5deb3","whitesmoke":"#f5f5f5","yellowgreen":"#9acd32","rebeccapurple":"#663399"}')}}]);
10//# debugId=5770059a-d220-5f67-ae1e-a7157a471e7c

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.