var iue = Object.defineProperty; var oue = (so, Ai, Zo) =>Ai in so ? iue(so, Ai, { enumerable: !0, configurable: !0, writable: !0, value: Zo }) : so[Ai] = Zo; var qs = (so, Ai, Zo) =>(oue(so, typeof Ai != 'symbol' ? Ai + '' : Ai, Zo), Zo); (function () { var PF, RF, TF; var so = document.createElement('style'); so.textContent = `@font-face{font-family:icons;src:url(https://c.disquscdn.com/embedv2/latest/icons.woff2) format("woff2"),url(/assets/font/icons.woff) format("woff");font-weight:400;font-style:normal}._icon_1x9qx_7{display:inline-flex;align-items:center;justify-content:center}._icon_1x9qx_7:before{font-family:icons;content:var(--icon-content);speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}._success_16l9s_1,._info_16l9s_1,._warn_16l9s_1,._error_16l9s_1{display:flex;justify-content:space-between;padding:10px 14px;color:#fff;border-bottom:2px solid rgba(60,78,110,.18);font-size:13px}.dark ._success_16l9s_1,.dark ._info_16l9s_1,.dark ._warn_16l9s_1,.dark ._error_16l9s_1{border-bottom:2px solid rgba(255,255,255,.2)}._success_16l9s_1 a,._info_16l9s_1 a,._warn_16l9s_1 a,._error_16l9s_1 a{font-weight:700;text-decoration:underline}._error_16l9s_1,._warn_16l9s_1{background:#f05f70}._info_16l9s_1,._success_16l9s_1{background:rgb(46,159,255)}._message_16l9s_33{display:flex;align-items:center}._icon_16l9s_38{margin-right:.5em;width:13px;height:13px}._dismiss_16l9s_44{background:transparent;border:none;cursor:pointer;color:inherit;font-size:16px}._icon_rsxid_1{font-size:16px;color:#ffd34f}._avatar-square_st8h3_1,._avatar-rounded_st8h3_1,._avatar-circle_st8h3_1{font-size:36px;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:0}._inner_st8h3_11{font-style:normal;font-weight:600;flex:auto;display:flex;align-items:center;justify-content:center;width:100%;height:100%;line-height:1.2;color:#fff;background:var(--publisher-color, rgb(46, 159, 255))}._image_st8h3_25{width:100%;height:100%;border-radius:inherit}._avatar-circle_st8h3_1{border-radius:50%}._avatar-rounded_st8h3_1{border-radius:16px}._avatar-square_st8h3_1{border-radius:2px}._avatar-large_st8h3_43{width:52px;height:52px}._avatar-medium_st8h3_48{width:40px;height:40px}._avatar-small_st8h3_53{width:36px;height:36px}._avatar-xsmall_st8h3_58{font-size:16px;width:30px;height:30px}._link_1hoja_1{color:var(--publisher-color, rgb(46, 159, 255))}._button_8fv5d_1{font-size:12px;font-weight:700;font-family:inherit;display:inline-block;padding:8px 12px;line-height:normal;border:initial;border-radius:3px;transition:all .25s ease-in-out;cursor:pointer;color:inherit}._button-fill_8fv5d_15{border-color:#687a86;background-color:#687a86;color:#fff}@media (hover: hover){._button-fill_8fv5d_15:hover{border-color:#526069;background-color:#526069;color:#fff}._button-fill_8fv5d_15:disabled,._button-fill_8fv5d_15:disabled:hover{cursor:default;border-color:#bcc5cb;background:#bcc5cb}.dark ._button-fill_8fv5d_15:disabled,.dark ._button-fill_8fv5d_15:disabled:hover{border-color:#ffffff80;background:rgba(255,255,255,.5);color:#ffffffb3}}._button-primary_8fv5d_38{border-color:#2e9fff;background-color:#2e9fff;color:#fff}@media (hover: hover){._button-primary_8fv5d_38:hover{border-color:#0087fa;background-color:#0087fa;color:#fff}._button-primary_8fv5d_38:disabled,._button-primary_8fv5d_38:disabled:hover{cursor:default;border-color:#c7e5ff;background:#c7e5ff}.dark ._button-primary_8fv5d_38:disabled,.dark ._button-primary_8fv5d_38:disabled:hover{border-color:#ffffff80;background:rgba(255,255,255,.5);color:#ffffffb3}}._button-danger_8fv5d_61{border-color:#f05f70;background-color:#f05f70;color:#fff}@media (hover: hover){._button-danger_8fv5d_61:hover{border-color:#ec3046;background-color:#ec3046;color:#fff}._button-danger_8fv5d_61:disabled,._button-danger_8fv5d_61:disabled:hover{cursor:default;border-color:#fdebed;background:#fdebed}.dark ._button-danger_8fv5d_61:disabled,.dark ._button-danger_8fv5d_61:disabled:hover{border-color:#ffffff80;background:rgba(255,255,255,.5);color:#ffffffb3}}._button-success_8fv5d_84{border-color:#5cb767;background-color:#5cb767;color:#fff}@media (hover: hover){._button-success_8fv5d_84:hover{border-color:#459b4f;background-color:#459b4f;color:#fff}._button-success_8fv5d_84:disabled,._button-success_8fv5d_84:disabled:hover{cursor:default;border-color:#c6e6ca;background:#c6e6ca}.dark ._button-success_8fv5d_84:disabled,.dark ._button-success_8fv5d_84:disabled:hover{border-color:#ffffff80;background:rgba(255,255,255,.5);color:#ffffffb3}}._card_hu9ay_1{overflow:hidden;color:#494e58;border:1px solid rgb(194,198,204);border-radius:5px;transition:all .25s ease-in-out}.dark ._card_hu9ay_1{color:#ffffffd9;border-color:#fff3}._content_zxk21_1{padding:12px 18px}._header_1iy7u_1{padding:10px 12px;border-bottom:1px solid rgb(235,238,242)}.dark ._header_1iy7u_1{border-color:#fff3}._heading_1iy7u_9{font-size:14px;font-weight:500;margin:0}._footer_pq6g3_1{display:flex;gap:10px;margin:0;padding:10px 18px 12px;border-top:1px solid rgb(235,238,242)}.dark ._footer_pq6g3_1{border-color:#fff3}._checkbox_1nula_1{display:inline-flex;align-items:center;gap:6px;line-height:1.3}._input_1nula_8{margin:0}._link_7oyne_1{color:inherit}._icon_1rgg8_1{margin-right:4px}._domain_1rgg8_5{font-size:11px;color:#656c7a}._loader_e4dlg_1{width:100%;height:var(--loader-height);text-align:center;background:url(data:image/gif;base64,R0lGODdhPgAUAOMJAP///7u9x7/ByuDg4NDQ0MDA0O7u/93e48PFzv///wAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJBAAJACwAAAAAPgAUAAAE/jDJmQyhANBNRykaJybAYGDjVgTBJa1EmK7BMGWpwQbhEBSnVIKwMxFZstGuIAEIQCPA0uBjuVLHnVb0GQCyrawgpS1fO6ZqmcXcgNfa89cIZ9k2unr5hEuo9UgUNIA/JEFDhGttiIl3JIlrQQCDbAaWbywUWgUmVFoCBF5+a50ea1dOWoeMSyF5gROYLn+Lj2WOCYO1rDUkA2C7r0sSwqsJm0mpVm7DFYp4ZQJ3YEnHO6t/AWMUYhpS0Ul/IZO3GFqO32ZNbwIaBJSFxHGxcD3wV/CJ2y/6PZDlhjxBOpOtzhVLFv5V43WLSgxBCjekU+QQFz04ZygIO3XEoi04MUL42VGT8ca1L0VuiCCZEBYWWEd2YRD10RgHAwJaNLkWkkQSAg97SjiyUMQqCzQpRAAAIfkECQQACQAsAAAAAD0AFAAABP4wyQkGoHbqLUkIFycmoQSUoxcQ5hcM41Z8cDypIfAR6KauhNnHkKrpdhIDbyT4CAwGISg2cFk/vc6nELQKpDXZ1Wqrjmki6dka1vyugp6noF4PJwa7teDmvsdfXBJNemN8E3VnYUeFVxaEVixaV5Ike1BKkRNmlJiQLiwAdSifNUpqKHmRMJxOGqqgGpoaUocJhhxnEq1tt7EUbGJIErgajGQJsFOyLotwJccrHaNuqxcAn5WWLnHbcAMGA59bGpAF4OF7m2eSUWMwiYXaf+zAjZQJA37yBEst9yVm0ClEp0CPaFayJKC3RtsNOwr/6Urjok4/FwpbqYsBywCAHykKP/ojJMAEgV4PaXAqSWWYKCw2UjpMMYxTzI/G/MUkQQelCJFudEqIAAAh+QQJBAAJACwAAAAAPQAUAAAE/jDJCQAtxM7NJcFd2BmDJgJEUEypKkqmEczmmWrAHBhvPhODliuEChA8ugFM2WkVKgUd7xXVWVchoUBgFQR/nYF1PBUJx0YD4UhBu2kcnzsDKMEMpDeaidTr2BtneliCfmAshkMJcok6FnMagoAAMjpPEmJ/E5ljBHicSYtVOgI1QlgJbqZWdoWACaB8sFavCWcwaKgSlbSzVjWpoYGaw5YWozO6CbyWu78cV6uOxayLZ2W+vYvVbZ2iYwUDeMjCwcl4ald2i1xWUwDkAQIJ8YndhjGN3qB+sn2GfBgBxKMhSJ43yrIZmrcJA4F2bvxxKKQjy4wvV7jF0SORWgYhKsAWrROipEitDaw4nSyGKkqGF5imwYBJrEVHCgYphCRSAATMQAUYYgIWAQAh+QQJBAAJACwAAAAAPgAUAAAE/jDJSUEhg+qdTAgEJ0rGZYwSQIQS8RWoyibFiyZqJtXgzROAweeDGhIMwmHMqDLeXMNoAJCiUqDSjyGI2QiyNhIHADbWZpJkOWqdqLOXr47yXk8rdrYGa4e1VnlOV4EBOjJ8doZgRwYGX0N+NHCNSFGRdR8DjXUzmAEVj4UTYCduUROIPRNkQ20WUmiSHwInrFJtHVECAwCOUnMSlrhvwLJMQaGfFB5Sfny4CVlAqIIpYDrEg7CjQ8CeVq+QR553CXWaBqmiOLCa6n7heRdd7ISl1oQrRy2EAfc7hARo4BEImiQBBMFAU6cQT4ACCbOMAbemmDleTcoUA2CFXLkRMEMEcPyBglmPVwUMTjAJxJZFDd1SXLgR7QM4XiVbpdhFk0ABgTT3rAi6ioCAWBsiAAAh+QQJBAAJACwAAAAAPQAUAAAE/jDJSUkpNOtprtkgcBEgBXBBWk5EMExFSpbAKbUBRsdvggefkiHlMvxmm2HAJiCufoUm8QUgCGwUolZWkua2JxFSAthuY9yM10ywLCkDsxbtyvzkxHECsMbn1H5aPTCBKVcSAxd0hYN7hWlVbVoEBgaJgoRnNnGTEkaSU5WcRDZKcyZeSHJYPlosbCaYrVt6dwQDNXc6KFMSiymNCXQCt1W0dmZBUBmmMgBGW0GZrnt0u3t9bwnNrHcpOmV5sWYTowGUe94FMyJzlZZySHe42LQ97YXXs4+KNuGFtR7VmfAPYAZ8hVghDKQvjoBfW4IVDKSnTIEBA7IRkXYQYho4M+cwBmKVYRQBAKNIUqBjCY2AFfte4Cigkpe2KjUniEtHE+bMcidXiFgH006MnEIuBKMQAQAh+QQJBAAJACwAAAAAPQAUAAAE/jDJOUcIg2oN6BjdJiZCIIxocRFoVbIJcAVGOxlzOAIF0cmXkwQkIswGBtWlJhoImMZLJjalKAXRGSF50d1m4KUIt1IGPytNNsyGUYDsAAtAlMDjYe8dHyiEAAaBZnxyFGt8VRMlhAE6h4xdFZBudms+MWtVgxcFgQOPbgaLJlNknBM8YQVqM1gdFmFMEqYYEo+yMWAEILRphm0xZqsaYEybARtxvYW/YTBZw6i6Hcd6cZhgQnZsAlNrXo8ZA4OJj9GwnEhcWn/HU+i6irqesRyQjZL3xROPwKyQXvRtCSRtkoZleKIl+ABgTzYRx/DgSiXnUAEzXvjxybiQE4FNMFkoUQmRxRu+IloMlGzCBI4QAFhsoOOIMlICFZ1s3PSl085FkS1UymrYc+FFmgkiAAAh+QQJBAAJACwAAAAAPQAUAAAE/jDJKUkIgGoNBqGDsY0JUXwkWVxoAmTkFQzScAkpJcMpQcAyTClQ4GmCBpuMNIABZCgbjWJhCYLYggor026qhMFKJhgHWkOuespR34ySqxsrmgDkcyLlScSrC4AtSnlnG4NzAjxVhFg8ZnNoFUFsi2dNaUECBpuHMpRBBJxYbACVkWoZnUadUx2TIFw+XGySdLV6R563Oxp+LFx1E5VEMIteOjJ1vgEbjxdiWXugTsPBCYcozjPSULSHJ7JBPMtCmF0ZAAaPIUlYG3yEn4yNE51ucPb3EgDg2mpow9xEIqfG2r45tOzMu8CD3w0CfgZAizQB4QgDQZyFi8TvxzUoKHZIYGTRjgWTMxkWtUo4QlcOFxaOgUnBYxCclyaKvLTT0ONOCTdIRAAAIfkECQQACQAsAAAAAD0AFAAABP4wyZkAKYPqnQbJXCgZFyByQxAIEwCKamBWATGLhEq0xpnkqgygULtpADGCIaXzEVUm5o5iwAAAgljgCQ0ZtODXxJP5arkFChLMblLI1XaXKmeLsXXtPa+dtvgxRjSAaRNmgFozTHx+E0A6SnExBQVThyoCA1FtL1lJA0tglJ1Jam2KehSPpYMqPWNsBS6erhpcMa+LLHSpFmAbbau1FLdKI7SFhlqvbcB9vmCNa0GObEarM7fUyoESQ3YG4bc3wiugJKJR2gHniysb03l+7ojJHYhiEuWcR+tt9glo5TEST94Gemc8sOMF6JW+Ojs87NKwb4ugCf6CuKikwUAWWSp4hoWYViCUCoBvmrjz4QLWnJFAZgBBqebFTB8bPuKscAOJsZ00BDSaEAEAIfkECQQACQAsAAAAAD4AFAAABP4wyZkIGTRrCUjBW9gVRmgmQQpwAXEmRhqsSUeHcSDQQwCeMoGhl3KZiC0AcWfKtYay3wYgq6akEgONYK2ekN0bp9DidmViWKpAPgcKmZjA4k5pzHVZidLOtzICfmgZVIJvFiCFggMGWglgeRYEe49WF414VTyWjJBXEpktnX0ycBN9phyBVomaFJ5GKDKxNWc0in8UoUYAqHFdIGCUEqQ+oJYZeEwVVqlZVQQrHVbDCahbXbQJq7myVmKZNMXGE7g/nkmPpAXithKQ2MDv3N0ddIbsNZiGMzWS/NoqGZICgF4dbaHqpMHVpY2zWnX6VEOXQkCbgBT71UiTMRgWZi1n8sHYgIcRtxMlDeB5sYoEkockRSJ5MWCZohe9oh1782KDxYAvJPUk9OZjgggAOw==) no-repeat center center}._root_169ev_1{position:relative}._iframe_169ev_5{display:block;opacity:1;transition:opacity .5s ease-in-out}._iframe-loading_169ev_11{position:absolute;opacity:0;visibility:hidden}._image_1mcab_1{display:block;max-width:100%;max-height:480px;border-radius:3px}._root_1wfe0_1{position:relative;width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:100%}._container_1r7qu_1{min-height:100px}._mention_1xkh2_1{font-weight:700}._mention_1xkh2_1:before{content:"@"}.dark ._mention_1xkh2_1:before{color:#fff}._menu_1hdnv_1{border:2px solid #687a86;border-radius:15px 3px 15px 15px;background:#fff;outline:none}._button_1hdnv_8{display:inline-flex;align-items:center;justify-content:center;padding:0;color:#494e58;border:none;background:transparent;outline:none;cursor:pointer}._button_1hdnv_8:hover,._button_1hdnv_8[aria-expanded=true]{color:var(--publisher-color, rgb(46, 159, 255))}._item_2hnsa_1{font-size:11px;font-family:inherit;display:flex;padding:6px 8px;width:100%;color:#687a86;border:none;background:transparent;outline:none;cursor:pointer}._item_2hnsa_1:hover:not(:disabled),._item_2hnsa_1:focus:not(:disabled){color:var(--publisher-color, rgb(46, 159, 255))}._radio_1lyat_1{display:inline-flex;align-items:center;gap:6px;line-height:1.3}._input_1lyat_8{margin:0}._stars-inactive_1axb3_1,._stars-active_1axb3_1{display:flex;font-size:14px}._star-inactive_1axb3_6,._star-active_1axb3_6{font-size:14px}._root_1axb3_10{line-height:20px;display:inline-block;unicode-bidi:bidi-override;direction:ltr;position:relative}._stars-active_1axb3_1{position:absolute;z-index:1;top:0;left:0;width:var(--active-width);overflow:hidden;white-space:nowrap}._stars-inactive_1axb3_1{z-index:0}._star-active_1axb3_6{color:#ffd34f}._star-inactive_1axb3_6{color:#ebeef2}._spacer_1fr9r_1{display:inline-block;width:var(--spacer-width)}._spoiler_1mxys_1{display:inline;background:rgb(127,145,158);color:transparent;padding:0 .5em}._spoiler_1mxys_1 a{visibility:hidden;transition:none}._spoiler_1mxys_1:hover,._spoiler_1mxys_1:focus{background:rgb(231,233,238);color:inherit}._spoiler_1mxys_1:hover a,._spoiler_1mxys_1:focus a{visibility:visible}.dark ._spoiler_1mxys_1:hover,.dark ._spoiler_1mxys_1:focus{background:rgba(255,255,255,.08)}._popover_1ocis_1{z-index:1000}._button_rdrky_1{border:none;background:transparent;padding:0;margin:0}._tooltip_ia50n_1{position:relative;padding:8px;text-align:center;overflow:auto;background:#fff;border-radius:4px;box-shadow:0 0 0 3px #0003;color:#7f919e}._tooltip_ia50n_1{width:300px}._text_ia50n_16{font-size:14px;line-height:1.4;margin:0 0 12px}._tabs_1wiw0_1{display:flex;align-items:stretch}._disabled_1sb5m_1,._selected_1sb5m_1,._tab_1sb5m_1{font-size:12px;display:block;width:100%;padding:10px 18px 10px 10px;overflow:visible;white-space:normal;background:rgba(0,0,0,.03);border:1px solid rgb(235,238,242);border-width:0 1px 1px 0;transition:all .2s ease-in-out;margin-bottom:0;color:#687a86}._disabled_1sb5m_1 input[type=radio],._selected_1sb5m_1 input[type=radio],._tab_1sb5m_1 input[type=radio]{display:none}._disabled_1sb5m_1:first-of-type,._selected_1sb5m_1:first-of-type,._tab_1sb5m_1:first-of-type{border-left:none}._disabled_1sb5m_1:last-of-type,._selected_1sb5m_1:last-of-type,._tab_1sb5m_1:last-of-type{border-right:none}.dark ._disabled_1sb5m_1,.dark ._selected_1sb5m_1,.dark ._tab_1sb5m_1{border-color:#fff3}._tab_1sb5m_1{cursor:pointer}._tab_1sb5m_1:hover{background:rgba(0,0,0,.08)}.dark ._tab_1sb5m_1{color:#fff9;background:rgba(255,255,255,.08)}._selected_1sb5m_1{font-weight:600;color:var(--publisher-color, rgb(46, 159, 255));background:transparent;border-bottom:none}.dark ._selected_1sb5m_1{color:#ffffffd9}._disabled_1sb5m_1{color:#c2c6cc}.dark ._disabled_1sb5m_1{color:#ffffff59;background:rgba(255,255,255,.08)}._text_1sb5m_57{font-size:14px;font-weight:500;display:flex;align-items:center;gap:5px;justify-content:center;margin-bottom:2px;text-align:center}._selected_p9fex_1,._selectable_p9fex_1{position:relative}._selected_p9fex_1:before,._selectable_p9fex_1:before{content:"";display:block;position:absolute;top:-2px;left:-2px;width:calc(100% + 4px);height:calc(100% + 4px);opacity:0;box-shadow:0 0 0 1px #3c4e6e2e;border-radius:4px;transition:opacity ease-in-out .25s}.dark ._selected_p9fex_1:before,.dark ._selectable_p9fex_1:before{box-shadow:0 0 0 1px #fff3}._selectable_p9fex_1:hover:before{opacity:.75}._selected_p9fex_1:before{opacity:1}._delete_p9fex_29{display:block;position:absolute;top:-18px;right:-18px;width:32px;height:32px;padding:6px;color:#fff;background:var(--publisher-color, rgb(46, 159, 255));cursor:pointer;border-radius:50%;box-shadow:0 2px 8px #0003}.light-anchor ._delete_p9fex_29{color:#656c7a}._element_p9fex_47{display:inline;background:inherit}._element_p9fex_47:not(:first-child){margin-top:8px}._image_p9fex_55{display:block;max-width:100%;max-height:20em;box-shadow:none;border-radius:3px}._wrapper_p9fex_63{position:relative;display:block;background:inherit;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}._loader_p9fex_70{display:block;height:115px;background:rgba(16,48,68,.03);width:150px;border-radius:16px}._dialog_1p5t1_1{background:white;border:2px solid rgba(60,78,110,.18);border-radius:16px}.dark ._dialog_1p5t1_1{background:rgb(42,46,46);border:2px solid rgba(255,255,255,.2)}._submit_1p5t1_11,._cancel_1p5t1_11{border-radius:16px}._form_1p5t1_15{font-size:14px;display:flex;flex-direction:column;gap:8px}._field_1p5t1_22{display:flex;align-items:center;gap:8px}._label_1p5t1_28{color:#7f919e}.dark ._label_1p5t1_28{color:#eee}._input_1p5t1_35{font-size:100%;font-family:inherit;display:block;width:100%;margin:0;padding:4px 6px;white-space:normal;border-radius:4px;border:1px solid rgba(60,78,110,.18);box-sizing:border-box;background:transparent}._input_1p5t1_35:disabled{color:#7f919e}._input_1p5t1_35:focus{border-color:var(--publisher-color, rgb(46, 159, 255));outline:none}._input_1p5t1_35::-webkit-input-placeholder{font-size:13px;color:#7f919e}._input_1p5t1_35::-moz-placeholder{font-size:13px;color:#7f919e}._input_1p5t1_35:-ms-input-placeholder{font-size:13px;color:#7f919e}._input_1p5t1_35::placeholder{font-size:13px;color:#7f919e}.dark ._input_1p5t1_35{color:#eee;border-color:#fff3}.dark ._input_1p5t1_35::-webkit-input-placeholder{color:#ffffff80}.dark ._input_1p5t1_35::-moz-placeholder{color:#ffffff80}.dark ._input_1p5t1_35:-ms-input-placeholder{color:#ffffff80}.dark ._input_1p5t1_35::placeholder{color:#ffffff80}.dark ._input_1p5t1_35:focus{border-color:var(--publisher-color, rgb(46, 159, 255))}._dialog_1p5t1_1{width:300px;padding:16px;border-width:1px;box-shadow:0 4px 8px -1px #0000001a}.dark ._dialog_1p5t1_1{border-width:1px}._buttons_1p5t1_80{display:flex;width:100%;align-items:center;justify-content:flex-end;gap:8px}._cancel_1p5t1_11{background:none;box-shadow:0 0 0 1px #c2c6cc;color:#7f919e}._cancel_1p5t1_11:hover{color:#7f919e;background:rgb(231,233,238)}.dark ._cancel_1p5t1_11{color:#eee;box-shadow:0 0 0 1px #fff3}.dark ._cancel_1p5t1_11:hover{background:rgb(73,78,88)}._selected_10kig_1,._selectable_10kig_1{position:relative}._selected_10kig_1:before,._selectable_10kig_1:before{content:"";display:block;position:absolute;top:-2px;left:-2px;width:calc(100% + 4px);height:calc(100% + 4px);opacity:0;box-shadow:0 0 0 1px #3c4e6e2e;border-radius:4px;transition:opacity ease-in-out .25s}.dark ._selected_10kig_1:before,.dark ._selectable_10kig_1:before{box-shadow:0 0 0 1px #fff3}._selectable_10kig_1:hover:before{opacity:.75}._selected_10kig_1:before{opacity:1}._delete_10kig_29{display:block;position:absolute;top:-18px;right:-18px;width:32px;height:32px;padding:6px;color:#fff;background:var(--publisher-color, rgb(46, 159, 255));cursor:pointer;border-radius:50%;box-shadow:0 2px 8px #0003}.light-anchor ._delete_10kig_29{color:#656c7a}._preview_10kig_47{display:block;position:relative;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;min-width:300px;max-width:100%;border-radius:3px}._no-pointer_10kig_56{display:block;overflow:hidden;pointer-events:none;border-radius:3px}._button_1ka0a_1,._button_1ka0a_1:active,._button_1ka0a_1:hover{flex:0 0 auto;background:none;padding:0;border:none;cursor:pointer;margin:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:#7f919e;opacity:.6;border-radius:4px}._button_1ka0a_1:hover{opacity:1}._button_1ka0a_1:disabled{opacity:.25;cursor:default}.dark ._button_1ka0a_1{color:#ffffff80}._button_1ka0a_1:active,._button_1ka0a_1:hover{opacity:1;background:rgba(60,75,120,.12)}.dark ._button_1ka0a_1:active,.dark ._button_1ka0a_1:hover{background:rgba(255,255,255,.2)}._container_1ka0a_36{font-size:14px;display:flex;align-items:center;gap:8px;position:relative;overflow-y:auto;max-height:400px;max-width:90vw;padding:5px 12px;border:1px solid rgb(231,233,238);border-radius:16px;background:#fff;box-shadow:0 4px 8px -1px #0000001a}.dark ._container_1ka0a_36{border:1px solid rgba(255,255,255,.2);background:rgb(42,46,46)}._link_1ka0a_56{color:var(--publisher-color, rgb(46, 159, 255));max-width:300px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;outline:none}._button_1ka0a_1{font-size:14px;opacity:1}._separator_1ka0a_69{display:inline-block;width:1px;height:18px;background:rgb(194,198,204)}.dark ._separator_1ka0a_69{background:rgba(255,255,255,.35)}._icon_1ka0a_79{width:16px;height:16px}._block_865k6_1{display:block;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}._selected_12oyo_1,._mention_12oyo_1{font-weight:700;position:relative}._selected_12oyo_1:before,._mention_12oyo_1:before{content:"@"}._selected_12oyo_1{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-radius:2px;background:rgba(60,78,110,.18);box-shadow:0 0 0 2px #3c4e6e2e}.dark ._selected_12oyo_1{box-shadow:0 0 0 2px #fff3;background:rgba(255,255,255,.2)}._default_1alzx_1{background:rgb(127,145,158);color:transparent}._default_1alzx_1 a,._default_1alzx_1 img,._default_1alzx_1 video{visibility:hidden}.dark ._default_1alzx_1{background:rgba(255,255,255,.5)}._active_1alzx_12,._default_1alzx_1:hover{background:rgb(231,233,238);color:inherit}._active_1alzx_12 a,._default_1alzx_1:hover a,._active_1alzx_12 img,._default_1alzx_1:hover img,._active_1alzx_12 video,._default_1alzx_1:hover video{visibility:visible}.dark ._active_1alzx_12,.dark ._default_1alzx_1:hover{background:rgba(255,255,255,.2)}._selected_1lt3i_1,._selectable_1lt3i_1{position:relative}._selected_1lt3i_1:before,._selectable_1lt3i_1:before{content:"";display:block;position:absolute;top:-2px;left:-2px;width:calc(100% + 4px);height:calc(100% + 4px);opacity:0;box-shadow:0 0 0 1px #3c4e6e2e;border-radius:4px;transition:opacity ease-in-out .25s}.dark ._selected_1lt3i_1:before,.dark ._selectable_1lt3i_1:before{box-shadow:0 0 0 1px #fff3}._selectable_1lt3i_1:hover:before{opacity:.75}._selected_1lt3i_1:before{opacity:1}._delete_1lt3i_29{display:block;position:absolute;top:-18px;right:-18px;width:32px;height:32px;padding:6px;color:#fff;background:var(--publisher-color, rgb(46, 159, 255));cursor:pointer;border-radius:50%;box-shadow:0 2px 8px #0003}.light-anchor ._delete_1lt3i_29{color:#656c7a}._video_1lt3i_47{display:block;position:relative;max-width:100%;max-height:20em;box-shadow:none;border-radius:3px;pointer-events:none}._container_1lt3i_57{display:inline;position:relative;background:inherit}._wrapper_1lt3i_63{position:relative;display:block;background:inherit;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}._quote_11ucn_1{margin:8px 0 0;padding:0 0 0 12px;border-left:4px solid #687a86}._quote_11ucn_1:first-child{margin-top:0}._code_vr1vh_1{font-family:monospace}._button_1559b_1,._active_1559b_1{flex:0 0 auto;background:none;padding:0;border:none;cursor:pointer;margin:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:#7f919e;opacity:.6;border-radius:4px}._button_1559b_1:hover,._active_1559b_1:hover{opacity:1}._button_1559b_1:disabled,._active_1559b_1:disabled{opacity:.25;cursor:default}.dark ._button_1559b_1,.dark ._active_1559b_1{color:#ffffff80}._active_1559b_1{opacity:1;background:rgba(60,75,120,.12)}.dark ._active_1559b_1{background:rgba(255,255,255,.2)}._icon_1559b_36{width:16px;height:16px}._button_12m5a_1{flex:0 0 auto;background:none;padding:0;border:none;cursor:pointer;margin:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:#7f919e;opacity:.6;border-radius:4px}._button_12m5a_1:hover{opacity:1}._button_12m5a_1:disabled{opacity:.25;cursor:default}.dark ._button_12m5a_1{color:#ffffff80}._categories_19ro8_1{display:flex;flex-direction:column;gap:2px;max-height:400px;padding:4px 10px;overflow-y:scroll}@media only screen and (min-width: 481px){._categories_19ro8_1{flex-direction:row}}@media only screen and (min-width: 768px){._categories_19ro8_1{max-height:800px}}._column_19ro8_20{display:flex;flex-direction:column;gap:2px}._image_19ro8_26{display:flex;align-items:center;justify-content:center;position:relative;cursor:pointer;border:2px solid white;background:rgb(235,238,242)}._image_19ro8_26:hover{border-color:#2e87e7;border-radius:2px}._image_19ro8_26:before{content:"";display:block;position:absolute;top:0;left:0;width:100%;height:100%;opacity:.6;background:#2a2e2e}.dark ._image_19ro8_26{background:rgba(255,255,255,.2);border-color:#2a2e2e}.dark ._image_19ro8_26:hover{border-color:#2e87e7}._title_19ro8_58{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;width:100%;height:100%;color:#fff;text-shadow:1px 1px #2a2e2e;text-align:center}._gifs_lkt4v_1{max-height:400px;padding:4px 10px;overflow-y:scroll}@media only screen and (min-width: 481px){._gifs_lkt4v_1{max-height:800px}}._columns_lkt4v_12{display:flex;flex-direction:column;gap:2px}@media only screen and (min-width: 481px){._columns_lkt4v_12{flex-direction:row}}._column_lkt4v_12{display:flex;flex-direction:column;gap:2px}._image_lkt4v_29{display:flex;align-items:center;justify-content:center;position:relative;max-width:100%;cursor:pointer;border:2px solid white;background:rgb(235,238,242)}._image_lkt4v_29:hover{border-color:#2e9fff;border-radius:2px}.dark ._image_lkt4v_29{background:rgba(255,255,255,.2);border-color:#2a2e2e}.dark ._image_lkt4v_29:hover{border-color:#2e87e7}._searchbox_1ftd7_1{box-sizing:border-box;padding:12px 10px 8px}._input_1ftd7_6{font-size:100%;font-family:inherit;display:block;width:100%;min-height:28px;height:auto;margin:0;padding:2px 6px;white-space:normal;border-radius:4px;border:2px solid rgba(60,78,110,.18);box-sizing:border-box;outline:none}.dark ._input_1ftd7_6{color:#eee;border-color:#ffffff80;background:transparent}@-webkit-keyframes _pulse_drbub_1{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}@keyframes _pulse_drbub_1{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}._skeleton_drbub_12{display:flex;flex-direction:column;gap:6px;padding:4px 12px;max-height:400px;overflow:hidden}@media only screen and (min-width: 481px){._skeleton_drbub_12{flex-direction:row;max-height:800px}}._image_drbub_27{background:rgb(235,238,242);-webkit-animation:_pulse_drbub_1 2s ease-in-out infinite;animation:_pulse_drbub_1 2s ease-in-out infinite}.dark ._image_drbub_27{background:rgba(255,255,255,.2)}._column_drbub_35{display:flex;flex-direction:column;gap:6px}._root_lwhkh_1{position:relative}._popout_lwhkh_5{display:flex;flex-direction:column;justify-content:space-between;align-items:center;max-height:98vh;background:white;border-radius:4px;border:2px solid rgba(60,78,110,.18)}.dark ._popout_lwhkh_5{border-color:#fff3;background:rgb(42,46,46)}._searchbox_lwhkh_20{width:100%}._powered-by_lwhkh_24{width:100px;margin:4px 12px;color:#748793}.dark ._powered-by_lwhkh_24{color:#ffffff59}._zone_1xgo0_1{border-radius:16px;position:absolute;inset:0;background-color:#0006;z-index:1;display:flex;align-items:center;justify-content:center}._wrapper_1xgo0_12{border:3px dashed #fff;padding:12px;width:90%;text-align:center;border-radius:6px}._text_1xgo0_20{color:#fff;font-size:15px;font-weight:700;font-style:normal}._placeholder_s9avi_1{font-style:normal;font-weight:400;position:absolute;top:20px;left:20px;color:#000;opacity:.33;line-height:1.4}.dark ._placeholder_s9avi_1{color:#fff}._separator_p7fwl_1{display:inline-block;width:2px;height:24px;margin:0 2px;background:rgba(60,78,110,.18)}.dark ._separator_p7fwl_1{background:rgba(255,255,255,.08)}._expand_k0g7a_1,._expand-active_k0g7a_1{flex:0 0 auto;background:none;padding:0;border:none;cursor:pointer;margin:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:#7f919e;opacity:.6;border-radius:4px}._expand_k0g7a_1:hover,._expand-active_k0g7a_1:hover{opacity:1}._expand_k0g7a_1:disabled,._expand-active_k0g7a_1:disabled{opacity:.25;cursor:default}.dark ._expand_k0g7a_1,.dark ._expand-active_k0g7a_1{color:#ffffff80}._expand-active_k0g7a_1{opacity:1;background:rgba(60,75,120,.12)}.dark ._expand-active_k0g7a_1{background:rgba(255,255,255,.2)}._expand-active_k0g7a_1,._expand_k0g7a_1{width:16px;height:16px}._menu_k0g7a_41{display:inline-flex;align-items:center;gap:4px}._toolbar_k0g7a_47{padding:5px 6px}._toolbar-primary_k0g7a_51{display:flex;justify-content:space-between}._toolbar-secondary-multirow_k0g7a_56,._toolbar-secondary_k0g7a_56{display:grid;grid-auto-flow:column;gap:6px;margin-top:6px}._toolbar-secondary-multirow_k0g7a_56{grid-template-rows:repeat(2,auto)}._expand_k0g7a_1{font-size:14px}._expand_k0g7a_1:hover{opacity:.6}._expand-active_k0g7a_1{background:none}._actions_k0g7a_78{display:inline-flex;gap:12px;margin-right:-5px}._submit_k0g7a_84{font-size:15px;font-style:normal;font-weight:700;position:relative;line-height:1;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;padding:7px 15px;border:none;text-shadow:none;white-space:nowrap;border-radius:14px;color:#fff;background-color:var(--publisher-color, rgb(46, 159, 255))}.light-anchor ._submit_k0g7a_84{color:#656c7a}._submit_k0g7a_84:before{content:"";display:block;position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.1);border-radius:14px;opacity:0;transition:all .25s ease-in-out}._submit_k0g7a_84:hover{background-color:var(--publisher-color, rgb(46, 159, 255))}._submit_k0g7a_84:hover:before{opacity:1}._submit-text_k0g7a_122{position:relative}._cancel_k0g7a_126{padding:7px;background-color:transparent;border:none;color:var(--publisher-color, rgb(46, 159, 255));cursor:pointer;font-weight:700;font-size:15px;line-height:1}._cancel_k0g7a_126:hover{color:#656c7a}._button_1wqlf_1{flex:0 0 auto;background:none;padding:0;border:none;cursor:pointer;margin:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:#7f919e;opacity:.6;border-radius:4px}._button_1wqlf_1:hover{opacity:1}._button_1wqlf_1:disabled{opacity:.25;cursor:default}.dark ._button_1wqlf_1{color:#ffffff80}._icon_1wqlf_28{width:16px;height:16px}._container_if5tp_1{background:white;border:2px solid rgba(60,78,110,.18);border-radius:16px}.dark ._container_if5tp_1{background:rgb(42,46,46);border:2px solid rgba(255,255,255,.2)}._item-active_if5tp_11,._item_if5tp_11{font-weight:500;display:flex;gap:16px;position:relative;padding:8px;overflow:hidden;cursor:pointer;color:#7f919e}.dark ._item-active_if5tp_11,.dark ._item_if5tp_11{color:#ffffff80}._container_if5tp_1{width:100%;max-height:200px;padding:0;overflow-y:scroll;border-radius:0 0 3px 3px}._header_if5tp_33{font-size:11px;font-weight:700;text-transform:uppercase;line-height:11px;margin:0;padding:8px;color:#7f919e;border:0}.dark ._header_if5tp_33{color:#ffffff80}._list_if5tp_47{margin:0;padding:0;list-style:none}._item_if5tp_11{background:transparent}._item_if5tp_11:hover{background:rgb(247,249,250)}.dark ._item_if5tp_11:hover{background:rgba(255,255,255,.08)}._item-active_if5tp_11{background:rgb(46,159,255);color:#fff}.dark ._item-active_if5tp_11{color:#fff}._avatar_if5tp_71{flex:0 0 auto;width:22px;height:22px}._overlay_1i4qh_1{z-index:1000}._container_ylcfx_1{position:relative;background:#fff;border:2px solid rgba(60,78,110,.18);border-radius:16px;line-height:1.4}.dark ._container_ylcfx_1{background:rgba(255,255,255,.05);border:2px solid rgba(255,255,255,.2)}._editor-expanded_ylcfx_13,._editor_ylcfx_13{position:relative;overflow-y:auto;max-height:350px;min-height:65px!important;padding:20px;transition:all .15s ease-in-out;outline:none;color:#2a2e2e;word-break:break-word}._editor-expanded_ylcfx_13 p,._editor_ylcfx_13 p{margin:8px 0 0}._editor-expanded_ylcfx_13 p:first-child,._editor_ylcfx_13 p:first-child{margin-top:0}._editor-expanded_ylcfx_13 a:link,._editor_ylcfx_13 a:link,._editor-expanded_ylcfx_13 a:visited,._editor_ylcfx_13 a:visited{color:var(--publisher-color, rgb(46, 159, 255))}.dark ._editor-expanded_ylcfx_13,.dark ._editor_ylcfx_13{color:#eee}._editor-container-expanded_ylcfx_37,._editor-container_ylcfx_37{overflow:hidden;border-radius:16px}._editor-container-expanded_ylcfx_37{border-radius:16px 16px 0 0}._editor-expanded_ylcfx_13{border-bottom:2px solid rgba(60,78,110,.18);border-radius:16px 16px 0 0;min-height:115px!important}.dark ._editor-expanded_ylcfx_13{border-bottom:2px solid rgba(255,255,255,.2)}._placeholder-submit-button_ylcfx_55{display:none} `, document.head.appendChild(so); function Ai(e, t) { for (var n = 0; n < t.length; n++) { const r = t[n]; if (typeof r != 'string' && !Array.isArray(r)) { for (const i in r) if (i !== 'default' && !(i in e)) { const o = Object.getOwnPropertyDescriptor(r, i); o && Object.defineProperty(e, i, o.get ? o : { enumerable: !0, get: () =>r[i] }) } } } return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: 'Module' })) } const Zo = 'modulepreload', ck = function (e, t) { return e.startsWith('.') ? new URL(e, t).href : e }, Tw = { }, fk = function (t, n, r) { return t() }; var Gt = typeof globalThis < 'u' ? globalThis : typeof window < 'u' ? window : typeof global < 'u' ? global : typeof self < 'u' ? self : { }; function vr(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, 'default') ? e.default : e } var Iw = { exports: { } }, Ac = { }, Nw = { exports: { } }, Qe = { }; /** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var Au = Symbol.for('react.element'), dk = Symbol.for('react.portal'), hk = Symbol.for('react.fragment'), pk = Symbol.for('react.strict_mode'), gk = Symbol.for('react.profiler'), mk = Symbol.for('react.provider'), vk = Symbol.for('react.context'), yk = Symbol.for('react.forward_ref'), wk = Symbol.for('react.suspense'), bk = Symbol.for('react.memo'), _k = Symbol.for('react.lazy'), Lw = Symbol.iterator; function Ck(e) { return e === null || typeof e != 'object' ? null : (e = Lw && e[Lw] || e['@@iterator'], typeof e == 'function' ? e : null) } var Mw = { isMounted: function () { return !1 }, enqueueForceUpdate: function () { }, enqueueReplaceState: function () { }, enqueueSetState: function () { } }, $w = Object.assign, jw = { }; function Gs(e, t, n) { this.props = e, this.context = t, this.refs = jw, this.updater = n || Mw } Gs.prototype.isReactComponent = { }, Gs.prototype.setState = function (e, t) { if (typeof e != 'object' && typeof e != 'function' && e != null) throw Error('setState(...): takes an object of state variables to update or a function which returns an object of state variables.'); this.updater.enqueueSetState(this, e, t, 'setState') }, Gs.prototype.forceUpdate = function (e) { this.updater.enqueueForceUpdate(this, e, 'forceUpdate') }; function zw() { } zw.prototype = Gs.prototype; function Xp(e, t, n) { this.props = e, this.context = t, this.refs = jw, this.updater = n || Mw } var Zp = Xp.prototype = new zw; Zp.constructor = Xp, $w(Zp, Gs.prototype), Zp.isPureReactComponent = !0; var Uw = Array.isArray, Hw = Object.prototype.hasOwnProperty, eg = { current: null }, Ww = { key: !0, ref: !0, __self: !0, __source: !0 }; function Vw(e, t, n) { var r, i = { }, o = null, a = null; if (t != null) for (r in t.ref !== void 0 && (a = t.ref), t.key !== void 0 && (o = '' + t.key), t) Hw.call(t, r) && !Ww.hasOwnProperty(r) && (i[r] = t[r]); var u = arguments.length - 2; if (u === 1) i.children = n; else if (1 < u) { for (var c = Array(u), f = 0; f < u; f++) c[f] = arguments[f + 2]; i.children = c } if (e && e.defaultProps) for (r in u = e.defaultProps, u) i[r] === void 0 && (i[r] = u[r]); return { $$typeof: Au, type: e, key: o, ref: a, props: i, _owner: eg.current } } function Ek(e, t) { return { $$typeof: Au, type: e.type, key: t, ref: e.ref, props: e.props, _owner: e._owner } } function tg(e) { return typeof e == 'object' && e !== null && e.$$typeof === Au } function Dk(e) { var t = { '=': '=0', ':': '=2' }; return '$' + e.replace(/[=:]/g, function (n) { return t[n] }) } var Kw = /\/+/g; function ng(e, t) { return typeof e == 'object' && e !== null && e.key != null ? Dk('' + e.key) : t.toString(36) } function Sc(e, t, n, r, i) { var o = typeof e; (o === 'undefined' || o === 'boolean') && (e = null); var a = !1; if (e === null) a = !0; else switch (o) { case 'string': case 'number': a = !0; break; case 'object': switch (e.$$typeof) { case Au: case dk: a = !0 } } if (a) return a = e, i = i(a), e = r === '' ? '.' + ng(a, 0) : r, Uw(i) ? (n = '', e != null && (n = e.replace(Kw, '$&/') + '/'), Sc(i, t, n, '', function (f) { return f })) : i != null && (tg(i) && (i = Ek(i, n + (!i.key || a && a.key === i.key ? '' : ('' + i.key).replace(Kw, '$&/') + '/') + e)), t.push(i)), 1; if (a = 0, r = r === '' ? '.' : r + ':', Uw(e)) for (var u = 0; u < e.length; u++) { o = e[u]; var c = r + ng(o, u); a += Sc(o, t, n, c, i) } else if (c = Ck(e), typeof c == 'function') for (e = c.call(e), u = 0; !(o = e.next()).done; ) o = o.value, c = r + ng(o, u++), a += Sc(o, t, n, c, i); else if (o === 'object') throw t = String(e), Error('Objects are not valid as a React child (found: ' + (t === '[object Object]' ? 'object with keys {' + Object.keys(e).join(', ') + '}' : t) + '). If you meant to render a collection of children, use an array instead.'); return a } function Oc(e, t, n) { if (e == null) return e; var r = [ ], i = 0; return Sc(e, r, '', '', function (o) { return t.call(n, o, i++) }), r } function xk(e) { if (e._status === - 1) { var t = e._result; t = t(), t.then(function (n) { (e._status === 0 || e._status === - 1) && (e._status = 1, e._result = n) }, function (n) { (e._status === 0 || e._status === - 1) && (e._status = 2, e._result = n) }), e._status === - 1 && (e._status = 0, e._result = t) } if (e._status === 1) return e._result.default; throw e._result } var xn = { current: null }, Fc = { transition: null }, Ak = { ReactCurrentDispatcher: xn, ReactCurrentBatchConfig: Fc, ReactCurrentOwner: eg }; Qe.Children = { map: Oc, forEach: function (e, t, n) { Oc(e, function () { t.apply(this, arguments) }, n) }, count: function (e) { var t = 0; return Oc(e, function () { t++ }), t }, toArray: function (e) { return Oc(e, function (t) { return t }) || [ ] }, only: function (e) { if (!tg(e)) throw Error('React.Children.only expected to receive a single React element child.'); return e } }, Qe.Component = Gs, Qe.Fragment = hk, Qe.Profiler = gk, Qe.PureComponent = Xp, Qe.StrictMode = pk, Qe.Suspense = wk, Qe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Ak, Qe.cloneElement = function (e, t, n) { if (e == null) throw Error('React.cloneElement(...): The argument must be a React element, but you passed ' + e + '.'); var r = $w({ }, e.props), i = e.key, o = e.ref, a = e._owner; if (t != null) { if (t.ref !== void 0 && (o = t.ref, a = eg.current), t.key !== void 0 && (i = '' + t.key), e.type && e.type.defaultProps) var u = e.type.defaultProps; for (c in t) Hw.call(t, c) && !Ww.hasOwnProperty(c) && (r[c] = t[c] === void 0 && u !== void 0 ? u[c] : t[c]) } var c = arguments.length - 2; if (c === 1) r.children = n; else if (1 < c) { u = Array(c); for (var f = 0; f < c; f++) u[f] = arguments[f + 2]; r.children = u } return { $$typeof: Au, type: e.type, key: i, ref: o, props: r, _owner: a } }, Qe.createContext = function (e) { return e = { $$typeof: vk, _currentValue: e, _currentValue2: e, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, e.Provider = { $$typeof: mk, _context: e }, e.Consumer = e }, Qe.createElement = Vw, Qe.createFactory = function (e) { var t = Vw.bind(null, e); return t.type = e, t }, Qe.createRef = function () { return { current: null } }, Qe.forwardRef = function (e) { return { $$typeof: yk, render: e } }, Qe.isValidElement = tg, Qe.lazy = function (e) { return { $$typeof: _k, _payload: { _status: - 1, _result: e }, _init: xk } }, Qe.memo = function (e, t) { return { $$typeof: bk, type: e, compare: t === void 0 ? null : t } }, Qe.startTransition = function (e) { var t = Fc.transition; Fc.transition = { }; try { e() } finally { Fc.transition = t } }, Qe.unstable_act = function () { throw Error('act(...) is not supported in production builds of React.') }, Qe.useCallback = function (e, t) { return xn.current.useCallback(e, t) }, Qe.useContext = function (e) { return xn.current.useContext(e) }, Qe.useDebugValue = function () { }, Qe.useDeferredValue = function (e) { return xn.current.useDeferredValue(e) }, Qe.useEffect = function (e, t) { return xn.current.useEffect(e, t) }, Qe.useId = function () { return xn.current.useId() }, Qe.useImperativeHandle = function (e, t, n) { return xn.current.useImperativeHandle(e, t, n) }, Qe.useInsertionEffect = function (e, t) { return xn.current.useInsertionEffect(e, t) }, Qe.useLayoutEffect = function (e, t) { return xn.current.useLayoutEffect(e, t) }, Qe.useMemo = function (e, t) { return xn.current.useMemo(e, t) }, Qe.useReducer = function (e, t, n) { return xn.current.useReducer(e, t, n) }, Qe.useRef = function (e) { return xn.current.useRef(e) }, Qe.useState = function (e) { return xn.current.useState(e) }, Qe.useSyncExternalStore = function (e, t, n) { return xn.current.useSyncExternalStore(e, t, n) }, Qe.useTransition = function () { return xn.current.useTransition() }, Qe.version = '18.2.0', Nw.exports = Qe; var D = Nw.exports; const Le = vr(D), qw = Ai({ __proto__: null, default: Le }, [ D ]); /** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var Sk = D, Ok = Symbol.for('react.element'), Fk = Symbol.for('react.fragment'), Bk = Object.prototype.hasOwnProperty, kk = Sk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, Pk = { key: !0, ref: !0, __self: !0, __source: !0 }; function Gw(e, t, n) { var r, i = { }, o = null, a = null; n !== void 0 && (o = '' + n), t.key !== void 0 && (o = '' + t.key), t.ref !== void 0 && (a = t.ref); for (r in t) Bk.call(t, r) && !Pk.hasOwnProperty(r) && (i[r] = t[r]); if (e && e.defaultProps) for (r in t = e.defaultProps, t) i[r] === void 0 && (i[r] = t[r]); return { $$typeof: Ok, type: e, key: o, ref: a, props: i, _owner: kk.current } } Ac.Fragment = Fk, Ac.jsx = Gw, Ac.jsxs = Gw, Iw.exports = Ac; var rg = Iw.exports; const Qs = rg.Fragment, W = rg.jsx, Ve = rg.jsxs; class Ys { constructor() { this.listeners = new Set, this.subscribe = this.subscribe.bind(this) } subscribe(t) { const n = { listener: t }; return this.listeners.add(n), this.onSubscribe(), () =>{ this.listeners.delete(n), this.onUnsubscribe() } } hasListeners() { return this.listeners.size > 0 } onSubscribe() { } onUnsubscribe() { } } const Su = typeof window > 'u' || 'Deno' in window; function yr() { } function Rk(e, t) { return typeof e == 'function' ? e(t) : e } function ig(e) { return typeof e == 'number' && e >= 0 && e !== 1 / 0 } function Qw(e, t) { return Math.max(e + (t || 0) - Date.now(), 0) } function Js(e, t, n) { return Ou(e) ? typeof t == 'function' ? { ...n, queryKey: e, queryFn: t } : { ...t, queryKey: e } : e } function Tk(e, t, n) { return Ou(e) ? typeof t == 'function' ? { ...n, mutationKey: e, mutationFn: t } : { ...t, mutationKey: e } : typeof e == 'function' ? { ...t, mutationFn: e } : { ...e } } function ao(e, t, n) { return Ou(e) ? [ { ...t, queryKey: e }, n ] : [ e || { }, t ] } function Yw(e, t) { const { type: n = 'all', exact: r, fetchStatus: i, predicate: o, queryKey: a, stale: u } = e; if (Ou(a)) { if (r) { if (t.queryHash !== og(a, t.options)) return !1 } else if (!Bc(t.queryKey, a)) return !1 } if (n !== 'all') { const c = t.isActive(); if (n === 'active' && !c || n === 'inactive' && c) return !1 } return !(typeof u == 'boolean' && t.isStale() !== u || typeof i < 'u' && i !== t.state.fetchStatus || o && !o(t)) } function Jw(e, t) { const { exact: n, fetching: r, predicate: i, mutationKey: o } = e; if (Ou(o)) { if (!t.options.mutationKey) return !1; if (n) { if (es(t.options.mutationKey) !== es(o)) return !1 } else if (!Bc(t.options.mutationKey, o)) return !1 } return !(typeof r == 'boolean' && t.state.status === 'loading' !== r || i && !i(t)) } function og(e, t) { return ((t == null ? void 0 : t.queryKeyHashFn) || es) (e) } function es(e) { return JSON.stringify(e, (t, n) =>ag(n) ? Object.keys(n).sort().reduce((r, i) =>(r[i] = n[i], r), { }) : n) } function Bc(e, t) { return Xw(e, t) } function Xw(e, t) { return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == 'object' && typeof t == 'object' ? !Object.keys(t).some(n=>!Xw(e[n], t[n])) : !1 } function Zw(e, t) { if (e === t) return e; const n = eb(e) && eb(t); if (n || ag(e) && ag(t)) { const r = n ? e.length : Object.keys(e).length, i = n ? t : Object.keys(t), o = i.length, a = n ? [ ] : { }; let u = 0; for (let c = 0; c < o; c++) { const f = n ? c : i[c]; a[f] = Zw(e[f], t[f]), a[f] === e[f] && u++ } return r === o && u === r ? e : a } return t } function sg(e, t) { if (e && !t || t && !e) return !1; for (const n in e) if (e[n] !== t[n]) return !1; return !0 } function eb(e) { return Array.isArray(e) && e.length === Object.keys(e).length } function ag(e) { if (!tb(e)) return !1; const t = e.constructor; if (typeof t > 'u') return !0; const n = t.prototype; return !(!tb(n) || !n.hasOwnProperty('isPrototypeOf')) } function tb(e) { return Object.prototype.toString.call(e) === '[object Object]' } function Ou(e) { return Array.isArray(e) } function nb(e) { return new Promise(t=>{ setTimeout(t, e) }) } function rb(e) { nb(0).then(e) } function Ik() { if (typeof AbortController == 'function') return new AbortController } function ug(e, t, n) { return n.isDataEqual != null && n.isDataEqual(e, t) ? e : typeof n.structuralSharing == 'function' ? n.structuralSharing(e, t) : n.structuralSharing !== !1 ? Zw(e, t) : t } class Nk extends Ys { constructor() { super (), this.setup = t=>{ if (!Su && window.addEventListener) { const n = () =>t(); return window.addEventListener('visibilitychange', n, !1), window.addEventListener('focus', n, !1), () =>{ window.removeEventListener('visibilitychange', n), window.removeEventListener('focus', n) } } } } onSubscribe() { this.cleanup || this.setEventListener(this.setup) } onUnsubscribe() { if (!this.hasListeners()) { var t; (t = this.cleanup) == null || t.call(this), this.cleanup = void 0 } } setEventListener(t) { var n; this.setup = t, (n = this.cleanup) == null || n.call(this), this.cleanup = t(r=>{ typeof r == 'boolean' ? this.setFocused(r) : this.onFocus() }) } setFocused(t) { this.focused = t, t && this.onFocus() } onFocus() { this.listeners.forEach(({ listener: t }) =>{ t() }) } isFocused() { return typeof this.focused == 'boolean' ? this.focused : typeof document > 'u' ? !0 : [ void 0, 'visible', 'prerender' ].includes(document.visibilityState) } } const kc = new Nk, ib = [ 'online', 'offline' ]; class Lk extends Ys { constructor() { super (), this.setup = t=>{ if (!Su && window.addEventListener) { const n = () =>t(); return ib.forEach(r=>{ window.addEventListener(r, n, !1) }), () =>{ ib.forEach(r=>{ window.removeEventListener(r, n) }) } } } } onSubscribe() { this.cleanup || this.setEventListener(this.setup) } onUnsubscribe() { if (!this.hasListeners()) { var t; (t = this.cleanup) == null || t.call(this), this.cleanup = void 0 } } setEventListener(t) { var n; this.setup = t, (n = this.cleanup) == null || n.call(this), this.cleanup = t(r=>{ typeof r == 'boolean' ? this.setOnline(r) : this.onOnline() }) } setOnline(t) { this.online = t, t && this.onOnline() } onOnline() { this.listeners.forEach(({ listener: t }) =>{ t() }) } isOnline() { return typeof this.online == 'boolean' ? this.online : typeof navigator > 'u' || typeof navigator.onLine > 'u' ? !0 : navigator.onLine } } const Pc = new Lk; function Mk(e) { return Math.min(1000 * 2**e, 30000) } function Rc(e) { return (e ?? 'online') === 'online' ? Pc.isOnline() : !0 } class ob { constructor(t) { this.revert = t == null ? void 0 : t.revert, this.silent = t == null ? void 0 : t.silent } } function Tc(e) { return e instanceof ob } function sb(e) { let t = !1, n = 0, r = !1, i, o, a; const u = new Promise((E, _) =>{ o = E, a = _ }), c = E=>{ r || (y(new ob(E)), e.abort == null || e.abort()) }, f = () =>{ t = !0 }, h = () =>{ t = !1 }, g = () =>!kc.isFocused() || e.networkMode !== 'always' && !Pc.isOnline(), m = E=>{ r || (r = !0, e.onSuccess == null || e.onSuccess(E), i == null || i(), o(E)) }, y = E=>{ r || (r = !0, e.onError == null || e.onError(E), i == null || i(), a(E)) }, v = () =>new Promise(E=>{ i = _=>{ const b = r || !g(); return b && E(_), b }, e.onPause == null || e.onPause() }).then(() =>{ i = void 0, r || e.onContinue == null || e.onContinue() }), p = () =>{ if (r) return; let E; try { E = e.fn() } catch (_) { E = Promise.reject(_) } Promise.resolve(E).then(m).catch(_=>{ var b, x; if (r) return; const O = (b = e.retry) != null ? b : 3, B = (x = e.retryDelay) != null ? x : Mk, k = typeof B == 'function' ? B(n, _) : B, P = O === !0 || typeof O == 'number' && n < O || typeof O == 'function' && O(n, _); if (t || !P) { y(_); return } n++, e.onFail == null || e.onFail(n, _), nb(k).then(() =>{ if (g()) return v() }).then(() =>{ t ? y(_) : p() }) }) }; return Rc(e.networkMode) ? p() : v().then(p), { promise: u, cancel: c, continue : () =>(i == null ? void 0 : i()) ? u : Promise.resolve(), cancelRetry: f, continueRetry: h } } const lg = console; function $k() { let e = [ ], t = 0, n = h=>{ h() }, r = h=>{ h() }; const i = h=>{ let g; t++; try { g = h() } finally { t--, t || u() } return g }, o = h=>{ t ? e.push(h) : rb(() =>{ n(h) }) }, a = h=>(...g) =>{ o(() =>{ h(...g) }) }, u = () =>{ const h = e; e = [ ], h.length && rb(() =>{ r(() =>{ h.forEach(g=>{ n(g) }) }) }) }; return { batch: i, batchCalls: a, schedule: o, setNotifyFunction: h=>{ n = h }, setBatchNotifyFunction: h=>{ r = h } } } const Tt = $k(); class ab { destroy() { this.clearGcTimeout() } scheduleGc() { this.clearGcTimeout(), ig(this.cacheTime) && (this.gcTimeout = setTimeout(() =>{ this.optionalRemove() }, this.cacheTime)) } updateCacheTime(t) { this.cacheTime = Math.max(this.cacheTime || 0, t ?? (Su ? 1 / 0 : 5 * 60 * 1000)) } clearGcTimeout() { this.gcTimeout && (clearTimeout(this.gcTimeout), this.gcTimeout = void 0) } } class jk extends ab { constructor(t) { super (), this.abortSignalConsumed = !1, this.defaultOptions = t.defaultOptions, this.setOptions(t.options), this.observers = [ ], this.cache = t.cache, this.logger = t.logger || lg, this.queryKey = t.queryKey, this.queryHash = t.queryHash, this.initialState = t.state || zk(this.options), this.state = this.initialState, this.scheduleGc() } get meta() { return this.options.meta } setOptions(t) { this.options = { ...this.defaultOptions, ...t }, this.updateCacheTime(this.options.cacheTime) } optionalRemove() { !this.observers.length && this.state.fetchStatus === 'idle' && this.cache.remove(this) } setData(t, n) { const r = ug(this.state.data, t, this.options); return this.dispatch({ data: r, type: 'success', dataUpdatedAt: n == null ? void 0 : n.updatedAt, manual: n == null ? void 0 : n.manual }), r } setState(t, n) { this.dispatch({ type: 'setState', state: t, setStateOptions: n }) } cancel(t) { var n; const r = this.promise; return (n = this.retryer) == null || n.cancel(t), r ? r.then(yr).catch(yr) : Promise.resolve() } destroy() { super.destroy(), this.cancel({ silent: !0 }) } reset() { this.destroy(), this.setState(this.initialState) } isActive() { return this.observers.some(t=>t.options.enabled !== !1) } isDisabled() { return this.getObserversCount() > 0 && !this.isActive() } isStale() { return this.state.isInvalidated || !this.state.dataUpdatedAt || this.observers.some(t=>t.getCurrentResult().isStale) } isStaleByTime(t = 0) { return this.state.isInvalidated || !this.state.dataUpdatedAt || !Qw(this.state.dataUpdatedAt, t) } onFocus() { var t; const n = this.observers.find(r=>r.shouldFetchOnWindowFocus()); n && n.refetch({ cancelRefetch: !1 }), (t = this.retryer) == null || t.continue() } onOnline() { var t; const n = this.observers.find(r=>r.shouldFetchOnReconnect()); n && n.refetch({ cancelRefetch: !1 }), (t = this.retryer) == null || t.continue() } addObserver(t) { this.observers.includes(t) || (this.observers.push(t), this.clearGcTimeout(), this.cache.notify({ type: 'observerAdded', query: this, observer: t })) } removeObserver(t) { this.observers.includes(t) && (this.observers = this.observers.filter(n=>n !== t), this.observers.length || (this.retryer && (this.abortSignalConsumed ? this.retryer.cancel({ revert: !0 }) : this.retryer.cancelRetry()), this.scheduleGc()), this.cache.notify({ type: 'observerRemoved', query: this, observer: t })) } getObserversCount() { return this.observers.length } invalidate() { this.state.isInvalidated || this.dispatch({ type: 'invalidate' }) } fetch(t, n) { var r, i; if (this.state.fetchStatus !== 'idle') { if (this.state.dataUpdatedAt && n != null && n.cancelRefetch) this.cancel({ silent: !0 }); else if (this.promise) { var o; return (o = this.retryer) == null || o.continueRetry(), this.promise } } if (t && this.setOptions(t), !this.options.queryFn) { const y = this.observers.find(v=>v.options.queryFn); y && this.setOptions(y.options) } Array.isArray(this.options.queryKey); const a = Ik(), u = { queryKey: this.queryKey, pageParam: void 0, meta: this.meta }, c = y=>{ Object.defineProperty(y, 'signal', { enumerable: !0, get: () =>{ if (a) return this.abortSignalConsumed = !0, a.signal } }) }; c(u); const f = () =>this.options.queryFn ? (this.abortSignalConsumed = !1, this.options.queryFn(u)) : Promise.reject('Missing queryFn for queryKey \'' + this.options.queryHash + '\''), h = { fetchOptions: n, options: this.options, queryKey: this.queryKey, state: this.state, fetchFn: f }; if (c(h), (r = this.options.behavior) == null || r.onFetch(h), this.revertState = this.state, this.state.fetchStatus === 'idle' || this.state.fetchMeta !== ((i = h.fetchOptions) == null ? void 0 : i.meta)) { var g; this.dispatch({ type: 'fetch', meta: (g = h.fetchOptions) == null ? void 0 : g.meta }) } const m = y=>{ if (Tc(y) && y.silent || this.dispatch({ type: 'error', error: y }), !Tc(y)) { var v, p, E, _; (v = (p = this.cache.config).onError) == null || v.call(p, y, this), (E = (_ = this.cache.config).onSettled) == null || E.call(_, this.state.data, y, this) } this.isFetchingOptimistic || this.scheduleGc(), this.isFetchingOptimistic = !1 }; return this.retryer = sb({ fn: h.fetchFn, abort: a == null ? void 0 : a.abort.bind(a), onSuccess: y=>{ var v, p, E, _; if (typeof y > 'u') { m(new Error(this.queryHash + ' data is undefined')); return } this.setData(y), (v = (p = this.cache.config).onSuccess) == null || v.call(p, y, this), (E = (_ = this.cache.config).onSettled) == null || E.call(_, y, this.state.error, this), this.isFetchingOptimistic || this.scheduleGc(), this.isFetchingOptimistic = !1 }, onError: m, onFail: (y, v) =>{ this.dispatch({ type: 'failed', failureCount: y, error: v }) }, onPause: () =>{ this.dispatch({ type: 'pause' }) }, onContinue: () =>{ this.dispatch({ type: 'continue' }) }, retry: h.options.retry, retryDelay: h.options.retryDelay, networkMode: h.options.networkMode }), this.promise = this.retryer.promise, this.promise } dispatch(t) { const n = r=>{ var i, o; switch (t.type) { case 'failed': return { ...r, fetchFailureCount: t.failureCount, fetchFailureReason: t.error }; case 'pause': return { ...r, fetchStatus: 'paused' }; case 'continue': return { ...r, fetchStatus: 'fetching' }; case 'fetch': return { ...r, fetchFailureCount: 0, fetchFailureReason: null, fetchMeta: (i = t.meta) != null ? i : null, fetchStatus: Rc(this.options.networkMode) ? 'fetching' : 'paused', ...!r.dataUpdatedAt && { error: null, status: 'loading' } }; case 'success': return { ...r, data: t.data, dataUpdateCount: r.dataUpdateCount + 1, dataUpdatedAt: (o = t.dataUpdatedAt) != null ? o : Date.now(), error: null, isInvalidated: !1, status: 'success', ...!t.manual && { fetchStatus: 'idle', fetchFailureCount: 0, fetchFailureReason: null } }; case 'error': const a = t.error; return Tc(a) && a.revert && this.revertState ? { ...this.revertState } : { ...r, error: a, errorUpdateCount: r.errorUpdateCount + 1, errorUpdatedAt: Date.now(), fetchFailureCount: r.fetchFailureCount + 1, fetchFailureReason: a, fetchStatus: 'idle', status: 'error' }; case 'invalidate': return { ...r, isInvalidated: !0 }; case 'setState': return { ...r, ...t.state } } }; this.state = n(this.state), Tt.batch(() =>{ this.observers.forEach(r=>{ r.onQueryUpdate(t) }), this.cache.notify({ query: this, type: 'updated', action: t }) }) } } function zk(e) { const t = typeof e.initialData == 'function' ? e.initialData() : e.initialData, n = typeof t < 'u', r = n ? typeof e.initialDataUpdatedAt == 'function' ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0; return { data: t, dataUpdateCount: 0, dataUpdatedAt: n ? r ?? Date.now() : 0, error: null, errorUpdateCount: 0, errorUpdatedAt: 0, fetchFailureCount: 0, fetchFailureReason: null, fetchMeta: null, isInvalidated: !1, status: n ? 'success' : 'loading', fetchStatus: 'idle' } } class Uk extends Ys { constructor(t) { super (), this.config = t || { }, this.queries = [ ], this.queriesMap = { } } build(t, n, r) { var i; const o = n.queryKey, a = (i = n.queryHash) != null ? i : og(o, n); let u = this.get(a); return u || (u = new jk({ cache: this, logger: t.getLogger(), queryKey: o, queryHash: a, options: t.defaultQueryOptions(n), state: r, defaultOptions: t.getQueryDefaults(o) }), this.add(u)), u } add(t) { this.queriesMap[t.queryHash] || (this.queriesMap[t.queryHash] = t, this.queries.push(t), this.notify({ type: 'added', query: t })) } remove(t) { const n = this.queriesMap[t.queryHash]; n && (t.destroy(), this.queries = this.queries.filter(r=>r !== t), n === t && delete this.queriesMap[t.queryHash], this.notify({ type: 'removed', query: t })) } clear() { Tt.batch(() =>{ this.queries.forEach(t=>{ this.remove(t) }) }) } get(t) { return this.queriesMap[t] } getAll() { return this.queries } find(t, n) { const [r] = ao(t, n); return typeof r.exact > 'u' && (r.exact = !0), this.queries.find(i=>Yw(r, i)) } findAll(t, n) { const [r] = ao(t, n); return Object.keys(r).length > 0 ? this.queries.filter(i=>Yw(r, i)) : this.queries } notify(t) { Tt.batch(() =>{ this.listeners.forEach(({ listener: n }) =>{ n(t) }) }) } onFocus() { Tt.batch(() =>{ this.queries.forEach(t=>{ t.onFocus() }) }) } onOnline() { Tt.batch(() =>{ this.queries.forEach(t=>{ t.onOnline() }) }) } } class Hk extends ab { constructor(t) { super (), this.defaultOptions = t.defaultOptions, this.mutationId = t.mutationId, this.mutationCache = t.mutationCache, this.logger = t.logger || lg, this.observers = [ ], this.state = t.state || ub(), this.setOptions(t.options), this.scheduleGc() } setOptions(t) { this.options = { ...this.defaultOptions, ...t }, this.updateCacheTime(this.options.cacheTime) } get meta() { return this.options.meta } setState(t) { this.dispatch({ type: 'setState', state: t }) } addObserver(t) { this.observers.includes(t) || (this.observers.push(t), this.clearGcTimeout(), this.mutationCache.notify({ type: 'observerAdded', mutation: this, observer: t })) } removeObserver(t) { this.observers = this.observers.filter(n=>n !== t), this.scheduleGc(), this.mutationCache.notify({ type: 'observerRemoved', mutation: this, observer: t }) } optionalRemove() { this.observers.length || (this.state.status === 'loading' ? this.scheduleGc() : this.mutationCache.remove(this)) } continue () { var t, n; return (t = (n = this.retryer) == null ? void 0 : n.continue()) != null ? t : this.execute() } async execute() { const t = () =>{ var P; return this.retryer = sb({ fn: () =>this.options.mutationFn ? this.options.mutationFn(this.state.variables) : Promise.reject('No mutationFn found'), onFail: (I, Y) =>{ this.dispatch({ type: 'failed', failureCount: I, error: Y }) }, onPause: () =>{ this.dispatch({ type: 'pause' }) }, onContinue: () =>{ this.dispatch({ type: 'continue' }) }, retry: (P = this.options.retry) != null ? P : 0, retryDelay: this.options.retryDelay, networkMode: this.options.networkMode }), this.retryer.promise }, n = this.state.status === 'loading'; try { var r, i, o, a, u, c, f, h; if (!n) { var g, m, y, v; this.dispatch({ type: 'loading', variables: this.options.variables }), await((g = (m = this.mutationCache.config).onMutate) == null ? void 0 : g.call(m, this.state.variables, this)); const I = await((y = (v = this.options).onMutate) == null ? void 0 : y.call(v, this.state.variables)); I !== this.state.context && this.dispatch({ type: 'loading', context: I, variables: this.state.variables }) } const P = await t(); return await((r = (i = this.mutationCache.config).onSuccess) == null ? void 0 : r.call(i, P, this.state.variables, this.state.context, this)), await((o = (a = this.options).onSuccess) == null ? void 0 : o.call(a, P, this.state.variables, this.state.context)), await((u = (c = this.mutationCache.config).onSettled) == null ? void 0 : u.call(c, P, null, this.state.variables, this.state.context, this)), await((f = (h = this.options).onSettled) == null ? void 0 : f.call(h, P, null, this.state.variables, this.state.context)), this.dispatch({ type: 'success', data: P }), P } catch (P) { try { var p, E, _, b, x, O, B, k; throw await((p = (E = this.mutationCache.config).onError) == null ? void 0 : p.call(E, P, this.state.variables, this.state.context, this)), await((_ = (b = this.options).onError) == null ? void 0 : _.call(b, P, this.state.variables, this.state.context)), await((x = (O = this.mutationCache.config).onSettled) == null ? void 0 : x.call(O, void 0, P, this.state.variables, this.state.context, this)), await((B = (k = this.options).onSettled) == null ? void 0 : B.call(k, void 0, P, this.state.variables, this.state.context)), P } finally { this.dispatch({ type: 'error', error: P }) } } } dispatch(t) { const n = r=>{ switch (t.type) { case 'failed': return { ...r, failureCount: t.failureCount, failureReason: t.error }; case 'pause': return { ...r, isPaused: !0 }; case 'continue': return { ...r, isPaused: !1 }; case 'loading': return { ...r, context: t.context, data: void 0, failureCount: 0, failureReason: null, error: null, isPaused: !Rc(this.options.networkMode), status: 'loading', variables: t.variables }; case 'success': return { ...r, data: t.data, failureCount: 0, failureReason: null, error: null, status: 'success', isPaused: !1 }; case 'error': return { ...r, data: void 0, error: t.error, failureCount: r.failureCount + 1, failureReason: t.error, isPaused: !1, status: 'error' }; case 'setState': return { ...r, ...t.state } } }; this.state = n(this.state), Tt.batch(() =>{ this.observers.forEach(r=>{ r.onMutationUpdate(t) }), this.mutationCache.notify({ mutation: this, type: 'updated', action: t }) }) } } function ub() { return { context: void 0, data: void 0, error: null, failureCount: 0, failureReason: null, isPaused: !1, status: 'idle', variables: void 0 } } class Wk extends Ys { constructor(t) { super (), this.config = t || { }, this.mutations = [ ], this.mutationId = 0 } build(t, n, r) { const i = new Hk({ mutationCache: this, logger: t.getLogger(), mutationId: ++this.mutationId, options: t.defaultMutationOptions(n), state: r, defaultOptions: n.mutationKey ? t.getMutationDefaults(n.mutationKey) : void 0 }); return this.add(i), i } add(t) { this.mutations.push(t), this.notify({ type: 'added', mutation: t }) } remove(t) { this.mutations = this.mutations.filter(n=>n !== t), this.notify({ type: 'removed', mutation: t }) } clear() { Tt.batch(() =>{ this.mutations.forEach(t=>{ this.remove(t) }) }) } getAll() { return this.mutations } find(t) { return typeof t.exact > 'u' && (t.exact = !0), this.mutations.find(n=>Jw(t, n)) } findAll(t) { return this.mutations.filter(n=>Jw(t, n)) } notify(t) { Tt.batch(() =>{ this.listeners.forEach(({ listener: n }) =>{ n(t) }) }) } resumePausedMutations() { var t; return this.resuming = ((t = this.resuming) != null ? t : Promise.resolve()).then(() =>{ const n = this.mutations.filter(r=>r.state.isPaused); return Tt.batch(() =>n.reduce((r, i) =>r.then(() =>i.continue().catch(yr)), Promise.resolve())) }).then(() =>{ this.resuming = void 0 }), this.resuming } } function cg() { return { onFetch: e=>{ e.fetchFn = () =>{ var t, n, r, i, o, a; const u = (t = e.fetchOptions) == null || (n = t.meta) == null ? void 0 : n.refetchPage, c = (r = e.fetchOptions) == null || (i = r.meta) == null ? void 0 : i.fetchMore, f = c == null ? void 0 : c.pageParam, h = (c == null ? void 0 : c.direction) === 'forward', g = (c == null ? void 0 : c.direction) === 'backward', m = ((o = e.state.data) == null ? void 0 : o.pages) || [ ], y = ((a = e.state.data) == null ? void 0 : a.pageParams) || [ ]; let v = y, p = !1; const E = k=>{ Object.defineProperty(k, 'signal', { enumerable: !0, get: () =>{ var P; if ((P = e.signal) != null && P.aborted) p = !0; else { var I; (I = e.signal) == null || I.addEventListener('abort', () =>{ p = !0 }) } return e.signal } }) }, _ = e.options.queryFn || (() =>Promise.reject('Missing queryFn for queryKey \'' + e.options.queryHash + '\'')), b = (k, P, I, Y) =>(v = Y ? [ P, ...v ] : [ ...v, P ], Y ? [ I, ...k ] : [ ...k, I ]), x = (k, P, I, Y) =>{ if (p) return Promise.reject('Cancelled'); if (typeof I > 'u' && !P && k.length) return Promise.resolve(k); const j = { queryKey: e.queryKey, pageParam: I, meta: e.options.meta }; E(j); const X = _(j); return Promise.resolve(X).then(U=>b(k, I, U, Y)) }; let O; if (!m.length) O = x([]); else if (h) { const k = typeof f < 'u', P = k ? f : fg(e.options, m); O = x(m, k, P) } else if (g) { const k = typeof f < 'u', P = k ? f : lb(e.options, m); O = x(m, k, P, !0) } else { v = [ ]; const k = typeof e.options.getNextPageParam > 'u'; O = (u && m[0] ? u(m[0], 0, m) : !0) ? x([], k, y[0]) : Promise.resolve(b([], y[0], m[0])); for (let I = 1; I < m.length; I++) O = O.then(Y=>{ if (u && m[I] ? u(m[I], I, m) : !0) { const X = k ? y[I] : fg(e.options, Y); return x(Y, k, X) } return Promise.resolve(b(Y, y[I], m[I])) }) } return O.then(k=>({ pages: k, pageParams: v })) } } } } function fg(e, t) { return e.getNextPageParam == null ? void 0 : e.getNextPageParam(t[t.length - 1], t) } function lb(e, t) { return e.getPreviousPageParam == null ? void 0 : e.getPreviousPageParam(t[0], t) } function Vk(e, t) { if (e.getNextPageParam && Array.isArray(t)) { const n = fg(e, t); return typeof n < 'u' && n !== null && n !== !1 } } function Kk(e, t) { if (e.getPreviousPageParam && Array.isArray(t)) { const n = lb(e, t); return typeof n < 'u' && n !== null && n !== !1 } } class qk { constructor(t = { }) { this.queryCache = t.queryCache || new Uk, this.mutationCache = t.mutationCache || new Wk, this.logger = t.logger || lg, this.defaultOptions = t.defaultOptions || { }, this.queryDefaults = [ ], this.mutationDefaults = [ ], this.mountCount = 0 } mount() { this.mountCount++, this.mountCount === 1 && (this.unsubscribeFocus = kc.subscribe(() =>{ kc.isFocused() && (this.resumePausedMutations(), this.queryCache.onFocus()) }), this.unsubscribeOnline = Pc.subscribe(() =>{ Pc.isOnline() && (this.resumePausedMutations(), this.queryCache.onOnline()) })) } unmount() { var t, n; this.mountCount--, this.mountCount === 0 && ((t = this.unsubscribeFocus) == null || t.call(this), this.unsubscribeFocus = void 0, (n = this.unsubscribeOnline) == null || n.call(this), this.unsubscribeOnline = void 0) } isFetching(t, n) { const [r] = ao(t, n); return r.fetchStatus = 'fetching', this.queryCache.findAll(r).length } isMutating(t) { return this.mutationCache.findAll({ ...t, fetching: !0 }).length } getQueryData(t, n) { var r; return (r = this.queryCache.find(t, n)) == null ? void 0 : r.state.data } ensureQueryData(t, n, r) { const i = Js(t, n, r), o = this.getQueryData(i.queryKey); return o ? Promise.resolve(o) : this.fetchQuery(i) } getQueriesData(t) { return this.getQueryCache().findAll(t).map(({ queryKey: n, state: r }) =>{ const i = r.data; return [n, i] }) } setQueryData(t, n, r) { const i = this.queryCache.find(t), o = i == null ? void 0 : i.state.data, a = Rk(n, o); if (typeof a > 'u') return; const u = Js(t), c = this.defaultQueryOptions(u); return this.queryCache.build(this, c).setData(a, { ...r, manual: !0 }) } setQueriesData(t, n, r) { return Tt.batch(() =>this.getQueryCache().findAll(t).map(({ queryKey: i }) =>[i, this.setQueryData(i, n, r)])) } getQueryState(t, n) { var r; return (r = this.queryCache.find(t, n)) == null ? void 0 : r.state } removeQueries(t, n) { const [r] = ao(t, n), i = this.queryCache; Tt.batch(() =>{ i.findAll(r).forEach(o=>{ i.remove(o) }) }) } resetQueries(t, n, r) { const [i, o] = ao(t, n, r), a = this.queryCache, u = { type: 'active', ...i }; return Tt.batch(() =>(a.findAll(i).forEach(c=>{ c.reset() }), this.refetchQueries(u, o))) } cancelQueries(t, n, r) { const [i, o = { } ] = ao(t, n, r); typeof o.revert > 'u' && (o.revert = !0); const a = Tt.batch(() =>this.queryCache.findAll(i).map(u=>u.cancel(o))); return Promise.all(a).then(yr).catch(yr) } invalidateQueries(t, n, r) { const [i, o] = ao(t, n, r); return Tt.batch(() =>{ var a, u; if (this.queryCache.findAll(i).forEach(f=>{ f.invalidate() }), i.refetchType === 'none') return Promise.resolve(); const c = { ...i, type: (a = (u = i.refetchType) != null ? u : i.type) != null ? a : 'active' }; return this.refetchQueries(c, o) }) } refetchQueries(t, n, r) { const [i, o] = ao(t, n, r), a = Tt.batch(() =>this.queryCache.findAll(i).filter(c=>!c.isDisabled()).map(c=>{ var f; return c.fetch(void 0, { ...o, cancelRefetch: (f = o == null ? void 0 : o.cancelRefetch) != null ? f : !0, meta: { refetchPage: i.refetchPage } }) })); let u = Promise.all(a).then(yr); return o != null && o.throwOnError || (u = u.catch(yr)), u } fetchQuery(t, n, r) { const i = Js(t, n, r), o = this.defaultQueryOptions(i); typeof o.retry > 'u' && (o.retry = !1); const a = this.queryCache.build(this, o); return a.isStaleByTime(o.staleTime) ? a.fetch(o) : Promise.resolve(a.state.data) } prefetchQuery(t, n, r) { return this.fetchQuery(t, n, r).then(yr).catch(yr) } fetchInfiniteQuery(t, n, r) { const i = Js(t, n, r); return i.behavior = cg(), this.fetchQuery(i) } prefetchInfiniteQuery(t, n, r) { return this.fetchInfiniteQuery(t, n, r).then(yr).catch(yr) } resumePausedMutations() { return this.mutationCache.resumePausedMutations() } getQueryCache() { return this.queryCache } getMutationCache() { return this.mutationCache } getLogger() { return this.logger } getDefaultOptions() { return this.defaultOptions } setDefaultOptions(t) { this.defaultOptions = t } setQueryDefaults(t, n) { const r = this.queryDefaults.find(i=>es(t) === es(i.queryKey)); r ? r.defaultOptions = n : this.queryDefaults.push({ queryKey: t, defaultOptions: n }) } getQueryDefaults(t) { if (!t) return; const n = this.queryDefaults.find(r=>Bc(t, r.queryKey)); return n == null ? void 0 : n.defaultOptions } setMutationDefaults(t, n) { const r = this.mutationDefaults.find(i=>es(t) === es(i.mutationKey)); r ? r.defaultOptions = n : this.mutationDefaults.push({ mutationKey: t, defaultOptions: n }) } getMutationDefaults(t) { if (!t) return; const n = this.mutationDefaults.find(r=>Bc(t, r.mutationKey)); return n == null ? void 0 : n.defaultOptions } defaultQueryOptions(t) { if (t != null && t._defaulted) return t; const n = { ...this.defaultOptions.queries, ...this.getQueryDefaults(t == null ? void 0 : t.queryKey), ...t, _defaulted: !0 }; return !n.queryHash && n.queryKey && (n.queryHash = og(n.queryKey, n)), typeof n.refetchOnReconnect > 'u' && (n.refetchOnReconnect = n.networkMode !== 'always'), typeof n.useErrorBoundary > 'u' && (n.useErrorBoundary = !!n.suspense), n } defaultMutationOptions(t) { return t != null && t._defaulted ? t : { ...this.defaultOptions.mutations, ...this.getMutationDefaults(t == null ? void 0 : t.mutationKey), ...t, _defaulted: !0 } } clear() { this.queryCache.clear(), this.mutationCache.clear() } } class cb extends Ys { constructor(t, n) { super (), this.client = t, this.options = n, this.trackedProps = new Set, this.selectError = null, this.bindMethods(), this.setOptions(n) } bindMethods() { this.remove = this.remove.bind(this), this.refetch = this.refetch.bind(this) } onSubscribe() { this.listeners.size === 1 && (this.currentQuery.addObserver(this), fb(this.currentQuery, this.options) && this.executeFetch(), this.updateTimers()) } onUnsubscribe() { this.hasListeners() || this.destroy() } shouldFetchOnReconnect() { return dg(this.currentQuery, this.options, this.options.refetchOnReconnect) } shouldFetchOnWindowFocus() { return dg(this.currentQuery, this.options, this.options.refetchOnWindowFocus) } destroy() { this.listeners = new Set, this.clearStaleTimeout(), this.clearRefetchInterval(), this.currentQuery.removeObserver(this) } setOptions(t, n) { const r = this.options, i = this.currentQuery; if (this.options = this.client.defaultQueryOptions(t), sg(r, this.options) || this.client.getQueryCache().notify({ type: 'observerOptionsUpdated', query: this.currentQuery, observer: this }), typeof this.options.enabled < 'u' && typeof this.options.enabled != 'boolean') throw new Error('Expected enabled to be a boolean'); this.options.queryKey || (this.options.queryKey = r.queryKey), this.updateQuery(); const o = this.hasListeners(); o && db(this.currentQuery, i, this.options, r) && this.executeFetch(), this.updateResult(n), o && (this.currentQuery !== i || this.options.enabled !== r.enabled || this.options.staleTime !== r.staleTime) && this.updateStaleTimeout(); const a = this.computeRefetchInterval(); o && (this.currentQuery !== i || this.options.enabled !== r.enabled || a !== this.currentRefetchInterval) && this.updateRefetchInterval(a) } getOptimisticResult(t) { const n = this.client.getQueryCache().build(this.client, t); return this.createResult(n, t) } getCurrentResult() { return this.currentResult } trackResult(t) { const n = { }; return Object.keys(t).forEach(r=>{ Object.defineProperty(n, r, { configurable: !1, enumerable: !0, get: () =>(this.trackedProps.add(r), t[r]) }) }), n } getCurrentQuery() { return this.currentQuery } remove() { this.client.getQueryCache().remove(this.currentQuery) } refetch({ refetchPage: t, ...n } = { }) { return this.fetch({ ...n, meta: { refetchPage: t } }) } fetchOptimistic(t) { const n = this.client.defaultQueryOptions(t), r = this.client.getQueryCache().build(this.client, n); return r.isFetchingOptimistic = !0, r.fetch().then(() =>this.createResult(r, n)) } fetch(t) { var n; return this.executeFetch({ ...t, cancelRefetch: (n = t.cancelRefetch) != null ? n : !0 }).then(() =>(this.updateResult(), this.currentResult)) } executeFetch(t) { this.updateQuery(); let n = this.currentQuery.fetch(this.options, t); return t != null && t.throwOnError || (n = n.catch(yr)), n } updateStaleTimeout() { if (this.clearStaleTimeout(), Su || this.currentResult.isStale || !ig(this.options.staleTime)) return; const n = Qw(this.currentResult.dataUpdatedAt, this.options.staleTime) + 1; this.staleTimeoutId = setTimeout(() =>{ this.currentResult.isStale || this.updateResult() }, n) } computeRefetchInterval() { var t; return typeof this.options.refetchInterval == 'function' ? this.options.refetchInterval(this.currentResult.data, this.currentQuery) : (t = this.options.refetchInterval) != null ? t : !1 } updateRefetchInterval(t) { this.clearRefetchInterval(), this.currentRefetchInterval = t, !(Su || this.options.enabled === !1 || !ig(this.currentRefetchInterval) || this.currentRefetchInterval === 0) && (this.refetchIntervalId = setInterval(() =>{ (this.options.refetchIntervalInBackground || kc.isFocused()) && this.executeFetch() }, this.currentRefetchInterval)) } updateTimers() { this.updateStaleTimeout(), this.updateRefetchInterval(this.computeRefetchInterval()) } clearStaleTimeout() { this.staleTimeoutId && (clearTimeout(this.staleTimeoutId), this.staleTimeoutId = void 0) } clearRefetchInterval() { this.refetchIntervalId && (clearInterval(this.refetchIntervalId), this.refetchIntervalId = void 0) } createResult(t, n) { const r = this.currentQuery, i = this.options, o = this.currentResult, a = this.currentResultState, u = this.currentResultOptions, c = t !== r, f = c ? t.state : this.currentQueryInitialState, h = c ? this.currentResult : this.previousQueryResult, { state: g } = t; let { dataUpdatedAt: m, error: y, errorUpdatedAt: v, fetchStatus: p, status: E } = g, _ = !1, b = !1, x; if (n._optimisticResults) { const I = this.hasListeners(), Y = !I && fb(t, n), j = I && db(t, r, n, i); (Y || j) && (p = Rc(t.options.networkMode) ? 'fetching' : 'paused', m || (E = 'loading')), n._optimisticResults === 'isRestoring' && (p = 'idle') } if (n.keepPreviousData && !g.dataUpdatedAt && h != null && h.isSuccess && E !== 'error') x = h.data, m = h.dataUpdatedAt, E = h.status, _ = !0; else if (n.select && typeof g.data < 'u') if (o && g.data === (a == null ? void 0 : a.data) && n.select === this.selectFn) x = this.selectResult; else try { this.selectFn = n.select, x = n.select(g.data), x = ug(o == null ? void 0 : o.data, x, n), this.selectResult = x, this.selectError = null } catch (I) { this.selectError = I } else x = g.data; if (typeof n.placeholderData < 'u' && typeof x > 'u' && E === 'loading') { let I; if (o != null && o.isPlaceholderData && n.placeholderData === (u == null ? void 0 : u.placeholderData)) I = o.data; else if (I = typeof n.placeholderData == 'function' ? n.placeholderData() : n.placeholderData, n.select && typeof I < 'u') try { I = n.select(I), this.selectError = null } catch (Y) { this.selectError = Y } typeof I < 'u' && (E = 'success', x = ug(o == null ? void 0 : o.data, I, n), b = !0) } this.selectError && (y = this.selectError, x = this.selectResult, v = Date.now(), E = 'error'); const O = p === 'fetching', B = E === 'loading', k = E === 'error'; return { status: E, fetchStatus: p, isLoading: B, isSuccess: E === 'success', isError: k, isInitialLoading: B && O, data: x, dataUpdatedAt: m, error: y, errorUpdatedAt: v, failureCount: g.fetchFailureCount, failureReason: g.fetchFailureReason, errorUpdateCount: g.errorUpdateCount, isFetched: g.dataUpdateCount > 0 || g.errorUpdateCount > 0, isFetchedAfterMount: g.dataUpdateCount > f.dataUpdateCount || g.errorUpdateCount > f.errorUpdateCount, isFetching: O, isRefetching: O && !B, isLoadingError: k && g.dataUpdatedAt === 0, isPaused: p === 'paused', isPlaceholderData: b, isPreviousData: _, isRefetchError: k && g.dataUpdatedAt !== 0, isStale: hg(t, n), refetch: this.refetch, remove: this.remove } } updateResult(t) { const n = this.currentResult, r = this.createResult(this.currentQuery, this.options); if (this.currentResultState = this.currentQuery.state, this.currentResultOptions = this.options, sg(r, n)) return; this.currentResult = r; const i = { cache: !0 }, o = () =>{ if (!n) return !0; const { notifyOnChangeProps: a } = this.options; if (a === 'all' || !a && !this.trackedProps.size) return !0; const u = new Set(a ?? this.trackedProps); return this.options.useErrorBoundary && u.add('error'), Object.keys(this.currentResult).some(c=>{ const f = c; return this.currentResult[f] !== n[f] && u.has(f) }) }; (t == null ? void 0 : t.listeners) !== !1 && o() && (i.listeners = !0), this.notify({ ...i, ...t }) } updateQuery() { const t = this.client.getQueryCache().build(this.client, this.options); if (t === this.currentQuery) return; const n = this.currentQuery; this.currentQuery = t, this.currentQueryInitialState = t.state, this.previousQueryResult = this.currentResult, this.hasListeners() && (n == null || n.removeObserver(this), t.addObserver(this)) } onQueryUpdate(t) { const n = { }; t.type === 'success' ? n.onSuccess = !t.manual : t.type === 'error' && !Tc(t.error) && (n.onError = !0), this.updateResult(n), this.hasListeners() && this.updateTimers() } notify(t) { Tt.batch(() =>{ if (t.onSuccess) { var n, r, i, o; (n = (r = this.options).onSuccess) == null || n.call(r, this.currentResult.data), (i = (o = this.options).onSettled) == null || i.call(o, this.currentResult.data, null) } else if (t.onError) { var a, u, c, f; (a = (u = this.options).onError) == null || a.call(u, this.currentResult.error), (c = (f = this.options).onSettled) == null || c.call(f, void 0, this.currentResult.error) } t.listeners && this.listeners.forEach(({ listener: h }) =>{ h(this.currentResult) }), t.cache && this.client.getQueryCache().notify({ query: this.currentQuery, type: 'observerResultsUpdated' }) }) } } function Gk(e, t) { return t.enabled !== !1 && !e.state.dataUpdatedAt && !(e.state.status === 'error' && t.retryOnMount === !1) } function fb(e, t) { return Gk(e, t) || e.state.dataUpdatedAt > 0 && dg(e, t, t.refetchOnMount) } function dg(e, t, n) { if (t.enabled !== !1) { const r = typeof n == 'function' ? n(e) : n; return r === 'always' || r !== !1 && hg(e, t) } return !1 } function db(e, t, n, r) { return n.enabled !== !1 && (e !== t || r.enabled === !1) && (!n.suspense || e.state.status !== 'error') && hg(e, n) } function hg(e, t) { return e.isStaleByTime(t.staleTime) } class Qk extends cb { constructor(t, n) { super (t, n) } bindMethods() { super.bindMethods(), this.fetchNextPage = this.fetchNextPage.bind(this), this.fetchPreviousPage = this.fetchPreviousPage.bind(this) } setOptions(t, n) { super.setOptions({ ...t, behavior: cg() }, n) } getOptimisticResult(t) { return t.behavior = cg(), super.getOptimisticResult(t) } fetchNextPage({ pageParam: t, ...n } = { }) { return this.fetch({ ...n, meta: { fetchMore: { direction: 'forward', pageParam: t } } }) } fetchPreviousPage({ pageParam: t, ...n } = { }) { return this.fetch({ ...n, meta: { fetchMore: { direction: 'backward', pageParam: t } } }) } createResult(t, n) { var r, i, o, a, u, c; const { state: f } = t, h = super.createResult(t, n), { isFetching: g, isRefetching: m } = h, y = g && ((r = f.fetchMeta) == null || (i = r.fetchMore) == null ? void 0 : i.direction) === 'forward', v = g && ((o = f.fetchMeta) == null || (a = o.fetchMore) == null ? void 0 : a.direction) === 'backward'; return { ...h, fetchNextPage: this.fetchNextPage, fetchPreviousPage: this.fetchPreviousPage, hasNextPage: Vk(n, (u = f.data) == null ? void 0 : u.pages), hasPreviousPage: Kk(n, (c = f.data) == null ? void 0 : c.pages), isFetchingNextPage: y, isFetchingPreviousPage: v, isRefetching: m && !y && !v } } } let Yk = class extends Ys { constructor(t, n) { super (), this.client = t, this.setOptions(n), this.bindMethods(), this.updateResult() } bindMethods() { this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this) } setOptions(t) { var n; const r = this.options; this.options = this.client.defaultMutationOptions(t), sg(r, this.options) || this.client.getMutationCache().notify({ type: 'observerOptionsUpdated', mutation: this.currentMutation, observer: this }), (n = this.currentMutation) == null || n.setOptions(this.options) } onUnsubscribe() { if (!this.hasListeners()) { var t; (t = this.currentMutation) == null || t.removeObserver(this) } } onMutationUpdate(t) { this.updateResult(); const n = { listeners: !0 }; t.type === 'success' ? n.onSuccess = !0 : t.type === 'error' && (n.onError = !0), this.notify(n) } getCurrentResult() { return this.currentResult } reset() { this.currentMutation = void 0, this.updateResult(), this.notify({ listeners: !0 }) } mutate(t, n) { return this.mutateOptions = n, this.currentMutation && this.currentMutation.removeObserver(this), this.currentMutation = this.client.getMutationCache().build(this.client, { ...this.options, variables: typeof t < 'u' ? t : this.options.variables }), this.currentMutation.addObserver(this), this.currentMutation.execute() } updateResult() { const t = this.currentMutation ? this.currentMutation.state : ub(), n = { ...t, isLoading: t.status === 'loading', isSuccess: t.status === 'success', isError: t.status === 'error', isIdle: t.status === 'idle', mutate: this.mutate, reset: this.reset }; this.currentResult = n } notify(t) { Tt.batch(() =>{ if (this.mutateOptions && this.hasListeners()) { if (t.onSuccess) { var n, r, i, o; (n = (r = this.mutateOptions).onSuccess) == null || n.call(r, this.currentResult.data, this.currentResult.variables, this.currentResult.context), (i = (o = this.mutateOptions).onSettled) == null || i.call(o, this.currentResult.data, null, this.currentResult.variables, this.currentResult.context) } else if (t.onError) { var a, u, c, f; (a = (u = this.mutateOptions).onError) == null || a.call(u, this.currentResult.error, this.currentResult.variables, this.currentResult.context), (c = (f = this.mutateOptions).onSettled) == null || c.call(f, void 0, this.currentResult.error, this.currentResult.variables, this.currentResult.context) } } t.listeners && this.listeners.forEach(({ listener: h }) =>{ h(this.currentResult) }) }) } }; var hb = { exports: { } }, Qn = { }, pb = { exports: { } }, gb = { }; /** * @license React * scheduler.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ (function (e) { function t(V, te) { var le = V.length; V.push(te); e: for (; 0 < le; ) { var ce = le - 1 >>> 1, ye = V[ce]; if (0 < i(ye, te)) V[ce] = te, V[le] = ye, le = ce; else break e } } function n(V) { return V.length === 0 ? null : V[0] } function r(V) { if (V.length === 0) return null; var te = V[0], le = V.pop(); if (le !== te) { V[0] = le; e: for (var ce = 0, ye = V.length, De = ye >>> 1; ce < De; ) { var Ce = 2 * (ce + 1) - 1, L = V[Ce], ne = Ce + 1, J = V[ne]; if (0 > i(L, le)) ne < ye && 0 > i(J, L) ? (V[ce] = J, V[ne] = le, ce = ne) : (V[ce] = L, V[Ce] = le, ce = Ce); else if (ne < ye && 0 > i(J, le)) V[ce] = J, V[ne] = le, ce = ne; else break e } } return te } function i(V, te) { var le = V.sortIndex - te.sortIndex; return le !== 0 ? le : V.id - te.id } if (typeof performance == 'object' && typeof performance.now == 'function') { var o = performance; e.unstable_now = function () { return o.now() } } else { var a = Date, u = a.now(); e.unstable_now = function () { return a.now() - u } } var c = [ ], f = [ ], h = 1, g = null, m = 3, y = !1, v = !1, p = !1, E = typeof setTimeout == 'function' ? setTimeout : null, _ = typeof clearTimeout == 'function' ? clearTimeout : null, b = typeof setImmediate < 'u' ? setImmediate : null; typeof navigator < 'u' && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling); function x(V) { for (var te = n(f); te !== null; ) { if (te.callback === null) r(f); else if (te.startTime <= V) r(f), te.sortIndex = te.expirationTime, t(c, te); else break; te = n(f) } } function O(V) { if (p = !1, x(V), !v) if (n(c) !== null) v = !0, se(B); else { var te = n(f); te !== null && re(O, te.startTime - V) } } function B(V, te) { v = !1, p && (p = !1, _(I), I = - 1), y = !0; var le = m; try { for (x(te), g = n(c); g !== null && (!(g.expirationTime > te) || V && !X()); ) { var ce = g.callback; if (typeof ce == 'function') { g.callback = null, m = g.priorityLevel; var ye = ce(g.expirationTime <= te); te = e.unstable_now(), typeof ye == 'function' ? g.callback = ye : g === n(c) && r(c), x(te) } else r(c); g = n(c) } if (g !== null) var De = !0; else { var Ce = n(f); Ce !== null && re(O, Ce.startTime - te), De = !1 } return De } finally { g = null, m = le, y = !1 } } var k = !1, P = null, I = - 1, Y = 5, j = - 1; function X() { return !(e.unstable_now() - j < Y) } function $() { if (P !== null) { var V = e.unstable_now(); j = V; var te = !0; try { te = P(!0, V) } finally { te ? U() : (k = !1, P = null) } } else k = !1 } var U; if (typeof b == 'function') U = function () { b($) }; else if (typeof MessageChannel < 'u') { var T = new MessageChannel, G = T.port2; T.port1.onmessage = $, U = function () { G.postMessage(null) } } else U = function () { E($, 0) }; function se(V) { P = V, k || (k = !0, U()) } function re(V, te) { I = E(function () { V(e.unstable_now()) }, te) } e.unstable_IdlePriority = 5, e.unstable_ImmediatePriority = 1, e.unstable_LowPriority = 4, e.unstable_NormalPriority = 3, e.unstable_Profiling = null, e.unstable_UserBlockingPriority = 2, e.unstable_cancelCallback = function (V) { V.callback = null }, e.unstable_continueExecution = function () { v || y || (v = !0, se(B)) }, e.unstable_forceFrameRate = function (V) { 0 > V || 125 < V ? console.error('forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported') : Y = 0 < V ? Math.floor(1000 / V) : 5 }, e.unstable_getCurrentPriorityLevel = function () { return m }, e.unstable_getFirstCallbackNode = function () { return n(c) }, e.unstable_next = function (V) { switch (m) { case 1: case 2: case 3: var te = 3; break; default: te = m } var le = m; m = te; try { return V() } finally { m = le } }, e.unstable_pauseExecution = function () { }, e.unstable_requestPaint = function () { }, e.unstable_runWithPriority = function (V, te) { switch (V) { case 1: case 2: case 3: case 4: case 5: break; default: V = 3 } var le = m; m = V; try { return te() } finally { m = le } }, e.unstable_scheduleCallback = function (V, te, le) { var ce = e.unstable_now(); switch (typeof le == 'object' && le !== null ? (le = le.delay, le = typeof le == 'number' && 0 < le ? ce + le : ce) : le = ce, V) { case 1: var ye = - 1; break; case 2: ye = 250; break; case 5: ye = 1073741823; break; case 4: ye = 10000; break; default: ye = 5000 } return ye = le + ye, V = { id: h++, callback: te, priorityLevel: V, startTime: le, expirationTime: ye, sortIndex: - 1 }, le > ce ? (V.sortIndex = le, t(f, V), n(c) === null && V === n(f) && (p ? (_(I), I = - 1) : p = !0, re(O, le - ce))) : (V.sortIndex = ye, t(c, V), v || y || (v = !0, se(B))), V }, e.unstable_shouldYield = X, e.unstable_wrapCallback = function (V) { var te = m; return function () { var le = m; m = te; try { return V.apply(this, arguments) } finally { m = le } } } }) (gb), pb.exports = gb; var Jk = pb.exports; /** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var mb = D, Yn = Jk; function pe(e) { for (var t = 'https://reactjs.org/docs/error-decoder.html?invariant=' + e, n = 1; n < arguments.length; n++) t += '&args[]=' + encodeURIComponent(arguments[n]); return 'Minified React error #' + e + '; visit ' + t + ' for the full message or use the non-minified dev environment for full errors and additional helpful warnings.' } var vb = new Set, Fu = { }; function ts(e, t) { Xs(e, t), Xs(e + 'Capture', t) } function Xs(e, t) { for (Fu[e] = t, e = 0; e < t.length; e++) vb.add(t[e]) } var Si = !(typeof window > 'u' || typeof window.document > 'u' || typeof window.document.createElement > 'u'), pg = Object.prototype.hasOwnProperty, Xk = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, yb = { }, wb = { }; function Zk(e) { return pg.call(wb, e) ? !0 : pg.call(yb, e) ? !1 : Xk.test(e) ? wb[e] = !0 : (yb[e] = !0, !1) } function e4(e, t, n, r) { if (n !== null && n.type === 0) return !1; switch (typeof t) { case 'function': case 'symbol': return !0; case 'boolean': return r ? !1 : n !== null ? !n.acceptsBooleans : (e = e.toLowerCase().slice(0, 5), e !== 'data-' && e !== 'aria-'); default: return !1 } } function t4(e, t, n, r) { if (t === null || typeof t > 'u' || e4(e, t, n, r)) return !0; if (r) return !1; if (n !== null) switch (n.type) { case 3: return !t; case 4: return t === !1; case 5: return isNaN(t); case 6: return isNaN(t) || 1 > t } return !1 } function An(e, t, n, r, i, o, a) { this.acceptsBooleans = t === 2 || t === 3 || t === 4, this.attributeName = r, this.attributeNamespace = i, this.mustUseProperty = n, this.propertyName = e, this.type = t, this.sanitizeURL = o, this.removeEmptyString = a } var un = { }; 'children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style'.split(' ').forEach(function (e) { un[e] = new An(e, 0, !1, e, null, !1, !1) }), [ ['acceptCharset', 'accept-charset'], [ 'className', 'class' ], [ 'htmlFor', 'for' ], [ 'httpEquiv', 'http-equiv' ] ].forEach(function (e) { var t = e[0]; un[t] = new An(t, 1, !1, e[1], null, !1, !1) }), [ 'contentEditable', 'draggable', 'spellCheck', 'value' ].forEach(function (e) { un[e] = new An(e, 2, !1, e.toLowerCase(), null, !1, !1) }), [ 'autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha' ].forEach(function (e) { un[e] = new An(e, 2, !1, e, null, !1, !1) }), 'allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope'.split(' ').forEach(function (e) { un[e] = new An(e, 3, !1, e.toLowerCase(), null, !1, !1) }), [ 'checked', 'multiple', 'muted', 'selected' ].forEach(function (e) { un[e] = new An(e, 3, !0, e, null, !1, !1) }), [ 'capture', 'download' ].forEach(function (e) { un[e] = new An(e, 4, !1, e, null, !1, !1) }), [ 'cols', 'rows', 'size', 'span' ].forEach(function (e) { un[e] = new An(e, 6, !1, e, null, !1, !1) }), [ 'rowSpan', 'start' ].forEach(function (e) { un[e] = new An(e, 5, !1, e.toLowerCase(), null, !1, !1) }); var gg = /[\-:]([a-z])/g; function mg(e) { return e[1].toUpperCase() } 'accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height'.split(' ').forEach(function (e) { var t = e.replace(gg, mg); un[t] = new An(t, 1, !1, e, null, !1, !1) }), 'xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type'.split(' ').forEach(function (e) { var t = e.replace(gg, mg); un[t] = new An(t, 1, !1, e, 'http://www.w3.org/1999/xlink', !1, !1) }), [ 'xml:base', 'xml:lang', 'xml:space' ].forEach(function (e) { var t = e.replace(gg, mg); un[t] = new An(t, 1, !1, e, 'http://www.w3.org/XML/1998/namespace', !1, !1) }), [ 'tabIndex', 'crossOrigin' ].forEach(function (e) { un[e] = new An(e, 1, !1, e.toLowerCase(), null, !1, !1) }), un.xlinkHref = new An('xlinkHref', 1, !1, 'xlink:href', 'http://www.w3.org/1999/xlink', !0, !1), [ 'src', 'href', 'action', 'formAction' ].forEach(function (e) { un[e] = new An(e, 1, !1, e.toLowerCase(), null, !0, !0) }); function vg(e, t, n, r) { var i = un.hasOwnProperty(t) ? un[t] : null; (i !== null ? i.type !== 0 : r || !(2 < t.length) || t[0] !== 'o' && t[0] !== 'O' || t[1] !== 'n' && t[1] !== 'N') && (t4(t, n, i, r) && (n = null), r || i === null ? Zk(t) && (n === null ? e.removeAttribute(t) : e.setAttribute(t, '' + n)) : i.mustUseProperty ? e[i.propertyName] = n === null ? i.type === 3 ? !1 : '' : n : (t = i.attributeName, r = i.attributeNamespace, n === null ? e.removeAttribute(t) : (i = i.type, n = i === 3 || i === 4 && n === !0 ? '' : '' + n, r ? e.setAttributeNS(r, t, n) : e.setAttribute(t, n)))) } var Oi = mb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, Ic = Symbol.for('react.element'), Zs = Symbol.for('react.portal'), ea = Symbol.for('react.fragment'), yg = Symbol.for('react.strict_mode'), wg = Symbol.for('react.profiler'), bb = Symbol.for('react.provider'), _b = Symbol.for('react.context'), bg = Symbol.for('react.forward_ref'), _g = Symbol.for('react.suspense'), Cg = Symbol.for('react.suspense_list'), Eg = Symbol.for('react.memo'), uo = Symbol.for('react.lazy'), Cb = Symbol.for('react.offscreen'), Eb = Symbol.iterator; function Bu(e) { return e === null || typeof e != 'object' ? null : (e = Eb && e[Eb] || e['@@iterator'], typeof e == 'function' ? e : null) } var Ot = Object.assign, Dg; function ku(e) { if (Dg === void 0) try { throw Error() } catch (n) { var t = n.stack.trim().match(/\n( *(at )?)/); Dg = t && t[1] || '' } return ` ` + Dg + e } var xg = !1; function Ag(e, t) { if (!e || xg) return ''; xg = !0; var n = Error.prepareStackTrace; Error.prepareStackTrace = void 0; try { if (t) if (t = function () { throw Error() }, Object.defineProperty(t.prototype, 'props', { set: function () { throw Error() } }), typeof Reflect == 'object' && Reflect.construct) { try { Reflect.construct(t, [ ]) } catch (f) { var r = f } Reflect.construct(e, [ ], t) } else { try { t.call() } catch (f) { r = f } e.call(t.prototype) } else { try { throw Error() } catch (f) { r = f } e() } } catch (f) { if (f && r && typeof f.stack == 'string') { for (var i = f.stack.split(` `), o = r.stack.split(` `), a = i.length - 1, u = o.length - 1; 1 <= a && 0 <= u && i[a] !== o[u]; ) u--; for (; 1 <= a && 0 <= u; a--, u--) if (i[a] !== o[u]) { if (a !== 1 || u !== 1) do if (a--, u--, 0 > u || i[a] !== o[u]) { var c = ` ` + i[a].replace(' at new ', ' at '); return e.displayName && c.includes('<anonymous>') && (c = c.replace('<anonymous>', e.displayName)), c } while (1 <= a && 0 <= u); break } } } finally { xg = !1, Error.prepareStackTrace = n } return (e = e ? e.displayName || e.name : '') ? ku(e) : '' } function n4(e) { switch (e.tag) { case 5: return ku(e.type); case 16: return ku('Lazy'); case 13: return ku('Suspense'); case 19: return ku('SuspenseList'); case 0: case 2: case 15: return e = Ag(e.type, !1), e; case 11: return e = Ag(e.type.render, !1), e; case 1: return e = Ag(e.type, !0), e; default: return '' } } function Sg(e) { if (e == null) return null; if (typeof e == 'function') return e.displayName || e.name || null; if (typeof e == 'string') return e; switch (e) { case ea: return 'Fragment'; case Zs: return 'Portal'; case wg: return 'Profiler'; case yg: return 'StrictMode'; case _g: return 'Suspense'; case Cg: return 'SuspenseList' } if (typeof e == 'object') switch (e.$$typeof) { case _b: return (e.displayName || 'Context') + '.Consumer'; case bb: return (e._context.displayName || 'Context') + '.Provider'; case bg: var t = e.render; return e = e.displayName, e || (e = t.displayName || t.name || '', e = e !== '' ? 'ForwardRef(' + e + ')' : 'ForwardRef'), e; case Eg: return t = e.displayName || null, t !== null ? t : Sg(e.type) || 'Memo'; case uo: t = e._payload, e = e._init; try { return Sg(e(t)) } catch { } } return null } function r4(e) { var t = e.type; switch (e.tag) { case 24: return 'Cache'; case 9: return (t.displayName || 'Context') + '.Consumer'; case 10: return (t._context.displayName || 'Context') + '.Provider'; case 18: return 'DehydratedFragment'; case 11: return e = t.render, e = e.displayName || e.name || '', t.displayName || (e !== '' ? 'ForwardRef(' + e + ')' : 'ForwardRef'); case 7: return 'Fragment'; case 5: return t; case 4: return 'Portal'; case 3: return 'Root'; case 6: return 'Text'; case 16: return Sg(t); case 8: return t === yg ? 'StrictMode' : 'Mode'; case 22: return 'Offscreen'; case 12: return 'Profiler'; case 21: return 'Scope'; case 13: return 'Suspense'; case 19: return 'SuspenseList'; case 25: return 'TracingMarker'; case 1: case 0: case 17: case 2: case 14: case 15: if (typeof t == 'function') return t.displayName || t.name || null; if (typeof t == 'string') return t } return null } function lo(e) { switch (typeof e) { case 'boolean': case 'number': case 'string': case 'undefined': return e; case 'object': return e; default: return '' } } function Db(e) { var t = e.type; return (e = e.nodeName) && e.toLowerCase() === 'input' && (t === 'checkbox' || t === 'radio') } function i4(e) { var t = Db(e) ? 'checked' : 'value', n = Object.getOwnPropertyDescriptor(e.constructor.prototype, t), r = '' + e[t]; if (!e.hasOwnProperty(t) && typeof n < 'u' && typeof n.get == 'function' && typeof n.set == 'function') { var i = n.get, o = n.set; return Object.defineProperty(e, t, { configurable: !0, get: function () { return i.call(this) }, set: function (a) { r = '' + a, o.call(this, a) } }), Object.defineProperty(e, t, { enumerable: n.enumerable }), { getValue: function () { return r }, setValue: function (a) { r = '' + a }, stopTracking: function () { e._valueTracker = null, delete e[t] } } } } function Nc(e) { e._valueTracker || (e._valueTracker = i4(e)) } function xb(e) { if (!e) return !1; var t = e._valueTracker; if (!t) return !0; var n = t.getValue(), r = ''; return e && (r = Db(e) ? e.checked ? 'true' : 'false' : e.value), e = r, e !== n ? (t.setValue(e), !0) : !1 } function Lc(e) { if (e = e || (typeof document < 'u' ? document : void 0), typeof e > 'u') return null; try { return e.activeElement || e.body } catch { return e.body } } function Og(e, t) { var n = t.checked; return Ot({ }, t, { defaultChecked: void 0, defaultValue: void 0, value: void 0, checked: n ?? e._wrapperState.initialChecked }) } function Ab(e, t) { var n = t.defaultValue == null ? '' : t.defaultValue, r = t.checked != null ? t.checked : t.defaultChecked; n = lo(t.value != null ? t.value : n), e._wrapperState = { initialChecked: r, initialValue: n, controlled: t.type === 'checkbox' || t.type === 'radio' ? t.checked != null : t.value != null } } function Sb(e, t) { t = t.checked, t != null && vg(e, 'checked', t, !1) } function Fg(e, t) { Sb(e, t); var n = lo(t.value), r = t.type; if (n != null) r === 'number' ? (n === 0 && e.value === '' || e.value != n) && (e.value = '' + n) : e.value !== '' + n && (e.value = '' + n); else if (r === 'submit' || r === 'reset') { e.removeAttribute('value'); return } t.hasOwnProperty('value') ? Bg(e, t.type, n) : t.hasOwnProperty('defaultValue') && Bg(e, t.type, lo(t.defaultValue)), t.checked == null && t.defaultChecked != null && (e.defaultChecked = !!t.defaultChecked) } function Ob(e, t, n) { if (t.hasOwnProperty('value') || t.hasOwnProperty('defaultValue')) { var r = t.type; if (!(r !== 'submit' && r !== 'reset' || t.value !== void 0 && t.value !== null)) return; t = '' + e._wrapperState.initialValue, n || t === e.value || (e.value = t), e.defaultValue = t } n = e.name, n !== '' && (e.name = ''), e.defaultChecked = !!e._wrapperState.initialChecked, n !== '' && (e.name = n) } function Bg(e, t, n) { (t !== 'number' || Lc(e.ownerDocument) !== e) && (n == null ? e.defaultValue = '' + e._wrapperState.initialValue : e.defaultValue !== '' + n && (e.defaultValue = '' + n)) } var Pu = Array.isArray; function ta(e, t, n, r) { if (e = e.options, t) { t = { }; for (var i = 0; i < n.length; i++) t['$' + n[i]] = !0; for (n = 0; n < e.length; n++) i = t.hasOwnProperty('$' + e[n].value), e[n].selected !== i && (e[n].selected = i), i && r && (e[n].defaultSelected = !0) } else { for (n = '' + lo(n), t = null, i = 0; i < e.length; i++) { if (e[i].value === n) { e[i].selected = !0, r && (e[i].defaultSelected = !0); return } t !== null || e[i].disabled || (t = e[i]) } t !== null && (t.selected = !0) } } function kg(e, t) { if (t.dangerouslySetInnerHTML != null) throw Error(pe(91)); return Ot({ }, t, { value: void 0, defaultValue: void 0, children: '' + e._wrapperState.initialValue }) } function Fb(e, t) { var n = t.value; if (n == null) { if (n = t.children, t = t.defaultValue, n != null) { if (t != null) throw Error(pe(92)); if (Pu(n)) { if (1 < n.length) throw Error(pe(93)); n = n[0] } t = n } t == null && (t = ''), n = t } e._wrapperState = { initialValue: lo(n) } } function Bb(e, t) { var n = lo(t.value), r = lo(t.defaultValue); n != null && (n = '' + n, n !== e.value && (e.value = n), t.defaultValue == null && e.defaultValue !== n && (e.defaultValue = n)), r != null && (e.defaultValue = '' + r) } function kb(e) { var t = e.textContent; t === e._wrapperState.initialValue && t !== '' && t !== null && (e.value = t) } function Pb(e) { switch (e) { case 'svg': return 'http://www.w3.org/2000/svg'; case 'math': return 'http://www.w3.org/1998/Math/MathML'; default: return 'http://www.w3.org/1999/xhtml' } } function Pg(e, t) { return e == null || e === 'http://www.w3.org/1999/xhtml' ? Pb(t) : e === 'http://www.w3.org/2000/svg' && t === 'foreignObject' ? 'http://www.w3.org/1999/xhtml' : e } var Mc, Rb = function (e) { return typeof MSApp < 'u' && MSApp.execUnsafeLocalFunction ? function (t, n, r, i) { MSApp.execUnsafeLocalFunction(function () { return e(t, n, r, i) }) } : e }(function (e, t) { if (e.namespaceURI !== 'http://www.w3.org/2000/svg' || 'innerHTML' in e) e.innerHTML = t; else { for (Mc = Mc || document.createElement('div'), Mc.innerHTML = '<svg>' + t.valueOf().toString() + '</svg>', t = Mc.firstChild; e.firstChild; ) e.removeChild(e.firstChild); for (; t.firstChild; ) e.appendChild(t.firstChild) } }); function Ru(e, t) { if (t) { var n = e.firstChild; if (n && n === e.lastChild && n.nodeType === 3) { n.nodeValue = t; return } } e.textContent = t } var Tu = { animationIterationCount: !0, aspectRatio: !0, borderImageOutset: !0, borderImageSlice: !0, borderImageWidth: !0, boxFlex: !0, boxFlexGroup: !0, boxOrdinalGroup: !0, columnCount: !0, columns: !0, flex: !0, flexGrow: !0, flexPositive: !0, flexShrink: !0, flexNegative: !0, flexOrder: !0, gridArea: !0, gridRow: !0, gridRowEnd: !0, gridRowSpan: !0, gridRowStart: !0, gridColumn: !0, gridColumnEnd: !0, gridColumnSpan: !0, gridColumnStart: !0, fontWeight: !0, lineClamp: !0, lineHeight: !0, opacity: !0, order: !0, orphans: !0, tabSize: !0, widows: !0, zIndex: !0, zoom: !0, fillOpacity: !0, floodOpacity: !0, stopOpacity: !0, strokeDasharray: !0, strokeDashoffset: !0, strokeMiterlimit: !0, strokeOpacity: !0, strokeWidth: !0 }, o4 = [ 'Webkit', 'ms', 'Moz', 'O' ]; Object.keys(Tu).forEach(function (e) { o4.forEach(function (t) { t = t + e.charAt(0).toUpperCase() + e.substring(1), Tu[t] = Tu[e] }) }); function Tb(e, t, n) { return t == null || typeof t == 'boolean' || t === '' ? '' : n || typeof t != 'number' || t === 0 || Tu.hasOwnProperty(e) && Tu[e] ? ('' + t).trim() : t + 'px' } function Ib(e, t) { e = e.style; for (var n in t) if (t.hasOwnProperty(n)) { var r = n.indexOf('--') === 0, i = Tb(n, t[n], r); n === 'float' && (n = 'cssFloat'), r ? e.setProperty(n, i) : e[n] = i } } var s4 = Ot({ menuitem: !0 }, { area: !0, base: !0, br: !0, col: !0, embed: !0, hr: !0, img: !0, input: !0, keygen: !0, link: !0, meta: !0, param: !0, source: !0, track: !0, wbr: !0 }); function Rg(e, t) { if (t) { if (s4[e] && (t.children != null || t.dangerouslySetInnerHTML != null)) throw Error(pe(137, e)); if (t.dangerouslySetInnerHTML != null) { if (t.children != null) throw Error(pe(60)); if (typeof t.dangerouslySetInnerHTML != 'object' || !('__html' in t.dangerouslySetInnerHTML)) throw Error(pe(61)) } if (t.style != null && typeof t.style != 'object') throw Error(pe(62)) } } function Tg(e, t) { if (e.indexOf('-') === - 1) return typeof t.is == 'string'; switch (e) { case 'annotation-xml': case 'color-profile': case 'font-face': case 'font-face-src': case 'font-face-uri': case 'font-face-format': case 'font-face-name': case 'missing-glyph': return !1; default: return !0 } } var Ig = null; function Ng(e) { return e = e.target || e.srcElement || window, e.correspondingUseElement && (e = e.correspondingUseElement), e.nodeType === 3 ? e.parentNode : e } var Lg = null, na = null, ra = null; function Nb(e) { if (e = nl(e)) { if (typeof Lg != 'function') throw Error(pe(280)); var t = e.stateNode; t && (t = uf(t), Lg(e.stateNode, e.type, t)) } } function Lb(e) { na ? ra ? ra.push(e) : ra = [ e ] : na = e } function Mb() { if (na) { var e = na, t = ra; if (ra = na = null, Nb(e), t) for (e = 0; e < t.length; e++) Nb(t[e]) } } function $b(e, t) { return e(t) } function jb() { } var Mg = !1; function zb(e, t, n) { if (Mg) return e(t, n); Mg = !0; try { return $b(e, t, n) } finally { Mg = !1, (na !== null || ra !== null) && (jb(), Mb()) } } function Iu(e, t) { var n = e.stateNode; if (n === null) return null; var r = uf(n); if (r === null) return null; n = r[t]; e: switch (t) { case 'onClick': case 'onClickCapture': case 'onDoubleClick': case 'onDoubleClickCapture': case 'onMouseDown': case 'onMouseDownCapture': case 'onMouseMove': case 'onMouseMoveCapture': case 'onMouseUp': case 'onMouseUpCapture': case 'onMouseEnter': (r = !r.disabled) || (e = e.type, r = !(e === 'button' || e === 'input' || e === 'select' || e === 'textarea')), e = !r; break e; default: e = !1 } if (e) return null; if (n && typeof n != 'function') throw Error(pe(231, t, typeof n)); return n } var $g = !1; if (Si) try { var Nu = { }; Object.defineProperty(Nu, 'passive', { get: function () { $g = !0 } }), window.addEventListener('test', Nu, Nu), window.removeEventListener('test', Nu, Nu) } catch { $g = !1 } function a4(e, t, n, r, i, o, a, u, c) { var f = Array.prototype.slice.call(arguments, 3); try { t.apply(n, f) } catch (h) { this.onError(h) } } var Lu = !1, $c = null, jc = !1, jg = null, u4 = { onError: function (e) { Lu = !0, $c = e } }; function l4(e, t, n, r, i, o, a, u, c) { Lu = !1, $c = null, a4.apply(u4, arguments) } function c4(e, t, n, r, i, o, a, u, c) { if (l4.apply(this, arguments), Lu) { if (Lu) { var f = $c; Lu = !1, $c = null } else throw Error(pe(198)); jc || (jc = !0, jg = f) } } function ns(e) { var t = e, n = e; if (e.alternate) for (; t.return; ) t = t.return; else { e = t; do t = e, t.flags & 4098 && (n = t.return), e = t.return; while (e) } return t.tag === 3 ? n : null } function Ub(e) { if (e.tag === 13) { var t = e.memoizedState; if (t === null && (e = e.alternate, e !== null && (t = e.memoizedState)), t !== null) return t.dehydrated } return null } function Hb(e) { if (ns(e) !== e) throw Error(pe(188)) } function f4(e) { var t = e.alternate; if (!t) { if (t = ns(e), t === null) throw Error(pe(188)); return t !== e ? null : e } for (var n = e, r = t; ; ) { var i = n.return; if (i === null) break; var o = i.alternate; if (o === null) { if (r = i.return, r !== null) { n = r; continue } break } if (i.child === o.child) { for (o = i.child; o; ) { if (o === n) return Hb(i), e; if (o === r) return Hb(i), t; o = o.sibling } throw Error(pe(188)) } if (n.return !== r.return) n = i, r = o; else { for (var a = !1, u = i.child; u; ) { if (u === n) { a = !0, n = i, r = o; break } if (u === r) { a = !0, r = i, n = o; break } u = u.sibling } if (!a) { for (u = o.child; u; ) { if (u === n) { a = !0, n = o, r = i; break } if (u === r) { a = !0, r = o, n = i; break } u = u.sibling } if (!a) throw Error(pe(189)) } } if (n.alternate !== r) throw Error(pe(190)) } if (n.tag !== 3) throw Error(pe(188)); return n.stateNode.current === n ? e : t } function Wb(e) { return e = f4(e), e !== null ? Vb(e) : null } function Vb(e) { if (e.tag === 5 || e.tag === 6) return e; for (e = e.child; e !== null; ) { var t = Vb(e); if (t !== null) return t; e = e.sibling } return null } var Kb = Yn.unstable_scheduleCallback, qb = Yn.unstable_cancelCallback, d4 = Yn.unstable_shouldYield, h4 = Yn.unstable_requestPaint, jt = Yn.unstable_now, p4 = Yn.unstable_getCurrentPriorityLevel, zg = Yn.unstable_ImmediatePriority, Gb = Yn.unstable_UserBlockingPriority, zc = Yn.unstable_NormalPriority, g4 = Yn.unstable_LowPriority, Qb = Yn.unstable_IdlePriority, Uc = null, ii = null; function m4(e) { if (ii && typeof ii.onCommitFiberRoot == 'function') try { ii.onCommitFiberRoot(Uc, e, void 0, (e.current.flags & 128) === 128) } catch { } } var Ur = Math.clz32 ? Math.clz32 : w4, v4 = Math.log, y4 = Math.LN2; function w4(e) { return e >>>= 0, e === 0 ? 32 : 31 - (v4(e) / y4 | 0) | 0 } var Hc = 64, Wc = 4194304; function Mu(e) { switch (e & - e) { case 1: return 1; case 2: return 2; case 4: return 4; case 8: return 8; case 16: return 16; case 32: return 32; case 64: case 128: case 256: case 512: case 1024: case 2048: case 4096: case 8192: case 16384: case 32768: case 65536: case 131072: case 262144: case 524288: case 1048576: case 2097152: return e & 4194240; case 4194304: case 8388608: case 16777216: case 33554432: case 67108864: return e & 130023424; case 134217728: return 134217728; case 268435456: return 268435456; case 536870912: return 536870912; case 1073741824: return 1073741824; default: return e } } function Vc(e, t) { var n = e.pendingLanes; if (n === 0) return 0; var r = 0, i = e.suspendedLanes, o = e.pingedLanes, a = n & 268435455; if (a !== 0) { var u = a & ~i; u !== 0 ? r = Mu(u) : (o &= a, o !== 0 && (r = Mu(o))) } else a = n & ~i, a !== 0 ? r = Mu(a) : o !== 0 && (r = Mu(o)); if (r === 0) return 0; if (t !== 0 && t !== r && !(t & i) && (i = r & - r, o = t & - t, i >= o || i === 16 && (o & 4194240) !== 0)) return t; if (r & 4 && (r |= n & 16), t = e.entangledLanes, t !== 0) for (e = e.entanglements, t &= r; 0 < t; ) n = 31 - Ur(t), i = 1 << n, r |= e[n], t &= ~i; return r } function b4(e, t) { switch (e) { case 1: case 2: case 4: return t + 250; case 8: case 16: case 32: case 64: case 128: case 256: case 512: case 1024: case 2048: case 4096: case 8192: case 16384: case 32768: case 65536: case 131072: case 262144: case 524288: case 1048576: case 2097152: return t + 5000; case 4194304: case 8388608: case 16777216: case 33554432: case 67108864: return - 1; case 134217728: case 268435456: case 536870912: case 1073741824: return - 1; default: return - 1 } } function _4(e, t) { for (var n = e.suspendedLanes, r = e.pingedLanes, i = e.expirationTimes, o = e.pendingLanes; 0 < o; ) { var a = 31 - Ur(o), u = 1 << a, c = i[a]; c === - 1 ? (!(u & n) || u & r) && (i[a] = b4(u, t)) : c <= t && (e.expiredLanes |= u), o &= ~u } } function Ug(e) { return e = e.pendingLanes & - 1073741825, e !== 0 ? e : e & 1073741824 ? 1073741824 : 0 } function Yb() { var e = Hc; return Hc <<= 1, !(Hc & 4194240) && (Hc = 64), e } function Hg(e) { for (var t = [ ], n = 0; 31 > n; n++) t.push(e); return t } function $u(e, t, n) { e.pendingLanes |= t, t !== 536870912 && (e.suspendedLanes = 0, e.pingedLanes = 0), e = e.eventTimes, t = 31 - Ur(t), e[t] = n } function C4(e, t) { var n = e.pendingLanes & ~t; e.pendingLanes = t, e.suspendedLanes = 0, e.pingedLanes = 0, e.expiredLanes &= t, e.mutableReadLanes &= t, e.entangledLanes &= t, t = e.entanglements; var r = e.eventTimes; for (e = e.expirationTimes; 0 < n; ) { var i = 31 - Ur(n), o = 1 << i; t[i] = 0, r[i] = - 1, e[i] = - 1, n &= ~o } } function Wg(e, t) { var n = e.entangledLanes |= t; for (e = e.entanglements; n; ) { var r = 31 - Ur(n), i = 1 << r; i & t | e[r] & t && (e[r] |= t), n &= ~i } } var at = 0; function Jb(e) { return e &= - e, 1 < e ? 4 < e ? e & 268435455 ? 16 : 536870912 : 4 : 1 } var Xb, Vg, Zb, e_, t_, Kg = !1, Kc = [ ], co = null, fo = null, ho = null, ju = new Map, zu = new Map, po = [ ], E4 = 'mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit'.split(' '); function n_(e, t) { switch (e) { case 'focusin': case 'focusout': co = null; break; case 'dragenter': case 'dragleave': fo = null; break; case 'mouseover': case 'mouseout': ho = null; break; case 'pointerover': case 'pointerout': ju.delete(t.pointerId); break; case 'gotpointercapture': case 'lostpointercapture': zu.delete(t.pointerId) } } function Uu(e, t, n, r, i, o) { return e === null || e.nativeEvent !== o ? (e = { blockedOn: t, domEventName: n, eventSystemFlags: r, nativeEvent: o, targetContainers: [ i ] }, t !== null && (t = nl(t), t !== null && Vg(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, i !== null && t.indexOf(i) === - 1 && t.push(i), e) } function D4(e, t, n, r, i) { switch (t) { case 'focusin': return co = Uu(co, e, t, n, r, i), !0; case 'dragenter': return fo = Uu(fo, e, t, n, r, i), !0; case 'mouseover': return ho = Uu(ho, e, t, n, r, i), !0; case 'pointerover': var o = i.pointerId; return ju.set(o, Uu(ju.get(o) || null, e, t, n, r, i)), !0; case 'gotpointercapture': return o = i.pointerId, zu.set(o, Uu(zu.get(o) || null, e, t, n, r, i)), !0 } return !1 } function r_(e) { var t = rs(e.target); if (t !== null) { var n = ns(t); if (n !== null) { if (t = n.tag, t === 13) { if (t = Ub(n), t !== null) { e.blockedOn = t, t_(e.priority, function () { Zb(n) }); return } } else if (t === 3 && n.stateNode.current.memoizedState.isDehydrated) { e.blockedOn = n.tag === 3 ? n.stateNode.containerInfo : null; return } } } e.blockedOn = null } function qc(e) { if (e.blockedOn !== null) return !1; for (var t = e.targetContainers; 0 < t.length; ) { var n = Gg(e.domEventName, e.eventSystemFlags, t[0], e.nativeEvent); if (n === null) { n = e.nativeEvent; var r = new n.constructor(n.type, n); Ig = r, n.target.dispatchEvent(r), Ig = null } else return t = nl(n), t !== null && Vg(t), e.blockedOn = n, !1; t.shift() } return !0 } function i_(e, t, n) { qc(e) && n.delete(t) } function x4() { Kg = !1, co !== null && qc(co) && (co = null), fo !== null && qc(fo) && (fo = null), ho !== null && qc(ho) && (ho = null), ju.forEach(i_), zu.forEach(i_) } function Hu(e, t) { e.blockedOn === t && (e.blockedOn = null, Kg || (Kg = !0, Yn.unstable_scheduleCallback(Yn.unstable_NormalPriority, x4))) } function Wu(e) { function t(i) { return Hu(i, e) } if (0 < Kc.length) { Hu(Kc[0], e); for (var n = 1; n < Kc.length; n++) { var r = Kc[n]; r.blockedOn === e && (r.blockedOn = null) } } for (co !== null && Hu(co, e), fo !== null && Hu(fo, e), ho !== null && Hu(ho, e), ju.forEach(t), zu.forEach(t), n = 0; n < po.length; n++) r = po[n], r.blockedOn === e && (r.blockedOn = null); for (; 0 < po.length && (n = po[0], n.blockedOn === null); ) r_(n), n.blockedOn === null && po.shift() } var ia = Oi.ReactCurrentBatchConfig, Gc = !0; function A4(e, t, n, r) { var i = at, o = ia.transition; ia.transition = null; try { at = 1, qg(e, t, n, r) } finally { at = i, ia.transition = o } } function S4(e, t, n, r) { var i = at, o = ia.transition; ia.transition = null; try { at = 4, qg(e, t, n, r) } finally { at = i, ia.transition = o } } function qg(e, t, n, r) { if (Gc) { var i = Gg(e, t, n, r); if (i === null) f0(e, t, r, Qc, n), n_(e, r); else if (D4(i, e, t, n, r)) r.stopPropagation(); else if (n_(e, r), t & 4 && - 1 < E4.indexOf(e)) { for (; i !== null; ) { var o = nl(i); if (o !== null && Xb(o), o = Gg(e, t, n, r), o === null && f0(e, t, r, Qc, n), o === i) break; i = o } i !== null && r.stopPropagation() } else f0(e, t, r, null, n) } } var Qc = null; function Gg(e, t, n, r) { if (Qc = null, e = Ng(r), e = rs(e), e !== null) if (t = ns(e), t === null) e = null; else if (n = t.tag, n === 13) { if (e = Ub(t), e !== null) return e; e = null } else if (n === 3) { if (t.stateNode.current.memoizedState.isDehydrated) return t.tag === 3 ? t.stateNode.containerInfo : null; e = null } else t !== e && (e = null); return Qc = e, null } function o_(e) { switch (e) { case 'cancel': case 'click': case 'close': case 'contextmenu': case 'copy': case 'cut': case 'auxclick': case 'dblclick': case 'dragend': case 'dragstart': case 'drop': case 'focusin': case 'focusout': case 'input': case 'invalid': case 'keydown': case 'keypress': case 'keyup': case 'mousedown': case 'mouseup': case 'paste': case 'pause': case 'play': case 'pointercancel': case 'pointerdown': case 'pointerup': case 'ratechange': case 'reset': case 'resize': case 'seeked': case 'submit': case 'touchcancel': case 'touchend': case 'touchstart': case 'volumechange': case 'change': case 'selectionchange': case 'textInput': case 'compositionstart': case 'compositionend': case 'compositionupdate': case 'beforeblur': case 'afterblur': case 'beforeinput': case 'blur': case 'fullscreenchange': case 'focus': case 'hashchange': case 'popstate': case 'select': case 'selectstart': return 1; case 'drag': case 'dragenter': case 'dragexit': case 'dragleave': case 'dragover': case 'mousemove': case 'mouseout': case 'mouseover': case 'pointermove': case 'pointerout': case 'pointerover': case 'scroll': case 'toggle': case 'touchmove': case 'wheel': case 'mouseenter': case 'mouseleave': case 'pointerenter': case 'pointerleave': return 4; case 'message': switch (p4()) { case zg: return 1; case Gb: return 4; case zc: case g4: return 16; case Qb: return 536870912; default: return 16 } default: return 16 } } var go = null, Qg = null, Yc = null; function s_() { if (Yc) return Yc; var e, t = Qg, n = t.length, r, i = 'value' in go ? go.value : go.textContent, o = i.length; for (e = 0; e < n && t[e] === i[e]; e++); var a = n - e; for (r = 1; r <= a && t[n - r] === i[o - r]; r++); return Yc = i.slice(e, 1 < r ? 1 - r : void 0) } function Jc(e) { var t = e.keyCode; return 'charCode' in e ? (e = e.charCode, e === 0 && t === 13 && (e = 13)) : e = t, e === 10 && (e = 13), 32 <= e || e === 13 ? e : 0 } function Xc() { return !0 } function a_() { return !1 } function Jn(e) { function t(n, r, i, o, a) { this._reactName = n, this._targetInst = i, this.type = r, this.nativeEvent = o, this.target = a, this.currentTarget = null; for (var u in e) e.hasOwnProperty(u) && (n = e[u], this[u] = n ? n(o) : o[u]); return this.isDefaultPrevented = (o.defaultPrevented != null ? o.defaultPrevented : o.returnValue === !1) ? Xc : a_, this.isPropagationStopped = a_, this } return Ot(t.prototype, { preventDefault: function () { this.defaultPrevented = !0; var n = this.nativeEvent; n && (n.preventDefault ? n.preventDefault() : typeof n.returnValue != 'unknown' && (n.returnValue = !1), this.isDefaultPrevented = Xc) }, stopPropagation: function () { var n = this.nativeEvent; n && (n.stopPropagation ? n.stopPropagation() : typeof n.cancelBubble != 'unknown' && (n.cancelBubble = !0), this.isPropagationStopped = Xc) }, persist: function () { }, isPersistent: Xc }), t } var oa = { eventPhase: 0, bubbles: 0, cancelable: 0, timeStamp: function (e) { return e.timeStamp || Date.now() }, defaultPrevented: 0, isTrusted: 0 }, Yg = Jn(oa), Vu = Ot({ }, oa, { view: 0, detail: 0 }), O4 = Jn(Vu), Jg, Xg, Ku, Zc = Ot({ }, Vu, { screenX: 0, screenY: 0, clientX: 0, clientY: 0, pageX: 0, pageY: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, getModifierState: e0, button: 0, buttons: 0, relatedTarget: function (e) { return e.relatedTarget === void 0 ? e.fromElement === e.srcElement ? e.toElement : e.fromElement : e.relatedTarget }, movementX: function (e) { return 'movementX' in e ? e.movementX : (e !== Ku && (Ku && e.type === 'mousemove' ? (Jg = e.screenX - Ku.screenX, Xg = e.screenY - Ku.screenY) : Xg = Jg = 0, Ku = e), Jg) }, movementY: function (e) { return 'movementY' in e ? e.movementY : Xg } }), u_ = Jn(Zc), F4 = Ot({ }, Zc, { dataTransfer: 0 }), B4 = Jn(F4), k4 = Ot({ }, Vu, { relatedTarget: 0 }), Zg = Jn(k4), P4 = Ot({ }, oa, { animationName: 0, elapsedTime: 0, pseudoElement: 0 }), R4 = Jn(P4), T4 = Ot({ }, oa, { clipboardData: function (e) { return 'clipboardData' in e ? e.clipboardData : window.clipboardData } }), I4 = Jn(T4), N4 = Ot({ }, oa, { data: 0 }), l_ = Jn(N4), L4 = { Esc: 'Escape', Spacebar: ' ', Left: 'ArrowLeft', Up: 'ArrowUp', Right: 'ArrowRight', Down: 'ArrowDown', Del: 'Delete', Win: 'OS', Menu: 'ContextMenu', Apps: 'ContextMenu', Scroll: 'ScrollLock', MozPrintableKey: 'Unidentified' }, M4 = { 8: 'Backspace', 9: 'Tab', 12: 'Clear', 13: 'Enter', 16: 'Shift', 17: 'Control', 18: 'Alt', 19: 'Pause', 20: 'CapsLock', 27: 'Escape', 32: ' ', 33: 'PageUp', 34: 'PageDown', 35: 'End', 36: 'Home', 37: 'ArrowLeft', 38: 'ArrowUp', 39: 'ArrowRight', 40: 'ArrowDown', 45: 'Insert', 46: 'Delete', 112: 'F1', 113: 'F2', 114: 'F3', 115: 'F4', 116: 'F5', 117: 'F6', 118: 'F7', 119: 'F8', 120: 'F9', 121: 'F10', 122: 'F11', 123: 'F12', 144: 'NumLock', 145: 'ScrollLock', 224: 'Meta' }, $4 = { Alt: 'altKey', Control: 'ctrlKey', Meta: 'metaKey', Shift: 'shiftKey' }; function j4(e) { var t = this.nativeEvent; return t.getModifierState ? t.getModifierState(e) : (e = $4[e]) ? !!t[e] : !1 } function e0() { return j4 } var z4 = Ot({ }, Vu, { key: function (e) { if (e.key) { var t = L4[e.key] || e.key; if (t !== 'Unidentified') return t } return e.type === 'keypress' ? (e = Jc(e), e === 13 ? 'Enter' : String.fromCharCode(e)) : e.type === 'keydown' || e.type === 'keyup' ? M4[e.keyCode] || 'Unidentified' : '' }, code: 0, location: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, repeat: 0, locale: 0, getModifierState: e0, charCode: function (e) { return e.type === 'keypress' ? Jc(e) : 0 }, keyCode: function (e) { return e.type === 'keydown' || e.type === 'keyup' ? e.keyCode : 0 }, which: function (e) { return e.type === 'keypress' ? Jc(e) : e.type === 'keydown' || e.type === 'keyup' ? e.keyCode : 0 } }), U4 = Jn(z4), H4 = Ot({ }, Zc, { pointerId: 0, width: 0, height: 0, pressure: 0, tangentialPressure: 0, tiltX: 0, tiltY: 0, twist: 0, pointerType: 0, isPrimary: 0 }), c_ = Jn(H4), W4 = Ot({ }, Vu, { touches: 0, targetTouches: 0, changedTouches: 0, altKey: 0, metaKey: 0, ctrlKey: 0, shiftKey: 0, getModifierState: e0 }), V4 = Jn(W4), K4 = Ot({ }, oa, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 }), q4 = Jn(K4), G4 = Ot({ }, Zc, { deltaX: function (e) { return 'deltaX' in e ? e.deltaX : 'wheelDeltaX' in e ? - e.wheelDeltaX : 0 }, deltaY: function (e) { return 'deltaY' in e ? e.deltaY : 'wheelDeltaY' in e ? - e.wheelDeltaY : 'wheelDelta' in e ? - e.wheelDelta : 0 }, deltaZ: 0, deltaMode: 0 }), Q4 = Jn(G4), Y4 = [ 9, 13, 27, 32 ], t0 = Si && 'CompositionEvent' in window, qu = null; Si && 'documentMode' in document && (qu = document.documentMode); var J4 = Si && 'TextEvent' in window && !qu, f_ = Si && (!t0 || qu && 8 < qu && 11 >= qu), d_ = String.fromCharCode(32), h_ = !1; function p_(e, t) { switch (e) { case 'keyup': return Y4.indexOf(t.keyCode) !== - 1; case 'keydown': return t.keyCode !== 229; case 'keypress': case 'mousedown': case 'focusout': return !0; default: return !1 } } function g_(e) { return e = e.detail, typeof e == 'object' && 'data' in e ? e.data : null } var sa = !1; function X4(e, t) { switch (e) { case 'compositionend': return g_(t); case 'keypress': return t.which !== 32 ? null : (h_ = !0, d_); case 'textInput': return e = t.data, e === d_ && h_ ? null : e; default: return null } } function Z4(e, t) { if (sa) return e === 'compositionend' || !t0 && p_(e, t) ? (e = s_(), Yc = Qg = go = null, sa = !1, e) : null; switch (e) { case 'paste': return null; case 'keypress': if (!(t.ctrlKey || t.altKey || t.metaKey) || t.ctrlKey && t.altKey) { if (t.char && 1 < t.char.length) return t.char; if (t.which) return String.fromCharCode(t.which) } return null; case 'compositionend': return f_ && t.locale !== 'ko' ? null : t.data; default: return null } } var eP = { color: !0, date: !0, datetime: !0, 'datetime-local': !0, email: !0, month: !0, number: !0, password: !0, range: !0, search: !0, tel: !0, text: !0, time: !0, url: !0, week: !0 }; function m_(e) { var t = e && e.nodeName && e.nodeName.toLowerCase(); return t === 'input' ? !!eP[e.type] : t === 'textarea' } function v_(e, t, n, r) { Lb(r), t = of(t, 'onChange'), 0 < t.length && (n = new Yg('onChange', 'change', null, n, r), e.push({ event: n, listeners: t })) } var Gu = null, Qu = null; function tP(e) { I_(e, 0) } function ef(e) { var t = fa(e); if (xb(t)) return e } function nP(e, t) { if (e === 'change') return t } var y_ = !1; if (Si) { var n0; if (Si) { var r0 = 'oninput' in document; if (!r0) { var w_ = document.createElement('div'); w_.setAttribute('oninput', 'return;'), r0 = typeof w_.oninput == 'function' } n0 = r0 } else n0 = !1; y_ = n0 && (!document.documentMode || 9 < document.documentMode) } function b_() { Gu && (Gu.detachEvent('onpropertychange', __), Qu = Gu = null) } function __(e) { if (e.propertyName === 'value' && ef(Qu)) { var t = [ ]; v_(t, Qu, e, Ng(e)), zb(tP, t) } } function rP(e, t, n) { e === 'focusin' ? (b_(), Gu = t, Qu = n, Gu.attachEvent('onpropertychange', __)) : e === 'focusout' && b_() } function iP(e) { if (e === 'selectionchange' || e === 'keyup' || e === 'keydown') return ef(Qu) } function oP(e, t) { if (e === 'click') return ef(t) } function sP(e, t) { if (e === 'input' || e === 'change') return ef(t) } function aP(e, t) { return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t } var Hr = typeof Object.is == 'function' ? Object.is : aP; function Yu(e, t) { if (Hr(e, t)) return !0; if (typeof e != 'object' || e === null || typeof t != 'object' || t === null) return !1; var n = Object.keys(e), r = Object.keys(t); if (n.length !== r.length) return !1; for (r = 0; r < n.length; r++) { var i = n[r]; if (!pg.call(t, i) || !Hr(e[i], t[i])) return !1 } return !0 } function C_(e) { for (; e && e.firstChild; ) e = e.firstChild; return e } function E_(e, t) { var n = C_(e); e = 0; for (var r; n; ) { if (n.nodeType === 3) { if (r = e + n.textContent.length, e <= t && r >= t) return { node: n, offset: t - e }; e = r } e: { for (; n; ) { if (n.nextSibling) { n = n.nextSibling; break e } n = n.parentNode } n = void 0 } n = C_(n) } } function D_(e, t) { return e && t ? e === t ? !0 : e && e.nodeType === 3 ? !1 : t && t.nodeType === 3 ? D_(e, t.parentNode) : 'contains' in e ? e.contains(t) : e.compareDocumentPosition ? !!(e.compareDocumentPosition(t) & 16) : !1 : !1 } function x_() { for (var e = window, t = Lc(); t instanceof e.HTMLIFrameElement; ) { try { var n = typeof t.contentWindow.location.href == 'string' } catch { n = !1 } if (n) e = t.contentWindow; else break; t = Lc(e.document) } return t } function i0(e) { var t = e && e.nodeName && e.nodeName.toLowerCase(); return t && (t === 'input' && (e.type === 'text' || e.type === 'search' || e.type === 'tel' || e.type === 'url' || e.type === 'password') || t === 'textarea' || e.contentEditable === 'true') } function uP(e) { var t = x_(), n = e.focusedElem, r = e.selectionRange; if (t !== n && n && n.ownerDocument && D_(n.ownerDocument.documentElement, n)) { if (r !== null && i0(n)) { if (t = r.start, e = r.end, e === void 0 && (e = t), 'selectionStart' in n) n.selectionStart = t, n.selectionEnd = Math.min(e, n.value.length); else if (e = (t = n.ownerDocument || document) && t.defaultView || window, e.getSelection) { e = e.getSelection(); var i = n.textContent.length, o = Math.min(r.start, i); r = r.end === void 0 ? o : Math.min(r.end, i), !e.extend && o > r && (i = r, r = o, o = i), i = E_(n, o); var a = E_(n, r); i && a && (e.rangeCount !== 1 || e.anchorNode !== i.node || e.anchorOffset !== i.offset || e.focusNode !== a.node || e.focusOffset !== a.offset) && (t = t.createRange(), t.setStart(i.node, i.offset), e.removeAllRanges(), o > r ? (e.addRange(t), e.extend(a.node, a.offset)) : (t.setEnd(a.node, a.offset), e.addRange(t))) } } for (t = [ ], e = n; e = e.parentNode; ) e.nodeType === 1 && t.push({ element: e, left: e.scrollLeft, top: e.scrollTop }); for (typeof n.focus == 'function' && n.focus(), n = 0; n < t.length; n++) e = t[n], e.element.scrollLeft = e.left, e.element.scrollTop = e.top } } var lP = Si && 'documentMode' in document && 11 >= document.documentMode, aa = null, o0 = null, Ju = null, s0 = !1; function A_(e, t, n) { var r = n.window === n ? n.document : n.nodeType === 9 ? n : n.ownerDocument; s0 || aa == null || aa !== Lc(r) || (r = aa, 'selectionStart' in r && i0(r) ? r = { start: r.selectionStart, end: r.selectionEnd } : (r = (r.ownerDocument && r.ownerDocument.defaultView || window).getSelection(), r = { anchorNode: r.anchorNode, anchorOffset: r.anchorOffset, focusNode: r.focusNode, focusOffset: r.focusOffset }), Ju && Yu(Ju, r) || (Ju = r, r = of(o0, 'onSelect'), 0 < r.length && (t = new Yg('onSelect', 'select', null, t, n), e.push({ event: t, listeners: r }), t.target = aa))) } function tf(e, t) { var n = { }; return n[e.toLowerCase()] = t.toLowerCase(), n['Webkit' + e] = 'webkit' + t, n['Moz' + e] = 'moz' + t, n } var ua = { animationend: tf('Animation', 'AnimationEnd'), animationiteration: tf('Animation', 'AnimationIteration'), animationstart: tf('Animation', 'AnimationStart'), transitionend: tf('Transition', 'TransitionEnd') }, a0 = { }, S_ = { }; Si && (S_ = document.createElement('div').style, 'AnimationEvent' in window || (delete ua.animationend.animation, delete ua.animationiteration.animation, delete ua.animationstart.animation), 'TransitionEvent' in window || delete ua.transitionend.transition); function nf(e) { if (a0[e]) return a0[e]; if (!ua[e]) return e; var t = ua[e], n; for (n in t) if (t.hasOwnProperty(n) && n in S_) return a0[e] = t[n]; return e } var O_ = nf('animationend'), F_ = nf('animationiteration'), B_ = nf('animationstart'), k_ = nf('transitionend'), P_ = new Map, R_ = 'abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel'.split(' '); function mo(e, t) { P_.set(e, t), ts(t, [ e ]) } for (var u0 = 0; u0 < R_.length; u0++) { var l0 = R_[u0], cP = l0.toLowerCase(), fP = l0[0].toUpperCase() + l0.slice(1); mo(cP, 'on' + fP) } mo(O_, 'onAnimationEnd'), mo(F_, 'onAnimationIteration'), mo(B_, 'onAnimationStart'), mo('dblclick', 'onDoubleClick'), mo('focusin', 'onFocus'), mo('focusout', 'onBlur'), mo(k_, 'onTransitionEnd'), Xs('onMouseEnter', [ 'mouseout', 'mouseover' ]), Xs('onMouseLeave', [ 'mouseout', 'mouseover' ]), Xs('onPointerEnter', [ 'pointerout', 'pointerover' ]), Xs('onPointerLeave', [ 'pointerout', 'pointerover' ]), ts('onChange', 'change click focusin focusout input keydown keyup selectionchange'.split(' ')), ts('onSelect', 'focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange'.split(' ')), ts('onBeforeInput', [ 'compositionend', 'keypress', 'textInput', 'paste' ]), ts('onCompositionEnd', 'compositionend focusout keydown keypress keyup mousedown'.split(' ')), ts('onCompositionStart', 'compositionstart focusout keydown keypress keyup mousedown'.split(' ')), ts('onCompositionUpdate', 'compositionupdate focusout keydown keypress keyup mousedown'.split(' ')); var Xu = 'abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting'.split(' '), dP = new Set('cancel close invalid load scroll toggle'.split(' ').concat(Xu)); function T_(e, t, n) { var r = e.type || 'unknown-event'; e.currentTarget = n, c4(r, t, void 0, e), e.currentTarget = null } function I_(e, t) { t = (t & 4) !== 0; for (var n = 0; n < e.length; n++) { var r = e[n], i = r.event; r = r.listeners; e: { var o = void 0; if (t) for (var a = r.length - 1; 0 <= a; a--) { var u = r[a], c = u.instance, f = u.currentTarget; if (u = u.listener, c !== o && i.isPropagationStopped()) break e; T_(i, u, f), o = c } else for (a = 0; a < r.length; a++) { if (u = r[a], c = u.instance, f = u.currentTarget, u = u.listener, c !== o && i.isPropagationStopped()) break e; T_(i, u, f), o = c } } } if (jc) throw e = jg, jc = !1, jg = null, e } function yt(e, t) { var n = t[v0]; n === void 0 && (n = t[v0] = new Set); var r = e + '__bubble'; n.has(r) || (N_(t, e, 2, !1), n.add(r)) } function c0(e, t, n) { var r = 0; t && (r |= 4), N_(n, e, r, t) } var rf = '_reactListening' + Math.random().toString(36).slice(2); function Zu(e) { if (!e[rf]) { e[rf] = !0, vb.forEach(function (n) { n !== 'selectionchange' && (dP.has(n) || c0(n, !1, e), c0(n, !0, e)) }); var t = e.nodeType === 9 ? e : e.ownerDocument; t === null || t[rf] || (t[rf] = !0, c0('selectionchange', !1, t)) } } function N_(e, t, n, r) { switch (o_(t)) { case 1: var i = A4; break; case 4: i = S4; break; default: i = qg } n = i.bind(null, t, n, e), i = void 0, !$g || t !== 'touchstart' && t !== 'touchmove' && t !== 'wheel' || (i = !0), r ? i !== void 0 ? e.addEventListener(t, n, { capture: !0, passive: i }) : e.addEventListener(t, n, !0) : i !== void 0 ? e.addEventListener(t, n, { passive: i }) : e.addEventListener(t, n, !1) } function f0(e, t, n, r, i) { var o = r; if (!(t & 1) && !(t & 2) && r !== null) e: for (; ; ) { if (r === null) return; var a = r.tag; if (a === 3 || a === 4) { var u = r.stateNode.containerInfo; if (u === i || u.nodeType === 8 && u.parentNode === i) break; if (a === 4) for (a = r.return; a !== null; ) { var c = a.tag; if ((c === 3 || c === 4) && (c = a.stateNode.containerInfo, c === i || c.nodeType === 8 && c.parentNode === i)) return; a = a.return } for (; u !== null; ) { if (a = rs(u), a === null) return; if (c = a.tag, c === 5 || c === 6) { r = o = a; continue e } u = u.parentNode } } r = r.return } zb(function () { var f = o, h = Ng(n), g = [ ]; e: { var m = P_.get(e); if (m !== void 0) { var y = Yg, v = e; switch (e) { case 'keypress': if (Jc(n) === 0) break e; case 'keydown': case 'keyup': y = U4; break; case 'focusin': v = 'focus', y = Zg; break; case 'focusout': v = 'blur', y = Zg; break; case 'beforeblur': case 'afterblur': y = Zg; break; case 'click': if (n.button === 2) break e; case 'auxclick': case 'dblclick': case 'mousedown': case 'mousemove': case 'mouseup': case 'mouseout': case 'mouseover': case 'contextmenu': y = u_; break; case 'drag': case 'dragend': case 'dragenter': case 'dragexit': case 'dragleave': case 'dragover': case 'dragstart': case 'drop': y = B4; break; case 'touchcancel': case 'touchend': case 'touchmove': case 'touchstart': y = V4; break; case O_: case F_: case B_: y = R4; break; case k_: y = q4; break; case 'scroll': y = O4; break; case 'wheel': y = Q4; break; case 'copy': case 'cut': case 'paste': y = I4; break; case 'gotpointercapture': case 'lostpointercapture': case 'pointercancel': case 'pointerdown': case 'pointermove': case 'pointerout': case 'pointerover': case 'pointerup': y = c_ } var p = (t & 4) !== 0, E = !p && e === 'scroll', _ = p ? m !== null ? m + 'Capture' : null : m; p = [ ]; for (var b = f, x; b !== null; ) { x = b; var O = x.stateNode; if (x.tag === 5 && O !== null && (x = O, _ !== null && (O = Iu(b, _), O != null && p.push(el(b, O, x)))), E) break; b = b.return } 0 < p.length && (m = new y(m, v, null, n, h), g.push({ event: m, listeners: p })) } } if (!(t & 7)) { e: { if (m = e === 'mouseover' || e === 'pointerover', y = e === 'mouseout' || e === 'pointerout', m && n !== Ig && (v = n.relatedTarget || n.fromElement) && (rs(v) || v[Fi])) break e; if ((y || m) && (m = h.window === h ? h : (m = h.ownerDocument) ? m.defaultView || m.parentWindow : window, y ? (v = n.relatedTarget || n.toElement, y = f, v = v ? rs(v) : null, v !== null && (E = ns(v), v !== E || v.tag !== 5 && v.tag !== 6) && (v = null)) : (y = null, v = f), y !== v)) { if (p = u_, O = 'onMouseLeave', _ = 'onMouseEnter', b = 'mouse', (e === 'pointerout' || e === 'pointerover') && (p = c_, O = 'onPointerLeave', _ = 'onPointerEnter', b = 'pointer'), E = y == null ? m : fa(y), x = v == null ? m : fa(v), m = new p(O, b + 'leave', y, n, h), m.target = E, m.relatedTarget = x, O = null, rs(h) === f && (p = new p(_, b + 'enter', v, n, h), p.target = x, p.relatedTarget = E, O = p), E = O, y && v) t: { for (p = y, _ = v, b = 0, x = p; x; x = la(x)) b++; for (x = 0, O = _; O; O = la(O)) x++; for (; 0 < b - x; ) p = la(p), b--; for (; 0 < x - b; ) _ = la(_), x--; for (; b--; ) { if (p === _ || _ !== null && p === _.alternate) break t; p = la(p), _ = la(_) } p = null } else p = null; y !== null && L_(g, m, y, p, !1), v !== null && E !== null && L_(g, E, v, p, !0) } } e: { if (m = f ? fa(f) : window, y = m.nodeName && m.nodeName.toLowerCase(), y === 'select' || y === 'input' && m.type === 'file') var B = nP; else if (m_(m)) if (y_) B = sP; else { B = iP; var k = rP } else (y = m.nodeName) && y.toLowerCase() === 'input' && (m.type === 'checkbox' || m.type === 'radio') && (B = oP); if (B && (B = B(e, f))) { v_(g, B, n, h); break e } k && k(e, m, f), e === 'focusout' && (k = m._wrapperState) && k.controlled && m.type === 'number' && Bg(m, 'number', m.value) } switch (k = f ? fa(f) : window, e) { case 'focusin': (m_(k) || k.contentEditable === 'true') && (aa = k, o0 = f, Ju = null); break; case 'focusout': Ju = o0 = aa = null; break; case 'mousedown': s0 = !0; break; case 'contextmenu': case 'mouseup': case 'dragend': s0 = !1, A_(g, n, h); break; case 'selectionchange': if (lP) break; case 'keydown': case 'keyup': A_(g, n, h) } var P; if (t0) e: { switch (e) { case 'compositionstart': var I = 'onCompositionStart'; break e; case 'compositionend': I = 'onCompositionEnd'; break e; case 'compositionupdate': I = 'onCompositionUpdate'; break e } I = void 0 } else sa ? p_(e, n) && (I = 'onCompositionEnd') : e === 'keydown' && n.keyCode === 229 && (I = 'onCompositionStart'); I && (f_ && n.locale !== 'ko' && (sa || I !== 'onCompositionStart' ? I === 'onCompositionEnd' && sa && (P = s_()) : (go = h, Qg = 'value' in go ? go.value : go.textContent, sa = !0)), k = of(f, I), 0 < k.length && (I = new l_(I, e, null, n, h), g.push({ event: I, listeners: k }), P ? I.data = P : (P = g_(n), P !== null && (I.data = P)))), (P = J4 ? X4(e, n) : Z4(e, n)) && (f = of(f, 'onBeforeInput'), 0 < f.length && (h = new l_('onBeforeInput', 'beforeinput', null, n, h), g.push({ event: h, listeners: f }), h.data = P)) } I_(g, t) }) } function el(e, t, n) { return { instance: e, listener: t, currentTarget: n } } function of(e, t) { for (var n = t + 'Capture', r = [ ]; e !== null; ) { var i = e, o = i.stateNode; i.tag === 5 && o !== null && (i = o, o = Iu(e, n), o != null && r.unshift(el(e, o, i)), o = Iu(e, t), o != null && r.push(el(e, o, i))), e = e.return } return r } function la(e) { if (e === null) return null; do e = e.return; while (e && e.tag !== 5); return e || null } function L_(e, t, n, r, i) { for (var o = t._reactName, a = [ ]; n !== null && n !== r; ) { var u = n, c = u.alternate, f = u.stateNode; if (c !== null && c === r) break; u.tag === 5 && f !== null && (u = f, i ? (c = Iu(n, o), c != null && a.unshift(el(n, c, u))) : i || (c = Iu(n, o), c != null && a.push(el(n, c, u)))), n = n.return } a.length !== 0 && e.push({ event: t, listeners: a }) } var hP = /\r\n?/g, pP = /\u0000|\uFFFD/g; function M_(e) { return (typeof e == 'string' ? e : '' + e).replace(hP, ` `).replace(pP, '') } function sf(e, t, n) { if (t = M_(t), M_(e) !== t && n) throw Error(pe(425)) } function af() { } var d0 = null, h0 = null; function p0(e, t) { return e === 'textarea' || e === 'noscript' || typeof t.children == 'string' || typeof t.children == 'number' || typeof t.dangerouslySetInnerHTML == 'object' && t.dangerouslySetInnerHTML !== null && t.dangerouslySetInnerHTML.__html != null } var g0 = typeof setTimeout == 'function' ? setTimeout : void 0, gP = typeof clearTimeout == 'function' ? clearTimeout : void 0, $_ = typeof Promise == 'function' ? Promise : void 0, mP = typeof queueMicrotask == 'function' ? queueMicrotask : typeof $_ < 'u' ? function (e) { return $_.resolve(null).then(e).catch(vP) } : g0; function vP(e) { setTimeout(function () { throw e }) } function m0(e, t) { var n = t, r = 0; do { var i = n.nextSibling; if (e.removeChild(n), i && i.nodeType === 8) if (n = i.data, n === '/$') { if (r === 0) { e.removeChild(i), Wu(t); return } r-- } else n !== '$' && n !== '$?' && n !== '$!' || r++; n = i } while (n); Wu(t) } function vo(e) { for (; e != null; e = e.nextSibling) { var t = e.nodeType; if (t === 1 || t === 3) break; if (t === 8) { if (t = e.data, t === '$' || t === '$!' || t === '$?') break; if (t === '/$') return null } } return e } function j_(e) { e = e.previousSibling; for (var t = 0; e; ) { if (e.nodeType === 8) { var n = e.data; if (n === '$' || n === '$!' || n === '$?') { if (t === 0) return e; t-- } else n === '/$' && t++ } e = e.previousSibling } return null } var ca = Math.random().toString(36).slice(2), oi = '__reactFiber$' + ca, tl = '__reactProps$' + ca, Fi = '__reactContainer$' + ca, v0 = '__reactEvents$' + ca, yP = '__reactListeners$' + ca, wP = '__reactHandles$' + ca; function rs(e) { var t = e[oi]; if (t) return t; for (var n = e.parentNode; n; ) { if (t = n[Fi] || n[oi]) { if (n = t.alternate, t.child !== null || n !== null && n.child !== null) for (e = j_(e); e !== null; ) { if (n = e[oi]) return n; e = j_(e) } return t } e = n, n = e.parentNode } return null } function nl(e) { return e = e[oi] || e[Fi], !e || e.tag !== 5 && e.tag !== 6 && e.tag !== 13 && e.tag !== 3 ? null : e } function fa(e) { if (e.tag === 5 || e.tag === 6) return e.stateNode; throw Error(pe(33)) } function uf(e) { return e[tl] || null } var y0 = [ ], da = - 1; function yo(e) { return { current: e } } function wt(e) { 0 > da || (e.current = y0[da], y0[da] = null, da--) } function gt(e, t) { da++, y0[da] = e.current, e.current = t } var wo = { }, vn = yo(wo), Nn = yo(!1), is = wo; function ha(e, t) { var n = e.type.contextTypes; if (!n) return wo; var r = e.stateNode; if (r && r.__reactInternalMemoizedUnmaskedChildContext === t) return r.__reactInternalMemoizedMaskedChildContext; var i = { }, o; for (o in n) i[o] = t[o]; return r && (e = e.stateNode, e.__reactInternalMemoizedUnmaskedChildContext = t, e.__reactInternalMemoizedMaskedChildContext = i), i } function Ln(e) { return e = e.childContextTypes, e != null } function lf() { wt(Nn), wt(vn) } function z_(e, t, n) { if (vn.current !== wo) throw Error(pe(168)); gt(vn, t), gt(Nn, n) } function U_(e, t, n) { var r = e.stateNode; if (t = t.childContextTypes, typeof r.getChildContext != 'function') return n; r = r.getChildContext(); for (var i in r) if (!(i in t)) throw Error(pe(108, r4(e) || 'Unknown', i)); return Ot({ }, n, r) } function cf(e) { return e = (e = e.stateNode) && e.__reactInternalMemoizedMergedChildContext || wo, is = vn.current, gt(vn, e), gt(Nn, Nn.current), !0 } function H_(e, t, n) { var r = e.stateNode; if (!r) throw Error(pe(169)); n ? (e = U_(e, t, is), r.__reactInternalMemoizedMergedChildContext = e, wt(Nn), wt(vn), gt(vn, e)) : wt(Nn), gt(Nn, n) } var Bi = null, ff = !1, w0 = !1; function W_(e) { Bi === null ? Bi = [ e ] : Bi.push(e) } function bP(e) { ff = !0, W_(e) } function bo() { if (!w0 && Bi !== null) { w0 = !0; var e = 0, t = at; try { var n = Bi; for (at = 1; e < n.length; e++) { var r = n[e]; do r = r(!0); while (r !== null) } Bi = null, ff = !1 } catch (i) { throw Bi !== null && (Bi = Bi.slice(e + 1)), Kb(zg, bo), i } finally { at = t, w0 = !1 } } return null } var pa = [ ], ga = 0, df = null, hf = 0, wr = [ ], br = 0, os = null, ki = 1, Pi = ''; function ss(e, t) { pa[ga++] = hf, pa[ga++] = df, df = e, hf = t } function V_(e, t, n) { wr[br++] = ki, wr[br++] = Pi, wr[br++] = os, os = e; var r = ki; e = Pi; var i = 32 - Ur(r) - 1; r &= ~(1 << i), n += 1; var o = 32 - Ur(t) + i; if (30 < o) { var a = i - i % 5; o = (r & (1 << a) - 1).toString(32), r >>= a, i -= a, ki = 1 << 32 - Ur(t) + i | n << i | r, Pi = o + e } else ki = 1 << o | n << i | r, Pi = e } function b0(e) { e.return !== null && (ss(e, 1), V_(e, 1, 0)) } function _0(e) { for (; e === df; ) df = pa[--ga], pa[ga] = null, hf = pa[--ga], pa[ga] = null; for (; e === os; ) os = wr[--br], wr[br] = null, Pi = wr[--br], wr[br] = null, ki = wr[--br], wr[br] = null } var Xn = null, Zn = null, Et = !1, Wr = null; function K_(e, t) { var n = Dr(5, null, null, 0); n.elementType = 'DELETED', n.stateNode = t, n.return = e, t = e.deletions, t === null ? (e.deletions = [ n ], e.flags |= 16) : t.push(n) } function q_(e, t) { switch (e.tag) { case 5: var n = e.type; return t = t.nodeType !== 1 || n.toLowerCase() !== t.nodeName.toLowerCase() ? null : t, t !== null ? (e.stateNode = t, Xn = e, Zn = vo(t.firstChild), !0) : !1; case 6: return t = e.pendingProps === '' || t.nodeType !== 3 ? null : t, t !== null ? (e.stateNode = t, Xn = e, Zn = null, !0) : !1; case 13: return t = t.nodeType !== 8 ? null : t, t !== null ? (n = os !== null ? { id: ki, overflow: Pi } : null, e.memoizedState = { dehydrated: t, treeContext: n, retryLane: 1073741824 }, n = Dr(18, null, null, 0), n.stateNode = t, n.return = e, e.child = n, Xn = e, Zn = null, !0) : !1; default: return !1 } } function C0(e) { return (e.mode & 1) !== 0 && (e.flags & 128) === 0 } function E0(e) { if (Et) { var t = Zn; if (t) { var n = t; if (!q_(e, t)) { if (C0(e)) throw Error(pe(418)); t = vo(n.nextSibling); var r = Xn; t && q_(e, t) ? K_(r, n) : (e.flags = e.flags & - 4097 | 2, Et = !1, Xn = e) } } else { if (C0(e)) throw Error(pe(418)); e.flags = e.flags & - 4097 | 2, Et = !1, Xn = e } } } function G_(e) { for (e = e.return; e !== null && e.tag !== 5 && e.tag !== 3 && e.tag !== 13; ) e = e.return; Xn = e } function pf(e) { if (e !== Xn) return !1; if (!Et) return G_(e), Et = !0, !1; var t; if ((t = e.tag !== 3) && !(t = e.tag !== 5) && (t = e.type, t = t !== 'head' && t !== 'body' && !p0(e.type, e.memoizedProps)), t && (t = Zn)) { if (C0(e)) throw Q_(), Error(pe(418)); for (; t; ) K_(e, t), t = vo(t.nextSibling) } if (G_(e), e.tag === 13) { if (e = e.memoizedState, e = e !== null ? e.dehydrated : null, !e) throw Error(pe(317)); e: { for (e = e.nextSibling, t = 0; e; ) { if (e.nodeType === 8) { var n = e.data; if (n === '/$') { if (t === 0) { Zn = vo(e.nextSibling); break e } t-- } else n !== '$' && n !== '$!' && n !== '$?' || t++ } e = e.nextSibling } Zn = null } } else Zn = Xn ? vo(e.stateNode.nextSibling) : null; return !0 } function Q_() { for (var e = Zn; e; ) e = vo(e.nextSibling) } function ma() { Zn = Xn = null, Et = !1 } function D0(e) { Wr === null ? Wr = [ e ] : Wr.push(e) } var _P = Oi.ReactCurrentBatchConfig; function Vr(e, t) { if (e && e.defaultProps) { t = Ot({ }, t), e = e.defaultProps; for (var n in e) t[n] === void 0 && (t[n] = e[n]); return t } return t } var gf = yo(null), mf = null, va = null, x0 = null; function A0() { x0 = va = mf = null } function S0(e) { var t = gf.current; wt(gf), e._currentValue = t } function O0(e, t, n) { for (; e !== null; ) { var r = e.alternate; if ((e.childLanes & t) !== t ? (e.childLanes |= t, r !== null && (r.childLanes |= t)) : r !== null && (r.childLanes & t) !== t && (r.childLanes |= t), e === n) break; e = e.return } } function ya(e, t) { mf = e, x0 = va = null, e = e.dependencies, e !== null && e.firstContext !== null && (e.lanes & t && (Mn = !0), e.firstContext = null) } function _r(e) { var t = e._currentValue; if (x0 !== e) if (e = { context: e, memoizedValue: t, next: null }, va === null) { if (mf === null) throw Error(pe(308)); va = e, mf.dependencies = { lanes: 0, firstContext: e } } else va = va.next = e; return t } var as = null; function F0(e) { as === null ? as = [ e ] : as.push(e) } function Y_(e, t, n, r) { var i = t.interleaved; return i === null ? (n.next = n, F0(t)) : (n.next = i.next, i.next = n), t.interleaved = n, Ri(e, r) } function Ri(e, t) { e.lanes |= t; var n = e.alternate; for (n !== null && (n.lanes |= t), n = e, e = e.return; e !== null; ) e.childLanes |= t, n = e.alternate, n !== null && (n.childLanes |= t), n = e, e = e.return; return n.tag === 3 ? n.stateNode : null } var _o = !1; function B0(e) { e.updateQueue = { baseState: e.memoizedState, firstBaseUpdate: null, lastBaseUpdate: null, shared: { pending: null, interleaved: null, lanes: 0 }, effects: null } } function J_(e, t) { e = e.updateQueue, t.updateQueue === e && (t.updateQueue = { baseState: e.baseState, firstBaseUpdate: e.firstBaseUpdate, lastBaseUpdate: e.lastBaseUpdate, shared: e.shared, effects: e.effects }) } function Ti(e, t) { return { eventTime: e, lane: t, tag: 0, payload: null, callback: null, next: null } } function Co(e, t, n) { var r = e.updateQueue; if (r === null) return null; if (r = r.shared, et & 2) { var i = r.pending; return i === null ? t.next = t : (t.next = i.next, i.next = t), r.pending = t, Ri(e, n) } return i = r.interleaved, i === null ? (t.next = t, F0(r)) : (t.next = i.next, i.next = t), r.interleaved = t, Ri(e, n) } function vf(e, t, n) { if (t = t.updateQueue, t !== null && (t = t.shared, (n & 4194240) !== 0)) { var r = t.lanes; r &= e.pendingLanes, n |= r, t.lanes = n, Wg(e, n) } } function X_(e, t) { var n = e.updateQueue, r = e.alternate; if (r !== null && (r = r.updateQueue, n === r)) { var i = null, o = null; if (n = n.firstBaseUpdate, n !== null) { do { var a = { eventTime: n.eventTime, lane: n.lane, tag: n.tag, payload: n.payload, callback: n.callback, next: null }; o === null ? i = o = a : o = o.next = a, n = n.next } while (n !== null); o === null ? i = o = t : o = o.next = t } else i = o = t; n = { baseState: r.baseState, firstBaseUpdate: i, lastBaseUpdate: o, shared: r.shared, effects: r.effects }, e.updateQueue = n; return } e = n.lastBaseUpdate, e === null ? n.firstBaseUpdate = t : e.next = t, n.lastBaseUpdate = t } function yf(e, t, n, r) { var i = e.updateQueue; _o = !1; var o = i.firstBaseUpdate, a = i.lastBaseUpdate, u = i.shared.pending; if (u !== null) { i.shared.pending = null; var c = u, f = c.next; c.next = null, a === null ? o = f : a.next = f, a = c; var h = e.alternate; h !== null && (h = h.updateQueue, u = h.lastBaseUpdate, u !== a && (u === null ? h.firstBaseUpdate = f : u.next = f, h.lastBaseUpdate = c)) } if (o !== null) { var g = i.baseState; a = 0, h = f = c = null, u = o; do { var m = u.lane, y = u.eventTime; if ((r & m) === m) { h !== null && (h = h.next = { eventTime: y, lane: 0, tag: u.tag, payload: u.payload, callback: u.callback, next: null }); e: { var v = e, p = u; switch (m = t, y = n, p.tag) { case 1: if (v = p.payload, typeof v == 'function') { g = v.call(y, g, m); break e } g = v; break e; case 3: v.flags = v.flags & - 65537 | 128; case 0: if (v = p.payload, m = typeof v == 'function' ? v.call(y, g, m) : v, m == null) break e; g = Ot({ }, g, m); break e; case 2: _o = !0 } } u.callback !== null && u.lane !== 0 && (e.flags |= 64, m = i.effects, m === null ? i.effects = [ u ] : m.push(u)) } else y = { eventTime: y, lane: m, tag: u.tag, payload: u.payload, callback: u.callback, next: null }, h === null ? (f = h = y, c = g) : h = h.next = y, a |= m; if (u = u.next, u === null) { if (u = i.shared.pending, u === null) break; m = u, u = m.next, m.next = null, i.lastBaseUpdate = m, i.shared.pending = null } } while (1); if (h === null && (c = g), i.baseState = c, i.firstBaseUpdate = f, i.lastBaseUpdate = h, t = i.shared.interleaved, t !== null) { i = t; do a |= i.lane, i = i.next; while (i !== t) } else o === null && (i.shared.lanes = 0); cs |= a, e.lanes = a, e.memoizedState = g } } function Z_(e, t, n) { if (e = t.effects, t.effects = null, e !== null) for (t = 0; t < e.length; t++) { var r = e[t], i = r.callback; if (i !== null) { if (r.callback = null, r = n, typeof i != 'function') throw Error(pe(191, i)); i.call(r) } } } var eC = new mb.Component().refs; function k0(e, t, n, r) { t = e.memoizedState, n = n(r, t), n = n == null ? t : Ot({ }, t, n), e.memoizedState = n, e.lanes === 0 && (e.updateQueue.baseState = n) } var wf = { isMounted: function (e) { return (e = e._reactInternals) ? ns(e) === e : !1 }, enqueueSetState: function (e, t, n) { e = e._reactInternals; var r = On(), i = Ao(e), o = Ti(r, i); o.payload = t, n != null && (o.callback = n), t = Co(e, o, i), t !== null && (Gr(t, e, i, r), vf(t, e, i)) }, enqueueReplaceState: function (e, t, n) { e = e._reactInternals; var r = On(), i = Ao(e), o = Ti(r, i); o.tag = 1, o.payload = t, n != null && (o.callback = n), t = Co(e, o, i), t !== null && (Gr(t, e, i, r), vf(t, e, i)) }, enqueueForceUpdate: function (e, t) { e = e._reactInternals; var n = On(), r = Ao(e), i = Ti(n, r); i.tag = 2, t != null && (i.callback = t), t = Co(e, i, r), t !== null && (Gr(t, e, r, n), vf(t, e, r)) } }; function tC(e, t, n, r, i, o, a) { return e = e.stateNode, typeof e.shouldComponentUpdate == 'function' ? e.shouldComponentUpdate(r, o, a) : t.prototype && t.prototype.isPureReactComponent ? !Yu(n, r) || !Yu(i, o) : !0 } function nC(e, t, n) { var r = !1, i = wo, o = t.contextType; return typeof o == 'object' && o !== null ? o = _r(o) : (i = Ln(t) ? is : vn.current, r = t.contextTypes, o = (r = r != null) ? ha(e, i) : wo), t = new t(n, o), e.memoizedState = t.state !== null && t.state !== void 0 ? t.state : null, t.updater = wf, e.stateNode = t, t._reactInternals = e, r && (e = e.stateNode, e.__reactInternalMemoizedUnmaskedChildContext = i, e.__reactInternalMemoizedMaskedChildContext = o), t } function rC(e, t, n, r) { e = t.state, typeof t.componentWillReceiveProps == 'function' && t.componentWillReceiveProps(n, r), typeof t.UNSAFE_componentWillReceiveProps == 'function' && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && wf.enqueueReplaceState(t, t.state, null) } function P0(e, t, n, r) { var i = e.stateNode; i.props = n, i.state = e.memoizedState, i.refs = eC, B0(e); var o = t.contextType; typeof o == 'object' && o !== null ? i.context = _r(o) : (o = Ln(t) ? is : vn.current, i.context = ha(e, o)), i.state = e.memoizedState, o = t.getDerivedStateFromProps, typeof o == 'function' && (k0(e, t, o, n), i.state = e.memoizedState), typeof t.getDerivedStateFromProps == 'function' || typeof i.getSnapshotBeforeUpdate == 'function' || typeof i.UNSAFE_componentWillMount != 'function' && typeof i.componentWillMount != 'function' || (t = i.state, typeof i.componentWillMount == 'function' && i.componentWillMount(), typeof i.UNSAFE_componentWillMount == 'function' && i.UNSAFE_componentWillMount(), t !== i.state && wf.enqueueReplaceState(i, i.state, null), yf(e, n, i, r), i.state = e.memoizedState), typeof i.componentDidMount == 'function' && (e.flags |= 4194308) } function rl(e, t, n) { if (e = n.ref, e !== null && typeof e != 'function' && typeof e != 'object') { if (n._owner) { if (n = n._owner, n) { if (n.tag !== 1) throw Error(pe(309)); var r = n.stateNode } if (!r) throw Error(pe(147, e)); var i = r, o = '' + e; return t !== null && t.ref !== null && typeof t.ref == 'function' && t.ref._stringRef === o ? t.ref : (t = function (a) { var u = i.refs; u === eC && (u = i.refs = { }), a === null ? delete u[o] : u[o] = a }, t._stringRef = o, t) } if (typeof e != 'string') throw Error(pe(284)); if (!n._owner) throw Error(pe(290, e)) } return e } function bf(e, t) { throw e = Object.prototype.toString.call(t), Error(pe(31, e === '[object Object]' ? 'object with keys {' + Object.keys(t).join(', ') + '}' : e)) } function iC(e) { var t = e._init; return t(e._payload) } function oC(e) { function t(_, b) { if (e) { var x = _.deletions; x === null ? (_.deletions = [ b ], _.flags |= 16) : x.push(b) } } function n(_, b) { if (!e) return null; for (; b !== null; ) t(_, b), b = b.sibling; return null } function r(_, b) { for (_ = new Map; b !== null; ) b.key !== null ? _.set(b.key, b) : _.set(b.index, b), b = b.sibling; return _ } function i(_, b) { return _ = Oo(_, b), _.index = 0, _.sibling = null, _ } function o(_, b, x) { return _.index = x, e ? (x = _.alternate, x !== null ? (x = x.index, x < b ? (_.flags |= 2, b) : x) : (_.flags |= 2, b)) : (_.flags |= 1048576, b) } function a(_) { return e && _.alternate === null && (_.flags |= 2), _ } function u(_, b, x, O) { return b === null || b.tag !== 6 ? (b = gm(x, _.mode, O), b.return = _, b) : (b = i(b, x), b.return = _, b) } function c(_, b, x, O) { var B = x.type; return B === ea ? h(_, b, x.props.children, O, x.key) : b !== null && (b.elementType === B || typeof B == 'object' && B !== null && B.$$typeof === uo && iC(B) === b.type) ? (O = i(b, x.props), O.ref = rl(_, b, x), O.return = _, O) : (O = $f(x.type, x.key, x.props, null, _.mode, O), O.ref = rl(_, b, x), O.return = _, O) } function f(_, b, x, O) { return b === null || b.tag !== 4 || b.stateNode.containerInfo !== x.containerInfo || b.stateNode.implementation !== x.implementation ? (b = mm(x, _.mode, O), b.return = _, b) : (b = i(b, x.children || [ ]), b.return = _, b) } function h(_, b, x, O, B) { return b === null || b.tag !== 7 ? (b = ps(x, _.mode, O, B), b.return = _, b) : (b = i(b, x), b.return = _, b) } function g(_, b, x) { if (typeof b == 'string' && b !== '' || typeof b == 'number') return b = gm('' + b, _.mode, x), b.return = _, b; if (typeof b == 'object' && b !== null) { switch (b.$$typeof) { case Ic: return x = $f(b.type, b.key, b.props, null, _.mode, x), x.ref = rl(_, null, b), x.return = _, x; case Zs: return b = mm(b, _.mode, x), b.return = _, b; case uo: var O = b._init; return g(_, O(b._payload), x) } if (Pu(b) || Bu(b)) return b = ps(b, _.mode, x, null), b.return = _, b; bf(_, b) } return null } function m(_, b, x, O) { var B = b !== null ? b.key : null; if (typeof x == 'string' && x !== '' || typeof x == 'number') return B !== null ? null : u(_, b, '' + x, O); if (typeof x == 'object' && x !== null) { switch (x.$$typeof) { case Ic: return x.key === B ? c(_, b, x, O) : null; case Zs: return x.key === B ? f(_, b, x, O) : null; case uo: return B = x._init, m(_, b, B(x._payload), O) } if (Pu(x) || Bu(x)) return B !== null ? null : h(_, b, x, O, null); bf(_, x) } return null } function y(_, b, x, O, B) { if (typeof O == 'string' && O !== '' || typeof O == 'number') return _ = _.get(x) || null, u(b, _, '' + O, B); if (typeof O == 'object' && O !== null) { switch (O.$$typeof) { case Ic: return _ = _.get(O.key === null ? x : O.key) || null, c(b, _, O, B); case Zs: return _ = _.get(O.key === null ? x : O.key) || null, f(b, _, O, B); case uo: var k = O._init; return y(_, b, x, k(O._payload), B) } if (Pu(O) || Bu(O)) return _ = _.get(x) || null, h(b, _, O, B, null); bf(b, O) } return null } function v(_, b, x, O) { for (var B = null, k = null, P = b, I = b = 0, Y = null; P !== null && I < x.length; I++) { P.index > I ? (Y = P, P = null) : Y = P.sibling; var j = m(_, P, x[I], O); if (j === null) { P === null && (P = Y); break } e && P && j.alternate === null && t(_, P), b = o(j, b, I), k === null ? B = j : k.sibling = j, k = j, P = Y } if (I === x.length) return n(_, P), Et && ss(_, I), B; if (P === null) { for (; I < x.length; I++) P = g(_, x[I], O), P !== null && (b = o(P, b, I), k === null ? B = P : k.sibling = P, k = P); return Et && ss(_, I), B } for (P = r(_, P); I < x.length; I++) Y = y(P, _, I, x[I], O), Y !== null && (e && Y.alternate !== null && P.delete(Y.key === null ? I : Y.key), b = o(Y, b, I), k === null ? B = Y : k.sibling = Y, k = Y); return e && P.forEach(function (X) { return t(_, X) }), Et && ss(_, I), B } function p(_, b, x, O) { var B = Bu(x); if (typeof B != 'function') throw Error(pe(150)); if (x = B.call(x), x == null) throw Error(pe(151)); for (var k = B = null, P = b, I = b = 0, Y = null, j = x.next(); P !== null && !j.done; I++, j = x.next()) { P.index > I ? (Y = P, P = null) : Y = P.sibling; var X = m(_, P, j.value, O); if (X === null) { P === null && (P = Y); break } e && P && X.alternate === null && t(_, P), b = o(X, b, I), k === null ? B = X : k.sibling = X, k = X, P = Y } if (j.done) return n(_, P), Et && ss(_, I), B; if (P === null) { for (; !j.done; I++, j = x.next()) j = g(_, j.value, O), j !== null && (b = o(j, b, I), k === null ? B = j : k.sibling = j, k = j); return Et && ss(_, I), B } for (P = r(_, P); !j.done; I++, j = x.next()) j = y(P, _, I, j.value, O), j !== null && (e && j.alternate !== null && P.delete(j.key === null ? I : j.key), b = o(j, b, I), k === null ? B = j : k.sibling = j, k = j); return e && P.forEach(function ($) { return t(_, $) }), Et && ss(_, I), B } function E(_, b, x, O) { if (typeof x == 'object' && x !== null && x.type === ea && x.key === null && (x = x.props.children), typeof x == 'object' && x !== null) { switch (x.$$typeof) { case Ic: e: { for (var B = x.key, k = b; k !== null; ) { if (k.key === B) { if (B = x.type, B === ea) { if (k.tag === 7) { n(_, k.sibling), b = i(k, x.props.children), b.return = _, _ = b; break e } } else if (k.elementType === B || typeof B == 'object' && B !== null && B.$$typeof === uo && iC(B) === k.type) { n(_, k.sibling), b = i(k, x.props), b.ref = rl(_, k, x), b.return = _, _ = b; break e } n(_, k); break } else t(_, k); k = k.sibling } x.type === ea ? (b = ps(x.props.children, _.mode, O, x.key), b.return = _, _ = b) : (O = $f(x.type, x.key, x.props, null, _.mode, O), O.ref = rl(_, b, x), O.return = _, _ = O) } return a(_); case Zs: e: { for (k = x.key; b !== null; ) { if (b.key === k) if (b.tag === 4 && b.stateNode.containerInfo === x.containerInfo && b.stateNode.implementation === x.implementation) { n(_, b.sibling), b = i(b, x.children || [ ]), b.return = _, _ = b; break e } else { n(_, b); break } else t(_, b); b = b.sibling } b = mm(x, _.mode, O), b.return = _, _ = b } return a(_); case uo: return k = x._init, E(_, b, k(x._payload), O) } if (Pu(x)) return v(_, b, x, O); if (Bu(x)) return p(_, b, x, O); bf(_, x) } return typeof x == 'string' && x !== '' || typeof x == 'number' ? (x = '' + x, b !== null && b.tag === 6 ? (n(_, b.sibling), b = i(b, x), b.return = _, _ = b) : (n(_, b), b = gm(x, _.mode, O), b.return = _, _ = b), a(_)) : n(_, b) } return E } var wa = oC(!0), sC = oC(!1), il = { }, si = yo(il), ol = yo(il), sl = yo(il); function us(e) { if (e === il) throw Error(pe(174)); return e } function R0(e, t) { switch (gt(sl, t), gt(ol, e), gt(si, il), e = t.nodeType, e) { case 9: case 11: t = (t = t.documentElement) ? t.namespaceURI : Pg(null, ''); break; default: e = e === 8 ? t.parentNode : t, t = e.namespaceURI || null, e = e.tagName, t = Pg(t, e) } wt(si), gt(si, t) } function ba() { wt(si), wt(ol), wt(sl) } function aC(e) { us(sl.current); var t = us(si.current), n = Pg(t, e.type); t !== n && (gt(ol, e), gt(si, n)) } function T0(e) { ol.current === e && (wt(si), wt(ol)) } var Ft = yo(0); function _f(e) { for (var t = e; t !== null; ) { if (t.tag === 13) { var n = t.memoizedState; if (n !== null && (n = n.dehydrated, n === null || n.data === '$?' || n.data === '$!')) return t } else if (t.tag === 19 && t.memoizedProps.revealOrder !== void 0) { if (t.flags & 128) return t } else if (t.child !== null) { t.child.return = t, t = t.child; continue } if (t === e) break; for (; t.sibling === null; ) { if (t.return === null || t.return === e) return null; t = t.return } t.sibling.return = t.return, t = t.sibling } return null } var I0 = [ ]; function N0() { for (var e = 0; e < I0.length; e++) I0[e]._workInProgressVersionPrimary = null; I0.length = 0 } var Cf = Oi.ReactCurrentDispatcher, L0 = Oi.ReactCurrentBatchConfig, ls = 0, Bt = null, Qt = null, en = null, Ef = !1, al = !1, ul = 0, CP = 0; function yn() { throw Error(pe(321)) } function M0(e, t) { if (t === null) return !1; for (var n = 0; n < t.length && n < e.length; n++) if (!Hr(e[n], t[n])) return !1; return !0 } function $0(e, t, n, r, i, o) { if (ls = o, Bt = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, Cf.current = e === null || e.memoizedState === null ? AP : SP, e = n(r, i), al) { o = 0; do { if (al = !1, ul = 0, 25 <= o) throw Error(pe(301)); o += 1, en = Qt = null, t.updateQueue = null, Cf.current = OP, e = n(r, i) } while (al) } if (Cf.current = Af, t = Qt !== null && Qt.next !== null, ls = 0, en = Qt = Bt = null, Ef = !1, t) throw Error(pe(300)); return e } function j0() { var e = ul !== 0; return ul = 0, e } function ai() { var e = { memoizedState: null, baseState: null, baseQueue: null, queue: null, next: null }; return en === null ? Bt.memoizedState = en = e : en = en.next = e, en } function Cr() { if (Qt === null) { var e = Bt.alternate; e = e !== null ? e.memoizedState : null } else e = Qt.next; var t = en === null ? Bt.memoizedState : en.next; if (t !== null) en = t, Qt = e; else { if (e === null) throw Error(pe(310)); Qt = e, e = { memoizedState: Qt.memoizedState, baseState: Qt.baseState, baseQueue: Qt.baseQueue, queue: Qt.queue, next: null }, en === null ? Bt.memoizedState = en = e : en = en.next = e } return en } function ll(e, t) { return typeof t == 'function' ? t(e) : t } function z0(e) { var t = Cr(), n = t.queue; if (n === null) throw Error(pe(311)); n.lastRenderedReducer = e; var r = Qt, i = r.baseQueue, o = n.pending; if (o !== null) { if (i !== null) { var a = i.next; i.next = o.next, o.next = a } r.baseQueue = i = o, n.pending = null } if (i !== null) { o = i.next, r = r.baseState; var u = a = null, c = null, f = o; do { var h = f.lane; if ((ls & h) === h) c !== null && (c = c.next = { lane: 0, action: f.action, hasEagerState: f.hasEagerState, eagerState: f.eagerState, next: null }), r = f.hasEagerState ? f.eagerState : e(r, f.action); else { var g = { lane: h, action: f.action, hasEagerState: f.hasEagerState, eagerState: f.eagerState, next: null }; c === null ? (u = c = g, a = r) : c = c.next = g, Bt.lanes |= h, cs |= h } f = f.next } while (f !== null && f !== o); c === null ? a = r : c.next = u, Hr(r, t.memoizedState) || (Mn = !0), t.memoizedState = r, t.baseState = a, t.baseQueue = c, n.lastRenderedState = r } if (e = n.interleaved, e !== null) { i = e; do o = i.lane, Bt.lanes |= o, cs |= o, i = i.next; while (i !== e) } else i === null && (n.lanes = 0); return [t.memoizedState, n.dispatch] } function U0(e) { var t = Cr(), n = t.queue; if (n === null) throw Error(pe(311)); n.lastRenderedReducer = e; var r = n.dispatch, i = n.pending, o = t.memoizedState; if (i !== null) { n.pending = null; var a = i = i.next; do o = e(o, a.action), a = a.next; while (a !== i); Hr(o, t.memoizedState) || (Mn = !0), t.memoizedState = o, t.baseQueue === null && (t.baseState = o), n.lastRenderedState = o } return [o, r] } function uC() { } function lC(e, t) { var n = Bt, r = Cr(), i = t(), o = !Hr(r.memoizedState, i); if (o && (r.memoizedState = i, Mn = !0), r = r.queue, H0(dC.bind(null, n, r, e), [ e ]), r.getSnapshot !== t || o || en !== null && en.memoizedState.tag & 1) { if (n.flags |= 2048, cl(9, fC.bind(null, n, r, i, t), void 0, null), tn === null) throw Error(pe(349)); ls & 30 || cC(n, t, i) } return i } function cC(e, t, n) { e.flags |= 16384, e = { getSnapshot: t, value: n }, t = Bt.updateQueue, t === null ? (t = { lastEffect: null, stores: null }, Bt.updateQueue = t, t.stores = [ e ]) : (n = t.stores, n === null ? t.stores = [ e ] : n.push(e)) } function fC(e, t, n, r) { t.value = n, t.getSnapshot = r, hC(t) && pC(e) } function dC(e, t, n) { return n(function () { hC(t) && pC(e) }) } function hC(e) { var t = e.getSnapshot; e = e.value; try { var n = t(); return !Hr(e, n) } catch { return !0 } } function pC(e) { var t = Ri(e, 1); t !== null && Gr(t, e, 1, - 1) } function gC(e) { var t = ai(); return typeof e == 'function' && (e = e()), t.memoizedState = t.baseState = e, e = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: ll, lastRenderedState: e }, t.queue = e, e = e.dispatch = xP.bind(null, Bt, e), [ t.memoizedState, e ] } function cl(e, t, n, r) { return e = { tag: e, create: t, destroy: n, deps: r, next: null }, t = Bt.updateQueue, t === null ? (t = { lastEffect: null, stores: null }, Bt.updateQueue = t, t.lastEffect = e.next = e) : (n = t.lastEffect, n === null ? t.lastEffect = e.next = e : (r = n.next, n.next = e, e.next = r, t.lastEffect = e)), e } function mC() { return Cr().memoizedState } function Df(e, t, n, r) { var i = ai(); Bt.flags |= e, i.memoizedState = cl(1 | t, n, void 0, r === void 0 ? null : r) } function xf(e, t, n, r) { var i = Cr(); r = r === void 0 ? null : r; var o = void 0; if (Qt !== null) { var a = Qt.memoizedState; if (o = a.destroy, r !== null && M0(r, a.deps)) { i.memoizedState = cl(t, n, o, r); return } } Bt.flags |= e, i.memoizedState = cl(1 | t, n, o, r) } function vC(e, t) { return Df(8390656, 8, e, t) } function H0(e, t) { return xf(2048, 8, e, t) } function yC(e, t) { return xf(4, 2, e, t) } function wC(e, t) { return xf(4, 4, e, t) } function bC(e, t) { if (typeof t == 'function') return e = e(), t(e), function () { t(null) }; if (t != null) return e = e(), t.current = e, function () { t.current = null } } function _C(e, t, n) { return n = n != null ? n.concat([e]) : null, xf(4, 4, bC.bind(null, t, e), n) } function W0() { } function CC(e, t) { var n = Cr(); t = t === void 0 ? null : t; var r = n.memoizedState; return r !== null && t !== null && M0(t, r[1]) ? r[0] : (n.memoizedState = [ e, t ], e) } function EC(e, t) { var n = Cr(); t = t === void 0 ? null : t; var r = n.memoizedState; return r !== null && t !== null && M0(t, r[1]) ? r[0] : (e = e(), n.memoizedState = [ e, t ], e) } function DC(e, t, n) { return ls & 21 ? (Hr(n, t) || (n = Yb(), Bt.lanes |= n, cs |= n, e.baseState = !0), t) : (e.baseState && (e.baseState = !1, Mn = !0), e.memoizedState = n) } function EP(e, t) { var n = at; at = n !== 0 && 4 > n ? n : 4, e(!0); var r = L0.transition; L0.transition = { }; try { e(!1), t() } finally { at = n, L0.transition = r } } function xC() { return Cr().memoizedState } function DP(e, t, n) { var r = Ao(e); if (n = { lane: r, action: n, hasEagerState: !1, eagerState: null, next: null }, AC(e)) SC(t, n); else if (n = Y_(e, t, n, r), n !== null) { var i = On(); Gr(n, e, r, i), OC(n, t, r) } } function xP(e, t, n) { var r = Ao(e), i = { lane: r, action: n, hasEagerState: !1, eagerState: null, next: null }; if (AC(e)) SC(t, i); else { var o = e.alternate; if (e.lanes === 0 && (o === null || o.lanes === 0) && (o = t.lastRenderedReducer, o !== null)) try { var a = t.lastRenderedState, u = o(a, n); if (i.hasEagerState = !0, i.eagerState = u, Hr(u, a)) { var c = t.interleaved; c === null ? (i.next = i, F0(t)) : (i.next = c.next, c.next = i), t.interleaved = i; return } } catch { } finally { } n = Y_(e, t, i, r), n !== null && (i = On(), Gr(n, e, r, i), OC(n, t, r)) } } function AC(e) { var t = e.alternate; return e === Bt || t !== null && t === Bt } function SC(e, t) { al = Ef = !0; var n = e.pending; n === null ? t.next = t : (t.next = n.next, n.next = t), e.pending = t } function OC(e, t, n) { if (n & 4194240) { var r = t.lanes; r &= e.pendingLanes, n |= r, t.lanes = n, Wg(e, n) } } var Af = { readContext: _r, useCallback: yn, useContext: yn, useEffect: yn, useImperativeHandle: yn, useInsertionEffect: yn, useLayoutEffect: yn, useMemo: yn, useReducer: yn, useRef: yn, useState: yn, useDebugValue: yn, useDeferredValue: yn, useTransition: yn, useMutableSource: yn, useSyncExternalStore: yn, useId: yn, unstable_isNewReconciler: !1 }, AP = { readContext: _r, useCallback: function (e, t) { return ai().memoizedState = [ e, t === void 0 ? null : t ], e }, useContext: _r, useEffect: vC, useImperativeHandle: function (e, t, n) { return n = n != null ? n.concat([e]) : null, Df(4194308, 4, bC.bind(null, t, e), n) }, useLayoutEffect: function (e, t) { return Df(4194308, 4, e, t) }, useInsertionEffect: function (e, t) { return Df(4, 2, e, t) }, useMemo: function (e, t) { var n = ai(); return t = t === void 0 ? null : t, e = e(), n.memoizedState = [ e, t ], e }, useReducer: function (e, t, n) { var r = ai(); return t = n !== void 0 ? n(t) : t, r.memoizedState = r.baseState = t, e = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: e, lastRenderedState: t }, r.queue = e, e = e.dispatch = DP.bind(null, Bt, e), [ r.memoizedState, e ] }, useRef: function (e) { var t = ai(); return e = { current: e }, t.memoizedState = e }, useState: gC, useDebugValue: W0, useDeferredValue: function (e) { return ai().memoizedState = e }, useTransition: function () { var e = gC(!1), t = e[0]; return e = EP.bind(null, e[1]), ai().memoizedState = e, [ t, e ] }, useMutableSource: function () { }, useSyncExternalStore: function (e, t, n) { var r = Bt, i = ai(); if (Et) { if (n === void 0) throw Error(pe(407)); n = n() } else { if (n = t(), tn === null) throw Error(pe(349)); ls & 30 || cC(r, t, n) } i.memoizedState = n; var o = { value: n, getSnapshot: t }; return i.queue = o, vC(dC.bind(null, r, o, e), [ e ]), r.flags |= 2048, cl(9, fC.bind(null, r, o, n, t), void 0, null), n }, useId: function () { var e = ai(), t = tn.identifierPrefix; if (Et) { var n = Pi, r = ki; n = (r & ~(1 << 32 - Ur(r) - 1)).toString(32) + n, t = ':' + t + 'R' + n, n = ul++, 0 < n && (t += 'H' + n.toString(32)), t += ':' } else n = CP++, t = ':' + t + 'r' + n.toString(32) + ':'; return e.memoizedState = t }, unstable_isNewReconciler: !1 }, SP = { readContext: _r, useCallback: CC, useContext: _r, useEffect: H0, useImperativeHandle: _C, useInsertionEffect: yC, useLayoutEffect: wC, useMemo: EC, useReducer: z0, useRef: mC, useState: function () { return z0(ll) }, useDebugValue: W0, useDeferredValue: function (e) { var t = Cr(); return DC(t, Qt.memoizedState, e) }, useTransition: function () { var e = z0(ll) [0], t = Cr().memoizedState; return [e, t] }, useMutableSource: uC, useSyncExternalStore: lC, useId: xC, unstable_isNewReconciler: !1 }, OP = { readContext: _r, useCallback: CC, useContext: _r, useEffect: H0, useImperativeHandle: _C, useInsertionEffect: yC, useLayoutEffect: wC, useMemo: EC, useReducer: U0, useRef: mC, useState: function () { return U0(ll) }, useDebugValue: W0, useDeferredValue: function (e) { var t = Cr(); return Qt === null ? t.memoizedState = e : DC(t, Qt.memoizedState, e) }, useTransition: function () { var e = U0(ll) [0], t = Cr().memoizedState; return [e, t] }, useMutableSource: uC, useSyncExternalStore: lC, useId: xC, unstable_isNewReconciler: !1 }; function _a(e, t) { try { var n = '', r = t; do n += n4(r), r = r.return; while (r); var i = n } catch (o) { i = ` Error generating stack: ` + o.message + ` ` + o.stack } return { value: e, source: t, stack: i, digest: null } } function V0(e, t, n) { return { value: e, source: null, stack: n ?? null, digest: t ?? null } } function K0(e, t) { try { console.error(t.value) } catch (n) { setTimeout(function () { throw n }) } } var FP = typeof WeakMap == 'function' ? WeakMap : Map; function FC(e, t, n) { n = Ti( - 1, n), n.tag = 3, n.payload = { element: null }; var r = t.value; return n.callback = function () { Rf || (Rf = !0, am = r), K0(e, t) }, n } function BC(e, t, n) { n = Ti( - 1, n), n.tag = 3; var r = e.type.getDerivedStateFromError; if (typeof r == 'function') { var i = t.value; n.payload = function () { return r(i) }, n.callback = function () { K0(e, t) } } var o = e.stateNode; return o !== null && typeof o.componentDidCatch == 'function' && (n.callback = function () { K0(e, t), typeof r != 'function' && (Do === null ? Do = new Set([this]) : Do.add(this)); var a = t.stack; this.componentDidCatch(t.value, { componentStack: a !== null ? a : '' }) }), n } function kC(e, t, n) { var r = e.pingCache; if (r === null) { r = e.pingCache = new FP; var i = new Set; r.set(t, i) } else i = r.get(t), i === void 0 && (i = new Set, r.set(t, i)); i.has(n) || (i.add(n), e = HP.bind(null, e, t, n), t.then(e, e)) } function PC(e) { do { var t; if ((t = e.tag === 13) && (t = e.memoizedState, t = t !== null ? t.dehydrated !== null : !0), t) return e; e = e.return } while (e !== null); return null } function RC(e, t, n, r, i) { return e.mode & 1 ? (e.flags |= 65536, e.lanes = i, e) : (e === t ? e.flags |= 65536 : (e.flags |= 128, n.flags |= 131072, n.flags &= - 52805, n.tag === 1 && (n.alternate === null ? n.tag = 17 : (t = Ti( - 1, 1), t.tag = 2, Co(n, t, 1))), n.lanes |= 1), e) } var BP = Oi.ReactCurrentOwner, Mn = !1; function Sn(e, t, n, r) { t.child = e === null ? sC(t, null, n, r) : wa(t, e.child, n, r) } function TC(e, t, n, r, i) { n = n.render; var o = t.ref; return ya(t, i), r = $0(e, t, n, r, o, i), n = j0(), e !== null && !Mn ? (t.updateQueue = e.updateQueue, t.flags &= - 2053, e.lanes &= ~i, Ii(e, t, i)) : (Et && n && b0(t), t.flags |= 1, Sn(e, t, r, i), t.child) } function IC(e, t, n, r, i) { if (e === null) { var o = n.type; return typeof o == 'function' && !pm(o) && o.defaultProps === void 0 && n.compare === null && n.defaultProps === void 0 ? (t.tag = 15, t.type = o, NC(e, t, o, r, i)) : (e = $f(n.type, null, r, t, t.mode, i), e.ref = t.ref, e.return = t, t.child = e) } if (o = e.child, !(e.lanes & i)) { var a = o.memoizedProps; if (n = n.compare, n = n !== null ? n : Yu, n(a, r) && e.ref === t.ref) return Ii(e, t, i) } return t.flags |= 1, e = Oo(o, r), e.ref = t.ref, e.return = t, t.child = e } function NC(e, t, n, r, i) { if (e !== null) { var o = e.memoizedProps; if (Yu(o, r) && e.ref === t.ref) if (Mn = !1, t.pendingProps = r = o, (e.lanes & i) !== 0) e.flags & 131072 && (Mn = !0); else return t.lanes = e.lanes, Ii(e, t, i) } return q0(e, t, n, r, i) } function LC(e, t, n) { var r = t.pendingProps, i = r.children, o = e !== null ? e.memoizedState : null; if (r.mode === 'hidden') if (!(t.mode & 1)) t.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, gt(Ea, er), er |= n; else { if (!(n & 1073741824)) return e = o !== null ? o.baseLanes | n : n, t.lanes = t.childLanes = 1073741824, t.memoizedState = { baseLanes: e, cachePool: null, transitions: null }, t.updateQueue = null, gt(Ea, er), er |= e, null; t.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, r = o !== null ? o.baseLanes : n, gt(Ea, er), er |= r } else o !== null ? (r = o.baseLanes | n, t.memoizedState = null) : r = n, gt(Ea, er), er |= r; return Sn(e, t, i, n), t.child } function MC(e, t) { var n = t.ref; (e === null && n !== null || e !== null && e.ref !== n) && (t.flags |= 512, t.flags |= 2097152) } function q0(e, t, n, r, i) { var o = Ln(n) ? is : vn.current; return o = ha(t, o), ya(t, i), n = $0(e, t, n, r, o, i), r = j0(), e !== null && !Mn ? (t.updateQueue = e.updateQueue, t.flags &= - 2053, e.lanes &= ~i, Ii(e, t, i)) : (Et && r && b0(t), t.flags |= 1, Sn(e, t, n, i), t.child) } function $C(e, t, n, r, i) { if (Ln(n)) { var o = !0; cf(t) } else o = !1; if (ya(t, i), t.stateNode === null) Of(e, t), nC(t, n, r), P0(t, n, r, i), r = !0; else if (e === null) { var a = t.stateNode, u = t.memoizedProps; a.props = u; var c = a.context, f = n.contextType; typeof f == 'object' && f !== null ? f = _r(f) : (f = Ln(n) ? is : vn.current, f = ha(t, f)); var h = n.getDerivedStateFromProps, g = typeof h == 'function' || typeof a.getSnapshotBeforeUpdate == 'function'; g || typeof a.UNSAFE_componentWillReceiveProps != 'function' && typeof a.componentWillReceiveProps != 'function' || (u !== r || c !== f) && rC(t, a, r, f), _o = !1; var m = t.memoizedState; a.state = m, yf(t, r, a, i), c = t.memoizedState, u !== r || m !== c || Nn.current || _o ? (typeof h == 'function' && (k0(t, n, h, r), c = t.memoizedState), (u = _o || tC(t, n, u, r, m, c, f)) ? (g || typeof a.UNSAFE_componentWillMount != 'function' && typeof a.componentWillMount != 'function' || (typeof a.componentWillMount == 'function' && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == 'function' && a.UNSAFE_componentWillMount()), typeof a.componentDidMount == 'function' && (t.flags |= 4194308)) : (typeof a.componentDidMount == 'function' && (t.flags |= 4194308), t.memoizedProps = r, t.memoizedState = c), a.props = r, a.state = c, a.context = f, r = u) : (typeof a.componentDidMount == 'function' && (t.flags |= 4194308), r = !1) } else { a = t.stateNode, J_(e, t), u = t.memoizedProps, f = t.type === t.elementType ? u : Vr(t.type, u), a.props = f, g = t.pendingProps, m = a.context, c = n.contextType, typeof c == 'object' && c !== null ? c = _r(c) : (c = Ln(n) ? is : vn.current, c = ha(t, c)); var y = n.getDerivedStateFromProps; (h = typeof y == 'function' || typeof a.getSnapshotBeforeUpdate == 'function') || typeof a.UNSAFE_componentWillReceiveProps != 'function' && typeof a.componentWillReceiveProps != 'function' || (u !== g || m !== c) && rC(t, a, r, c), _o = !1, m = t.memoizedState, a.state = m, yf(t, r, a, i); var v = t.memoizedState; u !== g || m !== v || Nn.current || _o ? (typeof y == 'function' && (k0(t, n, y, r), v = t.memoizedState), (f = _o || tC(t, n, f, r, m, v, c) || !1) ? (h || typeof a.UNSAFE_componentWillUpdate != 'function' && typeof a.componentWillUpdate != 'function' || (typeof a.componentWillUpdate == 'function' && a.componentWillUpdate(r, v, c), typeof a.UNSAFE_componentWillUpdate == 'function' && a.UNSAFE_componentWillUpdate(r, v, c)), typeof a.componentDidUpdate == 'function' && (t.flags |= 4), typeof a.getSnapshotBeforeUpdate == 'function' && (t.flags |= 1024)) : (typeof a.componentDidUpdate != 'function' || u === e.memoizedProps && m === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != 'function' || u === e.memoizedProps && m === e.memoizedState || (t.flags |= 1024), t.memoizedProps = r, t.memoizedState = v), a.props = r, a.state = v, a.context = c, r = f) : (typeof a.componentDidUpdate != 'function' || u === e.memoizedProps && m === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != 'function' || u === e.memoizedProps && m === e.memoizedState || (t.flags |= 1024), r = !1) } return G0(e, t, n, r, o, i) } function G0(e, t, n, r, i, o) { MC(e, t); var a = (t.flags & 128) !== 0; if (!r && !a) return i && H_(t, n, !1), Ii(e, t, o); r = t.stateNode, BP.current = t; var u = a && typeof n.getDerivedStateFromError != 'function' ? null : r.render(); return t.flags |= 1, e !== null && a ? (t.child = wa(t, e.child, null, o), t.child = wa(t, null, u, o)) : Sn(e, t, u, o), t.memoizedState = r.state, i && H_(t, n, !0), t.child } function jC(e) { var t = e.stateNode; t.pendingContext ? z_(e, t.pendingContext, t.pendingContext !== t.context) : t.context && z_(e, t.context, !1), R0(e, t.containerInfo) } function zC(e, t, n, r, i) { return ma(), D0(i), t.flags |= 256, Sn(e, t, n, r), t.child } var Q0 = { dehydrated: null, treeContext: null, retryLane: 0 }; function Y0(e) { return { baseLanes: e, cachePool: null, transitions: null } } function UC(e, t, n) { var r = t.pendingProps, i = Ft.current, o = !1, a = (t.flags & 128) !== 0, u; if ((u = a) || (u = e !== null && e.memoizedState === null ? !1 : (i & 2) !== 0), u ? (o = !0, t.flags &= - 129) : (e === null || e.memoizedState !== null) && (i |= 1), gt(Ft, i & 1), e === null) return E0(t), e = t.memoizedState, e !== null && (e = e.dehydrated, e !== null) ? (t.mode & 1 ? e.data === '$!' ? t.lanes = 8 : t.lanes = 1073741824 : t.lanes = 1, null) : (a = r.children, e = r.fallback, o ? (r = t.mode, o = t.child, a = { mode: 'hidden', children: a }, !(r & 1) && o !== null ? (o.childLanes = 0, o.pendingProps = a) : o = jf(a, r, 0, null), e = ps(e, r, n, null), o.return = t, e.return = t, o.sibling = e, t.child = o, t.child.memoizedState = Y0(n), t.memoizedState = Q0, e) : J0(t, a)); if (i = e.memoizedState, i !== null && (u = i.dehydrated, u !== null)) return kP(e, t, a, r, u, i, n); if (o) { o = r.fallback, a = t.mode, i = e.child, u = i.sibling; var c = { mode: 'hidden', children: r.children }; return !(a & 1) && t.child !== i ? (r = t.child, r.childLanes = 0, r.pendingProps = c, t.deletions = null) : (r = Oo(i, c), r.subtreeFlags = i.subtreeFlags & 14680064), u !== null ? o = Oo(u, o) : (o = ps(o, a, n, null), o.flags |= 2), o.return = t, r.return = t, r.sibling = o, t.child = r, r = o, o = t.child, a = e.child.memoizedState, a = a === null ? Y0(n) : { baseLanes: a.baseLanes | n, cachePool: null, transitions: a.transitions }, o.memoizedState = a, o.childLanes = e.childLanes & ~n, t.memoizedState = Q0, r } return o = e.child, e = o.sibling, r = Oo(o, { mode: 'visible', children: r.children }), !(t.mode & 1) && (r.lanes = n), r.return = t, r.sibling = null, e !== null && (n = t.deletions, n === null ? (t.deletions = [ e ], t.flags |= 16) : n.push(e)), t.child = r, t.memoizedState = null, r } function J0(e, t) { return t = jf({ mode: 'visible', children: t }, e.mode, 0, null), t.return = e, e.child = t } function Sf(e, t, n, r) { return r !== null && D0(r), wa(t, e.child, null, n), e = J0(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e } function kP(e, t, n, r, i, o, a) { if (n) return t.flags & 256 ? (t.flags &= - 257, r = V0(Error(pe(422))), Sf(e, t, a, r)) : t.memoizedState !== null ? (t.child = e.child, t.flags |= 128, null) : (o = r.fallback, i = t.mode, r = jf({ mode: 'visible', children: r.children }, i, 0, null), o = ps(o, i, a, null), o.flags |= 2, r.return = t, o.return = t, r.sibling = o, t.child = r, t.mode & 1 && wa(t, e.child, null, a), t.child.memoizedState = Y0(a), t.memoizedState = Q0, o); if (!(t.mode & 1)) return Sf(e, t, a, null); if (i.data === '$!') { if (r = i.nextSibling && i.nextSibling.dataset, r) var u = r.dgst; return r = u, o = Error(pe(419)), r = V0(o, r, void 0), Sf(e, t, a, r) } if (u = (a & e.childLanes) !== 0, Mn || u) { if (r = tn, r !== null) { switch (a & - a) { case 4: i = 2; break; case 16: i = 8; break; case 64: case 128: case 256: case 512: case 1024: case 2048: case 4096: case 8192: case 16384: case 32768: case 65536: case 131072: case 262144: case 524288: case 1048576: case 2097152: case 4194304: case 8388608: case 16777216: case 33554432: case 67108864: i = 32; break; case 536870912: i = 268435456; break; default: i = 0 } i = i & (r.suspendedLanes | a) ? 0 : i, i !== 0 && i !== o.retryLane && (o.retryLane = i, Ri(e, i), Gr(r, e, i, - 1)) } return hm(), r = V0(Error(pe(421))), Sf(e, t, a, r) } return i.data === '$?' ? (t.flags |= 128, t.child = e.child, t = WP.bind(null, e), i._reactRetry = t, null) : (e = o.treeContext, Zn = vo(i.nextSibling), Xn = t, Et = !0, Wr = null, e !== null && (wr[br++] = ki, wr[br++] = Pi, wr[br++] = os, ki = e.id, Pi = e.overflow, os = t), t = J0(t, r.children), t.flags |= 4096, t) } function HC(e, t, n) { e.lanes |= t; var r = e.alternate; r !== null && (r.lanes |= t), O0(e.return, t, n) } function X0(e, t, n, r, i) { var o = e.memoizedState; o === null ? e.memoizedState = { isBackwards: t, rendering: null, renderingStartTime: 0, last: r, tail: n, tailMode: i } : (o.isBackwards = t, o.rendering = null, o.renderingStartTime = 0, o.last = r, o.tail = n, o.tailMode = i) } function WC(e, t, n) { var r = t.pendingProps, i = r.revealOrder, o = r.tail; if (Sn(e, t, r.children, n), r = Ft.current, r & 2) r = r & 1 | 2, t.flags |= 128; else { if (e !== null && e.flags & 128) e: for (e = t.child; e !== null; ) { if (e.tag === 13) e.memoizedState !== null && HC(e, n, t); else if (e.tag === 19) HC(e, n, t); else if (e.child !== null) { e.child.return = e, e = e.child; continue } if (e === t) break e; for (; e.sibling === null; ) { if (e.return === null || e.return === t) break e; e = e.return } e.sibling.return = e.return, e = e.sibling } r &= 1 } if (gt(Ft, r), !(t.mode & 1)) t.memoizedState = null; else switch (i) { case 'forwards': for (n = t.child, i = null; n !== null; ) e = n.alternate, e !== null && _f(e) === null && (i = n), n = n.sibling; n = i, n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null), X0(t, !1, i, n, o); break; case 'backwards': for (n = null, i = t.child, t.child = null; i !== null; ) { if (e = i.alternate, e !== null && _f(e) === null) { t.child = i; break } e = i.sibling, i.sibling = n, n = i, i = e } X0(t, !0, n, null, o); break; case 'together': X0(t, !1, null, null, void 0); break; default: t.memoizedState = null } return t.child } function Of(e, t) { !(t.mode & 1) && e !== null && (e.alternate = null, t.alternate = null, t.flags |= 2) } function Ii(e, t, n) { if (e !== null && (t.dependencies = e.dependencies), cs |= t.lanes, !(n & t.childLanes)) return null; if (e !== null && t.child !== e.child) throw Error(pe(153)); if (t.child !== null) { for (e = t.child, n = Oo(e, e.pendingProps), t.child = n, n.return = t; e.sibling !== null; ) e = e.sibling, n = n.sibling = Oo(e, e.pendingProps), n.return = t; n.sibling = null } return t.child } function PP(e, t, n) { switch (t.tag) { case 3: jC(t), ma(); break; case 5: aC(t); break; case 1: Ln(t.type) && cf(t); break; case 4: R0(t, t.stateNode.containerInfo); break; case 10: var r = t.type._context, i = t.memoizedProps.value; gt(gf, r._currentValue), r._currentValue = i; break; case 13: if (r = t.memoizedState, r !== null) return r.dehydrated !== null ? (gt(Ft, Ft.current & 1), t.flags |= 128, null) : n & t.child.childLanes ? UC(e, t, n) : (gt(Ft, Ft.current & 1), e = Ii(e, t, n), e !== null ? e.sibling : null); gt(Ft, Ft.current & 1); break; case 19: if (r = (n & t.childLanes) !== 0, e.flags & 128) { if (r) return WC(e, t, n); t.flags |= 128 } if (i = t.memoizedState, i !== null && (i.rendering = null, i.tail = null, i.lastEffect = null), gt(Ft, Ft.current), r) break; return null; case 22: case 23: return t.lanes = 0, LC(e, t, n) } return Ii(e, t, n) } var VC, Z0, KC, qC; VC = function (e, t) { for (var n = t.child; n !== null; ) { if (n.tag === 5 || n.tag === 6) e.appendChild(n.stateNode); else if (n.tag !== 4 && n.child !== null) { n.child.return = n, n = n.child; continue } if (n === t) break; for (; n.sibling === null; ) { if (n.return === null || n.return === t) return; n = n.return } n.sibling.return = n.return, n = n.sibling } }, Z0 = function () { }, KC = function (e, t, n, r) { var i = e.memoizedProps; if (i !== r) { e = t.stateNode, us(si.current); var o = null; switch (n) { case 'input': i = Og(e, i), r = Og(e, r), o = [ ]; break; case 'select': i = Ot({ }, i, { value: void 0 }), r = Ot({ }, r, { value: void 0 }), o = [ ]; break; case 'textarea': i = kg(e, i), r = kg(e, r), o = [ ]; break; default: typeof i.onClick != 'function' && typeof r.onClick == 'function' && (e.onclick = af) } Rg(n, r); var a; n = null; for (f in i) if (!r.hasOwnProperty(f) && i.hasOwnProperty(f) && i[f] != null) if (f === 'style') { var u = i[f]; for (a in u) u.hasOwnProperty(a) && (n || (n = { }), n[a] = '') } else f !== 'dangerouslySetInnerHTML' && f !== 'children' && f !== 'suppressContentEditableWarning' && f !== 'suppressHydrationWarning' && f !== 'autoFocus' && (Fu.hasOwnProperty(f) ? o || (o = [ ]) : (o = o || [ ]).push(f, null)); for (f in r) { var c = r[f]; if (u = i != null ? i[f] : void 0, r.hasOwnProperty(f) && c !== u && (c != null || u != null)) if (f === 'style') if (u) { for (a in u) !u.hasOwnProperty(a) || c && c.hasOwnProperty(a) || (n || (n = { }), n[a] = ''); for (a in c) c.hasOwnProperty(a) && u[a] !== c[a] && (n || (n = { }), n[a] = c[a]) } else n || (o || (o = [ ]), o.push(f, n)), n = c; else f === 'dangerouslySetInnerHTML' ? (c = c ? c.__html : void 0, u = u ? u.__html : void 0, c != null && u !== c && (o = o || [ ]).push(f, c)) : f === 'children' ? typeof c != 'string' && typeof c != 'number' || (o = o || [ ]).push(f, '' + c) : f !== 'suppressContentEditableWarning' && f !== 'suppressHydrationWarning' && (Fu.hasOwnProperty(f) ? (c != null && f === 'onScroll' && yt('scroll', e), o || u === c || (o = [ ])) : (o = o || [ ]).push(f, c)) } n && (o = o || [ ]).push('style', n); var f = o; (t.updateQueue = f) && (t.flags |= 4) } }, qC = function (e, t, n, r) { n !== r && (t.flags |= 4) }; function fl(e, t) { if (!Et) switch (e.tailMode) { case 'hidden': t = e.tail; for (var n = null; t !== null; ) t.alternate !== null && (n = t), t = t.sibling; n === null ? e.tail = null : n.sibling = null; break; case 'collapsed': n = e.tail; for (var r = null; n !== null; ) n.alternate !== null && (r = n), n = n.sibling; r === null ? t || e.tail === null ? e.tail = null : e.tail.sibling = null : r.sibling = null } } function wn(e) { var t = e.alternate !== null && e.alternate.child === e.child, n = 0, r = 0; if (t) for (var i = e.child; i !== null; ) n |= i.lanes | i.childLanes, r |= i.subtreeFlags & 14680064, r |= i.flags & 14680064, i.return = e, i = i.sibling; else for (i = e.child; i !== null; ) n |= i.lanes | i.childLanes, r |= i.subtreeFlags, r |= i.flags, i.return = e, i = i.sibling; return e.subtreeFlags |= r, e.childLanes = n, t } function RP(e, t, n) { var r = t.pendingProps; switch (_0(t), t.tag) { case 2: case 16: case 15: case 0: case 11: case 7: case 8: case 12: case 9: case 14: return wn(t), null; case 1: return Ln(t.type) && lf(), wn(t), null; case 3: return r = t.stateNode, ba(), wt(Nn), wt(vn), N0(), r.pendingContext && (r.context = r.pendingContext, r.pendingContext = null), (e === null || e.child === null) && (pf(t) ? t.flags |= 4 : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, Wr !== null && (cm(Wr), Wr = null))), Z0(e, t), wn(t), null; case 5: T0(t); var i = us(sl.current); if (n = t.type, e !== null && t.stateNode != null) KC(e, t, n, r, i), e.ref !== t.ref && (t.flags |= 512, t.flags |= 2097152); else { if (!r) { if (t.stateNode === null) throw Error(pe(166)); return wn(t), null } if (e = us(si.current), pf(t)) { r = t.stateNode, n = t.type; var o = t.memoizedProps; switch (r[oi] = t, r[tl] = o, e = (t.mode & 1) !== 0, n) { case 'dialog': yt('cancel', r), yt('close', r); break; case 'iframe': case 'object': case 'embed': yt('load', r); break; case 'video': case 'audio': for (i = 0; i < Xu.length; i++) yt(Xu[i], r); break; case 'source': yt('error', r); break; case 'img': case 'image': case 'link': yt('error', r), yt('load', r); break; case 'details': yt('toggle', r); break; case 'input': Ab(r, o), yt('invalid', r); break; case 'select': r._wrapperState = { wasMultiple: !!o.multiple }, yt('invalid', r); break; case 'textarea': Fb(r, o), yt('invalid', r) } Rg(n, o), i = null; for (var a in o) if (o.hasOwnProperty(a)) { var u = o[a]; a === 'children' ? typeof u == 'string' ? r.textContent !== u && (o.suppressHydrationWarning !== !0 && sf(r.textContent, u, e), i = [ 'children', u ]) : typeof u == 'number' && r.textContent !== '' + u && (o.suppressHydrationWarning !== !0 && sf(r.textContent, u, e), i = [ 'children', '' + u ]) : Fu.hasOwnProperty(a) && u != null && a === 'onScroll' && yt('scroll', r) } switch (n) { case 'input': Nc(r), Ob(r, o, !0); break; case 'textarea': Nc(r), kb(r); break; case 'select': case 'option': break; default: typeof o.onClick == 'function' && (r.onclick = af) } r = i, t.updateQueue = r, r !== null && (t.flags |= 4) } else { a = i.nodeType === 9 ? i : i.ownerDocument, e === 'http://www.w3.org/1999/xhtml' && (e = Pb(n)), e === 'http://www.w3.org/1999/xhtml' ? n === 'script' ? (e = a.createElement('div'), e.innerHTML = '<script></script>', e = e.removeChild(e.firstChild)) : typeof r.is == 'string' ? e = a.createElement(n, { is: r.is }) : (e = a.createElement(n), n === 'select' && (a = e, r.multiple ? a.multiple = !0 : r.size && (a.size = r.size))) : e = a.createElementNS(e, n), e[oi] = t, e[tl] = r, VC(e, t, !1, !1), t.stateNode = e; e: { switch (a = Tg(n, r), n) { case 'dialog': yt('cancel', e), yt('close', e), i = r; break; case 'iframe': case 'object': case 'embed': yt('load', e), i = r; break; case 'video': case 'audio': for (i = 0; i < Xu.length; i++) yt(Xu[i], e); i = r; break; case 'source': yt('error', e), i = r; break; case 'img': case 'image': case 'link': yt('error', e), yt('load', e), i = r; break; case 'details': yt('toggle', e), i = r; break; case 'input': Ab(e, r), i = Og(e, r), yt('invalid', e); break; case 'option': i = r; break; case 'select': e._wrapperState = { wasMultiple: !!r.multiple }, i = Ot({ }, r, { value: void 0 }), yt('invalid', e); break; case 'textarea': Fb(e, r), i = kg(e, r), yt('invalid', e); break; default: i = r } Rg(n, i), u = i; for (o in u) if (u.hasOwnProperty(o)) { var c = u[o]; o === 'style' ? Ib(e, c) : o === 'dangerouslySetInnerHTML' ? (c = c ? c.__html : void 0, c != null && Rb(e, c)) : o === 'children' ? typeof c == 'string' ? (n !== 'textarea' || c !== '') && Ru(e, c) : typeof c == 'number' && Ru(e, '' + c) : o !== 'suppressContentEditableWarning' && o !== 'suppressHydrationWarning' && o !== 'autoFocus' && (Fu.hasOwnProperty(o) ? c != null && o === 'onScroll' && yt('scroll', e) : c != null && vg(e, o, c, a)) } switch (n) { case 'input': Nc(e), Ob(e, r, !1); break; case 'textarea': Nc(e), kb(e); break; case 'option': r.value != null && e.setAttribute('value', '' + lo(r.value)); break; case 'select': e.multiple = !!r.multiple, o = r.value, o != null ? ta(e, !!r.multiple, o, !1) : r.defaultValue != null && ta(e, !!r.multiple, r.defaultValue, !0); break; default: typeof i.onClick == 'function' && (e.onclick = af) } switch (n) { case 'button': case 'input': case 'select': case 'textarea': r = !!r.autoFocus; break e; case 'img': r = !0; break e; default: r = !1 } } r && (t.flags |= 4) } t.ref !== null && (t.flags |= 512, t.flags |= 2097152) } return wn(t), null; case 6: if (e && t.stateNode != null) qC(e, t, e.memoizedProps, r); else { if (typeof r != 'string' && t.stateNode === null) throw Error(pe(166)); if (n = us(sl.current), us(si.current), pf(t)) { if (r = t.stateNode, n = t.memoizedProps, r[oi] = t, (o = r.nodeValue !== n) && (e = Xn, e !== null)) switch (e.tag) { case 3: sf(r.nodeValue, n, (e.mode & 1) !== 0); break; case 5: e.memoizedProps.suppressHydrationWarning !== !0 && sf(r.nodeValue, n, (e.mode & 1) !== 0) } o && (t.flags |= 4) } else r = (n.nodeType === 9 ? n : n.ownerDocument).createTextNode(r), r[oi] = t, t.stateNode = r } return wn(t), null; case 13: if (wt(Ft), r = t.memoizedState, e === null || e.memoizedState !== null && e.memoizedState.dehydrated !== null) { if (Et && Zn !== null && t.mode & 1 && !(t.flags & 128)) Q_(), ma(), t.flags |= 98560, o = !1; else if (o = pf(t), r !== null && r.dehydrated !== null) { if (e === null) { if (!o) throw Error(pe(318)); if (o = t.memoizedState, o = o !== null ? o.dehydrated : null, !o) throw Error(pe(317)); o[oi] = t } else ma(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4; wn(t), o = !1 } else Wr !== null && (cm(Wr), Wr = null), o = !0; if (!o) return t.flags & 65536 ? t : null } return t.flags & 128 ? (t.lanes = n, t) : (r = r !== null, r !== (e !== null && e.memoizedState !== null) && r && (t.child.flags |= 8192, t.mode & 1 && (e === null || Ft.current & 1 ? Yt === 0 && (Yt = 3) : hm())), t.updateQueue !== null && (t.flags |= 4), wn(t), null); case 4: return ba(), Z0(e, t), e === null && Zu(t.stateNode.containerInfo), wn(t), null; case 10: return S0(t.type._context), wn(t), null; case 17: return Ln(t.type) && lf(), wn(t), null; case 19: if (wt(Ft), o = t.memoizedState, o === null) return wn(t), null; if (r = (t.flags & 128) !== 0, a = o.rendering, a === null) if (r) fl(o, !1); else { if (Yt !== 0 || e !== null && e.flags & 128) for (e = t.child; e !== null; ) { if (a = _f(e), a !== null) { for (t.flags |= 128, fl(o, !1), r = a.updateQueue, r !== null && (t.updateQueue = r, t.flags |= 4), t.subtreeFlags = 0, r = n, n = t.child; n !== null; ) o = n, e = r, o.flags &= 14680066, a = o.alternate, a === null ? (o.childLanes = 0, o.lanes = e, o.child = null, o.subtreeFlags = 0, o.memoizedProps = null, o.memoizedState = null, o.updateQueue = null, o.dependencies = null, o.stateNode = null) : (o.childLanes = a.childLanes, o.lanes = a.lanes, o.child = a.child, o.subtreeFlags = 0, o.deletions = null, o.memoizedProps = a.memoizedProps, o.memoizedState = a.memoizedState, o.updateQueue = a.updateQueue, o.type = a.type, e = a.dependencies, o.dependencies = e === null ? null : { lanes: e.lanes, firstContext: e.firstContext }), n = n.sibling; return gt(Ft, Ft.current & 1 | 2), t.child } e = e.sibling } o.tail !== null && jt() > Da && (t.flags |= 128, r = !0, fl(o, !1), t.lanes = 4194304) } else { if (!r) if (e = _f(a), e !== null) { if (t.flags |= 128, r = !0, n = e.updateQueue, n !== null && (t.updateQueue = n, t.flags |= 4), fl(o, !0), o.tail === null && o.tailMode === 'hidden' && !a.alternate && !Et) return wn(t), null } else 2 * jt() - o.renderingStartTime > Da && n !== 1073741824 && (t.flags |= 128, r = !0, fl(o, !1), t.lanes = 4194304); o.isBackwards ? (a.sibling = t.child, t.child = a) : (n = o.last, n !== null ? n.sibling = a : t.child = a, o.last = a) } return o.tail !== null ? (t = o.tail, o.rendering = t, o.tail = t.sibling, o.renderingStartTime = jt(), t.sibling = null, n = Ft.current, gt(Ft, r ? n & 1 | 2 : n & 1), t) : (wn(t), null); case 22: case 23: return dm(), r = t.memoizedState !== null, e !== null && e.memoizedState !== null !== r && (t.flags |= 8192), r && t.mode & 1 ? er & 1073741824 && (wn(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : wn(t), null; case 24: return null; case 25: return null } throw Error(pe(156, t.tag)) } function TP(e, t) { switch (_0(t), t.tag) { case 1: return Ln(t.type) && lf(), e = t.flags, e & 65536 ? (t.flags = e & - 65537 | 128, t) : null; case 3: return ba(), wt(Nn), wt(vn), N0(), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & - 65537 | 128, t) : null; case 5: return T0(t), null; case 13: if (wt(Ft), e = t.memoizedState, e !== null && e.dehydrated !== null) { if (t.alternate === null) throw Error(pe(340)); ma() } return e = t.flags, e & 65536 ? (t.flags = e & - 65537 | 128, t) : null; case 19: return wt(Ft), null; case 4: return ba(), null; case 10: return S0(t.type._context), null; case 22: case 23: return dm(), null; case 24: return null; default: return null } } var Ff = !1, bn = !1, IP = typeof WeakSet == 'function' ? WeakSet : Set, Ae = null; function Ca(e, t) { var n = e.ref; if (n !== null) if (typeof n == 'function') try { n(null) } catch (r) { It(e, t, r) } else n.current = null } function em(e, t, n) { try { n() } catch (r) { It(e, t, r) } } var GC = !1; function NP(e, t) { if (d0 = Gc, e = x_(), i0(e)) { if ('selectionStart' in e) var n = { start: e.selectionStart, end: e.selectionEnd }; else e: { n = (n = e.ownerDocument) && n.defaultView || window; var r = n.getSelection && n.getSelection(); if (r && r.rangeCount !== 0) { n = r.anchorNode; var i = r.anchorOffset, o = r.focusNode; r = r.focusOffset; try { n.nodeType, o.nodeType } catch { n = null; break e } var a = 0, u = - 1, c = - 1, f = 0, h = 0, g = e, m = null; t: for (; ; ) { for (var y; g !== n || i !== 0 && g.nodeType !== 3 || (u = a + i), g !== o || r !== 0 && g.nodeType !== 3 || (c = a + r), g.nodeType === 3 && (a += g.nodeValue.length), (y = g.firstChild) !== null; ) m = g, g = y; for (; ; ) { if (g === e) break t; if (m === n && ++f === i && (u = a), m === o && ++h === r && (c = a), (y = g.nextSibling) !== null) break; g = m, m = g.parentNode } g = y } n = u === - 1 || c === - 1 ? null : { start: u, end: c } } else n = null } n = n || { start: 0, end: 0 } } else n = null; for (h0 = { focusedElem: e, selectionRange: n }, Gc = !1, Ae = t; Ae !== null; ) if (t = Ae, e = t.child, (t.subtreeFlags & 1028) !== 0 && e !== null) e.return = t, Ae = e; else for (; Ae !== null; ) { t = Ae; try { var v = t.alternate; if (t.flags & 1024) switch (t.tag) { case 0: case 11: case 15: break; case 1: if (v !== null) { var p = v.memoizedProps, E = v.memoizedState, _ = t.stateNode, b = _.getSnapshotBeforeUpdate(t.elementType === t.type ? p : Vr(t.type, p), E); _.__reactInternalSnapshotBeforeUpdate = b } break; case 3: var x = t.stateNode.containerInfo; x.nodeType === 1 ? x.textContent = '' : x.nodeType === 9 && x.documentElement && x.removeChild(x.documentElement); break; case 5: case 6: case 4: case 17: break; default: throw Error(pe(163)) } } catch (O) { It(t, t.return, O) } if (e = t.sibling, e !== null) { e.return = t.return, Ae = e; break } Ae = t.return } return v = GC, GC = !1, v } function dl(e, t, n) { var r = t.updateQueue; if (r = r !== null ? r.lastEffect : null, r !== null) { var i = r = r.next; do { if ((i.tag & e) === e) { var o = i.destroy; i.destroy = void 0, o !== void 0 && em(t, n, o) } i = i.next } while (i !== r) } } function Bf(e, t) { if (t = t.updateQueue, t = t !== null ? t.lastEffect : null, t !== null) { var n = t = t.next; do { if ((n.tag & e) === e) { var r = n.create; n.destroy = r() } n = n.next } while (n !== t) } } function tm(e) { var t = e.ref; if (t !== null) { var n = e.stateNode; switch (e.tag) { case 5: e = n; break; default: e = n } typeof t == 'function' ? t(e) : t.current = e } } function QC(e) { var t = e.alternate; t !== null && (e.alternate = null, QC(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && (delete t[oi], delete t[tl], delete t[v0], delete t[yP], delete t[wP])), e.stateNode = null, e.return = null, e.dependencies = null, e.memoizedProps = null, e.memoizedState = null, e.pendingProps = null, e.stateNode = null, e.updateQueue = null } function YC(e) { return e.tag === 5 || e.tag === 3 || e.tag === 4 } function JC(e) { e: for (; ; ) { for (; e.sibling === null; ) { if (e.return === null || YC(e.return)) return null; e = e.return } for (e.sibling.return = e.return, e = e.sibling; e.tag !== 5 && e.tag !== 6 && e.tag !== 18; ) { if (e.flags & 2 || e.child === null || e.tag === 4) continue e; e.child.return = e, e = e.child } if (!(e.flags & 2)) return e.stateNode } } function nm(e, t, n) { var r = e.tag; if (r === 5 || r === 6) e = e.stateNode, t ? n.nodeType === 8 ? n.parentNode.insertBefore(e, t) : n.insertBefore(e, t) : (n.nodeType === 8 ? (t = n.parentNode, t.insertBefore(e, n)) : (t = n, t.appendChild(e)), n = n._reactRootContainer, n != null || t.onclick !== null || (t.onclick = af)); else if (r !== 4 && (e = e.child, e !== null)) for (nm(e, t, n), e = e.sibling; e !== null; ) nm(e, t, n), e = e.sibling } function rm(e, t, n) { var r = e.tag; if (r === 5 || r === 6) e = e.stateNode, t ? n.insertBefore(e, t) : n.appendChild(e); else if (r !== 4 && (e = e.child, e !== null)) for (rm(e, t, n), e = e.sibling; e !== null; ) rm(e, t, n), e = e.sibling } var ln = null, Kr = !1; function Eo(e, t, n) { for (n = n.child; n !== null; ) XC(e, t, n), n = n.sibling } function XC(e, t, n) { if (ii && typeof ii.onCommitFiberUnmount == 'function') try { ii.onCommitFiberUnmount(Uc, n) } catch { } switch (n.tag) { case 5: bn || Ca(n, t); case 6: var r = ln, i = Kr; ln = null, Eo(e, t, n), ln = r, Kr = i, ln !== null && (Kr ? (e = ln, n = n.stateNode, e.nodeType === 8 ? e.parentNode.removeChild(n) : e.removeChild(n)) : ln.removeChild(n.stateNode)); break; case 18: ln !== null && (Kr ? (e = ln, n = n.stateNode, e.nodeType === 8 ? m0(e.parentNode, n) : e.nodeType === 1 && m0(e, n), Wu(e)) : m0(ln, n.stateNode)); break; case 4: r = ln, i = Kr, ln = n.stateNode.containerInfo, Kr = !0, Eo(e, t, n), ln = r, Kr = i; break; case 0: case 11: case 14: case 15: if (!bn && (r = n.updateQueue, r !== null && (r = r.lastEffect, r !== null))) { i = r = r.next; do { var o = i, a = o.destroy; o = o.tag, a !== void 0 && (o & 2 || o & 4) && em(n, t, a), i = i.next } while (i !== r) } Eo(e, t, n); break; case 1: if (!bn && (Ca(n, t), r = n.stateNode, typeof r.componentWillUnmount == 'function')) try { r.props = n.memoizedProps, r.state = n.memoizedState, r.componentWillUnmount() } catch (u) { It(n, t, u) } Eo(e, t, n); break; case 21: Eo(e, t, n); break; case 22: n.mode & 1 ? (bn = (r = bn) || n.memoizedState !== null, Eo(e, t, n), bn = r) : Eo(e, t, n); break; default: Eo(e, t, n) } } function ZC(e) { var t = e.updateQueue; if (t !== null) { e.updateQueue = null; var n = e.stateNode; n === null && (n = e.stateNode = new IP), t.forEach(function (r) { var i = VP.bind(null, e, r); n.has(r) || (n.add(r), r.then(i, i)) }) } } function qr(e, t) { var n = t.deletions; if (n !== null) for (var r = 0; r < n.length; r++) { var i = n[r]; try { var o = e, a = t, u = a; e: for (; u !== null; ) { switch (u.tag) { case 5: ln = u.stateNode, Kr = !1; break e; case 3: ln = u.stateNode.containerInfo, Kr = !0; break e; case 4: ln = u.stateNode.containerInfo, Kr = !0; break e } u = u.return } if (ln === null) throw Error(pe(160)); XC(o, a, i), ln = null, Kr = !1; var c = i.alternate; c !== null && (c.return = null), i.return = null } catch (f) { It(i, t, f) } } if (t.subtreeFlags & 12854) for (t = t.child; t !== null; ) eE(t, e), t = t.sibling } function eE(e, t) { var n = e.alternate, r = e.flags; switch (e.tag) { case 0: case 11: case 14: case 15: if (qr(t, e), ui(e), r & 4) { try { dl(3, e, e.return), Bf(3, e) } catch (p) { It(e, e.return, p) } try { dl(5, e, e.return) } catch (p) { It(e, e.return, p) } } break; case 1: qr(t, e), ui(e), r & 512 && n !== null && Ca(n, n.return); break; case 5: if (qr(t, e), ui(e), r & 512 && n !== null && Ca(n, n.return), e.flags & 32) { var i = e.stateNode; try { Ru(i, '') } catch (p) { It(e, e.return, p) } } if (r & 4 && (i = e.stateNode, i != null)) { var o = e.memoizedProps, a = n !== null ? n.memoizedProps : o, u = e.type, c = e.updateQueue; if (e.updateQueue = null, c !== null) try { u === 'input' && o.type === 'radio' && o.name != null && Sb(i, o), Tg(u, a); var f = Tg(u, o); for (a = 0; a < c.length; a += 2) { var h = c[a], g = c[a + 1]; h === 'style' ? Ib(i, g) : h === 'dangerouslySetInnerHTML' ? Rb(i, g) : h === 'children' ? Ru(i, g) : vg(i, h, g, f) } switch (u) { case 'input': Fg(i, o); break; case 'textarea': Bb(i, o); break; case 'select': var m = i._wrapperState.wasMultiple; i._wrapperState.wasMultiple = !!o.multiple; var y = o.value; y != null ? ta(i, !!o.multiple, y, !1) : m !== !!o.multiple && (o.defaultValue != null ? ta(i, !!o.multiple, o.defaultValue, !0) : ta(i, !!o.multiple, o.multiple ? [ ] : '', !1)) } i[tl] = o } catch (p) { It(e, e.return, p) } } break; case 6: if (qr(t, e), ui(e), r & 4) { if (e.stateNode === null) throw Error(pe(162)); i = e.stateNode, o = e.memoizedProps; try { i.nodeValue = o } catch (p) { It(e, e.return, p) } } break; case 3: if (qr(t, e), ui(e), r & 4 && n !== null && n.memoizedState.isDehydrated) try { Wu(t.containerInfo) } catch (p) { It(e, e.return, p) } break; case 4: qr(t, e), ui(e); break; case 13: qr(t, e), ui(e), i = e.child, i.flags & 8192 && (o = i.memoizedState !== null, i.stateNode.isHidden = o, !o || i.alternate !== null && i.alternate.memoizedState !== null || (sm = jt())), r & 4 && ZC(e); break; case 22: if (h = n !== null && n.memoizedState !== null, e.mode & 1 ? (bn = (f = bn) || h, qr(t, e), bn = f) : qr(t, e), ui(e), r & 8192) { if (f = e.memoizedState !== null, (e.stateNode.isHidden = f) && !h && e.mode & 1) for (Ae = e, h = e.child; h !== null; ) { for (g = Ae = h; Ae !== null; ) { switch (m = Ae, y = m.child, m.tag) { case 0: case 11: case 14: case 15: dl(4, m, m.return); break; case 1: Ca(m, m.return); var v = m.stateNode; if (typeof v.componentWillUnmount == 'function') { r = m, n = m.return; try { t = r, v.props = t.memoizedProps, v.state = t.memoizedState, v.componentWillUnmount() } catch (p) { It(r, n, p) } } break; case 5: Ca(m, m.return); break; case 22: if (m.memoizedState !== null) { rE(g); continue } } y !== null ? (y.return = m, Ae = y) : rE(g) } h = h.sibling } e: for (h = null, g = e; ; ) { if (g.tag === 5) { if (h === null) { h = g; try { i = g.stateNode, f ? (o = i.style, typeof o.setProperty == 'function' ? o.setProperty('display', 'none', 'important') : o.display = 'none') : (u = g.stateNode, c = g.memoizedProps.style, a = c != null && c.hasOwnProperty('display') ? c.display : null, u.style.display = Tb('display', a)) } catch (p) { It(e, e.return, p) } } } else if (g.tag === 6) { if (h === null) try { g.stateNode.nodeValue = f ? '' : g.memoizedProps } catch (p) { It(e, e.return, p) } } else if ((g.tag !== 22 && g.tag !== 23 || g.memoizedState === null || g === e) && g.child !== null) { g.child.return = g, g = g.child; continue } if (g === e) break e; for (; g.sibling === null; ) { if (g.return === null || g.return === e) break e; h === g && (h = null), g = g.return } h === g && (h = null), g.sibling.return = g.return, g = g.sibling } } break; case 19: qr(t, e), ui(e), r & 4 && ZC(e); break; case 21: break; default: qr(t, e), ui(e) } } function ui(e) { var t = e.flags; if (t & 2) { try { e: { for (var n = e.return; n !== null; ) { if (YC(n)) { var r = n; break e } n = n.return } throw Error(pe(160)) } switch (r.tag) { case 5: var i = r.stateNode; r.flags & 32 && (Ru(i, ''), r.flags &= - 33); var o = JC(e); rm(e, o, i); break; case 3: case 4: var a = r.stateNode.containerInfo, u = JC(e); nm(e, u, a); break; default: throw Error(pe(161)) } } catch (c) { It(e, e.return, c) } e.flags &= - 3 } t & 4096 && (e.flags &= - 4097) } function LP(e, t, n) { Ae = e, tE(e) } function tE(e, t, n) { for (var r = (e.mode & 1) !== 0; Ae !== null; ) { var i = Ae, o = i.child; if (i.tag === 22 && r) { var a = i.memoizedState !== null || Ff; if (!a) { var u = i.alternate, c = u !== null && u.memoizedState !== null || bn; u = Ff; var f = bn; if (Ff = a, (bn = c) && !f) for (Ae = i; Ae !== null; ) a = Ae, c = a.child, a.tag === 22 && a.memoizedState !== null ? iE(i) : c !== null ? (c.return = a, Ae = c) : iE(i); for (; o !== null; ) Ae = o, tE(o), o = o.sibling; Ae = i, Ff = u, bn = f } nE(e) } else i.subtreeFlags & 8772 && o !== null ? (o.return = i, Ae = o) : nE(e) } } function nE(e) { for (; Ae !== null; ) { var t = Ae; if (t.flags & 8772) { var n = t.alternate; try { if (t.flags & 8772) switch (t.tag) { case 0: case 11: case 15: bn || Bf(5, t); break; case 1: var r = t.stateNode; if (t.flags & 4 && !bn) if (n === null) r.componentDidMount(); else { var i = t.elementType === t.type ? n.memoizedProps : Vr(t.type, n.memoizedProps); r.componentDidUpdate(i, n.memoizedState, r.__reactInternalSnapshotBeforeUpdate) } var o = t.updateQueue; o !== null && Z_(t, o, r); break; case 3: var a = t.updateQueue; if (a !== null) { if (n = null, t.child !== null) switch (t.child.tag) { case 5: n = t.child.stateNode; break; case 1: n = t.child.stateNode } Z_(t, a, n) } break; case 5: var u = t.stateNode; if (n === null && t.flags & 4) { n = u; var c = t.memoizedProps; switch (t.type) { case 'button': case 'input': case 'select': case 'textarea': c.autoFocus && n.focus(); break; case 'img': c.src && (n.src = c.src) } } break; case 6: break; case 4: break; case 12: break; case 13: if (t.memoizedState === null) { var f = t.alternate; if (f !== null) { var h = f.memoizedState; if (h !== null) { var g = h.dehydrated; g !== null && Wu(g) } } } break; case 19: case 17: case 21: case 22: case 23: case 25: break; default: throw Error(pe(163)) } bn || t.flags & 512 && tm(t) } catch (m) { It(t, t.return, m) } } if (t === e) { Ae = null; break } if (n = t.sibling, n !== null) { n.return = t.return, Ae = n; break } Ae = t.return } } function rE(e) { for (; Ae !== null; ) { var t = Ae; if (t === e) { Ae = null; break } var n = t.sibling; if (n !== null) { n.return = t.return, Ae = n; break } Ae = t.return } } function iE(e) { for (; Ae !== null; ) { var t = Ae; try { switch (t.tag) { case 0: case 11: case 15: var n = t.return; try { Bf(4, t) } catch (c) { It(t, n, c) } break; case 1: var r = t.stateNode; if (typeof r.componentDidMount == 'function') { var i = t.return; try { r.componentDidMount() } catch (c) { It(t, i, c) } } var o = t.return; try { tm(t) } catch (c) { It(t, o, c) } break; case 5: var a = t.return; try { tm(t) } catch (c) { It(t, a, c) } } } catch (c) { It(t, t.return, c) } if (t === e) { Ae = null; break } var u = t.sibling; if (u !== null) { u.return = t.return, Ae = u; break } Ae = t.return } } var MP = Math.ceil, kf = Oi.ReactCurrentDispatcher, im = Oi.ReactCurrentOwner, Er = Oi.ReactCurrentBatchConfig, et = 0, tn = null, Vt = null, cn = 0, er = 0, Ea = yo(0), Yt = 0, hl = null, cs = 0, Pf = 0, om = 0, pl = null, $n = null, sm = 0, Da = 1 / 0, Ni = null, Rf = !1, am = null, Do = null, Tf = !1, xo = null, If = 0, gl = 0, um = null, Nf = - 1, Lf = 0; function On() { return et & 6 ? jt() : Nf !== - 1 ? Nf : Nf = jt() } function Ao(e) { return e.mode & 1 ? et & 2 && cn !== 0 ? cn & - cn : _P.transition !== null ? (Lf === 0 && (Lf = Yb()), Lf) : (e = at, e !== 0 || (e = window.event, e = e === void 0 ? 16 : o_(e.type)), e) : 1 } function Gr(e, t, n, r) { if (50 < gl) throw gl = 0, um = null, Error(pe(185)); $u(e, n, r), (!(et & 2) || e !== tn) && (e === tn && (!(et & 2) && (Pf |= n), Yt === 4 && So(e, cn)), jn(e, r), n === 1 && et === 0 && !(t.mode & 1) && (Da = jt() + 500, ff && bo())) } function jn(e, t) { var n = e.callbackNode; _4(e, t); var r = Vc(e, e === tn ? cn : 0); if (r === 0) n !== null && qb(n), e.callbackNode = null, e.callbackPriority = 0; else if (t = r & - r, e.callbackPriority !== t) { if (n != null && qb(n), t === 1) e.tag === 0 ? bP(sE.bind(null, e)) : W_(sE.bind(null, e)), mP(function () { !(et & 6) && bo() }), n = null; else { switch (Jb(r)) { case 1: n = zg; break; case 4: n = Gb; break; case 16: n = zc; break; case 536870912: n = Qb; break; default: n = zc } n = pE(n, oE.bind(null, e)) } e.callbackPriority = t, e.callbackNode = n } } function oE(e, t) { if (Nf = - 1, Lf = 0, et & 6) throw Error(pe(327)); var n = e.callbackNode; if (xa() && e.callbackNode !== n) return null; var r = Vc(e, e === tn ? cn : 0); if (r === 0) return null; if (r & 30 || r & e.expiredLanes || t) t = Mf(e, r); else { t = r; var i = et; et |= 2; var o = uE(); (tn !== e || cn !== t) && (Ni = null, Da = jt() + 500, ds(e, t)); do try { zP(); break } catch (u) { aE(e, u) } while (1); A0(), kf.current = o, et = i, Vt !== null ? t = 0 : (tn = null, cn = 0, t = Yt) } if (t !== 0) { if (t === 2 && (i = Ug(e), i !== 0 && (r = i, t = lm(e, i))), t === 1) throw n = hl, ds(e, 0), So(e, r), jn(e, jt()), n; if (t === 6) So(e, r); else { if (i = e.current.alternate, !(r & 30) && !$P(i) && (t = Mf(e, r), t === 2 && (o = Ug(e), o !== 0 && (r = o, t = lm(e, o))), t === 1)) throw n = hl, ds(e, 0), So(e, r), jn(e, jt()), n; switch (e.finishedWork = i, e.finishedLanes = r, t) { case 0: case 1: throw Error(pe(345)); case 2: hs(e, $n, Ni); break; case 3: if (So(e, r), (r & 130023424) === r && (t = sm + 500 - jt(), 10 < t)) { if (Vc(e, 0) !== 0) break; if (i = e.suspendedLanes, (i & r) !== r) { On(), e.pingedLanes |= e.suspendedLanes & i; break } e.timeoutHandle = g0(hs.bind(null, e, $n, Ni), t); break } hs(e, $n, Ni); break; case 4: if (So(e, r), (r & 4194240) === r) break; for (t = e.eventTimes, i = - 1; 0 < r; ) { var a = 31 - Ur(r); o = 1 << a, a = t[a], a > i && (i = a), r &= ~o } if (r = i, r = jt() - r, r = (120 > r ? 120 : 480 > r ? 480 : 1080 > r ? 1080 : 1920 > r ? 1920 : 3000 > r ? 3000 : 4320 > r ? 4320 : 1960 * MP(r / 1960)) - r, 10 < r) { e.timeoutHandle = g0(hs.bind(null, e, $n, Ni), r); break } hs(e, $n, Ni); break; case 5: hs(e, $n, Ni); break; default: throw Error(pe(329)) } } } return jn(e, jt()), e.callbackNode === n ? oE.bind(null, e) : null } function lm(e, t) { var n = pl; return e.current.memoizedState.isDehydrated && (ds(e, t).flags |= 256), e = Mf(e, t), e !== 2 && (t = $n, $n = n, t !== null && cm(t)), e } function cm(e) { $n === null ? $n = e : $n.push.apply($n, e) } function $P(e) { for (var t = e; ; ) { if (t.flags & 16384) { var n = t.updateQueue; if (n !== null && (n = n.stores, n !== null)) for (var r = 0; r < n.length; r++) { var i = n[r], o = i.getSnapshot; i = i.value; try { if (!Hr(o(), i)) return !1 } catch { return !1 } } } if (n = t.child, t.subtreeFlags & 16384 && n !== null) n.return = t, t = n; else { if (t === e) break; for (; t.sibling === null; ) { if (t.return === null || t.return === e) return !0; t = t.return } t.sibling.return = t.return, t = t.sibling } } return !0 } function So(e, t) { for (t &= ~om, t &= ~Pf, e.suspendedLanes |= t, e.pingedLanes &= ~t, e = e.expirationTimes; 0 < t; ) { var n = 31 - Ur(t), r = 1 << n; e[n] = - 1, t &= ~r } } function sE(e) { if (et & 6) throw Error(pe(327)); xa(); var t = Vc(e, 0); if (!(t & 1)) return jn(e, jt()), null; var n = Mf(e, t); if (e.tag !== 0 && n === 2) { var r = Ug(e); r !== 0 && (t = r, n = lm(e, r)) } if (n === 1) throw n = hl, ds(e, 0), So(e, t), jn(e, jt()), n; if (n === 6) throw Error(pe(345)); return e.finishedWork = e.current.alternate, e.finishedLanes = t, hs(e, $n, Ni), jn(e, jt()), null } function fm(e, t) { var n = et; et |= 1; try { return e(t) } finally { et = n, et === 0 && (Da = jt() + 500, ff && bo()) } } function fs(e) { xo !== null && xo.tag === 0 && !(et & 6) && xa(); var t = et; et |= 1; var n = Er.transition, r = at; try { if (Er.transition = null, at = 1, e) return e() } finally { at = r, Er.transition = n, et = t, !(et & 6) && bo() } } function dm() { er = Ea.current, wt(Ea) } function ds(e, t) { e.finishedWork = null, e.finishedLanes = 0; var n = e.timeoutHandle; if (n !== - 1 && (e.timeoutHandle = - 1, gP(n)), Vt !== null) for (n = Vt.return; n !== null; ) { var r = n; switch (_0(r), r.tag) { case 1: r = r.type.childContextTypes, r != null && lf(); break; case 3: ba(), wt(Nn), wt(vn), N0(); break; case 5: T0(r); break; case 4: ba(); break; case 13: wt(Ft); break; case 19: wt(Ft); break; case 10: S0(r.type._context); break; case 22: case 23: dm() } n = n.return } if (tn = e, Vt = e = Oo(e.current, null), cn = er = t, Yt = 0, hl = null, om = Pf = cs = 0, $n = pl = null, as !== null) { for (t = 0; t < as.length; t++) if (n = as[t], r = n.interleaved, r !== null) { n.interleaved = null; var i = r.next, o = n.pending; if (o !== null) { var a = o.next; o.next = i, r.next = a } n.pending = r } as = null } return e } function aE(e, t) { do { var n = Vt; try { if (A0(), Cf.current = Af, Ef) { for (var r = Bt.memoizedState; r !== null; ) { var i = r.queue; i !== null && (i.pending = null), r = r.next } Ef = !1 } if (ls = 0, en = Qt = Bt = null, al = !1, ul = 0, im.current = null, n === null || n.return === null) { Yt = 1, hl = t, Vt = null; break } e: { var o = e, a = n.return, u = n, c = t; if (t = cn, u.flags |= 32768, c !== null && typeof c == 'object' && typeof c.then == 'function') { var f = c, h = u, g = h.tag; if (!(h.mode & 1) && (g === 0 || g === 11 || g === 15)) { var m = h.alternate; m ? (h.updateQueue = m.updateQueue, h.memoizedState = m.memoizedState, h.lanes = m.lanes) : (h.updateQueue = null, h.memoizedState = null) } var y = PC(a); if (y !== null) { y.flags &= - 257, RC(y, a, u, o, t), y.mode & 1 && kC(o, f, t), t = y, c = f; var v = t.updateQueue; if (v === null) { var p = new Set; p.add(c), t.updateQueue = p } else v.add(c); break e } else { if (!(t & 1)) { kC(o, f, t), hm(); break e } c = Error(pe(426)) } } else if (Et && u.mode & 1) { var E = PC(a); if (E !== null) { !(E.flags & 65536) && (E.flags |= 256), RC(E, a, u, o, t), D0(_a(c, u)); break e } } o = c = _a(c, u), Yt !== 4 && (Yt = 2), pl === null ? pl = [ o ] : pl.push(o), o = a; do { switch (o.tag) { case 3: o.flags |= 65536, t &= - t, o.lanes |= t; var _ = FC(o, c, t); X_(o, _); break e; case 1: u = c; var b = o.type, x = o.stateNode; if (!(o.flags & 128) && (typeof b.getDerivedStateFromError == 'function' || x !== null && typeof x.componentDidCatch == 'function' && (Do === null || !Do.has(x)))) { o.flags |= 65536, t &= - t, o.lanes |= t; var O = BC(o, u, t); X_(o, O); break e } } o = o.return } while (o !== null) } cE(n) } catch (B) { t = B, Vt === n && n !== null && (Vt = n = n.return); continue } break } while (1) } function uE() { var e = kf.current; return kf.current = Af, e === null ? Af : e } function hm() { (Yt === 0 || Yt === 3 || Yt === 2) && (Yt = 4), tn === null || !(cs & 268435455) && !(Pf & 268435455) || So(tn, cn) } function Mf(e, t) { var n = et; et |= 2; var r = uE(); (tn !== e || cn !== t) && (Ni = null, ds(e, t)); do try { jP(); break } catch (i) { aE(e, i) } while (1); if (A0(), et = n, kf.current = r, Vt !== null) throw Error(pe(261)); return tn = null, cn = 0, Yt } function jP() { for (; Vt !== null; ) lE(Vt) } function zP() { for (; Vt !== null && !d4(); ) lE(Vt) } function lE(e) { var t = hE(e.alternate, e, er); e.memoizedProps = e.pendingProps, t === null ? cE(e) : Vt = t, im.current = null } function cE(e) { var t = e; do { var n = t.alternate; if (e = t.return, t.flags & 32768) { if (n = TP(n, t), n !== null) { n.flags &= 32767, Vt = n; return } if (e !== null) e.flags |= 32768, e.subtreeFlags = 0, e.deletions = null; else { Yt = 6, Vt = null; return } } else if (n = RP(n, t, er), n !== null) { Vt = n; return } if (t = t.sibling, t !== null) { Vt = t; return } Vt = t = e } while (t !== null); Yt === 0 && (Yt = 5) } function hs(e, t, n) { var r = at, i = Er.transition; try { Er.transition = null, at = 1, UP(e, t, n, r) } finally { Er.transition = i, at = r } return null } function UP(e, t, n, r) { do xa(); while (xo !== null); if (et & 6) throw Error(pe(327)); n = e.finishedWork; var i = e.finishedLanes; if (n === null) return null; if (e.finishedWork = null, e.finishedLanes = 0, n === e.current) throw Error(pe(177)); e.callbackNode = null, e.callbackPriority = 0; var o = n.lanes | n.childLanes; if (C4(e, o), e === tn && (Vt = tn = null, cn = 0), !(n.subtreeFlags & 2064) && !(n.flags & 2064) || Tf || (Tf = !0, pE(zc, function () { return xa(), null })), o = (n.flags & 15990) !== 0, n.subtreeFlags & 15990 || o) { o = Er.transition, Er.transition = null; var a = at; at = 1; var u = et; et |= 4, im.current = null, NP(e, n), eE(n, e), uP(h0), Gc = !!d0, h0 = d0 = null, e.current = n, LP(n), h4(), et = u, at = a, Er.transition = o } else e.current = n; if (Tf && (Tf = !1, xo = e, If = i), o = e.pendingLanes, o === 0 && (Do = null), m4(n.stateNode), jn(e, jt()), t !== null) for (r = e.onRecoverableError, n = 0; n < t.length; n++) i = t[n], r(i.value, { componentStack: i.stack, digest: i.digest }); if (Rf) throw Rf = !1, e = am, am = null, e; return If & 1 && e.tag !== 0 && xa(), o = e.pendingLanes, o & 1 ? e === um ? gl++ : (gl = 0, um = e) : gl = 0, bo(), null } function xa() { if (xo !== null) { var e = Jb(If), t = Er.transition, n = at; try { if (Er.transition = null, at = 16 > e ? 16 : e, xo === null) var r = !1; else { if (e = xo, xo = null, If = 0, et & 6) throw Error(pe(331)); var i = et; for (et |= 4, Ae = e.current; Ae !== null; ) { var o = Ae, a = o.child; if (Ae.flags & 16) { var u = o.deletions; if (u !== null) { for (var c = 0; c < u.length; c++) { var f = u[c]; for (Ae = f; Ae !== null; ) { var h = Ae; switch (h.tag) { case 0: case 11: case 15: dl(8, h, o) } var g = h.child; if (g !== null) g.return = h, Ae = g; else for (; Ae !== null; ) { h = Ae; var m = h.sibling, y = h.return; if (QC(h), h === f) { Ae = null; break } if (m !== null) { m.return = y, Ae = m; break } Ae = y } } } var v = o.alternate; if (v !== null) { var p = v.child; if (p !== null) { v.child = null; do { var E = p.sibling; p.sibling = null, p = E } while (p !== null) } } Ae = o } } if (o.subtreeFlags & 2064 && a !== null) a.return = o, Ae = a; else e: for (; Ae !== null; ) { if (o = Ae, o.flags & 2048) switch (o.tag) { case 0: case 11: case 15: dl(9, o, o.return) } var _ = o.sibling; if (_ !== null) { _.return = o.return, Ae = _; break e } Ae = o.return } } var b = e.current; for (Ae = b; Ae !== null; ) { a = Ae; var x = a.child; if (a.subtreeFlags & 2064 && x !== null) x.return = a, Ae = x; else e: for (a = b; Ae !== null; ) { if (u = Ae, u.flags & 2048) try { switch (u.tag) { case 0: case 11: case 15: Bf(9, u) } } catch (B) { It(u, u.return, B) } if (u === a) { Ae = null; break e } var O = u.sibling; if (O !== null) { O.return = u.return, Ae = O; break e } Ae = u.return } } if (et = i, bo(), ii && typeof ii.onPostCommitFiberRoot == 'function') try { ii.onPostCommitFiberRoot(Uc, e) } catch { } r = !0 } return r } finally { at = n, Er.transition = t } } return !1 } function fE(e, t, n) { t = _a(n, t), t = FC(e, t, 1), e = Co(e, t, 1), t = On(), e !== null && ($u(e, 1, t), jn(e, t)) } function It(e, t, n) { if (e.tag === 3) fE(e, e, n); else for (; t !== null; ) { if (t.tag === 3) { fE(t, e, n); break } else if (t.tag === 1) { var r = t.stateNode; if (typeof t.type.getDerivedStateFromError == 'function' || typeof r.componentDidCatch == 'function' && (Do === null || !Do.has(r))) { e = _a(n, e), e = BC(t, e, 1), t = Co(t, e, 1), e = On(), t !== null && ($u(t, 1, e), jn(t, e)); break } } t = t.return } } function HP(e, t, n) { var r = e.pingCache; r !== null && r.delete(t), t = On(), e.pingedLanes |= e.suspendedLanes & n, tn === e && (cn & n) === n && (Yt === 4 || Yt === 3 && (cn & 130023424) === cn && 500 > jt() - sm ? ds(e, 0) : om |= n), jn(e, t) } function dE(e, t) { t === 0 && (e.mode & 1 ? (t = Wc, Wc <<= 1, !(Wc & 130023424) && (Wc = 4194304)) : t = 1); var n = On(); e = Ri(e, t), e !== null && ($u(e, t, n), jn(e, n)) } function WP(e) { var t = e.memoizedState, n = 0; t !== null && (n = t.retryLane), dE(e, n) } function VP(e, t) { var n = 0; switch (e.tag) { case 13: var r = e.stateNode, i = e.memoizedState; i !== null && (n = i.retryLane); break; case 19: r = e.stateNode; break; default: throw Error(pe(314)) } r !== null && r.delete(t), dE(e, n) } var hE; hE = function (e, t, n) { if (e !== null) if (e.memoizedProps !== t.pendingProps || Nn.current) Mn = !0; else { if (!(e.lanes & n) && !(t.flags & 128)) return Mn = !1, PP(e, t, n); Mn = !!(e.flags & 131072) } else Mn = !1, Et && t.flags & 1048576 && V_(t, hf, t.index); switch (t.lanes = 0, t.tag) { case 2: var r = t.type; Of(e, t), e = t.pendingProps; var i = ha(t, vn.current); ya(t, n), i = $0(null, t, r, e, i, n); var o = j0(); return t.flags |= 1, typeof i == 'object' && i !== null && typeof i.render == 'function' && i.$$typeof === void 0 ? (t.tag = 1, t.memoizedState = null, t.updateQueue = null, Ln(r) ? (o = !0, cf(t)) : o = !1, t.memoizedState = i.state !== null && i.state !== void 0 ? i.state : null, B0(t), i.updater = wf, t.stateNode = i, i._reactInternals = t, P0(t, r, e, n), t = G0(null, t, r, !0, o, n)) : (t.tag = 0, Et && o && b0(t), Sn(null, t, i, n), t = t.child), t; case 16: r = t.elementType; e: { switch (Of(e, t), e = t.pendingProps, i = r._init, r = i(r._payload), t.type = r, i = t.tag = qP(r), e = Vr(r, e), i) { case 0: t = q0(null, t, r, e, n); break e; case 1: t = $C(null, t, r, e, n); break e; case 11: t = TC(null, t, r, e, n); break e; case 14: t = IC(null, t, r, Vr(r.type, e), n); break e } throw Error(pe(306, r, '')) } return t; case 0: return r = t.type, i = t.pendingProps, i = t.elementType === r ? i : Vr(r, i), q0(e, t, r, i, n); case 1: return r = t.type, i = t.pendingProps, i = t.elementType === r ? i : Vr(r, i), $C(e, t, r, i, n); case 3: e: { if (jC(t), e === null) throw Error(pe(387)); r = t.pendingProps, o = t.memoizedState, i = o.element, J_(e, t), yf(t, r, null, n); var a = t.memoizedState; if (r = a.element, o.isDehydrated) if (o = { element: r, isDehydrated: !1, cache: a.cache, pendingSuspenseBoundaries: a.pendingSuspenseBoundaries, transitions: a.transitions }, t.updateQueue.baseState = o, t.memoizedState = o, t.flags & 256) { i = _a(Error(pe(423)), t), t = zC(e, t, r, n, i); break e } else if (r !== i) { i = _a(Error(pe(424)), t), t = zC(e, t, r, n, i); break e } else for (Zn = vo(t.stateNode.containerInfo.firstChild), Xn = t, Et = !0, Wr = null, n = sC(t, null, r, n), t.child = n; n; ) n.flags = n.flags & - 3 | 4096, n = n.sibling; else { if (ma(), r === i) { t = Ii(e, t, n); break e } Sn(e, t, r, n) } t = t.child } return t; case 5: return aC(t), e === null && E0(t), r = t.type, i = t.pendingProps, o = e !== null ? e.memoizedProps : null, a = i.children, p0(r, i) ? a = null : o !== null && p0(r, o) && (t.flags |= 32), MC(e, t), Sn(e, t, a, n), t.child; case 6: return e === null && E0(t), null; case 13: return UC(e, t, n); case 4: return R0(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = wa(t, null, r, n) : Sn(e, t, r, n), t.child; case 11: return r = t.type, i = t.pendingProps, i = t.elementType === r ? i : Vr(r, i), TC(e, t, r, i, n); case 7: return Sn(e, t, t.pendingProps, n), t.child; case 8: return Sn(e, t, t.pendingProps.children, n), t.child; case 12: return Sn(e, t, t.pendingProps.children, n), t.child; case 10: e: { if (r = t.type._context, i = t.pendingProps, o = t.memoizedProps, a = i.value, gt(gf, r._currentValue), r._currentValue = a, o !== null) if (Hr(o.value, a)) { if (o.children === i.children && !Nn.current) { t = Ii(e, t, n); break e } } else for (o = t.child, o !== null && (o.return = t); o !== null; ) { var u = o.dependencies; if (u !== null) { a = o.child; for (var c = u.firstContext; c !== null; ) { if (c.context === r) { if (o.tag === 1) { c = Ti( - 1, n & - n), c.tag = 2; var f = o.updateQueue; if (f !== null) { f = f.shared; var h = f.pending; h === null ? c.next = c : (c.next = h.next, h.next = c), f.pending = c } } o.lanes |= n, c = o.alternate, c !== null && (c.lanes |= n), O0(o.return, n, t), u.lanes |= n; break } c = c.next } } else if (o.tag === 10) a = o.type === t.type ? null : o.child; else if (o.tag === 18) { if (a = o.return, a === null) throw Error(pe(341)); a.lanes |= n, u = a.alternate, u !== null && (u.lanes |= n), O0(a, n, t), a = o.sibling } else a = o.child; if (a !== null) a.return = o; else for (a = o; a !== null; ) { if (a === t) { a = null; break } if (o = a.sibling, o !== null) { o.return = a.return, a = o; break } a = a.return } o = a } Sn(e, t, i.children, n), t = t.child } return t; case 9: return i = t.type, r = t.pendingProps.children, ya(t, n), i = _r(i), r = r(i), t.flags |= 1, Sn(e, t, r, n), t.child; case 14: return r = t.type, i = Vr(r, t.pendingProps), i = Vr(r.type, i), IC(e, t, r, i, n); case 15: return NC(e, t, t.type, t.pendingProps, n); case 17: return r = t.type, i = t.pendingProps, i = t.elementType === r ? i : Vr(r, i), Of(e, t), t.tag = 1, Ln(r) ? (e = !0, cf(t)) : e = !1, ya(t, n), nC(t, r, i), P0(t, r, i, n), G0(null, t, r, !0, e, n); case 19: return WC(e, t, n); case 22: return LC(e, t, n) } throw Error(pe(156, t.tag)) }; function pE(e, t) { return Kb(e, t) } function KP(e, t, n, r) { this.tag = e, this.key = n, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.ref = null, this.pendingProps = t, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = r, this.subtreeFlags = this.flags = 0, this.deletions = null, this.childLanes = this.lanes = 0, this.alternate = null } function Dr(e, t, n, r) { return new KP(e, t, n, r) } function pm(e) { return e = e.prototype, !(!e || !e.isReactComponent) } function qP(e) { if (typeof e == 'function') return pm(e) ? 1 : 0; if (e != null) { if (e = e.$$typeof, e === bg) return 11; if (e === Eg) return 14 } return 2 } function Oo(e, t) { var n = e.alternate; return n === null ? (n = Dr(e.tag, t, e.key, e.mode), n.elementType = e.elementType, n.type = e.type, n.stateNode = e.stateNode, n.alternate = e, e.alternate = n) : (n.pendingProps = t, n.type = e.type, n.flags = 0, n.subtreeFlags = 0, n.deletions = null), n.flags = e.flags & 14680064, n.childLanes = e.childLanes, n.lanes = e.lanes, n.child = e.child, n.memoizedProps = e.memoizedProps, n.memoizedState = e.memoizedState, n.updateQueue = e.updateQueue, t = e.dependencies, n.dependencies = t === null ? null : { lanes: t.lanes, firstContext: t.firstContext }, n.sibling = e.sibling, n.index = e.index, n.ref = e.ref, n } function $f(e, t, n, r, i, o) { var a = 2; if (r = e, typeof e == 'function') pm(e) && (a = 1); else if (typeof e == 'string') a = 5; else e: switch (e) { case ea: return ps(n.children, i, o, t); case yg: a = 8, i |= 8; break; case wg: return e = Dr(12, n, t, i | 2), e.elementType = wg, e.lanes = o, e; case _g: return e = Dr(13, n, t, i), e.elementType = _g, e.lanes = o, e; case Cg: return e = Dr(19, n, t, i), e.elementType = Cg, e.lanes = o, e; case Cb: return jf(n, i, o, t); default: if (typeof e == 'object' && e !== null) switch (e.$$typeof) { case bb: a = 10; break e; case _b: a = 9; break e; case bg: a = 11; break e; case Eg: a = 14; break e; case uo: a = 16, r = null; break e } throw Error(pe(130, e == null ? e : typeof e, '')) } return t = Dr(a, n, t, i), t.elementType = e, t.type = r, t.lanes = o, t } function ps(e, t, n, r) { return e = Dr(7, e, r, t), e.lanes = n, e } function jf(e, t, n, r) { return e = Dr(22, e, r, t), e.elementType = Cb, e.lanes = n, e.stateNode = { isHidden: !1 }, e } function gm(e, t, n) { return e = Dr(6, e, null, t), e.lanes = n, e } function mm(e, t, n) { return t = Dr(4, e.children !== null ? e.children : [ ], e.key, t), t.lanes = n, t.stateNode = { containerInfo: e.containerInfo, pendingChildren: null, implementation: e.implementation }, t } function GP(e, t, n, r, i) { this.tag = t, this.containerInfo = e, this.finishedWork = this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = - 1, this.callbackNode = this.pendingContext = this.context = null, this.callbackPriority = 0, this.eventTimes = Hg(0), this.expirationTimes = Hg( - 1), this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = Hg(0), this.identifierPrefix = r, this.onRecoverableError = i, this.mutableSourceEagerHydrationData = null } function vm(e, t, n, r, i, o, a, u, c) { return e = new GP(e, t, n, u, c), t === 1 ? (t = 1, o === !0 && (t |= 8)) : t = 0, o = Dr(3, null, null, t), e.current = o, o.stateNode = e, o.memoizedState = { element: r, isDehydrated: n, cache: null, transitions: null, pendingSuspenseBoundaries: null }, B0(o), e } function QP(e, t, n) { var r = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null; return { $$typeof: Zs, key: r == null ? null : '' + r, children: e, containerInfo: t, implementation: n } } function gE(e) { if (!e) return wo; e = e._reactInternals; e: { if (ns(e) !== e || e.tag !== 1) throw Error(pe(170)); var t = e; do { switch (t.tag) { case 3: t = t.stateNode.context; break e; case 1: if (Ln(t.type)) { t = t.stateNode.__reactInternalMemoizedMergedChildContext; break e } } t = t.return } while (t !== null); throw Error(pe(171)) } if (e.tag === 1) { var n = e.type; if (Ln(n)) return U_(e, n, t) } return t } function mE(e, t, n, r, i, o, a, u, c) { return e = vm(n, r, !0, e, i, o, a, u, c), e.context = gE(null), n = e.current, r = On(), i = Ao(n), o = Ti(r, i), o.callback = t ?? null, Co(n, o, i), e.current.lanes = i, $u(e, i, r), jn(e, r), e } function zf(e, t, n, r) { var i = t.current, o = On(), a = Ao(i); return n = gE(n), t.context === null ? t.context = n : t.pendingContext = n, t = Ti(o, a), t.payload = { element: e }, r = r === void 0 ? null : r, r !== null && (t.callback = r), e = Co(i, t, a), e !== null && (Gr(e, i, a, o), vf(e, i, a)), a } function Uf(e) { if (e = e.current, !e.child) return null; switch (e.child.tag) { case 5: return e.child.stateNode; default: return e.child.stateNode } } function vE(e, t) { if (e = e.memoizedState, e !== null && e.dehydrated !== null) { var n = e.retryLane; e.retryLane = n !== 0 && n < t ? n : t } } function ym(e, t) { vE(e, t), (e = e.alternate) && vE(e, t) } function YP() { return null } var yE = typeof reportError == 'function' ? reportError : function (e) { console.error(e) }; function wm(e) { this._internalRoot = e } Hf.prototype.render = wm.prototype.render = function (e) { var t = this._internalRoot; if (t === null) throw Error(pe(409)); zf(e, t, null, null) }, Hf.prototype.unmount = wm.prototype.unmount = function () { var e = this._internalRoot; if (e !== null) { this._internalRoot = null; var t = e.containerInfo; fs(function () { zf(null, e, null, null) }), t[Fi] = null } }; function Hf(e) { this._internalRoot = e } Hf.prototype.unstable_scheduleHydration = function (e) { if (e) { var t = e_(); e = { blockedOn: null, target: e, priority: t }; for (var n = 0; n < po.length && t !== 0 && t < po[n].priority; n++); po.splice(n, 0, e), n === 0 && r_(e) } }; function bm(e) { return !(!e || e.nodeType !== 1 && e.nodeType !== 9 && e.nodeType !== 11) } function Wf(e) { return !(!e || e.nodeType !== 1 && e.nodeType !== 9 && e.nodeType !== 11 && (e.nodeType !== 8 || e.nodeValue !== ' react-mount-point-unstable ')) } function wE() { } function JP(e, t, n, r, i) { if (i) { if (typeof r == 'function') { var o = r; r = function () { var f = Uf(a); o.call(f) } } var a = mE(t, r, e, 0, null, !1, !1, '', wE); return e._reactRootContainer = a, e[Fi] = a.current, Zu(e.nodeType === 8 ? e.parentNode : e), fs(), a } for (; i = e.lastChild; ) e.removeChild(i); if (typeof r == 'function') { var u = r; r = function () { var f = Uf(c); u.call(f) } } var c = vm(e, 0, !1, null, null, !1, !1, '', wE); return e._reactRootContainer = c, e[Fi] = c.current, Zu(e.nodeType === 8 ? e.parentNode : e), fs(function () { zf(t, c, n, r) }), c } function Vf(e, t, n, r, i) { var o = n._reactRootContainer; if (o) { var a = o; if (typeof i == 'function') { var u = i; i = function () { var c = Uf(a); u.call(c) } } zf(t, a, e, i) } else a = JP(n, t, e, i, r); return Uf(a) } Xb = function (e) { switch (e.tag) { case 3: var t = e.stateNode; if (t.current.memoizedState.isDehydrated) { var n = Mu(t.pendingLanes); n !== 0 && (Wg(t, n | 1), jn(t, jt()), !(et & 6) && (Da = jt() + 500, bo())) } break; case 13: fs(function () { var r = Ri(e, 1); if (r !== null) { var i = On(); Gr(r, e, 1, i) } }), ym(e, 1) } }, Vg = function (e) { if (e.tag === 13) { var t = Ri(e, 134217728); if (t !== null) { var n = On(); Gr(t, e, 134217728, n) } ym(e, 134217728) } }, Zb = function (e) { if (e.tag === 13) { var t = Ao(e), n = Ri(e, t); if (n !== null) { var r = On(); Gr(n, e, t, r) } ym(e, t) } }, e_ = function () { return at }, t_ = function (e, t) { var n = at; try { return at = e, t() } finally { at = n } }, Lg = function (e, t, n) { switch (t) { case 'input': if (Fg(e, n), t = n.name, n.type === 'radio' && t != null) { for (n = e; n.parentNode; ) n = n.parentNode; for (n = n.querySelectorAll('input[name=' + JSON.stringify('' + t) + '][type="radio"]'), t = 0; t < n.length; t++) { var r = n[t]; if (r !== e && r.form === e.form) { var i = uf(r); if (!i) throw Error(pe(90)); xb(r), Fg(r, i) } } } break; case 'textarea': Bb(e, n); break; case 'select': t = n.value, t != null && ta(e, !!n.multiple, t, !1) } }, $b = fm, jb = fs; var XP = { usingClientEntryPoint: !1, Events: [ nl, fa, uf, Lb, Mb, fm ] }, ml = { findFiberByHostInstance: rs, bundleType: 0, version: '18.2.0', rendererPackageName: 'react-dom' }, ZP = { bundleType: ml.bundleType, version: ml.version, rendererPackageName: ml.rendererPackageName, rendererConfig: ml.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, overrideProps: null, overridePropsDeletePath: null, overridePropsRenamePath: null, setErrorHandler: null, setSuspenseHandler: null, scheduleUpdate: null, currentDispatcherRef: Oi.ReactCurrentDispatcher, findHostInstanceByFiber: function (e) { return e = Wb(e), e === null ? null : e.stateNode }, findFiberByHostInstance: ml.findFiberByHostInstance || YP, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, reconcilerVersion: '18.2.0-next-9e3b772b8-20220608' }; if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < 'u') { var Kf = __REACT_DEVTOOLS_GLOBAL_HOOK__; if (!Kf.isDisabled && Kf.supportsFiber) try { Uc = Kf.inject(ZP), ii = Kf } catch { } } Qn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = XP, Qn.createPortal = function (e, t) { var n = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null; if (!bm(t)) throw Error(pe(200)); return QP(e, t, null, n) }, Qn.createRoot = function (e, t) { if (!bm(e)) throw Error(pe(299)); var n = !1, r = '', i = yE; return t != null && (t.unstable_strictMode === !0 && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onRecoverableError !== void 0 && (i = t.onRecoverableError)), t = vm(e, 1, !1, null, null, n, !1, r, i), e[Fi] = t.current, Zu(e.nodeType === 8 ? e.parentNode : e), new wm(t) }, Qn.findDOMNode = function (e) { if (e == null) return null; if (e.nodeType === 1) return e; var t = e._reactInternals; if (t === void 0) throw typeof e.render == 'function' ? Error(pe(188)) : (e = Object.keys(e).join(','), Error(pe(268, e))); return e = Wb(t), e = e === null ? null : e.stateNode, e }, Qn.flushSync = function (e) { return fs(e) }, Qn.hydrate = function (e, t, n) { if (!Wf(t)) throw Error(pe(200)); return Vf(null, e, t, !0, n) }, Qn.hydrateRoot = function (e, t, n) { if (!bm(e)) throw Error(pe(405)); var r = n != null && n.hydratedSources || null, i = !1, o = '', a = yE; if (n != null && (n.unstable_strictMode === !0 && (i = !0), n.identifierPrefix !== void 0 && (o = n.identifierPrefix), n.onRecoverableError !== void 0 && (a = n.onRecoverableError)), t = mE(t, null, e, 1, n ?? null, i, !1, o, a), e[Fi] = t.current, Zu(e), r) for (e = 0; e < r.length; e++) n = r[e], i = n._getVersion, i = i(n._source), t.mutableSourceEagerHydrationData == null ? t.mutableSourceEagerHydrationData = [ n, i ] : t.mutableSourceEagerHydrationData.push(n, i); return new Hf(t) }, Qn.render = function (e, t, n) { if (!Wf(t)) throw Error(pe(200)); return Vf(null, e, t, !1, n) }, Qn.unmountComponentAtNode = function (e) { if (!Wf(e)) throw Error(pe(40)); return e._reactRootContainer ? (fs(function () { Vf(null, null, e, !1, function () { e._reactRootContainer = null, e[Fi] = null }) }), !0) : !1 }, Qn.unstable_batchedUpdates = fm, Qn.unstable_renderSubtreeIntoContainer = function (e, t, n, r) { if (!Wf(n)) throw Error(pe(200)); if (e == null || e._reactInternals === void 0) throw Error(pe(38)); return Vf(e, t, n, !1, r) }, Qn.version = '18.2.0-next-9e3b772b8-20220608'; function bE() { if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > 'u' || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != 'function')) try { __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(bE) } catch (e) { console.error(e) } } bE(), hb.exports = Qn; var qf = hb.exports; const eR = vr(qf); var _E = { exports: { } }, CE = { }; /** * @license React * use-sync-external-store-shim.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var Aa = D; function tR(e, t) { return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t } var nR = typeof Object.is == 'function' ? Object.is : tR, rR = Aa.useState, iR = Aa.useEffect, oR = Aa.useLayoutEffect, sR = Aa.useDebugValue; function aR(e, t) { var n = t(), r = rR({ inst: { value: n, getSnapshot: t } }), i = r[0].inst, o = r[1]; return oR(function () { i.value = n, i.getSnapshot = t, _m(i) && o({ inst: i }) }, [ e, n, t ]), iR(function () { return _m(i) && o({ inst: i }), e(function () { _m(i) && o({ inst: i }) }) }, [ e ]), sR(n), n } function _m(e) { var t = e.getSnapshot; e = e.value; try { var n = t(); return !nR(e, n) } catch { return !0 } } function uR(e, t) { return t() } var lR = typeof window > 'u' || typeof window.document > 'u' || typeof window.document.createElement > 'u' ? uR : aR; CE.useSyncExternalStore = Aa.useSyncExternalStore !== void 0 ? Aa.useSyncExternalStore : lR, _E.exports = CE; var EE = _E.exports; const DE = EE.useSyncExternalStore, xE = D.createContext(void 0), AE = D.createContext(!1); function SE(e, t) { return e || (t && typeof window < 'u' ? (window.ReactQueryClientContext || (window.ReactQueryClientContext = xE), window.ReactQueryClientContext) : xE) } const Cm = ({ context: e } = { }) =>{ const t = D.useContext(SE(e, D.useContext(AE))); if (!t) throw new Error('No QueryClient set, use QueryClientProvider to set one'); return t }, OE = ({ client: e, children: t, context: n, contextSharing: r = !1 }) =>{ D.useEffect(() =>(e.mount(), () =>{ e.unmount() }), [ e ]); const i = SE(n, r); return D.createElement(AE.Provider, { value: !n && r }, D.createElement(i.Provider, { value: e }, t)) }, FE = D.createContext(!1), cR = () =>D.useContext(FE); FE.Provider; function fR() { let e = !1; return { clearReset: () =>{ e = !1 }, reset: () =>{ e = !0 }, isReset: () =>e } } const dR = D.createContext(fR()), hR = () =>D.useContext(dR); function BE(e, t) { return typeof e == 'function' ? e(...t) : !!e } const pR = (e, t) =>{ (e.suspense || e.useErrorBoundary) && (t.isReset() || (e.retryOnMount = !1)) }, gR = e=>{ D.useEffect(() =>{ e.clearReset() }, [ e ]) }, mR = ({ result: e, errorResetBoundary: t, useErrorBoundary: n, query: r }) =>e.isError && !t.isReset() && !e.isFetching && BE(n, [ e.error, r ]), vR = e=>{ e.suspense && typeof e.staleTime != 'number' && (e.staleTime = 1000) }, yR = (e, t) =>e.isLoading && e.isFetching && !t, wR = (e, t, n) =>(e == null ? void 0 : e.suspense) && yR(t, n), bR = (e, t, n) =>t.fetchOptimistic(e).then(({ data: r }) =>{ e.onSuccess == null || e.onSuccess(r), e.onSettled == null || e.onSettled(r, null) }).catch(r=>{ n.clearReset(), e.onError == null || e.onError(r), e.onSettled == null || e.onSettled(void 0, r) }); function kE(e, t) { const n = Cm({ context: e.context }), r = cR(), i = hR(), o = n.defaultQueryOptions(e); o._optimisticResults = r ? 'isRestoring' : 'optimistic', o.onError && (o.onError = Tt.batchCalls(o.onError)), o.onSuccess && (o.onSuccess = Tt.batchCalls(o.onSuccess)), o.onSettled && (o.onSettled = Tt.batchCalls(o.onSettled)), vR(o), pR(o, i), gR(i); const [a] = D.useState(() =>new t(n, o)), u = a.getOptimisticResult(o); if (DE(D.useCallback(c=>{ const f = r ? () =>{ } : a.subscribe(Tt.batchCalls(c)); return a.updateResult(), f }, [ a, r ]), () =>a.getCurrentResult(), () =>a.getCurrentResult()), D.useEffect(() =>{ a.setOptions(o, { listeners: !1 }) }, [ o, a ]), wR(o, u, r)) throw bR(o, a, i); if (mR({ result: u, errorResetBoundary: i, useErrorBoundary: o.useErrorBoundary, query: a.getCurrentQuery() })) throw u.error; return o.notifyOnChangeProps ? u : a.trackResult(u) } function _R(e, t, n) { const r = Js(e, t, n); return kE(r, cb) } function CR(e, t, n) { const r = Tk(e, t, n), i = Cm({ context: r.context }), [ o ] = D.useState(() =>new Yk(i, r)); D.useEffect(() =>{ o.setOptions(r) }, [ o, r ]); const a = DE(D.useCallback(c=>o.subscribe(Tt.batchCalls(c)), [ o ]), () =>o.getCurrentResult(), () =>o.getCurrentResult()), u = D.useCallback((c, f) =>{ o.mutate(c, f).catch(ER) }, [ o ]); if (a.error && BE(o.options.useErrorBoundary, [ a.error ])) throw a.error; return { ...a, mutate: u, mutateAsync: a.mutate } } function ER() { } function PE(e, t, n) { const r = Js(e, t, n); return kE(r, Qk) } var Em, RE = qf; Em = RE.createRoot, RE.hydrateRoot; const DR = function () { return null }, xR = D.lazy(() =>fk(() =>Promise.resolve().then(() =>See), void 0, document.currentScript && document.currentScript.src || new URL('embedv2.js', document.baseURI).href)), AR = new qk, Dm = 'embed_v2-root', TE = () =>Em(document.getElementById(Dm)).render(Ve(D.StrictMode, { children: [ !1, Ve(OE, { client: AR, children: [ W(xR, { }), W(DR, { }) ] }) ] })); if (document.getElementById(Dm)) TE(); else { const e = new MutationObserver(() =>{ document.getElementById(Dm) && (e.disconnect(), TE()) }); e.observe(document.body, { childList: !0, subtree: !0 }) } const SR = 'sessionId'; var Li = (e=>(e.ARROW_UP = 'ArrowUp', e.ARROW_DOWN = 'ArrowDown', e.ENTER = 'Enter', e.ESCAPE = 'Escape', e.TAB = 'Tab', e)) (Li || { }), tt = (e=>(e.IMAGE = '1', e.IMAGE_UPLOAD = '2', e.YOUTUBE_VIDEO = '3', e.WEBPAGE = '4', e.TWITTER_STATUS = '5', e.FACEBOOK_PAGE = '6', e.FACEBOOK_POST = '7', e.FACEBOOK_PHOTO = '8', e.FACEBOOK_VIDEO = '9', e.SOUNDCLOUD_SOUND = '10', e.GOOGLE_MAP = '11', e.VIMEO_VIDEO = '12', e.VINE_VIDEO = '14', e.GIF_VIDEO = '15', e.MP4_VIDEO = '16', e)) (tt || { }), IE = (e=>(e.INVALID_IMAGE_FILE = 'invalid-image-file', e.INVALID_CONTENT_TYPE = 'invalid-content-type', e.FILE_TOO_LARGE = 'file-too-large', e.NOT_AUTHENTICATED = 'not-authenticated', e)) (IE || { }); const OR = [ '8', '2', '1', '16', '15', '9', '11', '12', '3', '10', '5' ], NE = 'disqus', FR = ((PF = window.embedv2) == null ? void 0 : PF.TLDS) || 'zw|zuerich|zone|zm|zip|za|yt|youtube|yokohama|yoga|yodobashi|ye|yandex|yachts|xyz|xxx|xin|xerox|wtf|wtc|ws|world|works|work|wme|win|williamhill|wiki|wien|whoswho|wf|weir|wedding|wed|website|webcam|watch|wang|wales|vu|voyage|voto|voting|vote|vodka|vn|vlaanderen|vision|villas|video|viajes|vi|vg|vet|versicherung|ventures|vegas|ve|vc|vacations|va|uz|uy|us|uol|uno|university|uk|ug|ua|tz|tw|tv|tui|tt|trust|travel|training|trading|trade|tr|toys|town|tours|toshiba|toray|top|tools|tokyo|today|to|tn|tm|tl|tk|tj|tirol|tires|tips|tienda|tickets|theater|th|tg|tf|tennis|temasek|tel|technology|tech|team|td|tc|taxi|tax|tattoo|tatar|taipei|sz|systems|sydney|sy|sx|swiss|sv|suzuki|surgery|surf|support|supply|supplies|sucks|su|style|study|st|sr|spreadbetting|spiegel|space|soy|sony|solutions|solar|sohu|software|social|so|sn|sm|sl|sky|sk|sj|site|singles|si|shriram|show|shoes|shiksha|sh|sg|sexy|sex|sew|services|sener|seat|se|sd|scot|science|schwarz|schule|school|scholarships|schmidt|scb|sca|sc|sb|saxo|sarl|sap|samsung|sale|saarland|sa|ryukyu|rw|run|ruhr|ru|rsvp|rs|rodeo|rocks|ro|rip|rio|rich|reviews|review|restaurant|rest|republican|report|repair|rentals|rent|ren|reit|reisen|reise|rehab|redstone|red|recipes|realtor|re|racing|quebec|qpon|qa|py|pw|pub|pt|ps|property|properties|prof|productions|prod|pro|press|praxi|pr|post|porn|poker|pohl|pn|pm|plus|plumbing|place|pl|pk|pizza|pink|pictures|pictet|pics|piaget|physio|photos|photography|photo|philips|pharmacy|ph|pg|pf|pe|party|parts|partners|paris|panerai|page|pa|ovh|otsuka|osaka|organic|org|oracle|ooo|online|onl|ong|one|om|okinawa|nz|nyc|nu|ntt|nrw|nra|nr|np|no|nl|nissan|ninja|nico|ni|nhk|ngo|ng|nf|nexus|news|new|neustar|network|net|nec|ne|nc|navy|name|nagoya|nadex|na|mz|my|mx|mw|mv|museum|mu|mtpc|mtn|mt|ms|mr|mq|mp|movie|mov|motorcycles|moscow|mortgage|mormon|money|monash|moe|moda|mobi|mo|mn|mma|mm|ml|mk|mini|mil|miami|mh|mg|menu|memorial|meme|melbourne|meet|media|me|md|mc|marriott|markets|marketing|market|mango|management|maison|maif|madrid|ma|ly|lv|luxury|luxe|lu|ltda|lt|ls|lr|love|lotto|lotte|london|lol|loans|loan|lk|link|limo|limited|lighting|life|lidl|liaison|li|lgbt|legal|leclerc|lease|lds|lc|lb|lawyer|latrobe|lat|land|lacaixa|la|kz|kyoto|ky|kw|kred|krd|kr|kp|komatsu|koeln|kn|km|kiwi|kitchen|kim|ki|kh|kg|ke|kddi|kaufen|juegos|jp|joburg|jobs|jo|jm|jewelry|jetzt|je|jcb|java|iwc|it|is|irish|ir|iq|io|investments|international|int|insure|institute|ink|ing|info|infiniti|industries|in|immobilien|immo|im|il|ifm|ie|id|icu|ibm|hu|ht|hr|how|house|hosting|host|horse|honda|homes|holiday|holdings|hockey|hn|hm|hk|hiv|hitachi|hiphop|hermes|here|help|healthcare|haus|hangout|hamburg|gy|gw|guru|guitars|guide|guge|gu|gt|gs|gripe|green|gratis|graphics|gr|gq|gp|gov|gop|google|goog|goo|golf|goldpoint|gold|gn|gmx|gmo|gmail|gm|globo|global|gle|glass|gl|gives|gifts|gift|gi|gh|ggee|gg|gf|gent|ge|gdn|gd|gbiz|gb|garden|gallery|gal|ga|futbol|furniture|fund|frogans|frl|fr|foundation|forsale|forex|football|foo|fo|fm|fly|flsmidth|flowers|florist|flights|fk|fj|fitness|fit|fishing|fish|firmdale|financial|finance|film|fi|feedback|fashion|farm|fans|fan|faith|fail|express|exposed|expert|exchange|everbank|events|eus|eurovision|eu|et|estate|esq|es|erni|er|equipment|epson|enterprises|engineering|engineer|energy|emerck|email|eg|ee|education|edu|ec|eat|dz|dvag|durban|download|doosan|domains|doha|dog|docs|do|dnp|dm|dk|dj|discount|directory|direct|digital|diet|diamonds|dev|design|desi|dentist|dental|democrat|delivery|degree|deals|de|dclk|day|datsun|dating|date|dance|dad|dabur|cz|cyou|cymru|cy|cx|cw|cv|cuisinella|cu|cruises|crs|cricket|creditcard|credit|cr|courses|country|coop|cool|cooking|contractors|consulting|construction|condos|computer|company|community|com|cologne|college|coffee|codes|coach|co|cn|cm|club|clothing|clinic|click|cleaning|claims|cl|ck|city|citic|ci|church|chrome|christmas|chloe|cheap|chat|channel|ch|cg|cfd|cfa|cf|cern|ceo|center|cd|cc|cbn|catering|cat|casino|cash|casa|cartier|cars|careers|career|care|cards|caravan|capital|capetown|canon|cancerresearch|camp|camera|cal|cafe|cab|ca|bzh|bz|by|bw|bv|buzz|business|builders|build|budapest|bt|bs|brussels|brother|broker|bridgestone|br|boutique|boo|bond|boats|bo|bnpparibas|bn|bmw|bm|blue|bloomberg|blackfriday|black|bj|biz|bio|bingo|bike|bid|bi|bh|bg|bf|best|berlin|beer|be|bd|bbc|bb|bayern|bauhaus|bargains|barclays|barclaycard|bar|bank|band|ba|az|axa|ax|aw|autos|auto|audio|auction|au|attorney|at|associates|asia|as|arpa|army|archi|ar|aquarelle|aq|apartments|ao|android|an|amsterdam|am|alsace|allfinanz|al|airforce|aig|ai|agency|ag|afl|af|aero|ae|adult|ads|ad|actor|active|accountants|accountant|accenture|academy|ac|abogado|abbott|abb', BR = /^[\w-]+:\/{0,3}/, LE = /([.,]+)$/g, kR = new RegExp('([^@.]|^)\\b(?:\\w[\\w-]*:/{0,3}(?:(?:\\w+:)?\\w+@)?)?([\\w-]+\\.)+(?:' + FR + ')(?!\\.\\w)\\b(?::\\d+)?(?:[/?][^\\s\\{\\}\\|\\\\\\^\\[\\]`<>"\\x80-\\xFF\\x00-\\x1F\\x7F]*)?', 'g'), PR = () =>{ const e = window.screen; return e && e.availWidth ? e.availWidth * e.availHeight + e.colorDepth : e && e.width ? e.width * e.height : 1 }, xm = () =>{ try { const e = new Date().getTimezoneOffset(), t = PR(), n = window.document.documentElement, r = n.clientWidth * n.clientHeight; return Math.abs(e * 17 + t * 25 - r) } catch { return 1 } }, RR = e=>e.isPersistent ? e.value : String(xm()), TR = { calculate: e=>{ let t = 0; if (e.length === 0) return t; for (let n = 0, r = e.length; n < r; n++) { const i = e.charCodeAt(n); t = (t << 5) - t + i, t |= 0 } return t } }, ME = (e, t) =>{ const r = Math.abs(TR.calculate(e)); if (t) { const i = Math.pow(10, t); return r % (100 * i) / i } return r % 100 }; /*! js-cookie v3.0.5 | MIT */ function Gf(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) e[r] = n[r] } return e } var IR = { read: function (e) { return e[0] === '"' && (e = e.slice(1, - 1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent) }, write: function (e) { return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent) } }; function Am(e, t) { function n(i, o, a) { if (!(typeof document > 'u')) { a = Gf({ }, t, a), typeof a.expires == 'number' && (a.expires = new Date(Date.now() + a.expires * 86400000)), a.expires && (a.expires = a.expires.toUTCString()), i = encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape); var u = ''; for (var c in a) a[c] && (u += '; ' + c, a[c] !== !0 && (u += '=' + a[c].split(';') [0])); return document.cookie = i + '=' + e.write(o, i) + u } } function r(i) { if (!(typeof document > 'u' || arguments.length && !i)) { for (var o = document.cookie ? document.cookie.split('; ') : [ ], a = { }, u = 0; u < o.length; u++) { var c = o[u].split('='), f = c.slice(1).join('='); try { var h = decodeURIComponent(c[0]); if (a[h] = e.read(f, h), i === h) break } catch { } } return i ? a[i] : a } } return Object.create({ set: n, get: r, remove: function (i, o) { n(i, '', Gf({ }, o, { expires: - 1 })) }, withAttributes: function (i) { return Am(this.converter, Gf({ }, this.attributes, i)) }, withConverter: function (i) { return Am(Gf({ }, this.converter, i), this.attributes) } }, { attributes: { value: Object.freeze(t) }, converter: { value: Object.freeze(e) } }) } var Qf = Am(IR, { path: '/' }); const NR = () =>{ try { const e = new Uint32Array(1); return crypto.getRandomValues(e), e[0] } catch { return Math.floor(Math.random() * 1000000000) } }, LR = () =>{ const e = window.performance, t = e && e.timing; if (!t) return 100000; const n = t.domainLookupEnd - t.domainLookupStart, r = t.connectEnd - t.connectStart, i = t.responseStart - t.navigationStart; return n * 11 + r * 13 + i * 17 }; function MR() { const e = Number(new Date().getTime().toString().substring(3)); return Math.abs(e + LR() - xm()).toString(32) + NR().toString(32) } const $R = { generate: MR }; class jR { constructor(t = { }) { qs(this, 'storageKey', 'disqus_unique'); qs(this, 'domain', window.location.host.split(':') [0]); qs(this, 'isPrivate', !0); qs(this, 'TTL', 365 * 24 * 60 * 60 * 1000); qs(this, 'value'); this.init(t) } init({ isPrivate: t = !0 } = { }) { if (this.isPrivate = t, this.isPrivate) { Qf.remove(this.storageKey, { domain: this.domain }), tr.removeItem(this.storageKey); return } this.value = Qf.get(this.storageKey) || tr.getItem(this.storageKey) || $R.generate(), Qf.set(this.storageKey, this.value, { domain: this.domain, expires: this.TTL }), tr.setItem(this.storageKey, this.value) } get isPersistent() { const t = Qf.get(this.storageKey) || tr.getItem(this.storageKey); return !this.isPrivate && t === this.value } } const $E = { initialized: !1, unique: { }, init(e) { if (!(this.initialized && !(e != null && e.force))) return this.unique = new jR(e), this.initialized = !0, this }, getPercentBucketForString: ME, get clientPercent() { return ME(this.clientId ?? this.fingerprint) }, get fingerprint() { return String(xm()) }, get clientId() { return RR(this.unique) } }, zR = e=>{ const t = { }, n = [ ]; return e.forEach(r=>t[r.id] = { ...r, children: [ ] }), e.forEach(r=>{ var i, o; r.parent ? (o = (i = t[r.parent]) == null ? void 0 : i.children) == null || o.push(t[r.id]) : n.push(t[r.id]) }), n }, UR = (e, t) =>{ let n; return (...r) =>{ n && window.clearTimeout(n), n = window.setTimeout(() =>e(...r), t) } }; class jE extends Error { constructor(n, r) { super (r); qs(this, 'code'); this.code = n } } const Sa = e=>{ const t = window.document.getElementById('disqus-' + e); try { return t && JSON.parse(t.textContent || t.innerHTML) } catch { return null } }, Oa = { data: { }, getItem(e) { return e && Object.prototype.hasOwnProperty.call(Oa, e) ? Oa.data[e] : null }, setItem(e, t) { Oa.data[e] = t }, removeItem(e) { delete Oa.data[e] }, clear() { Oa.data = { } } }; function zE(e, t) { return function () { return e.apply(t, arguments) } } const { toString: HR } = Object.prototype, { getPrototypeOf: Sm } = Object, Yf = (e=>t=>{ const n = HR.call(t); return e[n] || (e[n] = n.slice(8, - 1).toLowerCase()) }) (Object.create(null)), li = e=>(e = e.toLowerCase(), t=>Yf(t) === e), Jf = e=>t=>typeof t === e, { isArray: Fa } = Array, vl = Jf('undefined'); function WR(e) { return e !== null && !vl(e) && e.constructor !== null && !vl(e.constructor) && xr(e.constructor.isBuffer) && e.constructor.isBuffer(e) } const UE = li('ArrayBuffer'); function VR(e) { let t; return typeof ArrayBuffer < 'u' && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && UE(e.buffer), t } const KR = Jf('string'), xr = Jf('function'), HE = Jf('number'), Xf = e=>e !== null && typeof e == 'object', qR = e=>e === !0 || e === !1, Zf = e=>{ if (Yf(e) !== 'object') return !1; const t = Sm(e); return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e) }, GR = li('Date'), QR = li('File'), YR = li('Blob'), JR = li('FileList'), XR = e=>Xf(e) && xr(e.pipe), ZR = e=>{ let t; return e && (typeof FormData == 'function' && e instanceof FormData || xr(e.append) && ((t = Yf(e)) === 'formdata' || t === 'object' && xr(e.toString) && e.toString() === '[object FormData]')) }, eT = li('URLSearchParams'), tT = e=>e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ''); function yl(e, t, { allOwnKeys: n = !1 } = { }) { if (e === null || typeof e > 'u') return; let r, i; if (typeof e != 'object' && (e = [ e ]), Fa(e)) for (r = 0, i = e.length; r < i; r++) t.call(null, e[r], r, e); else { const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), a = o.length; let u; for (r = 0; r < a; r++) u = o[r], t.call(null, e[u], u, e) } } function WE(e, t) { t = t.toLowerCase(); const n = Object.keys(e); let r = n.length, i; for (; r-- > 0; ) if (i = n[r], t === i.toLowerCase()) return i; return null } const VE = (() =>typeof globalThis < 'u' ? globalThis : typeof self < 'u' ? self : typeof window < 'u' ? window : global) (), KE = e=>!vl(e) && e !== VE; function Om() { const { caseless: e } = KE(this) && this || { }, t = { }, n = (r, i) =>{ const o = e && WE(t, i) || i; Zf(t[o]) && Zf(r) ? t[o] = Om(t[o], r) : Zf(r) ? t[o] = Om({ }, r) : Fa(r) ? t[o] = r.slice() : t[o] = r }; for (let r = 0, i = arguments.length; r < i; r++) arguments[r] && yl(arguments[r], n); return t } const nT = (e, t, n, { allOwnKeys: r } = { }) =>(yl(t, (i, o) =>{ n && xr(i) ? e[o] = zE(i, n) : e[o] = i }, { allOwnKeys: r }), e), rT = e=>(e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), iT = (e, t, n, r) =>{ e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, 'super', { value: t.prototype }), n && Object.assign(e.prototype, n) }, oT = (e, t, n, r) =>{ let i, o, a; const u = { }; if (t = t || { }, e == null) return t; do { for (i = Object.getOwnPropertyNames(e), o = i.length; o-- > 0; ) a = i[o], (!r || r(a, e, t)) && !u[a] && (t[a] = e[a], u[a] = !0); e = n !== !1 && Sm(e) } while (e && (!n || n(e, t)) && e !== Object.prototype); return t }, sT = (e, t, n) =>{ e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length; const r = e.indexOf(t, n); return r !== - 1 && r === n }, aT = e=>{ if (!e) return null; if (Fa(e)) return e; let t = e.length; if (!HE(t)) return null; const n = new Array(t); for (; t-- > 0; ) n[t] = e[t]; return n }, uT = (e=>t=>e && t instanceof e) (typeof Uint8Array < 'u' && Sm(Uint8Array)), lT = (e, t) =>{ const r = (e && e[Symbol.iterator]).call(e); let i; for (; (i = r.next()) && !i.done; ) { const o = i.value; t.call(e, o[0], o[1]) } }, cT = (e, t) =>{ let n; const r = [ ]; for (; (n = e.exec(t)) !== null; ) r.push(n); return r }, fT = li('HTMLFormElement'), dT = e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function (n, r, i) { return r.toUpperCase() + i }), qE = (({ hasOwnProperty: e }) =>(t, n) =>e.call(t, n)) (Object.prototype), hT = li('RegExp'), GE = (e, t) =>{ const n = Object.getOwnPropertyDescriptors(e), r = { }; yl(n, (i, o) =>{ t(i, o, e) !== !1 && (r[o] = i) }), Object.defineProperties(e, r) }, pT = e=>{ GE(e, (t, n) =>{ if (xr(e) && [ 'arguments', 'caller', 'callee' ].indexOf(n) !== - 1) return !1; const r = e[n]; if (xr(r)) { if (t.enumerable = !1, 'writable' in t) { t.writable = !1; return } t.set || (t.set = () =>{ throw Error('Can not rewrite read-only method \'' + n + '\'') }) } }) }, gT = (e, t) =>{ const n = { }, r = i=>{ i.forEach(o=>{ n[o] = !0 }) }; return Fa(e) ? r(e) : r(String(e).split(t)), n }, mT = () =>{ }, vT = (e, t) =>(e = + e, Number.isFinite(e) ? e : t), Fm = 'abcdefghijklmnopqrstuvwxyz', QE = '0123456789', YE = { DIGIT: QE, ALPHA: Fm, ALPHA_DIGIT: Fm + Fm.toUpperCase() + QE }, yT = (e = 16, t = YE.ALPHA_DIGIT) =>{ let n = ''; const { length: r } = t; for (; e--; ) n += t[Math.random() * r | 0]; return n }; function wT(e) { return !!(e && xr(e.append) && e[Symbol.toStringTag] === 'FormData' && e[Symbol.iterator]) } const bT = e=>{ const t = new Array(10), n = (r, i) =>{ if (Xf(r)) { if (t.indexOf(r) >= 0) return; if (!('toJSON' in r)) { t[i] = r; const o = Fa(r) ? [ ] : { }; return yl(r, (a, u) =>{ const c = n(a, i + 1); !vl(c) && (o[u] = c) }), t[i] = void 0, o } } return r }; return n(e, 0) }, _T = li('AsyncFunction'), oe = { isArray: Fa, isArrayBuffer: UE, isBuffer: WR, isFormData: ZR, isArrayBufferView: VR, isString: KR, isNumber: HE, isBoolean: qR, isObject: Xf, isPlainObject: Zf, isUndefined: vl, isDate: GR, isFile: QR, isBlob: YR, isRegExp: hT, isFunction: xr, isStream: XR, isURLSearchParams: eT, isTypedArray: uT, isFileList: JR, forEach: yl, merge: Om, extend: nT, trim: tT, stripBOM: rT, inherits: iT, toFlatObject: oT, kindOf: Yf, kindOfTest: li, endsWith: sT, toArray: aT, forEachEntry: lT, matchAll: cT, isHTMLForm: fT, hasOwnProperty: qE, hasOwnProp: qE, reduceDescriptors: GE, freezeMethods: pT, toObjectSet: gT, toCamelCase: dT, noop: mT, toFiniteNumber: vT, findKey: WE, global: VE, isContextDefined: KE, ALPHABET: YE, generateString: yT, isSpecCompliantForm: wT, toJSONObject: bT, isAsyncFn: _T, isThenable: e=>e && (Xf(e) || xr(e)) && xr(e.then) && xr(e.catch) }; function nt(e, t, n, r, i) { Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = 'AxiosError', t && (this.code = t), n && (this.config = n), r && (this.request = r), i && (this.response = i) } oe.inherits(nt, Error, { toJSON: function () { return { message: this.message, name: this.name, description: this.description, number: this.number, fileName: this.fileName, lineNumber: this.lineNumber, columnNumber: this.columnNumber, stack: this.stack, config: oe.toJSONObject(this.config), code: this.code, status: this.response && this.response.status ? this.response.status : null } } }); const JE = nt.prototype, XE = { }; [ 'ERR_BAD_OPTION_VALUE', 'ERR_BAD_OPTION', 'ECONNABORTED', 'ETIMEDOUT', 'ERR_NETWORK', 'ERR_FR_TOO_MANY_REDIRECTS', 'ERR_DEPRECATED', 'ERR_BAD_RESPONSE', 'ERR_BAD_REQUEST', 'ERR_CANCELED', 'ERR_NOT_SUPPORT', 'ERR_INVALID_URL' ].forEach(e=>{ XE[e] = { value: e } }), Object.defineProperties(nt, XE), Object.defineProperty(JE, 'isAxiosError', { value: !0 }), nt.from = (e, t, n, r, i, o) =>{ const a = Object.create(JE); return oe.toFlatObject(e, a, function (c) { return c !== Error.prototype }, u=>u !== 'isAxiosError'), nt.call(a, e.message, t, n, r, i), a.cause = e, a.name = e.name, o && Object.assign(a, o), a }; const CT = null; function Bm(e) { return oe.isPlainObject(e) || oe.isArray(e) } function ZE(e) { return oe.endsWith(e, '[]') ? e.slice(0, - 2) : e } function eD(e, t, n) { return e ? e.concat(t).map(function (i, o) { return i = ZE(i), !n && o ? '[' + i + ']' : i }).join(n ? '.' : '') : t } function ET(e) { return oe.isArray(e) && !e.some(Bm) } const DT = oe.toFlatObject(oe, { }, null, function (t) { return /^is[A-Z]/.test(t) }); function ed(e, t, n) { if (!oe.isObject(e)) throw new TypeError('target must be an object'); t = t || new FormData, n = oe.toFlatObject(n, { metaTokens: !0, dots: !1, indexes: !1 }, !1, function (p, E) { return !oe.isUndefined(E[p]) }); const r = n.metaTokens, i = n.visitor || h, o = n.dots, a = n.indexes, c = (n.Blob || typeof Blob < 'u' && Blob) && oe.isSpecCompliantForm(t); if (!oe.isFunction(i)) throw new TypeError('visitor must be a function'); function f(v) { if (v === null) return ''; if (oe.isDate(v)) return v.toISOString(); if (!c && oe.isBlob(v)) throw new nt('Blob is not supported. Use a Buffer instead.'); return oe.isArrayBuffer(v) || oe.isTypedArray(v) ? c && typeof Blob == 'function' ? new Blob([v]) : Buffer.from(v) : v } function h(v, p, E) { let _ = v; if (v && !E && typeof v == 'object') { if (oe.endsWith(p, '{}')) p = r ? p : p.slice(0, - 2), v = JSON.stringify(v); else if (oe.isArray(v) && ET(v) || (oe.isFileList(v) || oe.endsWith(p, '[]')) && (_ = oe.toArray(v))) return p = ZE(p), _.forEach(function (x, O) { !(oe.isUndefined(x) || x === null) && t.append(a === !0 ? eD([p], O, o) : a === null ? p : p + '[]', f(x)) }), !1 } return Bm(v) ? !0 : (t.append(eD(E, p, o), f(v)), !1) } const g = [ ], m = Object.assign(DT, { defaultVisitor: h, convertValue: f, isVisitable: Bm }); function y(v, p) { if (!oe.isUndefined(v)) { if (g.indexOf(v) !== - 1) throw Error('Circular reference detected in ' + p.join('.')); g.push(v), oe.forEach(v, function (_, b) { (!(oe.isUndefined(_) || _ === null) && i.call(t, _, oe.isString(b) ? b.trim() : b, p, m)) === !0 && y(_, p ? p.concat(b) : [ b ]) }), g.pop() } } if (!oe.isObject(e)) throw new TypeError('data must be an object'); return y(e), t } function tD(e) { const t = { '!': '%21', '\'': '%27', '(': '%28', ')': '%29', '~': '%7E', '%20': '+', '%00': '\x00' }; return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function (r) { return t[r] }) } function km(e, t) { this._pairs = [ ], e && ed(e, this, t) } const nD = km.prototype; nD.append = function (t, n) { this._pairs.push([t, n]) }, nD.toString = function (t) { const n = t ? function (r) { return t.call(this, r, tD) } : tD; return this._pairs.map(function (i) { return n(i[0]) + '=' + n(i[1]) }, '').join('&') }; function xT(e) { return encodeURIComponent(e).replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']') } function rD(e, t, n) { if (!t) return e; const r = n && n.encode || xT, i = n && n.serialize; let o; if (i ? o = i(t, n) : o = oe.isURLSearchParams(t) ? t.toString() : new km(t, n).toString(r), o) { const a = e.indexOf('#'); a !== - 1 && (e = e.slice(0, a)), e += (e.indexOf('?') === - 1 ? '?' : '&') + o } return e } class AT { constructor() { this.handlers = [ ] } use(t, n, r) { return this.handlers.push({ fulfilled: t, rejected: n, synchronous: r ? r.synchronous : !1, runWhen: r ? r.runWhen : null }), this.handlers.length - 1 } eject(t) { this.handlers[t] && (this.handlers[t] = null) } clear() { this.handlers && (this.handlers = [ ]) } forEach(t) { oe.forEach(this.handlers, function (r) { r !== null && t(r) }) } } const iD = AT, oD = { silentJSONParsing: !0, forcedJSONParsing: !0, clarifyTimeoutError: !1 }, ST = typeof URLSearchParams < 'u' ? URLSearchParams : km, OT = typeof FormData < 'u' ? FormData : null, FT = typeof Blob < 'u' ? Blob : null, BT = (() =>{ let e; return typeof navigator < 'u' && ((e = navigator.product) === 'ReactNative' || e === 'NativeScript' || e === 'NS') ? !1 : typeof window < 'u' && typeof document < 'u' }) (), kT = (() =>typeof WorkerGlobalScope < 'u' && self instanceof WorkerGlobalScope && typeof self.importScripts == 'function') (), ci = { isBrowser: !0, classes: { URLSearchParams: ST, FormData: OT, Blob: FT }, isStandardBrowserEnv: BT, isStandardBrowserWebWorkerEnv: kT, protocols: [ 'http', 'https', 'file', 'blob', 'url', 'data' ] }; function PT(e, t) { return ed(e, new ci.classes.URLSearchParams, Object.assign({ visitor: function (n, r, i, o) { return ci.isNode && oe.isBuffer(n) ? (this.append(r, n.toString('base64')), !1) : o.defaultVisitor.apply(this, arguments) } }, t)) } function RT(e) { return oe.matchAll(/\w+|\[(\w*)]/g, e).map(t=>t[0] === '[]' ? '' : t[1] || t[0]) } function TT(e) { const t = { }, n = Object.keys(e); let r; const i = n.length; let o; for (r = 0; r < i; r++) o = n[r], t[o] = e[o]; return t } function sD(e) { function t(n, r, i, o) { let a = n[o++]; const u = Number.isFinite( + a), c = o >= n.length; return a = !a && oe.isArray(i) ? i.length : a, c ? (oe.hasOwnProp(i, a) ? i[a] = [ i[a], r ] : i[a] = r, !u) : ((!i[a] || !oe.isObject(i[a])) && (i[a] = [ ]), t(n, r, i[a], o) && oe.isArray(i[a]) && (i[a] = TT(i[a])), !u) } if (oe.isFormData(e) && oe.isFunction(e.entries)) { const n = { }; return oe.forEachEntry(e, (r, i) =>{ t(RT(r), i, n, 0) }), n } return null } const IT = { 'Content-Type': void 0 }; function NT(e, t, n) { if (oe.isString(e)) try { return (t || JSON.parse) (e), oe.trim(e) } catch (r) { if (r.name !== 'SyntaxError') throw r } return (n || JSON.stringify) (e) } const td = { transitional: oD, adapter: [ 'xhr', 'http' ], transformRequest: [ function (t, n) { const r = n.getContentType() || '', i = r.indexOf('application/json') > - 1, o = oe.isObject(t); if (o && oe.isHTMLForm(t) && (t = new FormData(t)), oe.isFormData(t)) return i && i ? JSON.stringify(sD(t)) : t; if (oe.isArrayBuffer(t) || oe.isBuffer(t) || oe.isStream(t) || oe.isFile(t) || oe.isBlob(t)) return t; if (oe.isArrayBufferView(t)) return t.buffer; if (oe.isURLSearchParams(t)) return n.setContentType('application/x-www-form-urlencoded;charset=utf-8', !1), t.toString(); let u; if (o) { if (r.indexOf('application/x-www-form-urlencoded') > - 1) return PT(t, this.formSerializer).toString(); if ((u = oe.isFileList(t)) || r.indexOf('multipart/form-data') > - 1) { const c = this.env && this.env.FormData; return ed(u ? { 'files[]': t } : t, c && new c, this.formSerializer) } } return o || i ? (n.setContentType('application/json', !1), NT(t)) : t } ], transformResponse: [ function (t) { const n = this.transitional || td.transitional, r = n && n.forcedJSONParsing, i = this.responseType === 'json'; if (t && oe.isString(t) && (r && !this.responseType || i)) { const a = !(n && n.silentJSONParsing) && i; try { return JSON.parse(t) } catch (u) { if (a) throw u.name === 'SyntaxError' ? nt.from(u, nt.ERR_BAD_RESPONSE, this, null, this.response) : u } } return t } ], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: - 1, maxBodyLength: - 1, env: { FormData: ci.classes.FormData, Blob: ci.classes.Blob }, validateStatus: function (t) { return t >= 200 && t < 300 }, headers: { common: { Accept: 'application/json, text/plain, */*' } } }; oe.forEach(['delete', 'get', 'head'], function (t) { td.headers[t] = { } }), oe.forEach(['post', 'put', 'patch'], function (t) { td.headers[t] = oe.merge(IT) }); const Pm = td, LT = oe.toObjectSet(['age', 'authorization', 'content-length', 'content-type', 'etag', 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', 'last-modified', 'location', 'max-forwards', 'proxy-authorization', 'referer', 'retry-after', 'user-agent']), MT = e=>{ const t = { }; let n, r, i; return e && e.split(` `).forEach(function (a) { i = a.indexOf(':'), n = a.substring(0, i).trim().toLowerCase(), r = a.substring(i + 1).trim(), !(!n || t[n] && LT[n]) && (n === 'set-cookie' ? t[n] ? t[n].push(r) : t[n] = [ r ] : t[n] = t[n] ? t[n] + ', ' + r : r) }), t }, aD = Symbol('internals'); function wl(e) { return e && String(e).trim().toLowerCase() } function nd(e) { return e === !1 || e == null ? e : oe.isArray(e) ? e.map(nd) : String(e) } function $T(e) { const t = Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g; let r; for (; r = n.exec(e); ) t[r[1]] = r[2]; return t } const jT = e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()); function Rm(e, t, n, r, i) { if (oe.isFunction(r)) return r.call(this, t, n); if (i && (t = n), !!oe.isString(t)) { if (oe.isString(r)) return t.indexOf(r) !== - 1; if (oe.isRegExp(r)) return r.test(t) } } function zT(e) { return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) =>n.toUpperCase() + r) } function UT(e, t) { const n = oe.toCamelCase(' ' + t); [ 'get', 'set', 'has' ].forEach(r=>{ Object.defineProperty(e, r + n, { value: function (i, o, a) { return this[r].call(this, t, i, o, a) }, configurable: !0 }) }) } class rd { constructor(t) { t && this.set(t) } set(t, n, r) { const i = this; function o(u, c, f) { const h = wl(c); if (!h) throw new Error('header name must be a non-empty string'); const g = oe.findKey(i, h); (!g || i[g] === void 0 || f === !0 || f === void 0 && i[g] !== !1) && (i[g || c] = nd(u)) } const a = (u, c) =>oe.forEach(u, (f, h) =>o(f, h, c)); return oe.isPlainObject(t) || t instanceof this.constructor ? a(t, n) : oe.isString(t) && (t = t.trim()) && !jT(t) ? a(MT(t), n) : t != null && o(n, t, r), this } get(t, n) { if (t = wl(t), t) { const r = oe.findKey(this, t); if (r) { const i = this[r]; if (!n) return i; if (n === !0) return $T(i); if (oe.isFunction(n)) return n.call(this, i, r); if (oe.isRegExp(n)) return n.exec(i); throw new TypeError('parser must be boolean|regexp|function') } } } has(t, n) { if (t = wl(t), t) { const r = oe.findKey(this, t); return !!(r && this[r] !== void 0 && (!n || Rm(this, this[r], r, n))) } return !1 } delete (t, n) { const r = this; let i = !1; function o(a) { if (a = wl(a), a) { const u = oe.findKey(r, a); u && (!n || Rm(r, r[u], u, n)) && (delete r[u], i = !0) } } return oe.isArray(t) ? t.forEach(o) : o(t), i } clear(t) { const n = Object.keys(this); let r = n.length, i = !1; for (; r--; ) { const o = n[r]; (!t || Rm(this, this[o], o, t, !0)) && (delete this[o], i = !0) } return i } normalize(t) { const n = this, r = { }; return oe.forEach(this, (i, o) =>{ const a = oe.findKey(r, o); if (a) { n[a] = nd(i), delete n[o]; return } const u = t ? zT(o) : String(o).trim(); u !== o && delete n[o], n[u] = nd(i), r[u] = !0 }), this } concat(...t) { return this.constructor.concat(this, ...t) } toJSON(t) { const n = Object.create(null); return oe.forEach(this, (r, i) =>{ r != null && r !== !1 && (n[i] = t && oe.isArray(r) ? r.join(', ') : r) }), n } [ Symbol.iterator ]() { return Object.entries(this.toJSON()) [Symbol.iterator]() } toString() { return Object.entries(this.toJSON()).map(([t, n]) =>t + ': ' + n).join(` `) } get[Symbol.toStringTag]() { return 'AxiosHeaders' } static from(t) { return t instanceof this ? t : new this(t) } static concat(t, ...n) { const r = new this(t); return n.forEach(i=>r.set(i)), r } static accessor(t) { const r = (this[aD] = this[aD] = { accessors: { } }).accessors, i = this.prototype; function o(a) { const u = wl(a); r[u] || (UT(i, a), r[u] = !0) } return oe.isArray(t) ? t.forEach(o) : o(t), this } } rd.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']), oe.freezeMethods(rd.prototype), oe.freezeMethods(rd); const Mi = rd; function Tm(e, t) { const n = this || Pm, r = t || n, i = Mi.from(r.headers); let o = r.data; return oe.forEach(e, function (u) { o = u.call(n, o, i.normalize(), t ? t.status : void 0) }), i.normalize(), o } function uD(e) { return !!(e && e.__CANCEL__) } function bl(e, t, n) { nt.call(this, e ?? 'canceled', nt.ERR_CANCELED, t, n), this.name = 'CanceledError' } oe.inherits(bl, nt, { __CANCEL__: !0 }); function HT(e, t, n) { const r = n.config.validateStatus; !n.status || !r || r(n.status) ? e(n) : t(new nt('Request failed with status code ' + n.status, [ nt.ERR_BAD_REQUEST, nt.ERR_BAD_RESPONSE ][Math.floor(n.status / 100) - 4], n.config, n.request, n)) } const WT = ci.isStandardBrowserEnv ? function () { return { write: function (n, r, i, o, a, u) { const c = [ ]; c.push(n + '=' + encodeURIComponent(r)), oe.isNumber(i) && c.push('expires=' + new Date(i).toGMTString()), oe.isString(o) && c.push('path=' + o), oe.isString(a) && c.push('domain=' + a), u === !0 && c.push('secure'), document.cookie = c.join('; ') }, read: function (n) { const r = document.cookie.match(new RegExp('(^|;\\s*)(' + n + ')=([^;]*)')); return r ? decodeURIComponent(r[3]) : null }, remove: function (n) { this.write(n, '', Date.now() - 86400000) } } }() : function () { return { write: function () { }, read: function () { return null }, remove: function () { } } }(); function VT(e) { return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e) } function KT(e, t) { return t ? e.replace(/\/+$/, '') + '/' + t.replace(/^\/+/, '') : e } function lD(e, t) { return e && !VT(t) ? KT(e, t) : t } const qT = ci.isStandardBrowserEnv ? function () { const t = /(msie|trident)/i.test(navigator.userAgent), n = document.createElement('a'); let r; function i(o) { let a = o; return t && (n.setAttribute('href', a), a = n.href), n.setAttribute('href', a), { href: n.href, protocol: n.protocol ? n.protocol.replace(/:$/, '') : '', host: n.host, search: n.search ? n.search.replace(/^\?/, '') : '', hash: n.hash ? n.hash.replace(/^#/, '') : '', hostname: n.hostname, port: n.port, pathname: n.pathname.charAt(0) === '/' ? n.pathname : '/' + n.pathname } } return r = i(window.location.href), function (a) { const u = oe.isString(a) ? i(a) : a; return u.protocol === r.protocol && u.host === r.host } }() : function () { return function () { return !0 } }(); function GT(e) { const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e); return t && t[1] || '' } function QT(e, t) { e = e || 10; const n = new Array(e), r = new Array(e); let i = 0, o = 0, a; return t = t !== void 0 ? t : 1000, function (c) { const f = Date.now(), h = r[o]; a || (a = f), n[i] = c, r[i] = f; let g = o, m = 0; for (; g !== i; ) m += n[g++], g = g % e; if (i = (i + 1) % e, i === o && (o = (o + 1) % e), f - a < t) return; const y = h && f - h; return y ? Math.round(m * 1000 / y) : void 0 } } function cD(e, t) { let n = 0; const r = QT(50, 250); return i=>{ const o = i.loaded, a = i.lengthComputable ? i.total : void 0, u = o - n, c = r(u), f = o <= a; n = o; const h = { loaded: o, total: a, progress: a ? o / a : void 0, bytes: u, rate: c || void 0, estimated: c && a && f ? (a - o) / c : void 0, event: i }; h[t ? 'download' : 'upload'] = !0, e(h) } } const id = { http: CT, xhr: typeof XMLHttpRequest < 'u' && function (e) { return new Promise(function (n, r) { let i = e.data; const o = Mi.from(e.headers).normalize(), a = e.responseType; let u; function c() { e.cancelToken && e.cancelToken.unsubscribe(u), e.signal && e.signal.removeEventListener('abort', u) } oe.isFormData(i) && (ci.isStandardBrowserEnv || ci.isStandardBrowserWebWorkerEnv ? o.setContentType(!1) : o.setContentType('multipart/form-data;', !1)); let f = new XMLHttpRequest; if (e.auth) { const y = e.auth.username || '', v = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : ''; o.set('Authorization', 'Basic ' + btoa(y + ':' + v)) } const h = lD(e.baseURL, e.url); f.open(e.method.toUpperCase(), rD(h, e.params, e.paramsSerializer), !0), f.timeout = e.timeout; function g() { if (!f) return; const y = Mi.from('getAllResponseHeaders' in f && f.getAllResponseHeaders()), p = { data: !a || a === 'text' || a === 'json' ? f.responseText : f.response, status: f.status, statusText: f.statusText, headers: y, config: e, request: f }; HT(function (_) { n(_), c() }, function (_) { r(_), c() }, p), f = null } if ('onloadend' in f ? f.onloadend = g : f.onreadystatechange = function () { !f || f.readyState !== 4 || f.status === 0 && !(f.responseURL && f.responseURL.indexOf('file:') === 0) || setTimeout(g) }, f.onabort = function () { f && (r(new nt('Request aborted', nt.ECONNABORTED, e, f)), f = null) }, f.onerror = function () { r(new nt('Network Error', nt.ERR_NETWORK, e, f)), f = null }, f.ontimeout = function () { let v = e.timeout ? 'timeout of ' + e.timeout + 'ms exceeded' : 'timeout exceeded'; const p = e.transitional || oD; e.timeoutErrorMessage && (v = e.timeoutErrorMessage), r(new nt(v, p.clarifyTimeoutError ? nt.ETIMEDOUT : nt.ECONNABORTED, e, f)), f = null }, ci.isStandardBrowserEnv) { const y = (e.withCredentials || qT(h)) && e.xsrfCookieName && WT.read(e.xsrfCookieName); y && o.set(e.xsrfHeaderName, y) } i === void 0 && o.setContentType(null), 'setRequestHeader' in f && oe.forEach(o.toJSON(), function (v, p) { f.setRequestHeader(p, v) }), oe.isUndefined(e.withCredentials) || (f.withCredentials = !!e.withCredentials), a && a !== 'json' && (f.responseType = e.responseType), typeof e.onDownloadProgress == 'function' && f.addEventListener('progress', cD(e.onDownloadProgress, !0)), typeof e.onUploadProgress == 'function' && f.upload && f.upload.addEventListener('progress', cD(e.onUploadProgress)), (e.cancelToken || e.signal) && (u = y=>{ f && (r(!y || y.type ? new bl(null, e, f) : y), f.abort(), f = null) }, e.cancelToken && e.cancelToken.subscribe(u), e.signal && (e.signal.aborted ? u() : e.signal.addEventListener('abort', u))); const m = GT(h); if (m && ci.protocols.indexOf(m) === - 1) { r(new nt('Unsupported protocol ' + m + ':', nt.ERR_BAD_REQUEST, e)); return } f.send(i || null) }) } }; oe.forEach(id, (e, t) =>{ if (e) { try { Object.defineProperty(e, 'name', { value: t }) } catch { } Object.defineProperty(e, 'adapterName', { value: t }) } }); const YT = { getAdapter: e=>{ e = oe.isArray(e) ? e : [ e ]; const { length: t } = e; let n, r; for (let i = 0; i < t && (n = e[i], !(r = oe.isString(n) ? id[n.toLowerCase()] : n)); i++); if (!r) throw r === !1 ? new nt(`Adapter ${ n } is not supported by the environment`, 'ERR_NOT_SUPPORT') : new Error(oe.hasOwnProp(id, n) ? `Adapter '${ n }' is not available in the build` : `Unknown adapter '${ n }'`); if (!oe.isFunction(r)) throw new TypeError('adapter is not a function'); return r }, adapters: id }; function Im(e) { if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) throw new bl(null, e) } function fD(e) { return Im(e), e.headers = Mi.from(e.headers), e.data = Tm.call(e, e.transformRequest), [ 'post', 'put', 'patch' ].indexOf(e.method) !== - 1 && e.headers.setContentType('application/x-www-form-urlencoded', !1), YT.getAdapter(e.adapter || Pm.adapter) (e).then(function (r) { return Im(e), r.data = Tm.call(e, e.transformResponse, r), r.headers = Mi.from(r.headers), r }, function (r) { return uD(r) || (Im(e), r && r.response && (r.response.data = Tm.call(e, e.transformResponse, r.response), r.response.headers = Mi.from(r.response.headers))), Promise.reject(r) }) } const dD = e=>e instanceof Mi ? e.toJSON() : e; function Ba(e, t) { t = t || { }; const n = { }; function r(f, h, g) { return oe.isPlainObject(f) && oe.isPlainObject(h) ? oe.merge.call({ caseless: g }, f, h) : oe.isPlainObject(h) ? oe.merge({ }, h) : oe.isArray(h) ? h.slice() : h } function i(f, h, g) { if (oe.isUndefined(h)) { if (!oe.isUndefined(f)) return r(void 0, f, g) } else return r(f, h, g) } function o(f, h) { if (!oe.isUndefined(h)) return r(void 0, h) } function a(f, h) { if (oe.isUndefined(h)) { if (!oe.isUndefined(f)) return r(void 0, f) } else return r(void 0, h) } function u(f, h, g) { if (g in t) return r(f, h); if (g in e) return r(void 0, f) } const c = { url: o, method: o, data: o, baseURL: a, transformRequest: a, transformResponse: a, paramsSerializer: a, timeout: a, timeoutMessage: a, withCredentials: a, adapter: a, responseType: a, xsrfCookieName: a, xsrfHeaderName: a, onUploadProgress: a, onDownloadProgress: a, decompress: a, maxContentLength: a, maxBodyLength: a, beforeRedirect: a, transport: a, httpAgent: a, httpsAgent: a, cancelToken: a, socketPath: a, responseEncoding: a, validateStatus: u, headers: (f, h) =>i(dD(f), dD(h), !0) }; return oe.forEach(Object.keys(Object.assign({ }, e, t)), function (h) { const g = c[h] || i, m = g(e[h], t[h], h); oe.isUndefined(m) && g !== u || (n[h] = m) }), n } const hD = '1.4.0', Nm = { }; [ 'object', 'boolean', 'number', 'function', 'string', 'symbol' ].forEach((e, t) =>{ Nm[e] = function (r) { return typeof r === e || 'a' + (t < 1 ? 'n ' : ' ') + e } }); const pD = { }; Nm.transitional = function (t, n, r) { function i(o, a) { return '[Axios v' + hD + '] Transitional option \'' + o + '\'' + a + (r ? '. ' + r : '') } return (o, a, u) =>{ if (t === !1) throw new nt(i(a, ' has been removed' + (n ? ' in ' + n : '')), nt.ERR_DEPRECATED); return n && !pD[a] && (pD[a] = !0, console.warn(i(a, ' has been deprecated since v' + n + ' and will be removed in the near future'))), t ? t(o, a, u) : !0 } }; function JT(e, t, n) { if (typeof e != 'object') throw new nt('options must be an object', nt.ERR_BAD_OPTION_VALUE); const r = Object.keys(e); let i = r.length; for (; i-- > 0; ) { const o = r[i], a = t[o]; if (a) { const u = e[o], c = u === void 0 || a(u, o, e); if (c !== !0) throw new nt('option ' + o + ' must be ' + c, nt.ERR_BAD_OPTION_VALUE); continue } if (n !== !0) throw new nt('Unknown option ' + o, nt.ERR_BAD_OPTION) } } const Lm = { assertOptions: JT, validators: Nm }, Fo = Lm.validators; class od { constructor(t) { this.defaults = t, this.interceptors = { request: new iD, response: new iD } } request(t, n) { typeof t == 'string' ? (n = n || { }, n.url = t) : n = t || { }, n = Ba(this.defaults, n); const { transitional: r, paramsSerializer: i, headers: o } = n; r !== void 0 && Lm.assertOptions(r, { silentJSONParsing: Fo.transitional(Fo.boolean), forcedJSONParsing: Fo.transitional(Fo.boolean), clarifyTimeoutError: Fo.transitional(Fo.boolean) }, !1), i != null && (oe.isFunction(i) ? n.paramsSerializer = { serialize: i } : Lm.assertOptions(i, { encode: Fo.function, serialize: Fo.function }, !0)), n.method = (n.method || this.defaults.method || 'get').toLowerCase(); let a; a = o && oe.merge(o.common, o[n.method]), a && oe.forEach(['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], v=>{ delete o[v] }), n.headers = Mi.concat(a, o); const u = [ ]; let c = !0; this.interceptors.request.forEach(function (p) { typeof p.runWhen == 'function' && p.runWhen(n) === !1 || (c = c && p.synchronous, u.unshift(p.fulfilled, p.rejected)) }); const f = [ ]; this.interceptors.response.forEach(function (p) { f.push(p.fulfilled, p.rejected) }); let h, g = 0, m; if (!c) { const v = [ fD.bind(this), void 0 ]; for (v.unshift.apply(v, u), v.push.apply(v, f), m = v.length, h = Promise.resolve(n); g < m; ) h = h.then(v[g++], v[g++]); return h } m = u.length; let y = n; for (g = 0; g < m; ) { const v = u[g++], p = u[g++]; try { y = v(y) } catch (E) { p.call(this, E); break } } try { h = fD.call(this, y) } catch (v) { return Promise.reject(v) } for (g = 0, m = f.length; g < m; ) h = h.then(f[g++], f[g++]); return h } getUri(t) { t = Ba(this.defaults, t); const n = lD(t.baseURL, t.url); return rD(n, t.params, t.paramsSerializer) } } oe.forEach(['delete', 'get', 'head', 'options'], function (t) { od.prototype[t] = function (n, r) { return this.request(Ba(r || { }, { method: t, url: n, data: (r || { }).data })) } }), oe.forEach(['post', 'put', 'patch'], function (t) { function n(r) { return function (o, a, u) { return this.request(Ba(u || { }, { method: t, headers: r ? { 'Content-Type': 'multipart/form-data' } : { }, url: o, data: a })) } } od.prototype[t] = n(), od.prototype[t + 'Form'] = n(!0) }); const sd = od; class Mm { constructor(t) { if (typeof t != 'function') throw new TypeError('executor must be a function.'); let n; this.promise = new Promise(function (o) { n = o }); const r = this; this.promise.then(i=>{ if (!r._listeners) return; let o = r._listeners.length; for (; o-- > 0; ) r._listeners[o](i); r._listeners = null }), this.promise.then = i=>{ let o; const a = new Promise(u=>{ r.subscribe(u), o = u }).then(i); return a.cancel = function () { r.unsubscribe(o) }, a }, t(function (o, a, u) { r.reason || (r.reason = new bl(o, a, u), n(r.reason)) }) } throwIfRequested() { if (this.reason) throw this.reason } subscribe(t) { if (this.reason) { t(this.reason); return } this._listeners ? this._listeners.push(t) : this._listeners = [ t ] } unsubscribe(t) { if (!this._listeners) return; const n = this._listeners.indexOf(t); n !== - 1 && this._listeners.splice(n, 1) } static source() { let t; return { token: new Mm(function (i) { t = i }), cancel: t } } } const XT = Mm; function ZT(e) { return function (n) { return e.apply(null, n) } } function e8(e) { return oe.isObject(e) && e.isAxiosError === !0 } const $m = { Continue: 100, SwitchingProtocols: 101, Processing: 102, EarlyHints: 103, Ok: 200, Created: 201, Accepted: 202, NonAuthoritativeInformation: 203, NoContent: 204, ResetContent: 205, PartialContent: 206, MultiStatus: 207, AlreadyReported: 208, ImUsed: 226, MultipleChoices: 300, MovedPermanently: 301, Found: 302, SeeOther: 303, NotModified: 304, UseProxy: 305, Unused: 306, TemporaryRedirect: 307, PermanentRedirect: 308, BadRequest: 400, Unauthorized: 401, PaymentRequired: 402, Forbidden: 403, NotFound: 404, MethodNotAllowed: 405, NotAcceptable: 406, ProxyAuthenticationRequired: 407, RequestTimeout: 408, Conflict: 409, Gone: 410, LengthRequired: 411, PreconditionFailed: 412, PayloadTooLarge: 413, UriTooLong: 414, UnsupportedMediaType: 415, RangeNotSatisfiable: 416, ExpectationFailed: 417, ImATeapot: 418, MisdirectedRequest: 421, UnprocessableEntity: 422, Locked: 423, FailedDependency: 424, TooEarly: 425, UpgradeRequired: 426, PreconditionRequired: 428, TooManyRequests: 429, RequestHeaderFieldsTooLarge: 431, UnavailableForLegalReasons: 451, InternalServerError: 500, NotImplemented: 501, BadGateway: 502, ServiceUnavailable: 503, GatewayTimeout: 504, HttpVersionNotSupported: 505, VariantAlsoNegotiates: 506, InsufficientStorage: 507, LoopDetected: 508, NotExtended: 510, NetworkAuthenticationRequired: 511 }; Object.entries($m).forEach(([e, t]) =>{ $m[t] = e }); const t8 = $m; function gD(e) { const t = new sd(e), n = zE(sd.prototype.request, t); return oe.extend(n, sd.prototype, t, { allOwnKeys: !0 }), oe.extend(n, t, null, { allOwnKeys: !0 }), n.create = function (i) { return gD(Ba(e, i)) }, n } const Jt = gD(Pm); Jt.Axios = sd, Jt.CanceledError = bl, Jt.CancelToken = XT, Jt.isCancel = uD, Jt.VERSION = hD, Jt.toFormData = ed, Jt.AxiosError = nt, Jt.Cancel = Jt.CanceledError, Jt.all = function (t) { return Promise.all(t) }, Jt.spread = ZT, Jt.isAxiosError = e8, Jt.mergeConfig = Ba, Jt.AxiosHeaders = Mi, Jt.formToJSON = e=>sD(oe.isHTMLForm(e) ? new FormData(e) : e), Jt.HttpStatusCode = t8, Jt.default = Jt; const mD = Jt, jm = e=>window.location.origin !== new URL(e, window.location.origin).origin, vD = () =>{ const e = tr.getItem(SR); return e ? { 'X-Sessionid': e } : { } }, zm = mD.create({ baseURL: '/' }), Um = 'E8Uh5l5fHZ6gD8U3KycjAIAk46f68Zw7C6eW8WSjZvCLXebZ7p0r1yrYDrLilk2F', ad = e=>{ if (mD.isAxiosError(e)) { if (!e.response) throw new Error(e.message); const t = e.response.status; if (t === 401 || t === 403) throw new Error('Unauthorized'); const { code: n, response: r } = e.response.data; throw new jE(n, r) } else throw e }, Ar = { defaultHeaders: { }, setDefaultHeaders: e=>{ Ar.defaultHeaders = { ...Ar.defaultHeaders, ...e } }, get: async(e, t) =>{ const { data: n } = await zm.get(e, { headers: { ...Ar.defaultHeaders, ...vD() }, params: { ...t, api_key: Um }, withCredentials: jm(e) }).catch(ad); return n }, post: async(e, t, n) =>{ const r = t instanceof FormData ? t : { ...t, api_key: Um }, { data: i } = await zm.post(e, r, { ...n, headers: { ...Ar.defaultHeaders, ...n == null ? void 0 : n.headers, ...vD() }, withCredentials: jm(e) }).catch(ad); return i }, postFormData: async(e, t, n) =>Ar.post(e, t, { ...n, headers: { ...Ar.defaultHeaders, ...n == null ? void 0 : n.headers, 'Content-Type': 'multipart/form-data' }, params: t instanceof FormData ? { api_key: Um } : void 0, withCredentials: jm(e) }).catch(ad), getJson: async e=>{ const { data: t } = await zm.get(e).catch(ad); return t } }, n8 = e=>typeof e == 'boolean', ud = [ 320, 480, 600, 800 ], yD = () =>{ const e = window.document.body.offsetWidth, t = ud.length; return ud.find((n, r) =>r + 1 === t || Math.abs(ud[r + 1] - e) > Math.abs(ud[r] - e)) }, wD = e=>toString.call(e) === '[object Number]' && !Number.isNaN(e), r8 = { avatar: { generic: '//a.disquscdn.com/1684436839/images/noavatar92.png' }, badgesAdmin: e=>`https://${ e }.disqus.com/admin/settings/badges`, login: 'https://disqus.com/next/login/', dotcomLogin: 'https://disqus.com/profile/login/', editProfile: 'https://disqus.com/home/settings/account/', shortener: 'http://disq.us', media: 'https://c.disquscdn.com/next/current/embed', moderate: 'http://disqus.com/admin/moderate/', settings: { subscription: (e, t) =>`https://disqus.com/admin/${ e ? `orgs/${ e }/${ t || 'sites' }/` : '' }settings/subscription/` }, share: { facebook: 'https://www.facebook.com/sharer.php', twitter: 'https://twitter.com/intent/tweet' } }, bD = (() =>{ const e = '_dsqstorage_'; try { return window.localStorage.setItem(e, e), window.localStorage.getItem(e), window.localStorage.removeItem(e), !0 } catch { return !1 } }) (), tr = { getItem(e) { let t = null; try { return t = this.backend.getItem(e), JSON.parse(t) } catch { return t } }, setItem(e, t) { try { this.backend.setItem(e, JSON.stringify(t)) } catch { } }, removeItem(e) { try { this.backend.removeItem(e) } catch { } }, clear() { try { this.backend.clear() } catch { } }, backend: bD ? window.localStorage : Oa, isPersistent: bD }, i8 = function (e) { const t = [ ]; let n, r, i, o, a; if (!e) return t; for (; n = kR.exec(e); ) { r = n[0], a = n[1], r = r.slice(a.length), LE.lastIndex = 0, i = LE.exec(r), i && (r = r.slice(0, r.length - i[0].length)), BR.test(r) ? o = r : o = 'http://' + r; const u = n.index + a.length; t.push({ text: r, url: o, index: u, endIndex: u + r.length }) } return t }, _D = e=>{ if (!e) return ''; const t = window.document.createElement('a'); return t.href = 'http://' + e.replace(/^([a-z+.-]+:)?\/+/i, ''), t.hostname.replace(/^www\d*\./i, '').toLowerCase() }, o8 = new RegExp('(^|\\.)' + _D(r8.media).split('.').slice( - 2).join('\\.') + '$'), s8 = e=>{ const t = _D(e); return o8.test(t) }, a8 = e=>{ const t = [ ]; return Object.keys(e).forEach(n=>{ const r = e[n]; r !== void 0 && t.push(n + (r === null ? '' : '=' + encodeURIComponent(r))) }), t.join('&') }, CD = (e, t, n = !1) =>{ if (t && (e.indexOf('?') === - 1 ? e += '?' : e.charAt(e.length - 1) !== '&' && (e += '&'), e += a8(t)), n) { const i = { }; return i[new Date().getTime()] = null, CD(e, i) } const r = e.length; return e.charAt(r - 1) === '&' ? e.slice(0, r - 1) : e }, ED = e=>{ let t; const n = new Set, r = (c, f) =>{ const h = typeof c == 'function' ? c(t) : c; if (!Object.is(h, t)) { const g = t; t = f ?? typeof h != 'object' ? h : Object.assign({ }, t, h), n.forEach(m=>m(t, g)) } }, i = () =>t, u = { setState: r, getState: i, subscribe: c=>(n.add(c), () =>n.delete(c)), destroy: () =>{ ({ VITE_API_URL: 'https://disqus.com/api/3.0', VITE_API_KEY: 'E8Uh5l5fHZ6gD8U3KycjAIAk46f68Zw7C6eW8WSjZvCLXebZ7p0r1yrYDrLilk2F', VITE_CONFIG_URL: 'https://disqus.com/next/config.json', BASE_URL: '/', MODE: 'production', DEV: !1, PROD: !0, SSR: !1 } && 'production') !== 'production' && console.warn('[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected.'), n.clear() } }; return t = e(r, i, u), u }, u8 = e=>e ? ED(e) : ED; var DD = { exports: { } }, xD = { }; /** * @license React * use-sync-external-store-shim/with-selector.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var ld = D, l8 = EE; function c8(e, t) { return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t } var f8 = typeof Object.is == 'function' ? Object.is : c8, d8 = l8.useSyncExternalStore, h8 = ld.useRef, p8 = ld.useEffect, g8 = ld.useMemo, m8 = ld.useDebugValue; xD.useSyncExternalStoreWithSelector = function (e, t, n, r, i) { var o = h8(null); if (o.current === null) { var a = { hasValue: !1, value: null }; o.current = a } else a = o.current; o = g8(function () { function c(y) { if (!f) { if (f = !0, h = y, y = r(y), i !== void 0 && a.hasValue) { var v = a.value; if (i(v, y)) return g = v } return g = y } if (v = g, f8(h, y)) return v; var p = r(y); return i !== void 0 && i(v, p) ? v : (h = y, g = p) } var f = !1, h, g, m = n === void 0 ? null : n; return [function () { return c(t()) }, m === null ? void 0 : function () { return c(m()) } ] }, [ t, n, r, i ]); var u = d8(e, o[0], o[1]); return p8(function () { a.hasValue = !0, a.value = u }, [ u ]), m8(u), u }, DD.exports = xD; var v8 = DD.exports; const y8 = vr(v8), { useSyncExternalStoreWithSelector: w8 } = y8; function b8(e, t = e.getState, n) { const r = w8(e.subscribe, e.getState, e.getServerState || e.getState, t, n); return D.useDebugValue(r), r } const AD = e=>{ ({ VITE_API_URL: 'https://disqus.com/api/3.0', VITE_API_KEY: 'E8Uh5l5fHZ6gD8U3KycjAIAk46f68Zw7C6eW8WSjZvCLXebZ7p0r1yrYDrLilk2F', VITE_CONFIG_URL: 'https://disqus.com/next/config.json', BASE_URL: '/', MODE: 'production', DEV: !1, PROD: !0, SSR: !1 } && 'production') !== 'production' && typeof e != 'function' && console.warn('[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from \'zustand\'`.'); const t = typeof e == 'function' ? u8(e) : e, n = (r, i) =>b8(t, r, i); return Object.assign(n, t), n }, fi = e=>e ? AD(e) : AD, Hm = new Map, cd = e=>{ const t = Hm.get(e); return t ? Object.fromEntries(Object.entries(t.stores).map(([n, r]) =>[n, r.getState()])) : { } }, _8 = (e, t, n) =>{ if (e === void 0) return { type: 'untracked', connection: t.connect(n) }; const r = Hm.get(n.name); if (r) return { type: 'tracked', store: e, ...r }; const i = { connection: t.connect(n), stores: { } }; return Hm.set(n.name, i), { type: 'tracked', store: e, ...i } }, $i = (e, t = { }) =>(n, r, i) =>{ const { enabled: o, anonymousActionType: a, store: u, ...c } = t; let f; try { f = (o ?? ({ VITE_API_URL: 'https://disqus.com/api/3.0', VITE_API_KEY: 'E8Uh5l5fHZ6gD8U3KycjAIAk46f68Zw7C6eW8WSjZvCLXebZ7p0r1yrYDrLilk2F', VITE_CONFIG_URL: 'https://disqus.com/next/config.json', BASE_URL: '/', MODE: 'production', DEV: !1, PROD: !0, SSR: !1 } && 'production') !== 'production') && window.__REDUX_DEVTOOLS_EXTENSION__ } catch { } if (!f) return ({ VITE_API_URL: 'https://disqus.com/api/3.0', VITE_API_KEY: 'E8Uh5l5fHZ6gD8U3KycjAIAk46f68Zw7C6eW8WSjZvCLXebZ7p0r1yrYDrLilk2F', VITE_CONFIG_URL: 'https://disqus.com/next/config.json', BASE_URL: '/', MODE: 'production', DEV: !1, PROD: !0, SSR: !1 } && 'production') !== 'production' && o && console.warn('[zustand devtools middleware] Please install/enable Redux devtools extension'), e(n, r, i); const { connection: h, ...g } = _8(u, f, c); let m = !0; i.setState = (p, E, _) =>{ const b = n(p, E); if (!m) return b; const x = _ === void 0 ? { type: a || 'anonymous' } : typeof _ == 'string' ? { type: _ } : _; return u === void 0 ? (h == null || h.send(x, r()), b) : (h == null || h.send({ ...x, type: `${ u }/${ x.type }` }, { ...cd(c.name), [ u ]: i.getState() }), b) }; const y = (...p) =>{ const E = m; m = !1, n(...p), m = E }, v = e(i.setState, r, i); if (g.type === 'untracked' ? h == null || h.init(v) : (g.stores[g.store] = i, h == null || h.init(Object.fromEntries(Object.entries(g.stores).map(([p, E]) =>[p, p === g.store ? v : E.getState()])))), i.dispatchFromDevtools && typeof i.dispatch == 'function') { let p = !1; const E = i.dispatch; i.dispatch = (..._) =>{ ({ VITE_API_URL: 'https://disqus.com/api/3.0', VITE_API_KEY: 'E8Uh5l5fHZ6gD8U3KycjAIAk46f68Zw7C6eW8WSjZvCLXebZ7p0r1yrYDrLilk2F', VITE_CONFIG_URL: 'https://disqus.com/next/config.json', BASE_URL: '/', MODE: 'production', DEV: !1, PROD: !0, SSR: !1 } && 'production') !== 'production' && _[0].type === '__setState' && !p && (console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'), p = !0), E(..._) } } return h.subscribe(p=>{ var E; switch (p.type) { case 'ACTION': if (typeof p.payload != 'string') { console.error('[zustand devtools middleware] Unsupported action format'); return } return Wm(p.payload, _=>{ if (_.type === '__setState') { if (u === void 0) { y(_.state); return } Object.keys(_.state).length !== 1 && console.error(` [zustand devtools middleware] Unsupported __setState action format. When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(), and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } } `); const b = _.state[u]; if (b == null) return; JSON.stringify(i.getState()) !== JSON.stringify(b) && y(b); return } i.dispatchFromDevtools && typeof i.dispatch == 'function' && i.dispatch(_) }); case 'DISPATCH': switch (p.payload.type) { case 'RESET': return y(v), u === void 0 ? h == null ? void 0 : h.init(i.getState()) : h == null ? void 0 : h.init(cd(c.name)); case 'COMMIT': if (u === void 0) { h == null || h.init(i.getState()); return } return h == null ? void 0 : h.init(cd(c.name)); case 'ROLLBACK': return Wm(p.state, _=>{ if (u === void 0) { y(_), h == null || h.init(i.getState()); return } y(_[u]), h == null || h.init(cd(c.name)) }); case 'JUMP_TO_STATE': case 'JUMP_TO_ACTION': return Wm(p.state, _=>{ if (u === void 0) { y(_); return } JSON.stringify(i.getState()) !== JSON.stringify(_[u]) && y(_[u]) }); case 'IMPORT_STATE': { const { nextLiftedState: _ } = p.payload, b = (E = _.computedStates.slice( - 1) [0]) == null ? void 0 : E.state; if (!b) return; y(u === void 0 ? b : b[u]), h == null || h.send(null, _); return } case 'PAUSE_RECORDING': return m = !m } return } }), v }, Wm = (e, t) =>{ let n; try { n = JSON.parse(e) } catch (r) { console.error('[zustand devtools middleware] Could not parse the received json', r) } n !== void 0 && t(n) }; function SD(e, t) { let n; try { n = e() } catch { return } return { getItem: i=>{ var o; const a = c=>c === null ? null : JSON.parse(c, t == null ? void 0 : t.reviver), u = (o = n.getItem(i)) != null ? o : null; return u instanceof Promise ? u.then(a) : a(u) }, setItem: (i, o) =>n.setItem(i, JSON.stringify(o, t == null ? void 0 : t.replacer)), removeItem: i=>n.removeItem(i) } } const _l = e=>t=>{ try { const n = e(t); return n instanceof Promise ? n : { then(r) { return _l(r) (n) }, catch (r) { return this } } } catch (n) { return { then(r) { return this }, catch (r) { return _l(r) (n) } } } }, C8 = (e, t) =>(n, r, i) =>{ let o = { getStorage: () =>localStorage, serialize: JSON.stringify, deserialize: JSON.parse, partialize: E=>E, version: 0, merge: (E, _) =>({ ..._, ...E }), ...t }, a = !1; const u = new Set, c = new Set; let f; try { f = o.getStorage() } catch { } if (!f) return e((...E) =>{ console.warn(`[zustand persist middleware] Unable to update item '${ o.name }', the given storage is currently unavailable.`), n(...E) }, r, i); const h = _l(o.serialize), g = () =>{ const E = o.partialize({ ...r() }); let _; const b = h({ state: E, version: o.version }).then(x=>f.setItem(o.name, x)).catch(x=>{ _ = x }); if (_) throw _; return b }, m = i.setState; i.setState = (E, _) =>{ m(E, _), g() }; const y = e((...E) =>{ n(...E), g() }, r, i); let v; const p = () =>{ var E; if (!f) return; a = !1, u.forEach(b=>b(r())); const _ = ((E = o.onRehydrateStorage) == null ? void 0 : E.call(o, r())) || void 0; return _l(f.getItem.bind(f)) (o.name).then(b=>{ if (b) return o.deserialize(b) }).then(b=>{ if (b) if (typeof b.version == 'number' && b.version !== o.version) { if (o.migrate) return o.migrate(b.state, b.version); console.error('State loaded from storage couldn\'t be migrated since no migrate function was provided') } else return b.state }).then(b=>{ var x; return v = o.merge(b, (x = r()) != null ? x : y), n(v, !0), g() }).then(() =>{ _ == null || _(v, void 0), a = !0, c.forEach(b=>b(v)) }).catch(b=>{ _ == null || _(void 0, b) }) }; return i.persist = { setOptions: E=>{ o = { ...o, ...E }, E.getStorage && (f = E.getStorage()) }, clearStorage: () =>{ f == null || f.removeItem(o.name) }, getOptions: () =>o, rehydrate: () =>p(), hasHydrated: () =>a, onHydrate: E=>(u.add(E), () =>{ u.delete(E) }), onFinishHydration: E=>(c.add(E), () =>{ c.delete(E) }) }, p(), v || y }, E8 = (e, t) =>(n, r, i) =>{ let o = { storage: SD(() =>localStorage), partialize: p=>p, version: 0, merge: (p, E) =>({ ...E, ...p }), ...t }, a = !1; const u = new Set, c = new Set; let f = o.storage; if (!f) return e((...p) =>{ console.warn(`[zustand persist middleware] Unable to update item '${ o.name }', the given storage is currently unavailable.`), n(...p) }, r, i); const h = () =>{ const p = o.partialize({ ...r() }); return f.setItem(o.name, { state: p, version: o.version }) }, g = i.setState; i.setState = (p, E) =>{ g(p, E), h() }; const m = e((...p) =>{ n(...p), h() }, r, i); let y; const v = () =>{ var p, E; if (!f) return; a = !1, u.forEach(b=>{ var x; return b((x = r()) != null ? x : m) }); const _ = ((E = o.onRehydrateStorage) == null ? void 0 : E.call(o, (p = r()) != null ? p : m)) || void 0; return _l(f.getItem.bind(f)) (o.name).then(b=>{ if (b) if (typeof b.version == 'number' && b.version !== o.version) { if (o.migrate) return o.migrate(b.state, b.version); console.error('State loaded from storage couldn\'t be migrated since no migrate function was provided') } else return b.state }).then(b=>{ var x; return y = o.merge(b, (x = r()) != null ? x : m), n(y, !0), h() }).then(() =>{ _ == null || _(y, void 0), y = r(), a = !0, c.forEach(b=>b(y)) }).catch(b=>{ _ == null || _(void 0, b) }) }; return i.persist = { setOptions: p=>{ o = { ...o, ...p }, p.storage && (f = p.storage) }, clearStorage: () =>{ f == null || f.removeItem(o.name) }, getOptions: () =>o, rehydrate: () =>v(), hasHydrated: () =>a, onHydrate: p=>(u.add(p), () =>{ u.delete(p) }), onFinishHydration: p=>(c.add(p), () =>{ c.delete(p) }) }, o.skipHydration || v(), y || m }, D8 = (e, t) =>'getStorage' in t || 'serialize' in t || 'deserialize' in t ? (({ VITE_API_URL: 'https://disqus.com/api/3.0', VITE_API_KEY: 'E8Uh5l5fHZ6gD8U3KycjAIAk46f68Zw7C6eW8WSjZvCLXebZ7p0r1yrYDrLilk2F', VITE_CONFIG_URL: 'https://disqus.com/next/config.json', BASE_URL: '/', MODE: 'production', DEV: !1, PROD: !0, SSR: !1 } && 'production') !== 'production' && console.warn('[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead.'), C8(e, t)) : E8(e, t), Vm = { forum: 'forum', posts: 'posts', threadDetails: 'threadDetails', postVoters: 'postVoters', gifSearch: 'gifSearch', mediaDetails: 'mediaDetails', userSuggestions: 'userSuggestions' }, di = e=>{ const t = e; t.use = { }; for (const n of Object.keys(t.getState())) t.use[n] = () =>t(r=>r[n]); return t }, x8 = di(fi() ($i(e=>({ profile: { }, setProfile: t=>e({ profile: t }) })))), zt = 'https://disqus.com/api/3.0', A8 = 'https://uploads.services.disqus.com/api/3.0', fd = { badges: { award: `${ zt }/badges/award`, remove: `${ zt }/badges/remove` }, forum: { details: `${ zt }/forums/details`, banPostAuthor: `${ zt }/forums/block/banPostAuthor.json` }, gifs: { search: `${ zt }/gifs/search` }, media: { create: `${ A8 }/media/create.json`, details: `${ zt }/media/details.json` }, posts: { details: `${ zt }/threads/listPostsThreaded` }, post: { details: `${ zt }/posts/details.json`, highlight: `${ zt }/posts/highlight.json`, spam: `${ zt }/posts/spam.json`, unhighlight: `${ zt }/posts/unhighlight.json`, remove: `${ zt }/posts/remove.json`, report: `${ zt }/posts/report.json`, vote: `${ zt }/posts/vote.json`, voters: `${ zt }/posts/listUsersVotedPost` }, thread: { details: `${ zt }/embed/threadDetails.json` }, users: { block: `${ zt }/users/block/create.json`, follow: `${ zt }/users/follow.json`, unfollow: `${ zt }/users/unfollow.json`, unblock: `${ zt }/users/block/delete.json`, mentions: `${ zt }/mentions/listUsers` } }, S8 = 'https://disqus.com/next/config.json', O8 = () =>Ar.getJson(S8), OD = async e=>{ const { response: t } = await Ar.postFormData(fd.media.create, e); return Object.values(t) [0] }, F8 = async({ forum: e, page: t, query: n }) =>{ const { response: r } = await Ar.get(fd.gifs.search, { forum: e, page: t, query: n }); return r }, B8 = async({ forum: e, url: t }) =>{ const { response: n } = await Ar.postFormData(fd.media.details, { forum: e, url: t }); return n }, k8 = async({ thread: e, query: t = '', cursor: n = '' }) =>await Ar.get(fd.users.mentions, { thread: e, query: t, cursor: n, limit: 5 }); var FD = (e=>(e[e.AUTH_REQUIRED = 4] = 'AUTH_REQUIRED', e[e.OBJ_NOT_FOUND = 8] = 'OBJ_NOT_FOUND', e[e.MAX_ITEMS_REACHED = 24] = 'MAX_ITEMS_REACHED', e)) (FD || { }), BD = Symbol.for('immer-nothing'), kD = Symbol.for('immer-draftable'), nr = Symbol.for('immer-state'); function Qr(e, ...t) { throw new Error(`[Immer] minified error nr: ${ e }. Full error at: https://bit.ly/3cXEKWf`) } var ka = Object.getPrototypeOf; function Pa(e) { return !!e && !!e[nr] } function gs(e) { var t; return e ? PD(e) || Array.isArray(e) || !!e[kD] || !!((t = e.constructor) != null && t[kD]) || hd(e) || pd(e) : !1 } var P8 = Object.prototype.constructor.toString(); function PD(e) { if (!e || typeof e != 'object') return !1; const t = ka(e); if (t === null) return !0; const n = Object.hasOwnProperty.call(t, 'constructor') && t.constructor; return n === Object ? !0 : typeof n == 'function' && Function.toString.call(n) === P8 } function Cl(e, t) { dd(e) === 0 ? Object.entries(e).forEach(([n, r]) =>{ t(n, r, e) }) : e.forEach((n, r) =>t(r, n, e)) } function dd(e) { const t = e[nr]; return t ? t.type_ : Array.isArray(e) ? 1 : hd(e) ? 2 : pd(e) ? 3 : 0 } function Km(e, t) { return dd(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t) } function RD(e, t, n) { const r = dd(e); r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n } function R8(e, t) { return e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t } function hd(e) { return e instanceof Map } function pd(e) { return e instanceof Set } function ms(e) { return e.copy_ || e.base_ } function qm(e, t) { if (hd(e)) return new Map(e); if (pd(e)) return new Set(e); if (Array.isArray(e)) return Array.prototype.slice.call(e); if (!t && PD(e)) return ka(e) ? { ...e } : Object.assign(Object.create(null), e); const n = Object.getOwnPropertyDescriptors(e); delete n[nr]; let r = Reflect.ownKeys(n); for (let i = 0; i < r.length; i++) { const o = r[i], a = n[o]; a.writable === !1 && (a.writable = !0, a.configurable = !0), (a.get || a.set) && (n[o] = { configurable: !0, writable: !0, enumerable: a.enumerable, value: e[o] }) } return Object.create(ka(e), n) } function Gm(e, t = !1) { return gd(e) || Pa(e) || !gs(e) || (dd(e) > 1 && (e.set = e.add = e.clear = e.delete = T8), Object.freeze(e), t && Cl(e, (n, r) =>Gm(r, !0))), e } function T8() { Qr(2) } function gd(e) { return Object.isFrozen(e) } var I8 = { }; function vs(e) { const t = I8[e]; return t || Qr(0, e), t } var El; function TD() { return El } function N8(e, t) { return { drafts_: [ ], parent_: e, immer_: t, canAutoFreeze_: !0, unfinalizedDrafts_: 0 } } function ID(e, t) { t && (vs('Patches'), e.patches_ = [ ], e.inversePatches_ = [ ], e.patchListener_ = t) } function Qm(e) { Ym(e), e.drafts_.forEach(L8), e.drafts_ = null } function Ym(e) { e === El && (El = e.parent_) } function ND(e) { return El = N8(El, e) } function L8(e) { const t = e[nr]; t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0 } function LD(e, t) { t.unfinalizedDrafts_ = t.drafts_.length; const n = t.drafts_[0]; return e !== void 0 && e !== n ? (n[nr].modified_ && (Qm(t), Qr(4)), gs(e) && (e = md(t, e), t.parent_ || vd(t, e)), t.patches_ && vs('Patches').generateReplacementPatches_(n[nr].base_, e, t.patches_, t.inversePatches_)) : e = md(t, n, [ ]), Qm(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== BD ? e : void 0 } function md(e, t, n) { if (gd(t)) return t; const r = t[nr]; if (!r) return Cl(t, (i, o) =>MD(e, r, t, i, o, n)), t; if (r.scope_ !== e) return t; if (!r.modified_) return vd(e, r.base_, !0), r.base_; if (!r.finalized_) { r.finalized_ = !0, r.scope_.unfinalizedDrafts_--; const i = r.copy_; let o = i, a = !1; r.type_ === 3 && (o = new Set(i), i.clear(), a = !0), Cl(o, (u, c) =>MD(e, r, i, u, c, n, a)), vd(e, i, !1), n && e.patches_ && vs('Patches').generatePatches_(r, n, e.patches_, e.inversePatches_) } return r.copy_ } function MD(e, t, n, r, i, o, a) { if (Pa(i)) { const u = o && t && t.type_ !== 3 && !Km(t.assigned_, r) ? o.concat(r) : void 0, c = md(e, i, u); if (RD(n, r, c), Pa(c)) e.canAutoFreeze_ = !1; else return } else a && n.add(i); if (gs(i) && !gd(i)) { if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1) return; md(e, i), (!t || !t.scope_.parent_) && vd(e, i) } } function vd(e, t, n = !1) { !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && Gm(t, n) } function M8(e, t) { const n = Array.isArray(e), r = { type_: n ? 1 : 0, scope_: t ? t.scope_ : TD(), modified_: !1, finalized_: !1, assigned_: { }, parent_: t, base_: e, draft_: null, copy_: null, revoke_: null, isManual_: !1 }; let i = r, o = Jm; n && (i = [ r ], o = Dl); const { revoke: a, proxy: u } = Proxy.revocable(i, o); return r.draft_ = u, r.revoke_ = a, u } var Jm = { get(e, t) { if (t === nr) return e; const n = ms(e); if (!Km(n, t)) return $8(e, n, t); const r = n[t]; return e.finalized_ || !gs(r) ? r : r === Xm(e.base_, t) ? (ev(e), e.copy_[t] = tv(r, e)) : r }, has(e, t) { return t in ms(e) }, ownKeys(e) { return Reflect.ownKeys(ms(e)) }, set(e, t, n) { const r = $D(ms(e), t); if (r != null && r.set) return r.set.call(e.draft_, n), !0; if (!e.modified_) { const i = Xm(ms(e), t), o = i == null ? void 0 : i[nr]; if (o && o.base_ === n) return e.copy_[t] = n, e.assigned_[t] = !1, !0; if (R8(n, i) && (n !== void 0 || Km(e.base_, t))) return !0; ev(e), Zm(e) } return e.copy_[t] === n && (n !== void 0 || t in e.copy_) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) || (e.copy_[t] = n, e.assigned_[t] = !0), !0 }, deleteProperty(e, t) { return Xm(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, ev(e), Zm(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0 }, getOwnPropertyDescriptor(e, t) { const n = ms(e), r = Reflect.getOwnPropertyDescriptor(n, t); return r && { writable: !0, configurable: e.type_ !== 1 || t !== 'length', enumerable: r.enumerable, value: n[t] } }, defineProperty() { Qr(11) }, getPrototypeOf(e) { return ka(e.base_) }, setPrototypeOf() { Qr(12) } }, Dl = { }; Cl(Jm, (e, t) =>{ Dl[e] = function () { return arguments[0] = arguments[0][0], t.apply(this, arguments) } }), Dl.deleteProperty = function (e, t) { return Dl.set.call(this, e, t, void 0) }, Dl.set = function (e, t, n) { return Jm.set.call(this, e[0], t, n, e[0]) }; function Xm(e, t) { const n = e[nr]; return (n ? ms(n) : e) [t] } function $8(e, t, n) { var i; const r = $D(t, n); return r ? 'value' in r ? r.value : (i = r.get) == null ? void 0 : i.call(e.draft_) : void 0 } function $D(e, t) { if (!(t in e)) return; let n = ka(e); for (; n; ) { const r = Object.getOwnPropertyDescriptor(n, t); if (r) return r; n = ka(n) } } function Zm(e) { e.modified_ || (e.modified_ = !0, e.parent_ && Zm(e.parent_)) } function ev(e) { e.copy_ || (e.copy_ = qm(e.base_, e.scope_.immer_.useStrictShallowCopy_)) } var j8 = class { constructor(t) { this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.produce = (n, r, i) =>{ if (typeof n == 'function' && typeof r != 'function') { const a = r; r = n; const u = this; return function (f = a, ...h) { return u.produce(f, g=>r.call(this, g, ...h)) } } typeof r != 'function' && Qr(6), i !== void 0 && typeof i != 'function' && Qr(7); let o; if (gs(n)) { const a = ND(this), u = tv(n, void 0); let c = !0; try { o = r(u), c = !1 } finally { c ? Qm(a) : Ym(a) } return ID(a, i), LD(o, a) } else if (!n || typeof n != 'object') { if (o = r(n), o === void 0 && (o = n), o === BD && (o = void 0), this.autoFreeze_ && Gm(o, !0), i) { const a = [ ], u = [ ]; vs('Patches').generateReplacementPatches_(n, o, a, u), i(a, u) } return o } else Qr(1, n) }, this.produceWithPatches = (n, r) =>{ if (typeof n == 'function') return (u, ...c) =>this.produceWithPatches(u, f=>n(f, ...c)); let i, o; return [this.produce(n, r, (u, c) =>{ i = u, o = c }), i, o] }, typeof (t == null ? void 0 : t.autoFreeze) == 'boolean' && this.setAutoFreeze(t.autoFreeze), typeof (t == null ? void 0 : t.useStrictShallowCopy) == 'boolean' && this.setUseStrictShallowCopy(t.useStrictShallowCopy) } createDraft(t) { gs(t) || Qr(8), Pa(t) && (t = z8(t)); const n = ND(this), r = tv(t, void 0); return r[nr].isManual_ = !0, Ym(n), r } finishDraft(t, n) { const r = t && t[nr]; (!r || !r.isManual_) && Qr(9); const { scope_: i } = r; return ID(i, n), LD(void 0, i) } setAutoFreeze(t) { this.autoFreeze_ = t } setUseStrictShallowCopy(t) { this.useStrictShallowCopy_ = t } applyPatches(t, n) { let r; for (r = n.length - 1; r >= 0; r--) { const o = n[r]; if (o.path.length === 0 && o.op === 'replace') { t = o.value; break } } r > - 1 && (n = n.slice(r + 1)); const i = vs('Patches').applyPatches_; return Pa(t) ? i(t, n) : this.produce(t, o=>i(o, n)) } }; function tv(e, t) { const n = hd(e) ? vs('MapSet').proxyMap_(e, t) : pd(e) ? vs('MapSet').proxySet_(e, t) : M8(e, t); return (t ? t.scope_ : TD()).drafts_.push(n), n } function z8(e) { return Pa(e) || Qr(10, e), jD(e) } function jD(e) { if (!gs(e) || gd(e)) return e; const t = e[nr]; let n; if (t) { if (!t.modified_) return t.base_; t.finalized_ = !0, n = qm(e, t.scope_.immer_.useStrictShallowCopy_) } else n = qm(e, !0); return Cl(n, (r, i) =>{ RD(n, r, jD(i)) }), t && (t.finalized_ = !1), n } var rr = new j8, bt = rr.produce; rr.produceWithPatches.bind(rr), rr.setAutoFreeze.bind(rr), rr.setUseStrictShallowCopy.bind(rr), rr.applyPatches.bind(rr), rr.createDraft.bind(rr), rr.finishDraft.bind(rr); const nv = e=>(t, n, r) =>(r.setState = (i, o, ...a) =>{ const u = typeof i == 'function' ? bt(i) : i; return t(u, o, ...a) }, e(r.setState, n, r)), U8 = 'disqus.collapse-media', zD = 'disqus.thread', H8 = e=>({ banlist: { }, setBanlist: t=>e(bt(n=>{ n.banlist[t] = !0 })), resetBanlist: t=>e(bt(n=>{ delete n.banlist[t] })) }), W8 = e=>({ collapsed: { }, setCollapsed: t=>e(bt(n=>{ n.collapsed[t] = !0 })), setExpanded: t=>e(bt(n=>{ n.collapsed[t] = !1 })) }), V8 = () =>tr.getItem(zD) ? !1 : !!tr.getItem(U8), K8 = e=>({ collapseMedia: V8(), setCollapseMedia: t=>e(bt(n=>{ n.collapseMedia = t })) }), q8 = e=>({ flagged: { }, flagging: { }, setFlagged: t=>e(bt(n=>{ n.flagged[t] = !0 })), setFlagging: t=>e(bt(n=>{ n.flagging[t] = !0 })), resetFlagging: t=>e(bt(n=>{ delete n.flagging[t] })) }), G8 = e=>({ setHighlightedPost: t=>e(bt(n=>{ n.thread.highlightedPost = t })) }), Q8 = e=>({ manageBadges: { }, setManageBadges: t=>e(bt(n=>{ n.manageBadges[t] = !0 })), resetManageBadges: t=>e(bt(n=>{ delete n.manageBadges[t] })) }), Y8 = e=>{ var t; return { users: ((t = Sa('threadData')) == null ? void 0 : t.response.posts.reduce((n, r) =>(r.author.id && (n[r.author.id] = r.author), n), { })) ?? { }, addUser: n=>e(bt(r=>{ n.id && !r.users[n.id] && (r.users[n.id] = n) })), awardBadge: (n, r) =>e(bt(i=>{ var o; i.users[n].badges || (i.users[n].badges = [ ]), (o = i.users[n].badges) == null || o.push(String(r)) })), removeBadge: (n, r) =>e(bt(i=>{ var o, a; (o = i.users) != null && o[n].badges && (i.users[n].badges = (a = i.users[n].badges) == null ? void 0 : a.filter(u=>u !== String(r))) })), setUsers: n=>e(bt(r=>{ n.forEach(i=>{ i.id && !r.users[i.id] && (r.users[i.id] = i) }) })), updateUser: (n, r) =>e(bt(i=>{ i.users[n] = { ...i.users[n], ...r } })) } }, J8 = ((RF = Sa('threadData')) == null ? void 0 : RF.response.thread) ?? { }, X8 = fi() ($i(D8(nv((...e) =>({ thread: J8, ...W8(...e), ...K8(...e), ...q8(...e), ...G8(...e), ...H8(...e), ...Q8(...e), ...Y8(...e) })), { name: zD, partialize: e=>({ collapseMedia: e.collapseMedia }), storage: SD(() =>tr.backend) }))); di(X8), (TF = Sa('forumData')) == null || TF.forum; function Z8(e, t) { if (Object.is(e, t)) return !0; if (typeof e != 'object' || e === null || typeof t != 'object' || t === null) return !1; if (e instanceof Map && t instanceof Map) { if (e.size !== t.size) return !1; for (const [r, i]of e) if (!Object.is(i, t.get(r))) return !1; return !0 } if (e instanceof Set && t instanceof Set) { if (e.size !== t.size) return !1; for (const r of e) if (!t.has(r)) return !1; return !0 } const n = Object.keys(e); if (n.length !== Object.keys(t).length) return !1; for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !Object.is(e[n[r]], t[n[r]])) return !1; return !0 } const UD = (e, t, n) =>{ const r = new Set; return (i, o, a) =>{ const u = (n == null ? void 0 : n.equalityFn) ?? Z8; n != null && n.keys && n.keys.forEach(p=>r.add(p)); const c = (n == null ? void 0 : n.disableProxy) !== !0 || !!(n != null && n.keys), f = (n == null ? void 0 : n.disableProxy) !== !0 && !(n != null && n.keys), h = v=>{ const p = new Proxy({ ...v }, { get: (_, b) =>(r.add(b), v[b]) }), E = t(f ? p : { ...v }); for (const _ of Object.keys(E)) u(E[_], v[_]) && (E[_] = v[_]); return { ...v, ...E } }, g = (v, p) =>{ i(E=>{ const _ = typeof v == 'object' ? v : v(E); return c && r.size !== 0 && !Object.keys(_).some(b=>r.has(b)) ? { ...E, ..._ } : h({ ...E, ..._ }) }, p) }, m = a; m.setState = g; const y = e(g, o, m); return Object.assign({ }, y, t(y)) } }, e6 = di(fi() ($i(e=>{ var t; return { session: ((t = Sa('forumData')) == null ? void 0 : t.session) || { }, setSession: n=>e(r=>({ session: { ...r.session, ...n } })) } }))), t6 = e=>{ const { session: { canModerate: t } } = e6.getState(); return { blockingList: [ ...new Set([...e.blockedUsers, ...t ? [ ] : e.blockingUsers]) ] } }, n6 = fi() ($i(UD(nv(e=>({ blockedUsers: [ ], blockingUsers: [ ], blockUser: t=>e(bt(n=>{ n.blockedUsers.push(t) })), unblockUser: t=>e(bt(n=>{ n.blockedUsers = n.blockedUsers.filter(r=>r !== t) })), setBlockedUsers: t=>e(bt(n=>{ n.blockedUsers = t })), setBlockingUsers: t=>e(bt(n=>{ n.blockingUsers = t })) })), t6))); di(n6), di(fi() ($i(e=>({ followingUsers: [ ], setFollowingUsers: t=>e({ followingUsers: t }) })))); const HD = ({ forum: e, url: t }) =>{ const n = [ Vm.mediaDetails, e, t ]; return _R({ enabled: !!(e && t), queryKey: n, refetchOnWindowFocus: !1, retry: !1, queryFn: () =>B8({ forum: e, url: t }) }) }, WD = { 'invalid-image-file': 'Unfortunately your image upload failed. Please verify that the file is valid and in a supported format (JPEG, PNG, or GIF).', 'invalid-content-type': 'Unfortunately your image upload failed. Please verify that the file is in a supported format (JPEG, PNG, or GIF).', 'file-invalid-type': 'Unfortunately your image upload failed. Please verify that the file is in a supported format (JPEG, PNG, or GIF).', 'file-too-large': 'Unfortunately your image upload failed. Please verify that your image is under 5MB.', 'not-authenticated': 'You must be logged in to upload an image.', default: 'Unfortunately your image upload failed. Please verify that your image is in a supported format (JPEG, PNG, or GIF) and under 5MB. If you continue seeing this error, please try again later.' }, yd = (e = 'default') =>WD[e] || WD.default, r6 = () =>{ const e = CR({ mutationFn: n=>OD(n), onError: n=>{ if (n instanceof jE) throw n.code === FD.AUTH_REQUIRED ? new Error(yd(IE.NOT_AUTHENTICATED)) : new Error(n.message) }, onSuccess: n=>{ if (!n.ok) throw new Error(yd(n['error-code'])); return n } }); return { uploadFile: n=>{ const r = new FormData; return r.append('upload', n), r.append('permanent', '1'), e.mutateAsync(r) } } }, i6 = e=>({ postsTree: zR(e.posts) }); di(fi() ($i(UD(nv((e, t) =>{ var n, r; return { posts: ((n = Sa('threadData')) == null ? void 0 : n.response.posts) ?? [], addPosts: i=>e(bt(o=>{ o.posts.push(...i) })), cropPosts: i=>{ e(bt(o=>{ o.posts.splice(i) })) }, getPost: i=>t().posts.find(o=>o.id === i), updatePost: (i, o) =>{ const a = t().posts.findIndex(u=>u.id === i); a !== - 1 && e(bt(u=>{ u.posts[a] = { ...u.posts[a], ...o } })) }, hasNext: ((r = Sa('threadData')) == null ? void 0 : r.cursor.hasNext) ?? !1, setHasNext: i=>e(o=>{ o.hasNext = i }), offset: 0, setOffset: i=>e(o=>{ o.offset = i }) } }), i6)))); const o6 = (e, t = { }) =>n8(e) ? e : e ? Object.keys(e).some(n=>{ var o; const r = e[n], i = t[n]; if (/percent$/.test(n) && wD(r)) { if (wD(i)) return r > i; if (typeof i == 'string' && typeof r == 'number') { const a = r !== Math.round(r) ? ((o = r.toString().split('.').pop()) == null ? void 0 : o.length) ?? 0 : 0; return r > $E.getPercentBucketForString(i, a) } return !1 } return Array.isArray(r) ? r.includes(i) : r === i }) : !1, s6 = 'switch:', a6 = e=>`${ s6 }${ e }`, u6 = fi() ($i((e, t) =>({ overrides: { }, switches: { }, fetch: async() =>{ const n = await O8(); e(() =>({ switches: n.lounge.switches })) }, disableFeature: n=>e(r=>({ overrides: { ...r.overrides, [ n ]: !1 } })), forceFeature: n=>e(r=>({ overrides: { ...r.overrides, [ n ]: !0 } })), resetFeature: n=>e(r=>({ overrides: { ...r.overrides, [ n ]: null } })), getSwitchContext: n=>{ const r = tr.getItem(a6(n)); if (r !== null) return r; const i = t().overrides[n]; return i ?? t().switches[n] }, isFeatureActive: (n, r = { }) =>{ const i = x8.use.profile(), a = { ...{ ...i != null && i.id ? { user_id: i.id } : { }, ...i != null && i.username ? { username: i.username } : { }, is_staff: !!(i != null && i.isGlobalAdmin), percent: $E.clientPercent }, ...r }; return o6(t().getSwitchContext(n), a) } }))), VD = di(u6); di(fi() ($i(e=>({ votes: { }, setVotes: t=>e(n=>({ votes: { ...n.votes, ...t } })) })))); const l6 = fi() ($i(e=>({ config: { }, init() { var i; const t = (i = window.embedv2) == null ? void 0 : i.embedConfig; if (!t) return; const { experiment: n, variant: r } = t.experiment || { }; t.forceSwitch && VD.getState().forceFeature(t.forceSwitch), n && r && VD.getState().forceFeature(`experiment:${ n }:${ r }`), t.apiKey && typeof t.apiKey == 'string' && t.remoteAuthS3 && typeof t.remoteAuthS3 == 'string' && Ar.setDefaultHeaders({ 'X-Disqus-Publisher-API-Key': t.apiKey, 'X-Disqus-Remote-Auth': t.remoteAuthS3 }), e(() =>({ config: t })) } }))), c6 = di(l6); function f6() { if (console && console.warn) { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; typeof t[0] == 'string' && (t[0] = `react-i18next:: ${ t[0] }`), console.warn(...t) } } const KD = { }; function rv() { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; typeof t[0] == 'string' && KD[t[0]] || (typeof t[0] == 'string' && (KD[t[0]] = new Date), f6(...t)) } const qD = (e, t) =>() =>{ if (e.isInitialized) t(); else { const n = () =>{ setTimeout(() =>{ e.off('initialized', n) }, 0), t() }; e.on('initialized', n) } }; function GD(e, t, n) { e.loadNamespaces(t, qD(e, n)) } function QD(e, t, n, r) { typeof n == 'string' && (n = [ n ]), n.forEach(i=>{ e.options.ns.indexOf(i) < 0 && e.options.ns.push(i) }), e.loadLanguages(t, qD(e, r)) } function d6(e, t) { let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { }; const r = t.languages[0], i = t.options ? t.options.fallbackLng : !1, o = t.languages[t.languages.length - 1]; if (r.toLowerCase() === 'cimode') return !0; const a = (u, c) =>{ const f = t.services.backendConnector.state[`${ u }|${ c }`]; return f === - 1 || f === 2 }; return n.bindI18n && n.bindI18n.indexOf('languageChanging') > - 1 && t.services.backendConnector.backend && t.isLanguageChangingTo && !a(t.isLanguageChangingTo, e) ? !1 : !!(t.hasResourceBundle(r, e) || !t.services.backendConnector.backend || t.options.resources && !t.options.partialBundledLanguages || a(r, e) && (!i || a(o, e))) } function h6(e, t) { let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { }; return !t.languages || !t.languages.length ? (rv('i18n.languages were undefined or empty', t.languages), !0) : t.options.ignoreJSONStructure !== void 0 ? t.hasLoadedNamespace(e, { lng: n.lng, precheck: (i, o) =>{ if (n.bindI18n && n.bindI18n.indexOf('languageChanging') > - 1 && i.services.backendConnector.backend && i.isLanguageChangingTo && !o(i.isLanguageChangingTo, e)) return !1 } }) : d6(e, t, n) } const p6 = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, g6 = { '&': '&', '&': '&', '<': '<', '<': '<', '>': '>', '>': '>', ''': '\'', ''': '\'', '"': '"', '"': '"', ' ': ' ', ' ': ' ', '©': '©', '©': '©', '®': '®', '®': '®', '…': '…', '…': '…', '/': '/', '/': '/' }, m6 = e=>g6[e]; let iv = { bindI18n: 'languageChanged', bindI18nStore: '', transEmptyNodeValue: '', transSupportBasicHtmlNodes: !0, transWrapTextNodes: '', transKeepBasicHtmlNodesFor: [ 'br', 'strong', 'i', 'p' ], useSuspense: !0, unescape: e=>e.replace(p6, m6) }; function v6() { let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : { }; iv = { ...iv, ...e } } function y6() { return iv } let YD; function w6(e) { YD = e } function b6() { return YD } const _6 = { type: '3rdParty', init(e) { v6(e.options.react), w6(e) } }, C6 = D.createContext(); class E6 { constructor() { this.usedNamespaces = { } } addUsedNamespaces(t) { t.forEach(n=>{ this.usedNamespaces[n] || (this.usedNamespaces[n] = !0) }) } getUsedNamespaces() { return Object.keys(this.usedNamespaces) } } const D6 = (e, t) =>{ const n = D.useRef(); return D.useEffect(() =>{ n.current = t ? n.current : e }, [ e, t ]), n.current }; function JD(e, t, n, r) { return e.getFixedT(t, n, r) } function x6(e, t, n, r) { return D.useCallback(JD(e, t, n, r), [ e, t, n, r ]) } function zn(e) { let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }; const { i18n: n } = t, { i18n: r, defaultNS: i } = D.useContext(C6) || { }, o = n || r || b6(); if (o && !o.reportNamespaces && (o.reportNamespaces = new E6), !o) { rv('You will need to pass in an i18next instance by using initReactI18next'); const O = (k, P) =>typeof P == 'string' ? P : P && typeof P == 'object' && typeof P.defaultValue == 'string' ? P.defaultValue : Array.isArray(k) ? k[k.length - 1] : k, B = [ O, { }, !1 ]; return B.t = O, B.i18n = { }, B.ready = !1, B } o.options.react && o.options.react.wait !== void 0 && rv('It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.'); const a = { ...y6(), ...o.options.react, ...t }, { useSuspense: u, keyPrefix: c } = a; let f = e || i || o.options && o.options.defaultNS; f = typeof f == 'string' ? [ f ] : f || [ 'translation' ], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(f); const h = (o.isInitialized || o.initializedStoreOnce) && f.every(O=>h6(O, o, a)), g = x6(o, t.lng || null, a.nsMode === 'fallback' ? f : f[0], c), m = () =>g, y = () =>JD(o, t.lng || null, a.nsMode === 'fallback' ? f : f[0], c), [ v, p ] = D.useState(m); let E = f.join(); t.lng && (E = `${ t.lng }${ E }`); const _ = D6(E), b = D.useRef(!0); D.useEffect(() =>{ const { bindI18n: O, bindI18nStore: B } = a; b.current = !0, !h && !u && (t.lng ? QD(o, t.lng, f, () =>{ b.current && p(y) }) : GD(o, f, () =>{ b.current && p(y) })), h && _ && _ !== E && b.current && p(y); function k() { b.current && p(y) } return O && o && o.on(O, k), B && o && o.store.on(B, k), () =>{ b.current = !1, O && o && O.split(' ').forEach(P=>o.off(P, k)), B && o && B.split(' ').forEach(P=>o.store.off(P, k)) } }, [ o, E ]), D.useEffect(() =>{ b.current && h && p(m) }, [ o, c, h ]); const x = [ v, o, h ]; if (x.t = v, x.i18n = o, x.ready = h, h || !h && !u) return x; throw new Promise(O=>{ t.lng ? QD(o, t.lng, f, () =>O()) : GD(o, f, () =>O()) }) } var A6 = F6, XD = '֑-߿יִ-﷽ﹰ-ﻼ', ZD = 'A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--', S6 = new RegExp('^[^' + ZD + ']*[' + XD + ']'), O6 = new RegExp('^[^' + XD + ']*[' + ZD + ']'); function F6(e) { return e = String(e || ''), S6.test(e) ? 'rtl' : O6.test(e) ? 'ltr' : 'neutral' } const ex = vr(A6); function B6(e) { var t = typeof e; return e != null && (t == 'object' || t == 'function') } var Ra = B6, k6 = typeof Gt == 'object' && Gt && Gt.Object === Object && Gt, tx = k6, P6 = tx, R6 = typeof self == 'object' && self && self.Object === Object && self, T6 = P6 || R6 || Function('return this') (), hi = T6, I6 = hi, N6 = function () { return I6.Date.now() }, L6 = N6, M6 = /\s/; function $6(e) { for (var t = e.length; t-- && M6.test(e.charAt(t)); ); return t } var j6 = $6, z6 = j6, U6 = /^\s+/; function H6(e) { return e && e.slice(0, z6(e) + 1).replace(U6, '') } var W6 = H6, V6 = hi, K6 = V6.Symbol, wd = K6, nx = wd, rx = Object.prototype, q6 = rx.hasOwnProperty, G6 = rx.toString, xl = nx ? nx.toStringTag : void 0; function Q6(e) { var t = q6.call(e, xl), n = e[xl]; try { e[xl] = void 0; var r = !0 } catch { } var i = G6.call(e); return r && (t ? e[xl] = n : delete e[xl]), i } var Y6 = Q6, J6 = Object.prototype, X6 = J6.toString; function Z6(e) { return X6.call(e) } var eI = Z6, ix = wd, tI = Y6, nI = eI, rI = '[object Null]', iI = '[object Undefined]', ox = ix ? ix.toStringTag : void 0; function oI(e) { return e == null ? e === void 0 ? iI : rI : ox && ox in Object(e) ? tI(e) : nI(e) } var Al = oI; function sI(e) { return e != null && typeof e == 'object' } var Sl = sI, aI = Al, uI = Sl, lI = '[object Symbol]'; function cI(e) { return typeof e == 'symbol' || uI(e) && aI(e) == lI } var bd = cI, fI = W6, sx = Ra, dI = bd, ax = 0 / 0, hI = /^[-+]0x[0-9a-f]+$/i, pI = /^0b[01]+$/i, gI = /^0o[0-7]+$/i, mI = parseInt; function vI(e) { if (typeof e == 'number') return e; if (dI(e)) return ax; if (sx(e)) { var t = typeof e.valueOf == 'function' ? e.valueOf() : e; e = sx(t) ? t + '' : t } if (typeof e != 'string') return e === 0 ? e : + e; e = fI(e); var n = pI.test(e); return n || gI.test(e) ? mI(e.slice(2), n ? 2 : 8) : hI.test(e) ? ax : + e } var yI = vI, wI = Ra, ov = L6, ux = yI, bI = 'Expected a function', _I = Math.max, CI = Math.min; function EI(e, t, n) { var r, i, o, a, u, c, f = 0, h = !1, g = !1, m = !0; if (typeof e != 'function') throw new TypeError(bI); t = ux(t) || 0, wI(n) && (h = !!n.leading, g = 'maxWait' in n, o = g ? _I(ux(n.maxWait) || 0, t) : o, m = 'trailing' in n ? !!n.trailing : m); function y(k) { var P = r, I = i; return r = i = void 0, f = k, a = e.apply(I, P), a } function v(k) { return f = k, u = setTimeout(_, t), h ? y(k) : a } function p(k) { var P = k - c, I = k - f, Y = t - P; return g ? CI(Y, o - I) : Y } function E(k) { var P = k - c, I = k - f; return c === void 0 || P >= t || P < 0 || g && I >= o } function _() { var k = ov(); if (E(k)) return b(k); u = setTimeout(_, p(k)) } function b(k) { return u = void 0, m && r ? y(k) : (r = i = void 0, a) } function x() { u !== void 0 && clearTimeout(u), f = 0, r = c = i = u = void 0 } function O() { return u === void 0 ? a : b(ov()) } function B() { var k = ov(), P = E(k); if (r = arguments, i = this, c = k, P) { if (u === void 0) return v(c); if (g) return clearTimeout(u), u = setTimeout(_, t), y(c) } return u === void 0 && (u = setTimeout(_, t)), a } return B.cancel = x, B.flush = O, B } var lx = EI; const DI = vr(lx); var xI = lx, AI = Ra, SI = 'Expected a function'; function OI(e, t, n) { var r = !0, i = !0; if (typeof e != 'function') throw new TypeError(SI); return AI(n) && (r = 'leading' in n ? !!n.leading : r, i = 'trailing' in n ? !!n.trailing : i), xI(e, t, { leading: r, maxWait: t, trailing: i }) } var FI = OI; const BI = vr(FI), cx = e=>typeof e == 'object' && e != null && e.nodeType === 1, fx = (e, t) =>(!t || e !== 'hidden') && e !== 'visible' && e !== 'clip', sv = (e, t) =>{ if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) { const n = getComputedStyle(e, null); return fx(n.overflowY, t) || fx(n.overflowX, t) || (r=>{ const i = (o=>{ if (!o.ownerDocument || !o.ownerDocument.defaultView) return null; try { return o.ownerDocument.defaultView.frameElement } catch { return null } }) (r); return !!i && (i.clientHeight < r.scrollHeight || i.clientWidth < r.scrollWidth) }) (e) } return !1 }, _d = (e, t, n, r, i, o, a, u) =>o < e && a > t || o > e && a < t ? 0 : o <= e && u <= n || a >= t && u >= n ? o - e - r : a > t && u < n || o < e && u > n ? a - t + i : 0, kI = e=>{ const t = e.parentElement; return t ?? (e.getRootNode().host || null) }, dx = (e, t) =>{ var n, r, i, o; if (typeof document > 'u') return []; const { scrollMode: a, block: u, inline: c, boundary: f, skipOverflowHiddenElements: h } = t, g = typeof f == 'function' ? f : se=>se !== f; if (!cx(e)) throw new TypeError('Invalid target'); const m = document.scrollingElement || document.documentElement, y = [ ]; let v = e; for (; cx(v) && g(v); ) { if (v = kI(v), v === m) { y.push(v); break } v != null && v === document.body && sv(v) && !sv(document.documentElement) || v != null && sv(v, h) && y.push(v) } const p = (r = (n = window.visualViewport) == null ? void 0 : n.width) != null ? r : innerWidth, E = (o = (i = window.visualViewport) == null ? void 0 : i.height) != null ? o : innerHeight, { scrollX: _, scrollY: b } = window, { height: x, width: O, top: B, right: k, bottom: P, left: I } = e.getBoundingClientRect(), { top: Y, right: j, bottom: X, left: $ } = (se=>{ const re = window.getComputedStyle(se); return { top: parseFloat(re.scrollMarginTop) || 0, right: parseFloat(re.scrollMarginRight) || 0, bottom: parseFloat(re.scrollMarginBottom) || 0, left: parseFloat(re.scrollMarginLeft) || 0 } }) (e); let U = u === 'start' || u === 'nearest' ? B - Y : u === 'end' ? P + X : B + x / 2 - Y + X, T = c === 'center' ? I + O / 2 - $ + j : c === 'end' ? k + j : I - $; const G = [ ]; for (let se = 0; se < y.length; se++) { const re = y[se], { height: V, width: te, top: le, right: ce, bottom: ye, left: De } = re.getBoundingClientRect(); if (a === 'if-needed' && B >= 0 && I >= 0 && P <= E && k <= p && B >= le && P <= ye && I >= De && k <= ce) return G; const Ce = getComputedStyle(re), L = parseInt(Ce.borderLeftWidth, 10), ne = parseInt(Ce.borderTopWidth, 10), J = parseInt(Ce.borderRightWidth, 10), Q = parseInt(Ce.borderBottomWidth, 10); let ge = 0, he = 0; const Pe = 'offsetWidth' in re ? re.offsetWidth - re.clientWidth - L - J : 0, me = 'offsetHeight' in re ? re.offsetHeight - re.clientHeight - ne - Q : 0, Fe = 'offsetWidth' in re ? re.offsetWidth === 0 ? 0 : te / re.offsetWidth : 0, Se = 'offsetHeight' in re ? re.offsetHeight === 0 ? 0 : V / re.offsetHeight : 0; if (m === re) ge = u === 'start' ? U : u === 'end' ? U - E : u === 'nearest' ? _d(b, b + E, E, ne, Q, b + U, b + U + x, x) : U - E / 2, he = c === 'start' ? T : c === 'center' ? T - p / 2 : c === 'end' ? T - p : _d(_, _ + p, p, L, J, _ + T, _ + T + O, O), ge = Math.max(0, ge + b), he = Math.max(0, he + _); else { ge = u === 'start' ? U - le - ne : u === 'end' ? U - ye + Q + me : u === 'nearest' ? _d(le, ye, V, ne, Q + me, U, U + x, x) : U - (le + V / 2) + me / 2, he = c === 'start' ? T - De - L : c === 'center' ? T - (De + te / 2) + Pe / 2 : c === 'end' ? T - ce + J + Pe : _d(De, ce, te, L, J + Pe, T, T + O, O); const { scrollLeft: Re, scrollTop: Be } = re; ge = Se === 0 ? 0 : Math.max(0, Math.min(Be + ge / Se, re.scrollHeight - V / Se + me)), he = Fe === 0 ? 0 : Math.max(0, Math.min(Re + he / Fe, re.scrollWidth - te / Fe + Pe)), U += Be - ge, T += Re - he } G.push({ el: re, top: ge, left: he }) } return G }, PI = e=>e === !1 ? { block: 'end', inline: 'nearest' } : (t=>t === Object(t) && Object.keys(t).length !== 0) (e) ? e : { block: 'start', inline: 'nearest' }; function RI(e, t) { if (!e.isConnected || !(i=>{ let o = i; for (; o && o.parentNode; ) { if (o.parentNode === document) return !0; o = o.parentNode instanceof ShadowRoot ? o.parentNode.host : o.parentNode } return !1 }) (e)) return; const n = (i=>{ const o = window.getComputedStyle(i); return { top: parseFloat(o.scrollMarginTop) || 0, right: parseFloat(o.scrollMarginRight) || 0, bottom: parseFloat(o.scrollMarginBottom) || 0, left: parseFloat(o.scrollMarginLeft) || 0 } }) (e); if ((i=>typeof i == 'object' && typeof i.behavior == 'function') (t)) return t.behavior(dx(e, t)); const r = typeof t == 'boolean' || t == null ? void 0 : t.behavior; for (const { el: i, top: o, left: a } of dx(e, PI(t))) { const u = o - n.top + n.bottom, c = a - n.left + n.right; i.scroll({ top: u, left: c, behavior: r }) } } /*! * is-plain-object <https://github.com/jonschlinkert/is-plain-object> * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */ function hx(e) { return Object.prototype.toString.call(e) === '[object Object]' } function nn(e) { var t, n; return hx(e) === !1 ? !1 : (t = e.constructor, t === void 0 ? !0 : (n = t.prototype, !(hx(n) === !1 || n.hasOwnProperty('isPrototypeOf') === !1))) } var px = Symbol.for('immer-nothing'), gx = Symbol.for('immer-draftable'), ir = Symbol.for('immer-state'); function Yr(e, ...t) { throw new Error(`[Immer] minified error nr: ${ e }. Full error at: https://bit.ly/3cXEKWf`) } var Ta = Object.getPrototypeOf; function ys(e) { return !!e && !!e[ir] } function ws(e) { var t; return e ? mx(e) || Array.isArray(e) || !!e[gx] || !!((t = e.constructor) != null && t[gx]) || Ed(e) || Dd(e) : !1 } var TI = Object.prototype.constructor.toString(); function mx(e) { if (!e || typeof e != 'object') return !1; const t = Ta(e); if (t === null) return !0; const n = Object.hasOwnProperty.call(t, 'constructor') && t.constructor; return n === Object ? !0 : typeof n == 'function' && Function.toString.call(n) === TI } function Ol(e, t) { Cd(e) === 0 ? Object.entries(e).forEach(([n, r]) =>{ t(n, r, e) }) : e.forEach((n, r) =>t(r, n, e)) } function Cd(e) { const t = e[ir]; return t ? t.type_ : Array.isArray(e) ? 1 : Ed(e) ? 2 : Dd(e) ? 3 : 0 } function av(e, t) { return Cd(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t) } function vx(e, t, n) { const r = Cd(e); r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n } function II(e, t) { return e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t } function Ed(e) { return e instanceof Map } function Dd(e) { return e instanceof Set } function bs(e) { return e.copy_ || e.base_ } function uv(e, t) { if (Ed(e)) return new Map(e); if (Dd(e)) return new Set(e); if (Array.isArray(e)) return Array.prototype.slice.call(e); if (!t && mx(e)) return Ta(e) ? { ...e } : Object.assign(Object.create(null), e); const n = Object.getOwnPropertyDescriptors(e); delete n[ir]; let r = Reflect.ownKeys(n); for (let i = 0; i < r.length; i++) { const o = r[i], a = n[o]; a.writable === !1 && (a.writable = !0, a.configurable = !0), (a.get || a.set) && (n[o] = { configurable: !0, writable: !0, enumerable: a.enumerable, value: e[o] }) } return Object.create(Ta(e), n) } function lv(e, t = !1) { return xd(e) || ys(e) || !ws(e) || (Cd(e) > 1 && (e.set = e.add = e.clear = e.delete = NI), Object.freeze(e), t && Ol(e, (n, r) =>lv(r, !0))), e } function NI() { Yr(2) } function xd(e) { return Object.isFrozen(e) } var LI = { }; function _s(e) { const t = LI[e]; return t || Yr(0, e), t } var Fl; function yx() { return Fl } function MI(e, t) { return { drafts_: [ ], parent_: e, immer_: t, canAutoFreeze_: !0, unfinalizedDrafts_: 0 } } function wx(e, t) { t && (_s('Patches'), e.patches_ = [ ], e.inversePatches_ = [ ], e.patchListener_ = t) } function cv(e) { fv(e), e.drafts_.forEach($I), e.drafts_ = null } function fv(e) { e === Fl && (Fl = e.parent_) } function bx(e) { return Fl = MI(Fl, e) } function $I(e) { const t = e[ir]; t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0 } function _x(e, t) { t.unfinalizedDrafts_ = t.drafts_.length; const n = t.drafts_[0]; return e !== void 0 && e !== n ? (n[ir].modified_ && (cv(t), Yr(4)), ws(e) && (e = Ad(t, e), t.parent_ || Sd(t, e)), t.patches_ && _s('Patches').generateReplacementPatches_(n[ir].base_, e, t.patches_, t.inversePatches_)) : e = Ad(t, n, [ ]), cv(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== px ? e : void 0 } function Ad(e, t, n) { if (xd(t)) return t; const r = t[ir]; if (!r) return Ol(t, (i, o) =>Cx(e, r, t, i, o, n)), t; if (r.scope_ !== e) return t; if (!r.modified_) return Sd(e, r.base_, !0), r.base_; if (!r.finalized_) { r.finalized_ = !0, r.scope_.unfinalizedDrafts_--; const i = r.copy_; let o = i, a = !1; r.type_ === 3 && (o = new Set(i), i.clear(), a = !0), Ol(o, (u, c) =>Cx(e, r, i, u, c, n, a)), Sd(e, i, !1), n && e.patches_ && _s('Patches').generatePatches_(r, n, e.patches_, e.inversePatches_) } return r.copy_ } function Cx(e, t, n, r, i, o, a) { if (ys(i)) { const u = o && t && t.type_ !== 3 && !av(t.assigned_, r) ? o.concat(r) : void 0, c = Ad(e, i, u); if (vx(n, r, c), ys(c)) e.canAutoFreeze_ = !1; else return } else a && n.add(i); if (ws(i) && !xd(i)) { if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1) return; Ad(e, i), (!t || !t.scope_.parent_) && Sd(e, i) } } function Sd(e, t, n = !1) { !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && lv(t, n) } function jI(e, t) { const n = Array.isArray(e), r = { type_: n ? 1 : 0, scope_: t ? t.scope_ : yx(), modified_: !1, finalized_: !1, assigned_: { }, parent_: t, base_: e, draft_: null, copy_: null, revoke_: null, isManual_: !1 }; let i = r, o = dv; n && (i = [ r ], o = Bl); const { revoke: a, proxy: u } = Proxy.revocable(i, o); return r.draft_ = u, r.revoke_ = a, u } var dv = { get(e, t) { if (t === ir) return e; const n = bs(e); if (!av(n, t)) return zI(e, n, t); const r = n[t]; return e.finalized_ || !ws(r) ? r : r === hv(e.base_, t) ? (gv(e), e.copy_[t] = mv(r, e)) : r }, has(e, t) { return t in bs(e) }, ownKeys(e) { return Reflect.ownKeys(bs(e)) }, set(e, t, n) { const r = Ex(bs(e), t); if (r != null && r.set) return r.set.call(e.draft_, n), !0; if (!e.modified_) { const i = hv(bs(e), t), o = i == null ? void 0 : i[ir]; if (o && o.base_ === n) return e.copy_[t] = n, e.assigned_[t] = !1, !0; if (II(n, i) && (n !== void 0 || av(e.base_, t))) return !0; gv(e), pv(e) } return e.copy_[t] === n && (n !== void 0 || t in e.copy_) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) || (e.copy_[t] = n, e.assigned_[t] = !0), !0 }, deleteProperty(e, t) { return hv(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, gv(e), pv(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0 }, getOwnPropertyDescriptor(e, t) { const n = bs(e), r = Reflect.getOwnPropertyDescriptor(n, t); return r && { writable: !0, configurable: e.type_ !== 1 || t !== 'length', enumerable: r.enumerable, value: n[t] } }, defineProperty() { Yr(11) }, getPrototypeOf(e) { return Ta(e.base_) }, setPrototypeOf() { Yr(12) } }, Bl = { }; Ol(dv, (e, t) =>{ Bl[e] = function () { return arguments[0] = arguments[0][0], t.apply(this, arguments) } }), Bl.deleteProperty = function (e, t) { return Bl.set.call(this, e, t, void 0) }, Bl.set = function (e, t, n) { return dv.set.call(this, e[0], t, n, e[0]) }; function hv(e, t) { const n = e[ir]; return (n ? bs(n) : e) [t] } function zI(e, t, n) { var i; const r = Ex(t, n); return r ? 'value' in r ? r.value : (i = r.get) == null ? void 0 : i.call(e.draft_) : void 0 } function Ex(e, t) { if (!(t in e)) return; let n = Ta(e); for (; n; ) { const r = Object.getOwnPropertyDescriptor(n, t); if (r) return r; n = Ta(n) } } function pv(e) { e.modified_ || (e.modified_ = !0, e.parent_ && pv(e.parent_)) } function gv(e) { e.copy_ || (e.copy_ = uv(e.base_, e.scope_.immer_.useStrictShallowCopy_)) } var UI = class { constructor(e) { this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.produce = (t, n, r) =>{ if (typeof t == 'function' && typeof n != 'function') { const o = n; n = t; const a = this; return function (c = o, ...f) { return a.produce(c, h=>n.call(this, h, ...f)) } } typeof n != 'function' && Yr(6), r !== void 0 && typeof r != 'function' && Yr(7); let i; if (ws(t)) { const o = bx(this), a = mv(t, void 0); let u = !0; try { i = n(a), u = !1 } finally { u ? cv(o) : fv(o) } return wx(o, r), _x(i, o) } else if (!t || typeof t != 'object') { if (i = n(t), i === void 0 && (i = t), i === px && (i = void 0), this.autoFreeze_ && lv(i, !0), r) { const o = [ ], a = [ ]; _s('Patches').generateReplacementPatches_(t, i, o, a), r(o, a) } return i } else Yr(1, t) }, this.produceWithPatches = (t, n) =>{ if (typeof t == 'function') return (a, ...u) =>this.produceWithPatches(a, c=>t(c, ...u)); let r, i; return [this.produce(t, n, (a, u) =>{ r = a, i = u }), r, i] }, typeof (e == null ? void 0 : e.autoFreeze) == 'boolean' && this.setAutoFreeze(e.autoFreeze), typeof (e == null ? void 0 : e.useStrictShallowCopy) == 'boolean' && this.setUseStrictShallowCopy(e.useStrictShallowCopy) } createDraft(e) { ws(e) || Yr(8), ys(e) && (e = HI(e)); const t = bx(this), n = mv(e, void 0); return n[ir].isManual_ = !0, fv(t), n } finishDraft(e, t) { const n = e && e[ir]; (!n || !n.isManual_) && Yr(9); const { scope_: r } = n; return wx(r, t), _x(void 0, r) } setAutoFreeze(e) { this.autoFreeze_ = e } setUseStrictShallowCopy(e) { this.useStrictShallowCopy_ = e } applyPatches(e, t) { let n; for (n = t.length - 1; n >= 0; n--) { const i = t[n]; if (i.path.length === 0 && i.op === 'replace') { e = i.value; break } } n > - 1 && (t = t.slice(n + 1)); const r = _s('Patches').applyPatches_; return ys(e) ? r(e, t) : this.produce(e, i=>r(i, t)) } }; function mv(e, t) { const n = Ed(e) ? _s('MapSet').proxyMap_(e, t) : Dd(e) ? _s('MapSet').proxySet_(e, t) : jI(e, t); return (t ? t.scope_ : yx()).drafts_.push(n), n } function HI(e) { return ys(e) || Yr(10, e), Dx(e) } function Dx(e) { if (!ws(e) || xd(e)) return e; const t = e[ir]; let n; if (t) { if (!t.modified_) return t.base_; t.finalized_ = !0, n = uv(e, t.scope_.immer_.useStrictShallowCopy_) } else n = uv(e, !0); return Ol(n, (r, i) =>{ vx(n, r, Dx(i)) }), t && (t.finalized_ = !1), n } var or = new UI, vv = or.produce; or.produceWithPatches.bind(or), or.setAutoFreeze.bind(or), or.setUseStrictShallowCopy.bind(or), or.applyPatches.bind(or); var xx = or.createDraft.bind(or), Ax = or.finishDraft.bind(or), WI = { transform(e, t) { var { current: n, affinity: r } = e; if (n != null) { var i = N.transform(n, t, { affinity: r }); e.current = i, i == null && e.unref() } } }, VI = { transform(e, t) { var { current: n, affinity: r } = e; if (n != null) { var i = je.transform(n, t, { affinity: r }); e.current = i, i == null && e.unref() } } }, KI = { transform(e, t) { var { current: n, affinity: r } = e; if (n != null) { var i = q.transform(n, t, { affinity: r }); e.current = i, i == null && e.unref() } } }, Od = new WeakMap, Fd = new WeakMap, kl = new WeakMap, Sx = new WeakMap, Ox = new WeakMap, Fx = new WeakMap, Bx = new WeakMap, N = { ancestors(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }, { reverse: n = !1 } = t, r = N.levels(e, t); return n ? r = r.slice(1) : r = r.slice(0, - 1), r }, common(e, t) { for (var n = [ ], r = 0; r < e.length && r < t.length; r++) { var i = e[r], o = t[r]; if (i !== o) break; n.push(i) } return n }, compare(e, t) { for (var n = Math.min(e.length, t.length), r = 0; r < n; r++) { if (e[r] < t[r]) return - 1; if (e[r] > t[r]) return 1 } return 0 }, endsAfter(e, t) { var n = e.length - 1, r = e.slice(0, n), i = t.slice(0, n), o = e[n], a = t[n]; return N.equals(r, i) && o > a }, endsAt(e, t) { var n = e.length, r = e.slice(0, n), i = t.slice(0, n); return N.equals(r, i) }, endsBefore(e, t) { var n = e.length - 1, r = e.slice(0, n), i = t.slice(0, n), o = e[n], a = t[n]; return N.equals(r, i) && o < a }, equals(e, t) { return e.length === t.length && e.every((n, r) =>n === t[r]) }, hasPrevious(e) { return e[e.length - 1] > 0 }, isAfter(e, t) { return N.compare(e, t) === 1 }, isAncestor(e, t) { return e.length < t.length && N.compare(e, t) === 0 }, isBefore(e, t) { return N.compare(e, t) === - 1 }, isChild(e, t) { return e.length === t.length + 1 && N.compare(e, t) === 0 }, isCommon(e, t) { return e.length <= t.length && N.compare(e, t) === 0 }, isDescendant(e, t) { return e.length > t.length && N.compare(e, t) === 0 }, isParent(e, t) { return e.length + 1 === t.length && N.compare(e, t) === 0 }, isPath(e) { return Array.isArray(e) && (e.length === 0 || typeof e[0] == 'number') }, isSibling(e, t) { if (e.length !== t.length) return !1; var n = e.slice(0, - 1), r = t.slice(0, - 1), i = e[e.length - 1], o = t[t.length - 1]; return i !== o && N.equals(n, r) }, levels(e) { for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }, { reverse: n = !1 } = t, r = [ ], i = 0; i <= e.length; i++) r.push(e.slice(0, i)); return n && r.reverse(), r }, next(e) { if (e.length === 0) throw new Error('Cannot get the next path of a root path ['.concat(e, '], because it has no next index.')); var t = e[e.length - 1]; return e.slice(0, - 1).concat(t + 1) }, operationCanTransformPath(e) { switch (e.type) { case 'insert_node': case 'remove_node': case 'merge_node': case 'split_node': case 'move_node': return !0; default: return !1 } }, parent(e) { if (e.length === 0) throw new Error('Cannot get the parent path of the root path ['.concat(e, '].')); return e.slice(0, - 1) }, previous(e) { if (e.length === 0) throw new Error('Cannot get the previous path of a root path ['.concat(e, '], because it has no previous index.')); var t = e[e.length - 1]; if (t <= 0) throw new Error('Cannot get the previous path of a first child path ['.concat(e, '] because it would result in a negative index.')); return e.slice(0, - 1).concat(t - 1) }, relative(e, t) { if (!N.isAncestor(t, e) && !N.equals(e, t)) throw new Error('Cannot get the relative path of ['.concat(e, '] inside ancestor [').concat(t, '], because it is not above or equal to the path.')); return e.slice(t.length) }, transform(e, t) { var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { }; if (!e) return null; var r = [ ...e ], { affinity: i = 'forward' } = n; if (e.length === 0) return r; switch (t.type) { case 'insert_node': { var { path: o } = t; (N.equals(o, r) || N.endsBefore(o, r) || N.isAncestor(o, r)) && (r[o.length - 1] += 1); break } case 'remove_node': { var { path: a } = t; if (N.equals(a, r) || N.isAncestor(a, r)) return null; N.endsBefore(a, r) && (r[a.length - 1] -= 1); break } case 'merge_node': { var { path: u, position: c } = t; N.equals(u, r) || N.endsBefore(u, r) ? r[u.length - 1] -= 1 : N.isAncestor(u, r) && (r[u.length - 1] -= 1, r[u.length] += c); break } case 'split_node': { var { path: f, position: h } = t; if (N.equals(f, r)) { if (i === 'forward') r[r.length - 1] += 1; else if (i !== 'backward') return null } else N.endsBefore(f, r) ? r[f.length - 1] += 1 : N.isAncestor(f, r) && e[f.length] >= h && (r[f.length - 1] += 1, r[f.length] -= h); break } case 'move_node': { var { path: g, newPath: m } = t; if (N.equals(g, m)) return r; if (N.isAncestor(g, r) || N.equals(g, r)) { var y = m.slice(); return N.endsBefore(g, m) && g.length < m.length && (y[g.length - 1] -= 1), y.concat(r.slice(g.length)) } else N.isSibling(g, m) && (N.isAncestor(m, r) || N.equals(m, r)) ? N.endsBefore(g, r) ? r[g.length - 1] -= 1 : r[g.length - 1] += 1 : N.endsBefore(m, r) || N.equals(m, r) || N.isAncestor(m, r) ? (N.endsBefore(g, r) && (r[g.length - 1] -= 1), r[m.length - 1] += 1) : N.endsBefore(g, r) && (N.equals(m, r) && (r[m.length - 1] += 1), r[g.length - 1] -= 1); break } } return r } }; function Pl(e) { '@babel/helpers - typeof'; return Pl = typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol' ? function (t) { return typeof t } : function (t) { return t && typeof Symbol == 'function' && t.constructor === Symbol && t !== Symbol.prototype ? 'symbol' : typeof t }, Pl(e) } function qI(e, t) { if (Pl(e) !== 'object' || e === null) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || 'default'); if (Pl(r) !== 'object') return r; throw new TypeError('@@toPrimitive must return a primitive value.') } return (t === 'string' ? String : Number) (e) } function GI(e) { var t = qI(e, 'string'); return Pl(t) === 'symbol' ? t : String(t) } function Fn(e, t, n) { return t = GI(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e } function kx(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function (i) { return Object.getOwnPropertyDescriptor(e, i).enumerable })), n.push.apply(n, r) } return n } function Rl(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : { }; t % 2 ? kx(Object(n), !0).forEach(function (r) { Fn(e, r, n[r]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : kx(Object(n)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) }) } return e } var QI = (e, t, n) =>{ switch (n.type) { case 'insert_node': { var { path: r, node: i } = n, o = de.parent(e, r), a = r[r.length - 1]; if (a > o.children.length) throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r, '] because the destination is past the end of the node.')); if (o.children.splice(a, 0, i), t) for (var [u, c]of q.points(t)) t[c] = je.transform(u, n); break } case 'insert_text': { var { path: f, offset: h, text: g } = n; if (g.length === 0) break; var m = de.leaf(e, f), y = m.text.slice(0, h), v = m.text.slice(h); if (m.text = y + g + v, t) for (var [p, E]of q.points(t)) t[E] = je.transform(p, n); break } case 'merge_node': { var { path: _ } = n, b = de.get(e, _), x = N.previous(_), O = de.get(e, x), B = de.parent(e, _), k = _[_.length - 1]; if (Ee.isText(b) && Ee.isText(O)) O.text += b.text; else if (!Ee.isText(b) && !Ee.isText(O)) O.children.push(...b.children); else throw new Error('Cannot apply a "merge_node" operation at path ['.concat(_, '] to nodes of different interfaces: ').concat(rn.stringify(b), ' ').concat(rn.stringify(O))); if (B.children.splice(k, 1), t) for (var [P, I]of q.points(t)) t[I] = je.transform(P, n); break } case 'move_node': { var { path: Y, newPath: j } = n; if (N.isAncestor(Y, j)) throw new Error('Cannot move a path ['.concat(Y, '] to new path [').concat(j, '] because the destination is inside itself.')); var X = de.get(e, Y), $ = de.parent(e, Y), U = Y[Y.length - 1]; $.children.splice(U, 1); var T = N.transform(Y, n), G = de.get(e, N.parent(T)), se = T[T.length - 1]; if (G.children.splice(se, 0, X), t) for (var [re, V]of q.points(t)) t[V] = je.transform(re, n); break } case 'remove_node': { var { path: te } = n, le = te[te.length - 1], ce = de.parent(e, te); if (ce.children.splice(le, 1), t) for (var [ye, De]of q.points(t)) { var Ce = je.transform(ye, n); if (t != null && Ce != null) t[De] = Ce; else { var L = void 0, ne = void 0; for (var [J, Q]of de.texts(e)) if (N.compare(Q, te) === - 1) L = [ J, Q ]; else { ne = [ J, Q ]; break } var ge = !1; L && ne && (N.equals(ne[1], te) ? ge = !N.hasPrevious(ne[1]) : ge = N.common(L[1], te).length < N.common(ne[1], te).length), L && !ge ? (ye.path = L[1], ye.offset = L[0].text.length) : ne ? (ye.path = ne[1], ye.offset = 0) : t = null } } break } case 'remove_text': { var { path: he, offset: Pe, text: me } = n; if (me.length === 0) break; var Fe = de.leaf(e, he), Se = Fe.text.slice(0, Pe), Re = Fe.text.slice(Pe + me.length); if (Fe.text = Se + Re, t) for (var [Be, ke]of q.points(t)) t[ke] = je.transform(Be, n); break } case 'set_node': { var { path: ct, properties: Mt, newProperties: At } = n; if (ct.length === 0) throw new Error('Cannot set properties on the root node!'); var ht = de.get(e, ct); for (var rt in At) { if (rt === 'children' || rt === 'text') throw new Error('Cannot set the "'.concat(rt, '" property of nodes!')); var Kt = At[rt]; Kt == null ? delete ht[rt] : ht[rt] = Kt } for (var ve in Mt) At.hasOwnProperty(ve) || delete ht[ve]; break } case 'set_selection': { var { newProperties: be } = n; if (be == null) t = be; else { if (t == null) { if (!q.isRange(be)) throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(rn.stringify(be), ' when there is no current selection.')); t = Rl({ }, be) } for (var Ze in be) { var it = be[Ze]; if (it == null) { if (Ze === 'anchor' || Ze === 'focus') throw new Error('Cannot remove the "'.concat(Ze, '" selection property')); delete t[Ze] } else t[Ze] = it } } break } case 'split_node': { var { path: Je, position: qt, properties: sn } = n; if (Je.length === 0) throw new Error('Cannot apply a "split_node" operation at path ['.concat(Je, '] because the root node cannot be split.')); var pn = de.get(e, Je), cr = de.parent(e, Je), Pr = Je[Je.length - 1], Rr; if (Ee.isText(pn)) { var Gi = pn.text.slice(0, qt), Qi = pn.text.slice(qt); pn.text = Gi, Rr = Rl(Rl({ }, sn), { }, { text: Qi }) } else { var Yi = pn.children.slice(0, qt), Ls = pn.children.slice(qt); pn.children = Yi, Rr = Rl(Rl({ }, sn), { }, { children: Ls }) } if (cr.children.splice(Pr + 1, 0, Rr), t) for (var [cc, _y]of q.points(t)) t[_y] = je.transform(cc, n); break } } return t }, YI = { transform(e, t) { e.children = xx(e.children); var n = e.selection && xx(e.selection); try { n = QI(e, n, t) } finally { e.children = Ax(e.children), n ? e.selection = ys(n) ? Ax(n) : n : e.selection = null } } }, JI = { insertNodes(e, t, n) { e.insertNodes(t, n) }, liftNodes(e, t) { e.liftNodes(t) }, mergeNodes(e, t) { e.mergeNodes(t) }, moveNodes(e, t) { e.moveNodes(t) }, removeNodes(e, t) { e.removeNodes(t) }, setNodes(e, t, n) { e.setNodes(t, n) }, splitNodes(e, t) { e.splitNodes(t) }, unsetNodes(e, t, n) { e.unsetNodes(t, n) }, unwrapNodes(e, t) { e.unwrapNodes(t) }, wrapNodes(e, t, n) { e.wrapNodes(t, n) } }, XI = { collapse(e, t) { e.collapse(t) }, deselect(e) { e.deselect() }, move(e, t) { e.move(t) }, select(e, t) { e.select(t) }, setPoint(e, t, n) { e.setPoint(t, n) }, setSelection(e, t) { e.setSelection(t) } }, Px = (e, t) =>{ for (var n in e) { var r = e[n], i = t[n]; if (nn(r) && nn(i)) { if (!Px(r, i)) return !1 } else if (Array.isArray(r) && Array.isArray(i)) { if (r.length !== i.length) return !1; for (var o = 0; o < r.length; o++) if (r[o] !== i[o]) return !1 } else if (r !== i) return !1 } for (var a in t) if (e[a] === void 0 && t[a] !== void 0) return !1; return !0 }; function ZI(e, t) { if (e == null) return { }; var n = { }, r = Object.keys(e), i, o; for (o = 0; o < r.length; o++) i = r[o], !(t.indexOf(i) >= 0) && (n[i] = e[i]); return n } function ji(e, t) { if (e == null) return { }; var n = ZI(e, t), r, i; if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); for (i = 0; i < o.length; i++) r = o[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]) } return n } var e7 = [ 'anchor', 'focus' ]; function Rx(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function (i) { return Object.getOwnPropertyDescriptor(e, i).enumerable })), n.push.apply(n, r) } return n } function t7(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : { }; t % 2 ? Rx(Object(n), !0).forEach(function (r) { Fn(e, r, n[r]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Rx(Object(n)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) }) } return e } var q = { edges(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }, { reverse: n = !1 } = t, { anchor: r, focus: i } = e; return q.isBackward(e) === n ? [ r, i ] : [ i, r ] }, end(e) { var [, t] = q.edges(e); return t }, equals(e, t) { return je.equals(e.anchor, t.anchor) && je.equals(e.focus, t.focus) }, includes(e, t) { if (q.isRange(t)) { if (q.includes(e, t.anchor) || q.includes(e, t.focus)) return !0; var [n, r] = q.edges(e), [ i, o ] = q.edges(t); return je.isBefore(n, i) && je.isAfter(r, o) } var [a, u] = q.edges(e), c = !1, f = !1; return je.isPoint(t) ? (c = je.compare(t, a) >= 0, f = je.compare(t, u) <= 0) : (c = N.compare(t, a.path) >= 0, f = N.compare(t, u.path) <= 0), c && f }, intersection(e, t) { var n = ji(e, e7), [ r, i ] = q.edges(e), [ o, a ] = q.edges(t), u = je.isBefore(r, o) ? o : r, c = je.isBefore(i, a) ? i : a; return je.isBefore(c, u) ? null : t7({ anchor: u, focus: c }, n) }, isBackward(e) { var { anchor: t, focus: n } = e; return je.isAfter(t, n) }, isCollapsed(e) { var { anchor: t, focus: n } = e; return je.equals(t, n) }, isExpanded(e) { return !q.isCollapsed(e) }, isForward(e) { return !q.isBackward(e) }, isRange(e) { return nn(e) && je.isPoint(e.anchor) && je.isPoint(e.focus) }, * points(e) { yield[e.anchor, 'anchor'], yield[e.focus, 'focus'] }, start(e) { var [t] = q.edges(e); return t }, transform(e, t) { var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { }; return vv(e, r=>{ if (r === null) return null; var { affinity: i = 'inward' } = n, o, a; if (i === 'inward') { var u = q.isCollapsed(r); q.isForward(r) ? (o = 'forward', a = u ? o : 'backward') : (o = 'backward', a = u ? o : 'forward') } else i === 'outward' ? q.isForward(r) ? (o = 'backward', a = 'forward') : (o = 'forward', a = 'backward') : (o = i, a = i); var c = je.transform(r.anchor, t, { affinity: o }), f = je.transform(r.focus, t, { affinity: a }); if (!c || !f) return null; r.anchor = c, r.focus = f }) } }, Tx = e=>nn(e) && de.isNodeList(e.children) && !C.isEditor(e), we = { isAncestor(e) { return nn(e) && de.isNodeList(e.children) }, isElement: Tx, isElementList(e) { return Array.isArray(e) && e.every(t=>we.isElement(t)) }, isElementProps(e) { return e.children !== void 0 }, isElementType: function (t, n) { var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 'type'; return Tx(t) && t[r] === n }, matches(e, t) { for (var n in t) if (n !== 'children' && e[n] !== t[n]) return !1; return !0 } }, n7 = [ 'children' ], r7 = [ 'text' ], Ix = new WeakMap, de = { ancestor(e, t) { var n = de.get(e, t); if (Ee.isText(n)) throw new Error('Cannot get the ancestor node at path ['.concat(t, '] because it refers to a text node instead: ').concat(rn.stringify(n))); return n }, ancestors(e, t) { var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { }; return function * () { for (var r of N.ancestors(t, n)) { var i = de.ancestor(e, r), o = [ i, r ]; yield o } }() }, child(e, t) { if (Ee.isText(e)) throw new Error('Cannot get the child of a text node: '.concat(rn.stringify(e))); var n = e.children[t]; if (n == null) throw new Error('Cannot get child at index `'.concat(t, '` in node: ').concat(rn.stringify(e))); return n }, children(e, t) { var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { }; return function * () { for (var { reverse: r = !1 } = n, i = de.ancestor(e, t), { children: o } = i, a = r ? o.length - 1 : 0; r ? a >= 0 : a < o.length; ) { var u = de.child(i, a), c = t.concat(a); yield[u, c], a = r ? a - 1 : a + 1 } }() }, common(e, t, n) { var r = N.common(t, n), i = de.get(e, r); return [i, r] }, descendant(e, t) { var n = de.get(e, t); if (C.isEditor(n)) throw new Error('Cannot get the descendant node at path ['.concat(t, '] because it refers to the root editor node instead: ').concat(rn.stringify(n))); return n }, descendants(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }; return function * () { for (var [n, r]of de.nodes(e, t)) r.length !== 0 && (yield[n, r]) }() }, elements(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }; return function * () { for (var [n, r]of de.nodes(e, t)) we.isElement(n) && (yield[n, r]) }() }, extractProps(e) { if (we.isAncestor(e)) { var t = ji(e, n7); return t } else { var t = ji(e, r7); return t } }, first(e, t) { for (var n = t.slice(), r = de.get(e, n); r && !(Ee.isText(r) || r.children.length === 0); ) r = r.children[0], n.push(0); return [r, n] }, fragment(e, t) { if (Ee.isText(e)) throw new Error('Cannot get a fragment starting from a root text node: '.concat(rn.stringify(e))); var n = vv({ children: e.children }, r=>{ var [i, o] = q.edges(t), a = de.nodes(r, { reverse: !0, pass: m=>{ var [, y] = m; return !q.includes(t, y) } }); for (var [, u]of a) { if (!q.includes(t, u)) { var c = de.parent(r, u), f = u[u.length - 1]; c.children.splice(f, 1) } if (N.equals(u, o.path)) { var h = de.leaf(r, u); h.text = h.text.slice(0, o.offset) } if (N.equals(u, i.path)) { var g = de.leaf(r, u); g.text = g.text.slice(i.offset) } } C.isEditor(r) && (r.selection = null) }); return n.children }, get(e, t) { for (var n = e, r = 0; r < t.length; r++) { var i = t[r]; if (Ee.isText(n) || !n.children[i]) throw new Error('Cannot find a descendant at path ['.concat(t, '] in node: ').concat(rn.stringify(e))); n = n.children[i] } return n }, has(e, t) { for (var n = e, r = 0; r < t.length; r++) { var i = t[r]; if (Ee.isText(n) || !n.children[i]) return !1; n = n.children[i] } return !0 }, isNode(e) { return Ee.isText(e) || we.isElement(e) || C.isEditor(e) }, isNodeList(e) { if (!Array.isArray(e)) return !1; var t = Ix.get(e); if (t !== void 0) return t; var n = e.every(r=>de.isNode(r)); return Ix.set(e, n), n }, last(e, t) { for (var n = t.slice(), r = de.get(e, n); r && !(Ee.isText(r) || r.children.length === 0); ) { var i = r.children.length - 1; r = r.children[i], n.push(i) } return [r, n] }, leaf(e, t) { var n = de.get(e, t); if (!Ee.isText(n)) throw new Error('Cannot get the leaf node at path ['.concat(t, '] because it refers to a non-leaf node: ').concat(rn.stringify(n))); return n }, levels(e, t) { var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { }; return function * () { for (var r of N.levels(t, n)) { var i = de.get(e, r); yield[i, r] } }() }, matches(e, t) { return we.isElement(e) && we.isElementProps(t) && we.matches(e, t) || Ee.isText(e) && Ee.isTextProps(t) && Ee.matches(e, t) }, nodes(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }; return function * () { for (var { pass: n, reverse: r = !1 } = t, { from: i = [ ], to: o } = t, a = new Set, u = [ ], c = e; !(o && (r ? N.isBefore(u, o) : N.isAfter(u, o))); ) { if (a.has(c) || (yield[c, u]), !a.has(c) && !Ee.isText(c) && c.children.length !== 0 && (n == null || n([c, u]) === !1)) { a.add(c); var f = r ? c.children.length - 1 : 0; N.isAncestor(u, i) && (f = i[u.length]), u = u.concat(f), c = de.get(e, u); continue } if (u.length === 0) break; if (!r) { var h = N.next(u); if (de.has(e, h)) { u = h, c = de.get(e, u); continue } } if (r && u[u.length - 1] !== 0) { var g = N.previous(u); u = g, c = de.get(e, u); continue } u = N.parent(u), c = de.get(e, u), a.add(c) } }() }, parent(e, t) { var n = N.parent(t), r = de.get(e, n); if (Ee.isText(r)) throw new Error('Cannot get the parent of path ['.concat(t, '] because it does not exist in the root.')); return r }, string(e) { return Ee.isText(e) ? e.text : e.children.map(de.string).join('') }, texts(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }; return function * () { for (var [n, r]of de.nodes(e, t)) Ee.isText(n) && (yield[n, r]) }() } }; function Nx(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function (i) { return Object.getOwnPropertyDescriptor(e, i).enumerable })), n.push.apply(n, r) } return n } function Dt(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : { }; t % 2 ? Nx(Object(n), !0).forEach(function (r) { Fn(e, r, n[r]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Nx(Object(n)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) }) } return e } var Bo = { isNodeOperation(e) { return Bo.isOperation(e) && e.type.endsWith('_node') }, isOperation(e) { if (!nn(e)) return !1; switch (e.type) { case 'insert_node': return N.isPath(e.path) && de.isNode(e.node); case 'insert_text': return typeof e.offset == 'number' && typeof e.text == 'string' && N.isPath(e.path); case 'merge_node': return typeof e.position == 'number' && N.isPath(e.path) && nn(e.properties); case 'move_node': return N.isPath(e.path) && N.isPath(e.newPath); case 'remove_node': return N.isPath(e.path) && de.isNode(e.node); case 'remove_text': return typeof e.offset == 'number' && typeof e.text == 'string' && N.isPath(e.path); case 'set_node': return N.isPath(e.path) && nn(e.properties) && nn(e.newProperties); case 'set_selection': return e.properties === null && q.isRange(e.newProperties) || e.newProperties === null && q.isRange(e.properties) || nn(e.properties) && nn(e.newProperties); case 'split_node': return N.isPath(e.path) && typeof e.position == 'number' && nn(e.properties); default: return !1 } }, isOperationList(e) { return Array.isArray(e) && e.every(t=>Bo.isOperation(t)) }, isSelectionOperation(e) { return Bo.isOperation(e) && e.type.endsWith('_selection') }, isTextOperation(e) { return Bo.isOperation(e) && e.type.endsWith('_text') }, inverse(e) { switch (e.type) { case 'insert_node': return Dt(Dt({ }, e), { }, { type: 'remove_node' }); case 'insert_text': return Dt(Dt({ }, e), { }, { type: 'remove_text' }); case 'merge_node': return Dt(Dt({ }, e), { }, { type: 'split_node', path: N.previous(e.path) }); case 'move_node': { var { newPath: t, path: n } = e; if (N.equals(t, n)) return e; if (N.isSibling(n, t)) return Dt(Dt({ }, e), { }, { path: t, newPath: n }); var r = N.transform(n, e), i = N.transform(N.next(n), e); return Dt(Dt({ }, e), { }, { path: r, newPath: i }) } case 'remove_node': return Dt(Dt({ }, e), { }, { type: 'insert_node' }); case 'remove_text': return Dt(Dt({ }, e), { }, { type: 'insert_text' }); case 'set_node': { var { properties: o, newProperties: a } = e; return Dt(Dt({ }, e), { }, { properties: a, newProperties: o }) } case 'set_selection': { var { properties: u, newProperties: c } = e; return u == null ? Dt(Dt({ }, e), { }, { properties: c, newProperties: null }) : c == null ? Dt(Dt({ }, e), { }, { properties: null, newProperties: u }) : Dt(Dt({ }, e), { }, { properties: c, newProperties: u }) } case 'split_node': return Dt(Dt({ }, e), { }, { type: 'merge_node', path: N.next(e.path) }) } } }, Lx = new WeakMap, i7 = e=>{ var t = Lx.get(e); if (t !== void 0) return t; if (!nn(e)) return !1; var n = typeof e.addMark == 'function' && typeof e.apply == 'function' && typeof e.deleteFragment == 'function' && typeof e.insertBreak == 'function' && typeof e.insertSoftBreak == 'function' && typeof e.insertFragment == 'function' && typeof e.insertNode == 'function' && typeof e.insertText == 'function' && typeof e.isElementReadOnly == 'function' && typeof e.isInline == 'function' && typeof e.isSelectable == 'function' && typeof e.isVoid == 'function' && typeof e.normalizeNode == 'function' && typeof e.onChange == 'function' && typeof e.removeMark == 'function' && typeof e.getDirtyPaths == 'function' && (e.marks === null || nn(e.marks)) && (e.selection === null || q.isRange(e.selection)) && de.isNodeList(e.children) && Bo.isOperationList(e.operations); return Lx.set(e, n), n }, C = { above(e, t) { return e.above(t) }, addMark(e, t, n) { e.addMark(t, n) }, after(e, t, n) { return e.after(t, n) }, before(e, t, n) { return e.before(t, n) }, deleteBackward(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }, { unit: n = 'character' } = t; e.deleteBackward(n) }, deleteForward(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }, { unit: n = 'character' } = t; e.deleteForward(n) }, deleteFragment(e, t) { e.deleteFragment(t) }, edges(e, t) { return e.edges(t) }, elementReadOnly(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }; return e.elementReadOnly(t) }, end(e, t) { return e.end(t) }, first(e, t) { return e.first(t) }, fragment(e, t) { return e.fragment(t) }, hasBlocks(e, t) { return e.hasBlocks(t) }, hasInlines(e, t) { return e.hasInlines(t) }, hasPath(e, t) { return e.hasPath(t) }, hasTexts(e, t) { return e.hasTexts(t) }, insertBreak(e) { e.insertBreak() }, insertFragment(e, t, n) { e.insertFragment(t, n) }, insertNode(e, t) { e.insertNode(t) }, insertSoftBreak(e) { e.insertSoftBreak() }, insertText(e, t) { e.insertText(t) }, isBlock(e, t) { return e.isBlock(t) }, isEdge(e, t, n) { return e.isEdge(t, n) }, isEditor(e) { return i7(e) }, isElementReadOnly(e, t) { return e.isElementReadOnly(t) }, isEmpty(e, t) { return e.isEmpty(t) }, isEnd(e, t, n) { return e.isEnd(t, n) }, isInline(e, t) { return e.isInline(t) }, isNormalizing(e) { return e.isNormalizing() }, isSelectable(e, t) { return e.isSelectable(t) }, isStart(e, t, n) { return e.isStart(t, n) }, isVoid(e, t) { return e.isVoid(t) }, last(e, t) { return e.last(t) }, leaf(e, t, n) { return e.leaf(t, n) }, levels(e, t) { return e.levels(t) }, marks(e) { return e.getMarks() }, next(e, t) { return e.next(t) }, node(e, t, n) { return e.node(t, n) }, nodes(e, t) { return e.nodes(t) }, normalize(e, t) { e.normalize(t) }, parent(e, t, n) { return e.parent(t, n) }, path(e, t, n) { return e.path(t, n) }, pathRef(e, t, n) { return e.pathRef(t, n) }, pathRefs(e) { return e.pathRefs() }, point(e, t, n) { return e.point(t, n) }, pointRef(e, t, n) { return e.pointRef(t, n) }, pointRefs(e) { return e.pointRefs() }, positions(e, t) { return e.positions(t) }, previous(e, t) { return e.previous(t) }, range(e, t, n) { return e.range(t, n) }, rangeRef(e, t, n) { return e.rangeRef(t, n) }, rangeRefs(e) { return e.rangeRefs() }, removeMark(e, t) { e.removeMark(t) }, setNormalizing(e, t) { e.setNormalizing(t) }, start(e, t) { return e.start(t) }, string(e, t, n) { return e.string(t, n) }, unhangRange(e, t, n) { return e.unhangRange(t, n) }, void (e, t) { return e.void(t) }, withoutNormalizing(e, t) { e.withoutNormalizing(t) } }, o7 = { isSpan(e) { return Array.isArray(e) && e.length === 2 && e.every(N.isPath) } }; function Mx(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function (i) { return Object.getOwnPropertyDescriptor(e, i).enumerable })), n.push.apply(n, r) } return n } function $x(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : { }; t % 2 ? Mx(Object(n), !0).forEach(function (r) { Fn(e, r, n[r]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Mx(Object(n)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) }) } return e } var je = { compare(e, t) { var n = N.compare(e.path, t.path); return n === 0 ? e.offset < t.offset ? - 1 : e.offset > t.offset ? 1 : 0 : n }, isAfter(e, t) { return je.compare(e, t) === 1 }, isBefore(e, t) { return je.compare(e, t) === - 1 }, equals(e, t) { return e.offset === t.offset && N.equals(e.path, t.path) }, isPoint(e) { return nn(e) && typeof e.offset == 'number' && N.isPath(e.path) }, transform(e, t) { var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { }; return vv(e, r=>{ if (r === null) return null; var { affinity: i = 'forward' } = n, { path: o, offset: a } = r; switch (t.type) { case 'insert_node': case 'move_node': { r.path = N.transform(o, t, n); break } case 'insert_text': { N.equals(t.path, o) && (t.offset < a || t.offset === a && i === 'forward') && (r.offset += t.text.length); break } case 'merge_node': { N.equals(t.path, o) && (r.offset += t.position), r.path = N.transform(o, t, n); break } case 'remove_text': { N.equals(t.path, o) && t.offset <= a && (r.offset -= Math.min(a - t.offset, t.text.length)); break } case 'remove_node': { if (N.equals(t.path, o) || N.isAncestor(t.path, o)) return null; r.path = N.transform(o, t, n); break } case 'split_node': { if (N.equals(t.path, o)) { if (t.position === a && i == null) return null; (t.position < a || t.position === a && i === 'forward') && (r.offset -= t.position, r.path = N.transform(o, t, $x($x({ }, n), { }, { affinity: 'forward' }))) } else r.path = N.transform(o, t, n); break } } }) } }, jx = void 0, rn = { setScrubber(e) { jx = e }, stringify(e) { return JSON.stringify(e, jx) } }, s7 = [ 'text' ], a7 = [ 'anchor', 'focus' ]; function zx(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function (i) { return Object.getOwnPropertyDescriptor(e, i).enumerable })), n.push.apply(n, r) } return n } function zi(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : { }; t % 2 ? zx(Object(n), !0).forEach(function (r) { Fn(e, r, n[r]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : zx(Object(n)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) }) } return e } var Ee = { equals(e, t) { var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { }, { loose: r = !1 } = n; function i(o) { var a = ji(o, s7); return a } return Px(r ? i(e) : e, r ? i(t) : t) }, isText(e) { return nn(e) && typeof e.text == 'string' }, isTextList(e) { return Array.isArray(e) && e.every(t=>Ee.isText(t)) }, isTextProps(e) { return e.text !== void 0 }, matches(e, t) { for (var n in t) if (n !== 'text' && (!e.hasOwnProperty(n) || e[n] !== t[n])) return !1; return !0 }, decorations(e, t) { var n = [ zi({ }, e) ]; for (var r of t) { var i = ji(r, a7), [ o, a ] = q.edges(r), u = [ ], c = 0, f = o.offset, h = a.offset; for (var g of n) { var { length: m } = g.text, y = c; if (c += m, f <= y && c <= h) { Object.assign(g, i), u.push(g); continue } if (f !== h && (f === c || h === y) || f > c || h < y || h === y && y !== 0) { u.push(g); continue } var v = g, p = void 0, E = void 0; if (h < c) { var _ = h - y; E = zi(zi({ }, v), { }, { text: v.text.slice(_) }), v = zi(zi({ }, v), { }, { text: v.text.slice(0, _) }) } if (f > y) { var b = f - y; p = zi(zi({ }, v), { }, { text: v.text.slice(0, b) }), v = zi(zi({ }, v), { }, { text: v.text.slice(b) }) } Object.assign(v, i), p && u.push(p), u.push(v), E && u.push(E) } n = u } return n } }, yv = e=>e.selection ? e.selection : e.children.length > 0 ? C.end(e, [ ]) : [ 0 ], Ia = (e, t) =>{ var [n] = C.node(e, t); return r=>r === n }, wv = function (t) { var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, r = !n, i = n ? h7(t) : t, o = Me.None, a = Me.None, u = 0, c = null, f = null; for (var h of i) { var g = h.codePointAt(0); if (!g) break; var m = x7(h, g); if ([o, a] = r ? [ a, m ] : [ m, o ], Na(o, Me.ZWJ) && Na(a, Me.ExtPict) && (r ? c = Ux(t.substring(0, u)) : c = Ux(t.substring(0, t.length - u)), !c) || Na(o, Me.RI) && Na(a, Me.RI) && (f !== null ? f = !f : r ? f = !0 : f = B7(t.substring(0, t.length - u)), !f) || o !== Me.None && a !== Me.None && S7(o, a)) break; u += h.length } return u || 1 }, u7 = /\s/, l7 = /[\u002B\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\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\u0AF0\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\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\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]/, c7 = /['\u2018\u2019]/, f7 = function (t) { for (var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, r = 0, i = !1; t.length > 0; ) { var o = wv(t, n), [ a, u ] = bv(t, o, n); if (d7(a, u, n)) i = !0, r += o; else if (!i) r += o; else break; t = u } return r }, bv = (e, t, n) =>{ if (n) { var r = e.length - t; return [e.slice(r, e.length), e.slice(0, r)] } return [e.slice(0, t), e.slice(t)] }, d7 = function e(t, n) { var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1; if (u7.test(t)) return !1; if (c7.test(t)) { var i = wv(n, r), [ o, a ] = bv(n, i, r); if (e(o, a, r)) return !0 } return !l7.test(t) }, h7 = function * (t) { for (var n = t.length - 1, r = 0; r < t.length; r++) { var i = t.charAt(n - r); if (g7(i.charCodeAt(0))) { var o = t.charAt(n - r - 1); if (p7(o.charCodeAt(0))) { yield o + i, r++; continue } } yield i } }, p7 = e=>e >= 55296 && e <= 56319, g7 = e=>e >= 56320 && e <= 57343, Me; (function (e) { e[e.None = 0] = 'None', e[e.Extend = 1] = 'Extend', e[e.ZWJ = 2] = 'ZWJ', e[e.RI = 4] = 'RI', e[e.Prepend = 8] = 'Prepend', e[e.SpacingMark = 16] = 'SpacingMark', e[e.L = 32] = 'L', e[e.V = 64] = 'V', e[e.T = 128] = 'T', e[e.LV = 256] = 'LV', e[e.LVT = 512] = 'LVT', e[e.ExtPict = 1024] = 'ExtPict', e[e.Any = 2048] = 'Any' }) (Me || (Me = { })); var m7 = /^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/, v7 = /^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/, y7 = /^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/, w7 = /^[\u1100-\u115F\uA960-\uA97C]$/, b7 = /^[\u1160-\u11A7\uD7B0-\uD7C6]$/, _7 = /^[\u11A8-\u11FF\uD7CB-\uD7FB]$/, C7 = /^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/, E7 = /^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/, D7 = /^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/, x7 = (e, t) =>{ var n = Me.Any; return e.search(m7) !== - 1 && (n |= Me.Extend), t === 8205 && (n |= Me.ZWJ), t >= 127462 && t <= 127487 && (n |= Me.RI), e.search(v7) !== - 1 && (n |= Me.Prepend), e.search(y7) !== - 1 && (n |= Me.SpacingMark), e.search(w7) !== - 1 && (n |= Me.L), e.search(b7) !== - 1 && (n |= Me.V), e.search(_7) !== - 1 && (n |= Me.T), e.search(C7) !== - 1 && (n |= Me.LV), e.search(E7) !== - 1 && (n |= Me.LVT), e.search(D7) !== - 1 && (n |= Me.ExtPict), n }; function Na(e, t) { return (e & t) !== 0 } var A7 = [ [Me.L, Me.L | Me.V | Me.LV | Me.LVT], [ Me.LV | Me.V, Me.V | Me.T ], [ Me.LVT | Me.T, Me.T ], [ Me.Any, Me.Extend | Me.ZWJ ], [ Me.Any, Me.SpacingMark ], [ Me.Prepend, Me.Any ], [ Me.ZWJ, Me.ExtPict ], [ Me.RI, Me.RI ] ]; function S7(e, t) { return A7.findIndex(n=>Na(e, n[0]) && Na(t, n[1])) === - 1 } var O7 = /(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/, Ux = e=>e.search(O7) !== - 1, F7 = /(?:\uD83C[\uDDE6-\uDDFF])+$/g, B7 = e=>{ var t = e.match(F7); if (t === null) return !1; var n = t[0].length / 2; return n % 2 === 1 }, k7 = { delete (e, t) { e.delete(t) }, insertFragment(e, t, n) { e.insertFragment(t, n) }, insertText(e, t) { var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { }; C.withoutNormalizing(e, () =>{ var { voids: r = !1 } = n, { at: i = yv(e) } = n; if (N.isPath(i) && (i = C.range(e, i)), q.isRange(i)) if (q.isCollapsed(i)) i = i.anchor; else { var o = q.end(i); if (!r && C.void(e, { at: o })) return; var a = q.start(i), u = C.pointRef(e, a), c = C.pointRef(e, o); K.delete(e, { at: i, voids: r }); var f = u.unref(), h = c.unref(); i = f || h, K.setSelection(e, { anchor: i, focus: i }) } if (!(!r && C.void(e, { at: i }) || C.elementReadOnly(e, { at: i }))) { var { path: g, offset: m } = i; t.length > 0 && e.apply({ type: 'insert_text', path: g, offset: m, text: t }) } }) } }; function Hx(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function (i) { return Object.getOwnPropertyDescriptor(e, i).enumerable })), n.push.apply(n, r) } return n } function Bd(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : { }; t % 2 ? Hx(Object(n), !0).forEach(function (r) { Fn(e, r, n[r]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Hx(Object(n)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) }) } return e } var K = Bd(Bd(Bd(Bd({ }, YI), JI), XI), k7), kd = new WeakMap, P7 = e=>kd.get(e) || !1, R7 = (e, t, n) =>{ var r = kd.get(e) || !1; kd.set(e, !0); try { t(), n() } finally { kd.set(e, r) } }; function Wx(e, t, n) { var r = Od.get(e) || [ ], i = Fd.get(e) || new Set, o, a, u = g=>{ if (g) { var m = g.join(','); a.has(m) || (a.add(m), o.push(g)) } }; if (n) { o = [ ], a = new Set; for (var c of r) { var f = n(c); u(f) } } else o = r, a = i; for (var h of t) u(h); Od.set(e, o), Fd.set(e, a) } var T7 = (e, t) =>{ for (var n of C.pathRefs(e)) WI.transform(n, t); for (var r of C.pointRefs(e)) VI.transform(r, t); for (var i of C.rangeRefs(e)) KI.transform(i, t); if (!P7(e)) { var o = N.operationCanTransformPath(t) ? a=>N.transform(a, t) : void 0; Wx(e, e.getDirtyPaths(t), o) } K.transform(e, t), e.operations.push(t), C.normalize(e, { operation: t }), t.type === 'set_selection' && (e.marks = null), kl.get(e) || (kl.set(e, !0), Promise.resolve().then(() =>{ kl.set(e, !1), e.onChange({ operation: t }), e.operations = [ ] })) }, I7 = (e, t) =>{ switch (t.type) { case 'insert_text': case 'remove_text': case 'set_node': { var { path: n } = t; return N.levels(n) } case 'insert_node': { var { node: r, path: i } = t, o = N.levels(i), a = Ee.isText(r) ? [ ] : Array.from(de.nodes(r), j=>{ var [, X] = j; return i.concat(X) }); return [...o, ...a] } case 'merge_node': { var { path: u } = t, c = N.ancestors(u), f = N.previous(u); return [...c, f] } case 'move_node': { var { path: h, newPath: g } = t; if (N.equals(h, g)) return []; var m = [ ], y = [ ]; for (var v of N.ancestors(h)) { var p = N.transform(v, t); m.push(p) } for (var E of N.ancestors(g)) { var _ = N.transform(E, t); y.push(_) } var b = y[y.length - 1], x = g[g.length - 1], O = b.concat(x); return [...m, ...y, O] } case 'remove_node': { var { path: B } = t, k = N.ancestors(B); return [...k] } case 'split_node': { var { path: P } = t, I = N.levels(P), Y = N.next(P); return [...I, Y] } default: return [] } }, N7 = e=>{ var { selection: t } = e; return t ? de.fragment(e, t) : [ ] }, L7 = (e, t) =>{ var [n, r] = t; if (!Ee.isText(n)) { if (we.isElement(n) && n.children.length === 0) { var i = { text: '' }; K.insertNodes(e, i, { at: r.concat(0), voids: !0 }); return } for (var o = C.isEditor(n) ? !1 : we.isElement(n) && (e.isInline(n) || n.children.length === 0 || Ee.isText(n.children[0]) || e.isInline(n.children[0])), a = 0, u = 0; u < n.children.length; u++, a++) { var c = de.get(e, r); if (!Ee.isText(c)) { var f = c.children[a], h = c.children[a - 1], g = u === n.children.length - 1, m = Ee.isText(f) || we.isElement(f) && e.isInline(f); if (m !== o) K.removeNodes(e, { at: r.concat(a), voids: !0 }), a--; else if (we.isElement(f)) { if (e.isInline(f)) { if (h == null || !Ee.isText(h)) { var y = { text: '' }; K.insertNodes(e, y, { at: r.concat(a), voids: !0 }), a++ } else if (g) { var v = { text: '' }; K.insertNodes(e, v, { at: r.concat(a + 1), voids: !0 }), a++ } } } else h != null && Ee.isText(h) && (Ee.equals(f, h, { loose: !0 }) ? (K.mergeNodes(e, { at: r.concat(a), voids: !0 }), a--) : h.text === '' ? (K.removeNodes(e, { at: r.concat(a - 1), voids: !0 }), a--) : f.text === '' && (K.removeNodes(e, { at: r.concat(a), voids: !0 }), a--)) } } } }, M7 = (e, t) =>{ var { iteration: n, initialDirtyPathsLength: r } = t, i = r * 42; if (n > i) throw new Error('Could not completely normalize the editor after '.concat(i, ' iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.')); return !0 }, $7 = function (t) { var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }, { voids: r = !1, mode: i = 'lowest', at: o = t.selection, match: a } = n; if (o) { var u = C.path(t, o), c = i === 'lowest'; for (var [f, h]of C.levels(t, { at: u, voids: r, match: a, reverse: c })) if (!Ee.isText(f)) { if (q.isRange(o)) { if (N.isAncestor(h, o.anchor.path) && N.isAncestor(h, o.focus.path)) return [f, h] } else if (!N.equals(u, h)) return [f, h] } } }; function Vx(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function (i) { return Object.getOwnPropertyDescriptor(e, i).enumerable })), n.push.apply(n, r) } return n } function Kx(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : { }; t % 2 ? Vx(Object(n), !0).forEach(function (r) { Fn(e, r, n[r]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Vx(Object(n)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) }) } return e } var j7 = (e, t, n) =>{ var { selection: r } = e; if (r) { var i = (g, m) =>{ if (!Ee.isText(g)) return !1; var [y, v] = C.parent(e, m); return !e.isVoid(y) || e.markableVoid(y) }, o = q.isExpanded(r), a = !1; if (!o) { var [u, c] = C.node(e, r); if (u && i(u, c)) { var [f] = C.parent(e, c); a = f && e.markableVoid(f) } } if (o || a) K.setNodes(e, { [ t ]: n }, { match: i, split: !0, voids: !0 }); else { var h = Kx(Kx({ }, C.marks(e) || { }), { }, { [ t ]: n }); e.marks = h, kl.get(e) || e.onChange() } } }; function qx(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function (i) { return Object.getOwnPropertyDescriptor(e, i).enumerable })), n.push.apply(n, r) } return n } function Gx(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : { }; t % 2 ? qx(Object(n), !0).forEach(function (r) { Fn(e, r, n[r]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : qx(Object(n)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) }) } return e } var z7 = function (t, n) { var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { }, i = C.point(t, n, { edge: 'end' }), o = C.end(t, [ ]), a = { anchor: i, focus: o }, { distance: u = 1 } = r, c = 0, f; for (var h of C.positions(t, Gx(Gx({ }, r), { }, { at: a }))) { if (c > u) break; c !== 0 && (f = h), c++ } return f }; function Qx(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function (i) { return Object.getOwnPropertyDescriptor(e, i).enumerable })), n.push.apply(n, r) } return n } function Yx(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : { }; t % 2 ? Qx(Object(n), !0).forEach(function (r) { Fn(e, r, n[r]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Qx(Object(n)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) }) } return e } var U7 = function (t, n) { var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { }, i = C.start(t, [ ]), o = C.point(t, n, { edge: 'start' }), a = { anchor: i, focus: o }, { distance: u = 1 } = r, c = 0, f; for (var h of C.positions(t, Yx(Yx({ }, r), { }, { at: a, reverse: !0 }))) { if (c > u) break; c !== 0 && (f = h), c++ } return f }, H7 = (e, t) =>{ var { selection: n } = e; n && q.isCollapsed(n) && K.delete(e, { unit: t, reverse: !0 }) }, W7 = (e, t) =>{ var { selection: n } = e; n && q.isCollapsed(n) && K.delete(e, { unit: t }) }, V7 = function (t) { var { direction: n = 'forward' } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }, { selection: r } = t; r && q.isExpanded(r) && K.delete(t, { reverse: n === 'backward' }) }, K7 = (e, t) =>[C.start(e, t), C.end(e, t)]; function Jx(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function (i) { return Object.getOwnPropertyDescriptor(e, i).enumerable })), n.push.apply(n, r) } return n } function Xx(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : { }; t % 2 ? Jx(Object(n), !0).forEach(function (r) { Fn(e, r, n[r]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Jx(Object(n)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) }) } return e } var q7 = function (t) { var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }; return C.above(t, Xx(Xx({ }, n), { }, { match: r=>we.isElement(r) && C.isElementReadOnly(t, r) })) }, G7 = (e, t) =>C.point(e, t, { edge: 'end' }), Q7 = (e, t) =>{ var n = C.path(e, t, { edge: 'start' }); return C.node(e, n) }, Y7 = (e, t) =>{ var n = C.range(e, t); return de.fragment(e, n) }; function Zx(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function (i) { return Object.getOwnPropertyDescriptor(e, i).enumerable })), n.push.apply(n, r) } return n } function e2(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : { }; t % 2 ? Zx(Object(n), !0).forEach(function (r) { Fn(e, r, n[r]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Zx(Object(n)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) }) } return e } var J7 = function (t) { var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }; return C.above(t, e2(e2({ }, n), { }, { match: r=>we.isElement(r) && C.isVoid(t, r) })) }, X7 = (e, t) =>t.children.some(n=>we.isElement(n) && C.isBlock(e, n)), Z7 = (e, t) =>t.children.some(n=>Ee.isText(n) || C.isInline(e, n)), eN = (e, t) =>de.has(e, t), tN = (e, t) =>t.children.every(n=>Ee.isText(n)), nN = e=>{ K.splitNodes(e, { always: !0 }) }, rN = (e, t, n) =>{ K.insertNodes(e, t, n) }, iN = e=>{ K.splitNodes(e, { always: !0 }) }; function t2(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function (i) { return Object.getOwnPropertyDescriptor(e, i).enumerable })), n.push.apply(n, r) } return n } function oN(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : { }; t % 2 ? t2(Object(n), !0).forEach(function (r) { Fn(e, r, n[r]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : t2(Object(n)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) }) } return e } var sN = function (t, n) { var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { }, { selection: i, marks: o } = t; if (i) { if (o) { var a = oN({ text: n }, o); K.insertNodes(t, a, { at: r.at, voids: r.voids }) } else K.insertText(t, n, r); t.marks = null } }, aN = (e, t) =>!e.isInline(t), uN = (e, t, n) =>C.isStart(e, t, n) || C.isEnd(e, t, n), lN = (e, t) =>{ var { children: n } = t, [ r ] = n; return n.length === 0 || n.length === 1 && Ee.isText(r) && r.text === '' && !e.isVoid(t) }, cN = (e, t, n) =>{ var r = C.end(e, n); return je.equals(t, r) }, fN = e=>{ var t = Sx.get(e); return t === void 0 ? !0 : t }, dN = (e, t, n) =>{ if (t.offset !== 0) return !1; var r = C.start(e, n); return je.equals(t, r) }, hN = (e, t) =>{ var n = C.path(e, t, { edge: 'end' }); return C.node(e, n) }, pN = function (t, n) { var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { }, i = C.path(t, n, r), o = de.leaf(t, i); return [o, i] }; function gN(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }; return function * () { var { at: n = e.selection, reverse: r = !1, voids: i = !1 } = t, { match: o } = t; if (o == null && (o = () =>!0), !!n) { var a = [ ], u = C.path(e, n); for (var [c, f]of de.levels(e, u)) if (o(c, f) && (a.push([c, f]), !i && we.isElement(c) && C.isVoid(e, c))) break; r && a.reverse(), yield * a } }() } var mN = [ 'text' ], vN = [ 'text' ], yN = function (t) { var { marks: n, selection: r } = t; if (!r) return null; var { anchor: i, focus: o } = r; if (n) return n; if (q.isExpanded(r)) { var a = C.isEnd(t, i, i.path); if (a) { var u = C.after(t, i); u && (i = u) } var [c] = C.nodes(t, { match: Ee.isText, at: { anchor: i, focus: o } }); if (c) { var [f] = c, h = ji(f, mN); return h } else return { } } var { path: g } = i, [ m ] = C.leaf(t, g); if (i.offset === 0) { var y = C.previous(t, { at: g, match: Ee.isText }), v = C.above(t, { match: O=>we.isElement(O) && C.isVoid(t, O) && t.markableVoid(O) }); if (!v) { var p = C.above(t, { match: O=>we.isElement(O) && C.isBlock(t, O) }); if (y && p) { var [E, _] = y, [ , b ] = p; N.isAncestor(b, _) && (m = E) } } } var x = ji(m, vN); return x }, wN = function (t) { var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }, { mode: r = 'lowest', voids: i = !1 } = n, { match: o, at: a = t.selection } = n; if (a) { var u = C.after(t, a, { voids: i }); if (u) { var [, c] = C.last(t, [ ]), f = [ u.path, c ]; if (N.isPath(a) && a.length === 0) throw new Error('Cannot get the next node from the root node!'); if (o == null) if (N.isPath(a)) { var [h] = C.parent(t, a); o = m=>h.children.includes(m) } else o = () =>!0; var [g] = C.nodes(t, { at: f, match: o, mode: r, voids: i }); return g } } }, bN = function (t, n) { var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { }, i = C.path(t, n, r), o = de.get(t, i); return [o, i] }; function _N(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }; return function * () { var { at: n = e.selection, mode: r = 'all', universal: i = !1, reverse: o = !1, voids: a = !1, ignoreNonSelectable: u = !1 } = t, { match: c } = t; if (c || (c = () =>!0), !!n) { var f, h; if (o7.isSpan(n)) f = n[0], h = n[1]; else { var g = C.path(e, n, { edge: 'start' }), m = C.path(e, n, { edge: 'end' }); f = o ? m : g, h = o ? g : m } var y = de.nodes(e, { reverse: o, from: f, to: h, pass: O=>{ var [B] = O; return we.isElement(B) ? !!(!a && (C.isVoid(e, B) || C.isElementReadOnly(e, B)) || u && !C.isSelectable(e, B)) : !1 } }), v = [ ], p; for (var [E, _]of y) if (!(u && we.isElement(E) && !C.isSelectable(e, E))) { var b = p && N.compare(_, p[1]) === 0; if (!(r === 'highest' && b)) { if (!c(E, _)) { if (i && !b && Ee.isText(E)) return; continue } if (r === 'lowest' && b) { p = [ E, _ ]; continue } var x = r === 'lowest' ? p : [ E, _ ]; x && (i ? v.push(x) : yield x), p = [ E, _ ] } } r === 'lowest' && p && (i ? v.push(p) : yield p), i && (yield * v) } }() } var CN = function (t) { var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }, { force: r = !1, operation: i } = n, o = h=>Od.get(h) || [ ], a = h=>Fd.get(h) || new Set, u = h=>{ var g = o(h).pop(), m = g.join(','); return a(h).delete(m), g }; if (C.isNormalizing(t)) { if (r) { var c = Array.from(de.nodes(t), h=>{ var [, g] = h; return g }), f = new Set(c.map(h=>h.join(','))); Od.set(t, c), Fd.set(t, f) } o(t).length !== 0 && C.withoutNormalizing(t, () =>{ for (var h of o(t)) if (de.has(t, h)) { var g = C.node(t, h), [ m, y ] = g; we.isElement(m) && m.children.length === 0 && t.normalizeNode(g, { operation: i }) } for (var v = o(t), p = v.length, E = 0; v.length !== 0; ) { if (!t.shouldNormalize({ dirtyPaths: v, iteration: E, initialDirtyPathsLength: p, operation: i })) return; var _ = u(t); if (de.has(t, _)) { var b = C.node(t, _); t.normalizeNode(b, { operation: i }) } E++, v = o(t) } }) } }, EN = function (t, n) { var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { }, i = C.path(t, n, r), o = N.parent(i), a = C.node(t, o); return a }, DN = function (t, n) { var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { }, { affinity: i = 'forward' } = r, o = { current: n, affinity: i, unref() { var { current: u } = o, c = C.pathRefs(t); return c.delete(o), o.current = null, u } }, a = C.pathRefs(t); return a.add(o), o }, xN = e=>{ var t = Ox.get(e); return t || (t = new Set, Ox.set(e, t)), t }, AN = function (t, n) { var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { }, { depth: i, edge: o } = r; if (N.isPath(n)) { if (o === 'start') { var [, a] = de.first(t, n); n = a } else if (o === 'end') { var [, u] = de.last(t, n); n = u } } return q.isRange(n) && (o === 'start' ? n = q.start(n) : o === 'end' ? n = q.end(n) : n = N.common(n.anchor.path, n.focus.path)), je.isPoint(n) && (n = n.path), i != null && (n = n.slice(0, i)), n }, SN = function (t, n) { var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { }, { affinity: i = 'forward' } = r, o = { current: n, affinity: i, unref() { var { current: u } = o, c = C.pointRefs(t); return c.delete(o), o.current = null, u } }, a = C.pointRefs(t); return a.add(o), o }, ON = e=>{ var t = Fx.get(e); return t || (t = new Set, Fx.set(e, t)), t }, FN = function (t, n) { var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { }, { edge: i = 'start' } = r; if (N.isPath(n)) { var o; if (i === 'end') { var [, a] = de.last(t, n); o = a } else { var [, u] = de.first(t, n); o = u } var c = de.get(t, o); if (!Ee.isText(c)) throw new Error('Cannot get the '.concat(i, ' point in the node at path [').concat(n, '] because it has no ').concat(i, ' text node.')); return { path: o, offset: i === 'end' ? c.text.length : 0 } } if (q.isRange(n)) { var [f, h] = q.edges(n); return i === 'start' ? f : h } return n }; function BN(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }; return function * () { var { at: n = e.selection, unit: r = 'offset', reverse: i = !1, voids: o = !1, ignoreNonSelectable: a = !1 } = t; if (!n) return; var u = C.range(e, n), [ c, f ] = q.edges(u), h = i ? f : c, g = !1, m = '', y = 0, v = 0, p = 0; for (var [E, _]of C.nodes(e, { at: n, reverse: i, voids: o, ignoreNonSelectable: a })) { if (we.isElement(E)) { if (!o && (e.isVoid(E) || e.isElementReadOnly(E))) { yield C.start(e, _); continue } if (e.isInline(E)) continue; if (C.hasInlines(e, E)) { var b = N.isAncestor(_, f.path) ? f : C.end(e, _), x = N.isAncestor(_, c.path) ? c : C.start(e, _); m = C.string(e, { anchor: x, focus: b }, { voids: o }), g = !0 } } if (Ee.isText(E)) { var O = N.equals(_, h.path); for (O ? (v = i ? h.offset : E.text.length - h.offset, p = h.offset) : (v = E.text.length, p = i ? v : 0), (O || g || r === 'offset') && (yield { path: _, offset: p }, g = !1); ; ) { if (y === 0) { if (m === '') break; y = B(m, r, i), m = bv(m, y, i) [1] } if (p = i ? p - y : p + y, v = v - y, v < 0) { y = - v; break } y = 0, yield { path: _, offset: p } } } } function B(k, P, I) { return P === 'character' ? wv(k, I) : P === 'word' ? f7(k, I) : P === 'line' || P === 'block' ? k.length : 1 } }() } var kN = function (t) { var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }, { mode: r = 'lowest', voids: i = !1 } = n, { match: o, at: a = t.selection } = n; if (a) { var u = C.before(t, a, { voids: i }); if (u) { var [, c] = C.first(t, [ ]), f = [ u.path, c ]; if (N.isPath(a) && a.length === 0) throw new Error('Cannot get the previous node from the root node!'); if (o == null) if (N.isPath(a)) { var [h] = C.parent(t, a); o = m=>h.children.includes(m) } else o = () =>!0; var [g] = C.nodes(t, { reverse: !0, at: f, match: o, mode: r, voids: i }); return g } } }, PN = function (t, n) { var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { }, { affinity: i = 'forward' } = r, o = { current: n, affinity: i, unref() { var { current: u } = o, c = C.rangeRefs(t); return c.delete(o), o.current = null, u } }, a = C.rangeRefs(t); return a.add(o), o }, RN = e=>{ var t = Bx.get(e); return t || (t = new Set, Bx.set(e, t)), t }, TN = (e, t, n) =>{ if (q.isRange(t) && !n) return t; var r = C.start(e, t), i = C.end(e, n || t); return { anchor: r, focus: i } }; function n2(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function (i) { return Object.getOwnPropertyDescriptor(e, i).enumerable })), n.push.apply(n, r) } return n } function IN(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : { }; t % 2 ? n2(Object(n), !0).forEach(function (r) { Fn(e, r, n[r]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : n2(Object(n)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) }) } return e } var NN = (e, t) =>{ var { selection: n } = e; if (n) { var r = (h, g) =>{ if (!Ee.isText(h)) return !1; var [m, y] = C.parent(e, g); return !e.isVoid(m) || e.markableVoid(m) }, i = q.isExpanded(n), o = !1; if (!i) { var [a, u] = C.node(e, n); if (a && r(a, u)) { var [c] = C.parent(e, u); o = c && e.markableVoid(c) } } if (i || o) K.unsetNodes(e, t, { match: r, split: !0, voids: !0 }); else { var f = IN({ }, C.marks(e) || { }); delete f[t], e.marks = f, kl.get(e) || e.onChange() } } }, LN = (e, t) =>{ Sx.set(e, t) }, MN = (e, t) =>C.point(e, t, { edge: 'start' }), $N = function (t, n) { var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { }, { voids: i = !1 } = r, o = C.range(t, n), [ a, u ] = q.edges(o), c = ''; for (var [f, h]of C.nodes(t, { at: o, match: Ee.isText, voids: i })) { var g = f.text; N.equals(h, u.path) && (g = g.slice(0, u.offset)), N.equals(h, a.path) && (g = g.slice(a.offset)), c += g } return c }, jN = function (t, n) { var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { }, { voids: i = !1 } = r, [ o, a ] = q.edges(n); if (o.offset !== 0 || a.offset !== 0 || q.isCollapsed(n) || N.hasPrevious(a.path)) return n; var u = C.above(t, { at: a, match: v=>we.isElement(v) && C.isBlock(t, v), voids: i }), c = u ? u[1] : [ ], f = C.start(t, o), h = { anchor: f, focus: a }, g = !0; for (var [m, y]of C.nodes(t, { at: h, match: Ee.isText, reverse: !0, voids: i })) { if (g) { g = !1; continue } if (m.text !== '' || N.isBefore(y, c)) { a = { path: y, offset: m.text.length }; break } } return { anchor: o, focus: a } }, zN = (e, t) =>{ var n = C.isNormalizing(e); C.setNormalizing(e, !1); try { t() } finally { C.setNormalizing(e, n) } C.normalize(e) }, UN = function (t) { var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }; C.withoutNormalizing(t, () =>{ var r, i, { reverse: o = !1, unit: a = 'character', distance: u = 1, voids: c = !1 } = n, { at: f = t.selection, hanging: h = !1 } = n; if (f) { var g = !1; if (q.isRange(f) && q.isCollapsed(f) && (g = !0, f = f.anchor), je.isPoint(f)) { var m = C.void(t, { at: f, mode: 'highest' }); if (!c && m) { var [, y] = m; f = y } else { var v = { unit: a, distance: u }, p = o ? C.before(t, f, v) || C.start(t, [ ]) : C.after(t, f, v) || C.end(t, [ ]); f = { anchor: f, focus: p }, h = !0 } } if (N.isPath(f)) { K.removeNodes(t, { at: f, voids: c }); return } if (!q.isCollapsed(f)) { if (!h) { var [, E] = q.edges(f), _ = C.end(t, [ ]); je.equals(E, _) || (f = C.unhangRange(t, f, { voids: c })) } var [b, x] = q.edges(f), O = C.above(t, { match: Se=>we.isElement(Se) && C.isBlock(t, Se), at: b, voids: c }), B = C.above(t, { match: Se=>we.isElement(Se) && C.isBlock(t, Se), at: x, voids: c }), k = O && B && !N.equals(O[1], B[1]), P = N.equals(b.path, x.path), I = c ? null : (r = C.void(t, { at: b, mode: 'highest' })) !== null && r !== void 0 ? r : C.elementReadOnly(t, { at: b, mode: 'highest' }), Y = c ? null : (i = C.void(t, { at: x, mode: 'highest' })) !== null && i !== void 0 ? i : C.elementReadOnly(t, { at: x, mode: 'highest' }); if (I) { var j = C.before(t, b); j && O && N.isAncestor(O[1], j.path) && (b = j) } if (Y) { var X = C.after(t, x); X && B && N.isAncestor(B[1], X.path) && (x = X) } var $ = [ ], U; for (var T of C.nodes(t, { at: f, voids: c })) { var [G, se] = T; U && N.compare(se, U) === 0 || (!c && we.isElement(G) && (C.isVoid(t, G) || C.isElementReadOnly(t, G)) || !N.isCommon(se, b.path) && !N.isCommon(se, x.path)) && ($.push(T), U = se) } var re = Array.from($, Se=>{ var [, Re] = Se; return C.pathRef(t, Re) }), V = C.pointRef(t, b), te = C.pointRef(t, x), le = ''; if (!P && !I) { var ce = V.current, [ ye ] = C.leaf(t, ce), { path: De } = ce, { offset: Ce } = b, L = ye.text.slice(Ce); L.length > 0 && (t.apply({ type: 'remove_text', path: De, offset: Ce, text: L }), le = L) } if (re.reverse().map(Se=>Se.unref()).filter(Se=>Se !== null).forEach(Se=>K.removeNodes(t, { at: Se, voids: c })), !Y) { var ne = te.current, [ J ] = C.leaf(t, ne), { path: Q } = ne, ge = P ? b.offset : 0, he = J.text.slice(ge, x.offset); he.length > 0 && (t.apply({ type: 'remove_text', path: Q, offset: ge, text: he }), le = he) } !P && k && te.current && V.current && K.mergeNodes(t, { at: te.current, hanging: !0, voids: c }), g && o && a === 'character' && le.length > 1 && le.match(/[\u0E00-\u0E7F]+/) && K.insertText(t, le.slice(0, le.length - u)); var Pe = V.unref(), me = te.unref(), Fe = o ? Pe || me : me || Pe; n.at == null && Fe && K.select(t, Fe) } } }) }, HN = function (t, n) { var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { }; C.withoutNormalizing(t, () =>{ var { hanging: i = !1, voids: o = !1 } = r, { at: a = yv(t), batchDirty: u = !0 } = r; if (n.length) { if (q.isRange(a)) if (i || (a = C.unhangRange(t, a, { voids: o })), q.isCollapsed(a)) a = a.anchor; else { var [, c] = q.edges(a); if (!o && C.void(t, { at: c })) return; var f = C.pointRef(t, c); K.delete(t, { at: a }), a = f.unref() } else N.isPath(a) && (a = C.start(t, a)); if (!(!o && C.void(t, { at: a }))) { var h = C.above(t, { at: a, match: L=>we.isElement(L) && C.isInline(t, L), mode: 'highest', voids: o }); if (h) { var [, g] = h; if (C.isEnd(t, a, g)) { var m = C.after(t, g); a = m } else if (C.isStart(t, a, g)) { var y = C.before(t, g); a = y } } var v = C.above(t, { match: L=>we.isElement(L) && C.isBlock(t, L), at: a, voids: o }), [ , p ] = v, E = C.isStart(t, a, p), _ = C.isEnd(t, a, p), b = E && _, x = !E || E && _, O = !_, [ , B ] = de.first({ children: n }, [ ]), [ , k ] = de.last({ children: n }, [ ]), P = [ ], I = L=>{ var [ne, J] = L, Q = J.length === 0; return Q ? !1 : b ? !0 : !(x && N.isAncestor(J, B) && we.isElement(ne) && !t.isVoid(ne) && !t.isInline(ne) || O && N.isAncestor(J, k) && we.isElement(ne) && !t.isVoid(ne) && !t.isInline(ne)) }; for (var Y of de.nodes({ children: n }, { pass: I })) I(Y) && P.push(Y); var j = [ ], X = [ ], $ = [ ], U = !0, T = !1; for (var [G]of P) we.isElement(G) && !t.isInline(G) ? (U = !1, T = !0, X.push(G)) : U ? j.push(G) : $.push(G); var [se] = C.nodes(t, { at: a, match: L=>Ee.isText(L) || C.isInline(t, L), mode: 'highest', voids: o }), [ , re ] = se, V = C.isStart(t, a, re), te = C.isEnd(t, a, re), le = C.pathRef(t, _ && !$.length ? N.next(p) : p), ce = C.pathRef(t, te ? N.next(re) : re); K.splitNodes(t, { at: a, match: L=>T ? we.isElement(L) && C.isBlock(t, L) : Ee.isText(L) || C.isInline(t, L), mode: T ? 'lowest' : 'highest', always: T && (!E || j.length > 0) && (!_ || $.length > 0), voids: o }); var ye = C.pathRef(t, !V || V && te ? N.next(re) : re); if (K.insertNodes(t, j, { at: ye.current, match: L=>Ee.isText(L) || C.isInline(t, L), mode: 'highest', voids: o, batchDirty: u }), b && !j.length && X.length && !$.length && K.delete(t, { at: p, voids: o }), K.insertNodes(t, X, { at: le.current, match: L=>we.isElement(L) && C.isBlock(t, L), mode: 'lowest', voids: o, batchDirty: u }), K.insertNodes(t, $, { at: ce.current, match: L=>Ee.isText(L) || C.isInline(t, L), mode: 'highest', voids: o, batchDirty: u }), !r.at) { var De; if ($.length > 0 && ce.current ? De = N.previous(ce.current) : X.length > 0 && le.current ? De = N.previous(le.current) : ye.current && (De = N.previous(ye.current)), De) { var Ce = C.end(t, De); K.select(t, Ce) } } ye.unref(), le.unref(), ce.unref() } } }) }, WN = function (t) { var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }, { edge: r = 'anchor' } = n, { selection: i } = t; if (i) { if (r === 'anchor') K.select(t, i.anchor); else if (r === 'focus') K.select(t, i.focus); else if (r === 'start') { var [o] = q.edges(i); K.select(t, o) } else if (r === 'end') { var [, a] = q.edges(i); K.select(t, a) } } else return }, VN = e=>{ var { selection: t } = e; t && e.apply({ type: 'set_selection', properties: t, newProperties: null }) }, KN = function (t) { var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }, { selection: r } = t, { distance: i = 1, unit: o = 'character', reverse: a = !1 } = n, { edge: u = null } = n; if (r) { u === 'start' && (u = q.isBackward(r) ? 'focus' : 'anchor'), u === 'end' && (u = q.isBackward(r) ? 'anchor' : 'focus'); var { anchor: c, focus: f } = r, h = { distance: i, unit: o, ignoreNonSelectable: !0 }, g = { }; if (u == null || u === 'anchor') { var m = a ? C.before(t, c, h) : C.after(t, c, h); m && (g.anchor = m) } if (u == null || u === 'focus') { var y = a ? C.before(t, f, h) : C.after(t, f, h); y && (g.focus = y) } K.setSelection(t, g) } }, qN = (e, t) =>{ var { selection: n } = e; if (t = C.range(e, t), n) { K.setSelection(e, t); return } if (!q.isRange(t)) throw new Error('When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: '.concat(rn.stringify(t))); e.apply({ type: 'set_selection', properties: n, newProperties: t }) }; function r2(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function (i) { return Object.getOwnPropertyDescriptor(e, i).enumerable })), n.push.apply(n, r) } return n } function i2(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : { }; t % 2 ? r2(Object(n), !0).forEach(function (r) { Fn(e, r, n[r]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : r2(Object(n)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) }) } return e } var GN = function (t, n) { var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { }, { selection: i } = t, { edge: o = 'both' } = r; if (i) { o === 'start' && (o = q.isBackward(i) ? 'focus' : 'anchor'), o === 'end' && (o = q.isBackward(i) ? 'anchor' : 'focus'); var { anchor: a, focus: u } = i, c = o === 'anchor' ? a : u; K.setSelection(t, { [ o === 'anchor' ? 'anchor' : 'focus' ]: i2(i2({ }, c), n) }) } }, QN = (e, t) =>{ var { selection: n } = e, r = { }, i = { }; if (n) { for (var o in t) (o === 'anchor' && t.anchor != null && !je.equals(t.anchor, n.anchor) || o === 'focus' && t.focus != null && !je.equals(t.focus, n.focus) || o !== 'anchor' && o !== 'focus' && t[o] !== n[o]) && (r[o] = n[o], i[o] = t[o]); Object.keys(r).length > 0 && e.apply({ type: 'set_selection', properties: r, newProperties: i }) } }, YN = function (t, n) { var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { }; C.withoutNormalizing(t, () =>{ var { hanging: i = !1, voids: o = !1, mode: a = 'lowest', batchDirty: u = !0 } = r, { at: c, match: f, select: h } = r; if (de.isNode(n) && (n = [ n ]), n.length !== 0) { var [g] = n; if (c || (c = yv(t), h !== !1 && (h = !0)), h == null && (h = !1), q.isRange(c)) if (i || (c = C.unhangRange(t, c, { voids: o })), q.isCollapsed(c)) c = c.anchor; else { var [, m] = q.edges(c), y = C.pointRef(t, m); K.delete(t, { at: c }), c = y.unref() } if (je.isPoint(c)) { f == null && (Ee.isText(g) ? f = j=>Ee.isText(j) : t.isInline(g) ? f = j=>Ee.isText(j) || C.isInline(t, j) : f = j=>we.isElement(j) && C.isBlock(t, j)); var [v] = C.nodes(t, { at: c.path, match: f, mode: a, voids: o }); if (v) { var [, p] = v, E = C.pathRef(t, p), _ = C.isEnd(t, c, p); K.splitNodes(t, { at: c, match: f, mode: a, voids: o }); var b = E.unref(); c = _ ? N.next(b) : b } else return } var x = N.parent(c), O = c[c.length - 1]; if (!(!o && C.void(t, { at: x }))) { if (u) { var B = [ ], k = N.levels(x); R7(t, () =>{ var j = function () { var U = x.concat(O); O++; var T = { type: 'insert_node', path: U, node: X }; t.apply(T), c = N.next(c), B.push(T), Ee.isText ? k.push(...Array.from(de.nodes(X), G=>{ var [, se] = G; return U.concat(se) })) : k.push(U) }; for (var X of n) j() }, () =>{ Wx(t, k, j=>{ var X = j; for (var $ of B) if (N.operationCanTransformPath($) && (X = N.transform(X, $), !X)) return null; return X }) }) } else for (var P of n) { var I = x.concat(O); O++, t.apply({ type: 'insert_node', path: I, node: P }), c = N.next(c) } if (c = N.previous(c), h) { var Y = C.end(t, c); Y && K.select(t, Y) } } } }) }, JN = function (t) { var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }; C.withoutNormalizing(t, () =>{ var { at: r = t.selection, mode: i = 'lowest', voids: o = !1 } = n, { match: a } = n; if (a == null && (a = N.isPath(r) ? Ia(t, r) : O=>we.isElement(O) && C.isBlock(t, O)), !!r) { var u = C.nodes(t, { at: r, match: a, mode: i, voids: o }), c = Array.from(u, O=>{ var [, B] = O; return C.pathRef(t, B) }); for (var f of c) { var h = f.unref(); if (h.length < 2) throw new Error('Cannot lift node at a path ['.concat(h, '] because it has a depth of less than `2`.')); var g = C.node(t, N.parent(h)), [ m, y ] = g, v = h[h.length - 1], { length: p } = m.children; if (p === 1) { var E = N.next(y); K.moveNodes(t, { at: h, to: E, voids: o }), K.removeNodes(t, { at: y, voids: o }) } else if (v === 0) K.moveNodes(t, { at: h, to: y, voids: o }); else if (v === p - 1) { var _ = N.next(y); K.moveNodes(t, { at: h, to: _, voids: o }) } else { var b = N.next(h), x = N.next(y); K.splitNodes(t, { at: b, voids: o }), K.moveNodes(t, { at: h, to: x, voids: o }) } } } }) }, XN = [ 'text' ], ZN = [ 'children' ], o2 = (e, t) =>{ if (we.isElement(t)) { var n = t; return C.isVoid(e, t) ? !0 : n.children.length === 1 ? o2(e, n.children[0]) : !1 } else return !C.isEditor(t) }, e9 = function (t) { var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }; C.withoutNormalizing(t, () =>{ var { match: r, at: i = t.selection } = n, { hanging: o = !1, voids: a = !1, mode: u = 'lowest' } = n; if (i) { if (r == null) if (N.isPath(i)) { var [c] = C.parent(t, i); r = j=>c.children.includes(j) } else r = j=>we.isElement(j) && C.isBlock(t, j); if (!o && q.isRange(i) && (i = C.unhangRange(t, i, { voids: a })), q.isRange(i)) if (q.isCollapsed(i)) i = i.anchor; else { var [, f] = q.edges(i), h = C.pointRef(t, f); K.delete(t, { at: i }), i = h.unref(), n.at == null && K.select(t, i) } var [g] = C.nodes(t, { at: i, match: r, voids: a, mode: u }), m = C.previous(t, { at: i, match: r, voids: a, mode: u }); if (!(!g || !m)) { var [y, v] = g, [ p, E ] = m; if (!(v.length === 0 || E.length === 0)) { var _ = N.next(E), b = N.common(v, E), x = N.isSibling(v, E), O = Array.from(C.levels(t, { at: v }), j=>{ var [X] = j; return X }).slice(b.length).slice(0, - 1), B = C.above(t, { at: v, mode: 'highest', match: j=>O.includes(j) && o2(t, j) }), k = B && C.pathRef(t, B[1]), P, I; if (Ee.isText(y) && Ee.isText(p)) { var Y = ji(y, XN); I = p.text.length, P = Y } else if (we.isElement(y) && we.isElement(p)) { var Y = ji(y, ZN); I = p.children.length, P = Y } else throw new Error('Cannot merge the node at path ['.concat(v, '] with the previous sibling because it is not the same kind: ').concat(rn.stringify(y), ' ').concat(rn.stringify(p))); x || K.moveNodes(t, { at: v, to: _, voids: a }), k && K.removeNodes(t, { at: k.current, voids: a }), we.isElement(p) && C.isEmpty(t, p) || Ee.isText(p) && p.text === '' && E[E.length - 1] !== 0 ? K.removeNodes(t, { at: E, voids: a }) : t.apply({ type: 'merge_node', path: _, position: I, properties: P }), k && k.unref() } } } }) }, t9 = (e, t) =>{ C.withoutNormalizing(e, () =>{ var { to: n, at: r = e.selection, mode: i = 'lowest', voids: o = !1 } = t, { match: a } = t; if (r) { a == null && (a = N.isPath(r) ? Ia(e, r) : y=>we.isElement(y) && C.isBlock(e, y)); var u = C.pathRef(e, n), c = C.nodes(e, { at: r, match: a, mode: i, voids: o }), f = Array.from(c, y=>{ var [, v] = y; return C.pathRef(e, v) }); for (var h of f) { var g = h.unref(), m = u.current; g.length !== 0 && e.apply({ type: 'move_node', path: g, newPath: m }), u.current && N.isSibling(m, g) && N.isAfter(m, g) && (u.current = N.next(u.current)) } u.unref() } }) }, n9 = function (t) { var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }; C.withoutNormalizing(t, () =>{ var { hanging: r = !1, voids: i = !1, mode: o = 'lowest' } = n, { at: a = t.selection, match: u } = n; if (a) { u == null && (u = N.isPath(a) ? Ia(t, a) : y=>we.isElement(y) && C.isBlock(t, y)), !r && q.isRange(a) && (a = C.unhangRange(t, a, { voids: i })); var c = C.nodes(t, { at: a, match: u, mode: o, voids: i }), f = Array.from(c, y=>{ var [, v] = y; return C.pathRef(t, v) }); for (var h of f) { var g = h.unref(); if (g) { var [m] = C.node(t, g); t.apply({ type: 'remove_node', path: g, node: m }) } } } }) }, r9 = function (t, n) { var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { }; C.withoutNormalizing(t, () =>{ var { match: i, at: o = t.selection, compare: a, merge: u } = r, { hanging: c = !1, mode: f = 'lowest', split: h = !1, voids: g = !1 } = r; if (o) { if (i == null && (i = N.isPath(o) ? Ia(t, o) : I=>we.isElement(I) && C.isBlock(t, I)), !c && q.isRange(o) && (o = C.unhangRange(t, o, { voids: g })), h && q.isRange(o)) { if (q.isCollapsed(o) && C.leaf(t, o.anchor) [0].text.length > 0) return; var m = C.rangeRef(t, o, { affinity: 'inward' }), [ y, v ] = q.edges(o), p = f === 'lowest' ? 'lowest' : 'highest', E = C.isEnd(t, v, v.path); K.splitNodes(t, { at: v, match: i, mode: p, voids: g, always: !E }); var _ = C.isStart(t, y, y.path); K.splitNodes(t, { at: y, match: i, mode: p, voids: g, always: !_ }), o = m.unref(), r.at == null && K.select(t, o) } a || (a = (I, Y) =>I !== Y); for (var [b, x]of C.nodes(t, { at: o, match: i, mode: f, voids: g })) { var O = { }, B = { }; if (x.length !== 0) { var k = !1; for (var P in n) P === 'children' || P === 'text' || a(n[P], b[P]) && (k = !0, b.hasOwnProperty(P) && (O[P] = b[P]), u ? n[P] != null && (B[P] = u(b[P], n[P])) : n[P] != null && (B[P] = n[P])); k && t.apply({ type: 'set_node', path: x, properties: O, newProperties: B }) } } } }) }, i9 = (e, t) =>{ if (q.isCollapsed(t)) return t.anchor; var [, n] = q.edges(t), r = C.pointRef(e, n); return K.delete(e, { at: t }), r.unref() }, o9 = function (t) { var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }; C.withoutNormalizing(t, () =>{ var { mode: r = 'lowest', voids: i = !1 } = n, { match: o, at: a = t.selection, height: u = 0, always: c = !1 } = n; if (o == null && (o = te=>we.isElement(te) && C.isBlock(t, te)), q.isRange(a) && (a = i9(t, a)), N.isPath(a)) { var f = a, h = C.point(t, f), [ g ] = C.parent(t, f); o = te=>te === g, u = h.path.length - f.length + 1, a = h, c = !0 } if (a) { var m = C.pointRef(t, a, { affinity: 'backward' }), y; try { var [v] = C.nodes(t, { at: a, match: o, mode: r, voids: i }); if (!v) return; var p = C.void(t, { at: a, mode: 'highest' }), E = 0; if (!i && p) { var [_, b] = p; if (we.isElement(_) && t.isInline(_)) { var x = C.after(t, b); if (!x) { var O = { text: '' }, B = N.next(b); K.insertNodes(t, O, { at: B, voids: i }), x = C.point(t, B) } a = x, c = !0 } var k = a.path.length - b.length; u = k + 1, c = !0 } y = C.pointRef(t, a); var P = a.path.length - u, [ , I ] = v, Y = a.path.slice(0, P), j = u === 0 ? a.offset : a.path[P] + E; for (var [X, $]of C.levels(t, { at: Y, reverse: !0, voids: i })) { var U = !1; if ($.length < I.length || $.length === 0 || !i && we.isElement(X) && C.isVoid(t, X)) break; var T = m.current, G = C.isEnd(t, T, $); if (c || !m || !C.isEdge(t, T, $)) { U = !0; var se = de.extractProps(X); t.apply({ type: 'split_node', path: $, position: j, properties: se }) } j = $[$.length - 1] + (U || G ? 1 : 0) } if (n.at == null) { var re = y.current || C.end(t, [ ]); K.select(t, re) } } finally { var V; m.unref(), (V = y) === null || V === void 0 || V.unref() } } }) }, s9 = function (t, n) { var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { }; Array.isArray(n) || (n = [ n ]); var i = { }; for (var o of n) i[o] = null; K.setNodes(t, i, r) }, a9 = function (t) { var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }; C.withoutNormalizing(t, () =>{ var { mode: r = 'lowest', split: i = !1, voids: o = !1 } = n, { at: a = t.selection, match: u } = n; if (a) { u == null && (u = N.isPath(a) ? Ia(t, a) : y=>we.isElement(y) && C.isBlock(t, y)), N.isPath(a) && (a = C.range(t, a)); var c = q.isRange(a) ? C.rangeRef(t, a) : null, f = C.nodes(t, { at: a, match: u, mode: r, voids: o }), h = Array.from(f, y=>{ var [, v] = y; return C.pathRef(t, v) }).reverse(), g = function () { var v = m.unref(), [ p ] = C.node(t, v), E = C.range(t, v); i && c && (E = q.intersection(c.current, E)), K.liftNodes(t, { at: E, match: _=>we.isAncestor(p) && p.children.includes(_), voids: o }) }; for (var m of h) g(); c && c.unref() } }) }; function s2(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function (i) { return Object.getOwnPropertyDescriptor(e, i).enumerable })), n.push.apply(n, r) } return n } function a2(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : { }; t % 2 ? s2(Object(n), !0).forEach(function (r) { Fn(e, r, n[r]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : s2(Object(n)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) }) } return e } var u9 = function (t, n) { var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { }; C.withoutNormalizing(t, () =>{ var { mode: i = 'lowest', split: o = !1, voids: a = !1 } = r, { match: u, at: c = t.selection } = r; if (c) { if (u == null && (N.isPath(c) ? u = Ia(t, c) : t.isInline(n) ? u = E=>we.isElement(E) && C.isInline(t, E) || Ee.isText(E) : u = E=>we.isElement(E) && C.isBlock(t, E)), o && q.isRange(c)) { var [f, h] = q.edges(c), g = C.rangeRef(t, c, { affinity: 'inward' }); K.splitNodes(t, { at: h, match: u, voids: a }), K.splitNodes(t, { at: f, match: u, voids: a }), c = g.unref(), r.at == null && K.select(t, c) } var m = Array.from(C.nodes(t, { at: c, match: t.isInline(n) ? E=>we.isElement(E) && C.isBlock(t, E) : E=>C.isEditor(E), mode: 'lowest', voids: a })), y = function () { var _ = q.isRange(c) ? q.intersection(c, C.range(t, p)) : c; if (!_) return 0; var b = Array.from(C.nodes(t, { at: _, match: u, mode: i, voids: a })); if (b.length > 0) { var [x] = b, O = b[b.length - 1], [ , B ] = x, [ , k ] = O; if (B.length === 0 && k.length === 0) return 0; var P = N.equals(B, k) ? N.parent(B) : N.common(B, k), I = C.range(t, B, k), Y = C.node(t, P), [ j ] = Y, X = P.length + 1, $ = N.next(k.slice(0, X)), U = a2(a2({ }, n), { }, { children: [ ] }); K.insertNodes(t, U, { at: $, voids: a }), K.moveNodes(t, { at: I, match: T=>we.isAncestor(j) && j.children.includes(T), to: $.concat(0), voids: a }) } }, v; for (var [, p]of m) v = y() } }) }, u2 = () =>{ var e = { children: [ ], operations: [ ], selection: null, marks: null, isElementReadOnly: () =>!1, isInline: () =>!1, isSelectable: () =>!0, isVoid: () =>!1, markableVoid: () =>!1, onChange: () =>{ }, apply: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return T7(e, ...r) }, addMark: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return j7(e, ...r) }, deleteBackward: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return H7(e, ...r) }, deleteForward: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return W7(e, ...r) }, deleteFragment: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return V7(e, ...r) }, getFragment: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return N7(e, ...r) }, insertBreak: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return nN(e, ...r) }, insertSoftBreak: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return iN(e, ...r) }, insertFragment: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return HN(e, ...r) }, insertNode: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return rN(e, ...r) }, insertText: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return sN(e, ...r) }, normalizeNode: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return L7(e, ...r) }, removeMark: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return NN(e, ...r) }, getDirtyPaths: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return I7(e, ...r) }, shouldNormalize: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return M7(e, ...r) }, above: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return $7(e, ...r) }, after: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return z7(e, ...r) }, before: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return U7(e, ...r) }, collapse: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return WN(e, ...r) }, delete : function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return UN(e, ...r) }, deselect: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return VN(e, ...r) }, edges: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return K7(e, ...r) }, elementReadOnly: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return q7(e, ...r) }, end: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return G7(e, ...r) }, first: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return Q7(e, ...r) }, fragment: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return Y7(e, ...r) }, getMarks: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return yN(e, ...r) }, hasBlocks: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return X7(e, ...r) }, hasInlines: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return Z7(e, ...r) }, hasPath: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return eN(e, ...r) }, hasTexts: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return tN(e, ...r) }, insertNodes: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return YN(e, ...r) }, isBlock: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return aN(e, ...r) }, isEdge: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return uN(e, ...r) }, isEmpty: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return lN(e, ...r) }, isEnd: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return cN(e, ...r) }, isNormalizing: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return fN(e, ...r) }, isStart: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return dN(e, ...r) }, last: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return hN(e, ...r) }, leaf: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return pN(e, ...r) }, levels: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return gN(e, ...r) }, liftNodes: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return JN(e, ...r) }, mergeNodes: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return e9(e, ...r) }, move: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return KN(e, ...r) }, moveNodes: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return t9(e, ...r) }, next: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return wN(e, ...r) }, node: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return bN(e, ...r) }, nodes: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return _N(e, ...r) }, normalize: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return CN(e, ...r) }, parent: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return EN(e, ...r) }, path: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return AN(e, ...r) }, pathRef: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return DN(e, ...r) }, pathRefs: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return xN(e, ...r) }, point: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return FN(e, ...r) }, pointRef: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return SN(e, ...r) }, pointRefs: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return ON(e, ...r) }, positions: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return BN(e, ...r) }, previous: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return kN(e, ...r) }, range: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return TN(e, ...r) }, rangeRef: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return PN(e, ...r) }, rangeRefs: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return RN(e, ...r) }, removeNodes: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return n9(e, ...r) }, select: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return qN(e, ...r) }, setNodes: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return r9(e, ...r) }, setNormalizing: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return LN(e, ...r) }, setPoint: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return GN(e, ...r) }, setSelection: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return QN(e, ...r) }, splitNodes: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return o9(e, ...r) }, start: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return MN(e, ...r) }, string: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return $N(e, ...r) }, unhangRange: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return jN(e, ...r) }, unsetNodes: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return s9(e, ...r) }, unwrapNodes: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return a9(e, ...r) }, void : function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return J7(e, ...r) }, withoutNormalizing: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return zN(e, ...r) }, wrapNodes: function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return u9(e, ...r) } }; return e }, Cs = [ ], l9 = function () { return Cs.some(function (e) { return e.activeTargets.length > 0 }) }, c9 = function () { return Cs.some(function (e) { return e.skippedTargets.length > 0 }) }, l2 = 'ResizeObserver loop completed with undelivered notifications.', f9 = function () { var e; typeof ErrorEvent == 'function' ? e = new ErrorEvent('error', { message: l2 }) : (e = document.createEvent('Event'), e.initEvent('error', !1, !1), e.message = l2), window.dispatchEvent(e) }, Tl; (function (e) { e.BORDER_BOX = 'border-box', e.CONTENT_BOX = 'content-box', e.DEVICE_PIXEL_CONTENT_BOX = 'device-pixel-content-box' }) (Tl || (Tl = { })); var Es = function (e) { return Object.freeze(e) }, d9 = function () { function e(t, n) { this.inlineSize = t, this.blockSize = n, Es(this) } return e }(), c2 = function () { function e(t, n, r, i) { return this.x = t, this.y = n, this.width = r, this.height = i, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, Es(this) } return e.prototype.toJSON = function () { var t = this, n = t.x, r = t.y, i = t.top, o = t.right, a = t.bottom, u = t.left, c = t.width, f = t.height; return { x: n, y: r, top: i, right: o, bottom: a, left: u, width: c, height: f } }, e.fromRect = function (t) { return new e(t.x, t.y, t.width, t.height) }, e }(), _v = function (e) { return e instanceof SVGElement && 'getBBox' in e }, f2 = function (e) { if (_v(e)) { var t = e.getBBox(), n = t.width, r = t.height; return !n && !r } var i = e, o = i.offsetWidth, a = i.offsetHeight; return !(o || a || e.getClientRects().length) }, d2 = function (e) { var t; if (e instanceof Element) return !0; var n = (t = e == null ? void 0 : e.ownerDocument) === null || t === void 0 ? void 0 : t.defaultView; return !!(n && e instanceof n.Element) }, h9 = function (e) { switch (e.tagName) { case 'INPUT': if (e.type !== 'image') break; case 'VIDEO': case 'AUDIO': case 'EMBED': case 'OBJECT': case 'CANVAS': case 'IFRAME': case 'IMG': return !0 } return !1 }, Il = typeof window < 'u' ? window : { }, Pd = new WeakMap, h2 = /auto|scroll/, p9 = /^tb|vertical/, g9 = /msie|trident/i.test(Il.navigator && Il.navigator.userAgent), pi = function (e) { return parseFloat(e || '0') }, La = function (e, t, n) { return e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = !1), new d9((n ? t : e) || 0, (n ? e : t) || 0) }, p2 = Es({ devicePixelContentBoxSize: La(), borderBoxSize: La(), contentBoxSize: La(), contentRect: new c2(0, 0, 0, 0) }), g2 = function (e, t) { if (t === void 0 && (t = !1), Pd.has(e) && !t) return Pd.get(e); if (f2(e)) return Pd.set(e, p2), p2; var n = getComputedStyle(e), r = _v(e) && e.ownerSVGElement && e.getBBox(), i = !g9 && n.boxSizing === 'border-box', o = p9.test(n.writingMode || ''), a = !r && h2.test(n.overflowY || ''), u = !r && h2.test(n.overflowX || ''), c = r ? 0 : pi(n.paddingTop), f = r ? 0 : pi(n.paddingRight), h = r ? 0 : pi(n.paddingBottom), g = r ? 0 : pi(n.paddingLeft), m = r ? 0 : pi(n.borderTopWidth), y = r ? 0 : pi(n.borderRightWidth), v = r ? 0 : pi(n.borderBottomWidth), p = r ? 0 : pi(n.borderLeftWidth), E = g + f, _ = c + h, b = p + y, x = m + v, O = u ? e.offsetHeight - x - e.clientHeight : 0, B = a ? e.offsetWidth - b - e.clientWidth : 0, k = i ? E + b : 0, P = i ? _ + x : 0, I = r ? r.width : pi(n.width) - k - B, Y = r ? r.height : pi(n.height) - P - O, j = I + E + B + b, X = Y + _ + O + x, $ = Es({ devicePixelContentBoxSize: La(Math.round(I * devicePixelRatio), Math.round(Y * devicePixelRatio), o), borderBoxSize: La(j, X, o), contentBoxSize: La(I, Y, o), contentRect: new c2(g, c, I, Y) }); return Pd.set(e, $), $ }, m2 = function (e, t, n) { var r = g2(e, n), i = r.borderBoxSize, o = r.contentBoxSize, a = r.devicePixelContentBoxSize; switch (t) { case Tl.DEVICE_PIXEL_CONTENT_BOX: return a; case Tl.BORDER_BOX: return i; default: return o } }, m9 = function () { function e(t) { var n = g2(t); this.target = t, this.contentRect = n.contentRect, this.borderBoxSize = Es([n.borderBoxSize]), this.contentBoxSize = Es([n.contentBoxSize]), this.devicePixelContentBoxSize = Es([n.devicePixelContentBoxSize]) } return e }(), v2 = function (e) { if (f2(e)) return 1 / 0; for (var t = 0, n = e.parentNode; n; ) t += 1, n = n.parentNode; return t }, v9 = function () { var e = 1 / 0, t = [ ]; Cs.forEach(function (a) { if (a.activeTargets.length !== 0) { var u = [ ]; a.activeTargets.forEach(function (f) { var h = new m9(f.target), g = v2(f.target); u.push(h), f.lastReportedSize = m2(f.target, f.observedBox), g < e && (e = g) }), t.push(function () { a.callback.call(a.observer, u, a.observer) }), a.activeTargets.splice(0, a.activeTargets.length) } }); for (var n = 0, r = t; n < r.length; n++) { var i = r[n]; i() } return e }, y2 = function (e) { Cs.forEach(function (n) { n.activeTargets.splice(0, n.activeTargets.length), n.skippedTargets.splice(0, n.skippedTargets.length), n.observationTargets.forEach(function (i) { i.isActive() && (v2(i.target) > e ? n.activeTargets.push(i) : n.skippedTargets.push(i)) }) }) }, y9 = function () { var e = 0; for (y2(e); l9(); ) e = v9(), y2(e); return c9() && f9(), e > 0 }, Cv, w2 = [ ], w9 = function () { return w2.splice(0).forEach(function (e) { return e() }) }, b9 = function (e) { if (!Cv) { var t = 0, n = document.createTextNode(''), r = { characterData: !0 }; new MutationObserver(function () { return w9() }).observe(n, r), Cv = function () { n.textContent = ''.concat(t ? t-- : t++) } } w2.push(e), Cv() }, _9 = function (e) { b9(function () { requestAnimationFrame(e) }) }, Rd = 0, C9 = function () { return !!Rd }, E9 = 250, D9 = { attributes: !0, characterData: !0, childList: !0, subtree: !0 }, b2 = [ 'resize', 'load', 'transitionend', 'animationend', 'animationstart', 'animationiteration', 'keyup', 'keydown', 'mouseup', 'mousedown', 'mouseover', 'mouseout', 'blur', 'focus' ], _2 = function (e) { return e === void 0 && (e = 0), Date.now() + e }, Ev = !1, x9 = function () { function e() { var t = this; this.stopped = !0, this.listener = function () { return t.schedule() } } return e.prototype.run = function (t) { var n = this; if (t === void 0 && (t = E9), !Ev) { Ev = !0; var r = _2(t); _9(function () { var i = !1; try { i = y9() } finally { if (Ev = !1, t = r - _2(), !C9()) return; i ? n.run(1000) : t > 0 ? n.run(t) : n.start() } }) } }, e.prototype.schedule = function () { this.stop(), this.run() }, e.prototype.observe = function () { var t = this, n = function () { return t.observer && t.observer.observe(document.body, D9) }; document.body ? n() : Il.addEventListener('DOMContentLoaded', n) }, e.prototype.start = function () { var t = this; this.stopped && (this.stopped = !1, this.observer = new MutationObserver(this.listener), this.observe(), b2.forEach(function (n) { return Il.addEventListener(n, t.listener, !0) })) }, e.prototype.stop = function () { var t = this; this.stopped || (this.observer && this.observer.disconnect(), b2.forEach(function (n) { return Il.removeEventListener(n, t.listener, !0) }), this.stopped = !0) }, e }(), Dv = new x9, C2 = function (e) { !Rd && e > 0 && Dv.start(), Rd += e, !Rd && Dv.stop() }, A9 = function (e) { return !_v(e) && !h9(e) && getComputedStyle(e).display === 'inline' }, S9 = function () { function e(t, n) { this.target = t, this.observedBox = n || Tl.CONTENT_BOX, this.lastReportedSize = { inlineSize: 0, blockSize: 0 } } return e.prototype.isActive = function () { var t = m2(this.target, this.observedBox, !0); return A9(this.target) && (this.lastReportedSize = t), this.lastReportedSize.inlineSize !== t.inlineSize || this.lastReportedSize.blockSize !== t.blockSize }, e }(), O9 = function () { function e(t, n) { this.activeTargets = [ ], this.skippedTargets = [ ], this.observationTargets = [ ], this.observer = t, this.callback = n } return e }(), Td = new WeakMap, E2 = function (e, t) { for (var n = 0; n < e.length; n += 1) if (e[n].target === t) return n; return - 1 }, Id = function () { function e() { } return e.connect = function (t, n) { var r = new O9(t, n); Td.set(t, r) }, e.observe = function (t, n, r) { var i = Td.get(t), o = i.observationTargets.length === 0; E2(i.observationTargets, n) < 0 && (o && Cs.push(i), i.observationTargets.push(new S9(n, r && r.box)), C2(1), Dv.schedule()) }, e.unobserve = function (t, n) { var r = Td.get(t), i = E2(r.observationTargets, n), o = r.observationTargets.length === 1; i >= 0 && (o && Cs.splice(Cs.indexOf(r), 1), r.observationTargets.splice(i, 1), C2( - 1)) }, e.disconnect = function (t) { var n = this, r = Td.get(t); r.observationTargets.slice().forEach(function (i) { return n.unobserve(t, i.target) }), r.activeTargets.splice(0, r.activeTargets.length) }, e }(), F9 = function () { function e(t) { if (arguments.length === 0) throw new TypeError('Failed to construct \'ResizeObserver\': 1 argument required, but only 0 present.'); if (typeof t != 'function') throw new TypeError('Failed to construct \'ResizeObserver\': The callback provided as parameter 1 is not a function.'); Id.connect(this, t) } return e.prototype.observe = function (t, n) { if (arguments.length === 0) throw new TypeError('Failed to execute \'observe\' on \'ResizeObserver\': 1 argument required, but only 0 present.'); if (!d2(t)) throw new TypeError('Failed to execute \'observe\' on \'ResizeObserver\': parameter 1 is not of type \'Element'); Id.observe(this, t, n) }, e.prototype.unobserve = function (t) { if (arguments.length === 0) throw new TypeError('Failed to execute \'unobserve\' on \'ResizeObserver\': 1 argument required, but only 0 present.'); if (!d2(t)) throw new TypeError('Failed to execute \'unobserve\' on \'ResizeObserver\': parameter 1 is not of type \'Element'); Id.unobserve(this, t) }, e.prototype.disconnect = function () { Id.disconnect(this) }, e.toString = function () { return 'function ResizeObserver () { [polyfill code] }' }, e }(), Ui = { }; Object.defineProperty(Ui, '__esModule', { value: !0 }); for (var B9 = typeof window < 'u' && /Mac|iPod|iPhone|iPad/.test(window.navigator.platform), xv = { alt: 'altKey', control: 'ctrlKey', meta: 'metaKey', shift: 'shiftKey' }, D2 = { add: '+', break : 'pause', cmd: 'meta', command: 'meta', ctl: 'control', ctrl: 'control', del: 'delete', down: 'arrowdown', esc: 'escape', ins: 'insert', left: 'arrowleft', mod: B9 ? 'meta' : 'control', opt: 'alt', option: 'alt', return : 'enter', right: 'arrowright', space: ' ', spacebar: ' ', up: 'arrowup', win: 'meta', windows: 'meta' }, Av = { backspace: 8, tab: 9, enter: 13, shift: 16, control: 17, alt: 18, pause: 19, capslock: 20, escape: 27, ' ': 32, pageup: 33, pagedown: 34, end: 35, home: 36, arrowleft: 37, arrowup: 38, arrowright: 39, arrowdown: 40, insert: 45, delete : 46, meta: 91, numlock: 144, scrolllock: 145, ';': 186, '=': 187, ',': 188, '-': 189, '.': 190, '/': 191, '`': 192, '[': 219, '\\': 220, ']': 221, '\'': 222 }, Nd = 1; Nd < 20; Nd++) Av['f' + Nd] = 111 + Nd; function Ld(e, t, n) { t && !('byKey' in t) && (n = t, t = null), Array.isArray(e) || (e = [ e ]); var r = e.map(function (a) { return x2(a, t) }), i = function (u) { return r.some(function (c) { return A2(c, u) }) }, o = n == null ? i : i(n); return o } function k9(e, t) { return Ld(e, t) } function P9(e, t) { return Ld(e, { byKey: !0 }, t) } function x2(e, t) { var n = t && t.byKey, r = { }; e = e.replace('++', '+add'); var i = e.split('+'), o = i.length; for (var a in xv) r[xv[a]] = !1; var u = !0, c = !1, f = void 0; try { for (var h = i[Symbol.iterator](), g; !(u = (g = h.next()).done); u = !0) { var m = g.value, y = m.endsWith('?') && m.length > 1; y && (m = m.slice(0, - 1)); var v = Sv(m), p = xv[v]; if (m.length > 1 && !p && !D2[m] && !Av[v]) throw new TypeError('Unknown modifier: "' + m + '"'); (o === 1 || !p) && (n ? r.key = v : r.which = S2(m)), p && (r[p] = y ? null : !0) } } catch (E) { c = !0, f = E } finally { try { !u && h.return && h.return() } finally { if (c) throw f } } return r } function A2(e, t) { for (var n in e) { var r = e[n], i = void 0; if (r != null && (n === 'key' && t.key != null ? i = t.key.toLowerCase() : n === 'which' ? i = r === 91 && t.which === 93 ? 91 : t.which : i = t[n], !(i == null && r === !1) && i !== r)) return !1 } return !0 } function S2(e) { e = Sv(e); var t = Av[e] || e.toUpperCase().charCodeAt(0); return t } function Sv(e) { return e = e.toLowerCase(), e = D2[e] || e, e } var Nl = Ui.default = Ld, Ov = Ui.isHotkey = Ld; Ui.isCodeHotkey = k9; var O2 = Ui.isKeyHotkey = P9; Ui.parseHotkey = x2, Ui.compareHotkey = A2, Ui.toKeyCode = S2, Ui.toKeyName = Sv; function R9(e, t) { if (e == null) return { }; var n = { }, r = Object.keys(e), i, o; for (o = 0; o < r.length; o++) i = r[o], !(t.indexOf(i) >= 0) && (n[i] = e[i]); return n } function Ma(e, t) { if (e == null) return { }; var n = R9(e, t), r, i; if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); for (i = 0; i < o.length; i++) r = o[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]) } return n } function Ll(e) { '@babel/helpers - typeof'; return Ll = typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol' ? function (t) { return typeof t } : function (t) { return t && typeof Symbol == 'function' && t.constructor === Symbol && t !== Symbol.prototype ? 'symbol' : typeof t }, Ll(e) } function T9(e, t) { if (Ll(e) !== 'object' || e === null) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || 'default'); if (Ll(r) !== 'object') return r; throw new TypeError('@@toPrimitive must return a primitive value.') } return (t === 'string' ? String : Number) (e) } function I9(e) { var t = T9(e, 'string'); return Ll(t) === 'symbol' ? t : String(t) } function Sr(e, t, n) { return t = I9(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e } var Fv = D.createContext(null), Or = () =>{ var e = D.useContext(Fv); if (!e) throw new Error('The `useSlateStatic` hook must be used inside the <Slate> component\'s context.'); return e }, Bv, kv, F2 = parseInt(Le.version.split('.') [0], 10), B2 = typeof navigator < 'u' && typeof window < 'u' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, k2 = typeof navigator < 'u' && /Mac OS X/.test(navigator.userAgent), Bn = typeof navigator < 'u' && /Android/.test(navigator.userAgent), $a = typeof navigator < 'u' && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), Ds = typeof navigator < 'u' && /AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent), N9 = typeof navigator < 'u' && /Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent), P2 = typeof navigator < 'u' && /Chrome/i.test(navigator.userAgent), L9 = typeof navigator < 'u' && /Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent), M9 = Bn && typeof navigator < 'u' && /Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent), $9 = typeof navigator < 'u' && /^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent), j9 = typeof navigator < 'u' && /.*UCBrowser/.test(navigator.userAgent), z9 = typeof navigator < 'u' && /.*Wechat/.test(navigator.userAgent) && !/.*MacWechat/.test(navigator.userAgent), Md = typeof window < 'u' && typeof window.document < 'u' && typeof window.document.createElement < 'u', R2 = typeof navigator < 'u' && /Safari/.test(navigator.userAgent) && /Version\/(\d+)/.test(navigator.userAgent) && ((Bv = navigator.userAgent.match(/Version\/(\d+)/)) !== null && Bv !== void 0 && Bv[1] ? parseInt((kv = navigator.userAgent.match(/Version\/(\d+)/)) === null || kv === void 0 ? void 0 : kv[1], 10) < 17 : !1), ko = (!L9 || !M9) && !N9 && typeof globalThis < 'u' && globalThis.InputEvent && typeof globalThis.InputEvent.prototype.getTargetRanges == 'function', Pv = new WeakMap, Rv = new WeakMap, T2 = new WeakMap, $d = new WeakMap, Tv = new WeakMap, Ml = new WeakMap, xs = new WeakMap, jd = new WeakMap, zd = new WeakMap, Iv = new WeakMap, Po = new WeakMap, As = new WeakMap, $l = new WeakMap, Nv = new WeakMap, Lv = new WeakMap, Jr = new WeakMap, Hi = new WeakMap, Un = new WeakMap, Ro = new WeakMap, To = new WeakMap, I2 = new WeakMap, ja = Symbol('placeholder'), N2 = Symbol('mark-placeholder'), U9 = globalThis.Text, Mv = e=>e && e.ownerDocument && e.ownerDocument.defaultView || null, H9 = e=>Io(e) && e.nodeType === 8, Fr = e=>Io(e) && e.nodeType === 1, Io = e=>{ var t = Mv(e); return !!t && e instanceof t.Node }, $v = e=>{ var t = e && e.anchorNode && Mv(e.anchorNode); return !!t && e instanceof t.Selection }, L2 = e=>Io(e) && e.nodeType === 3, W9 = e=>e.clipboardData && e.clipboardData.getData('text/plain') !== '' && e.clipboardData.types.length === 1, V9 = e=>{ var [t, n] = e; if (Fr(t) && t.childNodes.length) { var r = n === t.childNodes.length, i = r ? n - 1 : n; for ([t, i] = M2(t, i, r ? 'backward' : 'forward'), r = i < n; Fr(t) && t.childNodes.length; ) { var o = r ? t.childNodes.length - 1 : 0; t = q9(t, o, r ? 'backward' : 'forward') } n = r && t.textContent != null ? t.textContent.length : 0 } return [t, n] }, K9 = e=>{ for (var t = e && e.parentNode; t; ) { if (t.toString() === '[object ShadowRoot]') return !0; t = t.parentNode } return !1 }, M2 = (e, t, n) =>{ for (var { childNodes: r } = e, i = r[t], o = t, a = !1, u = !1; (H9(i) || Fr(i) && i.childNodes.length === 0 || Fr(i) && i.getAttribute('contenteditable') === 'false') && !(a && u); ) { if (o >= r.length) { a = !0, o = t - 1, n = 'backward'; continue } if (o < 0) { u = !0, o = t + 1, n = 'forward'; continue } i = r[o], t = o, o += n === 'forward' ? 1 : - 1 } return [i, t] }, q9 = (e, t, n) =>{ var [r] = M2(e, t, n); return r }, $2 = e=>{ var t = ''; if (L2(e) && e.nodeValue) return e.nodeValue; if (Fr(e)) { for (var n of Array.from(e.childNodes)) t += $2(n); var r = getComputedStyle(e).getPropertyValue('display'); (r === 'block' || r === 'list' || e.tagName === 'BR') && (t += ` `) } return t }, G9 = /data-slate-fragment="(.+?)"/m, Q9 = e=>{ var t = e.getData('text/html'), [ , n ] = t.match(G9) || [ ]; return n }, jv = (e, t, n) =>{ var { target: r } = t; if (Fr(r) && r.matches('[contentEditable="false"]')) return !1; var { document: i } = ee.getWindow(e); if (i.contains(r)) return ee.hasDOMNode(e, r, { editable: !0 }); var o = n.find(a=>{ var { addedNodes: u, removedNodes: c } = a; for (var f of u) if (f === r || f.contains(r)) return !0; for (var h of c) if (h === r || h.contains(r)) return !0 }); return !o || o === t ? !1 : jv(e, o, n) }, Y9 = () =>{ for (var e = document.activeElement; (t = e) !== null && t !== void 0 && t.shadowRoot && (n = e.shadowRoot) !== null && n !== void 0 && n.activeElement; ) { var t, n, r; e = (r = e) === null || r === void 0 || (r = r.shadowRoot) === null || r === void 0 ? void 0 : r.activeElement } return e }, J9 = 0; class X9 { constructor() { Sr(this, 'id', void 0), this.id = ''.concat(J9++) } } var ee = { androidPendingDiffs: e=>Un.get(e), androidScheduleFlush: e=>{ var t; (t = Lv.get(e)) === null || t === void 0 || t() }, blur: e=>{ var t = ee.toDOMNode(e, e), n = ee.findDocumentOrShadowRoot(e); Po.set(e, !1), n.activeElement === t && t.blur() }, deselect: e=>{ var { selection: t } = e, n = ee.findDocumentOrShadowRoot(e), r = n.getSelection(); r && r.rangeCount > 0 && r.removeAllRanges(), t && K.deselect(e) }, findDocumentOrShadowRoot: e=>{ var t = ee.toDOMNode(e, e), n = t.getRootNode(); return (n instanceof Document || n instanceof ShadowRoot) && n.getSelection != null ? n : t.ownerDocument }, findEventRange: (e, t) =>{ 'nativeEvent' in t && (t = t.nativeEvent); var { clientX: n, clientY: r, target: i } = t; if (n == null || r == null) throw new Error('Cannot resolve a Slate range from a DOM event: '.concat(t)); var o = ee.toSlateNode(e, t.target), a = ee.findPath(e, o); if (we.isElement(o) && C.isVoid(e, o)) { var u = i.getBoundingClientRect(), c = e.isInline(o) ? n - u.left < u.left + u.width - n : r - u.top < u.top + u.height - r, f = C.point(e, a, { edge: c ? 'start' : 'end' }), h = c ? C.before(e, f) : C.after(e, f); if (h) { var g = C.range(e, h); return g } } var m, { document: y } = ee.getWindow(e); if (y.caretRangeFromPoint) m = y.caretRangeFromPoint(n, r); else { var v = y.caretPositionFromPoint(n, r); v && (m = y.createRange(), m.setStart(v.offsetNode, v.offset), m.setEnd(v.offsetNode, v.offset)) } if (!m) throw new Error('Cannot resolve a Slate range from a DOM event: '.concat(t)); var p = ee.toSlateRange(e, m, { exactMatch: !1, suppressThrow: !1 }); return p }, findKey: (e, t) =>{ var n = jd.get(t); return n || (n = new X9, jd.set(t, n)), n }, findPath: (e, t) =>{ for (var n = [ ], r = t; ; ) { var i = Rv.get(r); if (i == null) { if (C.isEditor(r)) return n; break } var o = Pv.get(r); if (o == null) break; n.unshift(o), r = i } throw new Error('Unable to find the path for Slate node: '.concat(rn.stringify(t))) }, focus: function (t) { var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { retries: 5 }; if (!Po.get(t)) { if (n.retries <= 0) throw new Error('Could not set focus, editor seems stuck with pending operations'); if (t.operations.length > 0) { setTimeout(() =>{ ee.focus(t, { retries: n.retries - 1 }) }, 10); return } var r = ee.toDOMNode(t, t), i = ee.findDocumentOrShadowRoot(t); if (i.activeElement !== r) { if (t.selection && i instanceof Document) { var o = i.getSelection(), a = ee.toDOMRange(t, t.selection); o == null || o.removeAllRanges(), o == null || o.addRange(a) } t.selection || (K.select(t, C.start(t, [ ])), t.onChange()), Po.set(t, !0), r.focus({ preventScroll: !0 }) } } }, getWindow: e=>{ var t = T2.get(e); if (!t) throw new Error('Unable to find a host window element for this editor'); return t }, hasDOMNode: function (t, n) { var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { }, { editable: i = !1 } = r, o = ee.toDOMNode(t, t), a; try { a = Fr(n) ? n : n.parentElement } catch (u) { if (u instanceof Error && !u.message.includes('Permission denied to access property "nodeType"')) throw u } return a ? a.closest('[data-slate-editor]') === o && (!i || a.isContentEditable ? !0 : typeof a.isContentEditable == 'boolean' && a.closest('[contenteditable="false"]') === o || !!a.getAttribute('data-slate-zero-width')) : !1 }, hasEditableTarget: (e, t) =>Io(t) && ee.hasDOMNode(e, t, { editable: !0 }), hasRange: (e, t) =>{ var { anchor: n, focus: r } = t; return C.hasPath(e, n.path) && C.hasPath(e, r.path) }, hasSelectableTarget: (e, t) =>ee.hasEditableTarget(e, t) || ee.isTargetInsideNonReadonlyVoid(e, t), hasTarget: (e, t) =>Io(t) && ee.hasDOMNode(e, t), insertData: (e, t) =>{ e.insertData(t) }, insertFragmentData: (e, t) =>e.insertFragmentData(t), insertTextData: (e, t) =>e.insertTextData(t), isComposing: e=>!!As.get(e), isFocused: e=>!!Po.get(e), isReadOnly: e=>!!Iv.get(e), isTargetInsideNonReadonlyVoid: (e, t) =>{ if (Iv.get(e)) return !1; var n = ee.hasTarget(e, t) && ee.toSlateNode(e, t); return we.isElement(n) && C.isVoid(e, n) }, setFragmentData: (e, t, n) =>e.setFragmentData(t, n), toDOMNode: (e, t) =>{ var n = zd.get(e), r = C.isEditor(t) ? $d.get(e) : n == null ? void 0 : n.get(ee.findKey(e, t)); if (!r) throw new Error('Cannot resolve a DOM node from Slate node: '.concat(rn.stringify(t))); return r }, toDOMPoint: (e, t) =>{ var [n] = C.node(e, t.path), r = ee.toDOMNode(e, n), i; C.void(e, { at: t }) && (t = { path: t.path, offset: 0 }); for (var o = '[data-slate-string], [data-slate-zero-width]', a = Array.from(r.querySelectorAll(o)), u = 0, c = 0; c < a.length; c++) { var f = a[c], h = f.childNodes[0]; if (!(h == null || h.textContent == null)) { var { length: g } = h.textContent, m = f.getAttribute('data-slate-length'), y = m == null ? g : parseInt(m, 10), v = u + y, p = a[c + 1]; if (t.offset === v && p !== null && p !== void 0 && p.hasAttribute('data-slate-mark-placeholder')) { var E, _ = p.childNodes[0]; i = [ _ instanceof U9 ? _ : p, (E = p.textContent) !== null && E !== void 0 && E.startsWith('') ? 1 : 0 ]; break } if (t.offset <= v) { var b = Math.min(g, Math.max(0, t.offset - u)); i = [ h, b ]; break } u = v } } if (!i) throw new Error('Cannot resolve a DOM point from Slate point: '.concat(rn.stringify(t))); return i }, toDOMRange: (e, t) =>{ var { anchor: n, focus: r } = t, i = q.isBackward(t), o = ee.toDOMPoint(e, n), a = q.isCollapsed(t) ? o : ee.toDOMPoint(e, r), u = ee.getWindow(e), c = u.document.createRange(), [ f, h ] = i ? a : o, [ g, m ] = i ? o : a, y = Fr(f) ? f : f.parentElement, v = !!y.getAttribute('data-slate-zero-width'), p = Fr(g) ? g : g.parentElement, E = !!p.getAttribute('data-slate-zero-width'); return c.setStart(f, v ? 1 : h), c.setEnd(g, E ? 1 : m), c }, toSlateNode: (e, t) =>{ var n = Fr(t) ? t : t.parentElement; n && !n.hasAttribute('data-slate-node') && (n = n.closest('[data-slate-node]')); var r = n ? Ml.get(n) : null; if (!r) throw new Error('Cannot resolve a Slate node from DOM node: '.concat(n)); return r }, toSlatePoint: (e, t, n) =>{ var { exactMatch: r, suppressThrow: i } = n, [ o, a ] = r ? t : V9(t), u = o.parentNode, c = null, f = 0; if (u) { var h, g, m = ee.toDOMNode(e, e), y = u.closest('[data-slate-void="true"]'), v = y && m.contains(y) ? y : null, p = u.closest('[data-slate-leaf]'), E = null; if (p) { if (c = p.closest('[data-slate-node="text"]'), c) { var _ = ee.getWindow(e), b = _.document.createRange(); b.setStart(c, 0), b.setEnd(o, a); var x = b.cloneContents(), O = [ ...Array.prototype.slice.call(x.querySelectorAll('[data-slate-zero-width]')), ...Array.prototype.slice.call(x.querySelectorAll('[contenteditable=false]')) ]; O.forEach(T=>{ if (Bn && !r && T.hasAttribute('data-slate-zero-width') && T.textContent.length > 0 && T.textContext !== '') { T.textContent.startsWith('') && (T.textContent = T.textContent.slice(1)); return } T.parentNode.removeChild(T) }), f = x.textContent.length, E = c } } else if (v) { for (var B = v.querySelectorAll('[data-slate-leaf]'), k = 0; k < B.length; k++) { var P = B[k]; if (ee.hasDOMNode(e, P)) { p = P; break } } p ? (c = p.closest('[data-slate-node="text"]'), E = p, f = E.textContent.length, E.querySelectorAll('[data-slate-zero-width]').forEach(T=>{ f -= T.textContent.length })) : f = 1 } E && f === E.textContent.length && Bn && E.getAttribute('data-slate-zero-width') === 'z' && (h = E.textContent) !== null && h !== void 0 && h.startsWith('') && (u.hasAttribute('data-slate-zero-width') || $a && (g = E.textContent) !== null && g !== void 0 && g.endsWith(` `)) && f-- } if (Bn && !c && !r) { var I = u.hasAttribute('data-slate-node') ? u : u.closest('[data-slate-node]'); if (I && ee.hasDOMNode(e, I, { editable: !0 })) { var Y = ee.toSlateNode(e, I), { path: j, offset: X } = C.start(e, ee.findPath(e, Y)); return I.querySelector('[data-slate-leaf]') || (X = a), { path: j, offset: X } } } if (!c) { if (i) return null; throw new Error('Cannot resolve a Slate point from DOM point: '.concat(t)) } var $ = ee.toSlateNode(e, c), U = ee.findPath(e, $); return { path: U, offset: f } }, toSlateRange: (e, t, n) =>{ var r, { exactMatch: i, suppressThrow: o } = n, a = $v(t) ? t.anchorNode : t.startContainer, u, c, f, h, g; if (a) if ($v(t)) { if ($a && t.rangeCount > 1) { f = t.focusNode; var m = t.getRangeAt(0), y = t.getRangeAt(t.rangeCount - 1); if (f instanceof HTMLTableRowElement && m.startContainer instanceof HTMLTableRowElement && y.startContainer instanceof HTMLTableRowElement) { let P = function (I) { return I.childElementCount > 0 ? P(I.children[0]) : I }; var k = P, v = m.startContainer, p = y.startContainer, E = P(v.children[m.startOffset]), _ = P(p.children[y.startOffset]); h = 0, _.childNodes.length > 0 ? u = _.childNodes[0] : u = _, E.childNodes.length > 0 ? f = E.childNodes[0] : f = E, _ instanceof HTMLElement ? c = _.innerHTML.length : c = 0 } else m.startContainer === f ? (u = y.endContainer, c = y.endOffset, h = m.startOffset) : (u = m.startContainer, c = m.endOffset, h = y.startOffset) } else u = t.anchorNode, c = t.anchorOffset, f = t.focusNode, h = t.focusOffset; P2 && K9(u) || $a ? g = t.anchorNode === t.focusNode && t.anchorOffset === t.focusOffset : g = t.isCollapsed } else u = t.startContainer, c = t.startOffset, f = t.endContainer, h = t.endOffset, g = t.collapsed; if (u == null || f == null || c == null || h == null) throw new Error('Cannot resolve a Slate range from DOM range: '.concat(t)); if ($a && (r = f.textContent) !== null && r !== void 0 && r.endsWith(` `) && h === f.textContent.length && h--, 'getAttribute' in f && f.getAttribute('contenteditable') === 'false' && f.getAttribute('data-slate-void') !== 'true') { var b; f = u, h = ((b = u.textContent) === null || b === void 0 ? void 0 : b.length) || 0 } var x = ee.toSlatePoint(e, [ u, c ], { exactMatch: i, suppressThrow: o }); if (!x) return null; var O = g ? x : ee.toSlatePoint(e, [ f, h ], { exactMatch: i, suppressThrow: o }); if (!O) return null; var B = { anchor: x, focus: O }; return q.isExpanded(B) && q.isForward(B) && Fr(f) && C.void(e, { at: B.focus, mode: 'highest' }) && (B = C.unhangRange(e, B, { voids: !0 })), B } }; function Z9(e, t) { var { path: n, diff: r } = t; if (!C.hasPath(e, n)) return !1; var i = de.get(e, n); if (!Ee.isText(i)) return !1; if (r.start !== i.text.length || r.text.length === 0) return i.text.slice(r.start, r.start + r.text.length) === r.text; var o = N.next(n); if (!C.hasPath(e, o)) return !1; var a = de.get(e, o); return Ee.isText(a) && a.text.startsWith(r.text) } function j2(e) { for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r]; return n.reduce((i, o) =>i.slice(0, o.start) + o.text + i.slice(o.end), e) } function eL(e, t) { for (var n = Math.min(e.length, t.length), r = 0; r < n; r++) if (e.charAt(r) !== t.charAt(r)) return r; return n } function tL(e, t, n) { for (var r = Math.min(e.length, t.length, n), i = 0; i < r; i++) if (e.charAt(e.length - i - 1) !== t.charAt(t.length - i - 1)) return i; return r } function z2(e, t) { var { start: n, end: r, text: i } = t, o = e.slice(n, r), a = eL(o, i), u = Math.min(o.length - a, i.length - a), c = tL(o, i, u), f = { start: n + a, end: r - c, text: i.slice(a, i.length - c) }; return f.start === f.end && f.text.length === 0 ? null : f } function nL(e, t, n) { var r = Math.min(t.start, n.start), i = Math.max(0, Math.min(t.start + t.text.length, n.end) - n.start), o = j2(e, t, n), a = Math.max(n.start + n.text.length, t.start + t.text.length + (t.start + t.text.length > n.start ? n.text.length : 0) - i), u = o.slice(r, a), c = Math.max(t.end, n.end - t.text.length + (t.end - t.start)); return z2(e, { start: r, end: c, text: u }) } function rL(e) { var { path: t, diff: n } = e; return { anchor: { path: t, offset: n.start }, focus: { path: t, offset: n.end } } } function zv(e, t) { var { path: n, offset: r } = t; if (!C.hasPath(e, n)) return null; var i = de.get(e, n); if (!Ee.isText(i)) return null; var o = C.above(e, { match: u=>we.isElement(u) && C.isBlock(e, u), at: n }); if (!o) return null; for (; r > i.text.length; ) { var a = C.next(e, { at: n, match: Ee.isText }); if (!a || !N.isDescendant(a[1], o[1])) return null; r -= i.text.length, i = a[0], n = a[1] } return { path: n, offset: r } } function U2(e, t) { var n = zv(e, t.anchor); if (!n) return null; if (q.isCollapsed(t)) return { anchor: n, focus: n }; var r = zv(e, t.focus); return r ? { anchor: n, focus: r } : null } function Uv(e, t, n) { var r = Un.get(e), i = r == null ? void 0 : r.find(h=>{ var { path: g } = h; return N.equals(g, t.path) }); if (!i || t.offset <= i.diff.start) return je.transform(t, n, { affinity: 'backward' }); var { diff: o } = i; if (t.offset <= o.start + o.text.length) { var a = { path: t.path, offset: o.start }, u = je.transform(a, n, { affinity: 'backward' }); return u ? { path: u.path, offset: u.offset + t.offset - o.start } : null } var c = { path: t.path, offset: t.offset - o.text.length + o.end - o.start }, f = je.transform(c, n, { affinity: 'backward' }); return f ? n.type === 'split_node' && N.equals(n.path, t.path) && c.offset < n.position && o.start < n.position ? f : { path: f.path, offset: f.offset + o.text.length - o.end + o.start } : null } function H2(e, t, n) { var r = Uv(e, t.anchor, n); if (!r) return null; if (q.isCollapsed(t)) return { anchor: r, focus: r }; var i = Uv(e, t.focus, n); return i ? { anchor: r, focus: i } : null } function iL(e, t) { var { path: n, diff: r, id: i } = e; switch (t.type) { case 'insert_text': return !N.equals(t.path, n) || t.offset >= r.end ? e : t.offset <= r.start ? { diff: { start: t.text.length + r.start, end: t.text.length + r.end, text: r.text }, id: i, path: n } : { diff: { start: r.start, end: r.end + t.text.length, text: r.text }, id: i, path: n }; case 'remove_text': return !N.equals(t.path, n) || t.offset >= r.end ? e : t.offset + t.text.length <= r.start ? { diff: { start: r.start - t.text.length, end: r.end - t.text.length, text: r.text }, id: i, path: n } : { diff: { start: r.start, end: r.end - t.text.length, text: r.text }, id: i, path: n }; case 'split_node': return !N.equals(t.path, n) || t.position >= r.end ? { diff: r, id: i, path: N.transform(n, t, { affinity: 'backward' }) } : t.position > r.start ? { diff: { start: r.start, end: Math.min(t.position, r.end), text: r.text }, id: i, path: n } : { diff: { start: r.start - t.position, end: r.end - t.position, text: r.text }, id: i, path: N.transform(n, t, { affinity: 'forward' }) }; case 'merge_node': return N.equals(t.path, n) ? { diff: { start: r.start + t.position, end: r.end + t.position, text: r.text }, id: i, path: N.transform(n, t) } : { diff: r, id: i, path: N.transform(n, t) } } var o = N.transform(n, t); return o ? { diff: r, path: o, id: i } : null } function W2(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function (i) { return Object.getOwnPropertyDescriptor(e, i).enumerable })), n.push.apply(n, r) } return n } function Ud(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : { }; t % 2 ? W2(Object(n), !0).forEach(function (r) { Sr(e, r, n[r]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : W2(Object(n)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) }) } return e } var oL = 25, sL = 200, aL = function () { }, uL = e=>(e == null ? void 0 : e.constructor.name) === 'DataTransfer'; function lL(e) { var { editor: t, scheduleOnDOMSelectionChange: n, onDOMSelectionChange: r } = e, i = !1, o = null, a = null, u = null, c = 0, f = !1, h = () =>{ var $ = To.get(t); if (To.delete(t), $) { var { selection: U } = t, T = U2(t, $); T && (!U || !q.equals(T, U)) && K.select(t, T) } }, g = () =>{ var $ = Ro.get(t); if (Ro.delete(t), !!$) { if ($.at) { var U = je.isPoint($.at) ? zv(t, $.at) : U2(t, $.at); if (!U) return; var T = C.range(t, U); (!t.selection || !q.equals(t.selection, T)) && K.select(t, U) } $.run() } }, m = () =>{ if (a && (clearTimeout(a), a = null), u && (clearTimeout(u), u = null), !O() && !x()) { h(); return } i || (i = !0, setTimeout(() =>i = !1)), x() && (i = 'action'); var $ = t.selection && C.rangeRef(t, t.selection, { affinity: 'forward' }); Hi.set(t, t.marks), aL('flush', Ro.get(t), Un.get(t)); for (var U = O(), T; T = (G = Un.get(t)) === null || G === void 0 ? void 0 : G[0]; ) { var G, se, re = Jr.get(t); re !== void 0 && (Jr.delete(t), t.marks = re), re && f === !1 && (f = null); var V = rL(T); (!t.selection || !q.equals(t.selection, V)) && K.select(t, V), T.diff.text ? C.insertText(t, T.diff.text) : C.deleteFragment(t), Un.set(t, (se = Un.get(t)) === null || se === void 0 ? void 0 : se.filter(ce=>{ var { id: ye } = ce; return ye !== T.id })), Z9(t, T) || (U = !1, Ro.delete(t), Hi.delete(t), i = 'action', To.delete(t), n.cancel(), r.cancel(), $ == null || $.unref()) } var te = $ == null ? void 0 : $.unref(); if (te && !To.get(t) && (!t.selection || !q.equals(te, t.selection)) && K.select(t, te), x()) { g(); return } U && n(), n.flush(), r.flush(), h(); var le = Hi.get(t); Hi.delete(t), le !== void 0 && (t.marks = le, t.onChange()) }, y = $=>{ o && clearTimeout(o), o = setTimeout(() =>{ As.set(t, !1), m() }, oL) }, v = $=>{ As.set(t, !0), o && (clearTimeout(o), o = null) }, p = function () { var U = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, T = Tv.get(t); if (T) { if (O() || U) { T.style.display = 'none'; return } T.style.removeProperty('display') } }, E = ($, U) =>{ var T, G = (T = Un.get(t)) !== null && T !== void 0 ? T : [ ]; Un.set(t, G); var se = de.leaf(t, $), re = G.findIndex(le=>N.equals(le.path, $)); if (re < 0) { var V = z2(se.text, U); V && G.push({ path: $, diff: U, id: c++ }), p(); return } var te = nL(se.text, G[re].diff, U); if (!te) { G.splice(re, 1), p(); return } G[re] = Ud(Ud({ }, G[re]), { }, { diff: te }) }, _ = function (U) { var { at: T } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }; f = !1, To.delete(t), n.cancel(), r.cancel(), x() && m(), Ro.set(t, { at: T, run: U }), u = setTimeout(m) }, b = $=>{ var U; a && (clearTimeout(a), a = null); var { inputType: T } = $, G = null, se = $.dataTransfer || $.data || void 0; f !== !1 && T !== 'insertText' && T !== 'insertCompositionText' && (f = !1); var [re] = $.getTargetRanges(); re && (G = ee.toSlateRange(t, re, { exactMatch: !1, suppressThrow: !0 })); var V = ee.getWindow(t), te = V.getSelection(); if (!G && te && (re = te, G = ee.toSlateRange(t, te, { exactMatch: !1, suppressThrow: !0 })), G = (U = G) !== null && U !== void 0 ? U : t.selection, !!G) { var le = !0; if (T.startsWith('delete')) { if (q.isExpanded(G)) { var [ce, ye] = q.edges(G), De = de.leaf(t, ce.path); if (De.text.length === ce.offset && ye.offset === 0) { var Ce = C.next(t, { at: ce.path, match: Ee.isText }); Ce && N.equals(Ce[1], ye.path) && (G = { anchor: ye, focus: ye }) } } var L = T.endsWith('Backward') ? 'backward' : 'forward', [ ne, J ] = q.edges(G), [ Q, ge ] = C.leaf(t, ne.path), he = { text: '', start: ne.offset, end: J.offset }, Pe = Un.get(t), me = Pe == null ? void 0 : Pe.find(Je=>N.equals(Je.path, ge)), Fe = me ? [ me.diff, he ] : [ he ], Se = j2(Q.text, ...Fe); if (Se.length === 0 && (le = !1), q.isExpanded(G)) { if (le && N.equals(G.anchor.path, G.focus.path)) { var Re = { path: G.anchor.path, offset: ne.offset }, Be = C.range(t, Re, Re); return P(Be), E(G.anchor.path, { text: '', end: J.offset, start: ne.offset }) } return _(() =>C.deleteFragment(t, { direction: L }), { at: G }) } } switch (T) { case 'deleteByComposition': case 'deleteByCut': case 'deleteByDrag': return _(() =>C.deleteFragment(t), { at: G }); case 'deleteContent': case 'deleteContentForward': { var { anchor: ke } = G; if (le && q.isCollapsed(G)) { var ct = de.leaf(t, ke.path); if (ke.offset < ct.text.length) return E(ke.path, { text: '', start: ke.offset, end: ke.offset + 1 }) } return _(() =>C.deleteForward(t), { at: G }) } case 'deleteContentBackward': { var Mt, { anchor: At } = G, ht = $v(re) ? re.isCollapsed : !!((Mt = re) !== null && Mt !== void 0 && Mt.collapsed); return le && ht && q.isCollapsed(G) && At.offset > 0 ? E(At.path, { text: '', start: At.offset - 1, end: At.offset }) : _(() =>C.deleteBackward(t), { at: G }) } case 'deleteEntireSoftLine': return _(() =>{ C.deleteBackward(t, { unit: 'line' }), C.deleteForward(t, { unit: 'line' }) }, { at: G }); case 'deleteHardLineBackward': return _(() =>C.deleteBackward(t, { unit: 'block' }), { at: G }); case 'deleteSoftLineBackward': return _(() =>C.deleteBackward(t, { unit: 'line' }), { at: G }); case 'deleteHardLineForward': return _(() =>C.deleteForward(t, { unit: 'block' }), { at: G }); case 'deleteSoftLineForward': return _(() =>C.deleteForward(t, { unit: 'line' }), { at: G }); case 'deleteWordBackward': return _(() =>C.deleteBackward(t, { unit: 'word' }), { at: G }); case 'deleteWordForward': return _(() =>C.deleteForward(t, { unit: 'word' }), { at: G }); case 'insertLineBreak': return _(() =>C.insertSoftBreak(t), { at: G }); case 'insertParagraph': return _(() =>C.insertBreak(t), { at: G }); case 'insertCompositionText': case 'deleteCompositionText': case 'insertFromComposition': case 'insertFromDrop': case 'insertFromPaste': case 'insertFromYank': case 'insertReplacementText': case 'insertText': { if (uL(se)) return _(() =>ee.insertData(t, se), { at: G }); var rt = se ?? ''; if (Jr.get(t) && (rt = rt.replace('', '')), T === 'insertText' && /.*\n.*\n$/.test(rt) && (rt = rt.slice(0, - 1)), rt.includes(` `)) return _(() =>{ var Je = rt.split(` `); Je.forEach((qt, sn) =>{ qt && C.insertText(t, qt), sn !== Je.length - 1 && C.insertSoftBreak(t) }) }, { at: G }); if (N.equals(G.anchor.path, G.focus.path)) { var [Kt, ve] = q.edges(G), be = { start: Kt.offset, end: ve.offset, text: rt }; if (rt && f && T === 'insertCompositionText') { var Ze = f.start + f.text.search(/\S|$/), it = be.start + be.text.search(/\S|$/); it === Ze + 1 && be.end === f.start + f.text.length ? (be.start -= 1, f = null, j()) : f = !1 } else T === 'insertText' ? f === null ? f = be : f && q.isCollapsed(G) && f.end + f.text.length === Kt.offset ? f = Ud(Ud({ }, f), { }, { text: f.text + rt }) : f = !1 : f = !1; if (le) { E(Kt.path, be); return } } return _(() =>C.insertText(t, rt), { at: G }) } } } }, x = () =>!!Ro.get(t), O = () =>{ var $; return !!(($ = Un.get(t)) !== null && $ !== void 0 && $.length) }, B = () =>x() || O(), k = () =>i, P = $=>{ To.set(t, $), a && (clearTimeout(a), a = null); var { selection: U } = t; if ($) { var T = !U || !N.equals(U.anchor.path, $.anchor.path), G = !U || !N.equals(U.anchor.path.slice(0, - 1), $.anchor.path.slice(0, - 1)); (T && f || G) && (f = !1), (T || O()) && (a = setTimeout(m, sL)) } }, I = () =>{ (x() || !O()) && m() }, Y = $=>{ O() || (p(!0), setTimeout(p)) }, j = () =>{ x() || (u = setTimeout(m)) }, X = $=>{ if (!(O() || x()) && $.some(T=>jv(t, T, $))) { var U; (U = I2.get(t)) === null || U === void 0 || U() } }; return { flush: m, scheduleFlush: j, hasPendingDiffs: O, hasPendingAction: x, hasPendingChanges: B, isFlushing: k, handleUserSelect: P, handleCompositionEnd: y, handleCompositionStart: v, handleDOMBeforeInput: b, handleKeyDown: Y, handleDomMutations: X, handleInput: I } } function cL() { var e = D.useRef(!1); return D.useEffect(() =>(e.current = !0, () =>{ e.current = !1 }), [ ]), e.current } var Ss = Md ? D.useLayoutEffect : D.useEffect; function fL(e, t, n) { var [r] = D.useState(() =>new MutationObserver(t)); Ss(() =>{ r.takeRecords() }), D.useEffect(() =>{ if (!e.current) throw new Error('Failed to attach MutationObserver, `node` is undefined'); return r.observe(e.current, n), () =>r.disconnect() }, [ r, e, n ]) } var dL = [ 'node' ]; function V2(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function (i) { return Object.getOwnPropertyDescriptor(e, i).enumerable })), n.push.apply(n, r) } return n } function hL(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : { }; t % 2 ? V2(Object(n), !0).forEach(function (r) { Sr(e, r, n[r]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : V2(Object(n)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) }) } return e } var pL = { subtree: !0, childList: !0, characterData: !0 }, gL = Bn ? e=>{ var { node: t } = e, n = Ma(e, dL); if (!Bn) return null; var r = Or(), i = cL(), [ o ] = D.useState(() =>lL(hL({ editor: r }, n))); return fL(t, o.handleDomMutations, pL), Lv.set(r, o.scheduleFlush), i && o.flush(), o } : () =>null, mL = [ 'anchor', 'focus' ], vL = [ 'anchor', 'focus' ], yL = (e, t) =>Object.keys(e).length === Object.keys(t).length && Object.keys(e).every(n=>t.hasOwnProperty(n) && e[n] === t[n]), K2 = (e, t) =>{ var n = Ma(e, mL), r = Ma(t, vL); return e[ja] === t[ja] && yL(n, r) }, wL = (e, t) =>{ if (e.length !== t.length) return !1; for (var n = 0; n < e.length; n++) { var r = e[n], i = t[n]; if (!q.equals(r, i) || !K2(r, i)) return !1 } return !0 }, bL = (e, t) =>{ if (e.length !== t.length) return !1; for (var n = 0; n < e.length; n++) { var r = e[n], i = t[n]; if (r.anchor.offset !== i.anchor.offset || r.focus.offset !== i.focus.offset || !K2(r, i)) return !1 } return !0 }; function q2(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function (i) { return Object.getOwnPropertyDescriptor(e, i).enumerable })), n.push.apply(n, r) } return n } function _L(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : { }; t % 2 ? q2(Object(n), !0).forEach(function (r) { Sr(e, r, n[r]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : q2(Object(n)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) }) } return e } var CL = e=>{ var { isLast: t, leaf: n, parent: r, text: i } = e, o = Or(), a = ee.findPath(o, i), u = N.parent(a), c = !!n[N2]; return o.isVoid(r) ? Le.createElement(Hv, { length: de.string(r).length }) : n.text === '' && r.children[r.children.length - 1] === i && !o.isInline(r) && C.string(o, u) === '' ? Le.createElement(Hv, { isLineBreak: !0, isMarkPlaceholder: c }) : n.text === '' ? Le.createElement(Hv, { isMarkPlaceholder: c }) : t && n.text.slice( - 1) === ` ` ? Le.createElement(G2, { isTrailing: !0, text: n.text }) : Le.createElement(G2, { text: n.text }) }, G2 = e=>{ var { text: t, isTrailing: n = !1 } = e, r = D.useRef(null), i = () =>''.concat(t ?? '').concat(n ? ` ` : ''), [ o ] = D.useState(i); return Ss(() =>{ var a = i(); r.current && r.current.textContent !== a && (r.current.textContent = a) }), Le.createElement(EL, { ref: r }, o) }, EL = D.memo(D.forwardRef((e, t) =>Le.createElement('span', { 'data-slate-string': !0, ref: t }, e.children))), Hv = e=>{ var { length: t = 0, isLineBreak: n = !1, isMarkPlaceholder: r = !1 } = e, i = { 'data-slate-zero-width': n ? 'n' : 'z', 'data-slate-length': t }; return r && (i['data-slate-mark-placeholder'] = !0), Le.createElement('span', _L({ }, i), !(Bn || B2) || !n ? '' : null, n ? Le.createElement('br', null) : null) }; function Q2(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function (i) { return Object.getOwnPropertyDescriptor(e, i).enumerable })), n.push.apply(n, r) } return n } function Y2(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : { }; t % 2 ? Q2(Object(n), !0).forEach(function (r) { Sr(e, r, n[r]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Q2(Object(n)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) }) } return e } var DL = Bn ? 300 : 0; function xL(e, t) { e.current && (e.current.disconnect(), t && (e.current = null)) } function J2(e) { e.current && (clearTimeout(e.current), e.current = null) } var AL = e=>{ var { leaf: t, isLast: n, text: r, parent: i, renderPlaceholder: o, renderLeaf: a = b=>Le.createElement(OL, Y2({ }, b)) } = e, u = Or(), c = D.useRef(null), f = D.useRef(null), [ h, g ] = D.useState(!1), m = D.useRef(null), y = D.useCallback(b=>{ if (xL(c, b == null), b == null) { var x; Tv.delete(u), (x = t.onPlaceholderResize) === null || x === void 0 || x.call(t, null) } else { if (Tv.set(u, b), !c.current) { var O = window.ResizeObserver || F9; c.current = new O(() =>{ var B; (B = t.onPlaceholderResize) === null || B === void 0 || B.call(t, b) }) } c.current.observe(b), f.current = b } }, [ f, t, u ]), v = Le.createElement(CL, { isLast: n, leaf: t, parent: i, text: r }), p = !!t[ja]; if (D.useEffect(() =>(p ? m.current || (m.current = setTimeout(() =>{ g(!0), m.current = null }, DL)) : (J2(m), g(!1)), () =>J2(m)), [ p, g ]), p && h) { var E = { children: t.placeholder, attributes: { 'data-slate-placeholder': !0, style: { position: 'absolute', top: 0, pointerEvents: 'none', width: '100%', maxWidth: '100%', display: 'block', opacity: '0.333', userSelect: 'none', textDecoration: 'none', WebkitUserModify: Ds ? 'inherit' : void 0 }, contentEditable: !1, ref: y } }; v = Le.createElement(Le.Fragment, null, o(E), v) } var _ = { 'data-slate-leaf': !0 }; return a({ attributes: _, children: v, leaf: t, text: r }) }, SL = Le.memo(AL, (e, t) =>t.parent === e.parent && t.isLast === e.isLast && t.renderLeaf === e.renderLeaf && t.renderPlaceholder === e.renderPlaceholder && t.text === e.text && Ee.equals(t.leaf, e.leaf) && t.leaf[ja] === e.leaf[ja]), OL = e=>{ var { attributes: t, children: n } = e; return Le.createElement('span', Y2({ }, t), n) }, FL = e=>{ for (var { decorations: t, isLast: n, parent: r, renderPlaceholder: i, renderLeaf: o, text: a } = e, u = Or(), c = D.useRef(null), f = Ee.decorations(a, t), h = ee.findKey(u, a), g = [ ], m = 0; m < f.length; m++) { var y = f[m]; g.push(Le.createElement(SL, { isLast: n && m === f.length - 1, key: ''.concat(h.id, '-').concat(m), renderPlaceholder: i, leaf: y, text: a, parent: r, renderLeaf: o })) } var v = D.useCallback(p=>{ var E = zd.get(u); p ? (E == null || E.set(h, p), xs.set(a, p), Ml.set(p, a)) : (E == null || E.delete(h), xs.delete(a), c.current && Ml.delete(c.current)), c.current = p }, [ c, u, h, a ]); return Le.createElement('span', { 'data-slate-node': 'text', ref: v }, g) }, X2 = Le.memo(FL, (e, t) =>t.parent === e.parent && t.isLast === e.isLast && t.renderLeaf === e.renderLeaf && t.renderPlaceholder === e.renderPlaceholder && t.text === e.text && bL(t.decorations, e.decorations)); function Z2(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function (i) { return Object.getOwnPropertyDescriptor(e, i).enumerable })), n.push.apply(n, r) } return n } function Wv(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : { }; t % 2 ? Z2(Object(n), !0).forEach(function (r) { Sr(e, r, n[r]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Z2(Object(n)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) }) } return e } var BL = e=>{ var { decorations: t, element: n, renderElement: r = b=>Le.createElement(PL, Wv({ }, b)), renderPlaceholder: i, renderLeaf: o, selection: a } = e, u = Or(), c = TL(), f = u.isInline(n), h = ee.findKey(u, n), g = D.useCallback(b=>{ var x = zd.get(u); b ? (x == null || x.set(h, b), xs.set(n, b), Ml.set(b, n)) : (x == null || x.delete(h), xs.delete(n)) }, [ u, h, n ]), m = nA({ decorations: t, node: n, renderElement: r, renderPlaceholder: i, renderLeaf: o, selection: a }), y = { 'data-slate-node': 'element', ref: g }; if (f && (y['data-slate-inline'] = !0), !f && C.hasInlines(u, n)) { var v = de.string(n), p = ex(v); p === 'rtl' && (y.dir = p) } if (C.isVoid(u, n)) { y['data-slate-void'] = !0, !c && f && (y.contentEditable = !1); var E = f ? 'span' : 'div', [ [_] ] = de.texts(n); m = Le.createElement(E, { 'data-slate-spacer': !0, style: { height: '0', color: 'transparent', outline: 'none', position: 'absolute' } }, Le.createElement(X2, { renderPlaceholder: i, decorations: [ ], isLast: !1, parent: n, text: _ })), Pv.set(_, 0), Rv.set(_, n) } return r({ attributes: y, children: m, element: n }) }, kL = Le.memo(BL, (e, t) =>e.element === t.element && e.renderElement === t.renderElement && e.renderLeaf === t.renderLeaf && e.renderPlaceholder === t.renderPlaceholder && wL(e.decorations, t.decorations) && (e.selection === t.selection || !!e.selection && !!t.selection && q.equals(e.selection, t.selection))), PL = e=>{ var { attributes: t, children: n, element: r } = e, i = Or(), o = i.isInline(r) ? 'span' : 'div'; return Le.createElement(o, Wv(Wv({ }, t), { }, { style: { position: 'relative' } }), n) }, eA = D.createContext(() =>[]), RL = () =>D.useContext(eA), tA = D.createContext(!1), Hd = () =>D.useContext(tA), nA = e=>{ for (var { decorations: t, node: n, renderElement: r, renderPlaceholder: i, renderLeaf: o, selection: a } = e, u = RL(), c = Or(), f = ee.findPath(c, n), h = [ ], g = we.isElement(n) && !c.isInline(n) && C.hasInlines(c, n), m = 0; m < n.children.length; m++) { var y = f.concat(m), v = n.children[m], p = ee.findKey(c, v), E = C.range(c, y), _ = a && q.intersection(E, a), b = u([v, y]); for (var x of t) { var O = q.intersection(x, E); O && b.push(O) } we.isElement(v) ? h.push(Le.createElement(tA.Provider, { key: 'provider-'.concat(p.id), value: !!_ }, Le.createElement(kL, { decorations: b, element: v, key: p.id, renderElement: r, renderPlaceholder: i, renderLeaf: o, selection: _ }))) : h.push(Le.createElement(X2, { decorations: b, key: p.id, isLast: g && m === n.children.length - 1, parent: n, renderPlaceholder: i, renderLeaf: o, text: v })), Pv.set(v, m), Rv.set(v, n) } return h }, rA = D.createContext(!1), TL = () =>D.useContext(rA), iA = D.createContext(null), Wi = () =>{ var e = D.useContext(iA); if (!e) throw new Error('The `useSlate` hook must be used inside the <Slate> component\'s context.'); var { editor: t } = e; return t }; function IL() { var e = Or(), t = D.useRef(!1), n = D.useRef(0), r = D.useCallback(() =>{ if (!t.current) { t.current = !0; var i = ee.getWindow(e); i.cancelAnimationFrame(n.current), n.current = i.requestAnimationFrame(() =>{ t.current = !1 }) } }, [ e ]); return D.useEffect(() =>() =>cancelAnimationFrame(n.current), [ ]), { receivedUserInput: t, onUserInput: r } } var NL = 3, LL = { bold: 'mod+b', compose: [ 'down', 'left', 'right', 'up', 'backspace', 'enter' ], moveBackward: 'left', moveForward: 'right', moveWordBackward: 'ctrl+left', moveWordForward: 'ctrl+right', deleteBackward: 'shift?+backspace', deleteForward: 'shift?+delete', extendBackward: 'shift+left', extendForward: 'shift+right', italic: 'mod+i', insertSoftBreak: 'shift+enter', splitBlock: 'enter', undo: 'mod+z' }, ML = { moveLineBackward: 'opt+up', moveLineForward: 'opt+down', moveWordBackward: 'opt+left', moveWordForward: 'opt+right', deleteBackward: [ 'ctrl+backspace', 'ctrl+h' ], deleteForward: [ 'ctrl+delete', 'ctrl+d' ], deleteLineBackward: 'cmd+shift?+backspace', deleteLineForward: [ 'cmd+shift?+delete', 'ctrl+k' ], deleteWordBackward: 'opt+shift?+backspace', deleteWordForward: 'opt+shift?+delete', extendLineBackward: 'opt+shift+up', extendLineForward: 'opt+shift+down', redo: 'cmd+shift+z', transposeCharacter: 'ctrl+t' }, $L = { deleteWordBackward: 'ctrl+shift?+backspace', deleteWordForward: 'ctrl+shift?+delete', redo: [ 'ctrl+y', 'ctrl+shift+z' ] }, xt = e=>{ var t = LL[e], n = ML[e], r = $L[e], i = t && Ov(t), o = n && Ov(n), a = r && Ov(r); return u=>!!(i && i(u) || k2 && o && o(u) || !k2 && a && a(u)) }, kt = { isBold: xt('bold'), isCompose: xt('compose'), isMoveBackward: xt('moveBackward'), isMoveForward: xt('moveForward'), isDeleteBackward: xt('deleteBackward'), isDeleteForward: xt('deleteForward'), isDeleteLineBackward: xt('deleteLineBackward'), isDeleteLineForward: xt('deleteLineForward'), isDeleteWordBackward: xt('deleteWordBackward'), isDeleteWordForward: xt('deleteWordForward'), isExtendBackward: xt('extendBackward'), isExtendForward: xt('extendForward'), isExtendLineBackward: xt('extendLineBackward'), isExtendLineForward: xt('extendLineForward'), isItalic: xt('italic'), isMoveLineBackward: xt('moveLineBackward'), isMoveLineForward: xt('moveLineForward'), isMoveWordBackward: xt('moveWordBackward'), isMoveWordForward: xt('moveWordForward'), isRedo: xt('redo'), isSoftBreak: xt('insertSoftBreak'), isSplitBlock: xt('splitBlock'), isTransposeCharacter: xt('transposeCharacter'), isUndo: xt('undo') }, jL = (e, t) =>{ var n = [ ], r = () =>{ n = [ ] }, i = a=>{ if (t.current) { var u = a.filter(c=>jv(e, c, a)); n.push(...u) } }; function o() { n.length > 0 && (n.reverse().forEach(a=>{ a.type !== 'characterData' && (a.removedNodes.forEach(u=>{ a.target.insertBefore(u, a.nextSibling) }), a.addedNodes.forEach(u=>{ a.target.removeChild(u) })) }), r()) } return { registerMutations: i, restoreDOM: o, clear: r } }, zL = { subtree: !0, childList: !0, characterData: !0, characterDataOldValue: !0 }; class oA extends D.Component { constructor() { super (...arguments), Sr(this, 'context', null), Sr(this, 'manager', null), Sr(this, 'mutationObserver', null) } observe() { var t, { node: n } = this.props; if (!n.current) throw new Error('Failed to attach MutationObserver, `node` is undefined'); (t = this.mutationObserver) === null || t === void 0 || t.observe(n.current, zL) } componentDidMount() { var { receivedUserInput: t } = this.props, n = this.context; this.manager = jL(n, t), this.mutationObserver = new MutationObserver(this.manager.registerMutations), this.observe() } getSnapshotBeforeUpdate() { var t, n, r, i = (t = this.mutationObserver) === null || t === void 0 ? void 0 : t.takeRecords(); if (i != null && i.length) { var o; (o = this.manager) === null || o === void 0 || o.registerMutations(i) } return (n = this.mutationObserver) === null || n === void 0 || n.disconnect(), (r = this.manager) === null || r === void 0 || r.restoreDOM(), null } componentDidUpdate() { var t; (t = this.manager) === null || t === void 0 || t.clear(), this.observe() } componentWillUnmount() { var t; (t = this.mutationObserver) === null || t === void 0 || t.disconnect() } render() { return this.props.children } } Sr(oA, 'contextType', Fv); var UL = Bn ? oA : e=>{ var { children: t } = e; return Le.createElement(Le.Fragment, null, t) }, HL = [ 'autoFocus', 'decorate', 'onDOMBeforeInput', 'placeholder', 'readOnly', 'renderElement', 'renderLeaf', 'renderPlaceholder', 'scrollSelectionIntoView', 'style', 'as', 'disableDefaultStyles' ], WL = [ 'text' ]; function sA(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function (i) { return Object.getOwnPropertyDescriptor(e, i).enumerable })), n.push.apply(n, r) } return n } function gi(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : { }; t % 2 ? sA(Object(n), !0).forEach(function (r) { Sr(e, r, n[r]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : sA(Object(n)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) }) } return e } var VL = e=>Le.createElement(Le.Fragment, null, nA(e)), KL = e=>{ var t = D.useCallback(L=>Le.createElement(qL, gi({ }, L)), [ ]), { autoFocus: n, decorate: r = GL, onDOMBeforeInput: i, placeholder: o, readOnly: a = !1, renderElement: u, renderLeaf: c, renderPlaceholder: f = t, scrollSelectionIntoView: h = QL, style: g = { }, as: m = 'div', disableDefaultStyles: y = !1 } = e, v = Ma(e, HL), p = Wi(), [ E, _ ] = D.useState(!1), b = D.useRef(null), x = D.useRef([]), [ O, B ] = D.useState(), k = D.useRef(!1), { onUserInput: P, receivedUserInput: I } = IL(), [ , Y ] = D.useReducer(L=>L + 1, 0); I2.set(p, Y), Iv.set(p, a); var j = D.useMemo(() =>({ isDraggingInternally: !1, isUpdatingSelection: !1, latestElement: null, hasMarkPlaceholder: !1 }), [ ]); D.useEffect(() =>{ b.current && n && b.current.focus() }, [ n ]); var X = D.useRef(), $ = D.useMemo(() =>BI(() =>{ var L = ee.toDOMNode(p, p), ne = L.getRootNode(); if (R2 && !k.current && Ds && ne instanceof ShadowRoot) { k.current = !0; var J = Y9(); J ? document.execCommand('indent') : K.deselect(p), k.current = !1; return } var Q = X.current; if ((Bn || !ee.isComposing(p)) && (!j.isUpdatingSelection || Q != null && Q.isFlushing()) && !j.isDraggingInternally) { var ge = ee.findDocumentOrShadowRoot(p), { activeElement: he } = ge, Pe = ee.toDOMNode(p, p), me = ge.getSelection(); if (he === Pe ? (j.latestElement = he, Po.set(p, !0)) : Po.delete(p), !me) return K.deselect(p); var { anchorNode: Fe, focusNode: Se } = me, Re = ee.hasEditableTarget(p, Fe) || ee.isTargetInsideNonReadonlyVoid(p, Fe), Be = ee.hasEditableTarget(p, Se) || ee.isTargetInsideNonReadonlyVoid(p, Se); if (Re && Be) { var ke = ee.toSlateRange(p, me, { exactMatch: !1, suppressThrow: !0 }); ke && (!ee.isComposing(p) && !(Q != null && Q.hasPendingChanges()) && !(Q != null && Q.isFlushing()) ? K.select(p, ke) : Q == null || Q.handleUserSelect(ke)) } a && (!Re || !Be) && K.deselect(p) } }, 100), [ p, a, j ]), U = D.useMemo(() =>DI($, 0), [ $ ]); X.current = gL({ node: b, onDOMSelectionChange: $, scheduleOnDOMSelectionChange: U }), Ss(() =>{ var L, ne, J; b.current && (J = Mv(b.current)) ? (T2.set(p, J), $d.set(p, b.current), xs.set(p, b.current), Ml.set(b.current, p)) : xs.delete(p); var { selection: Q } = p, ge = ee.findDocumentOrShadowRoot(p), he = ge.getSelection(); if (!(!he || !ee.isFocused(p) || (L = X.current) !== null && L !== void 0 && L.hasPendingAction())) { var Pe = Re=>{ var Be = he.type !== 'None'; if (!(!Q && !Be)) { var ke = he.focusNode, ct; if ($a && he.rangeCount > 1) { var Mt = he.getRangeAt(0), At = he.getRangeAt(he.rangeCount - 1); Mt.startContainer === ke ? ct = At.endContainer : ct = Mt.startContainer } else ct = he.anchorNode; var ht = $d.get(p), rt = !1; if (ht.contains(ct) && ht.contains(ke) && (rt = !0), Be && rt && Q && !Re) { var Kt = ee.toSlateRange(p, he, { exactMatch: !0, suppressThrow: !0 }); if (Kt && q.equals(Kt, Q)) { var ve; if (!j.hasMarkPlaceholder || (ve = ct) !== null && ve !== void 0 && (ve = ve.parentElement) !== null && ve !== void 0 && ve.hasAttribute('data-slate-mark-placeholder')) return } } if (Q && !ee.hasRange(p, Q)) { p.selection = ee.toSlateRange(p, he, { exactMatch: !1, suppressThrow: !0 }); return } j.isUpdatingSelection = !0; var be = Q && ee.toDOMRange(p, Q); return be ? (ee.isComposing(p) && !Bn ? he.collapseToEnd() : q.isBackward(Q) ? he.setBaseAndExtent(be.endContainer, be.endOffset, be.startContainer, be.startOffset) : he.setBaseAndExtent(be.startContainer, be.startOffset, be.endContainer, be.endOffset), h(p, be)) : he.removeAllRanges(), be } }; he.rangeCount <= 1 && Pe(); var me = ((ne = X.current) === null || ne === void 0 ? void 0 : ne.isFlushing()) === 'action'; if (!Bn || !me) { setTimeout(() =>{ j.isUpdatingSelection = !1 }); return } var Fe = null, Se = requestAnimationFrame(() =>{ if (me) { var Re = Be=>{ try { var ke = ee.toDOMNode(p, p); ke.focus(), Pe(Be) } catch { } }; Re(), Fe = setTimeout(() =>{ Re(!0), j.isUpdatingSelection = !1 }) } }); return () =>{ cancelAnimationFrame(Se), Fe && clearTimeout(Fe) } } }); var T = D.useCallback(L=>{ var ne = ee.toDOMNode(p, p), J = ne.getRootNode(); if (R2 && k !== null && k !== void 0 && k.current && Ds && J instanceof ShadowRoot) { var Q = L.getTargetRanges(), ge = Q[0], he = new window.Range; he.setStart(ge.startContainer, ge.startOffset), he.setEnd(ge.endContainer, ge.endOffset); var Pe = ee.toSlateRange(p, he, { exactMatch: !1, suppressThrow: !1 }); K.select(p, Pe), L.preventDefault(), L.stopImmediatePropagation(); return } if (P(), !a && ee.hasEditableTarget(p, L.target) && !YL(L, i)) { var me; if (X.current) return X.current.handleDOMBeforeInput(L); U.flush(), $.flush(); var { selection: Fe } = p, { inputType: Se } = L, Re = L.dataTransfer || L.data || void 0, Be = Se === 'insertCompositionText' || Se === 'deleteCompositionText'; if (Be && ee.isComposing(p)) return; var ke = !1; if (Se === 'insertText' && Fe && q.isCollapsed(Fe) && L.data && L.data.length === 1 && /[a-z ]/i.test(L.data) && Fe.anchor.offset !== 0) { var ct, Mt; ke = !0, p.marks && (ke = !1); var { anchor: At } = Fe, [ ht, rt ] = ee.toDOMPoint(p, At), Kt = (ct = ht.parentElement) === null || ct === void 0 ? void 0 : ct.closest('a'), ve = ee.getWindow(p); if (ke && Kt && ee.hasDOMNode(p, Kt)) { var be, Ze = ve == null ? void 0 : ve.document.createTreeWalker(Kt, NodeFilter.SHOW_TEXT).lastChild(); Ze === ht && ((be = Ze.textContent) === null || be === void 0 ? void 0 : be.length) === rt && (ke = !1) } if (ke && ht.parentElement && (ve == null || (Mt = ve.getComputedStyle(ht.parentElement)) === null || Mt === void 0 ? void 0 : Mt.whiteSpace) === 'pre') { var it = C.above(p, { at: At.path, match: Pr=>we.isElement(Pr) && C.isBlock(p, Pr) }); it && de.string(it[0]).includes('\t') && (ke = !1) } } if (!Se.startsWith('delete') || Se.startsWith('deleteBy')) { var [Je] = L.getTargetRanges(); if (Je) { var qt = ee.toSlateRange(p, Je, { exactMatch: !1, suppressThrow: !1 }); if (!Fe || !q.equals(Fe, qt)) { ke = !1; var sn = !Be && p.selection && C.rangeRef(p, p.selection); K.select(p, qt), sn && $l.set(p, sn) } } } if (Be) return; if (ke || L.preventDefault(), Fe && q.isExpanded(Fe) && Se.startsWith('delete')) { var pn = Se.endsWith('Backward') ? 'backward' : 'forward'; C.deleteFragment(p, { direction: pn }); return } switch (Se) { case 'deleteByComposition': case 'deleteByCut': case 'deleteByDrag': { C.deleteFragment(p); break } case 'deleteContent': case 'deleteContentForward': { C.deleteForward(p); break } case 'deleteContentBackward': { C.deleteBackward(p); break } case 'deleteEntireSoftLine': { C.deleteBackward(p, { unit: 'line' }), C.deleteForward(p, { unit: 'line' }); break } case 'deleteHardLineBackward': { C.deleteBackward(p, { unit: 'block' }); break } case 'deleteSoftLineBackward': { C.deleteBackward(p, { unit: 'line' }); break } case 'deleteHardLineForward': { C.deleteForward(p, { unit: 'block' }); break } case 'deleteSoftLineForward': { C.deleteForward(p, { unit: 'line' }); break } case 'deleteWordBackward': { C.deleteBackward(p, { unit: 'word' }); break } case 'deleteWordForward': { C.deleteForward(p, { unit: 'word' }); break } case 'insertLineBreak': C.insertSoftBreak(p); break; case 'insertParagraph': { C.insertBreak(p); break } case 'insertFromComposition': case 'insertFromDrop': case 'insertFromPaste': case 'insertFromYank': case 'insertReplacementText': case 'insertText': { Se === 'insertFromComposition' && ee.isComposing(p) && (_(!1), As.set(p, !1)), (Re == null ? void 0 : Re.constructor.name) === 'DataTransfer' ? ee.insertData(p, Re) : typeof Re == 'string' && (ke ? x.current.push(() =>C.insertText(p, Re)) : C.insertText(p, Re)); break } } var cr = (me = $l.get(p)) === null || me === void 0 ? void 0 : me.unref(); $l.delete(p), cr && (!p.selection || !q.equals(p.selection, cr)) && K.select(p, cr) } }, [ p, $, P, i, a, U ]), G = D.useCallback(L=>{ L == null ? ($.cancel(), U.cancel(), $d.delete(p), xs.delete(p), b.current && ko && b.current.removeEventListener('beforeinput', T)) : ko && L.addEventListener('beforeinput', T), b.current = L }, [ $, U, p, T ]); Ss(() =>{ var L = ee.getWindow(p); return L.document.addEventListener('selectionchange', U), () =>{ L.document.removeEventListener('selectionchange', U) } }, [ U ]); var se = r([p, [ ]]), re = o && p.children.length === 1 && Array.from(de.texts(p)).length === 1 && de.string(p) === '' && !E, V = D.useCallback(L=>{ if (L && re) { var ne; B((ne = L.getBoundingClientRect()) === null || ne === void 0 ? void 0 : ne.height) } else B(void 0) }, [ re ]); if (re) { var te = C.start(p, [ ]); se.push({ [ ja ]: !0, placeholder: o, onPlaceholderResize: V, anchor: te, focus: te }) } var { marks: le } = p; if (j.hasMarkPlaceholder = !1, p.selection && q.isCollapsed(p.selection) && le) { var { anchor: ce } = p.selection, ye = de.leaf(p, ce.path), De = Ma(ye, WL); if (!Ee.equals(ye, le, { loose: !0 })) { j.hasMarkPlaceholder = !0; var Ce = Object.fromEntries(Object.keys(De).map(L=>[L, null])); se.push(gi(gi(gi({ [ N2 ]: !0 }, Ce), le), { }, { anchor: ce, focus: ce })) } } return D.useEffect(() =>{ setTimeout(() =>{ var { selection: L } = p; if (L) { var { anchor: ne } = L, J = de.leaf(p, ne.path); if (le && !Ee.equals(J, le, { loose: !0 })) { Jr.set(p, le); return } } Jr.delete(p) }) }), Le.createElement(rA.Provider, { value: a }, Le.createElement(eA.Provider, { value: r }, Le.createElement(UL, { node: b, receivedUserInput: I }, Le.createElement(m, gi(gi({ role: a ? void 0 : 'textbox', 'aria-multiline': a ? void 0 : !0 }, v), { }, { spellCheck: ko || !Md ? v.spellCheck : !1, autoCorrect: ko || !Md ? v.autoCorrect : 'false', autoCapitalize: ko || !Md ? v.autoCapitalize : 'false', 'data-slate-editor': !0, 'data-slate-node': 'value', contentEditable: !a, zindex: - 1, suppressContentEditableWarning: !0, ref: G, style: gi(gi({ }, y ? { } : gi({ position: 'relative', whiteSpace: 'pre-wrap', wordWrap: 'break-word' }, O ? { minHeight: O } : { })), g), onBeforeInput: D.useCallback(L=>{ if (!ko && !a && !kn(L, v.onBeforeInput) && ee.hasSelectableTarget(p, L.target) && (L.preventDefault(), !ee.isComposing(p))) { var ne = L.data; C.insertText(p, ne) } }, [ v.onBeforeInput, p, a ]), onInput: D.useCallback(L=>{ if (!kn(L, v.onInput)) { if (X.current) { X.current.handleInput(); return } for (var ne of x.current) ne(); x.current = [ ] } }, [ v.onInput ]), onBlur: D.useCallback(L=>{ if (!(a || j.isUpdatingSelection || !ee.hasSelectableTarget(p, L.target) || kn(L, v.onBlur))) { var ne = ee.findDocumentOrShadowRoot(p); if (j.latestElement !== ne.activeElement) { var { relatedTarget: J } = L, Q = ee.toDOMNode(p, p); if (J !== Q && !(Fr(J) && J.hasAttribute('data-slate-spacer'))) { if (J != null && Io(J) && ee.hasDOMNode(p, J)) { var ge = ee.toSlateNode(p, J); if (we.isElement(ge) && !p.isVoid(ge)) return } if (Ds) { var he = ne.getSelection(); he == null || he.removeAllRanges() } Po.delete(p) } } } }, [ a, j.isUpdatingSelection, j.latestElement, p, v.onBlur ]), onClick: D.useCallback(L=>{ if (ee.hasTarget(p, L.target) && !kn(L, v.onClick) && Io(L.target)) { var ne = ee.toSlateNode(p, L.target), J = ee.findPath(p, ne); if (!C.hasPath(p, J) || de.get(p, J) !== ne) return; if (L.detail === NL && J.length >= 1) { var Q = J; if (!(we.isElement(ne) && C.isBlock(p, ne))) { var ge, he = C.above(p, { match: ke=>we.isElement(ke) && C.isBlock(p, ke), at: J }); Q = (ge = he == null ? void 0 : he[1]) !== null && ge !== void 0 ? ge : J.slice(0, 1) } var Pe = C.range(p, Q); K.select(p, Pe); return } if (a) return; var me = C.start(p, J), Fe = C.end(p, J), Se = C.void(p, { at: me }), Re = C.void(p, { at: Fe }); if (Se && Re && N.equals(Se[1], Re[1])) { var Be = C.range(p, me); K.select(p, Be) } } }, [ p, v.onClick, a ]), onCompositionEnd: D.useCallback(L=>{ if (ee.hasSelectableTarget(p, L.target)) { var ne; if (ee.isComposing(p) && Promise.resolve().then(() =>{ _(!1), As.set(p, !1) }), (ne = X.current) === null || ne === void 0 || ne.handleCompositionEnd(L), kn(L, v.onCompositionEnd) || Bn) return; if (!Ds && !$9 && !B2 && !z9 && !j9 && L.data) { var J = Jr.get(p); Jr.delete(p), J !== void 0 && (Hi.set(p, p.marks), p.marks = J), C.insertText(p, L.data); var Q = Hi.get(p); Hi.delete(p), Q !== void 0 && (p.marks = Q) } } }, [ v.onCompositionEnd, p ]), onCompositionUpdate: D.useCallback(L=>{ ee.hasSelectableTarget(p, L.target) && !kn(L, v.onCompositionUpdate) && (ee.isComposing(p) || (_(!0), As.set(p, !0))) }, [ v.onCompositionUpdate, p ]), onCompositionStart: D.useCallback(L=>{ if (ee.hasSelectableTarget(p, L.target)) { var ne; if ((ne = X.current) === null || ne === void 0 || ne.handleCompositionStart(L), kn(L, v.onCompositionStart) || Bn) return; _(!0); var { selection: J } = p; if (J && q.isExpanded(J)) { C.deleteFragment(p); return } } }, [ v.onCompositionStart, p ]), onCopy: D.useCallback(L=>{ ee.hasSelectableTarget(p, L.target) && !kn(L, v.onCopy) && !aA(L) && (L.preventDefault(), ee.setFragmentData(p, L.clipboardData, 'copy')) }, [ v.onCopy, p ]), onCut: D.useCallback(L=>{ if (!a && ee.hasSelectableTarget(p, L.target) && !kn(L, v.onCut) && !aA(L)) { L.preventDefault(), ee.setFragmentData(p, L.clipboardData, 'cut'); var { selection: ne } = p; if (ne) if (q.isExpanded(ne)) C.deleteFragment(p); else { var J = de.parent(p, ne.anchor.path); C.isVoid(p, J) && K.delete(p) } } }, [ a, p, v.onCut ]), onDragOver: D.useCallback(L=>{ if (ee.hasTarget(p, L.target) && !kn(L, v.onDragOver)) { var ne = ee.toSlateNode(p, L.target); we.isElement(ne) && C.isVoid(p, ne) && L.preventDefault() } }, [ v.onDragOver, p ]), onDragStart: D.useCallback(L=>{ if (!a && ee.hasTarget(p, L.target) && !kn(L, v.onDragStart)) { var ne = ee.toSlateNode(p, L.target), J = ee.findPath(p, ne), Q = we.isElement(ne) && C.isVoid(p, ne) || C.void(p, { at: J, voids: !0 }); if (Q) { var ge = C.range(p, J); K.select(p, ge) } j.isDraggingInternally = !0, ee.setFragmentData(p, L.dataTransfer, 'drag') } }, [ a, p, v.onDragStart, j ]), onDrop: D.useCallback(L=>{ if (!a && ee.hasTarget(p, L.target) && !kn(L, v.onDrop)) { L.preventDefault(); var ne = p.selection, J = ee.findEventRange(p, L), Q = L.dataTransfer; K.select(p, J), j.isDraggingInternally && ne && !q.equals(ne, J) && !C.void(p, { at: J, voids: !0 }) && K.delete(p, { at: ne }), ee.insertData(p, Q), ee.isFocused(p) || ee.focus(p) } j.isDraggingInternally = !1 }, [ a, p, v.onDrop, j ]), onDragEnd: D.useCallback(L=>{ !a && j.isDraggingInternally && v.onDragEnd && ee.hasTarget(p, L.target) && v.onDragEnd(L), j.isDraggingInternally = !1 }, [ a, j, v, p ]), onFocus: D.useCallback(L=>{ if (!a && !j.isUpdatingSelection && ee.hasEditableTarget(p, L.target) && !kn(L, v.onFocus)) { var ne = ee.toDOMNode(p, p), J = ee.findDocumentOrShadowRoot(p); if (j.latestElement = J.activeElement, $a && L.target !== ne) { ne.focus(); return } Po.set(p, !0) } }, [ a, j, p, v.onFocus ]), onKeyDown: D.useCallback(L=>{ if (!a && ee.hasEditableTarget(p, L.target)) { var ne; (ne = X.current) === null || ne === void 0 || ne.handleKeyDown(L); var { nativeEvent: J } = L; if (ee.isComposing(p) && J.isComposing === !1 && (As.set(p, !1), _(!1)), kn(L, v.onKeyDown) || ee.isComposing(p)) return; var { selection: Q } = p, ge = p.children[Q !== null ? Q.focus.path[0] : 0], he = ex(de.string(ge)) === 'rtl'; if (kt.isRedo(J)) { L.preventDefault(); var Pe = p; typeof Pe.redo == 'function' && Pe.redo(); return } if (kt.isUndo(J)) { L.preventDefault(); var me = p; typeof me.undo == 'function' && me.undo(); return } if (kt.isMoveLineBackward(J)) { L.preventDefault(), K.move(p, { unit: 'line', reverse: !0 }); return } if (kt.isMoveLineForward(J)) { L.preventDefault(), K.move(p, { unit: 'line' }); return } if (kt.isExtendLineBackward(J)) { L.preventDefault(), K.move(p, { unit: 'line', edge: 'focus', reverse: !0 }); return } if (kt.isExtendLineForward(J)) { L.preventDefault(), K.move(p, { unit: 'line', edge: 'focus' }); return } if (kt.isMoveBackward(J)) { L.preventDefault(), Q && q.isCollapsed(Q) ? K.move(p, { reverse: !he }) : K.collapse(p, { edge: he ? 'end' : 'start' }); return } if (kt.isMoveForward(J)) { L.preventDefault(), Q && q.isCollapsed(Q) ? K.move(p, { reverse: he }) : K.collapse(p, { edge: he ? 'start' : 'end' }); return } if (kt.isMoveWordBackward(J)) { L.preventDefault(), Q && q.isExpanded(Q) && K.collapse(p, { edge: 'focus' }), K.move(p, { unit: 'word', reverse: !he }); return } if (kt.isMoveWordForward(J)) { L.preventDefault(), Q && q.isExpanded(Q) && K.collapse(p, { edge: 'focus' }), K.move(p, { unit: 'word', reverse: he }); return } if (ko) { if ((P2 || Ds) && Q && (kt.isDeleteBackward(J) || kt.isDeleteForward(J)) && q.isCollapsed(Q)) { var Fe = de.parent(p, Q.anchor.path); if (we.isElement(Fe) && C.isVoid(p, Fe) && (C.isInline(p, Fe) || C.isBlock(p, Fe))) { L.preventDefault(), C.deleteBackward(p, { unit: 'block' }); return } } } else { if (kt.isBold(J) || kt.isItalic(J) || kt.isTransposeCharacter(J)) { L.preventDefault(); return } if (kt.isSoftBreak(J)) { L.preventDefault(), C.insertSoftBreak(p); return } if (kt.isSplitBlock(J)) { L.preventDefault(), C.insertBreak(p); return } if (kt.isDeleteBackward(J)) { L.preventDefault(), Q && q.isExpanded(Q) ? C.deleteFragment(p, { direction: 'backward' }) : C.deleteBackward(p); return } if (kt.isDeleteForward(J)) { L.preventDefault(), Q && q.isExpanded(Q) ? C.deleteFragment(p, { direction: 'forward' }) : C.deleteForward(p); return } if (kt.isDeleteLineBackward(J)) { L.preventDefault(), Q && q.isExpanded(Q) ? C.deleteFragment(p, { direction: 'backward' }) : C.deleteBackward(p, { unit: 'line' }); return } if (kt.isDeleteLineForward(J)) { L.preventDefault(), Q && q.isExpanded(Q) ? C.deleteFragment(p, { direction: 'forward' }) : C.deleteForward(p, { unit: 'line' }); return } if (kt.isDeleteWordBackward(J)) { L.preventDefault(), Q && q.isExpanded(Q) ? C.deleteFragment(p, { direction: 'backward' }) : C.deleteBackward(p, { unit: 'word' }); return } if (kt.isDeleteWordForward(J)) { L.preventDefault(), Q && q.isExpanded(Q) ? C.deleteFragment(p, { direction: 'forward' }) : C.deleteForward(p, { unit: 'word' }); return } } } }, [ a, p, v.onKeyDown ]), onPaste: D.useCallback(L=>{ !a && ee.hasEditableTarget(p, L.target) && !kn(L, v.onPaste) && (!ko || W9(L.nativeEvent) || Ds) && (L.preventDefault(), ee.insertData(p, L.clipboardData)) }, [ a, p, v.onPaste ]) }), Le.createElement(VL, { decorations: se, node: p, renderElement: u, renderPlaceholder: f, renderLeaf: c, selection: p.selection }))))) }, qL = e=>{ var { attributes: t, children: n } = e; return Le.createElement('span', gi({ }, t), n, Bn && Le.createElement('br', null)) }, GL = () =>[], QL = (e, t) =>{ if (t.getBoundingClientRect && (!e.selection || e.selection && q.isCollapsed(e.selection))) { var n = t.startContainer.parentElement; n.getBoundingClientRect = t.getBoundingClientRect.bind(t), RI(n, { scrollMode: 'if-needed' }), delete n.getBoundingClientRect } }, kn = (e, t) =>{ if (!t) return !1; var n = t(e); return n ?? (e.isDefaultPrevented() || e.isPropagationStopped()) }, aA = e=>Io(e.target) && (e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement), YL = (e, t) =>{ if (!t) return !1; var n = t(e); return n ?? e.defaultPrevented }, uA = D.createContext(!1), JL = () =>D.useContext(uA); function XL(e) { return e instanceof Error } var lA = D.createContext({ }), ZL = (e, t) =>e === t; function eM(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ZL, [ , n ] = D.useReducer(h=>h + 1, 0), r = D.useContext(lA); if (!r) throw new Error('The `useSlateSelector` hook must be used inside the <Slate> component\'s context.'); var { getSlate: i, addEventListener: o } = r, a = D.useRef(), u = D.useRef(() =>null), c = D.useRef(null), f; try { e !== u.current || a.current ? f = e(i()) : f = c.current } catch (h) { throw a.current && XL(h) && (h.message += ` The error may be correlated with this previous error: `.concat(a.current.stack, ` `)), h } return Ss(() =>{ u.current = e, c.current = f, a.current = void 0 }), Ss(() =>{ function h() { try { var m = u.current(i()); if (t(m, c.current)) return; c.current = m } catch (y) { y instanceof Error ? a.current = y : a.current = new Error(String(y)) } n() } var g = o(h); return h(), () =>g() }, [ o, i ]), f } function tM(e) { var t = D.useRef([]).current, n = D.useRef({ editor: e }).current, r = D.useCallback(o=>{ n.editor = o, t.forEach(a=>a(o)) }, [ t, n ]), i = D.useMemo(() =>({ getSlate: () =>n.editor, addEventListener: o=>(t.push(o), () =>{ t.splice(t.indexOf(o), 1) }) }), [ t, n ]); return { selectorContext: i, onChange: r } } var nM = [ 'editor', 'children', 'onChange', 'onSelectionChange', 'onValueChange', 'initialValue' ], rM = e=>{ var { editor: t, children: n, onChange: r, onSelectionChange: i, onValueChange: o, initialValue: a } = e, u = Ma(e, nM), [ c, f ] = Le.useState(() =>{ if (!de.isNodeList(a)) throw new Error('[Slate] initialValue is invalid! Expected a list of elements but got: '.concat(rn.stringify(a))); if (!C.isEditor(t)) throw new Error('[Slate] editor is invalid! You passed: '.concat(rn.stringify(t))); return t.children = a, Object.assign(t, u), { v: 0, editor: t } }), { selectorContext: h, onChange: g } = tM(t), m = D.useCallback(p=>{ var E; switch (r && r(t.children), p == null || (E = p.operation) === null || E === void 0 ? void 0 : E.type) { case 'set_selection': i == null || i(t.selection); break; default: o == null || o(t.children) } f(_=>({ v: _.v + 1, editor: t })), g(t) }, [ t, g, r, i, o ]); D.useEffect(() =>(Nv.set(t, m), () =>{ Nv.set(t, () =>{ }) }), [ t, m ]); var [y, v] = D.useState(ee.isFocused(t)); return D.useEffect(() =>{ v(ee.isFocused(t)) }, [ t ]), Ss(() =>{ var p = () =>v(ee.isFocused(t)); return F2 >= 17 ? (document.addEventListener('focusin', p), document.addEventListener('focusout', p), () =>{ document.removeEventListener('focusin', p), document.removeEventListener('focusout', p) }) : (document.addEventListener('focus', p, !0), document.addEventListener('blur', p, !0), () =>{ document.removeEventListener('focus', p, !0), document.removeEventListener('blur', p, !0) }) }, [ ]), Le.createElement(lA.Provider, { value: h }, Le.createElement(iA.Provider, { value: c }, Le.createElement(Fv.Provider, { value: c.editor }, Le.createElement(uA.Provider, { value: y }, n)))) }, iM = () =>eM(e=>e.selection, oM), oM = (e, t) =>!e && !t ? !0 : !e || !t ? !1 : q.equals(e, t), cA = (e, t) =>{ var n = (t.top + t.bottom) / 2; return e.top <= n && e.bottom >= n }, fA = (e, t, n) =>{ var r = ee.toDOMRange(e, t).getBoundingClientRect(), i = ee.toDOMRange(e, n).getBoundingClientRect(); return cA(r, i) && cA(i, r) }, sM = (e, t) =>{ var n = C.range(e, q.end(t)), r = Array.from(C.positions(e, { at: t })), i = 0, o = r.length, a = Math.floor(o / 2); if (fA(e, C.range(e, r[i]), n)) return C.range(e, r[i], n); if (r.length < 2) return C.range(e, r[r.length - 1], n); for (; a !== r.length && a !== i; ) fA(e, C.range(e, r[a]), n) ? o = a : i = a, a = Math.floor((i + o) / 2); return C.range(e, r[o], n) }; function dA(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function (i) { return Object.getOwnPropertyDescriptor(e, i).enumerable })), n.push.apply(n, r) } return n } function hA(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : { }; t % 2 ? dA(Object(n), !0).forEach(function (r) { Sr(e, r, n[r]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : dA(Object(n)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) }) } return e } var aM = function (t) { var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 'x-slate-fragment', r = t, { apply: i, onChange: o, deleteBackward: a, addMark: u, removeMark: c } = r; return zd.set(r, new WeakMap), r.addMark = (f, h) =>{ var g, m; (g = Lv.get(r)) === null || g === void 0 || g(), !Jr.get(r) && (m = Un.get(r)) !== null && m !== void 0 && m.length && Jr.set(r, null), Hi.delete(r), u(f, h) }, r.removeMark = f=>{ var h; !Jr.get(r) && (h = Un.get(r)) !== null && h !== void 0 && h.length && Jr.set(r, null), Hi.delete(r), c(f) }, r.deleteBackward = f=>{ if (f !== 'line') return a(f); if (r.selection && q.isCollapsed(r.selection)) { var h = C.above(r, { match: v=>we.isElement(v) && C.isBlock(r, v), at: r.selection }); if (h) { var [, g] = h, m = C.range(r, g, r.selection.anchor), y = sM(r, m); q.isCollapsed(y) || K.delete(r, { at: y }) } } }, r.apply = f=>{ var h = [ ], g = [ ], m = Un.get(r); if (m != null && m.length) { var y = m.map(T=>iL(T, f)).filter(Boolean); Un.set(r, y) } var v = To.get(r); v && To.set(r, H2(r, v, f)); var p = Ro.get(r); if (p != null && p.at) { var E = je.isPoint(p == null ? void 0 : p.at) ? Uv(r, p.at, f) : H2(r, p.at, f); Ro.set(r, E ? hA(hA({ }, p), { }, { at: E }) : null) } switch (f.type) { case 'insert_text': case 'remove_text': case 'set_node': case 'split_node': { h.push(...za(r, f.path)); break } case 'set_selection': { var _; (_ = $l.get(r)) === null || _ === void 0 || _.unref(), $l.delete(r); break } case 'insert_node': case 'remove_node': { h.push(...za(r, N.parent(f.path))); break } case 'merge_node': { var b = N.previous(f.path); h.push(...za(r, b)); break } case 'move_node': { var x = N.common(N.parent(f.path), N.parent(f.newPath)); h.push(...za(r, x)); var O; N.isBefore(f.path, f.newPath) ? (h.push(...za(r, N.parent(f.path))), O = f.newPath) : (h.push(...za(r, N.parent(f.newPath))), O = f.path); var B = de.get(t, N.parent(O)), k = ee.findKey(r, B), P = C.pathRef(r, N.parent(O)); g.push([P, k]); break } } i(f); for (var [I, Y]of h) { var [j] = C.node(r, I); jd.set(j, Y) } for (var [X, $]of g) if (X.current) { var [U] = C.node(r, X.current); jd.set(U, $) } }, r.setFragmentData = f=>{ var { selection: h } = r; if (h) { var [g, m] = q.edges(h), y = C.void(r, { at: g.path }), v = C.void(r, { at: m.path }); if (!(q.isCollapsed(h) && !y)) { var p = ee.toDOMRange(r, h), E = p.cloneContents(), _ = E.childNodes[0]; if (E.childNodes.forEach(j=>{ j.textContent && j.textContent.trim() !== '' && (_ = j) }), v) { var [b] = v, x = p.cloneRange(), O = ee.toDOMNode(r, b); x.setEndAfter(O), E = x.cloneContents() } if (y && (_ = E.querySelector('[data-slate-spacer]')), Array.from(E.querySelectorAll('[data-slate-zero-width]')).forEach(j=>{ var X = j.getAttribute('data-slate-zero-width') === 'n'; j.textContent = X ? ` ` : '' }), L2(_)) { var B = _.ownerDocument.createElement('span'); B.style.whiteSpace = 'pre', B.appendChild(_), E.appendChild(B), _ = B } var k = r.getFragment(), P = JSON.stringify(k), I = window.btoa(encodeURIComponent(P)); _.setAttribute('data-slate-fragment', I), f.setData('application/'.concat(n), I); var Y = E.ownerDocument.createElement('div'); return Y.appendChild(E), Y.setAttribute('hidden', 'true'), E.ownerDocument.body.appendChild(Y), f.setData('text/html', Y.innerHTML), f.setData('text/plain', $2(Y)), E.ownerDocument.body.removeChild(Y), f } } }, r.insertData = f=>{ r.insertFragmentData(f) || r.insertTextData(f) }, r.insertFragmentData = f=>{ var h = f.getData('application/'.concat(n)) || Q9(f); if (h) { var g = decodeURIComponent(window.atob(h)), m = JSON.parse(g); return r.insertFragment(m), !0 } return !1 }, r.insertTextData = f=>{ var h = f.getData('text/plain'); if (h) { var g = h.split(/\r\n|\r|\n/), m = !1; for (var y of g) m && K.splitNodes(r, { always: !0 }), r.insertText(y), m = !0; return !0 } return !1 }, r.onChange = f=>{ var h = F2 < 18 ? eR.unstable_batchedUpdates : g=>g(); h(() =>{ var g = Nv.get(r); g && g(f), o(f) }) }, r }, za = (e, t) =>{ var n = [ ]; for (var [r, i]of C.levels(e, { at: t })) { var o = ee.findKey(e, r); n.push([i, o]) } return n }; const uM = { icon: '_icon_1x9qx_7' }, lM = { all_star: '\\f101', arrow: '\\25b3', arrow_back: '\\2770', arrow_down: '\f102', arrow_forward: '\\2771', arrow_up: '\\f103', arrow_2: '\\25bd', bell: '\\2b26', camera: '\\233c', cancel: '\\2715', chat_bubble: '\\f104', checkmark: '\\2714', clock: '\\23f2', cog: '\\2699', comment: '\\e603', delete : '\\f105', discovery: '\\2604', discussion: '\\f106', disqus: '\\64', expand_corners: '\\2922', expand: '\\23cd', export : '\\2924', facebook_circle: '\\46', facebook: '\\66', feed: '\\72', flag: '\\2691', forward: '\\3e', google_plus_circle: '\\47', google_plus: '\\67', group: '\\f107', heart_empty: '\\f108', heart: '\\f109', images: '\\26fa', info: '\\24d8', lightning: '\\f10a', link: '\\bb', location: '\\2351', lock: '\\1f512', mail: '\\2709', map: '\\25eb', megaphone: '\\e600', menu: '\\2630', minus: '\\2d', music: '\\266b', pause: '\\268c', pencil_large: '\\270e', pencil: '\\270f', photo: '\\25f1', pin: '\\2199', play: '\\25ba', plus: '\\2b', proceed: '\\2192', remove: '\\2716', reply_large: '\\21a9', reply: '\\3c', search: '\\26b2', share: '\\2945', site_new: '\\f10b', site: '\\f10c', spam: '\\f10d', star: '\\2605', trophy: '\\1f3c6', twitter_circle: '\\54', twitter: '\\74', upgrade_arrow_pro: '\\f10e', video: '\\25b6', warning: '\\26a0', write: '\\29c4' }, { icon: cM } = uM, fM = ({ icon: e, className: t = '', title: n = void 0, ariaLabel: r = void 0 }) =>{ const i = { '--icon-content': `'${ lM[e] }'` }; return W('span', { className: `${ cM } ${ t }`, style: i, title: n, 'aria-label': r }) }, Wd = { success: '_success_16l9s_1', info: '_info_16l9s_1', warn: '_warn_16l9s_1', error: '_error_16l9s_1', message: '_message_16l9s_33', icon: '_icon_16l9s_38', dismiss: '_dismiss_16l9s_44' }, dM = ({ clearAlert: e, message: t, type: n = 'error', safe: r }) =>Ve('div', { className: Wd[n], children: [ Ve('span', { className: Wd.message, children: [ (n === 'warn' || n === 'error') && W(fM, { className: Wd.icon, icon: 'warning' }), r ? W('span', { dangerouslySetInnerHTML: { __html: t } }) : t ] }), W('button', { className: Wd.dismiss, onClick: e, children: '×' }) ] }), pA = { 'mod+b': 'bold', 'mod+i': 'italic', 'mod+u': 'underline', 'mod+shift+m': 'code', 'mod+s': 'strikethrough' }, gA = { 'mod+shift+0': 'spoiler', 'mod+shift+s': 'spoiler' }, mA = { 'mod+shift+9': 'block-quote' }, hM = { '&': '&', '<': '<', '>': '>', '"': '"', '\'': ''', '`': '`' }; var Ue = (e=>(e.QUOTE = 'block-quote', e.BLOCK = 'div', e.LINK = 'link', e.IMAGE = 'image', e.VIDEO = 'video', e.SPOILER = 'spoiler', e.MENTION = 'mention', e.MEDIA_PREVIEW = 'media-preview', e)) (Ue || { }); const Vv = [ 'image', 'video' ], pM = [ ...Vv, 'link', 'mention', 'spoiler' ], vA = { '>': 'block-quote' }, gM = [ 'block-quote' ], mM = [ 'link', 'spoiler' ], vM = ` `, jl = '', mi = `${ vM }${ jl }`, yA = [ { type: 'div', children: [ { text: '' } ] } ], yM = 1000 * 60 * 60 * 24, wA = (e, t) =>{ bA(e, t) ? C.removeMark(e, t) : C.addMark(e, t, !0), ee.focus(e) }, bA = (e, t) =>{ const n = C.marks(e); return n ? n[t] === !0 : !1 }, _A = e=>{ const [t] = C.nodes(e, { match: n=>!C.isEditor(n) && we.isElement(n) && n.type === 'spoiler' }); return t }, Vd = e=>{ const t = _A(e); return t ? !(q.isExpanded(e.selection) && C.string(e, t[1]) === jl) : !1 }, CA = e=>{ K.unwrapNodes(e, { match: t=>!C.isEditor(t) && we.isElement(t) && t.type === 'spoiler' }) }, wM = e=>{ Vd(e) && CA(e); const { selection: t } = e, n = t && q.isCollapsed(t), r = { type: 'spoiler', children: n ? [ { text: jl } ] : [ ] }; n ? K.insertNodes(e, r) : (K.wrapNodes(e, r, { split: !0 }), K.collapse(e, { edge: 'end' })) }, bM = e=>{ wM(e) }, EA = e=>{ if (ee.focus(e), Vd(e)) { const t = _A(e), n = C.end(e, t[1]); Kv(e, n) ? K.move(e, { unit: 'offset' }) : CA(e) } else bM(e) }, _M = (e, t, n) =>{ t.nativeEvent.isComposing && t.stopPropagation(); for (const r in pA) if (Nl(r, t)) { t.preventDefault(); const i = pA[r]; wA(e, i) } for (const r in gA) Nl(r, t) && (t.preventDefault(), gA[r] === Ue.SPOILER && EA(e)); for (const r in mA) if (Nl(r, t)) { t.preventDefault(); const i = mA[r]; IA(e, i) } if (Nl('mod?+backspace', t)) { const r = e.selection; if (!r) return; const [, i] = C.first(e, [ 0 ]), [ , o ] = C.last(e, [ e.children.length - 1 ]), a = C.range(e, i, o); if (q.equals(r, a)) { t.preventDefault(), K.removeNodes(e, { mode: 'highest', hanging: !0 }), e.children.length === 0 && K.insertNodes(e, yA); return } } if (Nl('mod+enter', t)) { n(); return } }, CM = e=>{ const t = ee.androidPendingDiffs(e); (t == null ? void 0 : t.some(({ diff: r, path: i }) =>{ if (!r.text.endsWith(' ')) return !1; const { text: o } = de.leaf(e, i); if (!(o.slice(0, r.start) + r.text.slice(0, - 1) in vA)) return; const u = C.above(e, { at: i, match: f=>we.isElement(f) && C.isBlock(e, f) }); if (!u) return !1; const [, c] = u; return C.isStart(e, C.start(e, i), c) })) && ee.androidScheduleFlush(e) }, DA = e=>e.children.length === 1 && C.isEmpty(e, e.children[0]), Kv = (e, t) =>e.selection && je.equals(e.selection.anchor, t), EM = e=>D.createElement('svg', { xmlns: 'http://www.w3.org/2000/svg', width: 19, height: 15, ...e }, D.createElement('g', { fill: 'currentColor' }, D.createElement('path', { d: 'M17.1 1.847v11.084H1.9V1.847h15.2ZM17.1 0H1.9C.855 0 0 .831 0 1.847v11.084c0 1.016.855 1.847 1.9 1.847h15.2c1.045 0 1.9-.831 1.9-1.847V1.847C19 .831 18.145 0 17.1 0Z' }), D.createElement('text', { x: 3.5, y: 10.5, fontFamily: 'Helvetica Neue, arial, sans-serif', fontSize: 7.5, fontWeight: 700 }, 'GIF'))), DM = e=>D.createElement('svg', { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 11 14', ...e }, D.createElement('path', { fill: 'currentColor', d: 'M0 14V0h4.772c1.699 0 3.074.311 4.044.933.97.623 1.456 1.634 1.456 2.878 0 .622-.162 1.245-.485 1.711-.324.545-.89.856-1.537 1.167.89.155 1.618.544 2.022 1.167.485.622.728 1.322.728 2.1 0 1.322-.485 2.333-1.375 3.033-.97.7-2.346 1.011-3.963 1.011H0Zm2.912-8.167h1.94c.81 0 1.376-.155 1.78-.466.486-.234.647-.7.647-1.323 0-.622-.242-1.088-.647-1.4-.404-.31-1.051-.466-1.86-.466h-1.86v3.655Zm0 1.945v4.044h2.75c.809 0 1.375-.155 1.78-.466.404-.312.646-.778.646-1.4 0-.7-.162-1.167-.566-1.556-.404-.389-.97-.544-1.78-.544h-2.83v-.078Z' })), xM = e=>D.createElement('svg', { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 21 17', ...e }, D.createElement('path', { fill: 'currentColor', d: 'M11.137.137h2.157L10 17H7.706zM7.044 13.193l-1.737 1.351L.606 8.5l4.701-6.044 1.737 1.351L3.394 8.5zm7.562 0 1.737 1.351L21.044 8.5l-4.7-6.044-1.738 1.351 3.65 4.693z' })), AM = e=>D.createElement('svg', { xmlns: 'http://www.w3.org/2000/svg', fill: 'none', viewBox: '0 0 14 14', ...e }, D.createElement('path', { fill: 'currentColor', d: 'M5.6 0H12v2.333H9.903l-3.451 9.334H8.4V14H2v-2.333h2.052l3.451-9.334H5.6V0Z' })), SM = e=>D.createElement('svg', { xmlns: 'http://www.w3.org/2000/svg', width: 16, height: 17, ...e }, D.createElement('g', { fill: 'currentColor', fillRule: 'nonzero' }, D.createElement('path', { d: 'M13.829 9.706a1.1 1.1 0 0 1-1.61-1.5c1.253-1.344 1.227-3.773-.133-5.042-1.426-1.33-3.683-1.237-5.039.218-1.356 1.455-1.292 3.712.134 5.041a1.1 1.1 0 1 1-1.5 1.61C3.36 7.87 3.257 4.22 5.438 1.881c2.18-2.34 5.829-2.49 8.148-.327 2.267 2.114 2.308 5.936.243 8.15Z' }), D.createElement('path', { d: 'M9.465 6.086A1.1 1.1 0 0 0 8.11 7.82c1.448 1.13 1.802 3.534.657 5-1.201 1.537-3.444 1.798-5.011.573-1.567-1.224-1.857-3.464-.656-5a1.1 1.1 0 0 0-1.734-1.355c-1.952 2.5-1.484 6.12 1.035 8.089 2.52 1.969 6.147 1.547 8.1-.952 1.907-2.443 1.35-6.224-1.036-8.089Z' }))), OM = e=>D.createElement('svg', { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 16 16', ...e }, D.createElement('path', { fill: 'currentColor', stroke: 'null', d: 'M7.634 10.966a.678.678 0 0 1 .958.958L6.77 13.747a3.243 3.243 0 0 1-2.302.95 3.247 3.247 0 0 1-3.253-3.252c0-.834.317-1.67.95-2.303l1.823-1.823a.677.677 0 1 1 .958.958L3.122 10.1a1.897 1.897 0 0 0-.553 1.345 1.894 1.894 0 0 0 1.898 1.898c.488 0 .975-.185 1.344-.554l1.823-1.823zM9.07 8.08a.677.677 0 0 1-.957.956L6.875 7.798a.677.677 0 0 1 .956-.957L9.07 8.08zm1.41 7.632-.78.162a.189.189 0 0 1-.222-.146l-.504-2.432a.187.187 0 0 1 .146-.221l.78-.165c.102-.02.2.045.221.146l.505 2.435c.02.101-.045.2-.146.221zM5.569.195l.765-.19c.1-.024.202.037.227.137l.606 2.407a.188.188 0 0 1-.137.228l-.772.195a.188.188 0 0 1-.228-.136L5.424.424A.188.188 0 0 1 5.56.197l.01-.002zm8.227 13.068-.557.574a.188.188 0 0 1-.265 0l-1.782-1.729a.187.187 0 0 1-.003-.264l.554-.573a.187.187 0 0 1 .265-.004l1.784 1.731a.188.188 0 0 1 .004.265zm2.142-3.491-.206.769a.187.187 0 0 1-.23.132l-2.4-.642a.188.188 0 0 1-.133-.23l.207-.77c.027-.1.13-.159.23-.133l2.4.644c.1.027.159.13.132.23zM.012 6.28l.217-.752a.188.188 0 0 1 .23-.128l2.388.678c.1.029.158.133.13.232l-.217.767a.188.188 0 0 1-.231.13L.136 6.526a.188.188 0 0 1-.129-.232l.005-.014zm2.017-3.565.555-.555a.188.188 0 0 1 .265 0l1.756 1.757a.188.188 0 0 1 0 .265l-.562.564a.187.187 0 0 1-.265 0L2.02 2.99a.188.188 0 0 1 0-.266l.009-.008zm6.258 2.22a.677.677 0 1 1-.957-.959l1.845-1.845.043-.04a3.248 3.248 0 0 1 2.26-.91 3.247 3.247 0 0 1 3.253 3.253c0 .834-.317 1.669-.95 2.302l-1.846 1.846a.678.678 0 0 1-.958-.958l1.845-1.846a1.89 1.89 0 0 0 .554-1.344c0-.488-.185-.976-.554-1.345a1.896 1.896 0 0 0-1.344-.554c-.477 0-.952.174-1.315.522L8.287 4.934z' })), FM = e=>D.createElement('svg', { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 18 14', ...e }, D.createElement('path', { fill: 'currentColor', fillRule: 'evenodd', d: 'm15.375 12.245-1.06 1.018-2.06-1.978c-.603.202-1.235.351-1.886.441l-.007.002h-.009l-.02.003-.04.005h-.007l-.002.002c-.023.001-.045.004-.068.007l-.007.002-.012.001-.022.003-.027.003-.015.002h-.006l-.062.007-.009.001-.018.002-.021.001-.016.002-.02.003-.014.001h-.004l-.024.003-.034.003-.038.003-.01.002h-.005c-.479.04-.96.05-1.438.026h-.002l-.003-.001-.04-.002-.035-.001-.016-.002H8.31l-.018-.001-.015-.002a.7.7 0 0 1-.055-.003h-.006l-.015-.001-.026-.002-.024-.003h-.018c-.021-.003-.043-.004-.064-.005h-.007l-.008-.002a.747.747 0 0 1-.068-.006l-.045-.004h-.002l-.02-.002-.024-.003h-.003l-.037-.003-.006-.001a9.964 9.964 0 0 1-2.653-.649l-.003-.001-.102-.041-.006-.002-.005-.003a1.036 1.036 0 0 1-.06-.025 9.483 9.483 0 0 1-3.31-2.316l-.008-.01-.003-.002-.013-.015-.02-.02-.012-.014-.01-.012-.016-.016-.01-.013-.01-.01-.022-.025-.014-.017-.005-.004-.051-.059a2.084 2.084 0 0 1-.05-.059l-.006-.006-.01-.012-.018-.02-.016-.02-.011-.013-.006-.007-.007-.01-.035-.042-.006-.007-.005-.006-.035-.044-.006-.007-.006-.01-.012-.014-.016-.02-.013-.015-.013-.017-.008-.01-.006-.007-.022-.03-.016-.02-.016-.021-.024-.031-.003-.004-.009-.012-.015-.02-.012-.014L1.104 8l-.015-.021-.009-.013-.005-.005-.014-.02-.021-.03-.026-.035L1 7.859v-.003l-.01-.013-.017-.024-.009-.013-.007-.01-.015-.022-.011-.015-.003-.004-.01-.017-.026-.035-.025-.038-.011-.015-.001-.003-.01-.013-.016-.025-.009-.012-.007-.012-.016-.022-.009-.015-.003-.004-.013-.02L.75 7.49l-.02-.03-.014-.024-.003-.004-.008-.012-.013-.022-.011-.016-.009-.015-.012-.02-.008-.012-.004-.006-.02-.031-.013-.022-.01-.018-.023-.038-.004-.008-.006-.01-.011-.018-.012-.019-.01-.02-.011-.017-.005-.009-.006-.01-.027-.046-.004-.008-.002-.003-.03-.053-.006-.01-.004-.008-.006-.013-.014-.025-.013-.024-.007-.013-.005-.008-.036-.066-.03-.057A8.864 8.864 0 0 1 0 6.06a8.988 8.988 0 0 1 1.038-1.85l.004-.006.006-.008.017-.023.006-.007c.012-.018.026-.035.038-.051l.044-.06.004-.004.001-.001a9.272 9.272 0 0 1 1.743-1.747L1.565 1.018 2.625 0l12.75 12.245ZM4.918 4.24l-.049.104a5.02 5.02 0 0 0-.188.5l-.013.044-.014.049-.004.016-.01.035A4.2 4.2 0 0 0 4.5 6.01v.113l.002.049.001.05.003.05v.016l.003.046.003.047.005.044c.02.252.065.501.133.746l.015.05.009.031.012.04.013.045.017.048.005.016.016.046.02.054.014.038.014.037c.468 1.194 1.486 2.149 2.74 2.569l.04.012.05.016.047.015.05.014.048.014.046.011.045.012c.31.08.63.125.951.139l.051.001.048.002.04.001h.134l.009-.001h.042a4.772 4.772 0 0 0 1.77-.401l-1.17-1.123A3.176 3.176 0 0 1 8.071 8.8l-.004-.002a2.978 2.978 0 0 1-1.736-1.422l-.001-.001v-.002l-.002-.003-.013-.023-.002-.006h-.001a.33.33 0 0 0-.017-.033l-.01-.022-.003-.006-.002-.004-.003-.004-.003-.008-.007-.014-.002-.005-.001-.003-.012-.025-.002-.004-.003-.008-.004-.007-.003-.009-.005-.009-.001-.004v-.002l-.01-.022-.002-.004-.005-.012-.002-.006-.002-.004-.005-.01-.003-.008v-.001l-.003-.003-.007-.021-.008-.018v-.003l-.001-.001-.005-.012-.003-.01v-.002a.91.91 0 0 1-.025-.067l-.022-.068V6.9h-.003l-.02-.065V6.83l-.001-.003a.865.865 0 0 1-.016-.06l-.002-.007-.002-.006-.003-.01-.001-.006v-.001l-.006-.022-.002-.005-.001-.009-.003-.013-.002-.007-.001-.006-.002-.005-.006-.03-.001-.004-.004-.019-.002-.009v-.004l-.002-.003c-.001-.01-.002-.022-.005-.032l-.006-.036a2.73 2.73 0 0 1 .048-1.17L4.918 4.24ZM6.675.547a10.35 10.35 0 0 1 3.468-.18l.075.009.06.007.088.012.038.004c.04.006.082.012.123.02h.003c.444.067.879.163 1.3.285l.029.008.037.012.066.019.06.019.101.03.053.019c1.854.605 3.45 1.72 4.591 3.16l.027.034.052.067.052.07.052.067.05.07.05.068.029.042c.367.521.677 1.081.921 1.67a8.621 8.621 0 0 1-.98 1.754l-.004.008-.004.006-.012.017-.01.01-.035.052-.041.053-.006.008-.003.004a9.308 9.308 0 0 1-1.9 1.88L13.04 7.966l.033-.065.072-.154c.048-.112.048-.112.091-.224.069-.193.129-.39.172-.588l.008-.037.002-.01.006-.03.001-.007.007-.039.006-.038.002-.004.006-.037V6.73c.014-.081.024-.162.033-.243v-.002l.003-.041.005-.04V6.4l.002-.035v-.009l.002-.03.002-.008.001-.037.002-.013v-.023l.001-.017V6.21l.002-.02v-.033l.001-.028v-.125l-.002-.055-.001-.053V5.89l-.003-.044v-.01l-.003-.052-.003-.049-.002-.015-.003-.036-.001-.015-.006-.049-.005-.048-.001-.015-.005-.036-.002-.016-.006-.044-.004-.02-.002-.026-.005-.026-.003-.018-.02-.107V5.26a4.152 4.152 0 0 0-.17-.614l-.002-.008-.012-.03-.005-.014-.01-.028-.009-.024-.006-.014-.008-.018-.01-.027-.008-.017-.011-.03-.007-.014-.019-.045-.02-.042-.002-.008-.019-.038-.007-.015-.014-.03-.013-.027-.002-.002a4.483 4.483 0 0 0-2.586-2.237l-.033-.01-.016-.006-.04-.013-.01-.002-.046-.015-.05-.014-.019-.005-.028-.009-.026-.007-.021-.006-.03-.007-.015-.003a4.649 4.649 0 0 0-.999-.14l-.009-.002h-.052l-.035-.001h-.135l-.009.001h-.043l-.037.002h-.01l-.028.001H8.78l-.027.002-.01.001c-.361.02-.718.08-1.063.183l-.009.002-.029.008-.009.003-.034.01a4.798 4.798 0 0 0-.546.213l-.036.016L5.625.844C5.964.728 6.314.63 6.67.548h.002l.003-.001Zm5.301 5.147a2.8 2.8 0 0 1-.092 1.161L8.172 3.292a3.134 3.134 0 0 1 1.962.101l.033.014.045.019.046.02c.89.395 1.543 1.196 1.703 2.155l.01.057.005.037Z' })), BM = e=>D.createElement('svg', { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 15 14', ...e }, D.createElement('path', { fill: 'currentColor', d: 'm2 12.018 1.444-1.632c.998.909 2.335 1.528 3.61 1.528 1.57 0 2.42-.681 2.42-1.734 0-.535-.205-.894-.557-1.18H0V7h4.614c-1.069-.618-1.998-1.61-1.998-3.201C2.616 1.652 4.569 0 7.286 0c1.614 0 3.185.66 4.268 1.714l-1.253 1.528c-.891-.723-1.825-1.156-3.014-1.156-1.317 0-2.187.598-2.187 1.59 0 1.053 1.061 1.445 2.208 1.9l1.89.763c.456.19.875.406 1.243.661H15v2h-3.115c.075.301.115.632.115.994C12 12.183 10.132 14 7.01 14c-1.868 0-3.694-.723-5.01-1.982Z', clipRule: 'evenodd' })), kM = e=>D.createElement('svg', { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 11 16', ...e }, D.createElement('path', { fill: 'currentColor', fillRule: 'evenodd', d: 'M2.507 0v7.496c0 1.535.905 2.54 2.515 2.54 1.602 0 2.507-1.005 2.507-2.54V0h2.507v7.745c0 2.64-1.951 4.44-5.014 4.44-3.071 0-5.022-1.8-5.022-4.44V0h2.507ZM0 14h10v2H0z' })), PM = e=>D.createElement('svg', { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 20 14', ...e }, D.createElement('path', { fill: 'currentColor', d: 'M.907 5.333C1.814 1.778 3.628 0 4.535 0h2.721S3.628 2.667 3.628 6.222l1.495-.244A3.4 3.4 0 0 1 9.07 9.333a4 4 0 0 1-4 4h-.08A4.409 4.409 0 0 1 .58 8.987C.56 7.49.668 6.271.907 5.333Zm9.977 0C11.791 1.778 13.605 0 14.512 0h2.722s-3.629 2.667-3.629 6.222l1.495-.244a3.4 3.4 0 0 1 3.948 3.355 4 4 0 0 1-4 4h-.082a4.409 4.409 0 0 1-4.408-4.346c-.022-1.498.087-2.716.326-3.654Z' })), RM = e=>D.createElement('svg', { xmlns: 'http://www.w3.org/2000/svg', width: 19, height: 15, ...e }, D.createElement('g', { fill: 'currentColor', fillRule: 'nonzero' }, D.createElement('path', { d: 'M17.1 1.847v11.084H1.9V1.847h15.2ZM17.1 0H1.9C.855 0 0 .831 0 1.847v11.084c0 1.016.855 1.847 1.9 1.847h15.2c1.045 0 1.9-.831 1.9-1.847V1.847C19 .831 18.145 0 17.1 0Z' }), D.createElement('path', { d: 'm5.7 5.542 3.8 2.771 1.9-.924 3.8 2.217v1.477H3.8V7.389z' }), D.createElement('ellipse', { cx: 13.775, cy: 5.08, rx: 1.425, ry: 1.385 }))), qv = e=>D.createElement('svg', { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 48 48', ...e }, D.createElement('path', { fill: 'currentColor', d: 'M12 38c0 2.21 1.79 4 4 4h16c2.21 0 4-1.79 4-4V14H12v24zM38 8h-7l-2-2H19l-2 2h-7v4h28V8z', className: 'color000000 svgShape' }), D.createElement('path', { fill: 'none', d: 'M0 0h48v48H0z' })), TM = e=>D.createElement('svg', { xmlns: 'http://www.w3.org/2000/svg', xmlSpace: 'preserve', viewBox: '0 0 26 26', ...e }, D.createElement('path', { fill: 'currentColor', d: 'M15.203 17.138h-.093c-.718 2.019-2.022 3.028-3.911 3.028-1.417 0-2.56-.529-3.427-1.586-.868-1.057-1.302-2.521-1.302-4.391 0-2.42.601-4.389 1.802-5.906s2.649-2.275 4.343-2.275c1.531 0 2.49.618 2.88 1.855h.062l.153-1.569h3.466c-.462 4.502-.694 7.446-.694 8.83 0 1.48.39 2.219 1.171 2.219.822 0 1.5-.56 2.033-1.68.534-1.12.802-2.584.802-4.391 0-2.473-.766-4.5-2.295-6.08-1.531-1.58-3.666-2.37-6.408-2.37-2.937 0-5.379 1.054-7.324 3.163-1.946 2.108-2.919 4.68-2.919 7.713 0 2.938.86 5.253 2.58 6.944 1.72 1.691 4.094 2.537 7.124 2.537 2.311 0 4.426-.454 6.346-1.363v3.028c-1.756.77-4.015 1.156-6.777 1.156-3.79 0-6.873-1.118-9.25-3.353C1.188 20.412 0 17.408 0 13.634c0-3.847 1.268-7.081 3.805-9.702C6.34 1.311 9.606 0 13.6 0c3.697 0 6.688 1.017 8.973 3.052S26 7.768 26 11.098c0 2.738-.698 4.933-2.095 6.588-1.396 1.654-3.127 2.481-5.19 2.481-1.016 0-1.844-.28-2.48-.84-.638-.561-.982-1.291-1.032-2.189zm-2.049-8.371c-.924 0-1.676.542-2.256 1.625-.581 1.084-.871 2.338-.871 3.765 0 1.015.198 1.805.593 2.371.395.566.905.848 1.532.848.966 0 1.725-.533 2.28-1.601.554-1.067.831-2.494.831-4.28 0-.846-.193-1.512-.578-1.998s-.894-.73-1.531-.73z' })), IM = e=>D.createElement('svg', { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 1024 1024', ...e }, D.createElement('path', { fill: 'currentColor', d: 'M642.752 144 41.376 745.376a32.026 32.026 0 0 0-9.048 18.104l-32 224a31.98 31.98 0 0 0 9.048 27.152 32.015 32.015 0 0 0 27.152 9.048l224-32a32.015 32.015 0 0 0 18.096-9.056L880 381.248 642.752 144zM64 960l32-192 160 160-192 32zm950.624-713.376L925.248 336 688 98.752l89.376-89.376c12.488-12.496 32.768-12.496 45.248 0l192 192c12.504 12.488 12.504 32.76 0 45.248z' })), xue = { icon: '_icon_rsxid_1' }, Os = (e, t) =>{ const n = { bold: () =>W(DM, { className: t }), italic: () =>W(AM, { className: t }), underline: () =>W(kM, { className: t }), code: () =>W(xM, { className: t }), strikethrough: () =>W(BM, { className: t }), spoiler: () =>W(FM, { className: t }), 'block-quote': () =>W(PM, { className: t }), link: () =>W(SM, { className: t }), image: () =>W(RM, { className: t }), gifPicker: () =>W(EM, { className: t }), mention: () =>W(TM, { className: t }), default: () =>W('span', { }) }; return n[e] ?? n.default }, xA = (e = [ { text: '' } ]) =>({ type: Ue.BLOCK, children: e }), NM = (e, t) =>({ type: Ue.LINK, url: e, view: 'link', children: [ { text: t } ] }), Gv = e=>{ const [t] = C.nodes(e, { match: n=>!C.isEditor(n) && we.isElement(n) && n.type === Ue.LINK }); return !!t }, Qv = (e, t = { }) =>K.unwrapNodes(e, { match: n=>!C.isEditor(n) && we.isElement(n) && n.type === Ue.LINK, voids: !0, ...t }), AA = (e, t, n = '') =>{ const { selection: r } = e; r && (K.removeNodes(e, { at: r, match: i=>!C.isEditor(i) && we.isElement(i) && i.type === Ue.LINK }), Kd(e, t, n)) }, Kd = (e, t, n) =>{ var o; if (Gv(e) && Qv(e), !t) return; t = t.replaceAll(' ', ''); const { selection: r } = e, i = NM(t, n.trim()); if (ee.focus(e), r) { const [a, u] = C.parent(e, (o = r.focus) == null ? void 0 : o.path); a.type === Ue.LINK && Qv(e), e.isVoid(a) ? (K.insertNodes(e, xA([i.children[0]]), { at: N.next(u), select: !0 }), K.move(e, { unit: 'character' })) : q.isCollapsed(r) ? (K.insertNodes(e, i, { select: !0 }), K.move(e, { unit: 'offset' })) : (K.insertFragment(e, [ i ]), K.collapse(e, { edge: 'end' }), K.move(e, { unit: 'offset' })) } else K.insertNodes(e, xA([i.children[0]])), K.move(e, { unit: 'offset' }) }, LM = e=>{ const [t] = C.nodes(e, { match: n=>!C.isEditor(n) && we.isElement(n) && n.type === Ue.LINK }); if (t) { const n = t[0].url; return { text: de.string(t[0]), url: n } } return { text: '', url: '' } }, SA = (e, t) =>{ ee.focus(e), K.insertNodes(e, [ t, { text: '' } ]), K.move(e) }, OA = (e, t) =>{ const n = { id: t, type: Ue.IMAGE, url: null, isUploading: !0, children: [ { text: '' } ] }; SA(e, n) }, FA = (e, t, n) =>{ K.setNodes(e, { isUploading: !1, url: t }, { at: [ ], match: r=>r.id === n }) }, BA = (e, t) =>{ K.removeNodes(e, { at: [ ], match: n=>n.id === t }) }, MM = (e, t) =>{ const n = { type: Ue.VIDEO, url: t, children: [ { text: '' } ] }; SA(e, n) }, kA = (e, t) =>{ const n = q.end(e.selection); return C.string(e, { anchor: { path: n.path, offset: t.offset - 1 }, focus: { path: n.path, offset: t.offset } }) }, Yv = (e, t) =>{ const n = q.end(e.selection); return C.string(e, { anchor: { path: n.path, offset: t.offset }, focus: { path: n.path, offset: t.offset + 1 } }) }, $M = /[@0-9a-z]/i, qd = (e, t = $M) =>{ const { selection: n } = e; if (n) { const r = q.end(n); let i = ''; const o = { offset: r.offset, path: [ ...r.path ] }; let a = r.offset, u = r.offset; for (; o.offset >= 0 && kA(e, o).match(t); ) i = kA(e, o) + i, a = o.offset - 1, o.offset--; for (o.offset = r.offset; i.length && Yv(e, o).match(t); ) i += Yv(e, o), u = o.offset + 1, o.offset++; const c = { anchor: { path: r.path, offset: a }, focus: { path: r.path, offset: u } }; return { currentWord: i, currentRange: c } } return { } }; var Gd = { exports: { } }; /** * @license * Lodash <https://lodash.com/> * Copyright OpenJS Foundation and other contributors <https://openjsf.org/> * Released under MIT license <https://lodash.com/license> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */ Gd.exports, function (e, t) { (function () { var n, r = '4.17.21', i = 200, o = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.', a = 'Expected a function', u = 'Invalid `variable` option passed into `_.template`', c = '__lodash_hash_undefined__', f = 500, h = '__lodash_placeholder__', g = 1, m = 2, y = 4, v = 1, p = 2, E = 1, _ = 2, b = 4, x = 8, O = 16, B = 32, k = 64, P = 128, I = 256, Y = 512, j = 30, X = '...', $ = 800, U = 16, T = 1, G = 2, se = 3, re = 1 / 0, V = 9007199254740991, te = 1.7976931348623157e+308, le = 0 / 0, ce = 4294967295, ye = ce - 1, De = ce >>> 1, Ce = [ ['ary', P], [ 'bind', E ], [ 'bindKey', _ ], [ 'curry', x ], [ 'curryRight', O ], [ 'flip', Y ], [ 'partial', B ], [ 'partialRight', k ], [ 'rearg', I ] ], L = '[object Arguments]', ne = '[object Array]', J = '[object AsyncFunction]', Q = '[object Boolean]', ge = '[object Date]', he = '[object DOMException]', Pe = '[object Error]', me = '[object Function]', Fe = '[object GeneratorFunction]', Se = '[object Map]', Re = '[object Number]', Be = '[object Null]', ke = '[object Object]', ct = '[object Promise]', Mt = '[object Proxy]', At = '[object RegExp]', ht = '[object Set]', rt = '[object String]', Kt = '[object Symbol]', ve = '[object Undefined]', be = '[object WeakMap]', Ze = '[object WeakSet]', it = '[object ArrayBuffer]', Je = '[object DataView]', qt = '[object Float32Array]', sn = '[object Float64Array]', pn = '[object Int8Array]', cr = '[object Int16Array]', Pr = '[object Int32Array]', Rr = '[object Uint8Array]', Gi = '[object Uint8ClampedArray]', Qi = '[object Uint16Array]', Yi = '[object Uint32Array]', Ls = /\b__p \+= '';/g, cc = /\b(__p \+=) '' \+/g, _y = /(__e\(.*?\)|\b__t\)) \+\n'';/g, IF = /&(?:amp|lt|gt|quot|#39);/g, NF = /[&<>"']/g, Oee = RegExp(IF.source), Fee = RegExp(NF.source), Bee = /<%-([\s\S]+?)%>/g, kee = /<%([\s\S]+?)%>/g, LF = /<%=([\s\S]+?)%>/g, Pee = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Ree = /^\w*$/, Tee = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Cy = /[\\^$.*+?()[\]{}|]/g, Iee = RegExp(Cy.source), Ey = /^\s+/, Nee = /\s/, Lee = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Mee = /\{\n\/\* \[wrapped with (.+)\] \*/, $ee = /,? & /, jee = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, zee = /[()=,{}\[\]\/\s]/, Uee = /\\(\\)?/g, Hee = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, MF = /\w*$/, Wee = /^[-+]0x[0-9a-f]+$/i, Vee = /^0b[01]+$/i, Kee = /^\[object .+?Constructor\]$/, qee = /^0o[0-7]+$/i, Gee = /^(?:0|[1-9]\d*)$/, Qee = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, cp = /($^)/, Yee = /['\n\r\u2028\u2029\\]/g, fp = '\\ud800-\\udfff', Jee = '\\u0300-\\u036f', Xee = '\\ufe20-\\ufe2f', Zee = '\\u20d0-\\u20ff', $F = Jee + Xee + Zee, jF = '\\u2700-\\u27bf', zF = 'a-z\\xdf-\\xf6\\xf8-\\xff', ete = '\\xac\\xb1\\xd7\\xf7', tte = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf', nte = '\\u2000-\\u206f', rte = ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000', UF = 'A-Z\\xc0-\\xd6\\xd8-\\xde', HF = '\\ufe0e\\ufe0f', WF = ete + tte + nte + rte, Dy = '[\'’]', ite = '[' + fp + ']', VF = '[' + WF + ']', dp = '[' + $F + ']', KF = '\\d+', ote = '[' + jF + ']', qF = '[' + zF + ']', GF = '[^' + fp + WF + KF + jF + zF + UF + ']', xy = '\\ud83c[\\udffb-\\udfff]', ste = '(?:' + dp + '|' + xy + ')', QF = '[^' + fp + ']', Ay = '(?:\\ud83c[\\udde6-\\uddff]){2}', Sy = '[\\ud800-\\udbff][\\udc00-\\udfff]', du = '[' + UF + ']', YF = '\\u200d', JF = '(?:' + qF + '|' + GF + ')', ate = '(?:' + du + '|' + GF + ')', XF = '(?:' + Dy + '(?:d|ll|m|re|s|t|ve))?', ZF = '(?:' + Dy + '(?:D|LL|M|RE|S|T|VE))?', eB = ste + '?', tB = '[' + HF + ']?', ute = '(?:' + YF + '(?:' + [QF, Ay, Sy].join('|') + ')' + tB + eB + ')*', lte = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])', cte = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])', nB = tB + eB + ute, fte = '(?:' + [ote, Ay, Sy].join('|') + ')' + nB, dte = '(?:' + [QF + dp + '?', dp, Ay, Sy, ite].join('|') + ')', hte = RegExp(Dy, 'g'), pte = RegExp(dp, 'g'), Oy = RegExp(xy + '(?=' + xy + ')|' + dte + nB, 'g'), gte = RegExp([du + '?' + qF + '+' + XF + '(?=' + [VF, du, '$'].join('|') + ')', ate + '+' + ZF + '(?=' + [VF, du + JF, '$'].join('|') + ')', du + '?' + JF + '+' + XF, du + '+' + ZF, cte, lte, KF, fte].join('|'), 'g'), mte = RegExp('[' + YF + fp + $F + HF + ']'), vte = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, yte = [ 'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array', 'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object', 'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array', 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap', '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout' ], wte = - 1, Ct = { }; Ct[qt] = Ct[sn] = Ct[pn] = Ct[cr] = Ct[Pr] = Ct[Rr] = Ct[Gi] = Ct[Qi] = Ct[Yi] = !0, Ct[L] = Ct[ne] = Ct[it] = Ct[Q] = Ct[Je] = Ct[ge] = Ct[Pe] = Ct[me] = Ct[Se] = Ct[Re] = Ct[ke] = Ct[At] = Ct[ht] = Ct[rt] = Ct[be] = !1; var vt = { }; vt[L] = vt[ne] = vt[it] = vt[Je] = vt[Q] = vt[ge] = vt[qt] = vt[sn] = vt[pn] = vt[cr] = vt[Pr] = vt[Se] = vt[Re] = vt[ke] = vt[At] = vt[ht] = vt[rt] = vt[Kt] = vt[Rr] = vt[Gi] = vt[Qi] = vt[Yi] = !0, vt[Pe] = vt[me] = vt[be] = !1; var bte = { À: 'A', Á: 'A', Â: 'A', Ã: 'A', Ä: 'A', Å: 'A', à: 'a', á: 'a', â: 'a', ã: 'a', ä: 'a', å: 'a', Ç: 'C', ç: 'c', Ð: 'D', ð: 'd', È: 'E', É: 'E', Ê: 'E', Ë: 'E', è: 'e', é: 'e', ê: 'e', ë: 'e', Ì: 'I', Í: 'I', Î: 'I', Ï: 'I', ì: 'i', í: 'i', î: 'i', ï: 'i', Ñ: 'N', ñ: 'n', Ò: 'O', Ó: 'O', Ô: 'O', Õ: 'O', Ö: 'O', Ø: 'O', ò: 'o', ó: 'o', ô: 'o', õ: 'o', ö: 'o', ø: 'o', Ù: 'U', Ú: 'U', Û: 'U', Ü: 'U', ù: 'u', ú: 'u', û: 'u', ü: 'u', Ý: 'Y', ý: 'y', ÿ: 'y', Æ: 'Ae', æ: 'ae', Þ: 'Th', þ: 'th', ß: 'ss', Ā: 'A', Ă: 'A', Ą: 'A', ā: 'a', ă: 'a', ą: 'a', Ć: 'C', Ĉ: 'C', Ċ: 'C', Č: 'C', ć: 'c', ĉ: 'c', ċ: 'c', č: 'c', Ď: 'D', Đ: 'D', ď: 'd', đ: 'd', Ē: 'E', Ĕ: 'E', Ė: 'E', Ę: 'E', Ě: 'E', ē: 'e', ĕ: 'e', ė: 'e', ę: 'e', ě: 'e', Ĝ: 'G', Ğ: 'G', Ġ: 'G', Ģ: 'G', ĝ: 'g', ğ: 'g', ġ: 'g', ģ: 'g', Ĥ: 'H', Ħ: 'H', ĥ: 'h', ħ: 'h', Ĩ: 'I', Ī: 'I', Ĭ: 'I', Į: 'I', İ: 'I', ĩ: 'i', ī: 'i', ĭ: 'i', į: 'i', ı: 'i', Ĵ: 'J', ĵ: 'j', Ķ: 'K', ķ: 'k', ĸ: 'k', Ĺ: 'L', Ļ: 'L', Ľ: 'L', Ŀ: 'L', Ł: 'L', ĺ: 'l', ļ: 'l', ľ: 'l', ŀ: 'l', ł: 'l', Ń: 'N', Ņ: 'N', Ň: 'N', Ŋ: 'N', ń: 'n', ņ: 'n', ň: 'n', ŋ: 'n', Ō: 'O', Ŏ: 'O', Ő: 'O', ō: 'o', ŏ: 'o', ő: 'o', Ŕ: 'R', Ŗ: 'R', Ř: 'R', ŕ: 'r', ŗ: 'r', ř: 'r', Ś: 'S', Ŝ: 'S', Ş: 'S', Š: 'S', ś: 's', ŝ: 's', ş: 's', š: 's', Ţ: 'T', Ť: 'T', Ŧ: 'T', ţ: 't', ť: 't', ŧ: 't', Ũ: 'U', Ū: 'U', Ŭ: 'U', Ů: 'U', Ű: 'U', Ų: 'U', ũ: 'u', ū: 'u', ŭ: 'u', ů: 'u', ű: 'u', ų: 'u', Ŵ: 'W', ŵ: 'w', Ŷ: 'Y', ŷ: 'y', Ÿ: 'Y', Ź: 'Z', Ż: 'Z', Ž: 'Z', ź: 'z', ż: 'z', ž: 'z', IJ: 'IJ', ij: 'ij', Œ: 'Oe', œ: 'oe', ʼn: '\'n', ſ: 's' }, _te = { '&': '&', '<': '<', '>': '>', '"': '"', '\'': ''' }, Cte = { '&': '&', '<': '<', '>': '>', '"': '"', ''': '\'' }, Ete = { '\\': '\\', '\'': '\'', '\n': 'n', '\r': 'r', '\u2028': 'u2028', '\u2029': 'u2029' }, Dte = parseFloat, xte = parseInt, rB = typeof Gt == 'object' && Gt && Gt.Object === Object && Gt, Ate = typeof self == 'object' && self && self.Object === Object && self, gn = rB || Ate || Function('return this') (), Fy = t && !t.nodeType && t, Ms = Fy && !0 && e && !e.nodeType && e, iB = Ms && Ms.exports === Fy, By = iB && rB.process, Tr = function () { try { var z = Ms && Ms.require && Ms.require('util').types; return z || By && By.binding && By.binding('util') } catch { } }(), oB = Tr && Tr.isArrayBuffer, sB = Tr && Tr.isDate, aB = Tr && Tr.isMap, uB = Tr && Tr.isRegExp, lB = Tr && Tr.isSet, cB = Tr && Tr.isTypedArray; function fr(z, ie, Z) { switch (Z.length) { case 0: return z.call(ie); case 1: return z.call(ie, Z[0]); case 2: return z.call(ie, Z[0], Z[1]); case 3: return z.call(ie, Z[0], Z[1], Z[2]) } return z.apply(ie, Z) } function Ste(z, ie, Z, xe) { for (var $e = - 1, ot = z == null ? 0 : z.length; ++$e < ot; ) { var Xt = z[$e]; ie(xe, Xt, Z(Xt), z) } return xe } function Ir(z, ie) { for (var Z = - 1, xe = z == null ? 0 : z.length; ++Z < xe && ie(z[Z], Z, z) !== !1; ); return z } function Ote(z, ie) { for (var Z = z == null ? 0 : z.length; Z-- && ie(z[Z], Z, z) !== !1; ); return z } function fB(z, ie) { for (var Z = - 1, xe = z == null ? 0 : z.length; ++Z < xe; ) if (!ie(z[Z], Z, z)) return !1; return !0 } function Wo(z, ie) { for (var Z = - 1, xe = z == null ? 0 : z.length, $e = 0, ot = [ ]; ++Z < xe; ) { var Xt = z[Z]; ie(Xt, Z, z) && (ot[$e++] = Xt) } return ot } function hp(z, ie) { var Z = z == null ? 0 : z.length; return !!Z && hu(z, ie, 0) > - 1 } function ky(z, ie, Z) { for (var xe = - 1, $e = z == null ? 0 : z.length; ++xe < $e; ) if (Z(ie, z[xe])) return !0; return !1 } function St(z, ie) { for (var Z = - 1, xe = z == null ? 0 : z.length, $e = Array(xe); ++Z < xe; ) $e[Z] = ie(z[Z], Z, z); return $e } function Vo(z, ie) { for (var Z = - 1, xe = ie.length, $e = z.length; ++Z < xe; ) z[$e + Z] = ie[Z]; return z } function Py(z, ie, Z, xe) { var $e = - 1, ot = z == null ? 0 : z.length; for (xe && ot && (Z = z[++$e]); ++$e < ot; ) Z = ie(Z, z[$e], $e, z); return Z } function Fte(z, ie, Z, xe) { var $e = z == null ? 0 : z.length; for (xe && $e && (Z = z[--$e]); $e--; ) Z = ie(Z, z[$e], $e, z); return Z } function Ry(z, ie) { for (var Z = - 1, xe = z == null ? 0 : z.length; ++Z < xe; ) if (ie(z[Z], Z, z)) return !0; return !1 } var Bte = Ty('length'); function kte(z) { return z.split('') } function Pte(z) { return z.match(jee) || [ ] } function dB(z, ie, Z) { var xe; return Z(z, function ($e, ot, Xt) { if (ie($e, ot, Xt)) return xe = ot, !1 }), xe } function pp(z, ie, Z, xe) { for (var $e = z.length, ot = Z + (xe ? 1 : - 1); xe ? ot-- : ++ot < $e; ) if (ie(z[ot], ot, z)) return ot; return - 1 } function hu(z, ie, Z) { return ie === ie ? Wte(z, ie, Z) : pp(z, hB, Z) } function Rte(z, ie, Z, xe) { for (var $e = Z - 1, ot = z.length; ++$e < ot; ) if (xe(z[$e], ie)) return $e; return - 1 } function hB(z) { return z !== z } function pB(z, ie) { var Z = z == null ? 0 : z.length; return Z ? Ny(z, ie) / Z : le } function Ty(z) { return function (ie) { return ie == null ? n : ie[z] } } function Iy(z) { return function (ie) { return z == null ? n : z[ie] } } function gB(z, ie, Z, xe, $e) { return $e(z, function (ot, Xt, pt) { Z = xe ? (xe = !1, ot) : ie(Z, ot, Xt, pt) }), Z } function Tte(z, ie) { var Z = z.length; for (z.sort(ie); Z--; ) z[Z] = z[Z].value; return z } function Ny(z, ie) { for (var Z, xe = - 1, $e = z.length; ++xe < $e; ) { var ot = ie(z[xe]); ot !== n && (Z = Z === n ? ot : Z + ot) } return Z } function Ly(z, ie) { for (var Z = - 1, xe = Array(z); ++Z < z; ) xe[Z] = ie(Z); return xe } function Ite(z, ie) { return St(ie, function (Z) { return [Z, z[Z]] }) } function mB(z) { return z && z.slice(0, bB(z) + 1).replace(Ey, '') } function dr(z) { return function (ie) { return z(ie) } } function My(z, ie) { return St(ie, function (Z) { return z[Z] }) } function fc(z, ie) { return z.has(ie) } function vB(z, ie) { for (var Z = - 1, xe = z.length; ++Z < xe && hu(ie, z[Z], 0) > - 1; ); return Z } function yB(z, ie) { for (var Z = z.length; Z-- && hu(ie, z[Z], 0) > - 1; ); return Z } function Nte(z, ie) { for (var Z = z.length, xe = 0; Z--; ) z[Z] === ie && ++xe; return xe } var Lte = Iy(bte), Mte = Iy(_te); function $te(z) { return '\\' + Ete[z] } function jte(z, ie) { return z == null ? n : z[ie] } function pu(z) { return mte.test(z) } function zte(z) { return vte.test(z) } function Ute(z) { for (var ie, Z = [ ]; !(ie = z.next()).done; ) Z.push(ie.value); return Z } function $y(z) { var ie = - 1, Z = Array(z.size); return z.forEach(function (xe, $e) { Z[++ie] = [ $e, xe ] }), Z } function wB(z, ie) { return function (Z) { return z(ie(Z)) } } function Ko(z, ie) { for (var Z = - 1, xe = z.length, $e = 0, ot = [ ]; ++Z < xe; ) { var Xt = z[Z]; (Xt === ie || Xt === h) && (z[Z] = h, ot[$e++] = Z) } return ot } function gp(z) { var ie = - 1, Z = Array(z.size); return z.forEach(function (xe) { Z[++ie] = xe }), Z } function Hte(z) { var ie = - 1, Z = Array(z.size); return z.forEach(function (xe) { Z[++ie] = [ xe, xe ] }), Z } function Wte(z, ie, Z) { for (var xe = Z - 1, $e = z.length; ++xe < $e; ) if (z[xe] === ie) return xe; return - 1 } function Vte(z, ie, Z) { for (var xe = Z + 1; xe--; ) if (z[xe] === ie) return xe; return xe } function gu(z) { return pu(z) ? qte(z) : Bte(z) } function ei(z) { return pu(z) ? Gte(z) : kte(z) } function bB(z) { for (var ie = z.length; ie-- && Nee.test(z.charAt(ie)); ); return ie } var Kte = Iy(Cte); function qte(z) { for (var ie = Oy.lastIndex = 0; Oy.test(z); ) ++ie; return ie } function Gte(z) { return z.match(Oy) || [ ] } function Qte(z) { return z.match(gte) || [ ] } var Yte = function z(ie) { ie = ie == null ? gn : mu.defaults(gn.Object(), ie, mu.pick(gn, yte)); var Z = ie.Array, xe = ie.Date, $e = ie.Error, ot = ie.Function, Xt = ie.Math, pt = ie.Object, jy = ie.RegExp, Jte = ie.String, Nr = ie.TypeError, mp = Z.prototype, Xte = ot.prototype, vu = pt.prototype, vp = ie['__core-js_shared__'], yp = Xte.toString, ut = vu.hasOwnProperty, Zte = 0, _B = function () { var s = /[^.]+$/.exec(vp && vp.keys && vp.keys.IE_PROTO || ''); return s ? 'Symbol(src)_1.' + s : '' }(), wp = vu.toString, ene = yp.call(pt), tne = gn._, nne = jy('^' + yp.call(ut).replace(Cy, '\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'), bp = iB ? ie.Buffer : n, qo = ie.Symbol, _p = ie.Uint8Array, CB = bp ? bp.allocUnsafe : n, Cp = wB(pt.getPrototypeOf, pt), EB = pt.create, DB = vu.propertyIsEnumerable, Ep = mp.splice, xB = qo ? qo.isConcatSpreadable : n, dc = qo ? qo.iterator : n, $s = qo ? qo.toStringTag : n, Dp = function () { try { var s = Ws(pt, 'defineProperty'); return s({ }, '', { }), s } catch { } }(), rne = ie.clearTimeout !== gn.clearTimeout && ie.clearTimeout, ine = xe && xe.now !== gn.Date.now && xe.now, one = ie.setTimeout !== gn.setTimeout && ie.setTimeout, xp = Xt.ceil, Ap = Xt.floor, zy = pt.getOwnPropertySymbols, sne = bp ? bp.isBuffer : n, AB = ie.isFinite, ane = mp.join, une = wB(pt.keys, pt), Zt = Xt.max, En = Xt.min, lne = xe.now, cne = ie.parseInt, SB = Xt.random, fne = mp.reverse, Uy = Ws(ie, 'DataView'), hc = Ws(ie, 'Map'), Hy = Ws(ie, 'Promise'), yu = Ws(ie, 'Set'), pc = Ws(ie, 'WeakMap'), gc = Ws(pt, 'create'), Sp = pc && new pc, wu = { }, dne = Vs(Uy), hne = Vs(hc), pne = Vs(Hy), gne = Vs(yu), mne = Vs(pc), Op = qo ? qo.prototype : n, mc = Op ? Op.valueOf : n, OB = Op ? Op.toString : n; function S(s) { if ($t(s) && !ze(s) && !(s instanceof Ye)) { if (s instanceof Lr) return s; if (ut.call(s, '__wrapped__')) return F5(s) } return new Lr(s) } var bu = function () { function s() { } return function (l) { if (!Rt(l)) return { }; if (EB) return EB(l); s.prototype = l; var d = new s; return s.prototype = n, d } }(); function Fp() { } function Lr(s, l) { this.__wrapped__ = s, this.__actions__ = [ ], this.__chain__ = !!l, this.__index__ = 0, this.__values__ = n } S.templateSettings = { escape: Bee, evaluate: kee, interpolate: LF, variable: '', imports: { _: S } }, S.prototype = Fp.prototype, S.prototype.constructor = S, Lr.prototype = bu(Fp.prototype), Lr.prototype.constructor = Lr; function Ye(s) { this.__wrapped__ = s, this.__actions__ = [ ], this.__dir__ = 1, this.__filtered__ = !1, this.__iteratees__ = [ ], this.__takeCount__ = ce, this.__views__ = [ ] } function vne() { var s = new Ye(this.__wrapped__); return s.__actions__ = Vn(this.__actions__), s.__dir__ = this.__dir__, s.__filtered__ = this.__filtered__, s.__iteratees__ = Vn(this.__iteratees__), s.__takeCount__ = this.__takeCount__, s.__views__ = Vn(this.__views__), s } function yne() { if (this.__filtered__) { var s = new Ye(this); s.__dir__ = - 1, s.__filtered__ = !0 } else s = this.clone(), s.__dir__ *= - 1; return s } function wne() { var s = this.__wrapped__.value(), l = this.__dir__, d = ze(s), w = l < 0, A = d ? s.length : 0, F = kre(0, A, this.__views__), R = F.start, M = F.end, H = M - R, ae = w ? M : R - 1, ue = this.__iteratees__, fe = ue.length, _e = 0, Oe = En(H, this.__takeCount__); if (!d || !w && A == H && Oe == H) return XB(s, this.__actions__); var Ie = [ ]; e: for (; H-- && _e < Oe; ) { ae += l; for (var We = - 1, Ne = s[ae]; ++We < fe; ) { var Ge = ue[We], Xe = Ge.iteratee, gr = Ge.type, In = Xe(Ne); if (gr == G) Ne = In; else if (!In) { if (gr == T) continue e; break e } } Ie[_e++] = Ne } return Ie } Ye.prototype = bu(Fp.prototype), Ye.prototype.constructor = Ye; function js(s) { var l = - 1, d = s == null ? 0 : s.length; for (this.clear(); ++l < d; ) { var w = s[l]; this.set(w[0], w[1]) } } function bne() { this.__data__ = gc ? gc(null) : { }, this.size = 0 } function _ne(s) { var l = this.has(s) && delete this.__data__[s]; return this.size -= l ? 1 : 0, l } function Cne(s) { var l = this.__data__; if (gc) { var d = l[s]; return d === c ? n : d } return ut.call(l, s) ? l[s] : n } function Ene(s) { var l = this.__data__; return gc ? l[s] !== n : ut.call(l, s) } function Dne(s, l) { var d = this.__data__; return this.size += this.has(s) ? 0 : 1, d[s] = gc && l === n ? c : l, this } js.prototype.clear = bne, js.prototype.delete = _ne, js.prototype.get = Cne, js.prototype.has = Ene, js.prototype.set = Dne; function Ji(s) { var l = - 1, d = s == null ? 0 : s.length; for (this.clear(); ++l < d; ) { var w = s[l]; this.set(w[0], w[1]) } } function xne() { this.__data__ = [ ], this.size = 0 } function Ane(s) { var l = this.__data__, d = Bp(l, s); if (d < 0) return !1; var w = l.length - 1; return d == w ? l.pop() : Ep.call(l, d, 1), --this.size, !0 } function Sne(s) { var l = this.__data__, d = Bp(l, s); return d < 0 ? n : l[d][1] } function One(s) { return Bp(this.__data__, s) > - 1 } function Fne(s, l) { var d = this.__data__, w = Bp(d, s); return w < 0 ? (++this.size, d.push([s, l])) : d[w][1] = l, this } Ji.prototype.clear = xne, Ji.prototype.delete = Ane, Ji.prototype.get = Sne, Ji.prototype.has = One, Ji.prototype.set = Fne; function Xi(s) { var l = - 1, d = s == null ? 0 : s.length; for (this.clear(); ++l < d; ) { var w = s[l]; this.set(w[0], w[1]) } } function Bne() { this.size = 0, this.__data__ = { hash: new js, map: new (hc || Ji), string: new js } } function kne(s) { var l = Up(this, s).delete(s); return this.size -= l ? 1 : 0, l } function Pne(s) { return Up(this, s).get(s) } function Rne(s) { return Up(this, s).has(s) } function Tne(s, l) { var d = Up(this, s), w = d.size; return d.set(s, l), this.size += d.size == w ? 0 : 1, this } Xi.prototype.clear = Bne, Xi.prototype.delete = kne, Xi.prototype.get = Pne, Xi.prototype.has = Rne, Xi.prototype.set = Tne; function zs(s) { var l = - 1, d = s == null ? 0 : s.length; for (this.__data__ = new Xi; ++l < d; ) this.add(s[l]) } function Ine(s) { return this.__data__.set(s, c), this } function Nne(s) { return this.__data__.has(s) } zs.prototype.add = zs.prototype.push = Ine, zs.prototype.has = Nne; function ti(s) { var l = this.__data__ = new Ji(s); this.size = l.size } function Lne() { this.__data__ = new Ji, this.size = 0 } function Mne(s) { var l = this.__data__, d = l.delete(s); return this.size = l.size, d } function $ne(s) { return this.__data__.get(s) } function jne(s) { return this.__data__.has(s) } function zne(s, l) { var d = this.__data__; if (d instanceof Ji) { var w = d.__data__; if (!hc || w.length < i - 1) return w.push([s, l]), this.size = ++d.size, this; d = this.__data__ = new Xi(w) } return d.set(s, l), this.size = d.size, this } ti.prototype.clear = Lne, ti.prototype.delete = Mne, ti.prototype.get = $ne, ti.prototype.has = jne, ti.prototype.set = zne; function FB(s, l) { var d = ze(s), w = !d && Ks(s), A = !d && !w && Xo(s), F = !d && !w && !A && Du(s), R = d || w || A || F, M = R ? Ly(s.length, Jte) : [ ], H = M.length; for (var ae in s) (l || ut.call(s, ae)) && !(R && (ae == 'length' || A && (ae == 'offset' || ae == 'parent') || F && (ae == 'buffer' || ae == 'byteLength' || ae == 'byteOffset') || no(ae, H))) && M.push(ae); return M } function BB(s) { var l = s.length; return l ? s[ew(0, l - 1)] : n } function Une(s, l) { return Hp(Vn(s), Us(l, 0, s.length)) } function Hne(s) { return Hp(Vn(s)) } function Wy(s, l, d) { (d !== n && !ni(s[l], d) || d === n && !(l in s)) && Zi(s, l, d) } function vc(s, l, d) { var w = s[l]; (!(ut.call(s, l) && ni(w, d)) || d === n && !(l in s)) && Zi(s, l, d) } function Bp(s, l) { for (var d = s.length; d--; ) if (ni(s[d][0], l)) return d; return - 1 } function Wne(s, l, d, w) { return Go(s, function (A, F, R) { l(w, A, d(A), R) }), w } function kB(s, l) { return s && Di(l, an(l), s) } function Vne(s, l) { return s && Di(l, qn(l), s) } function Zi(s, l, d) { l == '__proto__' && Dp ? Dp(s, l, { configurable: !0, enumerable: !0, value: d, writable: !0 }) : s[l] = d } function Vy(s, l) { for (var d = - 1, w = l.length, A = Z(w), F = s == null; ++d < w; ) A[d] = F ? n : xw(s, l[d]); return A } function Us(s, l, d) { return s === s && (d !== n && (s = s <= d ? s : d), l !== n && (s = s >= l ? s : l)), s } function Mr(s, l, d, w, A, F) { var R, M = l & g, H = l & m, ae = l & y; if (d && (R = A ? d(s, w, A, F) : d(s)), R !== n) return R; if (!Rt(s)) return s; var ue = ze(s); if (ue) { if (R = Rre(s), !M) return Vn(s, R) } else { var fe = Dn(s), _e = fe == me || fe == Fe; if (Xo(s)) return t5(s, M); if (fe == ke || fe == L || _e && !A) { if (R = H || _e ? { } : b5(s), !M) return H ? Cre(s, Vne(R, s)) : _re(s, kB(R, s)) } else { if (!vt[fe]) return A ? s : { }; R = Tre(s, fe, M) } } F || (F = new ti); var Oe = F.get(s); if (Oe) return Oe; F.set(s, R), Q5(s) ? s.forEach(function (Ne) { R.add(Mr(Ne, l, d, Ne, s, F)) }) : q5(s) && s.forEach(function (Ne, Ge) { R.set(Ge, Mr(Ne, l, d, Ge, s, F)) }); var Ie = ae ? H ? fw : cw : H ? qn : an, We = ue ? n : Ie(s); return Ir(We || s, function (Ne, Ge) { We && (Ge = Ne, Ne = s[Ge]), vc(R, Ge, Mr(Ne, l, d, Ge, s, F)) }), R } function Kne(s) { var l = an(s); return function (d) { return PB(d, s, l) } } function PB(s, l, d) { var w = d.length; if (s == null) return !w; for (s = pt(s); w--; ) { var A = d[w], F = l[A], R = s[A]; if (R === n && !(A in s) || !F(R)) return !1 } return !0 } function RB(s, l, d) { if (typeof s != 'function') throw new Nr(a); return Dc(function () { s.apply(n, d) }, l) } function yc(s, l, d, w) { var A = - 1, F = hp, R = !0, M = s.length, H = [ ], ae = l.length; if (!M) return H; d && (l = St(l, dr(d))), w ? (F = ky, R = !1) : l.length >= i && (F = fc, R = !1, l = new zs(l)); e: for (; ++A < M; ) { var ue = s[A], fe = d == null ? ue : d(ue); if (ue = w || ue !== 0 ? ue : 0, R && fe === fe) { for (var _e = ae; _e--; ) if (l[_e] === fe) continue e; H.push(ue) } else F(l, fe, w) || H.push(ue) } return H } var Go = s5(Ei), TB = s5(qy, !0); function qne(s, l) { var d = !0; return Go(s, function (w, A, F) { return d = !!l(w, A, F), d }), d } function kp(s, l, d) { for (var w = - 1, A = s.length; ++w < A; ) { var F = s[w], R = l(F); if (R != null && (M === n ? R === R && !pr(R) : d(R, M))) var M = R, H = F } return H } function Gne(s, l, d, w) { var A = s.length; for (d = He(d), d < 0 && (d = - d > A ? 0 : A + d), w = w === n || w > A ? A : He(w), w < 0 && (w += A), w = d > w ? 0 : J5(w); d < w; ) s[d++] = l; return s } function IB(s, l) { var d = [ ]; return Go(s, function (w, A, F) { l(w, A, F) && d.push(w) }), d } function mn(s, l, d, w, A) { var F = - 1, R = s.length; for (d || (d = Nre), A || (A = [ ]); ++F < R; ) { var M = s[F]; l > 0 && d(M) ? l > 1 ? mn(M, l - 1, d, w, A) : Vo(A, M) : w || (A[A.length] = M) } return A } var Ky = a5(), NB = a5(!0); function Ei(s, l) { return s && Ky(s, l, an) } function qy(s, l) { return s && NB(s, l, an) } function Pp(s, l) { return Wo(l, function (d) { return ro(s[d]) }) } function Hs(s, l) { l = Yo(l, s); for (var d = 0, w = l.length; s != null && d < w; ) s = s[xi(l[d++])]; return d && d == w ? s : n } function LB(s, l, d) { var w = l(s); return ze(s) ? w : Vo(w, d(s)) } function Rn(s) { return s == null ? s === n ? ve : Be : $s && $s in pt(s) ? Bre(s) : Hre(s) } function Gy(s, l) { return s > l } function Qne(s, l) { return s != null && ut.call(s, l) } function Yne(s, l) { return s != null && l in pt(s) } function Jne(s, l, d) { return s >= En(l, d) && s < Zt(l, d) } function Qy(s, l, d) { for (var w = d ? ky : hp, A = s[0].length, F = s.length, R = F, M = Z(F), H = 1 / 0, ae = [ ]; R--; ) { var ue = s[R]; R && l && (ue = St(ue, dr(l))), H = En(ue.length, H), M[R] = !d && (l || A >= 120 && ue.length >= 120) ? new zs(R && ue) : n } ue = s[0]; var fe = - 1, _e = M[0]; e: for (; ++fe < A && ae.length < H; ) { var Oe = ue[fe], Ie = l ? l(Oe) : Oe; if (Oe = d || Oe !== 0 ? Oe : 0, !(_e ? fc(_e, Ie) : w(ae, Ie, d))) { for (R = F; --R; ) { var We = M[R]; if (!(We ? fc(We, Ie) : w(s[R], Ie, d))) continue e } _e && _e.push(Ie), ae.push(Oe) } } return ae } function Xne(s, l, d, w) { return Ei(s, function (A, F, R) { l(w, d(A), F, R) }), w } function wc(s, l, d) { l = Yo(l, s), s = D5(s, l); var w = s == null ? s : s[xi(jr(l))]; return w == null ? n : fr(w, s, d) } function MB(s) { return $t(s) && Rn(s) == L } function Zne(s) { return $t(s) && Rn(s) == it } function ere(s) { return $t(s) && Rn(s) == ge } function bc(s, l, d, w, A) { return s === l ? !0 : s == null || l == null || !$t(s) && !$t(l) ? s !== s && l !== l : tre(s, l, d, w, bc, A) } function tre(s, l, d, w, A, F) { var R = ze(s), M = ze(l), H = R ? ne : Dn(s), ae = M ? ne : Dn(l); H = H == L ? ke : H, ae = ae == L ? ke : ae; var ue = H == ke, fe = ae == ke, _e = H == ae; if (_e && Xo(s)) { if (!Xo(l)) return !1; R = !0, ue = !1 } if (_e && !ue) return F || (F = new ti), R || Du(s) ? v5(s, l, d, w, A, F) : Ore(s, l, H, d, w, A, F); if (!(d & v)) { var Oe = ue && ut.call(s, '__wrapped__'), Ie = fe && ut.call(l, '__wrapped__'); if (Oe || Ie) { var We = Oe ? s.value() : s, Ne = Ie ? l.value() : l; return F || (F = new ti), A(We, Ne, d, w, F) } } return _e ? (F || (F = new ti), Fre(s, l, d, w, A, F)) : !1 } function nre(s) { return $t(s) && Dn(s) == Se } function Yy(s, l, d, w) { var A = d.length, F = A, R = !w; if (s == null) return !F; for (s = pt(s); A--; ) { var M = d[A]; if (R && M[2] ? M[1] !== s[M[0]] : !(M[0] in s)) return !1 } for (; ++A < F; ) { M = d[A]; var H = M[0], ae = s[H], ue = M[1]; if (R && M[2]) { if (ae === n && !(H in s)) return !1 } else { var fe = new ti; if (w) var _e = w(ae, ue, H, s, l, fe); if (!(_e === n ? bc(ue, ae, v | p, w, fe) : _e)) return !1 } } return !0 } function $B(s) { if (!Rt(s) || Mre(s)) return !1; var l = ro(s) ? nne : Kee; return l.test(Vs(s)) } function rre(s) { return $t(s) && Rn(s) == At } function ire(s) { return $t(s) && Dn(s) == ht } function ore(s) { return $t(s) && Qp(s.length) && !!Ct[Rn(s)] } function jB(s) { return typeof s == 'function' ? s : s == null ? Gn : typeof s == 'object' ? ze(s) ? HB(s[0], s[1]) : UB(s) : uk(s) } function Jy(s) { if (!Ec(s)) return une(s); var l = [ ]; for (var d in pt(s)) ut.call(s, d) && d != 'constructor' && l.push(d); return l } function sre(s) { if (!Rt(s)) return Ure(s); var l = Ec(s), d = [ ]; for (var w in s) w == 'constructor' && (l || !ut.call(s, w)) || d.push(w); return d } function Xy(s, l) { return s < l } function zB(s, l) { var d = - 1, w = Kn(s) ? Z(s.length) : [ ]; return Go(s, function (A, F, R) { w[++d] = l(A, F, R) }), w } function UB(s) { var l = hw(s); return l.length == 1 && l[0][2] ? C5(l[0][0], l[0][1]) : function (d) { return d === s || Yy(d, s, l) } } function HB(s, l) { return gw(s) && _5(l) ? C5(xi(s), l) : function (d) { var w = xw(d, s); return w === n && w === l ? Aw(d, s) : bc(l, w, v | p) } } function Rp(s, l, d, w, A) { s !== l && Ky(l, function (F, R) { if (A || (A = new ti), Rt(F)) are(s, l, R, d, Rp, w, A); else { var M = w ? w(vw(s, R), F, R + '', s, l, A) : n; M === n && (M = F), Wy(s, R, M) } }, qn) } function are(s, l, d, w, A, F, R) { var M = vw(s, d), H = vw(l, d), ae = R.get(H); if (ae) { Wy(s, d, ae); return } var ue = F ? F(M, H, d + '', s, l, R) : n, fe = ue === n; if (fe) { var _e = ze(H), Oe = !_e && Xo(H), Ie = !_e && !Oe && Du(H); ue = H, _e || Oe || Ie ? ze(M) ? ue = M : Ht(M) ? ue = Vn(M) : Oe ? (fe = !1, ue = t5(H, !0)) : Ie ? (fe = !1, ue = n5(H, !0)) : ue = [ ] : xc(H) || Ks(H) ? (ue = M, Ks(M) ? ue = X5(M) : (!Rt(M) || ro(M)) && (ue = b5(H))) : fe = !1 } fe && (R.set(H, ue), A(ue, H, w, F, R), R.delete(H)), Wy(s, d, ue) } function WB(s, l) { var d = s.length; if (d) return l += l < 0 ? d : 0, no(l, d) ? s[l] : n } function VB(s, l, d) { l.length ? l = St(l, function (F) { return ze(F) ? function (R) { return Hs(R, F.length === 1 ? F[0] : F) } : F }) : l = [ Gn ]; var w = - 1; l = St(l, dr(Te())); var A = zB(s, function (F, R, M) { var H = St(l, function (ae) { return ae(F) }); return { criteria: H, index: ++w, value: F } }); return Tte(A, function (F, R) { return bre(F, R, d) }) } function ure(s, l) { return KB(s, l, function (d, w) { return Aw(s, w) }) } function KB(s, l, d) { for (var w = - 1, A = l.length, F = { }; ++w < A; ) { var R = l[w], M = Hs(s, R); d(M, R) && _c(F, Yo(R, s), M) } return F } function lre(s) { return function (l) { return Hs(l, s) } } function Zy(s, l, d, w) { var A = w ? Rte : hu, F = - 1, R = l.length, M = s; for (s === l && (l = Vn(l)), d && (M = St(s, dr(d))); ++F < R; ) for (var H = 0, ae = l[F], ue = d ? d(ae) : ae; (H = A(M, ue, H, w)) > - 1; ) M !== s && Ep.call(M, H, 1), Ep.call(s, H, 1); return s } function qB(s, l) { for (var d = s ? l.length : 0, w = d - 1; d--; ) { var A = l[d]; if (d == w || A !== F) { var F = A; no(A) ? Ep.call(s, A, 1) : rw(s, A) } } return s } function ew(s, l) { return s + Ap(SB() * (l - s + 1)) } function cre(s, l, d, w) { for (var A = - 1, F = Zt(xp((l - s) / (d || 1)), 0), R = Z(F); F--; ) R[w ? F : ++A] = s, s += d; return R } function tw(s, l) { var d = ''; if (!s || l < 1 || l > V) return d; do l % 2 && (d += s), l = Ap(l / 2), l && (s += s); while (l); return d } function Ke(s, l) { return yw(E5(s, l, Gn), s + '') } function fre(s) { return BB(xu(s)) } function dre(s, l) { var d = xu(s); return Hp(d, Us(l, 0, d.length)) } function _c(s, l, d, w) { if (!Rt(s)) return s; l = Yo(l, s); for (var A = - 1, F = l.length, R = F - 1, M = s; M != null && ++A < F; ) { var H = xi(l[A]), ae = d; if (H === '__proto__' || H === 'constructor' || H === 'prototype') return s; if (A != R) { var ue = M[H]; ae = w ? w(ue, H, M) : n, ae === n && (ae = Rt(ue) ? ue : no(l[A + 1]) ? [ ] : { }) } vc(M, H, ae), M = M[H] } return s } var GB = Sp ? function (s, l) { return Sp.set(s, l), s } : Gn, hre = Dp ? function (s, l) { return Dp(s, 'toString', { configurable: !0, enumerable: !1, value: Ow(l), writable: !0 }) } : Gn; function pre(s) { return Hp(xu(s)) } function $r(s, l, d) { var w = - 1, A = s.length; l < 0 && (l = - l > A ? 0 : A + l), d = d > A ? A : d, d < 0 && (d += A), A = l > d ? 0 : d - l >>> 0, l >>>= 0; for (var F = Z(A); ++w < A; ) F[w] = s[w + l]; return F } function gre(s, l) { var d; return Go(s, function (w, A, F) { return d = l(w, A, F), !d }), !!d } function Tp(s, l, d) { var w = 0, A = s == null ? w : s.length; if (typeof l == 'number' && l === l && A <= De) { for (; w < A; ) { var F = w + A >>> 1, R = s[F]; R !== null && !pr(R) && (d ? R <= l : R < l) ? w = F + 1 : A = F } return A } return nw(s, l, Gn, d) } function nw(s, l, d, w) { var A = 0, F = s == null ? 0 : s.length; if (F === 0) return 0; l = d(l); for (var R = l !== l, M = l === null, H = pr(l), ae = l === n; A < F; ) { var ue = Ap((A + F) / 2), fe = d(s[ue]), _e = fe !== n, Oe = fe === null, Ie = fe === fe, We = pr(fe); if (R) var Ne = w || Ie; else ae ? Ne = Ie && (w || _e) : M ? Ne = Ie && _e && (w || !Oe) : H ? Ne = Ie && _e && !Oe && (w || !We) : Oe || We ? Ne = !1 : Ne = w ? fe <= l : fe < l; Ne ? A = ue + 1 : F = ue } return En(F, ye) } function QB(s, l) { for (var d = - 1, w = s.length, A = 0, F = [ ]; ++d < w; ) { var R = s[d], M = l ? l(R) : R; if (!d || !ni(M, H)) { var H = M; F[A++] = R === 0 ? 0 : R } } return F } function YB(s) { return typeof s == 'number' ? s : pr(s) ? le : + s } function hr(s) { if (typeof s == 'string') return s; if (ze(s)) return St(s, hr) + ''; if (pr(s)) return OB ? OB.call(s) : ''; var l = s + ''; return l == '0' && 1 / s == - re ? '-0' : l } function Qo(s, l, d) { var w = - 1, A = hp, F = s.length, R = !0, M = [ ], H = M; if (d) R = !1, A = ky; else if (F >= i) { var ae = l ? null : Are(s); if (ae) return gp(ae); R = !1, A = fc, H = new zs } else H = l ? [ ] : M; e: for (; ++w < F; ) { var ue = s[w], fe = l ? l(ue) : ue; if (ue = d || ue !== 0 ? ue : 0, R && fe === fe) { for (var _e = H.length; _e--; ) if (H[_e] === fe) continue e; l && H.push(fe), M.push(ue) } else A(H, fe, d) || (H !== M && H.push(fe), M.push(ue)) } return M } function rw(s, l) { return l = Yo(l, s), s = D5(s, l), s == null || delete s[xi(jr(l))] } function JB(s, l, d, w) { return _c(s, l, d(Hs(s, l)), w) } function Ip(s, l, d, w) { for (var A = s.length, F = w ? A : - 1; (w ? F-- : ++F < A) && l(s[F], F, s); ); return d ? $r(s, w ? 0 : F, w ? F + 1 : A) : $r(s, w ? F + 1 : 0, w ? A : F) } function XB(s, l) { var d = s; return d instanceof Ye && (d = d.value()), Py(l, function (w, A) { return A.func.apply(A.thisArg, Vo([w], A.args)) }, d) } function iw(s, l, d) { var w = s.length; if (w < 2) return w ? Qo(s[0]) : [ ]; for (var A = - 1, F = Z(w); ++A < w; ) for (var R = s[A], M = - 1; ++M < w; ) M != A && (F[A] = yc(F[A] || R, s[M], l, d)); return Qo(mn(F, 1), l, d) } function ZB(s, l, d) { for (var w = - 1, A = s.length, F = l.length, R = { }; ++w < A; ) { var M = w < F ? l[w] : n; d(R, s[w], M) } return R } function ow(s) { return Ht(s) ? s : [ ] } function sw(s) { return typeof s == 'function' ? s : Gn } function Yo(s, l) { return ze(s) ? s : gw(s, l) ? [ s ] : O5(st(s)) } var mre = Ke; function Jo(s, l, d) { var w = s.length; return d = d === n ? w : d, !l && d >= w ? s : $r(s, l, d) } var e5 = rne || function (s) { return gn.clearTimeout(s) }; function t5(s, l) { if (l) return s.slice(); var d = s.length, w = CB ? CB(d) : new s.constructor(d); return s.copy(w), w } function aw(s) { var l = new s.constructor(s.byteLength); return new _p(l).set(new _p(s)), l } function vre(s, l) { var d = l ? aw(s.buffer) : s.buffer; return new s.constructor(d, s.byteOffset, s.byteLength) } function yre(s) { var l = new s.constructor(s.source, MF.exec(s)); return l.lastIndex = s.lastIndex, l } function wre(s) { return mc ? pt(mc.call(s)) : { } } function n5(s, l) { var d = l ? aw(s.buffer) : s.buffer; return new s.constructor(d, s.byteOffset, s.length) } function r5(s, l) { if (s !== l) { var d = s !== n, w = s === null, A = s === s, F = pr(s), R = l !== n, M = l === null, H = l === l, ae = pr(l); if (!M && !ae && !F && s > l || F && R && H && !M && !ae || w && R && H || !d && H || !A) return 1; if (!w && !F && !ae && s < l || ae && d && A && !w && !F || M && d && A || !R && A || !H) return - 1 } return 0 } function bre(s, l, d) { for (var w = - 1, A = s.criteria, F = l.criteria, R = A.length, M = d.length; ++w < R; ) { var H = r5(A[w], F[w]); if (H) { if (w >= M) return H; var ae = d[w]; return H * (ae == 'desc' ? - 1 : 1) } } return s.index - l.index } function i5(s, l, d, w) { for (var A = - 1, F = s.length, R = d.length, M = - 1, H = l.length, ae = Zt(F - R, 0), ue = Z(H + ae), fe = !w; ++M < H; ) ue[M] = l[M]; for (; ++A < R; ) (fe || A < F) && (ue[d[A]] = s[A]); for (; ae--; ) ue[M++] = s[A++]; return ue } function o5(s, l, d, w) { for (var A = - 1, F = s.length, R = - 1, M = d.length, H = - 1, ae = l.length, ue = Zt(F - M, 0), fe = Z(ue + ae), _e = !w; ++A < ue; ) fe[A] = s[A]; for (var Oe = A; ++H < ae; ) fe[Oe + H] = l[H]; for (; ++R < M; ) (_e || A < F) && (fe[Oe + d[R]] = s[A++]); return fe } function Vn(s, l) { var d = - 1, w = s.length; for (l || (l = Z(w)); ++d < w; ) l[d] = s[d]; return l } function Di(s, l, d, w) { var A = !d; d || (d = { }); for (var F = - 1, R = l.length; ++F < R; ) { var M = l[F], H = w ? w(d[M], s[M], M, d, s) : n; H === n && (H = s[M]), A ? Zi(d, M, H) : vc(d, M, H) } return d } function _re(s, l) { return Di(s, pw(s), l) } function Cre(s, l) { return Di(s, y5(s), l) } function Np(s, l) { return function (d, w) { var A = ze(d) ? Ste : Wne, F = l ? l() : { }; return A(d, s, Te(w, 2), F) } } function _u(s) { return Ke(function (l, d) { var w = - 1, A = d.length, F = A > 1 ? d[A - 1] : n, R = A > 2 ? d[2] : n; for (F = s.length > 3 && typeof F == 'function' ? (A--, F) : n, R && Tn(d[0], d[1], R) && (F = A < 3 ? n : F, A = 1), l = pt(l); ++w < A; ) { var M = d[w]; M && s(l, M, w, F) } return l }) } function s5(s, l) { return function (d, w) { if (d == null) return d; if (!Kn(d)) return s(d, w); for (var A = d.length, F = l ? A : - 1, R = pt(d); (l ? F-- : ++F < A) && w(R[F], F, R) !== !1; ); return d } } function a5(s) { return function (l, d, w) { for (var A = - 1, F = pt(l), R = w(l), M = R.length; M--; ) { var H = R[s ? M : ++A]; if (d(F[H], H, F) === !1) break } return l } } function Ere(s, l, d) { var w = l & E, A = Cc(s); function F() { var R = this && this !== gn && this instanceof F ? A : s; return R.apply(w ? d : this, arguments) } return F } function u5(s) { return function (l) { l = st(l); var d = pu(l) ? ei(l) : n, w = d ? d[0] : l.charAt(0), A = d ? Jo(d, 1).join('') : l.slice(1); return w[s]() + A } } function Cu(s) { return function (l) { return Py(sk(ok(l).replace(hte, '')), s, '') } } function Cc(s) { return function () { var l = arguments; switch (l.length) { case 0: return new s; case 1: return new s(l[0]); case 2: return new s(l[0], l[1]); case 3: return new s(l[0], l[1], l[2]); case 4: return new s(l[0], l[1], l[2], l[3]); case 5: return new s(l[0], l[1], l[2], l[3], l[4]); case 6: return new s(l[0], l[1], l[2], l[3], l[4], l[5]); case 7: return new s(l[0], l[1], l[2], l[3], l[4], l[5], l[6]) } var d = bu(s.prototype), w = s.apply(d, l); return Rt(w) ? w : d } } function Dre(s, l, d) { var w = Cc(s); function A() { for (var F = arguments.length, R = Z(F), M = F, H = Eu(A); M--; ) R[M] = arguments[M]; var ae = F < 3 && R[0] !== H && R[F - 1] !== H ? [ ] : Ko(R, H); if (F -= ae.length, F < d) return h5(s, l, Lp, A.placeholder, n, R, ae, n, n, d - F); var ue = this && this !== gn && this instanceof A ? w : s; return fr(ue, this, R) } return A } function l5(s) { return function (l, d, w) { var A = pt(l); if (!Kn(l)) { var F = Te(d, 3); l = an(l), d = function (M) { return F(A[M], M, A) } } var R = s(l, d, w); return R > - 1 ? A[F ? l[R] : R] : n } } function c5(s) { return to(function (l) { var d = l.length, w = d, A = Lr.prototype.thru; for (s && l.reverse(); w--; ) { var F = l[w]; if (typeof F != 'function') throw new Nr(a); if (A && !R && zp(F) == 'wrapper') var R = new Lr([], !0) } for (w = R ? w : d; ++w < d; ) { F = l[w]; var M = zp(F), H = M == 'wrapper' ? dw(F) : n; H && mw(H[0]) && H[1] == (P | x | B | I) && !H[4].length && H[9] == 1 ? R = R[zp(H[0])].apply(R, H[3]) : R = F.length == 1 && mw(F) ? R[M]() : R.thru(F) } return function () { var ae = arguments, ue = ae[0]; if (R && ae.length == 1 && ze(ue)) return R.plant(ue).value(); for (var fe = 0, _e = d ? l[fe].apply(this, ae) : ue; ++fe < d; ) _e = l[fe].call(this, _e); return _e } }) } function Lp(s, l, d, w, A, F, R, M, H, ae) { var ue = l & P, fe = l & E, _e = l & _, Oe = l & (x | O), Ie = l & Y, We = _e ? n : Cc(s); function Ne() { for (var Ge = arguments.length, Xe = Z(Ge), gr = Ge; gr--; ) Xe[gr] = arguments[gr]; if (Oe) var In = Eu(Ne), mr = Nte(Xe, In); if (w && (Xe = i5(Xe, w, A, Oe)), F && (Xe = o5(Xe, F, R, Oe)), Ge -= mr, Oe && Ge < ae) { var Wt = Ko(Xe, In); return h5(s, l, Lp, Ne.placeholder, d, Xe, Wt, M, H, ae - Ge) } var ri = fe ? d : this, oo = _e ? ri[s] : s; return Ge = Xe.length, M ? Xe = Wre(Xe, M) : Ie && Ge > 1 && Xe.reverse(), ue && H < Ge && (Xe.length = H), this && this !== gn && this instanceof Ne && (oo = We || Cc(oo)), oo.apply(ri, Xe) } return Ne } function f5(s, l) { return function (d, w) { return Xne(d, s, l(w), { }) } } function Mp(s, l) { return function (d, w) { var A; if (d === n && w === n) return l; if (d !== n && (A = d), w !== n) { if (A === n) return w; typeof d == 'string' || typeof w == 'string' ? (d = hr(d), w = hr(w)) : (d = YB(d), w = YB(w)), A = s(d, w) } return A } } function uw(s) { return to(function (l) { return l = St(l, dr(Te())), Ke(function (d) { var w = this; return s(l, function (A) { return fr(A, w, d) }) }) }) } function $p(s, l) { l = l === n ? ' ' : hr(l); var d = l.length; if (d < 2) return d ? tw(l, s) : l; var w = tw(l, xp(s / gu(l))); return pu(l) ? Jo(ei(w), 0, s).join('') : w.slice(0, s) } function xre(s, l, d, w) { var A = l & E, F = Cc(s); function R() { for (var M = - 1, H = arguments.length, ae = - 1, ue = w.length, fe = Z(ue + H), _e = this && this !== gn && this instanceof R ? F : s; ++ae < ue; ) fe[ae] = w[ae]; for (; H--; ) fe[ae++] = arguments[++M]; return fr(_e, A ? d : this, fe) } return R } function d5(s) { return function (l, d, w) { return w && typeof w != 'number' && Tn(l, d, w) && (d = w = n), l = io(l), d === n ? (d = l, l = 0) : d = io(d), w = w === n ? l < d ? 1 : - 1 : io(w), cre(l, d, w, s) } } function jp(s) { return function (l, d) { return typeof l == 'string' && typeof d == 'string' || (l = zr(l), d = zr(d)), s(l, d) } } function h5(s, l, d, w, A, F, R, M, H, ae) { var ue = l & x, fe = ue ? R : n, _e = ue ? n : R, Oe = ue ? F : n, Ie = ue ? n : F; l |= ue ? B : k, l &= ~(ue ? k : B), l & b || (l &= ~(E | _)); var We = [ s, l, A, Oe, fe, Ie, _e, M, H, ae ], Ne = d.apply(n, We); return mw(s) && x5(Ne, We), Ne.placeholder = w, A5(Ne, s, l) } function lw(s) { var l = Xt[s]; return function (d, w) { if (d = zr(d), w = w == null ? 0 : En(He(w), 292), w && AB(d)) { var A = (st(d) + 'e').split('e'), F = l(A[0] + 'e' + ( + A[1] + w)); return A = (st(F) + 'e').split('e'), + (A[0] + 'e' + ( + A[1] - w)) } return l(d) } } var Are = yu && 1 / gp(new yu([, - 0])) [1] == re ? function (s) { return new yu(s) } : kw; function p5(s) { return function (l) { var d = Dn(l); return d == Se ? $y(l) : d == ht ? Hte(l) : Ite(l, s(l)) } } function eo(s, l, d, w, A, F, R, M) { var H = l & _; if (!H && typeof s != 'function') throw new Nr(a); var ae = w ? w.length : 0; if (ae || (l &= ~(B | k), w = A = n), R = R === n ? R : Zt(He(R), 0), M = M === n ? M : He(M), ae -= A ? A.length : 0, l & k) { var ue = w, fe = A; w = A = n } var _e = H ? n : dw(s), Oe = [ s, l, d, w, A, ue, fe, F, R, M ]; if (_e && zre(Oe, _e), s = Oe[0], l = Oe[1], d = Oe[2], w = Oe[3], A = Oe[4], M = Oe[9] = Oe[9] === n ? H ? 0 : s.length : Zt(Oe[9] - ae, 0), !M && l & (x | O) && (l &= ~(x | O)), !l || l == E) var Ie = Ere(s, l, d); else l == x || l == O ? Ie = Dre(s, l, M) : (l == B || l == (E | B)) && !A.length ? Ie = xre(s, l, d, w) : Ie = Lp.apply(n, Oe); var We = _e ? GB : x5; return A5(We(Ie, Oe), s, l) } function g5(s, l, d, w) { return s === n || ni(s, vu[d]) && !ut.call(w, d) ? l : s } function m5(s, l, d, w, A, F) { return Rt(s) && Rt(l) && (F.set(l, s), Rp(s, l, n, m5, F), F.delete(l)), s } function Sre(s) { return xc(s) ? n : s } function v5(s, l, d, w, A, F) { var R = d & v, M = s.length, H = l.length; if (M != H && !(R && H > M)) return !1; var ae = F.get(s), ue = F.get(l); if (ae && ue) return ae == l && ue == s; var fe = - 1, _e = !0, Oe = d & p ? new zs : n; for (F.set(s, l), F.set(l, s); ++fe < M; ) { var Ie = s[fe], We = l[fe]; if (w) var Ne = R ? w(We, Ie, fe, l, s, F) : w(Ie, We, fe, s, l, F); if (Ne !== n) { if (Ne) continue; _e = !1; break } if (Oe) { if (!Ry(l, function (Ge, Xe) { if (!fc(Oe, Xe) && (Ie === Ge || A(Ie, Ge, d, w, F))) return Oe.push(Xe) })) { _e = !1; break } } else if (!(Ie === We || A(Ie, We, d, w, F))) { _e = !1; break } } return F.delete(s), F.delete(l), _e } function Ore(s, l, d, w, A, F, R) { switch (d) { case Je: if (s.byteLength != l.byteLength || s.byteOffset != l.byteOffset) return !1; s = s.buffer, l = l.buffer; case it: return !(s.byteLength != l.byteLength || !F(new _p(s), new _p(l))); case Q: case ge: case Re: return ni( + s, + l); case Pe: return s.name == l.name && s.message == l.message; case At: case rt: return s == l + ''; case Se: var M = $y; case ht: var H = w & v; if (M || (M = gp), s.size != l.size && !H) return !1; var ae = R.get(s); if (ae) return ae == l; w |= p, R.set(s, l); var ue = v5(M(s), M(l), w, A, F, R); return R.delete(s), ue; case Kt: if (mc) return mc.call(s) == mc.call(l) } return !1 } function Fre(s, l, d, w, A, F) { var R = d & v, M = cw(s), H = M.length, ae = cw(l), ue = ae.length; if (H != ue && !R) return !1; for (var fe = H; fe--; ) { var _e = M[fe]; if (!(R ? _e in l : ut.call(l, _e))) return !1 } var Oe = F.get(s), Ie = F.get(l); if (Oe && Ie) return Oe == l && Ie == s; var We = !0; F.set(s, l), F.set(l, s); for (var Ne = R; ++fe < H; ) { _e = M[fe]; var Ge = s[_e], Xe = l[_e]; if (w) var gr = R ? w(Xe, Ge, _e, l, s, F) : w(Ge, Xe, _e, s, l, F); if (!(gr === n ? Ge === Xe || A(Ge, Xe, d, w, F) : gr)) { We = !1; break } Ne || (Ne = _e == 'constructor') } if (We && !Ne) { var In = s.constructor, mr = l.constructor; In != mr && 'constructor' in s && 'constructor' in l && !(typeof In == 'function' && In instanceof In && typeof mr == 'function' && mr instanceof mr) && (We = !1) } return F.delete(s), F.delete(l), We } function to(s) { return yw(E5(s, n, P5), s + '') } function cw(s) { return LB(s, an, pw) } function fw(s) { return LB(s, qn, y5) } var dw = Sp ? function (s) { return Sp.get(s) } : kw; function zp(s) { for (var l = s.name + '', d = wu[l], w = ut.call(wu, l) ? d.length : 0; w--; ) { var A = d[w], F = A.func; if (F == null || F == s) return A.name } return l } function Eu(s) { var l = ut.call(S, 'placeholder') ? S : s; return l.placeholder } function Te() { var s = S.iteratee || Fw; return s = s === Fw ? jB : s, arguments.length ? s(arguments[0], arguments[1]) : s } function Up(s, l) { var d = s.__data__; return Lre(l) ? d[typeof l == 'string' ? 'string' : 'hash'] : d.map } function hw(s) { for (var l = an(s), d = l.length; d--; ) { var w = l[d], A = s[w]; l[d] = [ w, A, _5(A) ] } return l } function Ws(s, l) { var d = jte(s, l); return $B(d) ? d : n } function Bre(s) { var l = ut.call(s, $s), d = s[$s]; try { s[$s] = n; var w = !0 } catch { } var A = wp.call(s); return w && (l ? s[$s] = d : delete s[$s]), A } var pw = zy ? function (s) { return s == null ? [ ] : (s = pt(s), Wo(zy(s), function (l) { return DB.call(s, l) })) } : Pw, y5 = zy ? function (s) { for (var l = [ ]; s; ) Vo(l, pw(s)), s = Cp(s); return l } : Pw, Dn = Rn; (Uy && Dn(new Uy(new ArrayBuffer(1))) != Je || hc && Dn(new hc) != Se || Hy && Dn(Hy.resolve()) != ct || yu && Dn(new yu) != ht || pc && Dn(new pc) != be) && (Dn = function (s) { var l = Rn(s), d = l == ke ? s.constructor : n, w = d ? Vs(d) : ''; if (w) switch (w) { case dne: return Je; case hne: return Se; case pne: return ct; case gne: return ht; case mne: return be } return l }); function kre(s, l, d) { for (var w = - 1, A = d.length; ++w < A; ) { var F = d[w], R = F.size; switch (F.type) { case 'drop': s += R; break; case 'dropRight': l -= R; break; case 'take': l = En(l, s + R); break; case 'takeRight': s = Zt(s, l - R); break } } return { start: s, end: l } } function Pre(s) { var l = s.match(Mee); return l ? l[1].split($ee) : [ ] } function w5(s, l, d) { l = Yo(l, s); for (var w = - 1, A = l.length, F = !1; ++w < A; ) { var R = xi(l[w]); if (!(F = s != null && d(s, R))) break; s = s[R] } return F || ++w != A ? F : (A = s == null ? 0 : s.length, !!A && Qp(A) && no(R, A) && (ze(s) || Ks(s))) } function Rre(s) { var l = s.length, d = new s.constructor(l); return l && typeof s[0] == 'string' && ut.call(s, 'index') && (d.index = s.index, d.input = s.input), d } function b5(s) { return typeof s.constructor == 'function' && !Ec(s) ? bu(Cp(s)) : { } } function Tre(s, l, d) { var w = s.constructor; switch (l) { case it: return aw(s); case Q: case ge: return new w( + s); case Je: return vre(s, d); case qt: case sn: case pn: case cr: case Pr: case Rr: case Gi: case Qi: case Yi: return n5(s, d); case Se: return new w; case Re: case rt: return new w(s); case At: return yre(s); case ht: return new w; case Kt: return wre(s) } } function Ire(s, l) { var d = l.length; if (!d) return s; var w = d - 1; return l[w] = (d > 1 ? '& ' : '') + l[w], l = l.join(d > 2 ? ', ' : ' '), s.replace(Lee, `{ /* [wrapped with ` + l + `] */ `) } function Nre(s) { return ze(s) || Ks(s) || !!(xB && s && s[xB]) } function no(s, l) { var d = typeof s; return l = l ?? V, !!l && (d == 'number' || d != 'symbol' && Gee.test(s)) && s > - 1 && s % 1 == 0 && s < l } function Tn(s, l, d) { if (!Rt(d)) return !1; var w = typeof l; return (w == 'number' ? Kn(d) && no(l, d.length) : w == 'string' && l in d) ? ni(d[l], s) : !1 } function gw(s, l) { if (ze(s)) return !1; var d = typeof s; return d == 'number' || d == 'symbol' || d == 'boolean' || s == null || pr(s) ? !0 : Ree.test(s) || !Pee.test(s) || l != null && s in pt(l) } function Lre(s) { var l = typeof s; return l == 'string' || l == 'number' || l == 'symbol' || l == 'boolean' ? s !== '__proto__' : s === null } function mw(s) { var l = zp(s), d = S[l]; if (typeof d != 'function' || !(l in Ye.prototype)) return !1; if (s === d) return !0; var w = dw(d); return !!w && s === w[0] } function Mre(s) { return !!_B && _B in s } var $re = vp ? ro : Rw; function Ec(s) { var l = s && s.constructor, d = typeof l == 'function' && l.prototype || vu; return s === d } function _5(s) { return s === s && !Rt(s) } function C5(s, l) { return function (d) { return d == null ? !1 : d[s] === l && (l !== n || s in pt(d)) } } function jre(s) { var l = qp(s, function (w) { return d.size === f && d.clear(), w }), d = l.cache; return l } function zre(s, l) { var d = s[1], w = l[1], A = d | w, F = A < (E | _ | P), R = w == P && d == x || w == P && d == I && s[7].length <= l[8] || w == (P | I) && l[7].length <= l[8] && d == x; if (!(F || R)) return s; w & E && (s[2] = l[2], A |= d & E ? 0 : b); var M = l[3]; if (M) { var H = s[3]; s[3] = H ? i5(H, M, l[4]) : M, s[4] = H ? Ko(s[3], h) : l[4] } return M = l[5], M && (H = s[5], s[5] = H ? o5(H, M, l[6]) : M, s[6] = H ? Ko(s[5], h) : l[6]), M = l[7], M && (s[7] = M), w & P && (s[8] = s[8] == null ? l[8] : En(s[8], l[8])), s[9] == null && (s[9] = l[9]), s[0] = l[0], s[1] = A, s } function Ure(s) { var l = [ ]; if (s != null) for (var d in pt(s)) l.push(d); return l } function Hre(s) { return wp.call(s) } function E5(s, l, d) { return l = Zt(l === n ? s.length - 1 : l, 0), function () { for (var w = arguments, A = - 1, F = Zt(w.length - l, 0), R = Z(F); ++A < F; ) R[A] = w[l + A]; A = - 1; for (var M = Z(l + 1); ++A < l; ) M[A] = w[A]; return M[l] = d(R), fr(s, this, M) } } function D5(s, l) { return l.length < 2 ? s : Hs(s, $r(l, 0, - 1)) } function Wre(s, l) { for (var d = s.length, w = En(l.length, d), A = Vn(s); w--; ) { var F = l[w]; s[w] = no(F, d) ? A[F] : n } return s } function vw(s, l) { if (!(l === 'constructor' && typeof s[l] == 'function') && l != '__proto__') return s[l] } var x5 = S5(GB), Dc = one || function (s, l) { return gn.setTimeout(s, l) }, yw = S5(hre); function A5(s, l, d) { var w = l + ''; return yw(s, Ire(w, Vre(Pre(w), d))) } function S5(s) { var l = 0, d = 0; return function () { var w = lne(), A = U - (w - d); if (d = w, A > 0) { if (++l >= $) return arguments[0] } else l = 0; return s.apply(n, arguments) } } function Hp(s, l) { var d = - 1, w = s.length, A = w - 1; for (l = l === n ? w : l; ++d < l; ) { var F = ew(d, A), R = s[F]; s[F] = s[d], s[d] = R } return s.length = l, s } var O5 = jre(function (s) { var l = [ ]; return s.charCodeAt(0) === 46 && l.push(''), s.replace(Tee, function (d, w, A, F) { l.push(A ? F.replace(Uee, '$1') : w || d) }), l }); function xi(s) { if (typeof s == 'string' || pr(s)) return s; var l = s + ''; return l == '0' && 1 / s == - re ? '-0' : l } function Vs(s) { if (s != null) { try { return yp.call(s) } catch { } try { return s + '' } catch { } } return '' } function Vre(s, l) { return Ir(Ce, function (d) { var w = '_.' + d[0]; l & d[1] && !hp(s, w) && s.push(w) }), s.sort() } function F5(s) { if (s instanceof Ye) return s.clone(); var l = new Lr(s.__wrapped__, s.__chain__); return l.__actions__ = Vn(s.__actions__), l.__index__ = s.__index__, l.__values__ = s.__values__, l } function Kre(s, l, d) { (d ? Tn(s, l, d) : l === n) ? l = 1 : l = Zt(He(l), 0); var w = s == null ? 0 : s.length; if (!w || l < 1) return []; for (var A = 0, F = 0, R = Z(xp(w / l)); A < w; ) R[F++] = $r(s, A, A += l); return R } function qre(s) { for (var l = - 1, d = s == null ? 0 : s.length, w = 0, A = [ ]; ++l < d; ) { var F = s[l]; F && (A[w++] = F) } return A } function Gre() { var s = arguments.length; if (!s) return []; for (var l = Z(s - 1), d = arguments[0], w = s; w--; ) l[w - 1] = arguments[w]; return Vo(ze(d) ? Vn(d) : [ d ], mn(l, 1)) } var Qre = Ke(function (s, l) { return Ht(s) ? yc(s, mn(l, 1, Ht, !0)) : [ ] }), Yre = Ke(function (s, l) { var d = jr(l); return Ht(d) && (d = n), Ht(s) ? yc(s, mn(l, 1, Ht, !0), Te(d, 2)) : [ ] }), Jre = Ke(function (s, l) { var d = jr(l); return Ht(d) && (d = n), Ht(s) ? yc(s, mn(l, 1, Ht, !0), n, d) : [ ] }); function Xre(s, l, d) { var w = s == null ? 0 : s.length; return w ? (l = d || l === n ? 1 : He(l), $r(s, l < 0 ? 0 : l, w)) : [ ] } function Zre(s, l, d) { var w = s == null ? 0 : s.length; return w ? (l = d || l === n ? 1 : He(l), l = w - l, $r(s, 0, l < 0 ? 0 : l)) : [ ] } function eie(s, l) { return s && s.length ? Ip(s, Te(l, 3), !0, !0) : [ ] } function tie(s, l) { return s && s.length ? Ip(s, Te(l, 3), !0) : [ ] } function nie(s, l, d, w) { var A = s == null ? 0 : s.length; return A ? (d && typeof d != 'number' && Tn(s, l, d) && (d = 0, w = A), Gne(s, l, d, w)) : [ ] } function B5(s, l, d) { var w = s == null ? 0 : s.length; if (!w) return - 1; var A = d == null ? 0 : He(d); return A < 0 && (A = Zt(w + A, 0)), pp(s, Te(l, 3), A) } function k5(s, l, d) { var w = s == null ? 0 : s.length; if (!w) return - 1; var A = w - 1; return d !== n && (A = He(d), A = d < 0 ? Zt(w + A, 0) : En(A, w - 1)), pp(s, Te(l, 3), A, !0) } function P5(s) { var l = s == null ? 0 : s.length; return l ? mn(s, 1) : [ ] } function rie(s) { var l = s == null ? 0 : s.length; return l ? mn(s, re) : [ ] } function iie(s, l) { var d = s == null ? 0 : s.length; return d ? (l = l === n ? 1 : He(l), mn(s, l)) : [ ] } function oie(s) { for (var l = - 1, d = s == null ? 0 : s.length, w = { }; ++l < d; ) { var A = s[l]; w[A[0]] = A[1] } return w } function R5(s) { return s && s.length ? s[0] : n } function sie(s, l, d) { var w = s == null ? 0 : s.length; if (!w) return - 1; var A = d == null ? 0 : He(d); return A < 0 && (A = Zt(w + A, 0)), hu(s, l, A) } function aie(s) { var l = s == null ? 0 : s.length; return l ? $r(s, 0, - 1) : [ ] } var uie = Ke(function (s) { var l = St(s, ow); return l.length && l[0] === s[0] ? Qy(l) : [ ] }), lie = Ke(function (s) { var l = jr(s), d = St(s, ow); return l === jr(d) ? l = n : d.pop(), d.length && d[0] === s[0] ? Qy(d, Te(l, 2)) : [ ] }), cie = Ke(function (s) { var l = jr(s), d = St(s, ow); return l = typeof l == 'function' ? l : n, l && d.pop(), d.length && d[0] === s[0] ? Qy(d, n, l) : [ ] }); function fie(s, l) { return s == null ? '' : ane.call(s, l) } function jr(s) { var l = s == null ? 0 : s.length; return l ? s[l - 1] : n } function die(s, l, d) { var w = s == null ? 0 : s.length; if (!w) return - 1; var A = w; return d !== n && (A = He(d), A = A < 0 ? Zt(w + A, 0) : En(A, w - 1)), l === l ? Vte(s, l, A) : pp(s, hB, A, !0) } function hie(s, l) { return s && s.length ? WB(s, He(l)) : n } var pie = Ke(T5); function T5(s, l) { return s && s.length && l && l.length ? Zy(s, l) : s } function gie(s, l, d) { return s && s.length && l && l.length ? Zy(s, l, Te(d, 2)) : s } function mie(s, l, d) { return s && s.length && l && l.length ? Zy(s, l, n, d) : s } var vie = to(function (s, l) { var d = s == null ? 0 : s.length, w = Vy(s, l); return qB(s, St(l, function (A) { return no(A, d) ? + A : A }).sort(r5)), w }); function yie(s, l) { var d = [ ]; if (!(s && s.length)) return d; var w = - 1, A = [ ], F = s.length; for (l = Te(l, 3); ++w < F; ) { var R = s[w]; l(R, w, s) && (d.push(R), A.push(w)) } return qB(s, A), d } function ww(s) { return s == null ? s : fne.call(s) } function wie(s, l, d) { var w = s == null ? 0 : s.length; return w ? (d && typeof d != 'number' && Tn(s, l, d) ? (l = 0, d = w) : (l = l == null ? 0 : He(l), d = d === n ? w : He(d)), $r(s, l, d)) : [ ] } function bie(s, l) { return Tp(s, l) } function _ie(s, l, d) { return nw(s, l, Te(d, 2)) } function Cie(s, l) { var d = s == null ? 0 : s.length; if (d) { var w = Tp(s, l); if (w < d && ni(s[w], l)) return w } return - 1 } function Eie(s, l) { return Tp(s, l, !0) } function Die(s, l, d) { return nw(s, l, Te(d, 2), !0) } function xie(s, l) { var d = s == null ? 0 : s.length; if (d) { var w = Tp(s, l, !0) - 1; if (ni(s[w], l)) return w } return - 1 } function Aie(s) { return s && s.length ? QB(s) : [ ] } function Sie(s, l) { return s && s.length ? QB(s, Te(l, 2)) : [ ] } function Oie(s) { var l = s == null ? 0 : s.length; return l ? $r(s, 1, l) : [ ] } function Fie(s, l, d) { return s && s.length ? (l = d || l === n ? 1 : He(l), $r(s, 0, l < 0 ? 0 : l)) : [ ] } function Bie(s, l, d) { var w = s == null ? 0 : s.length; return w ? (l = d || l === n ? 1 : He(l), l = w - l, $r(s, l < 0 ? 0 : l, w)) : [ ] } function kie(s, l) { return s && s.length ? Ip(s, Te(l, 3), !1, !0) : [ ] } function Pie(s, l) { return s && s.length ? Ip(s, Te(l, 3)) : [ ] } var Rie = Ke(function (s) { return Qo(mn(s, 1, Ht, !0)) }), Tie = Ke(function (s) { var l = jr(s); return Ht(l) && (l = n), Qo(mn(s, 1, Ht, !0), Te(l, 2)) }), Iie = Ke(function (s) { var l = jr(s); return l = typeof l == 'function' ? l : n, Qo(mn(s, 1, Ht, !0), n, l) }); function Nie(s) { return s && s.length ? Qo(s) : [ ] } function Lie(s, l) { return s && s.length ? Qo(s, Te(l, 2)) : [ ] } function Mie(s, l) { return l = typeof l == 'function' ? l : n, s && s.length ? Qo(s, n, l) : [ ] } function bw(s) { if (!(s && s.length)) return []; var l = 0; return s = Wo(s, function (d) { if (Ht(d)) return l = Zt(d.length, l), !0 }), Ly(l, function (d) { return St(s, Ty(d)) }) } function I5(s, l) { if (!(s && s.length)) return []; var d = bw(s); return l == null ? d : St(d, function (w) { return fr(l, n, w) }) } var $ie = Ke(function (s, l) { return Ht(s) ? yc(s, l) : [ ] }), jie = Ke(function (s) { return iw(Wo(s, Ht)) }), zie = Ke(function (s) { var l = jr(s); return Ht(l) && (l = n), iw(Wo(s, Ht), Te(l, 2)) }), Uie = Ke(function (s) { var l = jr(s); return l = typeof l == 'function' ? l : n, iw(Wo(s, Ht), n, l) }), Hie = Ke(bw); function Wie(s, l) { return ZB(s || [ ], l || [ ], vc) } function Vie(s, l) { return ZB(s || [ ], l || [ ], _c) } var Kie = Ke(function (s) { var l = s.length, d = l > 1 ? s[l - 1] : n; return d = typeof d == 'function' ? (s.pop(), d) : n, I5(s, d) }); function N5(s) { var l = S(s); return l.__chain__ = !0, l } function qie(s, l) { return l(s), s } function Wp(s, l) { return l(s) } var Gie = to(function (s) { var l = s.length, d = l ? s[0] : 0, w = this.__wrapped__, A = function (F) { return Vy(F, s) }; return l > 1 || this.__actions__.length || !(w instanceof Ye) || !no(d) ? this.thru(A) : (w = w.slice(d, + d + (l ? 1 : 0)), w.__actions__.push({ func: Wp, args: [ A ], thisArg: n }), new Lr(w, this.__chain__).thru(function (F) { return l && !F.length && F.push(n), F })) }); function Qie() { return N5(this) } function Yie() { return new Lr(this.value(), this.__chain__) } function Jie() { this.__values__ === n && (this.__values__ = Y5(this.value())); var s = this.__index__ >= this.__values__.length, l = s ? n : this.__values__[this.__index__++]; return { done: s, value: l } } function Xie() { return this } function Zie(s) { for (var l, d = this; d instanceof Fp; ) { var w = F5(d); w.__index__ = 0, w.__values__ = n, l ? A.__wrapped__ = w : l = w; var A = w; d = d.__wrapped__ } return A.__wrapped__ = s, l } function eoe() { var s = this.__wrapped__; if (s instanceof Ye) { var l = s; return this.__actions__.length && (l = new Ye(this)), l = l.reverse(), l.__actions__.push({ func: Wp, args: [ ww ], thisArg: n }), new Lr(l, this.__chain__) } return this.thru(ww) } function toe() { return XB(this.__wrapped__, this.__actions__) } var noe = Np(function (s, l, d) { ut.call(s, d) ? ++s[d] : Zi(s, d, 1) }); function roe(s, l, d) { var w = ze(s) ? fB : qne; return d && Tn(s, l, d) && (l = n), w(s, Te(l, 3)) } function ioe(s, l) { var d = ze(s) ? Wo : IB; return d(s, Te(l, 3)) } var ooe = l5(B5), soe = l5(k5); function aoe(s, l) { return mn(Vp(s, l), 1) } function uoe(s, l) { return mn(Vp(s, l), re) } function loe(s, l, d) { return d = d === n ? 1 : He(d), mn(Vp(s, l), d) } function L5(s, l) { var d = ze(s) ? Ir : Go; return d(s, Te(l, 3)) } function M5(s, l) { var d = ze(s) ? Ote : TB; return d(s, Te(l, 3)) } var coe = Np(function (s, l, d) { ut.call(s, d) ? s[d].push(l) : Zi(s, d, [ l ]) }); function foe(s, l, d, w) { s = Kn(s) ? s : xu(s), d = d && !w ? He(d) : 0; var A = s.length; return d < 0 && (d = Zt(A + d, 0)), Yp(s) ? d <= A && s.indexOf(l, d) > - 1 : !!A && hu(s, l, d) > - 1 } var doe = Ke(function (s, l, d) { var w = - 1, A = typeof l == 'function', F = Kn(s) ? Z(s.length) : [ ]; return Go(s, function (R) { F[++w] = A ? fr(l, R, d) : wc(R, l, d) }), F }), hoe = Np(function (s, l, d) { Zi(s, d, l) }); function Vp(s, l) { var d = ze(s) ? St : zB; return d(s, Te(l, 3)) } function poe(s, l, d, w) { return s == null ? [ ] : (ze(l) || (l = l == null ? [ ] : [ l ]), d = w ? n : d, ze(d) || (d = d == null ? [ ] : [ d ]), VB(s, l, d)) } var goe = Np(function (s, l, d) { s[d ? 0 : 1].push(l) }, function () { return [[], [ ]] }); function moe(s, l, d) { var w = ze(s) ? Py : gB, A = arguments.length < 3; return w(s, Te(l, 4), d, A, Go) } function voe(s, l, d) { var w = ze(s) ? Fte : gB, A = arguments.length < 3; return w(s, Te(l, 4), d, A, TB) } function yoe(s, l) { var d = ze(s) ? Wo : IB; return d(s, Gp(Te(l, 3))) } function woe(s) { var l = ze(s) ? BB : fre; return l(s) } function boe(s, l, d) { (d ? Tn(s, l, d) : l === n) ? l = 1 : l = He(l); var w = ze(s) ? Une : dre; return w(s, l) } function _oe(s) { var l = ze(s) ? Hne : pre; return l(s) } function Coe(s) { if (s == null) return 0; if (Kn(s)) return Yp(s) ? gu(s) : s.length; var l = Dn(s); return l == Se || l == ht ? s.size : Jy(s).length } function Eoe(s, l, d) { var w = ze(s) ? Ry : gre; return d && Tn(s, l, d) && (l = n), w(s, Te(l, 3)) } var Doe = Ke(function (s, l) { if (s == null) return []; var d = l.length; return d > 1 && Tn(s, l[0], l[1]) ? l = [ ] : d > 2 && Tn(l[0], l[1], l[2]) && (l = [ l[0] ]), VB(s, mn(l, 1), [ ]) }), Kp = ine || function () { return gn.Date.now() }; function xoe(s, l) { if (typeof l != 'function') throw new Nr(a); return s = He(s), function () { if (--s < 1) return l.apply(this, arguments) } } function $5(s, l, d) { return l = d ? n : l, l = s && l == null ? s.length : l, eo(s, P, n, n, n, n, l) } function j5(s, l) { var d; if (typeof l != 'function') throw new Nr(a); return s = He(s), function () { return --s > 0 && (d = l.apply(this, arguments)), s <= 1 && (l = n), d } } var _w = Ke(function (s, l, d) { var w = E; if (d.length) { var A = Ko(d, Eu(_w)); w |= B } return eo(s, w, l, d, A) }), z5 = Ke(function (s, l, d) { var w = E | _; if (d.length) { var A = Ko(d, Eu(z5)); w |= B } return eo(l, w, s, d, A) }); function U5(s, l, d) { l = d ? n : l; var w = eo(s, x, n, n, n, n, n, l); return w.placeholder = U5.placeholder, w } function H5(s, l, d) { l = d ? n : l; var w = eo(s, O, n, n, n, n, n, l); return w.placeholder = H5.placeholder, w } function W5(s, l, d) { var w, A, F, R, M, H, ae = 0, ue = !1, fe = !1, _e = !0; if (typeof s != 'function') throw new Nr(a); l = zr(l) || 0, Rt(d) && (ue = !!d.leading, fe = 'maxWait' in d, F = fe ? Zt(zr(d.maxWait) || 0, l) : F, _e = 'trailing' in d ? !!d.trailing : _e); function Oe(Wt) { var ri = w, oo = A; return w = A = n, ae = Wt, R = s.apply(oo, ri), R } function Ie(Wt) { return ae = Wt, M = Dc(Ge, l), ue ? Oe(Wt) : R } function We(Wt) { var ri = Wt - H, oo = Wt - ae, lk = l - ri; return fe ? En(lk, F - oo) : lk } function Ne(Wt) { var ri = Wt - H, oo = Wt - ae; return H === n || ri >= l || ri < 0 || fe && oo >= F } function Ge() { var Wt = Kp(); if (Ne(Wt)) return Xe(Wt); M = Dc(Ge, We(Wt)) } function Xe(Wt) { return M = n, _e && w ? Oe(Wt) : (w = A = n, R) } function gr() { M !== n && e5(M), ae = 0, w = H = A = M = n } function In() { return M === n ? R : Xe(Kp()) } function mr() { var Wt = Kp(), ri = Ne(Wt); if (w = arguments, A = this, H = Wt, ri) { if (M === n) return Ie(H); if (fe) return e5(M), M = Dc(Ge, l), Oe(H) } return M === n && (M = Dc(Ge, l)), R } return mr.cancel = gr, mr.flush = In, mr } var Aoe = Ke(function (s, l) { return RB(s, 1, l) }), Soe = Ke(function (s, l, d) { return RB(s, zr(l) || 0, d) }); function Ooe(s) { return eo(s, Y) } function qp(s, l) { if (typeof s != 'function' || l != null && typeof l != 'function') throw new Nr(a); var d = function () { var w = arguments, A = l ? l.apply(this, w) : w[0], F = d.cache; if (F.has(A)) return F.get(A); var R = s.apply(this, w); return d.cache = F.set(A, R) || F, R }; return d.cache = new (qp.Cache || Xi), d } qp.Cache = Xi; function Gp(s) { if (typeof s != 'function') throw new Nr(a); return function () { var l = arguments; switch (l.length) { case 0: return !s.call(this); case 1: return !s.call(this, l[0]); case 2: return !s.call(this, l[0], l[1]); case 3: return !s.call(this, l[0], l[1], l[2]) } return !s.apply(this, l) } } function Foe(s) { return j5(2, s) } var Boe = mre(function (s, l) { l = l.length == 1 && ze(l[0]) ? St(l[0], dr(Te())) : St(mn(l, 1), dr(Te())); var d = l.length; return Ke(function (w) { for (var A = - 1, F = En(w.length, d); ++A < F; ) w[A] = l[A].call(this, w[A]); return fr(s, this, w) }) }), Cw = Ke(function (s, l) { var d = Ko(l, Eu(Cw)); return eo(s, B, n, l, d) }), V5 = Ke(function (s, l) { var d = Ko(l, Eu(V5)); return eo(s, k, n, l, d) }), koe = to(function (s, l) { return eo(s, I, n, n, n, l) }); function Poe(s, l) { if (typeof s != 'function') throw new Nr(a); return l = l === n ? l : He(l), Ke(s, l) } function Roe(s, l) { if (typeof s != 'function') throw new Nr(a); return l = l == null ? 0 : Zt(He(l), 0), Ke(function (d) { var w = d[l], A = Jo(d, 0, l); return w && Vo(A, w), fr(s, this, A) }) } function Toe(s, l, d) { var w = !0, A = !0; if (typeof s != 'function') throw new Nr(a); return Rt(d) && (w = 'leading' in d ? !!d.leading : w, A = 'trailing' in d ? !!d.trailing : A), W5(s, l, { leading: w, maxWait: l, trailing: A }) } function Ioe(s) { return $5(s, 1) } function Noe(s, l) { return Cw(sw(l), s) } function Loe() { if (!arguments.length) return []; var s = arguments[0]; return ze(s) ? s : [ s ] } function Moe(s) { return Mr(s, y) } function $oe(s, l) { return l = typeof l == 'function' ? l : n, Mr(s, y, l) } function joe(s) { return Mr(s, g | y) } function zoe(s, l) { return l = typeof l == 'function' ? l : n, Mr(s, g | y, l) } function Uoe(s, l) { return l == null || PB(s, l, an(l)) } function ni(s, l) { return s === l || s !== s && l !== l } var Hoe = jp(Gy), Woe = jp(function (s, l) { return s >= l }), Ks = MB(function () { return arguments }()) ? MB : function (s) { return $t(s) && ut.call(s, 'callee') && !DB.call(s, 'callee') }, ze = Z.isArray, Voe = oB ? dr(oB) : Zne; function Kn(s) { return s != null && Qp(s.length) && !ro(s) } function Ht(s) { return $t(s) && Kn(s) } function Koe(s) { return s === !0 || s === !1 || $t(s) && Rn(s) == Q } var Xo = sne || Rw, qoe = sB ? dr(sB) : ere; function Goe(s) { return $t(s) && s.nodeType === 1 && !xc(s) } function Qoe(s) { if (s == null) return !0; if (Kn(s) && (ze(s) || typeof s == 'string' || typeof s.splice == 'function' || Xo(s) || Du(s) || Ks(s))) return !s.length; var l = Dn(s); if (l == Se || l == ht) return !s.size; if (Ec(s)) return !Jy(s).length; for (var d in s) if (ut.call(s, d)) return !1; return !0 } function Yoe(s, l) { return bc(s, l) } function Joe(s, l, d) { d = typeof d == 'function' ? d : n; var w = d ? d(s, l) : n; return w === n ? bc(s, l, n, d) : !!w } function Ew(s) { if (!$t(s)) return !1; var l = Rn(s); return l == Pe || l == he || typeof s.message == 'string' && typeof s.name == 'string' && !xc(s) } function Xoe(s) { return typeof s == 'number' && AB(s) } function ro(s) { if (!Rt(s)) return !1; var l = Rn(s); return l == me || l == Fe || l == J || l == Mt } function K5(s) { return typeof s == 'number' && s == He(s) } function Qp(s) { return typeof s == 'number' && s > - 1 && s % 1 == 0 && s <= V } function Rt(s) { var l = typeof s; return s != null && (l == 'object' || l == 'function') } function $t(s) { return s != null && typeof s == 'object' } var q5 = aB ? dr(aB) : nre; function Zoe(s, l) { return s === l || Yy(s, l, hw(l)) } function ese(s, l, d) { return d = typeof d == 'function' ? d : n, Yy(s, l, hw(l), d) } function tse(s) { return G5(s) && s != + s } function nse(s) { if ($re(s)) throw new $e(o); return $B(s) } function rse(s) { return s === null } function ise(s) { return s == null } function G5(s) { return typeof s == 'number' || $t(s) && Rn(s) == Re } function xc(s) { if (!$t(s) || Rn(s) != ke) return !1; var l = Cp(s); if (l === null) return !0; var d = ut.call(l, 'constructor') && l.constructor; return typeof d == 'function' && d instanceof d && yp.call(d) == ene } var Dw = uB ? dr(uB) : rre; function ose(s) { return K5(s) && s >= - V && s <= V } var Q5 = lB ? dr(lB) : ire; function Yp(s) { return typeof s == 'string' || !ze(s) && $t(s) && Rn(s) == rt } function pr(s) { return typeof s == 'symbol' || $t(s) && Rn(s) == Kt } var Du = cB ? dr(cB) : ore; function sse(s) { return s === n } function ase(s) { return $t(s) && Dn(s) == be } function use(s) { return $t(s) && Rn(s) == Ze } var lse = jp(Xy), cse = jp(function (s, l) { return s <= l }); function Y5(s) { if (!s) return []; if (Kn(s)) return Yp(s) ? ei(s) : Vn(s); if (dc && s[dc]) return Ute(s[dc]()); var l = Dn(s), d = l == Se ? $y : l == ht ? gp : xu; return d(s) } function io(s) { if (!s) return s === 0 ? s : 0; if (s = zr(s), s === re || s === - re) { var l = s < 0 ? - 1 : 1; return l * te } return s === s ? s : 0 } function He(s) { var l = io(s), d = l % 1; return l === l ? d ? l - d : l : 0 } function J5(s) { return s ? Us(He(s), 0, ce) : 0 } function zr(s) { if (typeof s == 'number') return s; if (pr(s)) return le; if (Rt(s)) { var l = typeof s.valueOf == 'function' ? s.valueOf() : s; s = Rt(l) ? l + '' : l } if (typeof s != 'string') return s === 0 ? s : + s; s = mB(s); var d = Vee.test(s); return d || qee.test(s) ? xte(s.slice(2), d ? 2 : 8) : Wee.test(s) ? le : + s } function X5(s) { return Di(s, qn(s)) } function fse(s) { return s ? Us(He(s), - V, V) : s === 0 ? s : 0 } function st(s) { return s == null ? '' : hr(s) } var dse = _u(function (s, l) { if (Ec(l) || Kn(l)) { Di(l, an(l), s); return } for (var d in l) ut.call(l, d) && vc(s, d, l[d]) }), Z5 = _u(function (s, l) { Di(l, qn(l), s) }), Jp = _u(function (s, l, d, w) { Di(l, qn(l), s, w) }), hse = _u(function (s, l, d, w) { Di(l, an(l), s, w) }), pse = to(Vy); function gse(s, l) { var d = bu(s); return l == null ? d : kB(d, l) } var mse = Ke(function (s, l) { s = pt(s); var d = - 1, w = l.length, A = w > 2 ? l[2] : n; for (A && Tn(l[0], l[1], A) && (w = 1); ++d < w; ) for (var F = l[d], R = qn(F), M = - 1, H = R.length; ++M < H; ) { var ae = R[M], ue = s[ae]; (ue === n || ni(ue, vu[ae]) && !ut.call(s, ae)) && (s[ae] = F[ae]) } return s }), vse = Ke(function (s) { return s.push(n, m5), fr(ek, n, s) }); function yse(s, l) { return dB(s, Te(l, 3), Ei) } function wse(s, l) { return dB(s, Te(l, 3), qy) } function bse(s, l) { return s == null ? s : Ky(s, Te(l, 3), qn) } function _se(s, l) { return s == null ? s : NB(s, Te(l, 3), qn) } function Cse(s, l) { return s && Ei(s, Te(l, 3)) } function Ese(s, l) { return s && qy(s, Te(l, 3)) } function Dse(s) { return s == null ? [ ] : Pp(s, an(s)) } function xse(s) { return s == null ? [ ] : Pp(s, qn(s)) } function xw(s, l, d) { var w = s == null ? n : Hs(s, l); return w === n ? d : w } function Ase(s, l) { return s != null && w5(s, l, Qne) } function Aw(s, l) { return s != null && w5(s, l, Yne) } var Sse = f5(function (s, l, d) { l != null && typeof l.toString != 'function' && (l = wp.call(l)), s[l] = d }, Ow(Gn)), Ose = f5(function (s, l, d) { l != null && typeof l.toString != 'function' && (l = wp.call(l)), ut.call(s, l) ? s[l].push(d) : s[l] = [ d ] }, Te), Fse = Ke(wc); function an(s) { return Kn(s) ? FB(s) : Jy(s) } function qn(s) { return Kn(s) ? FB(s, !0) : sre(s) } function Bse(s, l) { var d = { }; return l = Te(l, 3), Ei(s, function (w, A, F) { Zi(d, l(w, A, F), w) }), d } function kse(s, l) { var d = { }; return l = Te(l, 3), Ei(s, function (w, A, F) { Zi(d, A, l(w, A, F)) }), d } var Pse = _u(function (s, l, d) { Rp(s, l, d) }), ek = _u(function (s, l, d, w) { Rp(s, l, d, w) }), Rse = to(function (s, l) { var d = { }; if (s == null) return d; var w = !1; l = St(l, function (F) { return F = Yo(F, s), w || (w = F.length > 1), F }), Di(s, fw(s), d), w && (d = Mr(d, g | m | y, Sre)); for (var A = l.length; A--; ) rw(d, l[A]); return d }); function Tse(s, l) { return tk(s, Gp(Te(l))) } var Ise = to(function (s, l) { return s == null ? { } : ure(s, l) }); function tk(s, l) { if (s == null) return { }; var d = St(fw(s), function (w) { return [w] }); return l = Te(l), KB(s, d, function (w, A) { return l(w, A[0]) }) } function Nse(s, l, d) { l = Yo(l, s); var w = - 1, A = l.length; for (A || (A = 1, s = n); ++w < A; ) { var F = s == null ? n : s[xi(l[w])]; F === n && (w = A, F = d), s = ro(F) ? F.call(s) : F } return s } function Lse(s, l, d) { return s == null ? s : _c(s, l, d) } function Mse(s, l, d, w) { return w = typeof w == 'function' ? w : n, s == null ? s : _c(s, l, d, w) } var nk = p5(an), rk = p5(qn); function $se(s, l, d) { var w = ze(s), A = w || Xo(s) || Du(s); if (l = Te(l, 4), d == null) { var F = s && s.constructor; A ? d = w ? new F : [ ] : Rt(s) ? d = ro(F) ? bu(Cp(s)) : { } : d = { } } return (A ? Ir : Ei) (s, function (R, M, H) { return l(d, R, M, H) }), d } function jse(s, l) { return s == null ? !0 : rw(s, l) } function zse(s, l, d) { return s == null ? s : JB(s, l, sw(d)) } function Use(s, l, d, w) { return w = typeof w == 'function' ? w : n, s == null ? s : JB(s, l, sw(d), w) } function xu(s) { return s == null ? [ ] : My(s, an(s)) } function Hse(s) { return s == null ? [ ] : My(s, qn(s)) } function Wse(s, l, d) { return d === n && (d = l, l = n), d !== n && (d = zr(d), d = d === d ? d : 0), l !== n && (l = zr(l), l = l === l ? l : 0), Us(zr(s), l, d) } function Vse(s, l, d) { return l = io(l), d === n ? (d = l, l = 0) : d = io(d), s = zr(s), Jne(s, l, d) } function Kse(s, l, d) { if (d && typeof d != 'boolean' && Tn(s, l, d) && (l = d = n), d === n && (typeof l == 'boolean' ? (d = l, l = n) : typeof s == 'boolean' && (d = s, s = n)), s === n && l === n ? (s = 0, l = 1) : (s = io(s), l === n ? (l = s, s = 0) : l = io(l)), s > l) { var w = s; s = l, l = w } if (d || s % 1 || l % 1) { var A = SB(); return En(s + A * (l - s + Dte('1e-' + ((A + '').length - 1))), l) } return ew(s, l) } var qse = Cu(function (s, l, d) { return l = l.toLowerCase(), s + (d ? ik(l) : l) }); function ik(s) { return Sw(st(s).toLowerCase()) } function ok(s) { return s = st(s), s && s.replace(Qee, Lte).replace(pte, '') } function Gse(s, l, d) { s = st(s), l = hr(l); var w = s.length; d = d === n ? w : Us(He(d), 0, w); var A = d; return d -= l.length, d >= 0 && s.slice(d, A) == l } function Qse(s) { return s = st(s), s && Fee.test(s) ? s.replace(NF, Mte) : s } function Yse(s) { return s = st(s), s && Iee.test(s) ? s.replace(Cy, '\\$&') : s } var Jse = Cu(function (s, l, d) { return s + (d ? '-' : '') + l.toLowerCase() }), Xse = Cu(function (s, l, d) { return s + (d ? ' ' : '') + l.toLowerCase() }), Zse = u5('toLowerCase'); function eae(s, l, d) { s = st(s), l = He(l); var w = l ? gu(s) : 0; if (!l || w >= l) return s; var A = (l - w) / 2; return $p(Ap(A), d) + s + $p(xp(A), d) } function tae(s, l, d) { s = st(s), l = He(l); var w = l ? gu(s) : 0; return l && w < l ? s + $p(l - w, d) : s } function nae(s, l, d) { s = st(s), l = He(l); var w = l ? gu(s) : 0; return l && w < l ? $p(l - w, d) + s : s } function rae(s, l, d) { return d || l == null ? l = 0 : l && (l = + l), cne(st(s).replace(Ey, ''), l || 0) } function iae(s, l, d) { return (d ? Tn(s, l, d) : l === n) ? l = 1 : l = He(l), tw(st(s), l) } function oae() { var s = arguments, l = st(s[0]); return s.length < 3 ? l : l.replace(s[1], s[2]) } var sae = Cu(function (s, l, d) { return s + (d ? '_' : '') + l.toLowerCase() }); function aae(s, l, d) { return d && typeof d != 'number' && Tn(s, l, d) && (l = d = n), d = d === n ? ce : d >>> 0, d ? (s = st(s), s && (typeof l == 'string' || l != null && !Dw(l)) && (l = hr(l), !l && pu(s)) ? Jo(ei(s), 0, d) : s.split(l, d)) : [ ] } var uae = Cu(function (s, l, d) { return s + (d ? ' ' : '') + Sw(l) }); function lae(s, l, d) { return s = st(s), d = d == null ? 0 : Us(He(d), 0, s.length), l = hr(l), s.slice(d, d + l.length) == l } function cae(s, l, d) { var w = S.templateSettings; d && Tn(s, l, d) && (l = n), s = st(s), l = Jp({ }, l, w, g5); var A = Jp({ }, l.imports, w.imports, g5), F = an(A), R = My(A, F), M, H, ae = 0, ue = l.interpolate || cp, fe = '__p += \'', _e = jy((l.escape || cp).source + '|' + ue.source + '|' + (ue === LF ? Hee : cp).source + '|' + (l.evaluate || cp).source + '|$', 'g'), Oe = '//# sourceURL=' + (ut.call(l, 'sourceURL') ? (l.sourceURL + '').replace(/\s/g, ' ') : 'lodash.templateSources[' + ++wte + ']') + ` `; s.replace(_e, function (Ne, Ge, Xe, gr, In, mr) { return Xe || (Xe = gr), fe += s.slice(ae, mr).replace(Yee, $te), Ge && (M = !0, fe += `' + __e( ` + Ge + `) + ' `), In && (H = !0, fe += `'; ` + In + `; __p += ' `), Xe && (fe += `' + ((__t = ( ` + Xe + `)) == null ? '' : __t) + ' `), ae = mr + Ne.length, Ne }), fe += `'; `; var Ie = ut.call(l, 'variable') && l.variable; if (!Ie) fe = `with (obj) { ` + fe + ` } `; else if (zee.test(Ie)) throw new $e(u); fe = (H ? fe.replace(Ls, '') : fe).replace(cc, '$1').replace(_y, '$1;'), fe = 'function(' + (Ie || 'obj') + `) { ` + (Ie ? '' : `obj || (obj = {}); `) + 'var __t, __p = \'\'' + (M ? ', __e = _.escape' : '') + (H ? `, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } ` : `; `) + fe + `return __p } `; var We = ak(function () { return ot(F, Oe + 'return ' + fe).apply(n, R) }); if (We.source = fe, Ew(We)) throw We; return We } function fae(s) { return st(s).toLowerCase() } function dae(s) { return st(s).toUpperCase() } function hae(s, l, d) { if (s = st(s), s && (d || l === n)) return mB(s); if (!s || !(l = hr(l))) return s; var w = ei(s), A = ei(l), F = vB(w, A), R = yB(w, A) + 1; return Jo(w, F, R).join('') } function pae(s, l, d) { if (s = st(s), s && (d || l === n)) return s.slice(0, bB(s) + 1); if (!s || !(l = hr(l))) return s; var w = ei(s), A = yB(w, ei(l)) + 1; return Jo(w, 0, A).join('') } function gae(s, l, d) { if (s = st(s), s && (d || l === n)) return s.replace(Ey, ''); if (!s || !(l = hr(l))) return s; var w = ei(s), A = vB(w, ei(l)); return Jo(w, A).join('') } function mae(s, l) { var d = j, w = X; if (Rt(l)) { var A = 'separator' in l ? l.separator : A; d = 'length' in l ? He(l.length) : d, w = 'omission' in l ? hr(l.omission) : w } s = st(s); var F = s.length; if (pu(s)) { var R = ei(s); F = R.length } if (d >= F) return s; var M = d - gu(w); if (M < 1) return w; var H = R ? Jo(R, 0, M).join('') : s.slice(0, M); if (A === n) return H + w; if (R && (M += H.length - M), Dw(A)) { if (s.slice(M).search(A)) { var ae, ue = H; for (A.global || (A = jy(A.source, st(MF.exec(A)) + 'g')), A.lastIndex = 0; ae = A.exec(ue); ) var fe = ae.index; H = H.slice(0, fe === n ? M : fe) } } else if (s.indexOf(hr(A), M) != M) { var _e = H.lastIndexOf(A); _e > - 1 && (H = H.slice(0, _e)) } return H + w } function vae(s) { return s = st(s), s && Oee.test(s) ? s.replace(IF, Kte) : s } var yae = Cu(function (s, l, d) { return s + (d ? ' ' : '') + l.toUpperCase() }), Sw = u5('toUpperCase'); function sk(s, l, d) { return s = st(s), l = d ? n : l, l === n ? zte(s) ? Qte(s) : Pte(s) : s.match(l) || [ ] } var ak = Ke(function (s, l) { try { return fr(s, n, l) } catch (d) { return Ew(d) ? d : new $e(d) } }), wae = to(function (s, l) { return Ir(l, function (d) { d = xi(d), Zi(s, d, _w(s[d], s)) }), s }); function bae(s) { var l = s == null ? 0 : s.length, d = Te(); return s = l ? St(s, function (w) { if (typeof w[1] != 'function') throw new Nr(a); return [d(w[0]), w[1]] }) : [ ], Ke(function (w) { for (var A = - 1; ++A < l; ) { var F = s[A]; if (fr(F[0], this, w)) return fr(F[1], this, w) } }) } function _ae(s) { return Kne(Mr(s, g)) } function Ow(s) { return function () { return s } } function Cae(s, l) { return s == null || s !== s ? l : s } var Eae = c5(), Dae = c5(!0); function Gn(s) { return s } function Fw(s) { return jB(typeof s == 'function' ? s : Mr(s, g)) } function xae(s) { return UB(Mr(s, g)) } function Aae(s, l) { return HB(s, Mr(l, g)) } var Sae = Ke(function (s, l) { return function (d) { return wc(d, s, l) } }), Oae = Ke(function (s, l) { return function (d) { return wc(s, d, l) } }); function Bw(s, l, d) { var w = an(l), A = Pp(l, w); d == null && !(Rt(l) && (A.length || !w.length)) && (d = l, l = s, s = this, A = Pp(l, an(l))); var F = !(Rt(d) && 'chain' in d) || !!d.chain, R = ro(s); return Ir(A, function (M) { var H = l[M]; s[M] = H, R && (s.prototype[M] = function () { var ae = this.__chain__; if (F || ae) { var ue = s(this.__wrapped__), fe = ue.__actions__ = Vn(this.__actions__); return fe.push({ func: H, args: arguments, thisArg: s }), ue.__chain__ = ae, ue } return H.apply(s, Vo([this.value()], arguments)) }) }), s } function Fae() { return gn._ === this && (gn._ = tne), this } function kw() { } function Bae(s) { return s = He(s), Ke(function (l) { return WB(l, s) }) } var kae = uw(St), Pae = uw(fB), Rae = uw(Ry); function uk(s) { return gw(s) ? Ty(xi(s)) : lre(s) } function Tae(s) { return function (l) { return s == null ? n : Hs(s, l) } } var Iae = d5(), Nae = d5(!0); function Pw() { return [] } function Rw() { return !1 } function Lae() { return { } } function Mae() { return '' } function $ae() { return !0 } function jae(s, l) { if (s = He(s), s < 1 || s > V) return []; var d = ce, w = En(s, ce); l = Te(l), s -= ce; for (var A = Ly(w, l); ++d < s; ) l(d); return A } function zae(s) { return ze(s) ? St(s, xi) : pr(s) ? [ s ] : Vn(O5(st(s))) } function Uae(s) { var l = ++Zte; return st(s) + l } var Hae = Mp(function (s, l) { return s + l }, 0), Wae = lw('ceil'), Vae = Mp(function (s, l) { return s / l }, 1), Kae = lw('floor'); function qae(s) { return s && s.length ? kp(s, Gn, Gy) : n } function Gae(s, l) { return s && s.length ? kp(s, Te(l, 2), Gy) : n } function Qae(s) { return pB(s, Gn) } function Yae(s, l) { return pB(s, Te(l, 2)) } function Jae(s) { return s && s.length ? kp(s, Gn, Xy) : n } function Xae(s, l) { return s && s.length ? kp(s, Te(l, 2), Xy) : n } var Zae = Mp(function (s, l) { return s * l }, 1), eue = lw('round'), tue = Mp(function (s, l) { return s - l }, 0); function nue(s) { return s && s.length ? Ny(s, Gn) : 0 } function rue(s, l) { return s && s.length ? Ny(s, Te(l, 2)) : 0 } return S.after = xoe, S.ary = $5, S.assign = dse, S.assignIn = Z5, S.assignInWith = Jp, S.assignWith = hse, S.at = pse, S.before = j5, S.bind = _w, S.bindAll = wae, S.bindKey = z5, S.castArray = Loe, S.chain = N5, S.chunk = Kre, S.compact = qre, S.concat = Gre, S.cond = bae, S.conforms = _ae, S.constant = Ow, S.countBy = noe, S.create = gse, S.curry = U5, S.curryRight = H5, S.debounce = W5, S.defaults = mse, S.defaultsDeep = vse, S.defer = Aoe, S.delay = Soe, S.difference = Qre, S.differenceBy = Yre, S.differenceWith = Jre, S.drop = Xre, S.dropRight = Zre, S.dropRightWhile = eie, S.dropWhile = tie, S.fill = nie, S.filter = ioe, S.flatMap = aoe, S.flatMapDeep = uoe, S.flatMapDepth = loe, S.flatten = P5, S.flattenDeep = rie, S.flattenDepth = iie, S.flip = Ooe, S.flow = Eae, S.flowRight = Dae, S.fromPairs = oie, S.functions = Dse, S.functionsIn = xse, S.groupBy = coe, S.initial = aie, S.intersection = uie, S.intersectionBy = lie, S.intersectionWith = cie, S.invert = Sse, S.invertBy = Ose, S.invokeMap = doe, S.iteratee = Fw, S.keyBy = hoe, S.keys = an, S.keysIn = qn, S.map = Vp, S.mapKeys = Bse, S.mapValues = kse, S.matches = xae, S.matchesProperty = Aae, S.memoize = qp, S.merge = Pse, S.mergeWith = ek, S.method = Sae, S.methodOf = Oae, S.mixin = Bw, S.negate = Gp, S.nthArg = Bae, S.omit = Rse, S.omitBy = Tse, S.once = Foe, S.orderBy = poe, S.over = kae, S.overArgs = Boe, S.overEvery = Pae, S.overSome = Rae, S.partial = Cw, S.partialRight = V5, S.partition = goe, S.pick = Ise, S.pickBy = tk, S.property = uk, S.propertyOf = Tae, S.pull = pie, S.pullAll = T5, S.pullAllBy = gie, S.pullAllWith = mie, S.pullAt = vie, S.range = Iae, S.rangeRight = Nae, S.rearg = koe, S.reject = yoe, S.remove = yie, S.rest = Poe, S.reverse = ww, S.sampleSize = boe, S.set = Lse, S.setWith = Mse, S.shuffle = _oe, S.slice = wie, S.sortBy = Doe, S.sortedUniq = Aie, S.sortedUniqBy = Sie, S.split = aae, S.spread = Roe, S.tail = Oie, S.take = Fie, S.takeRight = Bie, S.takeRightWhile = kie, S.takeWhile = Pie, S.tap = qie, S.throttle = Toe, S.thru = Wp, S.toArray = Y5, S.toPairs = nk, S.toPairsIn = rk, S.toPath = zae, S.toPlainObject = X5, S.transform = $se, S.unary = Ioe, S.union = Rie, S.unionBy = Tie, S.unionWith = Iie, S.uniq = Nie, S.uniqBy = Lie, S.uniqWith = Mie, S.unset = jse, S.unzip = bw, S.unzipWith = I5, S.update = zse, S.updateWith = Use, S.values = xu, S.valuesIn = Hse, S.without = $ie, S.words = sk, S.wrap = Noe, S.xor = jie, S.xorBy = zie, S.xorWith = Uie, S.zip = Hie, S.zipObject = Wie, S.zipObjectDeep = Vie, S.zipWith = Kie, S.entries = nk, S.entriesIn = rk, S.extend = Z5, S.extendWith = Jp, Bw(S, S), S.add = Hae, S.attempt = ak, S.camelCase = qse, S.capitalize = ik, S.ceil = Wae, S.clamp = Wse, S.clone = Moe, S.cloneDeep = joe, S.cloneDeepWith = zoe, S.cloneWith = $oe, S.conformsTo = Uoe, S.deburr = ok, S.defaultTo = Cae, S.divide = Vae, S.endsWith = Gse, S.eq = ni, S.escape = Qse, S.escapeRegExp = Yse, S.every = roe, S.find = ooe, S.findIndex = B5, S.findKey = yse, S.findLast = soe, S.findLastIndex = k5, S.findLastKey = wse, S.floor = Kae, S.forEach = L5, S.forEachRight = M5, S.forIn = bse, S.forInRight = _se, S.forOwn = Cse, S.forOwnRight = Ese, S.get = xw, S.gt = Hoe, S.gte = Woe, S.has = Ase, S.hasIn = Aw, S.head = R5, S.identity = Gn, S.includes = foe, S.indexOf = sie, S.inRange = Vse, S.invoke = Fse, S.isArguments = Ks, S.isArray = ze, S.isArrayBuffer = Voe, S.isArrayLike = Kn, S.isArrayLikeObject = Ht, S.isBoolean = Koe, S.isBuffer = Xo, S.isDate = qoe, S.isElement = Goe, S.isEmpty = Qoe, S.isEqual = Yoe, S.isEqualWith = Joe, S.isError = Ew, S.isFinite = Xoe, S.isFunction = ro, S.isInteger = K5, S.isLength = Qp, S.isMap = q5, S.isMatch = Zoe, S.isMatchWith = ese, S.isNaN = tse, S.isNative = nse, S.isNil = ise, S.isNull = rse, S.isNumber = G5, S.isObject = Rt, S.isObjectLike = $t, S.isPlainObject = xc, S.isRegExp = Dw, S.isSafeInteger = ose, S.isSet = Q5, S.isString = Yp, S.isSymbol = pr, S.isTypedArray = Du, S.isUndefined = sse, S.isWeakMap = ase, S.isWeakSet = use, S.join = fie, S.kebabCase = Jse, S.last = jr, S.lastIndexOf = die, S.lowerCase = Xse, S.lowerFirst = Zse, S.lt = lse, S.lte = cse, S.max = qae, S.maxBy = Gae, S.mean = Qae, S.meanBy = Yae, S.min = Jae, S.minBy = Xae, S.stubArray = Pw, S.stubFalse = Rw, S.stubObject = Lae, S.stubString = Mae, S.stubTrue = $ae, S.multiply = Zae, S.nth = hie, S.noConflict = Fae, S.noop = kw, S.now = Kp, S.pad = eae, S.padEnd = tae, S.padStart = nae, S.parseInt = rae, S.random = Kse, S.reduce = moe, S.reduceRight = voe, S.repeat = iae, S.replace = oae, S.result = Nse, S.round = eue, S.runInContext = z, S.sample = woe, S.size = Coe, S.snakeCase = sae, S.some = Eoe, S.sortedIndex = bie, S.sortedIndexBy = _ie, S.sortedIndexOf = Cie, S.sortedLastIndex = Eie, S.sortedLastIndexBy = Die, S.sortedLastIndexOf = xie, S.startCase = uae, S.startsWith = lae, S.subtract = tue, S.sum = nue, S.sumBy = rue, S.template = cae, S.times = jae, S.toFinite = io, S.toInteger = He, S.toLength = J5, S.toLower = fae, S.toNumber = zr, S.toSafeInteger = fse, S.toString = st, S.toUpper = dae, S.trim = hae, S.trimEnd = pae, S.trimStart = gae, S.truncate = mae, S.unescape = vae, S.uniqueId = Uae, S.upperCase = yae, S.upperFirst = Sw, S.each = L5, S.eachRight = M5, S.first = R5, Bw(S, function () { var s = { }; return Ei(S, function (l, d) { ut.call(S.prototype, d) || (s[d] = l) }), s }(), { chain: !1 }), S.VERSION = r, Ir(['bind', 'bindKey', 'curry', 'curryRight', 'partial', 'partialRight'], function (s) { S[s].placeholder = S }), Ir(['drop', 'take'], function (s, l) { Ye.prototype[s] = function (d) { d = d === n ? 1 : Zt(He(d), 0); var w = this.__filtered__ && !l ? new Ye(this) : this.clone(); return w.__filtered__ ? w.__takeCount__ = En(d, w.__takeCount__) : w.__views__.push({ size: En(d, ce), type: s + (w.__dir__ < 0 ? 'Right' : '') }), w }, Ye.prototype[s + 'Right'] = function (d) { return this.reverse() [s](d).reverse() } }), Ir(['filter', 'map', 'takeWhile'], function (s, l) { var d = l + 1, w = d == T || d == se; Ye.prototype[s] = function (A) { var F = this.clone(); return F.__iteratees__.push({ iteratee: Te(A, 3), type: d }), F.__filtered__ = F.__filtered__ || w, F } }), Ir(['head', 'last'], function (s, l) { var d = 'take' + (l ? 'Right' : ''); Ye.prototype[s] = function () { return this[d](1).value() [0] } }), Ir(['initial', 'tail'], function (s, l) { var d = 'drop' + (l ? '' : 'Right'); Ye.prototype[s] = function () { return this.__filtered__ ? new Ye(this) : this[d](1) } }), Ye.prototype.compact = function () { return this.filter(Gn) }, Ye.prototype.find = function (s) { return this.filter(s).head() }, Ye.prototype.findLast = function (s) { return this.reverse().find(s) }, Ye.prototype.invokeMap = Ke(function (s, l) { return typeof s == 'function' ? new Ye(this) : this.map(function (d) { return wc(d, s, l) }) }), Ye.prototype.reject = function (s) { return this.filter(Gp(Te(s))) }, Ye.prototype.slice = function (s, l) { s = He(s); var d = this; return d.__filtered__ && (s > 0 || l < 0) ? new Ye(d) : (s < 0 ? d = d.takeRight( - s) : s && (d = d.drop(s)), l !== n && (l = He(l), d = l < 0 ? d.dropRight( - l) : d.take(l - s)), d) }, Ye.prototype.takeRightWhile = function (s) { return this.reverse().takeWhile(s).reverse() }, Ye.prototype.toArray = function () { return this.take(ce) }, Ei(Ye.prototype, function (s, l) { var d = /^(?:filter|find|map|reject)|While$/.test(l), w = /^(?:head|last)$/.test(l), A = S[w ? 'take' + (l == 'last' ? 'Right' : '') : l], F = w || /^find/.test(l); A && (S.prototype[l] = function () { var R = this.__wrapped__, M = w ? [ 1 ] : arguments, H = R instanceof Ye, ae = M[0], ue = H || ze(R), fe = function (Ge) { var Xe = A.apply(S, Vo([Ge], M)); return w && _e ? Xe[0] : Xe }; ue && d && typeof ae == 'function' && ae.length != 1 && (H = ue = !1); var _e = this.__chain__, Oe = !!this.__actions__.length, Ie = F && !_e, We = H && !Oe; if (!F && ue) { R = We ? R : new Ye(this); var Ne = s.apply(R, M); return Ne.__actions__.push({ func: Wp, args: [ fe ], thisArg: n }), new Lr(Ne, _e) } return Ie && We ? s.apply(this, M) : (Ne = this.thru(fe), Ie ? w ? Ne.value() [0] : Ne.value() : Ne) }) }), Ir(['pop', 'push', 'shift', 'sort', 'splice', 'unshift'], function (s) { var l = mp[s], d = /^(?:push|sort|unshift)$/.test(s) ? 'tap' : 'thru', w = /^(?:pop|shift)$/.test(s); S.prototype[s] = function () { var A = arguments; if (w && !this.__chain__) { var F = this.value(); return l.apply(ze(F) ? F : [ ], A) } return this[d](function (R) { return l.apply(ze(R) ? R : [ ], A) }) } }), Ei(Ye.prototype, function (s, l) { var d = S[l]; if (d) { var w = d.name + ''; ut.call(wu, w) || (wu[w] = [ ]), wu[w].push({ name: l, func: d }) } }), wu[Lp(n, _).name] = [ { name: 'wrapper', func: n } ], Ye.prototype.clone = vne, Ye.prototype.reverse = yne, Ye.prototype.value = wne, S.prototype.at = Gie, S.prototype.chain = Qie, S.prototype.commit = Yie, S.prototype.next = Jie, S.prototype.plant = Zie, S.prototype.reverse = eoe, S.prototype.toJSON = S.prototype.valueOf = S.prototype.value = toe, S.prototype.first = S.prototype.head, dc && (S.prototype[dc] = Xie), S }, mu = Yte(); Ms ? ((Ms.exports = mu)._ = mu, Fy._ = mu) : gn._ = mu }).call(Gt) }(Gd, Gd.exports); var jM = Gd.exports; const zM = (e, t) =>we.isElement(t) && C.isBlock(e, t), UM = (e, t, n) =>n ? typeof n == 'object' ? Object.entries(n).every(([r, i]) =>jM.castArray(i).includes(e[r])) : n(e, t) : !0, PA = (e, t) =>{ const { match: n, block: r } = t; return C.above(e, { ...t, match: n || r ? (i, o) =>UM(i, o, n) && (!t.block || zM(e, i)) : void 0 }) }, RA = (e, { at: t, ...n }) =>{ if (t || (t = e.selection), !t) return; const [r, i] = q.edges(t), o = PA(e, { at: r, ...n }), a = PA(e, { at: i, ...n }); if (!(!o && !a)) return !o || !a ? !0 : !N.equals(o[1], a[1]) }, HM = (e, t) =>{ const { selection: n } = e; if (n && q.isCollapsed(n)) { const { nativeEvent: r } = t; if (O2('left', r)) { const { currentWord: i } = qd(e, /\uFEFF/i); if (i && i.match(/.*\uFEFF/)) { t.preventDefault(), K.move(e, { unit: 'character', reverse: !0, distance: 2 }); return } } if (O2('right', r)) { const i = q.end(n), o = { offset: i.offset, path: [ ...i.path ] }; if (Yv(e, o).match(/\n/i)) { t.preventDefault(), K.move(e, { unit: 'character', distance: 2 }); return } const u = C.above(e); if (u && je.compare(C.end(e, u[1]), n.focus) === 0) { K.move(e, { unit: 'offset' }); return } } } }, TA = (e, t) =>{ const { selection: n } = e; if (!n) return !1; const [r] = Array.from(C.nodes(e, { at: C.unhangRange(e, n), match: i=>!C.isEditor(i) && we.isElement(i) && i.type === t })); return !!r }, IA = (e, t) =>{ const n = TA(e, t), { selection: r } = e, i = { type: n ? Ue.BLOCK : t }, o = r ? !!Array.from(C.nodes(e, { match: a=>we.isElement(a) && [ ...Vv, Ue.MENTION ].includes(a.type) })) [0] : !1; if (r && (q.isExpanded(r) || o) && n) K.setNodes(e, { type: Ue.BLOCK }); else if (r && (q.isExpanded(r) || o)) { const a = C.fragment(e, r); K.delete(e, { at: r }), K.insertNodes(e, { type: Ue.QUOTE, children: a }), K.unwrapNodes(e, { match: u=>we.isElement(u) && u.type === Ue.BLOCK }) } else n ? K.setNodes(e, { type: Ue.BLOCK }) : o || K.insertNodes(e, { type: Ue.QUOTE, children: [ { text: '' } ] }); K.setNodes(e, i, { match: a=>we.isElement(a) && C.isBlock(e, a) && C.isEmpty(e, a) }), ee.focus(e) }, Jv = { button: '_button_1559b_1', active: '_active_1559b_1', icon: '_icon_1559b_36' }, WM = ({ format: e, title: t }) =>{ const n = Wi(), r = TA(n, e) ? Jv.active : Jv.button; return W('button', { className: r, onClick: i=>{ i.preventDefault(), IA(n, e) }, title: t, children: Os(e, Jv.icon) () }) }; var NA = { exports: { } }; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ (function (e) { (function () { var t = { }.hasOwnProperty; function n() { for (var r = [ ], i = 0; i < arguments.length; i++) { var o = arguments[i]; if (o) { var a = typeof o; if (a === 'string' || a === 'number') r.push(o); else if (Array.isArray(o)) { if (o.length) { var u = n.apply(null, o); u && r.push(u) } } else if (a === 'object') { if (o.toString !== Object.prototype.toString && !o.toString.toString().includes('[native code]')) { r.push(o.toString()); continue } for (var c in o) t.call(o, c) && o[c] && r.push(c) } } } return r.join(' ') } e.exports ? (n.default = n, e.exports = n) : window.classNames = n }) () }) (NA); var VM = NA.exports; const No = vr(VM), kue = { 'avatar-square': '_avatar-square_st8h3_1', 'avatar-rounded': '_avatar-rounded_st8h3_1', 'avatar-circle': '_avatar-circle_st8h3_1', inner: '_inner_st8h3_11', image: '_image_st8h3_25', 'avatar-large': '_avatar-large_st8h3_43', 'avatar-medium': '_avatar-medium_st8h3_48', 'avatar-small': '_avatar-small_st8h3_53', 'avatar-xsmall': '_avatar-xsmall_st8h3_58' }, KM = { link: '_link_1hoja_1' }, { link: qM } = KM, LA = D.forwardRef(({ className: e, label: t, children: n, ...r }, i) =>W('a', { className: No(qM, e), ...r, ref: i, children: t || n })); LA.displayName = 'Link'; const Xv = { button: '_button_8fv5d_1', 'button-fill': '_button-fill_8fv5d_15', 'button-primary': '_button-primary_8fv5d_38', 'button-danger': '_button-danger_8fv5d_61', 'button-success': '_button-success_8fv5d_84' }, { button: GM } = Xv, Zv = D.forwardRef(function ({ children: t, className: n, color: r, disabled: i, href: o, rel: a, target: u, type: c = 'button', variant: f = 'fill', onClick: h }, g) { const m = No([GM, r && Xv[`button-${ r }`], f && Xv[`button-${ f }`], n]); return o ? W(LA, { className: m, href: o, target: u, rel: a, onClick: h, children: t }) : W('button', { className: m, disabled: i, ref: g, type: c, onClick: h, children: t }) }), Iue = { card: '_card_hu9ay_1' }, Lue = { content: '_content_zxk21_1' }, jue = { header: '_header_1iy7u_1', heading: '_heading_1iy7u_9' }, Uue = { footer: '_footer_pq6g3_1' }, QM = { checkbox: '_checkbox_1nula_1', input: '_input_1nula_8' }, { checkbox: YM, input: JM } = QM; D.forwardRef(function ({ children: t, className: n, ...r }, i) { return Ve('label', { className: No([YM, n]), children: [ W('input', { ...r, className: JM, type: 'checkbox', ref: i }), W('span', { children: t }) ] }) }); const Kue = { link: '_link_7oyne_1' }, Que = { icon: '_icon_1rgg8_1', domain: '_domain_1rgg8_5' }, XM = { loader: '_loader_e4dlg_1' }, ZM = 300, { loader: e$ } = XM, e1 = ({ height: e }) =>{ const t = { '--loader-height': `${ e ?? ZM }px` }; return W('div', { className: e$, style: t }) }; var t1 = { }, n1 = { }; (function (e) { Object.defineProperty(e, '__esModule', { value: !0 }), e.Doctype = e.CDATA = e.Tag = e.Style = e.Script = e.Comment = e.Directive = e.Text = e.Root = e.isTag = e.ElementType = void 0; var t; (function (r) { r.Root = 'root', r.Text = 'text', r.Directive = 'directive', r.Comment = 'comment', r.Script = 'script', r.Style = 'style', r.Tag = 'tag', r.CDATA = 'cdata', r.Doctype = 'doctype' }) (t = e.ElementType || (e.ElementType = { })); function n(r) { return r.type === t.Tag || r.type === t.Script || r.type === t.Style } e.isTag = n, e.Root = t.Root, e.Text = t.Text, e.Directive = t.Directive, e.Comment = t.Comment, e.Script = t.Script, e.Style = t.Style, e.Tag = t.Tag, e.CDATA = t.CDATA, e.Doctype = t.Doctype }) (n1); var qe = { }, Lo = Gt && Gt.__extends || function () { var e = function (t, n) { return e = Object.setPrototypeOf || { __proto__: [ ] } instanceof Array && function (r, i) { r.__proto__ = i } || function (r, i) { for (var o in i) Object.prototype.hasOwnProperty.call(i, o) && (r[o] = i[o]) }, e(t, n) }; return function (t, n) { if (typeof n != 'function' && n !== null) throw new TypeError('Class extends value ' + String(n) + ' is not a constructor or null'); e(t, n); function r() { this.constructor = t } t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r) } }(), zl = Gt && Gt.__assign || function () { return zl = Object.assign || function (e) { for (var t, n = 1, r = arguments.length; n < r; n++) { t = arguments[n]; for (var i in t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]) } return e }, zl.apply(this, arguments) }; Object.defineProperty(qe, '__esModule', { value: !0 }), qe.cloneNode = qe.hasChildren = qe.isDocument = qe.isDirective = qe.isComment = qe.isText = qe.isCDATA = qe.isTag = qe.Element = qe.Document = qe.CDATA = qe.NodeWithChildren = qe.ProcessingInstruction = qe.Comment = qe.Text = qe.DataNode = qe.Node = void 0; var Hn = n1, r1 = function () { function e() { this.parent = null, this.prev = null, this.next = null, this.startIndex = null, this.endIndex = null } return Object.defineProperty(e.prototype, 'parentNode', { get: function () { return this.parent }, set: function (t) { this.parent = t }, enumerable: !1, configurable: !0 }), Object.defineProperty(e.prototype, 'previousSibling', { get: function () { return this.prev }, set: function (t) { this.prev = t }, enumerable: !1, configurable: !0 }), Object.defineProperty(e.prototype, 'nextSibling', { get: function () { return this.next }, set: function (t) { this.next = t }, enumerable: !1, configurable: !0 }), e.prototype.cloneNode = function (t) { return t === void 0 && (t = !1), i1(this, t) }, e }(); qe.Node = r1; var Qd = function (e) { Lo(t, e); function t(n) { var r = e.call(this) || this; return r.data = n, r } return Object.defineProperty(t.prototype, 'nodeValue', { get: function () { return this.data }, set: function (n) { this.data = n }, enumerable: !1, configurable: !0 }), t }(r1); qe.DataNode = Qd; var MA = function (e) { Lo(t, e); function t() { var n = e !== null && e.apply(this, arguments) || this; return n.type = Hn.ElementType.Text, n } return Object.defineProperty(t.prototype, 'nodeType', { get: function () { return 3 }, enumerable: !1, configurable: !0 }), t }(Qd); qe.Text = MA; var $A = function (e) { Lo(t, e); function t() { var n = e !== null && e.apply(this, arguments) || this; return n.type = Hn.ElementType.Comment, n } return Object.defineProperty(t.prototype, 'nodeType', { get: function () { return 8 }, enumerable: !1, configurable: !0 }), t }(Qd); qe.Comment = $A; var jA = function (e) { Lo(t, e); function t(n, r) { var i = e.call(this, r) || this; return i.name = n, i.type = Hn.ElementType.Directive, i } return Object.defineProperty(t.prototype, 'nodeType', { get: function () { return 1 }, enumerable: !1, configurable: !0 }), t }(Qd); qe.ProcessingInstruction = jA; var Yd = function (e) { Lo(t, e); function t(n) { var r = e.call(this) || this; return r.children = n, r } return Object.defineProperty(t.prototype, 'firstChild', { get: function () { var n; return (n = this.children[0]) !== null && n !== void 0 ? n : null }, enumerable: !1, configurable: !0 }), Object.defineProperty(t.prototype, 'lastChild', { get: function () { return this.children.length > 0 ? this.children[this.children.length - 1] : null }, enumerable: !1, configurable: !0 }), Object.defineProperty(t.prototype, 'childNodes', { get: function () { return this.children }, set: function (n) { this.children = n }, enumerable: !1, configurable: !0 }), t }(r1); qe.NodeWithChildren = Yd; var zA = function (e) { Lo(t, e); function t() { var n = e !== null && e.apply(this, arguments) || this; return n.type = Hn.ElementType.CDATA, n } return Object.defineProperty(t.prototype, 'nodeType', { get: function () { return 4 }, enumerable: !1, configurable: !0 }), t }(Yd); qe.CDATA = zA; var UA = function (e) { Lo(t, e); function t() { var n = e !== null && e.apply(this, arguments) || this; return n.type = Hn.ElementType.Root, n } return Object.defineProperty(t.prototype, 'nodeType', { get: function () { return 9 }, enumerable: !1, configurable: !0 }), t }(Yd); qe.Document = UA; var HA = function (e) { Lo(t, e); function t(n, r, i, o) { i === void 0 && (i = [ ]), o === void 0 && (o = n === 'script' ? Hn.ElementType.Script : n === 'style' ? Hn.ElementType.Style : Hn.ElementType.Tag); var a = e.call(this, i) || this; return a.name = n, a.attribs = r, a.type = o, a } return Object.defineProperty(t.prototype, 'nodeType', { get: function () { return 1 }, enumerable: !1, configurable: !0 }), Object.defineProperty(t.prototype, 'tagName', { get: function () { return this.name }, set: function (n) { this.name = n }, enumerable: !1, configurable: !0 }), Object.defineProperty(t.prototype, 'attributes', { get: function () { var n = this; return Object.keys(this.attribs).map(function (r) { var i, o; return { name: r, value: n.attribs[r], namespace: (i = n['x-attribsNamespace']) === null || i === void 0 ? void 0 : i[r], prefix: (o = n['x-attribsPrefix']) === null || o === void 0 ? void 0 : o[r] } }) }, enumerable: !1, configurable: !0 }), t }(Yd); qe.Element = HA; function WA(e) { return (0, Hn.isTag) (e) } qe.isTag = WA; function VA(e) { return e.type === Hn.ElementType.CDATA } qe.isCDATA = VA; function KA(e) { return e.type === Hn.ElementType.Text } qe.isText = KA; function qA(e) { return e.type === Hn.ElementType.Comment } qe.isComment = qA; function GA(e) { return e.type === Hn.ElementType.Directive } qe.isDirective = GA; function QA(e) { return e.type === Hn.ElementType.Root } qe.isDocument = QA; function t$(e) { return Object.prototype.hasOwnProperty.call(e, 'children') } qe.hasChildren = t$; function i1(e, t) { t === void 0 && (t = !1); var n; if (KA(e)) n = new MA(e.data); else if (qA(e)) n = new $A(e.data); else if (WA(e)) { var r = t ? o1(e.children) : [ ], i = new HA(e.name, zl({ }, e.attribs), r); r.forEach(function (c) { return c.parent = i }), e.namespace != null && (i.namespace = e.namespace), e['x-attribsNamespace'] && (i['x-attribsNamespace'] = zl({ }, e['x-attribsNamespace'])), e['x-attribsPrefix'] && (i['x-attribsPrefix'] = zl({ }, e['x-attribsPrefix'])), n = i } else if (VA(e)) { var r = t ? o1(e.children) : [ ], o = new zA(r); r.forEach(function (f) { return f.parent = o }), n = o } else if (QA(e)) { var r = t ? o1(e.children) : [ ], a = new UA(r); r.forEach(function (f) { return f.parent = a }), e['x-mode'] && (a['x-mode'] = e['x-mode']), n = a } else if (GA(e)) { var u = new jA(e.name, e.data); e['x-name'] != null && (u['x-name'] = e['x-name'], u['x-publicId'] = e['x-publicId'], u['x-systemId'] = e['x-systemId']), n = u } else throw new Error('Not implemented yet: '.concat(e.type)); return n.startIndex = e.startIndex, n.endIndex = e.endIndex, e.sourceCodeLocation != null && (n.sourceCodeLocation = e.sourceCodeLocation), n } qe.cloneNode = i1; function o1(e) { for (var t = e.map(function (r) { return i1(r, !0) }), n = 1; n < t.length; n++) t[n].prev = t[n - 1], t[n - 1].next = t[n]; return t }(function (e) { var t = Gt && Gt.__createBinding || (Object.create ? function (u, c, f, h) { h === void 0 && (h = f); var g = Object.getOwnPropertyDescriptor(c, f); (!g || ('get' in g ? !c.__esModule : g.writable || g.configurable)) && (g = { enumerable: !0, get: function () { return c[f] } }), Object.defineProperty(u, h, g) } : function (u, c, f, h) { h === void 0 && (h = f), u[h] = c[f] }), n = Gt && Gt.__exportStar || function (u, c) { for (var f in u) f !== 'default' && !Object.prototype.hasOwnProperty.call(c, f) && t(c, u, f) }; Object.defineProperty(e, '__esModule', { value: !0 }), e.DomHandler = void 0; var r = n1, i = qe; n(qe, e); var o = { withStartIndices: !1, withEndIndices: !1, xmlMode: !1 }, a = function () { function u(c, f, h) { this.dom = [ ], this.root = new i.Document(this.dom), this.done = !1, this.tagStack = [ this.root ], this.lastNode = null, this.parser = null, typeof f == 'function' && (h = f, f = o), typeof c == 'object' && (f = c, c = void 0), this.callback = c ?? null, this.options = f ?? o, this.elementCB = h ?? null } return u.prototype.onparserinit = function (c) { this.parser = c }, u.prototype.onreset = function () { this.dom = [ ], this.root = new i.Document(this.dom), this.done = !1, this.tagStack = [ this.root ], this.lastNode = null, this.parser = null }, u.prototype.onend = function () { this.done || (this.done = !0, this.parser = null, this.handleCallback(null)) }, u.prototype.onerror = function (c) { this.handleCallback(c) }, u.prototype.onclosetag = function () { this.lastNode = null; var c = this.tagStack.pop(); this.options.withEndIndices && (c.endIndex = this.parser.endIndex), this.elementCB && this.elementCB(c) }, u.prototype.onopentag = function (c, f) { var h = this.options.xmlMode ? r.ElementType.Tag : void 0, g = new i.Element(c, f, void 0, h); this.addNode(g), this.tagStack.push(g) }, u.prototype.ontext = function (c) { var f = this.lastNode; if (f && f.type === r.ElementType.Text) f.data += c, this.options.withEndIndices && (f.endIndex = this.parser.endIndex); else { var h = new i.Text(c); this.addNode(h), this.lastNode = h } }, u.prototype.oncomment = function (c) { if (this.lastNode && this.lastNode.type === r.ElementType.Comment) { this.lastNode.data += c; return } var f = new i.Comment(c); this.addNode(f), this.lastNode = f }, u.prototype.oncommentend = function () { this.lastNode = null }, u.prototype.oncdatastart = function () { var c = new i.Text(''), f = new i.CDATA([c]); this.addNode(f), c.parent = f, this.lastNode = c }, u.prototype.oncdataend = function () { this.lastNode = null }, u.prototype.onprocessinginstruction = function (c, f) { var h = new i.ProcessingInstruction(c, f); this.addNode(h) }, u.prototype.handleCallback = function (c) { if (typeof this.callback == 'function') this.callback(c, this.dom); else if (c) throw c }, u.prototype.addNode = function (c) { var f = this.tagStack[this.tagStack.length - 1], h = f.children[f.children.length - 1]; this.options.withStartIndices && (c.startIndex = this.parser.startIndex), this.options.withEndIndices && (c.endIndex = this.parser.endIndex), f.children.push(c), h && (c.prev = h, h.next = c), c.parent = f, this.lastNode = null }, u }(); e.DomHandler = a, e.default = a }) (t1); var YA = 'html', JA = 'head', Jd = 'body', n$ = /<([a-zA-Z]+[0-9]?)/, XA = /<head[^]*>/i, ZA = /<body[^]*>/i, Xd = function () { throw new Error('This browser does not support `document.implementation.createHTMLDocument`') }, s1 = function () { throw new Error('This browser does not support `DOMParser.prototype.parseFromString`') }, eS = typeof window == 'object' && window.DOMParser; if (typeof eS == 'function') { var r$ = new eS, i$ = 'text/html'; s1 = function (e, t) { return t && (e = '<' + t + '>' + e + '</' + t + '>'), r$.parseFromString(e, i$) }, Xd = s1 } if (typeof document == 'object' && document.implementation) { var Zd = document.implementation.createHTMLDocument(); Xd = function (e, t) { if (t) { var n = Zd.documentElement.querySelector(t); return n.innerHTML = e, Zd } return Zd.documentElement.innerHTML = e, Zd } } var a1 = typeof document == 'object' ? document.createElement('template') : { }, u1; a1.content && (u1 = function (e) { return a1.innerHTML = e, a1.content.childNodes }); function o$(e) { var t, n = e.match(n$); n && n[1] && (t = n[1].toLowerCase()); var r, i, o; switch (t) { case YA: return r = s1(e), XA.test(e) || (i = r.querySelector(JA), i && i.parentNode.removeChild(i)), ZA.test(e) || (i = r.querySelector(Jd), i && i.parentNode.removeChild(i)), r.querySelectorAll(YA); case JA: case Jd: return r = Xd(e), o = r.querySelectorAll(t), ZA.test(e) && XA.test(e) ? o[0].parentNode.childNodes : o; default: return u1 ? u1(e) : (i = Xd(e, Jd).querySelector(Jd), i.childNodes) } } var s$ = o$, l1 = { }, tS = { }; tS.CASE_SENSITIVE_TAG_NAMES = [ 'animateMotion', 'animateTransform', 'clipPath', 'feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDropShadow', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence', 'foreignObject', 'linearGradient', 'radialGradient', 'textPath' ]; for (var eh = t1, a$ = tS, nS = a$.CASE_SENSITIVE_TAG_NAMES, u$ = eh.Comment, l$ = eh.Element, c$ = eh.ProcessingInstruction, f$ = eh.Text, rS = { }, c1, f1 = 0, d$ = nS.length; f1 < d$; f1++) c1 = nS[f1], rS[c1.toLowerCase()] = c1; function h$(e) { return rS[e] } function iS(e) { for (var t = { }, n, r = 0, i = e.length; r < i; r++) n = e[r], t[n.name] = n.value; return t } function p$(e) { e = e.toLowerCase(); var t = h$(e); return t || e } function oS(e, t, n) { t = t || null; for (var r = [ ], i, o = 0, a = e.length; o < a; o++) { var u = e[o], c; switch (u.nodeType) { case 1: i = p$(u.nodeName), c = new l$(i, iS(u.attributes)), c.children = oS(i === 'template' ? u.content.childNodes : u.childNodes, c); break; case 3: c = new f$(u.nodeValue); break; case 8: c = new u$(u.nodeValue); break; default: continue } var f = r[o - 1] || null; f && (f.next = c), c.parent = t, c.prev = f, c.next = null, r.push(c) } return n && (c = new c$(n.substring(0, n.indexOf(' ')).toLowerCase(), n), c.next = r[0] || null, c.parent = t, r.unshift(c), r[1] && (r[1].prev = r[0])), r } l1.formatAttributes = iS, l1.formatDOM = oS; var g$ = s$, m$ = l1, v$ = m$.formatDOM, y$ = /<(![a-zA-Z\s]+)>/; function w$(e) { if (typeof e != 'string') throw new TypeError('First argument must be a string'); if (e === '') return []; var t = e.match(y$), n; return t && t[1] && (n = t[1]), v$(g$(e), null, n) } var b$ = w$, Br = { }, th = { }, _$ = 0; th.SAME = _$; var C$ = 1; th.CAMELCASE = C$, th.possibleStandardNames = { accept: 0, acceptCharset: 1, 'accept-charset': 'acceptCharset', accessKey: 1, action: 0, allowFullScreen: 1, alt: 0, as: 0, async: 0, autoCapitalize: 1, autoComplete: 1, autoCorrect: 1, autoFocus: 1, autoPlay: 1, autoSave: 1, capture: 0, cellPadding: 1, cellSpacing: 1, challenge: 0, charSet: 1, checked: 0, children: 0, cite: 0, class : 'className', classID: 1, className: 1, cols: 0, colSpan: 1, content: 0, contentEditable: 1, contextMenu: 1, controls: 0, controlsList: 1, coords: 0, crossOrigin: 1, dangerouslySetInnerHTML: 1, data: 0, dateTime: 1, default: 0, defaultChecked: 1, defaultValue: 1, defer: 0, dir: 0, disabled: 0, disablePictureInPicture: 1, disableRemotePlayback: 1, download: 0, draggable: 0, encType: 1, enterKeyHint: 1, for : 'htmlFor', form: 0, formMethod: 1, formAction: 1, formEncType: 1, formNoValidate: 1, formTarget: 1, frameBorder: 1, headers: 0, height: 0, hidden: 0, high: 0, href: 0, hrefLang: 1, htmlFor: 1, httpEquiv: 1, 'http-equiv': 'httpEquiv', icon: 0, id: 0, innerHTML: 1, inputMode: 1, integrity: 0, is: 0, itemID: 1, itemProp: 1, itemRef: 1, itemScope: 1, itemType: 1, keyParams: 1, keyType: 1, kind: 0, label: 0, lang: 0, list: 0, loop: 0, low: 0, manifest: 0, marginWidth: 1, marginHeight: 1, max: 0, maxLength: 1, media: 0, mediaGroup: 1, method: 0, min: 0, minLength: 1, multiple: 0, muted: 0, name: 0, noModule: 1, nonce: 0, noValidate: 1, open: 0, optimum: 0, pattern: 0, placeholder: 0, playsInline: 1, poster: 0, preload: 0, profile: 0, radioGroup: 1, readOnly: 1, referrerPolicy: 1, rel: 0, required: 0, reversed: 0, role: 0, rows: 0, rowSpan: 1, sandbox: 0, scope: 0, scoped: 0, scrolling: 0, seamless: 0, selected: 0, shape: 0, size: 0, sizes: 0, span: 0, spellCheck: 1, src: 0, srcDoc: 1, srcLang: 1, srcSet: 1, start: 0, step: 0, style: 0, summary: 0, tabIndex: 1, target: 0, title: 0, type: 0, useMap: 1, value: 0, width: 0, wmode: 0, wrap: 0, about: 0, accentHeight: 1, 'accent-height': 'accentHeight', accumulate: 0, additive: 0, alignmentBaseline: 1, 'alignment-baseline': 'alignmentBaseline', allowReorder: 1, alphabetic: 0, amplitude: 0, arabicForm: 1, 'arabic-form': 'arabicForm', ascent: 0, attributeName: 1, attributeType: 1, autoReverse: 1, azimuth: 0, baseFrequency: 1, baselineShift: 1, 'baseline-shift': 'baselineShift', baseProfile: 1, bbox: 0, begin: 0, bias: 0, by: 0, calcMode: 1, capHeight: 1, 'cap-height': 'capHeight', clip: 0, clipPath: 1, 'clip-path': 'clipPath', clipPathUnits: 1, clipRule: 1, 'clip-rule': 'clipRule', color: 0, colorInterpolation: 1, 'color-interpolation': 'colorInterpolation', colorInterpolationFilters: 1, 'color-interpolation-filters': 'colorInterpolationFilters', colorProfile: 1, 'color-profile': 'colorProfile', colorRendering: 1, 'color-rendering': 'colorRendering', contentScriptType: 1, contentStyleType: 1, cursor: 0, cx: 0, cy: 0, d: 0, datatype: 0, decelerate: 0, descent: 0, diffuseConstant: 1, direction: 0, display: 0, divisor: 0, dominantBaseline: 1, 'dominant-baseline': 'dominantBaseline', dur: 0, dx: 0, dy: 0, edgeMode: 1, elevation: 0, enableBackground: 1, 'enable-background': 'enableBackground', end: 0, exponent: 0, externalResourcesRequired: 1, fill: 0, fillOpacity: 1, 'fill-opacity': 'fillOpacity', fillRule: 1, 'fill-rule': 'fillRule', filter: 0, filterRes: 1, filterUnits: 1, floodOpacity: 1, 'flood-opacity': 'floodOpacity', floodColor: 1, 'flood-color': 'floodColor', focusable: 0, fontFamily: 1, 'font-family': 'fontFamily', fontSize: 1, 'font-size': 'fontSize', fontSizeAdjust: 1, 'font-size-adjust': 'fontSizeAdjust', fontStretch: 1, 'font-stretch': 'fontStretch', fontStyle: 1, 'font-style': 'fontStyle', fontVariant: 1, 'font-variant': 'fontVariant', fontWeight: 1, 'font-weight': 'fontWeight', format: 0, from: 0, fx: 0, fy: 0, g1: 0, g2: 0, glyphName: 1, 'glyph-name': 'glyphName', glyphOrientationHorizontal: 1, 'glyph-orientation-horizontal': 'glyphOrientationHorizontal', glyphOrientationVertical: 1, 'glyph-orientation-vertical': 'glyphOrientationVertical', glyphRef: 1, gradientTransform: 1, gradientUnits: 1, hanging: 0, horizAdvX: 1, 'horiz-adv-x': 'horizAdvX', horizOriginX: 1, 'horiz-origin-x': 'horizOriginX', ideographic: 0, imageRendering: 1, 'image-rendering': 'imageRendering', in2: 0, in : 0, inlist: 0, intercept: 0, k1: 0, k2: 0, k3: 0, k4: 0, k: 0, kernelMatrix: 1, kernelUnitLength: 1, kerning: 0, keyPoints: 1, keySplines: 1, keyTimes: 1, lengthAdjust: 1, letterSpacing: 1, 'letter-spacing': 'letterSpacing', lightingColor: 1, 'lighting-color': 'lightingColor', limitingConeAngle: 1, local: 0, markerEnd: 1, 'marker-end': 'markerEnd', markerHeight: 1, markerMid: 1, 'marker-mid': 'markerMid', markerStart: 1, 'marker-start': 'markerStart', markerUnits: 1, markerWidth: 1, mask: 0, maskContentUnits: 1, maskUnits: 1, mathematical: 0, mode: 0, numOctaves: 1, offset: 0, opacity: 0, operator: 0, order: 0, orient: 0, orientation: 0, origin: 0, overflow: 0, overlinePosition: 1, 'overline-position': 'overlinePosition', overlineThickness: 1, 'overline-thickness': 'overlineThickness', paintOrder: 1, 'paint-order': 'paintOrder', panose1: 0, 'panose-1': 'panose1', pathLength: 1, patternContentUnits: 1, patternTransform: 1, patternUnits: 1, pointerEvents: 1, 'pointer-events': 'pointerEvents', points: 0, pointsAtX: 1, pointsAtY: 1, pointsAtZ: 1, prefix: 0, preserveAlpha: 1, preserveAspectRatio: 1, primitiveUnits: 1, property: 0, r: 0, radius: 0, refX: 1, refY: 1, renderingIntent: 1, 'rendering-intent': 'renderingIntent', repeatCount: 1, repeatDur: 1, requiredExtensions: 1, requiredFeatures: 1, resource: 0, restart: 0, result: 0, results: 0, rotate: 0, rx: 0, ry: 0, scale: 0, security: 0, seed: 0, shapeRendering: 1, 'shape-rendering': 'shapeRendering', slope: 0, spacing: 0, specularConstant: 1, specularExponent: 1, speed: 0, spreadMethod: 1, startOffset: 1, stdDeviation: 1, stemh: 0, stemv: 0, stitchTiles: 1, stopColor: 1, 'stop-color': 'stopColor', stopOpacity: 1, 'stop-opacity': 'stopOpacity', strikethroughPosition: 1, 'strikethrough-position': 'strikethroughPosition', strikethroughThickness: 1, 'strikethrough-thickness': 'strikethroughThickness', string: 0, stroke: 0, strokeDasharray: 1, 'stroke-dasharray': 'strokeDasharray', strokeDashoffset: 1, 'stroke-dashoffset': 'strokeDashoffset', strokeLinecap: 1, 'stroke-linecap': 'strokeLinecap', strokeLinejoin: 1, 'stroke-linejoin': 'strokeLinejoin', strokeMiterlimit: 1, 'stroke-miterlimit': 'strokeMiterlimit', strokeWidth: 1, 'stroke-width': 'strokeWidth', strokeOpacity: 1, 'stroke-opacity': 'strokeOpacity', suppressContentEditableWarning: 1, suppressHydrationWarning: 1, surfaceScale: 1, systemLanguage: 1, tableValues: 1, targetX: 1, targetY: 1, textAnchor: 1, 'text-anchor': 'textAnchor', textDecoration: 1, 'text-decoration': 'textDecoration', textLength: 1, textRendering: 1, 'text-rendering': 'textRendering', to: 0, transform: 0, typeof : 0, u1: 0, u2: 0, underlinePosition: 1, 'underline-position': 'underlinePosition', underlineThickness: 1, 'underline-thickness': 'underlineThickness', unicode: 0, unicodeBidi: 1, 'unicode-bidi': 'unicodeBidi', unicodeRange: 1, 'unicode-range': 'unicodeRange', unitsPerEm: 1, 'units-per-em': 'unitsPerEm', unselectable: 0, vAlphabetic: 1, 'v-alphabetic': 'vAlphabetic', values: 0, vectorEffect: 1, 'vector-effect': 'vectorEffect', version: 0, vertAdvY: 1, 'vert-adv-y': 'vertAdvY', vertOriginX: 1, 'vert-origin-x': 'vertOriginX', vertOriginY: 1, 'vert-origin-y': 'vertOriginY', vHanging: 1, 'v-hanging': 'vHanging', vIdeographic: 1, 'v-ideographic': 'vIdeographic', viewBox: 1, viewTarget: 1, visibility: 0, vMathematical: 1, 'v-mathematical': 'vMathematical', vocab: 0, widths: 0, wordSpacing: 1, 'word-spacing': 'wordSpacing', writingMode: 1, 'writing-mode': 'writingMode', x1: 0, x2: 0, x: 0, xChannelSelector: 1, xHeight: 1, 'x-height': 'xHeight', xlinkActuate: 1, 'xlink:actuate': 'xlinkActuate', xlinkArcrole: 1, 'xlink:arcrole': 'xlinkArcrole', xlinkHref: 1, 'xlink:href': 'xlinkHref', xlinkRole: 1, 'xlink:role': 'xlinkRole', xlinkShow: 1, 'xlink:show': 'xlinkShow', xlinkTitle: 1, 'xlink:title': 'xlinkTitle', xlinkType: 1, 'xlink:type': 'xlinkType', xmlBase: 1, 'xml:base': 'xmlBase', xmlLang: 1, 'xml:lang': 'xmlLang', xmlns: 0, 'xml:space': 'xmlSpace', xmlnsXlink: 1, 'xmlns:xlink': 'xmlnsXlink', xmlSpace: 1, y1: 0, y2: 0, y: 0, yChannelSelector: 1, z: 0, zoomAndPan: 1 }, Object.defineProperty(Br, '__esModule', { value: !0 }); function E$(e, t) { return D$(e) || x$(e, t) || A$(e, t) || S$() } function D$(e) { if (Array.isArray(e)) return e } function x$(e, t) { var n = e == null ? null : typeof Symbol < 'u' && e[Symbol.iterator] || e['@@iterator']; if (n != null) { var r = [ ], i = !0, o = !1, a, u; try { for (n = n.call(e); !(i = (a = n.next()).done) && (r.push(a.value), !(t && r.length === t)); i = !0); } catch (c) { o = !0, u = c } finally { try { !i && n.return != null && n.return() } finally { if (o) throw u } } return r } } function A$(e, t) { if (e) { if (typeof e == 'string') return sS(e, t); var n = Object.prototype.toString.call(e).slice(8, - 1); if (n === 'Object' && e.constructor && (n = e.constructor.name), n === 'Map' || n === 'Set') return Array.from(e); if (n === 'Arguments' || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return sS(e, t) } } function sS(e, t) { (t == null || t > e.length) && (t = e.length); for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]; return r } function S$() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method. `) } var aS = 0, Mo = 1, nh = 2, rh = 3, d1 = 4, uS = 5, lS = 6; function O$(e) { return fn.hasOwnProperty(e) ? fn[e] : null } function Pn(e, t, n, r, i, o, a) { this.acceptsBooleans = t === nh || t === rh || t === d1, this.attributeName = r, this.attributeNamespace = i, this.mustUseProperty = n, this.propertyName = e, this.type = t, this.sanitizeURL = o, this.removeEmptyString = a } var fn = { }, F$ = [ 'children', 'dangerouslySetInnerHTML', 'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style' ]; F$.forEach(function (e) { fn[e] = new Pn(e, aS, !1, e, null, !1, !1) }), [ ['acceptCharset', 'accept-charset'], [ 'className', 'class' ], [ 'htmlFor', 'for' ], [ 'httpEquiv', 'http-equiv' ] ].forEach(function (e) { var t = E$(e, 2), n = t[0], r = t[1]; fn[n] = new Pn(n, Mo, !1, r, null, !1, !1) }), [ 'contentEditable', 'draggable', 'spellCheck', 'value' ].forEach(function (e) { fn[e] = new Pn(e, nh, !1, e.toLowerCase(), null, !1, !1) }), [ 'autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha' ].forEach(function (e) { fn[e] = new Pn(e, nh, !1, e, null, !1, !1) }), [ 'allowFullScreen', 'async', 'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'disablePictureInPicture', 'disableRemotePlayback', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless', 'itemScope' ].forEach(function (e) { fn[e] = new Pn(e, rh, !1, e.toLowerCase(), null, !1, !1) }), [ 'checked', 'multiple', 'muted', 'selected' ].forEach(function (e) { fn[e] = new Pn(e, rh, !0, e, null, !1, !1) }), [ 'capture', 'download' ].forEach(function (e) { fn[e] = new Pn(e, d1, !1, e, null, !1, !1) }), [ 'cols', 'rows', 'size', 'span' ].forEach(function (e) { fn[e] = new Pn(e, lS, !1, e, null, !1, !1) }), [ 'rowSpan', 'start' ].forEach(function (e) { fn[e] = new Pn(e, uS, !1, e.toLowerCase(), null, !1, !1) }); var h1 = /[\-\:]([a-z])/g, p1 = function (t) { return t[1].toUpperCase() }; [ 'accent-height', 'alignment-baseline', 'arabic-form', 'baseline-shift', 'cap-height', 'clip-path', 'clip-rule', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'dominant-baseline', 'enable-background', 'fill-opacity', 'fill-rule', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'glyph-name', 'glyph-orientation-horizontal', 'glyph-orientation-vertical', 'horiz-adv-x', 'horiz-origin-x', 'image-rendering', 'letter-spacing', 'lighting-color', 'marker-end', 'marker-mid', 'marker-start', 'overline-position', 'overline-thickness', 'paint-order', 'panose-1', 'pointer-events', 'rendering-intent', 'shape-rendering', 'stop-color', 'stop-opacity', 'strikethrough-position', 'strikethrough-thickness', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'text-anchor', 'text-decoration', 'text-rendering', 'underline-position', 'underline-thickness', 'unicode-bidi', 'unicode-range', 'units-per-em', 'v-alphabetic', 'v-hanging', 'v-ideographic', 'v-mathematical', 'vector-effect', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'word-spacing', 'writing-mode', 'xmlns:xlink', 'x-height' ].forEach(function (e) { var t = e.replace(h1, p1); fn[t] = new Pn(t, Mo, !1, e, null, !1, !1) }), [ 'xlink:actuate', 'xlink:arcrole', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type' ].forEach(function (e) { var t = e.replace(h1, p1); fn[t] = new Pn(t, Mo, !1, e, 'http://www.w3.org/1999/xlink', !1, !1) }), [ 'xml:base', 'xml:lang', 'xml:space' ].forEach(function (e) { var t = e.replace(h1, p1); fn[t] = new Pn(t, Mo, !1, e, 'http://www.w3.org/XML/1998/namespace', !1, !1) }), [ 'tabIndex', 'crossOrigin' ].forEach(function (e) { fn[e] = new Pn(e, Mo, !1, e.toLowerCase(), null, !1, !1) }); var B$ = 'xlinkHref'; fn[B$] = new Pn('xlinkHref', Mo, !1, 'xlink:href', 'http://www.w3.org/1999/xlink', !0, !1), [ 'src', 'href', 'action', 'formAction' ].forEach(function (e) { fn[e] = new Pn(e, Mo, !1, e.toLowerCase(), null, !0, !0) }); var g1 = th, k$ = g1.CAMELCASE, P$ = g1.SAME, cS = g1.possibleStandardNames, R$ = ':A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD', T$ = R$ + '\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040', I$ = RegExp.prototype.test.bind(new RegExp('^(data|aria)-[' + T$ + ']*$')), N$ = Object.keys(cS).reduce(function (e, t) { var n = cS[t]; return n === P$ ? e[t] = t : n === k$ ? e[t.toLowerCase()] = t : e[t] = n, e }, { }); Br.BOOLEAN = rh, Br.BOOLEANISH_STRING = nh, Br.NUMERIC = uS, Br.OVERLOADED_BOOLEAN = d1, Br.POSITIVE_NUMERIC = lS, Br.RESERVED = aS, Br.STRING = Mo, Br.getPropertyInfo = O$, Br.isCustomAttribute = I$, Br.possibleStandardNames = N$; var fS = { }, m1 = { exports: { } }, dS = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, L$ = /\n/g, M$ = /^\s*/, $$ = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, j$ = /^:\s*/, z$ = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, U$ = /^[;\s]*/, H$ = /^\s+|\s+$/g, W$ = ` `, hS = '/', pS = '*', Fs = '', V$ = 'comment', K$ = 'declaration', q$ = function (e, t) { if (typeof e != 'string') throw new TypeError('First argument must be a string'); if (!e) return []; t = t || { }; var n = 1, r = 1; function i(v) { var p = v.match(L$); p && (n += p.length); var E = v.lastIndexOf(W$); r = ~E ? v.length - E : r + v.length } function o() { var v = { line: n, column: r }; return function (p) { return p.position = new a(v), f(), p } } function a(v) { this.start = v, this.end = { line: n, column: r }, this.source = t.source } a.prototype.content = e; function u(v) { var p = new Error(t.source + ':' + n + ':' + r + ': ' + v); if (p.reason = v, p.filename = t.source, p.line = n, p.column = r, p.source = e, !t.silent) throw p } function c(v) { var p = v.exec(e); if (p) { var E = p[0]; return i(E), e = e.slice(E.length), p } } function f() { c(M$) } function h(v) { var p; for (v = v || [ ]; p = g(); ) p !== !1 && v.push(p); return v } function g() { var v = o(); if (!(hS != e.charAt(0) || pS != e.charAt(1))) { for (var p = 2; Fs != e.charAt(p) && (pS != e.charAt(p) || hS != e.charAt(p + 1)); ) ++p; if (p += 2, Fs === e.charAt(p - 1)) return u('End of comment missing'); var E = e.slice(2, p - 2); return r += 2, i(E), e = e.slice(p), r += 2, v({ type: V$, comment: E }) } } function m() { var v = o(), p = c($$); if (p) { if (g(), !c(j$)) return u('property missing \':\''); var E = c(z$), _ = v({ type: K$, property: gS(p[0].replace(dS, Fs)), value: E ? gS(E[0].replace(dS, Fs)) : Fs }); return c(U$), _ } } function y() { var v = [ ]; h(v); for (var p; p = m(); ) p !== !1 && (v.push(p), h(v)); return v } return f(), y() }; function gS(e) { return e ? e.replace(H$, Fs) : Fs } var G$ = q$; function mS(e, t) { var n = null; if (!e || typeof e != 'string') return n; for (var r, i = G$(e), o = typeof t == 'function', a, u, c = 0, f = i.length; c < f; c++) r = i[c], a = r.property, u = r.value, o ? t(a, u, r) : u && (n || (n = { }), n[a] = u); return n } m1.exports = mS, m1.exports.default = mS; var Q$ = m1.exports, ih = { }; ih.__esModule = !0, ih.camelCase = void 0; var Y$ = /^--[a-zA-Z0-9-]+$/, J$ = /-([a-z])/g, X$ = /^[^-]+$/, Z$ = /^-(webkit|moz|ms|o|khtml)-/, ej = /^-(ms)-/, tj = function (e) { return !e || X$.test(e) || Y$.test(e) }, nj = function (e, t) { return t.toUpperCase() }, vS = function (e, t) { return ''.concat(t, '-') }, rj = function (e, t) { return t === void 0 && (t = { }), tj(e) ? e : (e = e.toLowerCase(), t.reactCompat ? e = e.replace(ej, vS) : e = e.replace(Z$, vS), e.replace(J$, nj)) }; ih.camelCase = rj, function (e) { var t = Gt && Gt.__importDefault || function (o) { return o && o.__esModule ? o : { default: o } }; e.__esModule = !0; var n = t(Q$), r = ih; function i(o, a) { var u = { }; return !o || typeof o != 'string' || (0, n.default) (o, function (c, f) { c && f && (u[(0, r.camelCase) (c, a)] = f) }), u } e.default = i }(fS); var ij = D, oj = fS.default; function sj(e, t) { if (!e || typeof e != 'object') throw new TypeError('First argument must be an object'); var n, r, i = typeof t == 'function', o = { }, a = { }; for (n in e) { if (r = e[n], i && (o = t(n, r), o && o.length === 2)) { a[o[0]] = o[1]; continue } typeof r == 'string' && (a[r] = n) } return a } function aj(e, t) { if (e.indexOf('-') === - 1) return t && typeof t.is == 'string'; switch (e) { case 'annotation-xml': case 'color-profile': case 'font-face': case 'font-face-src': case 'font-face-uri': case 'font-face-format': case 'font-face-name': case 'missing-glyph': return !1; default: return !0 } } var uj = { reactCompat: !0 }; function lj(e, t) { if (e != null) try { t.style = oj(e, uj) } catch { t.style = { } } } var cj = ij.version.split('.') [0] >= 16, yS = new Set(['tr', 'tbody', 'thead', 'tfoot', 'colgroup', 'table', 'head', 'html', 'frameset']); function fj(e) { return !yS.has(e.name) } var wS = { PRESERVE_CUSTOM_ATTRIBUTES: cj, invertObject: sj, isCustomComponent: aj, setStyleProp: lj, canTextBeChildOfNode: fj, elementsWithNoTextChildren: yS }, Ul = Br, bS = wS, dj = [ 'checked', 'value' ], hj = [ 'input', 'select', 'textarea' ], pj = { reset: !0, submit: !0 }, _S = function (t, n) { t = t || { }; var r, i, o, a, u, c = { }, f = t.type && pj[t.type]; for (r in t) { if (o = t[r], Ul.isCustomAttribute(r)) { c[r] = o; continue } if (i = r.toLowerCase(), a = CS(i), a) { switch (u = Ul.getPropertyInfo(a), dj.indexOf(a) !== - 1 && hj.indexOf(n) !== - 1 && !f && (a = CS('default' + i)), c[a] = o, u && u.type) { case Ul.BOOLEAN: c[a] = !0; break; case Ul.OVERLOADED_BOOLEAN: o === '' && (c[a] = !0); break } continue } bS.PRESERVE_CUSTOM_ATTRIBUTES && (c[r] = o) } return bS.setStyleProp(t.style, c), c }; function CS(e) { return Ul.possibleStandardNames[e] } var gj = D, mj = _S, oh = wS, vj = oh.setStyleProp, yj = oh.canTextBeChildOfNode; function ES(e, t) { t = t || { }; for (var n = t.library || gj, r = n.cloneElement, i = n.createElement, o = n.isValidElement, a = [ ], u, c, f = typeof t.replace == 'function', h, g, m, y = t.trim, v = 0, p = e.length; v < p; v++) { if (u = e[v], f && (h = t.replace(u), o(h))) { p > 1 && (h = r(h, { key: h.key || v })), a.push(h); continue } if (u.type === 'text') { if (c = !u.data.trim().length, c && u.parent && !yj(u.parent) || y && c) continue; a.push(u.data); continue } switch (g = u.attribs, wj(u) ? vj(g.style, g) : g && (g = mj(g, u.name)), m = null, u.type) { case 'script': case 'style': u.children[0] && (g.dangerouslySetInnerHTML = { __html: u.children[0].data }); break; case 'tag': u.name === 'textarea' && u.children[0] ? g.defaultValue = u.children[0].data : u.children && u.children.length && (m = ES(u.children, t)); break; default: continue } p > 1 && (g.key = v), a.push(i(u.name, g, m)) } return a.length === 1 ? a[0] : a } function wj(e) { return oh.PRESERVE_CUSTOM_ATTRIBUTES && e.type === 'tag' && oh.isCustomComponent(e.name, e.attribs) } var bj = ES, sh = t1, Ua = b$, _j = _S, DS = bj; Ua = typeof Ua.default == 'function' ? Ua.default : Ua; var Cj = { lowerCaseAttributeNames: !1 }; function vi(e, t) { if (typeof e != 'string') throw new TypeError('First argument must be a string'); return e === '' ? [ ] : (t = t || { }, DS(Ua(e, t.htmlparser2 || Cj), t)) } vi.domToReact = DS, vi.htmlToDOM = Ua, vi.attributesToProps = _j, vi.Comment = sh.Comment, vi.Element = sh.Element, vi.ProcessingInstruction = sh.ProcessingInstruction, vi.Text = sh.Text; var Ej = vi; vi.default = vi; const yi = vr(Ej); yi.domToReact, yi.htmlToDOM; var xS = yi.attributesToProps; yi.Comment; var AS = yi.Element; yi.ProcessingInstruction, yi.Text; const SS = e=>{ const [t, n] = D.useState(!0), [ r, i ] = D.useState(!1), o = yy(e), a = () =>n(!1); return D.useEffect(() =>{ o && i(!0) }, [ o ]), { activated: r, loading: t, onLoadend: a } }, v1 = { root: '_root_169ev_1', iframe: '_iframe_169ev_5', 'iframe-loading': '_iframe-loading_169ev_11' }, { iframe: Dj } = v1, xj = v1['iframe-loading'], Aj = (e, { container: t }) =>{ const { activated: n, loading: r, onLoadend: i } = SS(t), { htmlHeight: o, htmlWidth: a } = e, c = (() =>{ var y; return !a || !o ? o : (((y = t == null ? void 0 : t.current) == null ? void 0 : y.offsetWidth) || yD()) * o / a }) (), f = { replace: g=>{ if (g instanceof AS && g.attribs && g.name === 'iframe') { const m = xS({ ...g.attribs, width: '100%', height: c ? c.toFixed() : g.attribs.height }); return W('iframe', { ...m, className: r ? xj : Dj, onLoad: i }) } } }, h = yi(e.html, f); return { activated: n, content: h, loading: r, height: c, width: a } }, { root: Sj } = v1, ah = ({ media: e }) =>{ const t = D.useRef(null), { activated: n, content: r, loading: i, height: o } = Aj(e, { container: t }); return Ve('div', { className: Sj, ref: t, children: [ i && W(e1, { height: o }), n && r ] }) }, y1 = { root: '_root_169ev_1', iframe: '_iframe_169ev_5', 'iframe-loading': '_iframe-loading_169ev_11' }, { iframe: Oj } = y1, Fj = y1['iframe-loading'], Bj = (e, { container: t }) =>{ const { html: n, htmlHeight: r } = e, { activated: i, loading: o, onLoadend: a } = SS(t), c = yi(n, { replace: f=>{ if (f instanceof AS && f.attribs && f.name === 'iframe') { const h = xS(f.attribs); return W('iframe', { ...h, className: o ? Fj : Oj, onLoad: a }) } } }); return { activated: i, content: c, height: r, loading: o } }, { root: kj } = y1, Pj = ({ media: e }) =>{ const t = D.useRef(null), { activated: n, content: r, height: i, loading: o } = Bj(e, { container: t }); return Ve('div', { className: kj, ref: t, children: [ o && W(e1, { height: i }), n && r ] }) }, Rj = e=>{ const { mediaType: t, thumbnailHeight: n, thumbnailUrl: r, thumbnailWidth: i } = e; return t !== tt.MP4_VIDEO && s8(r) ? (() =>{ const u = n || null, c = i || yD(); return CD(r, { h: u, w: c }) }) () : r }, Tj = e=>{ const { mediaType: t, resolvedUrlRedirect: n, thumbnailUrl: r, urlRedirect: i } = e, o = t === tt.MP4_VIDEO; return { imageUrl: n || i || r, isVideo: o, thumbnailUrl: Rj(e) } }, Ij = { image: '_image_1mcab_1' }, { image: Nj } = Ij, uh = ({ media: e }) =>{ const { imageUrl: t, isVideo: n, thumbnailUrl: r } = Tj(e); return W('a', { href: t, target: '_blank', rel: 'nofollow noreferrer', children: n ? W('video', { src: r, autoPlay: !0, muted: !0, loop: !0 }) : W('img', { className: Nj, src: r, loading: 'lazy', alt: 'Thumbnail' }) }) }, Lj = { root: '_root_1wfe0_1' }, { root: Mj } = Lj, $j = ({ media: e }) =>W('div', { className: Mj, children: yi(e.html) }), OS = '//platform.twitter.com/widgets.js', jj = () =>{ let e = document.querySelector(`script[src*="${ OS }"]`); D.useEffect(() =>{ e || (e = document.createElement('script'), e.src = OS, e.async = !0, document.body.appendChild(e)) }, [ ]) }, zj = '#2e9fff', Uj = e=>{ var h, g; const { url: t, resolvedUrl: n } = e, r = D.useRef(null), [ i, o ] = D.useState(!1); jj(); const a = (h = window.document.documentElement.lang) == null ? void 0 : h.substring(0, 2), u = window.document.body.classList.contains('dark') ? 'dark' : 'light', c = n.indexOf('/status') !== - 1, f = async m=>{ var y; await((y = window.twttr) == null ? void 0 : y.widgets.load(m)), o(!0) }; return D.useEffect(() =>{ var m; !i && ((m = window.twttr) != null && m.init) && r.current && f(r.current) }, [ (g = window.twttr) == null ? void 0 : g.init, i ]), { language: a, linkColor: zj, theme: u, url: c ? n : t, widgetRef: r } }, Hj = ({ media: e }) =>{ const { language: t, linkColor: n, theme: r, url: i, widgetRef: o } = Uj(e); return Ve('div', { ref: o, children: [ W('meta', { name: 'twitter:widgets:csp', content: 'on' }), W('blockquote', { className: 'twitter-tweet', 'data-theme': r, 'data-link-color': n, lang: t, children: W('a', { href: i }) }) ] }) }, kr = { PLAY_HIDE: { icon: 'proceed', expandMessage: 'Play', collapseMessage: 'Hide' }, VIEW_HIDE: { icon: 'proceed', expandMessage: 'View', collapseMessage: 'Hide' }, VIEW_IMAGE: { icon: 'images', expandMessage: 'View', collapseMessage: 'Hide' } }; tt.FACEBOOK_PHOTO + '', kr.VIEW_IMAGE, tt.IMAGE_UPLOAD + '', kr.VIEW_IMAGE, tt.IMAGE + '', kr.VIEW_IMAGE, tt.MP4_VIDEO + '', kr.VIEW_IMAGE, tt.VIMEO_VIDEO + '', { ...kr.PLAY_HIDE }, tt.VINE_VIDEO + '', { ...kr.PLAY_HIDE }, tt.YOUTUBE_VIDEO + '', { ...kr.PLAY_HIDE }, tt.SOUNDCLOUD_SOUND + '', { ...kr.PLAY_HIDE }, tt.GIF_VIDEO + '', kr.VIEW_HIDE, tt.TWITTER_STATUS + '', { ...kr.VIEW_HIDE }, tt.FACEBOOK_VIDEO + '', { ...kr.VIEW_HIDE }, tt.GOOGLE_MAP + '', { ...kr.VIEW_HIDE }, tt.FACEBOOK_POST + '', tt.FACEBOOK_PAGE + '', tt.WEBPAGE + ''; const FS = { [ tt.FACEBOOK_PHOTO ]: uh, [ tt.IMAGE_UPLOAD ]: uh, [ tt.IMAGE ]: uh, [ tt.MP4_VIDEO ]: uh, [ tt.GIF_VIDEO ]: Pj, [ tt.FACEBOOK_VIDEO ]: ah, [ tt.GOOGLE_MAP ]: ah, [ tt.VIMEO_VIDEO ]: ah, [ tt.YOUTUBE_VIDEO ]: ah, [ tt.SOUNDCLOUD_SOUND ]: $j, [ tt.TWITTER_STATUS ]: Hj, [ tt.FACEBOOK_POST ]: null, [ tt.FACEBOOK_PAGE ]: null, [ tt.VINE_VIDEO ]: null, [ tt.WEBPAGE ]: null }, ile = { container: '_container_1r7qu_1' }, sle = { mention: '_mention_1xkh2_1' }, Wj = [ 'top', 'right', 'bottom', 'left' ], Ha = Math.min, sr = Math.max, lh = Math.round, ch = Math.floor, $o = e=>({ x: e, y: e }), Vj = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' }, Kj = { start: 'end', end: 'start' }; function BS(e, t, n) { return sr(e, Ha(t, n)) } function Wa(e, t) { return typeof e == 'function' ? e(t) : e } function jo(e) { return e.split('-') [0] } function Hl(e) { return e.split('-') [1] } function kS(e) { return e === 'x' ? 'y' : 'x' } function PS(e) { return e === 'y' ? 'height' : 'width' } function Wl(e) { return ['top', 'bottom'].includes(jo(e)) ? 'y' : 'x' } function RS(e) { return kS(Wl(e)) } function qj(e, t, n) { n === void 0 && (n = !1); const r = Hl(e), i = RS(e), o = PS(i); let a = i === 'x' ? r === (n ? 'end' : 'start') ? 'right' : 'left' : r === 'start' ? 'bottom' : 'top'; return t.reference[o] > t.floating[o] && (a = fh(a)), [ a, fh(a) ] } function Gj(e) { const t = fh(e); return [w1(e), t, w1(t)] } function w1(e) { return e.replace(/start|end/g, t=>Kj[t]) } function Qj(e, t, n) { const r = [ 'left', 'right' ], i = [ 'right', 'left' ], o = [ 'top', 'bottom' ], a = [ 'bottom', 'top' ]; switch (e) { case 'top': case 'bottom': return n ? t ? i : r : t ? r : i; case 'left': case 'right': return t ? o : a; default: return [] } } function Yj(e, t, n, r) { const i = Hl(e); let o = Qj(jo(e), n === 'start', r); return i && (o = o.map(a=>a + '-' + i), t && (o = o.concat(o.map(w1)))), o } function fh(e) { return e.replace(/left|right|bottom|top/g, t=>Vj[t]) } function Jj(e) { return { top: 0, right: 0, bottom: 0, left: 0, ...e } } function Xj(e) { return typeof e != 'number' ? Jj(e) : { top: e, right: e, bottom: e, left: e } } function dh(e) { return { ...e, top: e.y, left: e.x, right: e.x + e.width, bottom: e.y + e.height } } function TS(e, t, n) { let { reference: r, floating: i } = e; const o = Wl(t), a = RS(t), u = PS(a), c = jo(t), f = o === 'y', h = r.x + r.width / 2 - i.width / 2, g = r.y + r.height / 2 - i.height / 2, m = r[u] / 2 - i[u] / 2; let y; switch (c) { case 'top': y = { x: h, y: r.y - i.height }; break; case 'bottom': y = { x: h, y: r.y + r.height }; break; case 'right': y = { x: r.x + r.width, y: g }; break; case 'left': y = { x: r.x - i.width, y: g }; break; default: y = { x: r.x, y: r.y } } switch (Hl(t)) { case 'start': y[a] -= m * (n && f ? - 1 : 1); break; case 'end': y[a] += m * (n && f ? - 1 : 1); break } return y } const Zj = async(e, t, n) =>{ const { placement: r = 'bottom', strategy: i = 'absolute', middleware: o = [ ], platform: a } = n, u = o.filter(Boolean), c = await(a.isRTL == null ? void 0 : a.isRTL(t)); let f = await a.getElementRects({ reference: e, floating: t, strategy: i }), { x: h, y: g } = TS(f, r, c), m = r, y = { }, v = 0; for (let p = 0; p < u.length; p++) { const { name: E, fn: _ } = u[p], { x: b, y: x, data: O, reset: B } = await _({ x: h, y: g, initialPlacement: r, placement: m, strategy: i, middlewareData: y, rects: f, platform: a, elements: { reference: e, floating: t } }); if (h = b ?? h, g = x ?? g, y = { ...y, [ E ]: { ...y[E], ...O } }, B && v <= 50) { v++, typeof B == 'object' && (B.placement && (m = B.placement), B.rects && (f = B.rects === !0 ? await a.getElementRects({ reference: e, floating: t, strategy: i }) : B.rects), { x: h, y: g } = TS(f, m, c)), p = - 1; continue } } return { x: h, y: g, placement: m, strategy: i, middlewareData: y } }; async function Vl(e, t) { var n; t === void 0 && (t = { }); const { x: r, y: i, platform: o, rects: a, elements: u, strategy: c } = e, { boundary: f = 'clippingAncestors', rootBoundary: h = 'viewport', elementContext: g = 'floating', altBoundary: m = !1, padding: y = 0 } = Wa(t, e), v = Xj(y), E = u[m ? g === 'floating' ? 'reference' : 'floating' : g], _ = dh(await o.getClippingRect({ element: (n = await(o.isElement == null ? void 0 : o.isElement(E))) == null || n ? E : E.contextElement || await(o.getDocumentElement == null ? void 0 : o.getDocumentElement(u.floating)), boundary: f, rootBoundary: h, strategy: c })), b = g === 'floating' ? { ...a.floating, x: r, y: i } : a.reference, x = await(o.getOffsetParent == null ? void 0 : o.getOffsetParent(u.floating)), O = await(o.isElement == null ? void 0 : o.isElement(x)) ? await(o.getScale == null ? void 0 : o.getScale(x)) || { x: 1, y: 1 } : { x: 1, y: 1 }, B = dh(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({ rect: b, offsetParent: x, strategy: c }) : b); return { top: (_.top - B.top + v.top) / O.y, bottom: (B.bottom - _.bottom + v.bottom) / O.y, left: (_.left - B.left + v.left) / O.x, right: (B.right - _.right + v.right) / O.x } } const IS = function (e) { return e === void 0 && (e = { }), { name: 'flip', options: e, async fn(t) { var n; const { placement: r, middlewareData: i, rects: o, initialPlacement: a, platform: u, elements: c } = t, { mainAxis: f = !0, crossAxis: h = !0, fallbackPlacements: g, fallbackStrategy: m = 'bestFit', fallbackAxisSideDirection: y = 'none', flipAlignment: v = !0, ...p } = Wa(e, t), E = jo(r), _ = jo(a) === a, b = await(u.isRTL == null ? void 0 : u.isRTL(c.floating)), x = g || (_ || !v ? [ fh(a) ] : Gj(a)); !g && y !== 'none' && x.push(...Yj(a, v, y, b)); const O = [ a, ...x ], B = await Vl(t, p), k = [ ]; let P = ((n = i.flip) == null ? void 0 : n.overflows) || [ ]; if (f && k.push(B[E]), h) { const X = qj(r, o, b); k.push(B[X[0]], B[X[1]]) } if (P = [ ...P, { placement: r, overflows: k } ], !k.every(X=>X <= 0)) { var I, Y; const X = (((I = i.flip) == null ? void 0 : I.index) || 0) + 1, $ = O[X]; if ($) return { data: { index: X, overflows: P }, reset: { placement: $ } }; let U = (Y = P.filter(T=>T.overflows[0] <= 0).sort((T, G) =>T.overflows[1] - G.overflows[1]) [0]) == null ? void 0 : Y.placement; if (!U) switch (m) { case 'bestFit': { var j; const T = (j = P.map(G=>[G.placement, G.overflows.filter(se=>se > 0).reduce((se, re) =>se + re, 0)]).sort((G, se) =>G[1] - se[1]) [0]) == null ? void 0 : j[0]; T && (U = T); break } case 'initialPlacement': U = a; break } if (r !== U) return { reset: { placement: U } } } return { } } } }; function NS(e, t) { return { top: e.top - t.height, right: e.right - t.width, bottom: e.bottom - t.height, left: e.left - t.width } } function LS(e) { return Wj.some(t=>e[t] >= 0) } const ez = function (e) { return e === void 0 && (e = { }), { name: 'hide', options: e, async fn(t) { const { rects: n } = t, { strategy: r = 'referenceHidden', ...i } = Wa(e, t); switch (r) { case 'referenceHidden': { const o = await Vl(t, { ...i, elementContext: 'reference' }), a = NS(o, n.reference); return { data: { referenceHiddenOffsets: a, referenceHidden: LS(a) } } } case 'escaped': { const o = await Vl(t, { ...i, altBoundary: !0 }), a = NS(o, n.floating); return { data: { escapedOffsets: a, escaped: LS(a) } } } default: return { } } } } }; async function tz(e, t) { const { placement: n, platform: r, elements: i } = e, o = await(r.isRTL == null ? void 0 : r.isRTL(i.floating)), a = jo(n), u = Hl(n), c = Wl(n) === 'y', f = [ 'left', 'top' ].includes(a) ? - 1 : 1, h = o && c ? - 1 : 1, g = Wa(t, e); let { mainAxis: m, crossAxis: y, alignmentAxis: v } = typeof g == 'number' ? { mainAxis: g, crossAxis: 0, alignmentAxis: null } : { mainAxis: 0, crossAxis: 0, alignmentAxis: null, ...g }; return u && typeof v == 'number' && (y = u === 'end' ? v * - 1 : v), c ? { x: y * h, y: m * f } : { x: m * f, y: y * h } } const hh = function (e) { return e === void 0 && (e = 0), { name: 'offset', options: e, async fn(t) { const { x: n, y: r } = t, i = await tz(t, e); return { x: n + i.x, y: r + i.y, data: i } } } }, b1 = function (e) { return e === void 0 && (e = { }), { name: 'shift', options: e, async fn(t) { const { x: n, y: r, placement: i } = t, { mainAxis: o = !0, crossAxis: a = !1, limiter: u = { fn: E=>{ let { x: _, y: b } = E; return { x: _, y: b } } }, ...c } = Wa(e, t), f = { x: n, y: r }, h = await Vl(t, c), g = Wl(jo(i)), m = kS(g); let y = f[m], v = f[g]; if (o) { const E = m === 'y' ? 'top' : 'left', _ = m === 'y' ? 'bottom' : 'right', b = y + h[E], x = y - h[_]; y = BS(b, y, x) } if (a) { const E = g === 'y' ? 'top' : 'left', _ = g === 'y' ? 'bottom' : 'right', b = v + h[E], x = v - h[_]; v = BS(b, v, x) } const p = u.fn({ ...t, [ m ]: y, [ g ]: v }); return { ...p, data: { x: p.x - n, y: p.y - r } } } } }, nz = function (e) { return e === void 0 && (e = { }), { name: 'size', options: e, async fn(t) { const { placement: n, rects: r, platform: i, elements: o } = t, { apply: a = () =>{ }, ...u } = Wa(e, t), c = await Vl(t, u), f = jo(n), h = Hl(n), g = Wl(n) === 'y', { width: m, height: y } = r.floating; let v, p; f === 'top' || f === 'bottom' ? (v = f, p = h === (await(i.isRTL == null ? void 0 : i.isRTL(o.floating)) ? 'start' : 'end') ? 'left' : 'right') : (p = f, v = h === 'end' ? 'top' : 'bottom'); const E = y - c[v], _ = m - c[p], b = !t.middlewareData.shift; let x = E, O = _; if (g) { const k = m - c.left - c.right; O = h || b ? Ha(_, k) : k } else { const k = y - c.top - c.bottom; x = h || b ? Ha(E, k) : k } if (b && !h) { const k = sr(c.left, 0), P = sr(c.right, 0), I = sr(c.top, 0), Y = sr(c.bottom, 0); g ? O = m - 2 * (k !== 0 || P !== 0 ? k + P : sr(c.left, c.right)) : x = y - 2 * (I !== 0 || Y !== 0 ? I + Y : sr(c.top, c.bottom)) } await a({ ...t, availableWidth: O, availableHeight: x }); const B = await i.getDimensions(o.floating); return m !== B.width || y !== B.height ? { reset: { rects: !0 } } : { } } } }; function zo(e) { return MS(e) ? (e.nodeName || '').toLowerCase() : '#document' } function ar(e) { var t; return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window } function Vi(e) { var t; return (t = (MS(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement } function MS(e) { return e instanceof Node || e instanceof ar(e).Node } function Ut(e) { return e instanceof Element || e instanceof ar(e).Element } function dn(e) { return e instanceof HTMLElement || e instanceof ar(e).HTMLElement } function _1(e) { return typeof ShadowRoot > 'u' ? !1 : e instanceof ShadowRoot || e instanceof ar(e).ShadowRoot } function Kl(e) { const { overflow: t, overflowX: n, overflowY: r, display: i } = ur(e); return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !['inline', 'contents'].includes(i) } function rz(e) { return ['table', 'td', 'th'].includes(zo(e)) } function C1(e) { const t = E1(), n = ur(e); return n.transform !== 'none' || n.perspective !== 'none' || (n.containerType ? n.containerType !== 'normal' : !1) || !t && (n.backdropFilter ? n.backdropFilter !== 'none' : !1) || !t && (n.filter ? n.filter !== 'none' : !1) || [ 'transform', 'perspective', 'filter' ].some(r=>(n.willChange || '').includes(r)) || [ 'paint', 'layout', 'strict', 'content' ].some(r=>(n.contain || '').includes(r)) } function iz(e) { let t = Va(e); for (; dn(t) && !ph(t); ) { if (C1(t)) return t; t = Va(t) } return null } function E1() { return typeof CSS > 'u' || !CSS.supports ? !1 : CSS.supports('-webkit-backdrop-filter', 'none') } function ph(e) { return ['html', 'body', '#document'].includes(zo(e)) } function ur(e) { return ar(e).getComputedStyle(e) } function gh(e) { return Ut(e) ? { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop } : { scrollLeft: e.pageXOffset, scrollTop: e.pageYOffset } } function Va(e) { if (zo(e) === 'html') return e; const t = e.assignedSlot || e.parentNode || _1(e) && e.host || Vi(e); return _1(t) ? t.host : t } function $S(e) { const t = Va(e); return ph(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : dn(t) && Kl(t) ? t : $S(t) } function Bs(e, t) { var n; t === void 0 && (t = [ ]); const r = $S(e), i = r === ((n = e.ownerDocument) == null ? void 0 : n.body), o = ar(r); return i ? t.concat(o, o.visualViewport || [ ], Kl(r) ? r : [ ]) : t.concat(r, Bs(r)) } function jS(e) { const t = ur(e); let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0; const i = dn(e), o = i ? e.offsetWidth : n, a = i ? e.offsetHeight : r, u = lh(n) !== o || lh(r) !== a; return u && (n = o, r = a), { width: n, height: r, $: u } } function D1(e) { return Ut(e) ? e : e.contextElement } function Ka(e) { const t = D1(e); if (!dn(t)) return $o(1); const n = t.getBoundingClientRect(), { width: r, height: i, $: o } = jS(t); let a = (o ? lh(n.width) : n.width) / r, u = (o ? lh(n.height) : n.height) / i; return (!a || !Number.isFinite(a)) && (a = 1), (!u || !Number.isFinite(u)) && (u = 1), { x: a, y: u } } const oz = $o(0); function zS(e) { const t = ar(e); return !E1() || !t.visualViewport ? oz : { x: t.visualViewport.offsetLeft, y: t.visualViewport.offsetTop } } function sz(e, t, n) { return t === void 0 && (t = !1), !n || t && n !== ar(e) ? !1 : t } function ks(e, t, n, r) { t === void 0 && (t = !1), n === void 0 && (n = !1); const i = e.getBoundingClientRect(), o = D1(e); let a = $o(1); t && (r ? Ut(r) && (a = Ka(r)) : a = Ka(e)); const u = sz(o, n, r) ? zS(o) : $o(0); let c = (i.left + u.x) / a.x, f = (i.top + u.y) / a.y, h = i.width / a.x, g = i.height / a.y; if (o) { const m = ar(o), y = r && Ut(r) ? ar(r) : r; let v = m.frameElement; for (; v && r && y !== m; ) { const p = Ka(v), E = v.getBoundingClientRect(), _ = ur(v), b = E.left + (v.clientLeft + parseFloat(_.paddingLeft)) * p.x, x = E.top + (v.clientTop + parseFloat(_.paddingTop)) * p.y; c *= p.x, f *= p.y, h *= p.x, g *= p.y, c += b, f += x, v = ar(v).frameElement } } return dh({ width: h, height: g, x: c, y: f }) } function az(e) { let { rect: t, offsetParent: n, strategy: r } = e; const i = dn(n), o = Vi(n); if (n === o) return t; let a = { scrollLeft: 0, scrollTop: 0 }, u = $o(1); const c = $o(0); if ((i || !i && r !== 'fixed') && ((zo(n) !== 'body' || Kl(o)) && (a = gh(n)), dn(n))) { const f = ks(n); u = Ka(n), c.x = f.x + n.clientLeft, c.y = f.y + n.clientTop } return { width: t.width * u.x, height: t.height * u.y, x: t.x * u.x - a.scrollLeft * u.x + c.x, y: t.y * u.y - a.scrollTop * u.y + c.y } } function uz(e) { return Array.from(e.getClientRects()) } function US(e) { return ks(Vi(e)).left + gh(e).scrollLeft } function lz(e) { const t = Vi(e), n = gh(e), r = e.ownerDocument.body, i = sr(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), o = sr(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight); let a = - n.scrollLeft + US(e); const u = - n.scrollTop; return ur(r).direction === 'rtl' && (a += sr(t.clientWidth, r.clientWidth) - i), { width: i, height: o, x: a, y: u } } function cz(e, t) { const n = ar(e), r = Vi(e), i = n.visualViewport; let o = r.clientWidth, a = r.clientHeight, u = 0, c = 0; if (i) { o = i.width, a = i.height; const f = E1(); (!f || f && t === 'fixed') && (u = i.offsetLeft, c = i.offsetTop) } return { width: o, height: a, x: u, y: c } } function fz(e, t) { const n = ks(e, !0, t === 'fixed'), r = n.top + e.clientTop, i = n.left + e.clientLeft, o = dn(e) ? Ka(e) : $o(1), a = e.clientWidth * o.x, u = e.clientHeight * o.y, c = i * o.x, f = r * o.y; return { width: a, height: u, x: c, y: f } } function HS(e, t, n) { let r; if (t === 'viewport') r = cz(e, n); else if (t === 'document') r = lz(Vi(e)); else if (Ut(t)) r = fz(t, n); else { const i = zS(e); r = { ...t, x: t.x - i.x, y: t.y - i.y } } return dh(r) } function WS(e, t) { const n = Va(e); return n === t || !Ut(n) || ph(n) ? !1 : ur(n).position === 'fixed' || WS(n, t) } function dz(e, t) { const n = t.get(e); if (n) return n; let r = Bs(e).filter(u=>Ut(u) && zo(u) !== 'body'), i = null; const o = ur(e).position === 'fixed'; let a = o ? Va(e) : e; for (; Ut(a) && !ph(a); ) { const u = ur(a), c = C1(a); !c && u.position === 'fixed' && (i = null), (o ? !c && !i : !c && u.position === 'static' && !!i && [ 'absolute', 'fixed' ].includes(i.position) || Kl(a) && !c && WS(e, a)) ? r = r.filter(h=>h !== a) : i = u, a = Va(a) } return t.set(e, r), r } function hz(e) { let { element: t, boundary: n, rootBoundary: r, strategy: i } = e; const a = [ ...n === 'clippingAncestors' ? dz(t, this._c) : [ ].concat(n), r ], u = a[0], c = a.reduce((f, h) =>{ const g = HS(t, h, i); return f.top = sr(g.top, f.top), f.right = Ha(g.right, f.right), f.bottom = Ha(g.bottom, f.bottom), f.left = sr(g.left, f.left), f }, HS(t, u, i)); return { width: c.right - c.left, height: c.bottom - c.top, x: c.left, y: c.top } } function pz(e) { return jS(e) } function gz(e, t, n) { const r = dn(t), i = Vi(t), o = n === 'fixed', a = ks(e, !0, o, t); let u = { scrollLeft: 0, scrollTop: 0 }; const c = $o(0); if (r || !r && !o) if ((zo(t) !== 'body' || Kl(i)) && (u = gh(t)), r) { const f = ks(t, !0, o, t); c.x = f.x + t.clientLeft, c.y = f.y + t.clientTop } else i && (c.x = US(i)); return { x: a.left + u.scrollLeft - c.x, y: a.top + u.scrollTop - c.y, width: a.width, height: a.height } } function VS(e, t) { return !dn(e) || ur(e).position === 'fixed' ? null : t ? t(e) : e.offsetParent } function KS(e, t) { const n = ar(e); if (!dn(e)) return n; let r = VS(e, t); for (; r && rz(r) && ur(r).position === 'static'; ) r = VS(r, t); return r && (zo(r) === 'html' || zo(r) === 'body' && ur(r).position === 'static' && !C1(r)) ? n : r || iz(e) || n } const mz = async function (e) { let { reference: t, floating: n, strategy: r } = e; const i = this.getOffsetParent || KS, o = this.getDimensions; return { reference: gz(t, await i(n), r), floating: { x: 0, y: 0, ...await o(n) } } }; function vz(e) { return ur(e).direction === 'rtl' } const yz = { convertOffsetParentRelativeRectToViewportRelativeRect: az, getDocumentElement: Vi, getClippingRect: hz, getOffsetParent: KS, getElementRects: mz, getClientRects: uz, getDimensions: pz, getScale: Ka, isElement: Ut, isRTL: vz }; function wz(e, t) { let n = null, r; const i = Vi(e); function o() { clearTimeout(r), n && n.disconnect(), n = null } function a(u, c) { u === void 0 && (u = !1), c === void 0 && (c = 1), o(); const { left: f, top: h, width: g, height: m } = e.getBoundingClientRect(); if (u || t(), !g || !m) return; const y = ch(h), v = ch(i.clientWidth - (f + g)), p = ch(i.clientHeight - (h + m)), E = ch(f), b = { rootMargin: - y + 'px ' + - v + 'px ' + - p + 'px ' + - E + 'px', threshold: sr(0, Ha(1, c)) || 1 }; let x = !0; function O(B) { const k = B[0].intersectionRatio; if (k !== c) { if (!x) return a(); k ? a(!1, k) : r = setTimeout(() =>{ a(!1, 1e-7) }, 100) } x = !1 } try { n = new IntersectionObserver(O, { ...b, root: i.ownerDocument }) } catch { n = new IntersectionObserver(O, b) } n.observe(e) } return a(!0), o } function mh(e, t, n, r) { r === void 0 && (r = { }); const { ancestorScroll: i = !0, ancestorResize: o = !0, elementResize: a = typeof ResizeObserver == 'function', layoutShift: u = typeof IntersectionObserver == 'function', animationFrame: c = !1 } = r, f = D1(e), h = i || o ? [ ...f ? Bs(f) : [ ], ...Bs(t) ] : [ ]; h.forEach(_=>{ i && _.addEventListener('scroll', n, { passive: !0 }), o && _.addEventListener('resize', n) }); const g = f && u ? wz(f, n) : null; let m = - 1, y = null; a && (y = new ResizeObserver(_=>{ let[b] = _; b && b.target === f && y && (y.unobserve(t), cancelAnimationFrame(m), m = requestAnimationFrame(() =>{ y && y.observe(t) })), n() }), f && !c && y.observe(f), y.observe(t)); let v, p = c ? ks(e) : null; c && E(); function E() { const _ = ks(e); p && (_.x !== p.x || _.y !== p.y || _.width !== p.width || _.height !== p.height) && n(), p = _, v = requestAnimationFrame(E) } return n(), () =>{ h.forEach(_=>{ i && _.removeEventListener('scroll', n), o && _.removeEventListener('resize', n) }), g && g(), y && y.disconnect(), y = null, c && cancelAnimationFrame(v) } } const bz = (e, t, n) =>{ const r = new Map, i = { platform: yz, ...n }, o = { ...i.platform, _c: r }; return Zj(e, t, { ...i, platform: o }) }; var vh = typeof document < 'u' ? D.useLayoutEffect : D.useEffect; function yh(e, t) { if (e === t) return !0; if (typeof e != typeof t) return !1; if (typeof e == 'function' && e.toString() === t.toString()) return !0; let n, r, i; if (e && t && typeof e == 'object') { if (Array.isArray(e)) { if (n = e.length, n != t.length) return !1; for (r = n; r-- !== 0; ) if (!yh(e[r], t[r])) return !1; return !0 } if (i = Object.keys(e), n = i.length, n !== Object.keys(t).length) return !1; for (r = n; r-- !== 0; ) if (!{ }.hasOwnProperty.call(t, i[r])) return !1; for (r = n; r-- !== 0; ) { const o = i[r]; if (!(o === '_owner' && e.$$typeof) && !yh(e[o], t[o])) return !1 } return !0 } return e !== e && t !== t } function qS(e) { return typeof window > 'u' ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1 } function GS(e, t) { const n = qS(e); return Math.round(t * n) / n } function QS(e) { const t = D.useRef(e); return vh(() =>{ t.current = e }), t } function _z(e) { e === void 0 && (e = { }); const { placement: t = 'bottom', strategy: n = 'absolute', middleware: r = [ ], platform: i, elements: { reference: o, floating: a } = { }, transform: u = !0, whileElementsMounted: c, open: f } = e, [ h, g ] = D.useState({ x: 0, y: 0, strategy: n, placement: t, middlewareData: { }, isPositioned: !1 }), [ m, y ] = D.useState(r); yh(m, r) || y(r); const [v, p] = D.useState(null), [ E, _ ] = D.useState(null), b = D.useCallback(se=>{ se != k.current && (k.current = se, p(se)) }, [ p ]), x = D.useCallback(se=>{ se !== P.current && (P.current = se, _(se)) }, [ _ ]), O = o || v, B = a || E, k = D.useRef(null), P = D.useRef(null), I = D.useRef(h), Y = QS(c), j = QS(i), X = D.useCallback(() =>{ if (!k.current || !P.current) return; const se = { placement: t, strategy: n, middleware: m }; j.current && (se.platform = j.current), bz(k.current, P.current, se).then(re=>{ const V = { ...re, isPositioned: !0 }; $.current && !yh(I.current, V) && (I.current = V, qf.flushSync(() =>{ g(V) })) }) }, [ m, t, n, j ]); vh(() =>{ f === !1 && I.current.isPositioned && (I.current.isPositioned = !1, g(se=>({ ...se, isPositioned: !1 }))) }, [ f ]); const $ = D.useRef(!1); vh(() =>($.current = !0, () =>{ $.current = !1 }), [ ]), vh(() =>{ if (O && (k.current = O), B && (P.current = B), O && B) { if (Y.current) return Y.current(O, B, X); X() } }, [ O, B, X, Y ]); const U = D.useMemo(() =>({ reference: k, floating: P, setReference: b, setFloating: x }), [ b, x ]), T = D.useMemo(() =>({ reference: O, floating: B }), [ O, B ]), G = D.useMemo(() =>{ const se = { position: n, left: 0, top: 0 }; if (!T.floating) return se; const re = GS(T.floating, h.x), V = GS(T.floating, h.y); return u ? { ...se, transform: 'translate(' + re + 'px, ' + V + 'px)', ...qS(T.floating) >= 1.5 && { willChange: 'transform' } } : { position: n, left: re, top: V } }, [ n, u, T.floating, h.x, h.y ]); return D.useMemo(() =>({ ...h, update: X, refs: U, elements: T, floatingStyles: G }), [ h, X, U, T, G ]) } function Ki(e) { let t = e.activeElement; for (; ((n = t) == null || (r = n.shadowRoot) == null ? void 0 : r.activeElement) != null; ) { var n, r; t = t.shadowRoot.activeElement } return t } function on(e, t) { if (!e || !t) return !1; const n = t.getRootNode && t.getRootNode(); if (e.contains(t)) return !0; if (n && _1(n)) { let r = t; for (; r; ) { if (e === r) return !0; r = r.parentNode || r.host } } return !1 } function YS() { const e = navigator.userAgentData; return e != null && e.platform ? e.platform : navigator.platform } function Cz() { const e = navigator.userAgentData; return e && Array.isArray(e.brands) ? e.brands.map(t=>{ let { brand: n, version: r } = t; return n + '/' + r }).join(' ') : navigator.userAgent } function JS(e) { if (e.mozInputSource === 0 && e.isTrusted) return !0; const t = /Android/i; return (t.test(YS()) || t.test(Cz())) && e.pointerType ? e.type === 'click' && e.buttons === 1 : e.detail === 0 && !e.pointerType } function XS(e) { return e.width === 0 && e.height === 0 || e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType !== 'mouse' || e.width < 1 && e.height < 1 && e.pressure === 0 && e.detail === 0 } function ZS() { return /apple/i.test(navigator.vendor) } function Ez() { return YS().toLowerCase().startsWith('mac') && !navigator.maxTouchPoints } function wh(e, t) { const n = [ 'mouse', 'pen' ]; return t || n.push('', void 0), n.includes(e) } function Dz(e) { return 'nativeEvent' in e } function Wn(e) { return (e == null ? void 0 : e.ownerDocument) || document } function bh(e, t) { if (t == null) return !1; if ('composedPath' in e) return e.composedPath().includes(t); const n = e; return n.target != null && t.contains(n.target) } function x1(e) { return 'composedPath' in e ? e.composedPath() [0] : e.target } const xz = 'input:not([type=\'hidden\']):not([disabled]),[contenteditable]:not([contenteditable=\'false\']),textarea:not([disabled])'; function eO(e) { return dn(e) && e.matches(xz) } function lr(e) { e.preventDefault(), e.stopPropagation() } var tO = function (e) { if (typeof document > 'u') return null; var t = Array.isArray(e) ? e[0] : e; return t.ownerDocument.body }, qa = new WeakMap, _h = new WeakMap, Ch = { }, A1 = 0, nO = function (e) { return e && (e.host || nO(e.parentNode)) }, Az = function (e, t) { return t.map(function (n) { if (e.contains(n)) return n; var r = nO(n); return r && e.contains(r) ? r : (console.error('aria-hidden', n, 'in not contained inside', e, '. Doing nothing'), null) }).filter(function (n) { return !!n }) }, rO = function (e, t, n, r) { var i = Az(t, Array.isArray(e) ? e : [ e ]); Ch[n] || (Ch[n] = new WeakMap); var o = Ch[n], a = [ ], u = new Set, c = new Set(i), f = function (g) { !g || u.has(g) || (u.add(g), f(g.parentNode)) }; i.forEach(f); var h = function (g) { !g || c.has(g) || Array.prototype.forEach.call(g.children, function (m) { if (u.has(m)) h(m); else { var y = m.getAttribute(r), v = y !== null && y !== 'false', p = (qa.get(m) || 0) + 1, E = (o.get(m) || 0) + 1; qa.set(m, p), o.set(m, E), a.push(m), p === 1 && v && _h.set(m, !0), E === 1 && m.setAttribute(n, 'true'), v || m.setAttribute(r, 'true') } }) }; return h(t), u.clear(), A1++, function () { a.forEach(function (g) { var m = qa.get(g) - 1, y = o.get(g) - 1; qa.set(g, m), o.set(g, y), m || (_h.has(g) || g.removeAttribute(r), _h.delete(g)), y || g.removeAttribute(n) }), A1--, A1 || (qa = new WeakMap, qa = new WeakMap, _h = new WeakMap, Ch = { }) } }, iO = function (e, t, n) { n === void 0 && (n = 'data-aria-hidden'); var r = Array.from(Array.isArray(e) ? e : [ e ]), i = t || tO(e); return i ? (r.push.apply(r, Array.from(i.querySelectorAll('[aria-live]'))), rO(r, i, n, 'aria-hidden')) : function () { return null } }, Sz = function (e, t, n) { n === void 0 && (n = 'data-inert-ed'); var r = t || tO(e); return r ? rO(e, r, n, 'inert') : function () { return null } }, oO = function () { return typeof HTMLElement < 'u' && HTMLElement.prototype.hasOwnProperty('inert') }, Oz = function (e, t, n) { return n === void 0 && (n = 'data-suppressed'), (oO() ? Sz : iO) (e, t, n) }; /*! * tabbable 6.2.0 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE */ var Fz = [ 'input:not([inert])', 'select:not([inert])', 'textarea:not([inert])', 'a[href]:not([inert])', 'button:not([inert])', '[tabindex]:not(slot):not([inert])', 'audio[controls]:not([inert])', 'video[controls]:not([inert])', '[contenteditable]:not([contenteditable="false"]):not([inert])', 'details>summary:first-of-type:not([inert])', 'details:not([inert])' ], S1 = Fz.join(','), sO = typeof Element > 'u', ql = sO ? function () { } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Eh = !sO && Element.prototype.getRootNode ? function (e) { var t; return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e) } : function (e) { return e == null ? void 0 : e.ownerDocument }, Dh = function e(t, n) { var r; n === void 0 && (n = !0); var i = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, 'inert'), o = i === '' || i === 'true', a = o || n && t && e(t.parentNode); return a }, Bz = function (t) { var n, r = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, 'contenteditable'); return r === '' || r === 'true' }, kz = function (t, n, r) { if (Dh(t)) return []; var i = Array.prototype.slice.apply(t.querySelectorAll(S1)); return n && ql.call(t, S1) && i.unshift(t), i = i.filter(r), i }, Pz = function e(t, n, r) { for (var i = [ ], o = Array.from(t); o.length; ) { var a = o.shift(); if (!Dh(a, !1)) if (a.tagName === 'SLOT') { var u = a.assignedElements(), c = u.length ? u : a.children, f = e(c, !0, r); r.flatten ? i.push.apply(i, f) : i.push({ scopeParent: a, candidates: f }) } else { var h = ql.call(a, S1); h && r.filter(a) && (n || !t.includes(a)) && i.push(a); var g = a.shadowRoot || typeof r.getShadowRoot == 'function' && r.getShadowRoot(a), m = !Dh(g, !1) && (!r.shadowRootFilter || r.shadowRootFilter(a)); if (g && m) { var y = e(g === !0 ? a.children : g.children, !0, r); r.flatten ? i.push.apply(i, y) : i.push({ scopeParent: a, candidates: y }) } else o.unshift.apply(o, a.children) } } return i }, aO = function (t) { return !isNaN(parseInt(t.getAttribute('tabindex'), 10)) }, uO = function (t) { if (!t) throw new Error('No node provided'); return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Bz(t)) && !aO(t) ? 0 : t.tabIndex }, Rz = function (t, n) { var r = uO(t); return r < 0 && n && !aO(t) ? 0 : r }, Tz = function (t, n) { return t.tabIndex === n.tabIndex ? t.documentOrder - n.documentOrder : t.tabIndex - n.tabIndex }, lO = function (t) { return t.tagName === 'INPUT' }, Iz = function (t) { return lO(t) && t.type === 'hidden' }, Nz = function (t) { var n = t.tagName === 'DETAILS' && Array.prototype.slice.apply(t.children).some(function (r) { return r.tagName === 'SUMMARY' }); return n }, Lz = function (t, n) { for (var r = 0; r < t.length; r++) if (t[r].checked && t[r].form === n) return t[r] }, Mz = function (t) { if (!t.name) return !0; var n = t.form || Eh(t), r = function (u) { return n.querySelectorAll('input[type="radio"][name="' + u + '"]') }, i; if (typeof window < 'u' && typeof window.CSS < 'u' && typeof window.CSS.escape == 'function') i = r(window.CSS.escape(t.name)); else try { i = r(t.name) } catch (a) { return console.error('Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s', a.message), !1 } var o = Lz(i, t.form); return !o || o === t }, $z = function (t) { return lO(t) && t.type === 'radio' }, jz = function (t) { return $z(t) && !Mz(t) }, zz = function (t) { var n, r = t && Eh(t), i = (n = r) === null || n === void 0 ? void 0 : n.host, o = !1; if (r && r !== t) { var a, u, c; for (o = !!((a = i) !== null && a !== void 0 && (u = a.ownerDocument) !== null && u !== void 0 && u.contains(i) || t != null && (c = t.ownerDocument) !== null && c !== void 0 && c.contains(t)); !o && i; ) { var f, h, g; r = Eh(i), i = (f = r) === null || f === void 0 ? void 0 : f.host, o = !!((h = i) !== null && h !== void 0 && (g = h.ownerDocument) !== null && g !== void 0 && g.contains(i)) } } return o }, cO = function (t) { var n = t.getBoundingClientRect(), r = n.width, i = n.height; return r === 0 && i === 0 }, Uz = function (t, n) { var r = n.displayCheck, i = n.getShadowRoot; if (getComputedStyle(t).visibility === 'hidden') return !0; var o = ql.call(t, 'details>summary:first-of-type'), a = o ? t.parentElement : t; if (ql.call(a, 'details:not([open]) *')) return !0; if (!r || r === 'full' || r === 'legacy-full') { if (typeof i == 'function') { for (var u = t; t; ) { var c = t.parentElement, f = Eh(t); if (c && !c.shadowRoot && i(c) === !0) return cO(t); t.assignedSlot ? t = t.assignedSlot : !c && f !== t.ownerDocument ? t = f.host : t = c } t = u } if (zz(t)) return !t.getClientRects().length; if (r !== 'legacy-full') return !0 } else if (r === 'non-zero-area') return cO(t); return !1 }, Hz = function (t) { if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName)) for (var n = t.parentElement; n; ) { if (n.tagName === 'FIELDSET' && n.disabled) { for (var r = 0; r < n.children.length; r++) { var i = n.children.item(r); if (i.tagName === 'LEGEND') return ql.call(n, 'fieldset[disabled] *') ? !0 : !i.contains(t) } return !0 } n = n.parentElement } return !1 }, Wz = function (t, n) { return !(n.disabled || Dh(n) || Iz(n) || Uz(n, t) || Nz(n) || Hz(n)) }, fO = function (t, n) { return !(jz(n) || uO(n) < 0 || !Wz(t, n)) }, Vz = function (t) { var n = parseInt(t.getAttribute('tabindex'), 10); return !!(isNaN(n) || n >= 0) }, Kz = function e(t) { var n = [ ], r = [ ]; return t.forEach(function (i, o) { var a = !!i.scopeParent, u = a ? i.scopeParent : i, c = Rz(u, a), f = a ? e(i.candidates) : u; c === 0 ? a ? n.push.apply(n, f) : n.push(u) : r.push({ documentOrder: o, tabIndex: c, item: i, isScope: a, content: f }) }), r.sort(Tz).reduce(function (i, o) { return o.isScope ? i.push.apply(i, o.content) : i.push(o.content), i }, [ ]).concat(n) }, O1 = function (t, n) { n = n || { }; var r; return n.getShadowRoot ? r = Pz([t], n.includeContainer, { filter: fO.bind(null, n), flatten: !1, getShadowRoot: n.getShadowRoot, shadowRootFilter: Vz }) : r = kz(t, n.includeContainer, fO.bind(null, n)), Kz(r) }; function xh() { return xh = Object.assign ? Object.assign.bind() : function (e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) } return e }, xh.apply(this, arguments) } var Nt = typeof document < 'u' ? D.useLayoutEffect : D.useEffect; let F1 = !1, qz = 0; const dO = () =>'floating-ui-' + qz++; function Gz() { const [e, t] = D.useState(() =>F1 ? dO() : void 0); return Nt(() =>{ e == null && t(dO()) }, [ ]), D.useEffect(() =>{ F1 || (F1 = !0) }, [ ]), e } const Ah = qw['useId'.toString()] || Gz; function hO() { const e = new Map; return { emit(t, n) { var r; (r = e.get(t)) == null || r.forEach(i=>i(n)) }, on(t, n) { e.set(t, [ ...e.get(t) || [ ], n ]) }, off(t, n) { var r; e.set(t, ((r = e.get(t)) == null ? void 0 : r.filter(i=>i !== n)) || [ ]) } } } const pO = D.createContext(null), gO = D.createContext(null), Gl = () =>{ var e; return ((e = D.useContext(pO)) == null ? void 0 : e.id) || null }, Uo = () =>D.useContext(gO); function Qz(e) { const t = Ah(), n = Uo(), r = Gl(), i = e || r; return Nt(() =>{ const o = { id: t, parentId: i }; return n == null || n.addNode(o), () =>{ n == null || n.removeNode(o) } }, [ n, t, i ]), t } function Yz(e) { let { children: t, id: n } = e; const r = Gl(); return D.createElement(pO.Provider, { value: D.useMemo(() =>({ id: n, parentId: r }), [ n, r ]) }, t) } function Jz(e) { let { children: t } = e; const n = D.useRef([]), r = D.useCallback(a=>{ n.current = [ ...n.current, a ] }, [ ]), i = D.useCallback(a=>{ n.current = n.current.filter(u=>u !== a) }, [ ]), o = D.useState(() =>hO()) [0]; return D.createElement(gO.Provider, { value: D.useMemo(() =>({ nodesRef: n, addNode: r, removeNode: i, events: o }), [ n, r, i, o ]) }, t) } function Ps(e) { return 'data-floating-ui-' + e } function Ho(e) { const t = D.useRef(e); return Nt(() =>{ t.current = e }), t } const mO = Ps('safe-polygon'); function B1(e, t, n) { return n && !wh(n) ? 0 : typeof e == 'number' ? e : e == null ? void 0 : e[t] } function Xz(e, t) { t === void 0 && (t = { }); const { open: n, onOpenChange: r, dataRef: i, events: o, elements: { domReference: a, floating: u }, refs: c } = e, { enabled: f = !0, delay: h = 0, handleClose: g = null, mouseOnly: m = !1, restMs: y = 0, move: v = !0 } = t, p = Uo(), E = Gl(), _ = Ho(g), b = Ho(h), x = D.useRef(), O = D.useRef(), B = D.useRef(), k = D.useRef(), P = D.useRef(!0), I = D.useRef(!1), Y = D.useRef(() =>{ }), j = D.useCallback(() =>{ var T; const G = (T = i.current.openEvent) == null ? void 0 : T.type; return (G == null ? void 0 : G.includes('mouse')) && G !== 'mousedown' }, [ i ]); D.useEffect(() =>{ if (!f) return; function T() { clearTimeout(O.current), clearTimeout(k.current), P.current = !0 } return o.on('dismiss', T), () =>{ o.off('dismiss', T) } }, [ f, o ]), D.useEffect(() =>{ if (!f || !_.current || !n) return; function T(se) { j() && r(!1, se) } const G = Wn(u).documentElement; return G.addEventListener('mouseleave', T), () =>{ G.removeEventListener('mouseleave', T) } }, [ u, n, r, f, _, i, j ]); const X = D.useCallback(function (T, G) { G === void 0 && (G = !0); const se = B1(b.current, 'close', x.current); se && !B.current ? (clearTimeout(O.current), O.current = setTimeout(() =>r(!1, T), se)) : G && (clearTimeout(O.current), r(!1, T)) }, [ b, r ]), $ = D.useCallback(() =>{ Y.current(), B.current = void 0 }, [ ]), U = D.useCallback(() =>{ if (I.current) { const T = Wn(c.floating.current).body; T.style.pointerEvents = '', T.removeAttribute(mO), I.current = !1 } }, [ c ]); return D.useEffect(() =>{ if (!f) return; function T() { return i.current.openEvent ? [ 'click', 'mousedown' ].includes(i.current.openEvent.type) : !1 } function G(V) { if (clearTimeout(O.current), P.current = !1, m && !wh(x.current) || y > 0 && B1(b.current, 'open') === 0) return; const te = B1(b.current, 'open', x.current); te ? O.current = setTimeout(() =>{ r(!0, V) }, te) : r(!0, V) } function se(V) { if (T()) return; Y.current(); const te = Wn(u); if (clearTimeout(k.current), _.current) { n || clearTimeout(O.current), B.current = _.current({ ...e, tree: p, x: V.clientX, y: V.clientY, onClose() { U(), $(), X(V) } }); const ce = B.current; te.addEventListener('mousemove', ce), Y.current = () =>{ te.removeEventListener('mousemove', ce) }; return }(x.current === 'touch' ? !on(u, V.relatedTarget) : !0) && X(V) } function re(V) { T() || _.current == null || _.current({ ...e, tree: p, x: V.clientX, y: V.clientY, onClose() { U(), $(), X(V) } }) (V) } if (Ut(a)) { const V = a; return n && V.addEventListener('mouseleave', re), u == null || u.addEventListener('mouseleave', re), v && V.addEventListener('mousemove', G, { once: !0 }), V.addEventListener('mouseenter', G), V.addEventListener('mouseleave', se), () =>{ n && V.removeEventListener('mouseleave', re), u == null || u.removeEventListener('mouseleave', re), v && V.removeEventListener('mousemove', G), V.removeEventListener('mouseenter', G), V.removeEventListener('mouseleave', se) } } }, [ a, u, f, e, m, y, v, X, $, U, r, n, p, b, _, i ]), Nt(() =>{ var T; if (f && n && (T = _.current) != null && T.__options.blockPointerEvents && j()) { const re = Wn(u).body; if (re.setAttribute(mO, ''), re.style.pointerEvents = 'none', I.current = !0, Ut(a) && u) { var G, se; const V = a, te = p == null || (G = p.nodesRef.current.find(le=>le.id === E)) == null || (se = G.context) == null ? void 0 : se.elements.floating; return te && (te.style.pointerEvents = ''), V.style.pointerEvents = 'auto', u.style.pointerEvents = 'auto', () =>{ V.style.pointerEvents = '', u.style.pointerEvents = '' } } } }, [ f, n, E, u, a, p, _, i, j ]), Nt(() =>{ n || (x.current = void 0, $(), U()) }, [ n, $, U ]), D.useEffect(() =>() =>{ $(), clearTimeout(O.current), clearTimeout(k.current), U() }, [ f, a, $, U ]), D.useMemo(() =>{ if (!f) return { }; function T(G) { x.current = G.pointerType } return { reference: { onPointerDown: T, onPointerEnter: T, onMouseMove(G) { n || y === 0 || (clearTimeout(k.current), k.current = setTimeout(() =>{ P.current || r(!0, G.nativeEvent) }, y)) } }, floating: { onMouseEnter() { clearTimeout(O.current) }, onMouseLeave(G) { o.emit('dismiss', { type: 'mouseLeave', data: { returnFocus: !1 } }), X(G.nativeEvent, !1) } } } }, [ o, f, y, n, r, X ]) } let vO = 0; function qi(e, t) { t === void 0 && (t = { }); const { preventScroll: n = !1, cancelPrevious: r = !0, sync: i = !1 } = t; r && cancelAnimationFrame(vO); const o = () =>e == null ? void 0 : e.focus({ preventScroll: n }); i ? o() : vO = requestAnimationFrame(o) } function Zz(e, t) { var n; let r = [ ], i = (n = e.find(o=>o.id === t)) == null ? void 0 : n.parentId; for (; i; ) { const o = e.find(a=>a.id === i); i = o == null ? void 0 : o.parentId, o && (r = r.concat(o)) } return r } function Ga(e, t) { let n = e.filter(i=>{ var o; return i.parentId === t && ((o = i.context) == null ? void 0 : o.open) }), r = n; for (; r.length; ) r = e.filter(i=>{ var o; return (o = r) == null ? void 0 : o.some(a=>{ var u; return i.parentId === a.id && ((u = i.context) == null ? void 0 : u.open) }) }), n = n.concat(r); return n } const k1 = () =>({ getShadowRoot: !0, displayCheck: typeof ResizeObserver == 'function' && ResizeObserver.toString().includes('[native code]') ? 'full' : 'none' }); function yO(e, t) { const n = O1(e, k1()); t === 'prev' && n.reverse(); const r = n.indexOf(Ki(Wn(e))); return n.slice(r + 1) [0] } function wO() { return yO(document.body, 'next') } function bO() { return yO(document.body, 'prev') } function Ql(e, t) { const n = t || e.currentTarget, r = e.relatedTarget; return !r || !on(n, r) } function eU(e) { O1(e, k1()).forEach(n=>{ n.dataset.tabindex = n.getAttribute('tabindex') || '', n.setAttribute('tabindex', '-1') }) } function tU(e) { e.querySelectorAll('[data-tabindex]').forEach(n=>{ const r = n.dataset.tabindex; delete n.dataset.tabindex, r ? n.setAttribute('tabindex', r) : n.removeAttribute('tabindex') }) } const P1 = { border: 0, clip: 'rect(0 0 0 0)', height: '1px', margin: '-1px', overflow: 'hidden', padding: 0, position: 'fixed', whiteSpace: 'nowrap', width: '1px', top: 0, left: 0 }; let nU; function _O(e) { e.key === 'Tab' && (e.target, clearTimeout(nU)) } const Sh = D.forwardRef(function (t, n) { const [r, i] = D.useState(); Nt(() =>(ZS() && i('button'), document.addEventListener('keydown', _O), () =>{ document.removeEventListener('keydown', _O) }), [ ]); const o = { ref: n, tabIndex: 0, role: r, 'aria-hidden': r ? void 0 : !0, [ Ps('focus-guard') ]: '', style: P1 }; return D.createElement('span', xh({ }, t, o)) }), CO = D.createContext(null); function rU(e) { let { id: t, root: n } = e === void 0 ? { } : e; const [r, i] = D.useState(null), o = Ah(), a = EO(), u = D.useMemo(() =>({ id: t, root: n, portalContext: a, uniqueId: o }), [ t, n, a, o ]), c = D.useRef(); return Nt(() =>() =>{ r == null || r.remove() }, [ r, u ]), Nt(() =>{ if (c.current === u) return; c.current = u; const { id: f, root: h, portalContext: g, uniqueId: m } = u, y = f ? document.getElementById(f) : null, v = Ps('portal'); if (y) { const p = document.createElement('div'); p.id = m, p.setAttribute(v, ''), y.appendChild(p), i(p) } else { let p = h || (g == null ? void 0 : g.portalNode); p && !Ut(p) && (p = p.current), p = p || document.body; let E = null; f && (E = document.createElement('div'), E.id = f, p.appendChild(E)); const _ = document.createElement('div'); _.id = m, _.setAttribute(v, ''), p = E || p, p.appendChild(_), i(_) } }, [ u ]), r } function Oh(e) { let { children: t, id: n, root: r = null, preserveTabOrder: i = !0 } = e; const o = rU({ id: n, root: r }), [ a, u ] = D.useState(null), c = D.useRef(null), f = D.useRef(null), h = D.useRef(null), g = D.useRef(null), m = !!a && !a.modal && a.open && i && !!(r || o); return D.useEffect(() =>{ if (!o || !i || a != null && a.modal) return; function y(v) { o && Ql(v) && (v.type === 'focusin' ? tU : eU) (o) } return o.addEventListener('focusin', y, !0), o.addEventListener('focusout', y, !0), () =>{ o.removeEventListener('focusin', y, !0), o.removeEventListener('focusout', y, !0) } }, [ o, i, a == null ? void 0 : a.modal ]), D.createElement(CO.Provider, { value: D.useMemo(() =>({ preserveTabOrder: i, beforeOutsideRef: c, afterOutsideRef: f, beforeInsideRef: h, afterInsideRef: g, portalNode: o, setFocusManagerState: u }), [ i, o ]) }, m && o && D.createElement(Sh, { 'data-type': 'outside', ref: c, onFocus: y=>{ if (Ql(y, o)) { var v; (v = h.current) == null || v.focus() } else { const p = bO() || (a == null ? void 0 : a.refs.domReference.current); p == null || p.focus() } } }), m && o && D.createElement('span', { 'aria-owns': o.id, style: P1 }), o && qf.createPortal(t, o), m && o && D.createElement(Sh, { 'data-type': 'outside', ref: f, onFocus: y=>{ if (Ql(y, o)) { var v; (v = g.current) == null || v.focus() } else { const p = wO() || (a == null ? void 0 : a.refs.domReference.current); p == null || p.focus(), a != null && a.closeOnFocusOut && (a == null || a.onOpenChange(!1, y.nativeEvent)) } } })) } const EO = () =>D.useContext(CO), iU = D.forwardRef(function (t, n) { return D.createElement('button', xh({ }, t, { type: 'button', ref: n, tabIndex: - 1, style: P1 })) }); function R1(e) { const { context: t, children: n, disabled: r = !1, order: i = [ 'content' ], guards: o = !0, initialFocus: a = 0, returnFocus: u = !0, modal: c = !0, visuallyHiddenDismiss: f = !1, closeOnFocusOut: h = !0 } = e, { open: g, refs: m, nodeId: y, onOpenChange: v, events: p, dataRef: E, elements: { domReference: _, floating: b } } = t, x = oO() ? o : !0, O = Ho(i), B = Ho(a), k = Ho(u), P = Uo(), I = EO(), Y = typeof a == 'number' && a < 0, j = D.useRef(null), X = D.useRef(null), $ = D.useRef(!1), U = D.useRef(null), T = D.useRef(!1), G = I != null, se = _ && _.getAttribute('role') === 'combobox' && eO(_), re = D.useCallback(function (ce) { return ce === void 0 && (ce = b), ce ? O1(ce, k1()) : [ ] }, [ b ]), V = D.useCallback(ce=>{ const ye = re(ce); return O.current.map(De=>_ && De === 'reference' ? _ : b && De === 'floating' ? b : ye).filter(Boolean).flat() }, [ _, b, O, re ]); D.useEffect(() =>{ if (r || !c) return; function ce(De) { if (De.key === 'Tab') { on(b, Ki(Wn(b))) && re().length === 0 && !se && lr(De); const Ce = V(), L = x1(De); O.current[0] === 'reference' && L === _ && (lr(De), De.shiftKey ? qi(Ce[Ce.length - 1]) : qi(Ce[1])), O.current[1] === 'floating' && L === b && De.shiftKey && (lr(De), qi(Ce[0])) } } const ye = Wn(b); return ye.addEventListener('keydown', ce), () =>{ ye.removeEventListener('keydown', ce) } }, [ r, _, b, c, O, m, se, re, V ]), D.useEffect(() =>{ if (r || !h) return; function ce() { T.current = !0, setTimeout(() =>{ T.current = !1 }) } function ye(De) { const Ce = De.relatedTarget; queueMicrotask(() =>{ const L = !(on(_, Ce) || on(b, Ce) || on(Ce, b) || on(I == null ? void 0 : I.portalNode, Ce) || Ce != null && Ce.hasAttribute(Ps('focus-guard')) || P && (Ga(P.nodesRef.current, y).find(ne=>{ var J, Q; return on((J = ne.context) == null ? void 0 : J.elements.floating, Ce) || on((Q = ne.context) == null ? void 0 : Q.elements.domReference, Ce) }) || Zz(P.nodesRef.current, y).find(ne=>{ var J, Q; return ((J = ne.context) == null ? void 0 : J.elements.floating) === Ce || ((Q = ne.context) == null ? void 0 : Q.elements.domReference) === Ce }))); Ce && L && !T.current && Ce !== U.current && ($.current = !0, v(!1, De)) }) } if (b && dn(_)) return _.addEventListener('focusout', ye), _.addEventListener('pointerdown', ce), !c && b.addEventListener('focusout', ye), () =>{ _.removeEventListener('focusout', ye), _.removeEventListener('pointerdown', ce), !c && b.removeEventListener('focusout', ye) } }, [ r, _, b, c, y, P, I, v, h ]), D.useEffect(() =>{ var ce; if (r) return; const ye = Array.from((I == null || (ce = I.portalNode) == null ? void 0 : ce.querySelectorAll('[' + Ps('portal') + ']')) || [ ]); if (b && c) { const De = [ b, ...ye, j.current, X.current ].filter(ne=>ne != null), L = (x ? iO : Oz) (O.current.includes('reference') || se ? De.concat(_ || [ ]) : De, void 0, Ps('inert')); return () =>{ L() } } }, [ r, _, b, c, O, I, se, x ]), Nt(() =>{ if (r || !b) return; const ce = Wn(b), ye = Ki(ce); queueMicrotask(() =>{ const De = V(b), Ce = B.current, L = (typeof Ce == 'number' ? De[Ce] : Ce.current) || b, ne = on(b, ye); !Y && !ne && g && qi(L, { preventScroll: L === b }) }) }, [ r, g, b, Y, V, B ]), Nt(() =>{ if (r || !b) return; let ce = !1; const ye = Wn(b), De = Ki(ye), Ce = E.current; U.current = De; function L(ne) { if (ne.type === 'escapeKey' && m.domReference.current && (U.current = m.domReference.current), [ 'referencePress', 'escapeKey' ].includes(ne.type)) return; const J = ne.data.returnFocus; typeof J == 'object' ? ($.current = !1, ce = J.preventScroll) : $.current = !J } return p.on('dismiss', L), () =>{ p.off('dismiss', L); const ne = Ki(ye); (on(b, ne) || P && Ga(P.nodesRef.current, y).some(Q=>{ var ge; return on((ge = Q.context) == null ? void 0 : ge.elements.floating, ne) }) || Ce.openEvent && [ 'click', 'mousedown' ].includes(Ce.openEvent.type)) && m.domReference.current && (U.current = m.domReference.current), k.current && dn(U.current) && !$.current && qi(U.current, { cancelPrevious: !1, preventScroll: ce }) } }, [ r, b, k, E, m, p, P, y ]), Nt(() =>{ if (!(r || !I)) return I.setFocusManagerState({ ...t, modal: c, closeOnFocusOut: h, open: g }), () =>{ I.setFocusManagerState(null) } }, [ r, I, c, g, h, t ]), Nt(() =>{ if (!r && b && typeof MutationObserver == 'function') { const ce = () =>{ const De = b.getAttribute('tabindex'); O.current.includes('floating') || Ki(Wn(b)) !== m.domReference.current && re().length === 0 ? De !== '0' && b.setAttribute('tabindex', '0') : De !== '-1' && b.setAttribute('tabindex', '-1') }; ce(); const ye = new MutationObserver(ce); return ye.observe(b, { childList: !0, subtree: !0, attributes: !0 }), () =>{ ye.disconnect() } } }, [ r, b, m, O, re ]); function te(ce) { return r || !f || !c ? null : D.createElement(iU, { ref: ce === 'start' ? j : X, onClick: ye=>v(!1, ye.nativeEvent) }, typeof f == 'string' ? f : 'Dismiss') } const le = !r && x && !se && (G || c); return D.createElement(D.Fragment, null, le && D.createElement(Sh, { 'data-type': 'inside', ref: I == null ? void 0 : I.beforeInsideRef, onFocus: ce=>{ if (c) { const De = V(); qi(i[0] === 'reference' ? De[0] : De[De.length - 1]) } else if (I != null && I.preserveTabOrder && I.portalNode) if ($.current = !1, Ql(ce, I.portalNode)) { const De = wO() || _; De == null || De.focus() } else { var ye; (ye = I.beforeOutsideRef.current) == null || ye.focus() } } }), !se && te('start'), n, te('end'), le && D.createElement(Sh, { 'data-type': 'inside', ref: I == null ? void 0 : I.afterInsideRef, onFocus: ce=>{ if (c) qi(V() [0]); else if (I != null && I.preserveTabOrder && I.portalNode) if (h && ($.current = !0), Ql(ce, I.portalNode)) { const De = bO() || _; De == null || De.focus() } else { var ye; (ye = I.afterOutsideRef.current) == null || ye.focus() } } })) } function oU(e, t) { const n = e.compareDocumentPosition(t); return n & Node.DOCUMENT_POSITION_FOLLOWING || n & Node.DOCUMENT_POSITION_CONTAINED_BY ? - 1 : n & Node.DOCUMENT_POSITION_PRECEDING || n & Node.DOCUMENT_POSITION_CONTAINS ? 1 : 0 } function sU(e, t) { if (e.size !== t.size) return !1; for (const [n, r]of e.entries()) if (r !== t.get(n)) return !1; return !0 } const DO = D.createContext({ register: () =>{ }, unregister: () =>{ }, map: new Map, elementsRef: { current: [ ] } }); function aU(e) { let { children: t, elementsRef: n, labelsRef: r } = e; const [i, o] = D.useState(() =>new Map), a = D.useCallback(c=>{ o(f=>new Map(f).set(c, null)) }, [ ]), u = D.useCallback(c=>{ o(f=>{ const h = new Map(f); return h.delete(c), h }) }, [ ]); return Nt(() =>{ const c = new Map(i); Array.from(c.keys()).sort(oU).forEach((h, g) =>{ c.set(h, g) }), sU(i, c) || o(c) }, [ i ]), D.createElement(DO.Provider, { value: D.useMemo(() =>({ register: a, unregister: u, map: i, elementsRef: n, labelsRef: r }), [ a, u, i, n, r ]) }, t) } function xO(e) { let { label: t } = e === void 0 ? { } : e; const [n, r] = D.useState(null), i = D.useRef(null), { register: o, unregister: a, map: u, elementsRef: c, labelsRef: f } = D.useContext(DO), h = D.useCallback(g=>{ if (i.current = g, n !== null && (c.current[n] = g, f)) { var m; const y = t !== void 0; f.current[n] = y ? t : (m = g == null ? void 0 : g.textContent) != null ? m : null } }, [ n, c, f, t ]); return Nt(() =>{ const g = i.current; if (g) return o(g), () =>{ a(g) } }, [ o, a ]), Nt(() =>{ const g = i.current ? u.get(i.current) : null; g != null && r(g) }, [ u ]), D.useMemo(() =>({ ref: h, index: n ?? - 1 }), [ n, h ]) } function AO(e) { return dn(e.target) && e.target.tagName === 'BUTTON' } function SO(e) { return eO(e) } function T1(e, t) { t === void 0 && (t = { }); const { open: n, onOpenChange: r, dataRef: i, elements: { domReference: o } } = e, { enabled: a = !0, event: u = 'click', toggle: c = !0, ignoreMouse: f = !1, keyboardHandlers: h = !0 } = t, g = D.useRef(), m = D.useRef(!1); return D.useMemo(() =>a ? { reference: { onPointerDown(y) { g.current = y.pointerType }, onMouseDown(y) { y.button === 0 && (wh(g.current, !0) && f || u !== 'click' && (n && c && (!i.current.openEvent || i.current.openEvent.type === 'mousedown') ? r(!1, y.nativeEvent) : (y.preventDefault(), r(!0, y.nativeEvent)))) }, onClick(y) { if (u === 'mousedown' && g.current) { g.current = void 0; return } wh(g.current, !0) && f || (n && c && (!i.current.openEvent || i.current.openEvent.type === 'click') ? r(!1, y.nativeEvent) : r(!0, y.nativeEvent)) }, onKeyDown(y) { g.current = void 0, !(y.defaultPrevented || !h || AO(y)) && (y.key === ' ' && !SO(o) && (y.preventDefault(), m.current = !0), y.key === 'Enter' && r(!(n && c), y.nativeEvent)) }, onKeyUp(y) { y.defaultPrevented || !h || AO(y) || SO(o) || y.key === ' ' && m.current && (m.current = !1, r(!(n && c), y.nativeEvent)) } } } : { }, [ a, i, u, f, h, o, c, n, r ]) } const uU = qw['useInsertionEffect'.toString()] || (e=>e()); function Qa(e) { const t = D.useRef(() =>{ }); return uU(() =>{ t.current = e }), D.useCallback(function () { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return t.current == null ? void 0 : t.current(...r) }, [ ]) } const lU = { pointerdown: 'onPointerDown', mousedown: 'onMouseDown', click: 'onClick' }, cU = { pointerdown: 'onPointerDownCapture', mousedown: 'onMouseDownCapture', click: 'onClickCapture' }, fU = e=>{ var t, n; return { escapeKeyBubbles: typeof e == 'boolean' ? e : (t = e == null ? void 0 : e.escapeKey) != null ? t : !1, outsidePressBubbles: typeof e == 'boolean' ? e : (n = e == null ? void 0 : e.outsidePress) != null ? n : !0 } }; function Fh(e, t) { t === void 0 && (t = { }); const { open: n, onOpenChange: r, events: i, nodeId: o, elements: { reference: a, domReference: u, floating: c }, dataRef: f } = e, { enabled: h = !0, escapeKey: g = !0, outsidePress: m = !0, outsidePressEvent: y = 'pointerdown', referencePress: v = !1, referencePressEvent: p = 'pointerdown', ancestorScroll: E = !1, bubbles: _ } = t, b = Uo(), x = Gl() != null, O = Qa(typeof m == 'function' ? m : () =>!1), B = typeof m == 'function' ? O : m, k = D.useRef(!1), { escapeKeyBubbles: P, outsidePressBubbles: I } = fU(_), Y = Qa(X=>{ if (!n || !h || !g || X.key !== 'Escape') return; const $ = b ? Ga(b.nodesRef.current, o) : [ ]; if (!P && (X.stopPropagation(), $.length > 0)) { let U = !0; if ($.forEach(T=>{ var G; if ((G = T.context) != null && G.open && !T.context.dataRef.current.__escapeKeyBubbles) { U = !1; return } }), !U) return } i.emit('dismiss', { type: 'escapeKey', data: { returnFocus: { preventScroll: !1 } } }), r(!1, Dz(X) ? X.nativeEvent : X) }), j = Qa(X=>{ const $ = k.current; if (k.current = !1, $ || typeof B == 'function' && !B(X)) return; const U = x1(X); if (dn(U) && c) { const se = U.clientWidth > 0 && U.scrollWidth > U.clientWidth, re = U.clientHeight > 0 && U.scrollHeight > U.clientHeight; let V = re && X.offsetX > U.clientWidth; if (re && ur(U).direction === 'rtl' && (V = X.offsetX <= U.offsetWidth - U.clientWidth), V || se && X.offsetY > U.clientHeight) return } const T = b && Ga(b.nodesRef.current, o).some(se=>{ var re; return bh(X, (re = se.context) == null ? void 0 : re.elements.floating) }); if (bh(X, c) || bh(X, u) || T) return; const G = b ? Ga(b.nodesRef.current, o) : [ ]; if (G.length > 0) { let se = !0; if (G.forEach(re=>{ var V; if ((V = re.context) != null && V.open && !re.context.dataRef.current.__outsidePressBubbles) { se = !1; return } }), !se) return } i.emit('dismiss', { type: 'outsidePress', data: { returnFocus: x ? { preventScroll: !0 } : JS(X) || XS(X) } }), r(!1, X) }); return D.useEffect(() =>{ if (!n || !h) return; f.current.__escapeKeyBubbles = P, f.current.__outsidePressBubbles = I; function X(T) { r(!1, T) } const $ = Wn(c); g && $.addEventListener('keydown', Y), B && $.addEventListener(y, j); let U = [ ]; return E && (Ut(u) && (U = Bs(u)), Ut(c) && (U = U.concat(Bs(c))), !Ut(a) && a && a.contextElement && (U = U.concat(Bs(a.contextElement)))), U = U.filter(T=>{ var G; return T !== ((G = $.defaultView) == null ? void 0 : G.visualViewport) }), U.forEach(T=>{ T.addEventListener('scroll', X, { passive: !0 }) }), () =>{ g && $.removeEventListener('keydown', Y), B && $.removeEventListener(y, j), U.forEach(T=>{ T.removeEventListener('scroll', X) }) } }, [ f, c, u, a, g, B, y, n, r, E, h, P, I, Y, j ]), D.useEffect(() =>{ k.current = !1 }, [ B, y ]), D.useMemo(() =>h ? { reference: { onKeyDown: Y, [ lU[p] ]: X=>{ v && (i.emit('dismiss', { type: 'referencePress', data: { returnFocus: !1 } }), r(!1, X.nativeEvent)) } }, floating: { onKeyDown: Y, [ cU[y] ]: () =>{ k.current = !0 } } } : { }, [ h, i, v, y, p, r, Y ]) } function Bh(e) { var t; e === void 0 && (e = { }); const { open: n = !1, onOpenChange: r, nodeId: i } = e, [ o, a ] = D.useState(null), u = ((t = e.elements) == null ? void 0 : t.reference) || o, c = _z(e), f = Uo(), h = Qa((O, B) =>{ O && (m.current.openEvent = B), r == null || r(O, B) }), g = D.useRef(null), m = D.useRef({ }), y = D.useState(() =>hO()) [0], v = Ah(), p = D.useCallback(O=>{ const B = Ut(O) ? { getBoundingClientRect: () =>O.getBoundingClientRect(), contextElement: O } : O; c.refs.setReference(B) }, [ c.refs ]), E = D.useCallback(O=>{ (Ut(O) || O === null) && (g.current = O, a(O)), (Ut(c.refs.reference.current) || c.refs.reference.current === null || O !== null && !Ut(O)) && c.refs.setReference(O) }, [ c.refs ]), _ = D.useMemo(() =>({ ...c.refs, setReference: E, setPositionReference: p, domReference: g }), [ c.refs, E, p ]), b = D.useMemo(() =>({ ...c.elements, domReference: u }), [ c.elements, u ]), x = D.useMemo(() =>({ ...c, refs: _, elements: b, dataRef: m, nodeId: i, floatingId: v, events: y, open: n, onOpenChange: h }), [ c, i, v, y, n, h, _, b ]); return Nt(() =>{ const O = f == null ? void 0 : f.nodesRef.current.find(B=>B.id === i); O && (O.context = x) }), D.useMemo(() =>({ ...c, context: x, refs: _, elements: b }), [ c, _, b, x ]) } function OO(e, t) { t === void 0 && (t = { }); const { open: n, onOpenChange: r, dataRef: i, events: o, refs: a, elements: { floating: u, domReference: c } } = e, { enabled: f = !0, keyboardOnly: h = !0 } = t, g = D.useRef(''), m = D.useRef(!1), y = D.useRef(); return D.useEffect(() =>{ if (!f) return; const p = Wn(u).defaultView || window; function E() { !n && dn(c) && c === Ki(Wn(c)) && (m.current = !0) } return p.addEventListener('blur', E), () =>{ p.removeEventListener('blur', E) } }, [ u, c, n, f ]), D.useEffect(() =>{ if (!f) return; function v(p) { (p.type === 'referencePress' || p.type === 'escapeKey') && (m.current = !0) } return o.on('dismiss', v), () =>{ o.off('dismiss', v) } }, [ o, f ]), D.useEffect(() =>() =>{ clearTimeout(y.current) }, [ ]), D.useMemo(() =>f ? { reference: { onPointerDown(v) { let { pointerType: p } = v; g.current = p, m.current = !!(p && h) }, onMouseLeave() { m.current = !1 }, onFocus(v) { var p; m.current || v.type === 'focus' && ((p = i.current.openEvent) == null ? void 0 : p.type) === 'mousedown' && bh(i.current.openEvent, c) || r(!0, v.nativeEvent) }, onBlur(v) { m.current = !1; const p = v.relatedTarget, E = Ut(p) && p.hasAttribute(Ps('focus-guard')) && p.getAttribute('data-type') === 'outside'; y.current = setTimeout(() =>{ on(a.floating.current, p) || on(c, p) || E || r(!1, v.nativeEvent) }) } } } : { }, [ f, h, c, a, i, r ]) } function I1(e, t, n) { const r = new Map; return { ...n === 'floating' && { tabIndex: - 1 }, ...e, ...t.map(i=>i ? i[n] : null).concat(e).reduce((i, o) =>(o && Object.entries(o).forEach(a=>{ let[u, c] = a; if (u.indexOf('on') === 0) { if (r.has(u) || r.set(u, [ ]), typeof c == 'function') { var f; (f = r.get(u)) == null || f.push(c), i[u] = function () { for (var h, g = arguments.length, m = new Array(g), y = 0; y < g; y++) m[y] = arguments[y]; return (h = r.get(u)) == null ? void 0 : h.map(v=>v(...m)).find(v=>v !== void 0) } } } else i[u] = c }), i), { }) } } function kh(e) { e === void 0 && (e = [ ]); const t = e, n = D.useCallback(o=>I1(o, e, 'reference'), t), r = D.useCallback(o=>I1(o, e, 'floating'), t), i = D.useCallback(o=>I1(o, e, 'item'), e.map(o=>o == null ? void 0 : o.item)); return D.useMemo(() =>({ getReferenceProps: n, getFloatingProps: r, getItemProps: i }), [ n, r, i ]) } let FO = !1; const N1 = 'ArrowUp', Ph = 'ArrowDown', Ya = 'ArrowLeft', Yl = 'ArrowRight'; function Rh(e, t, n) { return Math.floor(e / t) !== n } function Jl(e, t) { return t < 0 || t >= e.current.length } function _n(e, t) { let { startingIndex: n = - 1, decrement: r = !1, disabledIndices: i, amount: o = 1 } = t === void 0 ? { } : t; const a = e.current; let u = n; do { var c, f; u = u + (r ? - o : o) } while (u >= 0 && u <= a.length - 1 && (i ? i.includes(u) : a[u] == null || (c = a[u]) != null && c.hasAttribute('disabled') || ((f = a[u]) == null ? void 0 : f.getAttribute('aria-disabled')) === 'true')); return u } function Th(e, t, n) { switch (e) { case 'vertical': return t; case 'horizontal': return n; default: return t || n } } function BO(e, t) { return Th(t, e === N1 || e === Ph, e === Ya || e === Yl) } function L1(e, t, n) { return Th(t, e === Ph, n ? e === Ya : e === Yl) || e === 'Enter' || e == ' ' || e === '' } function dU(e, t, n) { return Th(t, n ? e === Ya : e === Yl, e === Ph) } function hU(e, t, n) { return Th(t, n ? e === Yl : e === Ya, e === N1) } function M1(e, t) { return _n(e, { disabledIndices: t }) } function kO(e, t) { return _n(e, { decrement: !0, startingIndex: e.current.length, disabledIndices: t }) } function pU(e, t) { const { open: n, onOpenChange: r, refs: i, elements: { domReference: o, floating: a } } = e, { listRef: u, activeIndex: c, onNavigate: f = () =>{ }, enabled: h = !0, selectedIndex: g = null, allowEscape: m = !1, loop: y = !1, nested: v = !1, rtl: p = !1, virtual: E = !1, focusItemOnOpen: _ = 'auto', focusItemOnHover: b = !0, openOnArrowKeyDown: x = !0, disabledIndices: O = void 0, orientation: B = 'vertical', cols: k = 1, scrollItemIntoView: P = !0 } = t, I = Gl(), Y = Uo(), j = Qa(f), X = D.useRef(_), $ = D.useRef(g ?? - 1), U = D.useRef(null), T = D.useRef(!0), G = D.useRef(j), se = D.useRef(!!a), re = D.useRef(!1), V = D.useRef(!1), te = Ho(O), le = Ho(n), ce = Ho(P), [ ye, De ] = D.useState(), Ce = Qa(function (J, Q, ge) { ge === void 0 && (ge = !1); const he = J.current[Q.current]; he && (E ? De(he.id) : qi(he, { preventScroll: !0, sync: Ez() && ZS() ? FO || re.current : !1 }), requestAnimationFrame(() =>{ const Pe = ce.current; Pe && he && (ge || !T.current) && (he.scrollIntoView == null || he.scrollIntoView(typeof Pe == 'boolean' ? { block: 'nearest', inline: 'nearest' } : Pe)) })) }); Nt(() =>{ document.createElement('div').focus({ get preventScroll() { return FO = !0, !1 } }) }, [ ]), Nt(() =>{ h && (n && a ? X.current && g != null && (V.current = !0, j(g)) : se.current && ($.current = - 1, G.current(null))) }, [ h, n, a, g, j ]), Nt(() =>{ if (h && n && a) if (c == null) { if (re.current = !1, g != null) return; if (se.current && ($.current = - 1, Ce(u, $)), !se.current && X.current && (U.current != null || X.current === !0 && U.current == null)) { let J = 0; const Q = () =>{ u.current[0] == null ? (J < 2 && (J ? requestAnimationFrame : queueMicrotask) (Q), J++) : ($.current = U.current == null || L1(U.current, B, p) || v ? M1(u, te.current) : kO(u, te.current), U.current = null, j($.current)) }; Q() } } else Jl(u, c) || ($.current = c, Ce(u, $, V.current), V.current = !1) }, [ h, n, a, c, g, v, u, B, p, j, Ce, te ]), Nt(() =>{ if (h && se.current && !a && Y) { var J, Q; const ge = Y.nodesRef.current, he = (J = ge.find(Fe=>Fe.id === I)) == null || (Q = J.context) == null ? void 0 : Q.elements.floating, Pe = Ki(Wn(a)), me = ge.some(Fe=>Fe.context && on(Fe.context.elements.floating, Pe)); he && !me && he.focus({ preventScroll: !0 }) } }, [ h, a, Y, I ]), Nt(() =>{ G.current = j, se.current = !!a }), Nt(() =>{ n || (U.current = null) }, [ n ]); const L = c != null, ne = D.useMemo(() =>{ function J(ge) { if (!n) return; const he = u.current.indexOf(ge); he !== - 1 && j(he) } return { onFocus(ge) { let { currentTarget: he } = ge; J(he) }, onClick: ge=>{ let { currentTarget: he } = ge; return he.focus({ preventScroll: !0 }) }, ...b && { onMouseMove(ge) { let { currentTarget: he } = ge; J(he) }, onPointerLeave(ge) { let { pointerType: he } = ge; !T.current || he === 'touch' || ($.current = - 1, Ce(u, $), j(null), E || qi(i.floating.current, { preventScroll: !0 })) } } } }, [ n, i, Ce, b, u, j, E ]); return D.useMemo(() =>{ if (!h) return { }; const J = te.current; function Q(me) { if (T.current = !1, re.current = !0, !le.current && me.currentTarget === i.floating.current) return; if (v && hU(me.key, B, p)) { lr(me), r(!1, me.nativeEvent), dn(o) && o.focus(); return } const Fe = $.current, Se = M1(u, J), Re = kO(u, J); if (me.key === 'Home' && (lr(me), $.current = Se, j($.current)), me.key === 'End' && (lr(me), $.current = Re, j($.current)), k > 1) { const Be = $.current; if (me.key === N1) { if (lr(me), Be === - 1) $.current = Re; else if ($.current = _n(u, { startingIndex: Be, amount: k, decrement: !0, disabledIndices: J }), y && (Be - k < Se || $.current < 0)) { const ke = Be % k, ct = Re % k, Mt = Re - (ct - ke); ct === ke ? $.current = Re : $.current = ct > ke ? Mt : Mt - k } Jl(u, $.current) && ($.current = Be), j($.current) } if (me.key === Ph && (lr(me), Be === - 1 ? $.current = Se : ($.current = _n(u, { startingIndex: Be, amount: k, disabledIndices: J }), y && Be + k > Re && ($.current = _n(u, { startingIndex: Be % k - k, amount: k, disabledIndices: J }))), Jl(u, $.current) && ($.current = Be), j($.current)), B === 'both') { const ke = Math.floor(Be / k); me.key === Yl && (lr(me), Be % k !== k - 1 ? ($.current = _n(u, { startingIndex: Be, disabledIndices: J }), y && Rh($.current, k, ke) && ($.current = _n(u, { startingIndex: Be - Be % k - 1, disabledIndices: J }))) : y && ($.current = _n(u, { startingIndex: Be - Be % k - 1, disabledIndices: J })), Rh($.current, k, ke) && ($.current = Be)), me.key === Ya && (lr(me), Be % k !== 0 ? ($.current = _n(u, { startingIndex: Be, disabledIndices: J, decrement: !0 }), y && Rh($.current, k, ke) && ($.current = _n(u, { startingIndex: Be + (k - Be % k), decrement: !0, disabledIndices: J }))) : y && ($.current = _n(u, { startingIndex: Be + (k - Be % k), decrement: !0, disabledIndices: J })), Rh($.current, k, ke) && ($.current = Be)); const ct = Math.floor(Re / k) === ke; Jl(u, $.current) && (y && ct ? $.current = me.key === Ya ? Re : _n(u, { startingIndex: Be - Be % k - 1, disabledIndices: J }) : $.current = Be), j($.current); return } } if (BO(me.key, B)) { if (lr(me), n && !E && Ki(me.currentTarget.ownerDocument) === me.currentTarget) { $.current = L1(me.key, B, p) ? Se : Re, j($.current); return } L1(me.key, B, p) ? y ? $.current = Fe >= Re ? m && Fe !== u.current.length ? - 1 : Se : _n(u, { startingIndex: Fe, disabledIndices: J }) : $.current = Math.min(Re, _n(u, { startingIndex: Fe, disabledIndices: J })) : y ? $.current = Fe <= Se ? m && Fe !== - 1 ? u.current.length : Re : _n(u, { startingIndex: Fe, decrement: !0, disabledIndices: J }) : $.current = Math.max(Se, _n(u, { startingIndex: Fe, decrement: !0, disabledIndices: J })), Jl(u, $.current) ? j(null) : j($.current) } } function ge(me) { _ === 'auto' && JS(me.nativeEvent) && (X.current = !0) } function he(me) { X.current = _, _ === 'auto' && XS(me.nativeEvent) && (X.current = !0) } const Pe = E && n && L && { 'aria-activedescendant': ye }; return { reference: { ...Pe, onKeyDown(me) { T.current = !1; const Fe = me.key.indexOf('Arrow') === 0; if (E && n) return Q(me); if (!n && !x && Fe) return; const Se = Fe || me.key === 'Enter' || me.key.trim() === '', Re = BO(me.key, B), Be = dU(me.key, B, p); if (Se && (U.current = v && Re ? null : me.key), v) { Be && (lr(me), n ? ($.current = M1(u, J), j($.current)) : r(!0, me.nativeEvent)); return } Re && (g != null && ($.current = g), lr(me), !n && x ? r(!0, me.nativeEvent) : Q(me), n && j($.current)) }, onFocus() { n && j(null) }, onPointerDown: he, onMouseDown: ge, onClick: ge }, floating: { 'aria-orientation': B === 'both' ? void 0 : B, ...Pe, onKeyDown: Q, onPointerMove() { T.current = !0 } }, item: ne } }, [ o, i, ye, te, le, u, h, B, p, E, n, L, v, g, x, m, k, y, _, j, r, ne ]) } function Xl(e) { return D.useMemo(() =>e.every(t=>t == null) ? null : t=>{ e.forEach(n=>{ typeof n == 'function' ? n(t) : n != null && (n.current = t) }) }, e) } function Ih(e, t) { t === void 0 && (t = { }); const { open: n, floatingId: r } = e, { enabled: i = !0, role: o = 'dialog' } = t, a = Ah(); return D.useMemo(() =>{ const u = { id: r, role: o }; return i ? o === 'tooltip' ? { reference: { 'aria-describedby': n ? r : void 0 }, floating: u } : { reference: { 'aria-expanded': n ? 'true' : 'false', 'aria-haspopup': o === 'alertdialog' ? 'dialog' : o, 'aria-controls': n ? r : void 0, ...o === 'listbox' && { role: 'combobox' }, ...o === 'menu' && { id: a } }, floating: { ...u, ...o === 'menu' && { 'aria-labelledby': a } } } : { } }, [ i, o, n, r, a ]) } function PO(e, t) { const [n, r] = e; let i = !1; const o = t.length; for (let a = 0, u = o - 1; a < o; u = a++) { const [c, f] = t[a] || [ 0, 0 ], [ h, g ] = t[u] || [ 0, 0 ]; f >= r != g >= r && n <= (h - c) * (r - f) / (g - f) + c && (i = !i) } return i } function gU(e, t) { return e[0] >= t.x && e[0] <= t.x + t.width && e[1] >= t.y && e[1] <= t.y + t.height } function mU(e) { e === void 0 && (e = { }); const { buffer: t = 0.5, blockPointerEvents: n = !1, requireIntent: r = !0 } = e; let i, o = !1, a = null, u = null, c = performance.now(); function f(g, m) { const y = performance.now(), v = y - c; if (a === null || u === null || v === 0) return a = g, u = m, c = y, null; const p = g - a, E = m - u, b = Math.sqrt(p * p + E * E) / v; return a = g, u = m, c = y, b } const h = g=>{ let { x: m, y, placement: v, elements: p, onClose: E, nodeId: _, tree: b } = g; return function (O) { function B() { clearTimeout(i), E() } if (clearTimeout(i), !p.domReference || !p.floating || v == null || m == null || y == null) return; const { clientX: k, clientY: P } = O, I = [ k, P ], Y = x1(O), j = O.type === 'mouseleave', X = on(p.floating, Y), $ = on(p.domReference, Y), U = p.domReference.getBoundingClientRect(), T = p.floating.getBoundingClientRect(), G = v.split('-') [0], se = m > T.right - T.width / 2, re = y > T.bottom - T.height / 2, V = gU(I, U), te = T.width > U.width, le = T.height > U.height, ce = (te ? U : T).left, ye = (te ? U : T).right, De = (le ? U : T).top, Ce = (le ? U : T).bottom; if (X && (o = !0, !j)) return; if ($ && (o = !1), $ && !j) { o = !0; return } if (j && Ut(O.relatedTarget) && on(p.floating, O.relatedTarget) || b && Ga(b.nodesRef.current, _).some(J=>{ let { context: Q } = J; return Q == null ? void 0 : Q.open })) return; if (G === 'top' && y >= U.bottom - 1 || G === 'bottom' && y <= U.top + 1 || G === 'left' && m >= U.right - 1 || G === 'right' && m <= U.left + 1) return B(); let L = [ ]; switch (G) { case 'top': L = [ [ce, U.top + 1], [ ce, T.bottom - 1 ], [ ye, T.bottom - 1 ], [ ye, U.top + 1 ] ]; break; case 'bottom': L = [ [ce, T.top + 1], [ ce, U.bottom - 1 ], [ ye, U.bottom - 1 ], [ ye, T.top + 1 ] ]; break; case 'left': L = [ [T.right - 1, Ce], [ T.right - 1, De ], [ U.left + 1, De ], [ U.left + 1, Ce ] ]; break; case 'right': L = [ [U.right - 1, Ce], [ U.right - 1, De ], [ T.left + 1, De ], [ T.left + 1, Ce ] ]; break } function ne(J) { let[Q, ge] = J; switch (G) { case 'top': { const he = [ te ? Q + t / 2 : se ? Q + t * 4 : Q - t * 4, ge + t + 1 ], Pe = [ te ? Q - t / 2 : se ? Q + t * 4 : Q - t * 4, ge + t + 1 ], me = [ [T.left, se || te ? T.bottom - t : T.top], [ T.right, se ? te ? T.bottom - t : T.top : T.bottom - t ] ]; return [he, Pe, ...me] } case 'bottom': { const he = [ te ? Q + t / 2 : se ? Q + t * 4 : Q - t * 4, ge - t ], Pe = [ te ? Q - t / 2 : se ? Q + t * 4 : Q - t * 4, ge - t ], me = [ [T.left, se || te ? T.top + t : T.bottom], [ T.right, se ? te ? T.top + t : T.bottom : T.top + t ] ]; return [he, Pe, ...me] } case 'left': { const he = [ Q + t + 1, le ? ge + t / 2 : re ? ge + t * 4 : ge - t * 4 ], Pe = [ Q + t + 1, le ? ge - t / 2 : re ? ge + t * 4 : ge - t * 4 ]; return [...[[re || le ? T.right - t : T.left, T.top], [ re ? le ? T.right - t : T.left : T.right - t, T.bottom ]], he, Pe] } case 'right': { const he = [ Q - t, le ? ge + t / 2 : re ? ge + t * 4 : ge - t * 4 ], Pe = [ Q - t, le ? ge - t / 2 : re ? ge + t * 4 : ge - t * 4 ], me = [ [re || le ? T.left + t : T.right, T.top], [ re ? le ? T.left + t : T.right : T.left + t, T.bottom ] ]; return [he, Pe, ...me] } } } if (!PO([k, P], L)) { if (o && !V) return B(); if (!j && r) { const J = f(O.clientX, O.clientY); if (J !== null && J < 0.1) return B() } PO([k, P], ne([m, y])) ? !o && r && (i = window.setTimeout(B, 40)) : B() } } }; return h.__options = { blockPointerEvents: n }, h } const $1 = D.createContext({ getItemProps: () =>({ }), activeIndex: null, setActiveIndex: () =>{ }, isOpen: !1 }), vU = { menu: '_menu_1hdnv_1', button: '_button_1hdnv_8' }, { button: yU, menu: wU } = vU, bU = D.forwardRef(function ({ children: t, buttonLabel: n, ...r }, i) { const [o, a] = D.useState(!1), [ u, c ] = D.useState(null), f = D.useRef([]), h = D.useRef([]), g = D.useContext($1), m = Uo(), y = Qz(), v = xO(), { floatingStyles: p, refs: E, context: _ } = Bh({ nodeId: y, open: o, onOpenChange: a, placement: 'bottom-start', middleware: [ hh({ mainAxis: 4, alignmentAxis: 0 }), IS(), b1() ], whileElementsMounted: mh }), b = T1(_, { event: 'mousedown', toggle: !0 }), x = Ih(_, { role: 'menu' }), O = Fh(_, { bubbles: !0 }), B = pU(_, { listRef: f, activeIndex: u, onNavigate: c }), { getReferenceProps: k, getFloatingProps: P, getItemProps: I } = kh([b, x, O, B]); return D.useEffect(() =>{ if (!m) return; function Y() { a(!1) } return m.events.on('click', Y), () =>{ m.events.off('click', Y) } }, [ m, y ]), D.useEffect(() =>{ o && m && m.events.emit('menuopen', { nodeId: y }) }, [ m, o, y ]), Ve(Yz, { id: y, children: [ W('button', { ref: Xl([E.setReference, v.ref, i]), tabIndex: 0, 'aria-expanded': o, className: yU, ...k(g.getItemProps({ ...r, onFocus(Y) { var j; (j = r.onFocus) == null || j.call(r, Y) } })), children: n }), W($1.Provider, { value: { activeIndex: u, setActiveIndex: c, getItemProps: I, isOpen: o }, children: W(aU, { elementsRef: f, labelsRef: h, children: o && W(Oh, { children: W(R1, { context: _, children: W('div', { ref: E.setFloating, className: wU, style: p, ...P(), children: t }) }) }) }) }) ] }) }); D.forwardRef(function (t, n) { return W(Jz, { children: W(bU, { ...t, ref: n }) }) }); const _U = { item: '_item_2hnsa_1' }, { item: CU } = _U; D.forwardRef(function ({ children: t, disabled: n, element: r, label: i, ...o }, a) { const u = D.useContext($1), c = xO({ label: n ? null : i }), f = Uo(), h = c.index === u.activeIndex, g = { ...o, ref: Xl([c.ref, a]), className: CU, tabIndex: h ? 0 : - 1, role: 'button', ...u.getItemProps({ onClick(m) { var y; (y = o.onClick) == null || y.call(o, m), f == null || f.events.emit('click') }, onFocus(m) { var y; (y = o.onFocus) == null || y.call(o, m) } }) }; return r && D.isValidElement(r) ? D.cloneElement(r, g) : W('button', { ...g, type: 'button', disabled: n, children: i || t }) }); const EU = { radio: '_radio_1lyat_1', input: '_input_1lyat_8' }, { radio: DU, input: xU } = EU; D.forwardRef(function ({ children: t, className: n, ...r }, i) { return Ve('label', { className: No([DU, n]), children: [ W('input', { ...r, className: xU, type: 'radio', ref: i }), W('span', { children: t }) ] }) }); const Nh = { 'stars-inactive': '_stars-inactive_1axb3_1', 'stars-active': '_stars-active_1axb3_1', 'star-inactive': '_star-inactive_1axb3_6', 'star-active': '_star-active_1axb3_6', root: '_root_1axb3_10' }; Nh['star-active'], Nh['star-inactive'], Nh['stars-active'], Nh['stars-inactive']; const mle = { spacer: '_spacer_1fr9r_1' }, yle = { spoiler: '_spoiler_1mxys_1' }, AU = ({ initialOpen: e = !1, placement: t = 'top-start', open: n, onOpenChange: r, popover: i = !1, noFlip: o = !1, returnFocus: a = !0 } = { }) =>{ const [u, c] = D.useState(e), f = n ?? u, h = r ?? c, g = Bh({ placement: t, open: f, onOpenChange: h, whileElementsMounted: mh, middleware: [ hh(5), !o && IS({ crossAxis: t.includes('-'), fallbackAxisSideDirection: 'start', padding: 5 }), b1({ padding: 5 }) ] }), m = g.context, y = Xz(m, { handleClose: mU(), move: !1, enabled: !i }), v = T1(m, { enabled: i }), p = OO(m, { enabled: n == null }), E = Fh(m), _ = Ih(m, { role: 'tooltip' }), b = kh([y, v, p, E, _]); return D.useMemo(() =>({ open: f, returnFocus: a, setOpen: h, ...b, ...g }), [ f, h, b, g, a ]) }, RO = D.createContext(null), TO = () =>{ const e = D.useContext(RO); if (e == null) throw new Error('Tooltip components must be wrapped in <Tooltip />'); return e }, IO = ({ children: e, ...t }) =>{ const n = AU(t); return W(RO.Provider, { value: n, children: e }) }, SU = { popover: '_popover_1ocis_1' }, NO = D.forwardRef(function ({ style: t, ...n }, r) { const { context: i, refs: o, returnFocus: a, getFloatingProps: u } = TO(), c = Xl([o.setFloating, r]); return i.open ? W(Oh, { children: W(R1, { context: i, modal: !1, returnFocus: a, children: W('div', { ref: c, className: SU.popover, style: { ...i.floatingStyles, ...t }, ...u(n) }) }) }) : null }), OU = { button: '_button_rdrky_1' }, { button: FU } = OU, LO = D.forwardRef(function ({ children: t, ...n }, r) { const { open: i, refs: o, getReferenceProps: a } = TO(), { anchor: u, ...c } = n; if (u && D.isValidElement(u)) return D.cloneElement(u, a({ ref: Xl([o.setReference, r, u.ref]), ...u.props, ...c, 'aria-expanded': i, onClick(g) { g.preventDefault(), g.stopPropagation() } })); const f = t.ref, h = Xl([o.setReference, r, f]); return W('button', { className: FU, ref: h, 'aria-expanded': i, ...a({ ...c, onClick(g) { g.preventDefault(), g.stopPropagation() } }), children: t }) }), Ele = { tooltip: '_tooltip_ia50n_1', text: '_text_ia50n_16' }, xle = { tabs: '_tabs_1wiw0_1' }, Ble = { disabled: '_disabled_1sb5m_1', selected: '_selected_1sb5m_1', tab: '_tab_1sb5m_1', text: '_text_1sb5m_57' }, Rs = { selected: '_selected_p9fex_1', selectable: '_selectable_p9fex_1', delete : '_delete_p9fex_29', element: '_element_p9fex_47', image: '_image_p9fex_55', wrapper: '_wrapper_p9fex_63', loader: '_loader_p9fex_70' }, BU = ({ attributes: e, children: t, element: n }) =>{ const r = Or(), i = ee.findPath(r, n), o = Hd(); return Ve('span', { ...e, className: Rs.element, children: [ t, W('span', { contentEditable: !1, className: No([Rs.wrapper, o ? Rs.selected : Rs.selectable]), children: n.url && !n.isUploading ? Ve(Qs, { children: [ W('img', { src: n.url, className: Rs.image }), o && W(qv, { className: Rs.delete, onClick: () =>K.removeNodes(r, { at: i }) }) ] }) : W('span', { className: Rs.loader, children: W(e1, { height: 115 }) }) }) ] }) }, kU = ({ text: e, url: t, onCancel: n, onSubmit: r }) =>{ const [i, o] = D.useState(e), [ a, u ] = D.useState(t), c = () =>{ o(''), u('') }, f = () =>{ c(), n() }, h = g=>{ g.preventDefault(), !(!i || !a) && (r({ text: i, url: a }), c()) }; return D.useEffect(() =>o(e), [ e ]), D.useEffect(() =>u(t), [ t ]), { textValue: i, urlValue: a, onCancelHandler: f, onSubmitHandler: h, setText: o, setUrl: u } }, Xr = { dialog: '_dialog_1p5t1_1', submit: '_submit_1p5t1_11', cancel: '_cancel_1p5t1_11', form: '_form_1p5t1_15', field: '_field_1p5t1_22', label: '_label_1p5t1_28', input: '_input_1p5t1_35', buttons: '_buttons_1p5t1_80' }, MO = ({ submitButtonText: e, text: t = '', url: n = '', onCancel: r, onSubmit: i }) =>{ const { t: o } = zn(), { textValue: a, urlValue: u, onCancelHandler: c, onSubmitHandler: f, setText: h, setUrl: g } = kU({ text: t, url: n, onCancel: r, onSubmit: i }); return W('div', { className: Xr.dialog, children: Ve('form', { className: Xr.form, onSubmit: f, children: [ Ve('div', { className: Xr.field, children: [ W('label', { className: Xr.label, children: o('Text') }), W('input', { className: Xr.input, value: a, onChange: m=>h(m.target.value), placeholder: o('Text to display') }) ] }), Ve('div', { className: Xr.field, children: [ W('label', { className: Xr.label, children: o('Link') }), W('input', { className: Xr.input, value: u, onChange: m=>g(m.target.value), placeholder: o('Paste or type a link') }) ] }), Ve('div', { className: Xr.buttons, children: [ W(Zv, { className: Xr.cancel, onClick: c, type: 'reset', children: o('Cancel') }), W(Zv, { className: Xr.submit, disabled: !a || !u, color: 'primary', type: 'submit', children: e || o('Insert') }) ] }) ] }) }) }, PU = () =>{ const e = Wi(), { selection: t } = e, [ n, r ] = D.useState(''), [ i, o ] = D.useState(''), a = Gv(e), u = a && RA(e, { at: e.selection }), [ c, f ] = D.useState(!1), h = y=>f(y), g = () =>{ ee.focus(e) }, m = ({ text: y, url: v }) =>{ a ? AA(e, v, y) : Kd(e, v, y), f(!1) }; return D.useEffect(() =>{ if (!t) return; const y = C.string(e, t); if (a) { const v = LM(e), { text: p, url: E } = v; p.includes(y) ? r(p) : r(y), o(E) } else q.isExpanded(t) ? (r(y), o('')) : (r(''), o('')) }, [ t, a ]), D.useEffect(() =>{ c || ee.focus(e) }, [ e, c ]), { isActive: a, isDisabled: u, isOpen: c, text: n, url: i, onCancel: g, onOpenChange: h, onSubmit: m } }, j1 = { button: '_button_1559b_1', active: '_active_1559b_1', icon: '_icon_1559b_36' }, RU = () =>{ const { t: e } = zn(), { isActive: t, isDisabled: n, isOpen: r, text: i, url: o, onCancel: a, onOpenChange: u, onSubmit: c } = PU(); return Ve(IO, { open: r, placement: 'right-end', popover: !0, onOpenChange: u, returnFocus: !1, children: [ W(LO, { anchor: W('button', { className: t ? j1.active : j1.button, disabled: n, title: e('Link'), children: Os('link', j1.icon) () }) }), W(NO, { children: W(MO, { text: i, url: o, onCancel: a, onSubmit: c }) }) ] }) }, Zl = { selected: '_selected_10kig_1', selectable: '_selectable_10kig_1', delete : '_delete_10kig_29', preview: '_preview_10kig_47', 'no-pointer': '_no-pointer_10kig_56' }, TU = ({ children: e, media: t, selected: n, onDelete: r }) =>{ const i = t ? FS[t.mediaType] : null; return i ? Ve('span', { className: No([Zl.preview, n ? Zl.selected : Zl.selectable]), children: [ e, W('span', { className: Zl['no-pointer'], children: W(i, { media: t }) }), n && W(qv, { className: Zl.delete, onClick: r }) ] }) : null }, Ts = { button: '_button_1ka0a_1', container: '_container_1ka0a_36', link: '_link_1ka0a_56', separator: '_separator_1ka0a_69', icon: '_icon_1ka0a_79' }, IU = ({ url: e, onDelete: t, onEdit: n }) =>{ const { t: r } = zn(); return Ve('span', { className: Ts.container, contentEditable: !1, children: [ W('a', { className: Ts.link, href: e, target: '_blank', rel: 'noopener noreferrer', tabIndex: - 1, children: e }), W('span', { className: Ts.separator }), W('button', { className: Ts.button, onClick: n, title: r('Edit'), children: W(IM, { className: Ts.icon }) }), W('button', { className: Ts.button, onClick: t, title: r('Remove'), children: W(OM, { className: Ts.icon }) }) ] }) }, NU = ({ children: e, context: t, disableFocus: n = !1, interactions: r, isOpen: i, refs: o, returnFocus: a = !1 }) =>{ var h; const { getFloatingProps: u } = r, { middlewareData: c, floatingStyles: f } = t; return W(Oh, { children: i && W(R1, { context: t, modal: !1, disabled: n, returnFocus: a, children: W('div', { ref: o.setFloating, style: { ...f, visibility: (h = c.hide) != null && h.referenceHidden ? 'hidden' : 'visible' }, ...u(), children: e }) }) }) }, LU = ({ elementContext: e, isOpen: t = !1, placement: n = 'bottom-start', onOpenChange: r } = { }) =>{ const i = Wi(), o = D.useRef(), { context: a, refs: u } = Bh({ middleware: [ hh(5), ez(), b1({ crossAxis: !0, boundary: o.current, elementContext: e }) ], open: t, placement: n, strategy: 'fixed', onOpenChange: r, whileElementsMounted: mh }), c = Ih(a, { role: 'menu' }), f = Fh(a), h = T1(a, { enabled: !0 }), g = OO(a), m = kh([g, c, f, h]); return D.useEffect(() =>{ o.current = ee.toDOMNode(i, i) }, [ i ]), { context: a, refs: u, interactions: m } }, MU = fi() (e=>({ forum: '', thread: '', init({ forum: t, thread: n }) { e(bt(r=>{ r.forum = t, r.thread = n })) } })), $O = di(MU), $U = ({ element: e }) =>{ const [t, n] = D.useState(!1), [ r, i ] = D.useState(!1), o = Wi(), a = $O.use.forum(), { url: u, view: c } = e, f = de.string(e), h = ee.findPath(o, e), { data: g } = HD({ forum: a, url: u }), m = g ? FS[g.mediaType] : null, y = () =>n(!0), v = () =>Qv(o, { at: h }), p = ({ text: b, url: x }) =>{ AA(o, x, b), n(!1), i(!1) }, E = () =>{ n(!1), i(!1) }; D.useEffect(() =>{ r || ee.focus(o) }, [ o, r ]); const _ = () =>K.removeNodes(o, { at: h }); return D.useEffect(() =>{ g && OR.includes(g.mediaType) && K.setNodes(o, { view: 'embed' }, { at: h }) }, [ g ]), { editor: o, isEditing: t, isOpen: r, media: g, RichMediaView: m, text: f, url: u, view: c, onCancelHandler: E, onDeleteHandler: v, onEditHandler: y, onUpdateHandler: p, removeElement: _, setOpen: i } }, jU = { block: '_block_865k6_1' }, zU = ({ attributes: e, element: t, children: n }) =>{ const { t: r } = zn(), i = Hd(), { isEditing: o, isOpen: a, text: u, media: c, url: f, view: h, onCancelHandler: g, onDeleteHandler: m, onEditHandler: y, onUpdateHandler: v, removeElement: p, setOpen: E } = $U({ element: t }), { context: _, interactions: b, refs: x } = LU({ onOpenChange: E, isOpen: a }), { getReferenceProps: O } = b; return Ve(Qs, { children: [ h === 'embed' && c ? W('span', { className: jU.block, ...e, children: W('span', { ...O(), ref: x.setReference, children: Ve(TU, { selected: i, media: c, onDelete: p, children: [ f !== u && W('a', { href: f, children: u }), n ] }) }) }) : W('a', { href: f, ...e, ...O(), ref: x.setReference, children: n }), W(NU, { context: _, disableFocus: !o, interactions: b, isOpen: a, refs: x, children: o ? W(MO, { submitButtonText: r('Save'), text: u, url: f, onCancel: g, onSubmit: v }) : W(IU, { url: f, onEdit: y, onDelete: m }) }) ] }) }, jO = { selected: '_selected_12oyo_1', mention: '_mention_12oyo_1' }, UU = ({ attributes: e, children: t, element: n }) =>{ const r = Hd(), i = JL(); return Ve('span', { ...e, className: i && r ? jO.selected : jO.mention, contentEditable: !1, children: [ n.name, t ] }) }, zO = { default: '_default_1alzx_1', active: '_active_1alzx_12' }, HU = ({ attributes: e, children: t }) =>{ const n = Or(), r = Vd(n) ? zO.active : zO.default; return W('span', { ...e, onClick: i=>i.preventDefault(), className: r, children: t }) }, Ja = { selected: '_selected_1lt3i_1', selectable: '_selectable_1lt3i_1', delete : '_delete_1lt3i_29', video: '_video_1lt3i_47', container: '_container_1lt3i_57', wrapper: '_wrapper_1lt3i_63' }, WU = ({ attributes: e, children: t, element: n, forum: r }) =>{ const i = Wi(), o = Hd(), { url: a } = n, u = ee.findPath(i, n), { data: c } = HD({ forum: r, url: a }); return Ve('span', { ...e, className: Ja.container, children: [ t, Ve('span', { contentEditable: !1, className: No([Ja.wrapper, o ? Ja.selected : Ja.selectable]), children: [ W('video', { className: Ja.video, autoPlay: !0, muted: !0, loop: !0, playsInline: !0, src: c == null ? void 0 : c.thumbnailUrl }), o && W(qv, { className: Ja.delete, onClick: () =>K.removeNodes(i, { at: u }) }) ] }) ] }) }, VU = { quote: '_quote_11ucn_1' }, KU = ({ attributes: e, children: t, element: n, forum: r }) =>{ const i = { 'block-quote': () =>W('blockquote', { className: VU.quote, ...e, children: t }), link: () =>W(zU, { element: n, attributes: e, children: t }), spoiler: () =>W(HU, { attributes: e, children: t }), image: () =>W(BU, { element: n, attributes: e, children: t }), mention: () =>W(UU, { attributes: e, element: n, children: t }), video: () =>W(WU, { element: n, attributes: e, forum: r, children: t }), default: () =>W('div', { ...e, children: t }) }; return i[n.type] ?? i.default }, qU = ({ attributes: e, children: t, element: n, forum: r }) =>KU({ attributes: e, children: t, element: n, forum: r }) (), GU = { button: '_button_12m5a_1' }, QU = ({ title: e, open: t }) =>W(Qs, { children: W('button', { className: GU.button, onClick: n=>{ n.preventDefault(), t() }, title: e, children: Os('image') () }) }), YU = { code: '_code_vr1vh_1' }, JU = ({ attributes: e, children: t, leaf: n }) =>(n.bold && (t = W('b', { children: t })), n.code && (t = W('code', { className: YU.code, children: t })), n.italic && (t = W('i', { children: t })), n.underline && (t = W('u', { children: t })), n.strikethrough && (t = W('s', { children: t })), W('span', { ...e, children: t })), z1 = { button: '_button_1559b_1', active: '_active_1559b_1', icon: '_icon_1559b_36' }, ec = ({ format: e, title: t }) =>{ const n = Wi(), r = bA(n, e) ? z1.active : z1.button; return W('button', { className: r, onClick: i=>{ i.preventDefault(), wA(n, e) }, title: t, children: Os(e, z1.icon) () }) }, XU = () =>{ const e = Wi(); return { onClick: n=>{ n.preventDefault(), EA(e) } } }, U1 = { button: '_button_1559b_1', active: '_active_1559b_1', icon: '_icon_1559b_36' }, ZU = () =>{ const e = Wi(), { onClick: t } = XU(), { t: n } = zn(), r = Vd(e) ? U1.active : U1.button; return W('button', { className: r, onClick: t, title: n('Spoiler'), children: Os('spoiler', U1.icon) () }) }, eH = { button: '_button_12m5a_1' }, tH = D.forwardRef(function ({ title: t, onClick: n }, r) { return W('button', { ref: r, className: eH.button, onClick: n, title: t, children: Os('gifPicker') () }) }), UO = 'Trending', HO = { LEFT: [ { title: UO, gifUrl: 'https://media.giphy.com/media/WsV5AoDeKePw4/200w_d.gif', width: 200, height: 113 }, { title: 'OMG', gifUrl: 'https://media.giphy.com/media/5VKbvrjxpVJCM/200w_d.gif', width: 200, height: 160 }, { title: 'No', gifUrl: 'https://media.giphy.com/media/z5WtAAaFpnIgU/200w_d.gif', width: 200, height: 150 }, { title: 'Slow clap', gifUrl: 'https://media.giphy.com/media/58FMN3DmsmYta2m0aB/200w_d.gif', width: 200, height: 150 }, { title: 'Love', gifUrl: 'https://media.giphy.com/media/Xf7g5BjIIMun8fR14k/200w_d.gif', width: 200, height: 199 }, { title: 'Eye roll', gifUrl: 'https://media.giphy.com/media/sbwjM9VRh0mLm/200w_d.gif', width: 200, height: 142 } ], RIGHT: [ { title: 'Applause', gifUrl: 'https://media.giphy.com/media/fnK0jeA8vIh2QLq3IZ/200w_d.gif', width: 200, height: 201 }, { title: 'Agree', gifUrl: 'https://media.giphy.com/media/3og0ILzGlzG26yNINq/200w_d.gif', width: 200, height: 166 }, { title: 'Ok', gifUrl: 'https://media.giphy.com/media/mgqefqwSbToPe/200w_d.gif', width: 200, height: 150 }, { title: 'Thumbs up', gifUrl: 'https://media.giphy.com/media/j5QcmXoFWl4Q0/200w_d.gif', width: 200, height: 125 }, { title: 'Thumbs down', gifUrl: 'https://media.giphy.com/media/KUrgyFtn9bQNW/200w_d.gif', width: 200, height: 128 }, { title: 'Thank you', gifUrl: 'https://media.giphy.com/media/QAsBwSjx9zVKoGp9nr/200w_d.gif', width: 200, height: 144 } ] }, Lh = { categories: '_categories_19ro8_1', column: '_column_19ro8_20', image: '_image_19ro8_26', title: '_title_19ro8_58' }, nH = ({ onCategoryClick: e }) =>{ const { t } = zn(), n = (r, i) =>{ r.code === Li.ENTER && e(i) }; return W('div', { className: Lh.categories, children: Object.keys(HO).map(r=>W('div', { className: Lh.column, children: HO[r].map(i=>Ve('div', { className: Lh.image, 'data-action': 'gif-picker-category', 'data-tag': i.title, tabIndex: 0, 'aria-label': t('Collection of animated images in the category of %(category)s', { category: i.title }), onClick: () =>e(i), onKeyDown: o=>n(o, i), children: [ W('img', { src: i.gifUrl, style: { height: `${ i.height }px`, width: `${ i.width }px` } }), W('div', { className: Lh.title, children: W('b', { children: i.title }) }) ] }, i.title)) }, r)) }) }, rH = e=>{ const t = [ ], n = [ ]; let r = 0, i = 0; return e.forEach(o=>{ const a = Number.parseInt(o.fixedWidth200.height, 10) + 10; i >= r ? (t.push(o), r += a) : (n.push(o), i += a) }), [ t, n ] }, iH = ({ gifs: e, onEndReached: t }) =>{ const [n, r] = D.useState([]), i = D.useRef(null), o = yy(i); return D.useEffect(() =>{ r(rH(e)) }, [ e ]), D.useEffect(() =>{ o && t() }, [ o ]), { columns: n, observerRef: i } }, Mh = { gifs: '_gifs_lkt4v_1', columns: '_columns_lkt4v_12', column: '_column_lkt4v_12', image: '_image_lkt4v_29' }, oH = ({ gifs: e, onItemClick: t, onEndReached: n }) =>{ const { columns: r, observerRef: i } = iH({ gifs: e, onItemClick: t, onEndReached: n }), o = u=>t(u.default.url), a = (u, c) =>{ u.code === Li.ENTER && o(c) }; return Ve('div', { className: Mh.gifs, children: [ W('div', { className: Mh.columns, children: r.map((u, c) =>W('div', { className: Mh.column, children: u.map(f=>W('div', { className: Mh.image, 'data-tag': f.default.url, tabIndex: 0, 'aria-label': f.title, onClick: () =>o(f), onKeyDown: h=>a(h, f), children: W('img', { src: f.fixedWidth200.url, title: f.title, style: { height: `${ f.fixedWidth200.height }px`, width: `${ f.fixedWidth200.width }px` } }) }, f.id)) }, c)) }), W('div', { ref: i }) ] }) }, sH = ({ value: e, onChange: t }) =>{ const [n, r] = D.useState(e); return D.useEffect(() =>{ const o = setTimeout(() =>{ t(n) }, 250); return () =>clearTimeout(o) }, [ n ]), D.useEffect(() =>{ r(e) }, [ e ]), { innerValue: n, handleOnChange: o=>r(o.target.value) } }, WO = { searchbox: '_searchbox_1ftd7_1', input: '_input_1ftd7_6' }, aH = ({ className: e, placeholder: t, value: n, onChange: r }) =>{ const { innerValue: i, handleOnChange: o } = sH({ value: n, onChange: r }); return W('div', { className: No(WO.searchbox, e), children: W('input', { className: WO.input, placeholder: t, value: i, onChange: o }) }) }, uH = [ [{ width: 200, height: 204 }, { width: 200, height: 112 }, { width: 200, height: 180 }, { width: 200, height: 240 } ], [ { width: 200, height: 240 }, { width: 200, height: 180 }, { width: 200, height: 112 }, { width: 200, height: 204 } ] ], H1 = { skeleton: '_skeleton_drbub_12', image: '_image_drbub_27', pulse: '_pulse_drbub_1', column: '_column_drbub_35' }, lH = () =>W('div', { className: H1.skeleton, children: uH.map((e, t) =>W('div', { className: H1.column, children: e.map((n, r) =>W('div', { className: H1.image, style: { height: `${ n.height }px`, width: `${ n.width }px` } }, r)) }, t)) }), cH = ({ forum: e, isEnabled: t, query: n }) =>{ const r = [ Vm.gifSearch, e, n ]; return PE({ queryKey: r, enabled: t, refetchOnWindowFocus: !1, queryFn: ({ pageParam: i = 1 }) =>F8({ forum: e, page: i, query: n }), getNextPageParam: (i, o) =>o.length + 1, select: i=>({ ...i, gifs: i.pages.flat() }) }) }, fH = ({ forum: e }) =>{ const [t, n] = D.useState(!1), [ r, i ] = D.useState(''), [ o, a ] = D.useState(null), u = Or(), { data: c, isFetching: f, isFetchingNextPage: h, fetchNextPage: g } = cH({ query: r, forum: e, isEnabled: !!(t && (o || r)) }), { gifs: m = [ ] } = c || { }, y = _=>{ MM(u, _), n(!1) }, v = _=>n(_), p = _=>{ a(_), i(_.title === UO ? '' : _.title) }, E = _=>{ a(null), i(_) }; return D.useEffect(() =>{ t || (a(null), i('')) }, [ t ]), { query: r, gifs: m, isFetching: f && !h, isOpen: t, shouldDisplayGifs: !!(o || r), fetchNextPage: g, insertHandler: y, onOpenChange: v, handleCategoryChange: p, handleQueryChange: E, setCategory: a, setQuery: i } }, dH = e=>D.createElement('svg', { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 581.5 67.1', ...e }, D.createElement('path', { fill: 'currentColor', d: 'M327.2 26.7h29.7v25.1c0 1.4-.4 2.5-1.2 3.6-2.3 3.2-5.3 5.4-8.8 6.9-10.6 4.2-21.3 4.5-31.9.2-7.5-3-12.6-8.6-15.3-16.2-3.3-9.3-3.1-18.6 1.1-27.7 3.9-8.3 10.5-13.5 19.2-16 6.1-1.7 12.4-1.8 18.7-.7 5.6 1 11.6 4.5 15.9 9.1-1.6 1.6-3.2 3.2-4.8 4.9L345 21c-.7-.5-1.2-.9-1.6-1.2-5.2-3.9-11-5-17.3-3.7-5 1.1-8.6 4.2-10.3 9-1.9 5.4-2 10.9.2 16.3 2.3 5.6 6.6 8.6 12.6 9.2 3.6.3 7.1 0 10.5-1.3 1.1-.4 2.2-1 3.3-1.5v-7.9h-15.2c-.1-4.3 0-8.7 0-13.2m126.4 37.2h17.1V41.3h21.9v22.6h16.9V3.3h-17c-.1 7.7.1 15.3-.1 22.8h-21.8V3.3h-17.1v60.6zm-42.6-.1V47.5c4 0 8 .1 12 0 2.7-.1 5.3-.4 7.9-1 5.1-1.2 9.4-3.7 12.5-8 3-4.2 4.1-8.9 3.9-13.9-.2-6.5-2.5-12-7.6-16.1-4.4-3.6-9.6-5.1-15.1-5.2h-31.1v60.6H411m-.3-46h12.1c5.5 0 7.9 4.7 7.2 9-.6 3.6-2.8 5.9-6.3 6.1-4.2.2-8.5 0-13 0V17.9zm136.1 6c-4.3-7.2-8.4-13.9-12.5-20.7h-19.8c7.9 12.4 15.7 24.4 23.5 36.6v23.9h17.1v-24c8-11.8 24.4-36.2 24.6-36.5h-19.8c-4.3 6.8-8.6 13.6-13.1 20.7m-164.4 40V3.1h-17.1v60.8h17.1' }), D.createElement('path', { fill: 'currentColor', opacity: 0.6, d: 'M1.7 19.3H15c6.3 0 9.9 4.1 9.9 8.9 0 4.8-3.6 8.9-9.9 8.9H7v10.6H1.7V19.3zm12.5 4.4H7v9.1h7.2c3 0 5.2-1.8 5.2-4.5s-2.2-4.6-5.2-4.6zm29.1-4.9c9.1 0 15.4 6.2 15.4 14.7s-6.4 14.7-15.4 14.7c-9.1 0-15.4-6.2-15.4-14.7s6.3-14.7 15.4-14.7zm0 4.4c-6.1 0-10 4.4-10 10.3 0 5.8 3.9 10.3 10 10.3s10-4.4 10-10.3-3.9-10.3-10-10.3zm36.8 3.5-5.8 21h-5.7L60 19.3h5.9l5.9 21.9L78 19.3h4.2l6.2 21.9 5.8-21.9h5.9l-8.6 28.5H86l-5.9-21.1zm23.7-7.4h20.7v4.4h-15.4v7.4h15.1v4.4h-15.1v7.9h15.4v4.4h-20.7V19.3zm36.6 17.8h-5.2v10.6h-5.3V19.3h13.3c6 0 9.9 3.7 9.9 8.9 0 5.1-3.5 7.8-7.2 8.4l7.4 11.2h-6.1l-6.8-10.7zm2-13.4h-7.2v9.1h7.2c3 0 5.2-1.8 5.2-4.5s-2.2-4.6-5.2-4.6zm15.9-4.4H179v4.4h-15.4v7.4h15.1v4.4h-15.1v7.9H179v4.4h-20.7V19.3zm26.1 0h11.2c9.4 0 15.8 5.9 15.8 14.3s-6.4 14.2-15.8 14.2h-11.2V19.3zm11.2 24.1c6.6 0 10.4-4.4 10.4-9.8 0-5.5-3.6-9.9-10.4-9.9h-5.9v19.7h5.9zm32.6-24.1H243c5.5 0 8.6 3.2 8.6 7.3 0 3.6-2.4 6-5.2 6.5 3.2.5 5.8 3.5 5.8 7 0 4.4-3.1 7.7-8.8 7.7h-15.3V19.3zm13.7 11.8c2.7 0 4.3-1.5 4.3-3.7s-1.5-3.7-4.3-3.7h-8.5v7.4h8.5zm.3 12.3c2.9 0 4.6-1.5 4.6-4 0-2.1-1.6-3.9-4.6-3.9h-8.7v7.9h8.7zm22.5-7.5L253 19.3h6.1l8.3 12.2 8.2-12.2h6.1L270 35.9v11.8h-5.3V35.9z' })), W1 = { root: '_root_lwhkh_1', popout: '_popout_lwhkh_5', searchbox: '_searchbox_lwhkh_20', 'powered-by': '_powered-by_lwhkh_24' }, hH = ({ forum: e }) =>{ const { t } = zn(), { query: n, gifs: r, isFetching: i, isOpen: o, shouldDisplayGifs: a, fetchNextPage: u, handleCategoryChange: c, handleQueryChange: f, insertHandler: h, onOpenChange: g } = fH({ forum: e }); return Ve(IO, { open: o, placement: 'bottom-start', popover: !0, onOpenChange: g, children: [ W(LO, { anchor: W(tH, { title: t('GIF') }) }), W(NO, { children: Ve('div', { className: W1.popout, children: [ W(aH, { className: W1.searchbox, placeholder: t('Search for gifs'), value: n, onChange: f }), i && W(lH, { }), !i && Ve(Qs, { children: [ a && W(oH, { gifs: r, onItemClick: h, onEndReached: () =>!i && u() }), !a && W(nH, { onCategoryClick: c }) ] }), W(dH, { className: W1['powered-by'] }) ] }) }) ] }) }, V1 = { zone: '_zone_1xgo0_1', wrapper: '_wrapper_1xgo0_12', text: '_text_1xgo0_20' }, pH = ({ isDragActive: e, getInputProps: t }) =>{ const { t: n } = zn(); return e ? Ve(Qs, { children: [ W('input', { ...t() }), W('div', { className: V1.zone, children: W('div', { className: V1.wrapper, children: W('p', { className: V1.text, children: n('Drag and drop your images here to upload them.') }) }) }) ] }) : W('input', { ...t() }) }; let $h; const gH = new Uint8Array(16); function mH() { if (!$h && ($h = typeof crypto < 'u' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !$h)) throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported'); return $h(gH) } const hn = [ ]; for (let e = 0; e < 256; ++e) hn.push((e + 256).toString(16).slice(1)); function vH(e, t = 0) { return hn[e[t + 0]] + hn[e[t + 1]] + hn[e[t + 2]] + hn[e[t + 3]] + '-' + hn[e[t + 4]] + hn[e[t + 5]] + '-' + hn[e[t + 6]] + hn[e[t + 7]] + '-' + hn[e[t + 8]] + hn[e[t + 9]] + '-' + hn[e[t + 10]] + hn[e[t + 11]] + hn[e[t + 12]] + hn[e[t + 13]] + hn[e[t + 14]] + hn[e[t + 15]] } const VO = { randomUUID: typeof crypto < 'u' && crypto.randomUUID && crypto.randomUUID.bind(crypto) }; function KO(e, t, n) { if (VO.randomUUID && !t && !e) return VO.randomUUID(); e = e || { }; const r = e.random || (e.rng || mH) (); if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, t) { n = n || 0; for (let i = 0; i < 16; ++i) t[n + i] = r[i]; return t } return vH(r) } var qO = { exports: { } }, yH = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED', wH = yH, bH = wH; function GO() { } function QO() { } QO.resetWarningCache = GO; var _H = function () { function e(r, i, o, a, u, c) { if (c !== bH) { var f = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types'); throw f.name = 'Invariant Violation', f } } e.isRequired = e; function t() { return e } var n = { array: e, bigint: e, bool: e, func: e, number: e, object: e, string: e, symbol: e, any: e, arrayOf: t, element: e, elementType: e, instanceOf: t, node: e, objectOf: t, oneOf: t, oneOfType: t, shape: t, exact: t, checkPropTypes: QO, resetWarningCache: GO }; return n.PropTypes = n, n }; qO.exports = _H(); var CH = qO.exports; const ft = vr(CH); function Xa(e, t, n, r) { function i(o) { return o instanceof n ? o : new n(function (a) { a(o) }) } return new (n || (n = Promise)) (function (o, a) { function u(h) { try { f(r.next(h)) } catch (g) { a(g) } } function c(h) { try { f(r.throw(h)) } catch (g) { a(g) } } function f(h) { h.done ? o(h.value) : i(h.value).then(u, c) } f((r = r.apply(e, t || [ ])).next()) }) } function Za(e, t) { var n = { label: 0, sent: function () { if (o[0] & 1) throw o[1]; return o[1] }, trys: [ ], ops: [ ] }, r, i, o, a; return a = { next: u(0), throw : u(1), return : u(2) }, typeof Symbol == 'function' && (a[Symbol.iterator] = function () { return this }), a; function u(f) { return function (h) { return c([f, h]) } } function c(f) { if (r) throw new TypeError('Generator is already executing.'); for (; a && (a = 0, f[0] && (n = 0)), n; ) try { if (r = 1, i && (o = f[0] & 2 ? i.return : f[0] ? i.throw || ((o = i.return) && o.call(i), 0) : i.next) && !(o = o.call(i, f[1])).done) return o; switch (i = 0, o && (f = [ f[0] & 2, o.value ]), f[0]) { case 0: case 1: o = f; break; case 4: return n.label++, { value: f[1], done: !1 }; case 5: n.label++, i = f[1], f = [ 0 ]; continue; case 7: f = n.ops.pop(), n.trys.pop(); continue; default: if (o = n.trys, !(o = o.length > 0 && o[o.length - 1]) && (f[0] === 6 || f[0] === 2)) { n = 0; continue } if (f[0] === 3 && (!o || f[1] > o[0] && f[1] < o[3])) { n.label = f[1]; break } if (f[0] === 6 && n.label < o[1]) { n.label = o[1], o = f; break } if (o && n.label < o[2]) { n.label = o[2], n.ops.push(f); break } o[2] && n.ops.pop(), n.trys.pop(); continue } f = t.call(e, n) } catch (h) { f = [ 6, h ], i = 0 } finally { r = o = 0 } if (f[0] & 5) throw f[1]; return { value: f[0] ? f[1] : void 0, done: !0 } } } function YO(e, t) { var n = typeof Symbol == 'function' && e[Symbol.iterator]; if (!n) return e; var r = n.call(e), i, o = [ ], a; try { for (; (t === void 0 || t-- > 0) && !(i = r.next()).done; ) o.push(i.value) } catch (u) { a = { error: u } } finally { try { i && !i.done && (n = r.return) && n.call(r) } finally { if (a) throw a.error } } return o } function JO(e, t, n) { if (n || arguments.length === 2) for (var r = 0, i = t.length, o; r < i; r++) (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]); return e.concat(o || Array.prototype.slice.call(t)) } typeof SuppressedError == 'function' && SuppressedError; var EH = new Map([['aac', 'audio/aac'], [ 'abw', 'application/x-abiword' ], [ 'arc', 'application/x-freearc' ], [ 'avif', 'image/avif' ], [ 'avi', 'video/x-msvideo' ], [ 'azw', 'application/vnd.amazon.ebook' ], [ 'bin', 'application/octet-stream' ], [ 'bmp', 'image/bmp' ], [ 'bz', 'application/x-bzip' ], [ 'bz2', 'application/x-bzip2' ], [ 'cda', 'application/x-cdf' ], [ 'csh', 'application/x-csh' ], [ 'css', 'text/css' ], [ 'csv', 'text/csv' ], [ 'doc', 'application/msword' ], [ 'docx', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' ], [ 'eot', 'application/vnd.ms-fontobject' ], [ 'epub', 'application/epub+zip' ], [ 'gz', 'application/gzip' ], [ 'gif', 'image/gif' ], [ 'heic', 'image/heic' ], [ 'heif', 'image/heif' ], [ 'htm', 'text/html' ], [ 'html', 'text/html' ], [ 'ico', 'image/vnd.microsoft.icon' ], [ 'ics', 'text/calendar' ], [ 'jar', 'application/java-archive' ], [ 'jpeg', 'image/jpeg' ], [ 'jpg', 'image/jpeg' ], [ 'js', 'text/javascript' ], [ 'json', 'application/json' ], [ 'jsonld', 'application/ld+json' ], [ 'mid', 'audio/midi' ], [ 'midi', 'audio/midi' ], [ 'mjs', 'text/javascript' ], [ 'mp3', 'audio/mpeg' ], [ 'mp4', 'video/mp4' ], [ 'mpeg', 'video/mpeg' ], [ 'mpkg', 'application/vnd.apple.installer+xml' ], [ 'odp', 'application/vnd.oasis.opendocument.presentation' ], [ 'ods', 'application/vnd.oasis.opendocument.spreadsheet' ], [ 'odt', 'application/vnd.oasis.opendocument.text' ], [ 'oga', 'audio/ogg' ], [ 'ogv', 'video/ogg' ], [ 'ogx', 'application/ogg' ], [ 'opus', 'audio/opus' ], [ 'otf', 'font/otf' ], [ 'png', 'image/png' ], [ 'pdf', 'application/pdf' ], [ 'php', 'application/x-httpd-php' ], [ 'ppt', 'application/vnd.ms-powerpoint' ], [ 'pptx', 'application/vnd.openxmlformats-officedocument.presentationml.presentation' ], [ 'rar', 'application/vnd.rar' ], [ 'rtf', 'application/rtf' ], [ 'sh', 'application/x-sh' ], [ 'svg', 'image/svg+xml' ], [ 'swf', 'application/x-shockwave-flash' ], [ 'tar', 'application/x-tar' ], [ 'tif', 'image/tiff' ], [ 'tiff', 'image/tiff' ], [ 'ts', 'video/mp2t' ], [ 'ttf', 'font/ttf' ], [ 'txt', 'text/plain' ], [ 'vsd', 'application/vnd.visio' ], [ 'wav', 'audio/wav' ], [ 'weba', 'audio/webm' ], [ 'webm', 'video/webm' ], [ 'webp', 'image/webp' ], [ 'woff', 'font/woff' ], [ 'woff2', 'font/woff2' ], [ 'xhtml', 'application/xhtml+xml' ], [ 'xls', 'application/vnd.ms-excel' ], [ 'xlsx', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' ], [ 'xml', 'application/xml' ], [ 'xul', 'application/vnd.mozilla.xul+xml' ], [ 'zip', 'application/zip' ], [ '7z', 'application/x-7z-compressed' ], [ 'mkv', 'video/x-matroska' ], [ 'mov', 'video/quicktime' ], [ 'msg', 'application/vnd.ms-outlook' ]]); function tc(e, t) { var n = DH(e); if (typeof n.path != 'string') { var r = e.webkitRelativePath; Object.defineProperty(n, 'path', { value: typeof t == 'string' ? t : typeof r == 'string' && r.length > 0 ? r : e.name, writable: !1, configurable: !1, enumerable: !0 }) } return n } function DH(e) { var t = e.name, n = t && t.lastIndexOf('.') !== - 1; if (n && !e.type) { var r = t.split('.').pop().toLowerCase(), i = EH.get(r); i && Object.defineProperty(e, 'type', { value: i, writable: !1, configurable: !1, enumerable: !0 }) } return e } var xH = [ '.DS_Store', 'Thumbs.db' ]; function AH(e) { return Xa(this, void 0, void 0, function () { return Za(this, function (t) { return jh(e) && SH(e.dataTransfer) ? [ 2, kH(e.dataTransfer, e.type) ] : OH(e) ? [ 2, FH(e) ] : Array.isArray(e) && e.every(function (n) { return 'getFile' in n && typeof n.getFile == 'function' }) ? [ 2, BH(e) ] : [ 2, [ ] ] }) }) } function SH(e) { return jh(e) } function OH(e) { return jh(e) && jh(e.target) } function jh(e) { return typeof e == 'object' && e !== null } function FH(e) { return K1(e.target.files).map(function (t) { return tc(t) }) } function BH(e) { return Xa(this, void 0, void 0, function () { var t; return Za(this, function (n) { switch (n.label) { case 0: return [4, Promise.all(e.map(function (r) { return r.getFile() }))]; case 1: return t = n.sent(), [ 2, t.map(function (r) { return tc(r) }) ] } }) }) } function kH(e, t) { return Xa(this, void 0, void 0, function () { var n, r; return Za(this, function (i) { switch (i.label) { case 0: return e.items ? (n = K1(e.items).filter(function (o) { return o.kind === 'file' }), t !== 'drop' ? [ 2, n ] : [ 4, Promise.all(n.map(PH)) ]) : [ 3, 2 ]; case 1: return r = i.sent(), [ 2, XO(ZO(r)) ]; case 2: return [2, XO(K1(e.files).map(function (o) { return tc(o) }))] } }) }) } function XO(e) { return e.filter(function (t) { return xH.indexOf(t.name) === - 1 }) } function K1(e) { if (e === null) return []; for (var t = [ ], n = 0; n < e.length; n++) { var r = e[n]; t.push(r) } return t } function PH(e) { if (typeof e.webkitGetAsEntry != 'function') return e3(e); var t = e.webkitGetAsEntry(); return t && t.isDirectory ? t3(t) : e3(e) } function ZO(e) { return e.reduce(function (t, n) { return JO(JO([], YO(t), !1), YO(Array.isArray(n) ? ZO(n) : [ n ]), !1) }, [ ]) } function e3(e) { var t = e.getAsFile(); if (!t) return Promise.reject(''.concat(e, ' is not a File')); var n = tc(t); return Promise.resolve(n) } function RH(e) { return Xa(this, void 0, void 0, function () { return Za(this, function (t) { return [2, e.isDirectory ? t3(e) : TH(e)] }) }) } function t3(e) { var t = e.createReader(); return new Promise(function (n, r) { var i = [ ]; function o() { var a = this; t.readEntries(function (u) { return Xa(a, void 0, void 0, function () { var c, f, h; return Za(this, function (g) { switch (g.label) { case 0: if (u.length) return [3, 5]; g.label = 1; case 1: return g.trys.push([1, 3, , 4]), [ 4, Promise.all(i) ]; case 2: return c = g.sent(), n(c), [ 3, 4 ]; case 3: return f = g.sent(), r(f), [ 3, 4 ]; case 4: return [3, 6]; case 5: h = Promise.all(u.map(RH)), i.push(h), o(), g.label = 6; case 6: return [2] } }) }) }, function (u) { r(u) }) } o() }) } function TH(e) { return Xa(this, void 0, void 0, function () { return Za(this, function (t) { return [2, new Promise(function (n, r) { e.file(function (i) { var o = tc(i, e.fullPath); n(o) }, function (i) { r(i) }) })] }) }) } var IH = function (e, t) { if (e && t) { var n = Array.isArray(t) ? t : t.split(','), r = e.name || '', i = (e.type || '').toLowerCase(), o = i.replace(/\/.*$/, ''); return n.some(function (a) { var u = a.trim().toLowerCase(); return u.charAt(0) === '.' ? r.toLowerCase().endsWith(u) : u.endsWith('/*') ? o === u.replace(/\/.*$/, '') : i === u }) } return !0 }; function n3(e) { return MH(e) || LH(e) || s3(e) || NH() } function NH() { throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method. `) } function LH(e) { if (typeof Symbol < 'u' && e[Symbol.iterator] != null || e['@@iterator'] != null) return Array.from(e) } function MH(e) { if (Array.isArray(e)) return q1(e) } function r3(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function (i) { return Object.getOwnPropertyDescriptor(e, i).enumerable })), n.push.apply(n, r) } return n } function i3(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : { }; t % 2 ? r3(Object(n), !0).forEach(function (r) { o3(e, r, n[r]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : r3(Object(n)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) }) } return e } function o3(e, t, n) { return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e } function nc(e, t) { return zH(e) || jH(e, t) || s3(e, t) || $H() } function $H() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method. `) } function s3(e, t) { if (e) { if (typeof e == 'string') return q1(e, t); var n = Object.prototype.toString.call(e).slice(8, - 1); if (n === 'Object' && e.constructor && (n = e.constructor.name), n === 'Map' || n === 'Set') return Array.from(e); if (n === 'Arguments' || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return q1(e, t) } } function q1(e, t) { (t == null || t > e.length) && (t = e.length); for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]; return r } function jH(e, t) { var n = e == null ? null : typeof Symbol < 'u' && e[Symbol.iterator] || e['@@iterator']; if (n != null) { var r = [ ], i = !0, o = !1, a, u; try { for (n = n.call(e); !(i = (a = n.next()).done) && (r.push(a.value), !(t && r.length === t)); i = !0); } catch (c) { o = !0, u = c } finally { try { !i && n.return != null && n.return() } finally { if (o) throw u } } return r } } function zH(e) { if (Array.isArray(e)) return e } var UH = 'file-invalid-type', HH = 'file-too-large', WH = 'file-too-small', VH = 'too-many-files', KH = function (t) { t = Array.isArray(t) && t.length === 1 ? t[0] : t; var n = Array.isArray(t) ? 'one of '.concat(t.join(', ')) : t; return { code: UH, message: 'File type must be '.concat(n) } }, a3 = function (t) { return { code: HH, message: 'File is larger than '.concat(t, ' ').concat(t === 1 ? 'byte' : 'bytes') } }, u3 = function (t) { return { code: WH, message: 'File is smaller than '.concat(t, ' ').concat(t === 1 ? 'byte' : 'bytes') } }, qH = { code: VH, message: 'Too many files' }; function l3(e, t) { var n = e.type === 'application/x-moz-file' || IH(e, t); return [n, n ? null : KH(t)] } function c3(e, t, n) { if (Is(e.size)) if (Is(t) && Is(n)) { if (e.size > n) return [!1, a3(n)]; if (e.size < t) return [!1, u3(t)] } else { if (Is(t) && e.size < t) return [!1, u3(t)]; if (Is(n) && e.size > n) return [!1, a3(n)] } return [!0, null] } function Is(e) { return e != null } function GH(e) { var t = e.files, n = e.accept, r = e.minSize, i = e.maxSize, o = e.multiple, a = e.maxFiles, u = e.validator; return !o && t.length > 1 || o && a >= 1 && t.length > a ? !1 : t.every(function (c) { var f = l3(c, n), h = nc(f, 1), g = h[0], m = c3(c, r, i), y = nc(m, 1), v = y[0], p = u ? u(c) : null; return g && v && !p }) } function zh(e) { return typeof e.isPropagationStopped == 'function' ? e.isPropagationStopped() : typeof e.cancelBubble < 'u' ? e.cancelBubble : !1 } function Uh(e) { return e.dataTransfer ? Array.prototype.some.call(e.dataTransfer.types, function (t) { return t === 'Files' || t === 'application/x-moz-file' }) : !!e.target && !!e.target.files } function f3(e) { e.preventDefault() } function QH(e) { return e.indexOf('MSIE') !== - 1 || e.indexOf('Trident/') !== - 1 } function YH(e) { return e.indexOf('Edge/') !== - 1 } function JH() { var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent; return QH(e) || YH(e) } function wi() { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; return function (r) { for (var i = arguments.length, o = new Array(i > 1 ? i - 1 : 0), a = 1; a < i; a++) o[a - 1] = arguments[a]; return t.some(function (u) { return !zh(r) && u && u.apply(void 0, [ r ].concat(o)), zh(r) }) } } function XH() { return 'showOpenFilePicker' in window } function ZH(e) { if (Is(e)) { var t = Object.entries(e).filter(function (n) { var r = nc(n, 2), i = r[0], o = r[1], a = !0; return d3(i) || (console.warn('Skipped "'.concat(i, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), a = !1), (!Array.isArray(o) || !o.every(h3)) && (console.warn('Skipped "'.concat(i, '" because an invalid file extension was provided.')), a = !1), a }).reduce(function (n, r) { var i = nc(r, 2), o = i[0], a = i[1]; return i3(i3({ }, n), { }, o3({ }, o, a)) }, { }); return [{ description: 'Files', accept: t } ] } return e } function eW(e) { if (Is(e)) return Object.entries(e).reduce(function (t, n) { var r = nc(n, 2), i = r[0], o = r[1]; return [].concat(n3(t), [ i ], n3(o)) }, [ ]).filter(function (t) { return d3(t) || h3(t) }).join(',') } function tW(e) { return e instanceof DOMException && (e.name === 'AbortError' || e.code === e.ABORT_ERR) } function nW(e) { return e instanceof DOMException && (e.name === 'SecurityError' || e.code === e.SECURITY_ERR) } function d3(e) { return e === 'audio/*' || e === 'video/*' || e === 'image/*' || e === 'text/*' || /\w+\/[-+.\w]+/g.test(e) } function h3(e) { return /^.*\.[\w]+$/.test(e) } var rW = [ 'children' ], iW = [ 'open' ], oW = [ 'refKey', 'role', 'onKeyDown', 'onFocus', 'onBlur', 'onClick', 'onDragEnter', 'onDragOver', 'onDragLeave', 'onDrop' ], sW = [ 'refKey', 'onChange', 'onClick' ]; function aW(e) { return cW(e) || lW(e) || p3(e) || uW() } function uW() { throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method. `) } function lW(e) { if (typeof Symbol < 'u' && e[Symbol.iterator] != null || e['@@iterator'] != null) return Array.from(e) } function cW(e) { if (Array.isArray(e)) return Q1(e) } function G1(e, t) { return hW(e) || dW(e, t) || p3(e, t) || fW() } function fW() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method. `) } function p3(e, t) { if (e) { if (typeof e == 'string') return Q1(e, t); var n = Object.prototype.toString.call(e).slice(8, - 1); if (n === 'Object' && e.constructor && (n = e.constructor.name), n === 'Map' || n === 'Set') return Array.from(e); if (n === 'Arguments' || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Q1(e, t) } } function Q1(e, t) { (t == null || t > e.length) && (t = e.length); for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]; return r } function dW(e, t) { var n = e == null ? null : typeof Symbol < 'u' && e[Symbol.iterator] || e['@@iterator']; if (n != null) { var r = [ ], i = !0, o = !1, a, u; try { for (n = n.call(e); !(i = (a = n.next()).done) && (r.push(a.value), !(t && r.length === t)); i = !0); } catch (c) { o = !0, u = c } finally { try { !i && n.return != null && n.return() } finally { if (o) throw u } } return r } } function hW(e) { if (Array.isArray(e)) return e } function g3(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function (i) { return Object.getOwnPropertyDescriptor(e, i).enumerable })), n.push.apply(n, r) } return n } function Pt(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : { }; t % 2 ? g3(Object(n), !0).forEach(function (r) { Y1(e, r, n[r]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : g3(Object(n)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) }) } return e } function Y1(e, t, n) { return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e } function Hh(e, t) { if (e == null) return { }; var n = pW(e, t), r, i; if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); for (i = 0; i < o.length; i++) r = o[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]) } return n } function pW(e, t) { if (e == null) return { }; var n = { }, r = Object.keys(e), i, o; for (o = 0; o < r.length; o++) i = r[o], !(t.indexOf(i) >= 0) && (n[i] = e[i]); return n } var J1 = D.forwardRef(function (e, t) { var n = e.children, r = Hh(e, rW), i = v3(r), o = i.open, a = Hh(i, iW); return D.useImperativeHandle(t, function () { return { open: o } }, [ o ]), Le.createElement(D.Fragment, null, n(Pt(Pt({ }, a), { }, { open: o }))) }); J1.displayName = 'Dropzone'; var m3 = { disabled: !1, getFilesFromEvent: AH, maxSize: 1 / 0, minSize: 0, multiple: !0, maxFiles: 0, preventDropOnDocument: !0, noClick: !1, noKeyboard: !1, noDrag: !1, noDragEventsBubbling: !1, validator: null, useFsAccessApi: !0, autoFocus: !1 }; J1.defaultProps = m3, J1.propTypes = { children: ft.func, accept: ft.objectOf(ft.arrayOf(ft.string)), multiple: ft.bool, preventDropOnDocument: ft.bool, noClick: ft.bool, noKeyboard: ft.bool, noDrag: ft.bool, noDragEventsBubbling: ft.bool, minSize: ft.number, maxSize: ft.number, maxFiles: ft.number, disabled: ft.bool, getFilesFromEvent: ft.func, onFileDialogCancel: ft.func, onFileDialogOpen: ft.func, useFsAccessApi: ft.bool, autoFocus: ft.bool, onDragEnter: ft.func, onDragLeave: ft.func, onDragOver: ft.func, onDrop: ft.func, onDropAccepted: ft.func, onDropRejected: ft.func, onError: ft.func, validator: ft.func }; var X1 = { isFocused: !1, isFileDialogActive: !1, isDragActive: !1, isDragAccept: !1, isDragReject: !1, acceptedFiles: [ ], fileRejections: [ ] }; function v3() { var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : { }, t = Pt(Pt({ }, m3), e), n = t.accept, r = t.disabled, i = t.getFilesFromEvent, o = t.maxSize, a = t.minSize, u = t.multiple, c = t.maxFiles, f = t.onDragEnter, h = t.onDragLeave, g = t.onDragOver, m = t.onDrop, y = t.onDropAccepted, v = t.onDropRejected, p = t.onFileDialogCancel, E = t.onFileDialogOpen, _ = t.useFsAccessApi, b = t.autoFocus, x = t.preventDropOnDocument, O = t.noClick, B = t.noKeyboard, k = t.noDrag, P = t.noDragEventsBubbling, I = t.onError, Y = t.validator, j = D.useMemo(function () { return eW(n) }, [ n ]), X = D.useMemo(function () { return ZH(n) }, [ n ]), $ = D.useMemo(function () { return typeof E == 'function' ? E : y3 }, [ E ]), U = D.useMemo(function () { return typeof p == 'function' ? p : y3 }, [ p ]), T = D.useRef(null), G = D.useRef(null), se = D.useReducer(gW, X1), re = G1(se, 2), V = re[0], te = re[1], le = V.isFocused, ce = V.isFileDialogActive, ye = D.useRef(typeof window < 'u' && window.isSecureContext && _ && XH()), De = function () { !ye.current && ce && setTimeout(function () { if (G.current) { var be = G.current.files; be.length || (te({ type: 'closeDialog' }), U()) } }, 300) }; D.useEffect(function () { return window.addEventListener('focus', De, !1), function () { window.removeEventListener('focus', De, !1) } }, [ G, ce, U, ye ]); var Ce = D.useRef([]), L = function (be) { T.current && T.current.contains(be.target) || (be.preventDefault(), Ce.current = [ ]) }; D.useEffect(function () { return x && (document.addEventListener('dragover', f3, !1), document.addEventListener('drop', L, !1)), function () { x && (document.removeEventListener('dragover', f3), document.removeEventListener('drop', L)) } }, [ T, x ]), D.useEffect(function () { return !r && b && T.current && T.current.focus(), function () { } }, [ T, b, r ]); var ne = D.useCallback(function (ve) { I ? I(ve) : console.error(ve) }, [ I ]), J = D.useCallback(function (ve) { ve.preventDefault(), ve.persist(), At(ve), Ce.current = [ ].concat(aW(Ce.current), [ ve.target ]), Uh(ve) && Promise.resolve(i(ve)).then(function (be) { if (!(zh(ve) && !P)) { var Ze = be.length, it = Ze > 0 && GH({ files: be, accept: j, minSize: a, maxSize: o, multiple: u, maxFiles: c, validator: Y }), Je = Ze > 0 && !it; te({ isDragAccept: it, isDragReject: Je, isDragActive: !0, type: 'setDraggedFiles' }), f && f(ve) } }).catch(function (be) { return ne(be) }) }, [ i, f, ne, P, j, a, o, u, c, Y ]), Q = D.useCallback(function (ve) { ve.preventDefault(), ve.persist(), At(ve); var be = Uh(ve); if (be && ve.dataTransfer) try { ve.dataTransfer.dropEffect = 'copy' } catch { } return be && g && g(ve), !1 }, [ g, P ]), ge = D.useCallback(function (ve) { ve.preventDefault(), ve.persist(), At(ve); var be = Ce.current.filter(function (it) { return T.current && T.current.contains(it) }), Ze = be.indexOf(ve.target); Ze !== - 1 && be.splice(Ze, 1), Ce.current = be, !(be.length > 0) && (te({ type: 'setDraggedFiles', isDragActive: !1, isDragAccept: !1, isDragReject: !1 }), Uh(ve) && h && h(ve)) }, [ T, h, P ]), he = D.useCallback(function (ve, be) { var Ze = [ ], it = [ ]; ve.forEach(function (Je) { var qt = l3(Je, j), sn = G1(qt, 2), pn = sn[0], cr = sn[1], Pr = c3(Je, a, o), Rr = G1(Pr, 2), Gi = Rr[0], Qi = Rr[1], Yi = Y ? Y(Je) : null; if (pn && Gi && !Yi) Ze.push(Je); else { var Ls = [ cr, Qi ]; Yi && (Ls = Ls.concat(Yi)), it.push({ file: Je, errors: Ls.filter(function (cc) { return cc }) }) } }), (!u && Ze.length > 1 || u && c >= 1 && Ze.length > c) && (Ze.forEach(function (Je) { it.push({ file: Je, errors: [ qH ] }) }), Ze.splice(0)), te({ acceptedFiles: Ze, fileRejections: it, type: 'setFiles' }), m && m(Ze, it, be), it.length > 0 && v && v(it, be), Ze.length > 0 && y && y(Ze, be) }, [ te, u, j, a, o, c, m, y, v, Y ]), Pe = D.useCallback(function (ve) { ve.preventDefault(), ve.persist(), At(ve), Ce.current = [ ], Uh(ve) && Promise.resolve(i(ve)).then(function (be) { zh(ve) && !P || he(be, ve) }).catch(function (be) { return ne(be) }), te({ type: 'reset' }) }, [ i, he, ne, P ]), me = D.useCallback(function () { if (ye.current) { te({ type: 'openDialog' }), $(); var ve = { multiple: u, types: X }; window.showOpenFilePicker(ve).then(function (be) { return i(be) }).then(function (be) { he(be, null), te({ type: 'closeDialog' }) }).catch(function (be) { tW(be) ? (U(be), te({ type: 'closeDialog' })) : nW(be) ? (ye.current = !1, G.current ? (G.current.value = null, G.current.click()) : ne(new Error('Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided.'))) : ne(be) }); return } G.current && (te({ type: 'openDialog' }), $(), G.current.value = null, G.current.click()) }, [ te, $, U, _, he, ne, X, u ]), Fe = D.useCallback(function (ve) { !T.current || !T.current.isEqualNode(ve.target) || (ve.key === ' ' || ve.key === 'Enter' || ve.keyCode === 32 || ve.keyCode === 13) && (ve.preventDefault(), me()) }, [ T, me ]), Se = D.useCallback(function () { te({ type: 'focus' }) }, [ ]), Re = D.useCallback(function () { te({ type: 'blur' }) }, [ ]), Be = D.useCallback(function () { O || (JH() ? setTimeout(me, 0) : me()) }, [ O, me ]), ke = function (be) { return r ? null : be }, ct = function (be) { return B ? null : ke(be) }, Mt = function (be) { return k ? null : ke(be) }, At = function (be) { P && be.stopPropagation() }, ht = D.useMemo(function () { return function () { var ve = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : { }, be = ve.refKey, Ze = be === void 0 ? 'ref' : be, it = ve.role, Je = ve.onKeyDown, qt = ve.onFocus, sn = ve.onBlur, pn = ve.onClick, cr = ve.onDragEnter, Pr = ve.onDragOver, Rr = ve.onDragLeave, Gi = ve.onDrop, Qi = Hh(ve, oW); return Pt(Pt(Y1({ onKeyDown: ct(wi(Je, Fe)), onFocus: ct(wi(qt, Se)), onBlur: ct(wi(sn, Re)), onClick: ke(wi(pn, Be)), onDragEnter: Mt(wi(cr, J)), onDragOver: Mt(wi(Pr, Q)), onDragLeave: Mt(wi(Rr, ge)), onDrop: Mt(wi(Gi, Pe)), role: typeof it == 'string' && it !== '' ? it : 'presentation' }, Ze, T), !r && !B ? { tabIndex: 0 } : { }), Qi) } }, [ T, Fe, Se, Re, Be, J, Q, ge, Pe, B, k, r ]), rt = D.useCallback(function (ve) { ve.stopPropagation() }, [ ]), Kt = D.useMemo(function () { return function () { var ve = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : { }, be = ve.refKey, Ze = be === void 0 ? 'ref' : be, it = ve.onChange, Je = ve.onClick, qt = Hh(ve, sW), sn = Y1({ accept: j, multiple: u, type: 'file', style: { display: 'none' }, onChange: ke(wi(it, Pe)), onClick: ke(wi(Je, rt)), tabIndex: - 1 }, Ze, G); return Pt(Pt({ }, sn), qt) } }, [ G, n, u, Pe, r ]); return Pt(Pt({ }, V), { }, { isFocused: le && !r, getRootProps: ht, getInputProps: Kt, rootRef: T, inputRef: G, open: ke(me) }) } function gW(e, t) { switch (t.type) { case 'focus': return Pt(Pt({ }, e), { }, { isFocused: !0 }); case 'blur': return Pt(Pt({ }, e), { }, { isFocused: !1 }); case 'openDialog': return Pt(Pt({ }, X1), { }, { isFileDialogActive: !0 }); case 'closeDialog': return Pt(Pt({ }, e), { }, { isFileDialogActive: !1 }); case 'setDraggedFiles': return Pt(Pt({ }, e), { }, { isDragActive: t.isDragActive, isDragAccept: t.isDragAccept, isDragReject: t.isDragReject }); case 'setFiles': return Pt(Pt({ }, e), { }, { acceptedFiles: t.acceptedFiles, fileRejections: t.fileRejections }); case 'reset': return Pt({ }, X1); default: return e } } function y3() { } const mW = ({ editor: e, onError: t }) =>{ const { uploadFile: n } = r6(), { t: r } = zn(), { getRootProps: i, getInputProps: o, open: a, acceptedFiles: u, isDragActive: c, fileRejections: f } = v3({ noClick: !0, noKeyboard: !0, accept: { 'image/png': [ '.png' ], 'image/jpeg': [ '.jpeg', '.jpg' ], 'image/gif': [ '.gif' ] }, minSize: 1, maxSize: 5 * 1024 * 1024 }); return D.useEffect(() =>{ const h = async g=>{ const m = KO(); OA(e, m); try { const y = await n(g); y.ok && FA(e, y.url, m) } catch (y) { if (BA(e, m), y instanceof Error) return t == null ? void 0 : t(r(y.message)) } }; u.length > 0 && h(u[0]) }, [ u ]), D.useEffect(() =>{ if (f.length) { const h = f.flatMap(({ errors: g }) =>g.flatMap(m=>m.code)) [0]; t == null || t(r(yd(h))) } }, [ f ]), { open: a, getInputProps: o, getRootProps: i, isDragActive: c } }, vW = { placeholder: '_placeholder_s9avi_1' }, yW = ({ placeholder: e }) =>W('div', { className: vW.placeholder, children: e }), wW = ({ editor: e, initialState: t }) =>{ const [n, r] = D.useState(t), i = D.useCallback(() =>{ const [o] = Array.from(C.nodes(e, { match: u=>!C.isEditor(u) && we.isElement(u) && u.type === Ue.QUOTE })), a = ee.androidPendingDiffs(e); r(DA(e) && !o && !(a != null && a.length)) }, [ e ]); return { isVisible: n, triggerPlaceholder: i } }, bW = 280, w3 = 480, _W = { separator: '_separator_p7fwl_1' }, CW = () =>W('span', { className: _W.separator }), Zr = { expand: '_expand_k0g7a_1', 'expand-active': '_expand-active_k0g7a_1', menu: '_menu_k0g7a_41', toolbar: '_toolbar_k0g7a_47', 'toolbar-primary': '_toolbar-primary_k0g7a_51', 'toolbar-secondary-multirow': '_toolbar-secondary-multirow_k0g7a_56', 'toolbar-secondary': '_toolbar-secondary_k0g7a_56', actions: '_actions_k0g7a_78', submit: '_submit_k0g7a_84', 'submit-text': '_submit-text_k0g7a_122', cancel: '_cancel_k0g7a_126' }, EW = ({ width: e, editor: t }) =>{ const [n, r] = D.useState(!1), [ i, o ] = D.useState(e <= w3), a = u=>{ u.code === Li.ESCAPE && ee.focus(t) }; return D.useEffect(() =>{ o(e <= w3) }, [ e ]), { isExpanded: n, setIsExpanded: r, isMobile: i, onKeyDown: a } }, DW = ({ children: e, editor: t, gifPickerButton: n, isEdit: r, uploadButton: i, onCancel: o, submitPost: a, width: u }) =>{ const { isMobile: c, onKeyDown: f, setIsExpanded: h, isExpanded: g } = EW({ editor: t, width: u }), { t: m } = zn(); return Ve('div', { className: Zr.toolbar, onKeyDown: f, children: [ Ve('div', { className: Zr['toolbar-primary'], children: [ Ve('div', { className: Zr.menu, children: [ n, i, (i || n) && W(CW, { }), c ? W('span', { className: g ? Zr['expand-active'] : Zr.expand, onClick: () =>h(y=>!y), children: 'Aa' }) : e ] }), Ve('div', { className: Zr.actions, children: [ r && o && W('button', { className: Zr.cancel, type: 'button', onClick: o, children: m('Cancel') }), W(Zv, { className: Zr.submit, onClick: a, children: W('span', { className: Zr['submit-text'], children: m(r ? 'Save Edit' : 'Comment') }) }) ] }) ] }), c && g && W('div', { className: u < bW ? Zr['toolbar-secondary-multirow'] : Zr['toolbar-secondary'], children: e }) ] }) }, xW = e=>{ const { deleteBackward: t, insertText: n } = e; return e.insertText = r=>{ const { selection: i } = e; if (r.endsWith(' ') && i && q.isCollapsed(i)) { const { anchor: o } = i, a = C.above(e, { match: m=>we.isElement(m) && C.isBlock(e, m) }), u = a ? a[1] : [ ], c = C.start(e, u), f = { anchor: o, focus: c }, h = C.string(e, f) + r.slice(0, - 1), g = vA[h]; if (g) { K.select(e, f), q.isCollapsed(f) || K.delete(e); const m = { type: g }; K.setNodes(e, m, { match: y=>we.isElement(y) && C.isBlock(e, y) }); return } } n(r) }, e.deleteBackward = (...r) =>{ const { selection: i } = e; if (i && q.isCollapsed(i)) { const o = C.above(e, { match: a=>we.isElement(a) && C.isBlock(e, a) }); if (o) { const [a, u] = o, c = C.start(e, u); if (!C.isEditor(a) && we.isElement(a) && a.type !== Ue.BLOCK && je.equals(i.anchor, c)) { const f = { type: Ue.BLOCK }; K.setNodes(e, f); return } } t(...r) } }, e }, AW = e=>{ const { selection: t } = e; if (!t) return !0; const n = C.before(e, t); if (!n) return !0; const [r] = C.node(e, n); return de.string(r) !== '' }, b3 = (e, t) =>C.above(e, { mode: 'highest', match: n=>!C.isEditor(n) && we.isElement(n) && t.includes(n.type) }), SW = e=>{ const { deleteBackward: t } = e; return e.deleteBackward = n=>{ const { currentWord: r } = qd(e, /\uFEFF/i); r && r.match(/.*\uFEFF/) ? (t('character'), t('character')) : t(n) }, e.insertBreak = () =>{ const n = b3(e, gM), r = b3(e, mM); if (r) { const i = C.end(e, r[1]); Kv(e, i) && K.move(e, { unit: 'offset' }), K.insertText(e, mi); return } else if (n) { const i = C.end(e, n[1]); new RegExp(`(${ mi })$`).test(de.string(n[0])) && Kv(e, i) ? (AW(e) && C.deleteBackward(e, { unit: 'character' }), K.insertNodes(e, { type: Ue.BLOCK, children: [ { text: '' } ] })) : K.insertText(e, mi); return } K.insertText(e, mi) }, e.insertSoftBreak = () =>K.insertText(e, mi), e }, OW = /data-slate-fragment="(.+?)"/m, FW = e=>{ const t = e.getData('text/html'), [ , n ] = t.match(OW) || [ ]; return n }, BW = async(e, t, n) =>{ const r = KO(); OA(e, r); const i = o=>{ const a = new FormData; return a.append('upload', o), a.append('permanent', '1'), OD(a) }; try { const o = await i(t); o.ok ? FA(e, o.url, r) : n(yd(o['error-code'])) } catch (o) { BA(e, r), o instanceof Error && n(o.message) } }, kW = [ 'image/png', 'image/jpeg', 'image/gif' ], PW = (e, { setAlert: t }) =>{ const { insertText: n, insertFragment: r, selection: i, insertData: o } = e; return e.insertData = a=>{ const { files: u } = a; if (u && u.length > 0) { const c = u[0], [ f ] = c.type.split('/'); f === 'image' && kW.includes(c.type) ? BW(e, c, t) : o(a) } else o(a) }, e.insertFragmentData = a=>{ const u = a.getData('application/x-slate-fragment') || FW(a); if (u && i) { const c = decodeURIComponent(window.atob(u)), f = JSON.parse(c), { focus: h, anchor: g } = i, m = q.isExpanded(i); return n(jl), r(f), K.delete(e, { at: m ? g : h }), !0 } return !1 }, e }, RW = e=>{ const { normalizeNode: t } = e; return e.normalizeNode = n=>{ const [r, i] = n; if (we.isElement(r)) { const o = C.previous(e, { at: i, mode: 'highest' }), a = C.next(e, { at: i, mode: 'highest' }); if (a) { const [u, c] = a; if (r.type === Ue.BLOCK && u.type === Ue.BLOCK) { const f = C.end(e, i); K.insertText(e, mi, { at: f }), K.mergeNodes(e, { at: c }); return } } if (o) { const [u, c] = o, f = de.string(u), h = f === '' || f === mi; if (r.type === Ue.BLOCK && u.type === Ue.BLOCK) { const g = C.end(e, c); K.insertText(e, mi, { at: g }), K.mergeNodes(e, { at: i }); return } if (r.type === Ue.QUOTE && u.type === Ue.BLOCK && h) { K.removeNodes(e, { at: c }); return } } } t(n) }, e }, TW = e=>{ const { normalizeNode: t } = e; return e.normalizeNode = n=>{ const [r, i] = n; if (we.isElement(r) && r.type === Ue.BLOCK) { const o = Array.from(de.children(e, i)); for (const [a, u]of o) if (we.isElement(a) && [ Ue.LINK, Ue.SPOILER ].includes(a.type) && a.children.length === 1 && a.children[0].text === '') { o.length === 1 ? (K.removeNodes(e, { at: i }), K.insertNodes(e, { type: Ue.BLOCK, children: [ { text: '' } ] })) : K.removeNodes(e, { at: u }); return } } t(n) }, e }, IW = e=>{ const { insertText: t, isInline: n } = e; return e.isInline = r=>pM.includes(r.type) ? !0 : n(r), e.insertText = r=>{ const i = C.above(e); if (!i) return; const { selection: o } = e, a = C.end(e, i[1]); o && q.isCollapsed(o) && je.compare(a, o.focus) <= 0 && Gv(e) && K.move(e, { unit: 'offset' }), t(r) }, e }, NW = e=>{ const { isVoid: t, markableVoid: n } = e; return e.isVoid = r=>r.type === 'mention' ? !0 : t(r), e.markableVoid = r=>r.type === 'mention' || n(r), e }, _3 = { button: '_button_1wqlf_1', icon: '_icon_1wqlf_28' }, LW = () =>{ const e = Or(), t = iM(), { t: n } = zn(), [ r, i ] = D.useState(!1); return D.useEffect(() =>{ const { currentWord: o } = qd(e), a = !!(o != null && o.match(/^@/)); i(a) }, [ t ]), W('button', { disabled: r, className: _3.button, onClick: o=>{ o.preventDefault(), K.insertText(e, '@'), ee.focus(e) }, title: n('Mention'), children: Os('mention', _3.icon) () }) }, eu = { container: '_container_if5tp_1', 'item-active': '_item-active_if5tp_11', item: '_item_if5tp_11', header: '_header_if5tp_33', list: '_list_if5tp_47', avatar: '_avatar_if5tp_71' }, MW = ({ activeItem: e, onEndReached: t }) =>{ const n = D.useRef(null), r = D.useRef([]), i = yy(n); return D.useEffect(() =>{ i && (t == null || t()) }, [ i ]), D.useEffect(() =>{ var o; (o = r.current[e]) == null || o.scrollIntoView({ block: 'nearest' }) }, [ e ]), { observerRef: n, listRef: r } }, $W = ({ activeItem: e, users: t, onEndReached: n, onItemClick: r }) =>{ const { observerRef: i, listRef: o } = MW({ activeItem: e, onEndReached: n }), { t: a } = zn(); return Ve('div', { className: eu.container, children: [ W('div', { className: eu.header, children: a('in this conversation') }), W('ul', { className: eu.list, children: t.map((u, c) =>Ve('li', { className: c === e ? eu['item-active'] : eu.item, ref: f=>o.current[c] = f, onMouseDown: f=>{ f.preventDefault(), r(u) }, children: [ W('img', { className: eu.avatar, src: u.avatar.small.cache }), u.name ] }, u.id)) }), W('div', { ref: i }) ] }) }, jW = () =>{ const { context: e, refs: t, floatingStyles: n } = Bh({ placement: 'bottom-start', strategy: 'fixed', whileElementsMounted: mh, middleware: [ hh({ mainAxis: - 2 }), nz({ apply({ rects: a, elements: u }) { Object.assign(u.floating.style, { width: `${ a.reference.width }px` }) } }) ] }), r = Ih(e, { role: 'listbox' }), i = Fh(e), { getFloatingProps: o } = kh([r, i]); return { refs: t, floatingStyles: n, getFloatingProps: o } }, zW = ({ thread: e, query: t, isEnabled: n }) =>{ const r = [ Vm.userSuggestions, e, t ]; return PE({ enabled: n, queryKey: r, refetchOnWindowFocus: !1, queryFn: ({ pageParam: i = '' }) =>k8({ thread: e, query: t, cursor: i }), getNextPageParam: i=>{ var o; return i.cursor.hasNext ? (o = i.cursor.next) == null ? void 0 : o.slice(2) : void 0 }, select: i=>{ const a = [ ...new Map(i.pages.flatMap(u=>u.response).map(u=>[u.id, u])).values() ]; return { ...i, suggestions: a } } }) }, UW = (e, t, n) =>{ const r = { type: Ue.MENTION, name: t.name, username: t.username, children: [ { text: '' } ] }; K.select(e, n), K.insertNodes(e, [ { text: jl }, r, { text: ' ' } ]) }, HW = { overlay: '_overlay_1i4qh_1' }, WW = ({ editor: e, thread: t }) =>{ const [n, r] = D.useState(0), [ i, o ] = D.useState(''), [ a, u ] = D.useState(), [ c, f ] = D.useState(!1), [ h, g ] = D.useState(!1), { floatingStyles: m, refs: y, getFloatingProps: v } = jW(), { data: p, fetchNextPage: E, isFetchingNextPage: _ } = zW({ thread: t, query: i, isEnabled: c }), { suggestions: b = [ ] } = p || { }, x = () =>{ const { currentRange: $, currentWord: U } = qd(e), T = U && U.match(/^@(\w*)/); if (T) { u($), o(T[1]), r(0), f(!0); return } u(null) }, O = $=>{ a && (UW(e, $, a), u(null)) }, B = () =>{ _ || r(n >= b.length - 1 ? 0 : n + 1) }, k = () =>r(n <= 0 ? b.length - 1 : n - 1), P = () =>O(b[n]), I = () =>u(null), Y = { [ Li.ARROW_DOWN ]: B, [ Li.ARROW_UP ]: k, [ Li.TAB ]: P, [ Li.ENTER ]: P, [ Li.ESCAPE ]: I }, j = $=>{ var U; !a || b.length === 0 || $.code in Y && ($.preventDefault(), (U = Y[$.code]) == null || U.call(Y)) }, X = W(Oh, { children: W('div', { className: HW.overlay, ...v({ ref: y.setFloating, style: { ...m } }), children: h && W($W, { activeItem: n, users: b, onEndReached: E, onItemClick: O }) }) }); return D.useEffect(() =>{ g(!!(a && b.length)) }, [ a, b.length ]), { index: n, search: i, target: a, suggestions: b, MentionList: X, findMention: x, handleKeyDown: j, setTarget: u, setReference: y.setReference } }; var VW = QW, KW = /^(?:\w+:)?\/\/(\S+)$/, qW = /^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/, GW = /^[^\s\.]+\.\S{2,}$/; function QW(e) { if (typeof e != 'string') return !1; var t = e.match(KW); if (!t) return !1; var n = t[1]; return n ? !!(qW.test(n) || GW.test(n)) : !1 } const YW = vr(VW), JW = e=>{ const { insertText: t, isVoid: n } = e; return e.isVoid = r=>r.type === Ue.LINK && r.view === 'embed' ? !0 : n(r), e.insertText = r=>{ if (YW(r)) { Kd(e, r, r); return } const i = i8(r); if (i.length) { let o = 0; i.forEach(a=>{ t(r.slice(o, a.index)), Kd(e, a.url, a.url), o = a.endIndex }), t(r.slice(o)); return } t(r) }, e }, XW = e=>{ const { isVoid: t } = e; return e.isVoid = n=>Vv.includes(n.type) ? !0 : t(n), e }; var ZW = { isHistory(e) { return nn(e) && Array.isArray(e.redos) && Array.isArray(e.undos) && (e.redos.length === 0 || Bo.isOperationList(e.redos[0].operations)) && (e.undos.length === 0 || Bo.isOperationList(e.undos[0].operations)) } }, Z1 = new WeakMap, ey = new WeakMap, tu = { isHistoryEditor(e) { return ZW.isHistory(e.history) && C.isEditor(e) }, isMerging(e) { return ey.get(e) }, isSaving(e) { return Z1.get(e) }, redo(e) { e.redo() }, undo(e) { e.undo() }, withoutMerging(e, t) { var n = tu.isMerging(e); ey.set(e, !1), t(), ey.set(e, n) }, withoutSaving(e, t) { var n = tu.isSaving(e); Z1.set(e, !1), t(), Z1.set(e, n) } }, eV = e=>{ var t = e, { apply: n } = t; return t.history = { undos: [ ], redos: [ ] }, t.redo = () =>{ var { history: r } = t, { redos: i } = r; if (i.length > 0) { var o = i[i.length - 1]; o.selectionBefore && K.setSelection(t, o.selectionBefore), tu.withoutSaving(t, () =>{ C.withoutNormalizing(t, () =>{ for (var a of o.operations) t.apply(a) }) }), r.redos.pop(), t.writeHistory('undos', o) } }, t.undo = () =>{ var { history: r } = t, { undos: i } = r; if (i.length > 0) { var o = i[i.length - 1]; tu.withoutSaving(t, () =>{ C.withoutNormalizing(t, () =>{ var a = o.operations.map(Bo.inverse).reverse(); for (var u of a) t.apply(u); o.selectionBefore && K.setSelection(t, o.selectionBefore) }) }), t.writeHistory('redos', o), r.undos.pop() } }, t.apply = r=>{ var { operations: i, history: o } = t, { undos: a } = o, u = a[a.length - 1], c = u && u.operations[u.operations.length - 1], f = tu.isSaving(t), h = tu.isMerging(t); if (f == null && (f = nV(r)), f) { if (h == null && (u == null ? h = !1 : i.length !== 0 ? h = !0 : h = tV(r, c)), u && h) u.operations.push(r); else { var g = { operations: [ r ], selectionBefore: t.selection }; t.writeHistory('undos', g) } for (; a.length > 100; ) a.shift(); o.redos = [ ] } n(r) }, t.writeHistory = (r, i) =>{ t.history[r].push(i) }, t }, tV = (e, t) =>!!(t && e.type === 'insert_text' && t.type === 'insert_text' && e.offset === t.offset + t.text.length && N.equals(e.path, t.path) || t && e.type === 'remove_text' && t.type === 'remove_text' && e.offset + e.text.length === t.offset && N.equals(e.path, t.path)), nV = (e, t) =>e.type !== 'set_selection'; function rc(e) { '@babel/helpers - typeof'; return rc = typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol' ? function (t) { return typeof t } : function (t) { return t && typeof Symbol == 'function' && t.constructor === Symbol && t !== Symbol.prototype ? 'symbol' : typeof t }, rc(e) } function rV(e, t) { if (rc(e) !== 'object' || e === null) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || 'default'); if (rc(r) !== 'object') return r; throw new TypeError('@@toPrimitive must return a primitive value.') } return (t === 'string' ? String : Number) (e) } function iV(e) { var t = rV(e, 'string'); return rc(t) === 'symbol' ? t : String(t) } function nu(e, t, n) { return t = iV(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e } var C3 = new WeakMap, E3 = new WeakMap; class ty { } class Wh extends ty { constructor() { var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : { }; super (), nu(this, 'offset', void 0), nu(this, 'path', void 0); var { offset: n, path: r } = t; this.offset = n, this.path = r } } class Vh extends ty { constructor() { var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : { }; super (), nu(this, 'offset', void 0), nu(this, 'path', void 0); var { offset: n, path: r } = t; this.offset = n, this.path = r } } var oV = (e, t) =>{ var n = e.text.length; C3.set(e, [ n, t ]) }, sV = e=>C3.get(e), aV = (e, t) =>{ var n = e.text.length; E3.set(e, [ n, t ]) }, uV = e=>E3.get(e); function D3(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function (i) { return Object.getOwnPropertyDescriptor(e, i).enumerable })), n.push.apply(n, r) } return n } function ny(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : { }; t % 2 ? D3(Object(n), !0).forEach(function (r) { nu(e, r, n[r]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : D3(Object(n)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) }) } return e } var Kh = new WeakSet, qh = e=>{ var t = [ ], n = i=>{ if (i != null) { var o = t[t.length - 1]; if (typeof i == 'string') { var a = { text: i }; Kh.add(a), i = a } if (Ee.isText(i)) { var u = i; Ee.isText(o) && Kh.has(o) && Kh.has(u) && Ee.equals(o, u, { loose: !0 }) ? o.text += u.text : t.push(u) } else if (we.isElement(i)) t.push(i); else if (i instanceof ty) { var c = t[t.length - 1]; Ee.isText(c) || (n(''), c = t[t.length - 1]), i instanceof Wh ? oV(c, i) : i instanceof Vh && aV(c, i) } else throw new Error('Unexpected hyperscript child object: '.concat(i)) } }; for (var r of e.flat(1 / 0)) n(r); return t }; function lV(e, t, n) { return new Wh(t) } function cV(e, t, n) { return [new Wh(t), new Vh(t)] } function x3(e, t, n) { return ny(ny({ }, t), { }, { children: qh(n) }) } function fV(e, t, n) { return new Vh(t) } function dV(e, t, n) { return qh(n) } function hV(e, t, n) { var r = n.find(o=>o instanceof Wh), i = n.find(o=>o instanceof Vh); if (!r || r.offset == null || r.path == null) throw new Error('The <selection> hyperscript tag must have an <anchor> tag as a child with `path` and `offset` attributes defined.'); if (!i || i.offset == null || i.path == null) throw new Error('The <selection> hyperscript tag must have a <focus> tag as a child with `path` and `offset` attributes defined.'); return ny({ anchor: { offset: r.offset, path: r.path }, focus: { offset: i.offset, path: i.path } }, t) } function pV(e, t, n) { var r = qh(n); if (r.length > 1) throw new Error('The <text> hyperscript tag must only contain a single node\'s worth of children.'); var [i] = r; if (i == null && (i = { text: '' }), !Ee.isText(i)) throw new Error(` The <text> hyperscript tag can only contain text content as children. `); return Kh.delete(i), Object.assign(i, t), i } var gV = e=>(t, n, r) =>{ var i = [ ], o; for (var a of r) q.isRange(a) ? o = a : i.push(a); var u = qh(i), c = { }, f = e(); Object.assign(f, n), f.children = u; for (var [h, g]of de.texts(f)) { var m = sV(h), y = uV(h); if (m != null) { var [v] = m; c.anchor = { path: g, offset: v } } if (y != null) { var [p] = y; c.focus = { path: g, offset: p } } } if (c.anchor && !c.focus) throw new Error('Slate hyperscript ranges must have both `<anchor />` and `<focus />` defined if one is defined, but you only defined `<anchor />`. For collapsed selections, use `<cursor />` instead.'); if (!c.anchor && c.focus) throw new Error('Slate hyperscript ranges must have both `<anchor />` and `<focus />` defined if one is defined, but you only defined `<focus />`. For collapsed selections, use `<cursor />` instead.'); return o != null ? f.selection = o : q.isRange(c) && (f.selection = c), f }; function A3(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function (i) { return Object.getOwnPropertyDescriptor(e, i).enumerable })), n.push.apply(n, r) } return n } function ic(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : { }; t % 2 ? A3(Object(n), !0).forEach(function (r) { nu(e, r, n[r]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : A3(Object(n)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) }) } return e } var mV = { anchor: lV, cursor: cV, editor: gV(u2), element: x3, focus: fV, fragment: dV, selection: hV, text: pV }, vV = function () { var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : { }, { elements: n = { } } = t, r = wV(n), i = ic(ic(ic({ }, mV), r), t.creators), o = yV(i); return o }, yV = e=>{ var t = function (r, i) { for (var o = arguments.length, a = new Array(o > 2 ? o - 2 : 0), u = 2; u < o; u++) a[u - 2] = arguments[u]; var c = e[r]; if (!c) throw new Error('No hyperscript creator found for tag: <'.concat(r, '>')); i == null && (i = { }), nn(i) || (a = [ i ].concat(a), i = { }), a = a.filter(h=>!!h).flat(); var f = c(r, i, a); return f }; return t }, wV = e=>{ var t = { }, n = function () { var o = e[r]; if (typeof o != 'object') throw new Error('Properties specified for a hyperscript shorthand should be an object, but for the custom element <'.concat(r, '> tag you passed: ').concat(o)); t[r] = (a, u, c) =>x3('element', ic(ic({ }, o), u), c) }; for (var r in e) n(); return t }, bi = vV(); const bV = e=>{ const t = { B: () =>({ bold: !0 }), STRONG: () =>({ bold: !0 }), I: () =>({ italic: !0 }), EM: () =>({ italic: !0 }), U: () =>({ underline: !0 }), CODE: () =>({ code: !0 }), S: () =>({ strikethrough: !0 }) }; return t[e] ? t[e]() : { } }, _V = (e, t) =>{ var r; ((r = e.previousSibling) == null ? void 0 : r.nodeName) === 'P' && e.nodeName === 'P' && Array.isArray(t) && (t = [ { text: mi }, ...t ]); const n = { BODY: () =>bi('fragment', { }, t), BR: () =>mi, BLOCKQUOTE: () =>bi('element', { type: 'block-quote' }, t), P: () =>e.innerText === '' ? void 0 : bi('element', { type: 'div' }, t), SPOILER: () =>bi('element', { type: 'spoiler' }, t), A: () =>{ var i; if (e.getAttribute('data-dsq-mention')) { const [o] = ((i = e.getAttribute('data-dsq-mention')) == null ? void 0 : i.split(':')) || [ ]; return bi('element', { type: 'mention', name: e.innerText, username: o }, t) } return e.getAttribute('href').includes('giphy.com') ? bi('element', { type: 'video', url: e.getAttribute('title') }, t) : e.getAttribute('href').includes('uploads.disquscdn.com/images') ? bi('element', { type: 'image', url: e.getAttribute('title') }, t) : bi('element', { type: 'link', url: e.getAttribute('title') }, t) } }; return n[e.nodeName] ? n[e.nodeName]() : t }, S3 = (e, t = { }) =>{ if (e.nodeType === Node.TEXT_NODE) return bi('text', t, e.textContent); if (e.nodeType !== Node.ELEMENT_NODE) return; const n = { ...t, ...bV(e.nodeName) }, r = Array.from(e.childNodes || [ ]).map(i=>S3(i, n)).flat(); return r.length === 0 && r.push(bi('text', n, '')), _V(e, r) }, oc = (e=>{ const t = function (o) { return e[o] }, n = '(?:' + Object.keys(e).join('|') + ')', r = RegExp(n), i = RegExp(n, 'g'); return function (o) { return o = o == null ? '' : '' + o, r.test(o) ? o.replace(i, t) : o } }) (hM), CV = (e, t) =>{ const n = { [ Ue.QUOTE ]: () =>t ? `<blockquote>${ t }</blockquote>` : '', [ Ue.BLOCK ]: () =>t, [ Ue.LINK ]: () =>` <a href="${ oc(e.url) }">${ t }</a> `, [ Ue.SPOILER ]: () =>t ? `<spoiler>${ t }</spoiler>` : '', [ Ue.IMAGE ]: () =>` ${ oc(e.url) } `, [ Ue.VIDEO ]: () =>` ${ oc(e.url) } `, [ Ue.MENTION ]: () =>`@${ oc(e.username) }:disqus` }; return n[e.type] ? n[e.type]() : t }, O3 = e=>{ if (Ee.isText(e)) { let n = oc(e.text).replaceAll(/\uFEFF/gi, ''); return n.replace(/[^\S\r\n]+|[^\S\r\n]+$/gm, '') ? (e.bold && (n = `<b>${ n }</b>`), e.italic && (n = `<i>${ n }</i>`), e.strikethrough && (n = `<s>${ n }</s>`), e.underline && (n = `<u>${ n }</u>`), e.code && (n = `<code>${ n }</code>`), n) : '' } const t = e.children.map(n=>O3(n)).join('').replace(/^\n/, ''); return C.isEditor(e) ? t : CV(e, t) }, EV = e=>O3(e).trim(); var DV = Array.isArray, _i = DV, xV = _i; function AV() { if (!arguments.length) return []; var e = arguments[0]; return xV(e) ? e : [ e ] } var SV = AV; const sc = vr(SV); function OV(e, t) { for (var n = - 1, r = e == null ? 0 : e.length, i = Array(r); ++n < r; ) i[n] = t(e[n], n, e); return i } var F3 = OV; function FV() { this.__data__ = [ ], this.size = 0 } var BV = FV; function kV(e, t) { return e === t || e !== e && t !== t } var B3 = kV, PV = B3; function RV(e, t) { for (var n = e.length; n--; ) if (PV(e[n][0], t)) return n; return - 1 } var Gh = RV, TV = Gh, IV = Array.prototype, NV = IV.splice; function LV(e) { var t = this.__data__, n = TV(t, e); if (n < 0) return !1; var r = t.length - 1; return n == r ? t.pop() : NV.call(t, n, 1), --this.size, !0 } var MV = LV, $V = Gh; function jV(e) { var t = this.__data__, n = $V(t, e); return n < 0 ? void 0 : t[n][1] } var zV = jV, UV = Gh; function HV(e) { return UV(this.__data__, e) > - 1 } var WV = HV, VV = Gh; function KV(e, t) { var n = this.__data__, r = VV(n, e); return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this } var qV = KV, GV = BV, QV = MV, YV = zV, JV = WV, XV = qV; function ru(e) { var t = - 1, n = e == null ? 0 : e.length; for (this.clear(); ++t < n; ) { var r = e[t]; this.set(r[0], r[1]) } } ru.prototype.clear = GV, ru.prototype.delete = QV, ru.prototype.get = YV, ru.prototype.has = JV, ru.prototype.set = XV; var Qh = ru, ZV = Qh; function eK() { this.__data__ = new ZV, this.size = 0 } var tK = eK; function nK(e) { var t = this.__data__, n = t.delete(e); return this.size = t.size, n } var rK = nK; function iK(e) { return this.__data__.get(e) } var oK = iK; function sK(e) { return this.__data__.has(e) } var aK = sK, uK = Al, lK = Ra, cK = '[object AsyncFunction]', fK = '[object Function]', dK = '[object GeneratorFunction]', hK = '[object Proxy]'; function pK(e) { if (!lK(e)) return !1; var t = uK(e); return t == fK || t == dK || t == cK || t == hK } var k3 = pK, gK = hi, mK = gK['__core-js_shared__'], vK = mK, ry = vK, P3 = function () { var e = /[^.]+$/.exec(ry && ry.keys && ry.keys.IE_PROTO || ''); return e ? 'Symbol(src)_1.' + e : '' }(); function yK(e) { return !!P3 && P3 in e } var wK = yK, bK = Function.prototype, _K = bK.toString; function CK(e) { if (e != null) { try { return _K.call(e) } catch { } try { return e + '' } catch { } } return '' } var R3 = CK, EK = k3, DK = wK, xK = Ra, AK = R3, SK = /[\\^$.*+?()[\]{}|]/g, OK = /^\[object .+?Constructor\]$/, FK = Function.prototype, BK = Object.prototype, kK = FK.toString, PK = BK.hasOwnProperty, RK = RegExp('^' + kK.call(PK).replace(SK, '\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'); function TK(e) { if (!xK(e) || DK(e)) return !1; var t = EK(e) ? RK : OK; return t.test(AK(e)) } var IK = TK; function NK(e, t) { return e == null ? void 0 : e[t] } var LK = NK, MK = IK, $K = LK; function jK(e, t) { var n = $K(e, t); return MK(n) ? n : void 0 } var iu = jK, zK = iu, UK = hi, HK = zK(UK, 'Map'), iy = HK, WK = iu, VK = WK(Object, 'create'), Yh = VK, T3 = Yh; function KK() { this.__data__ = T3 ? T3(null) : { }, this.size = 0 } var qK = KK; function GK(e) { var t = this.has(e) && delete this.__data__[e]; return this.size -= t ? 1 : 0, t } var QK = GK, YK = Yh, JK = '__lodash_hash_undefined__', XK = Object.prototype, ZK = XK.hasOwnProperty; function eq(e) { var t = this.__data__; if (YK) { var n = t[e]; return n === JK ? void 0 : n } return ZK.call(t, e) ? t[e] : void 0 } var tq = eq, nq = Yh, rq = Object.prototype, iq = rq.hasOwnProperty; function oq(e) { var t = this.__data__; return nq ? t[e] !== void 0 : iq.call(t, e) } var sq = oq, aq = Yh, uq = '__lodash_hash_undefined__'; function lq(e, t) { var n = this.__data__; return this.size += this.has(e) ? 0 : 1, n[e] = aq && t === void 0 ? uq : t, this } var cq = lq, fq = qK, dq = QK, hq = tq, pq = sq, gq = cq; function ou(e) { var t = - 1, n = e == null ? 0 : e.length; for (this.clear(); ++t < n; ) { var r = e[t]; this.set(r[0], r[1]) } } ou.prototype.clear = fq, ou.prototype.delete = dq, ou.prototype.get = hq, ou.prototype.has = pq, ou.prototype.set = gq; var mq = ou, I3 = mq, vq = Qh, yq = iy; function wq() { this.size = 0, this.__data__ = { hash: new I3, map: new (yq || vq), string: new I3 } } var bq = wq; function _q(e) { var t = typeof e; return t == 'string' || t == 'number' || t == 'symbol' || t == 'boolean' ? e !== '__proto__' : e === null } var Cq = _q, Eq = Cq; function Dq(e, t) { var n = e.__data__; return Eq(t) ? n[typeof t == 'string' ? 'string' : 'hash'] : n.map } var Jh = Dq, xq = Jh; function Aq(e) { var t = xq(this, e).delete(e); return this.size -= t ? 1 : 0, t } var Sq = Aq, Oq = Jh; function Fq(e) { return Oq(this, e).get(e) } var Bq = Fq, kq = Jh; function Pq(e) { return kq(this, e).has(e) } var Rq = Pq, Tq = Jh; function Iq(e, t) { var n = Tq(this, e), r = n.size; return n.set(e, t), this.size += n.size == r ? 0 : 1, this } var Nq = Iq, Lq = bq, Mq = Sq, $q = Bq, jq = Rq, zq = Nq; function su(e) { var t = - 1, n = e == null ? 0 : e.length; for (this.clear(); ++t < n; ) { var r = e[t]; this.set(r[0], r[1]) } } su.prototype.clear = Lq, su.prototype.delete = Mq, su.prototype.get = $q, su.prototype.has = jq, su.prototype.set = zq; var oy = su, Uq = Qh, Hq = iy, Wq = oy, Vq = 200; function Kq(e, t) { var n = this.__data__; if (n instanceof Uq) { var r = n.__data__; if (!Hq || r.length < Vq - 1) return r.push([e, t]), this.size = ++n.size, this; n = this.__data__ = new Wq(r) } return n.set(e, t), this.size = n.size, this } var qq = Kq, Gq = Qh, Qq = tK, Yq = rK, Jq = oK, Xq = aK, Zq = qq; function au(e) { var t = this.__data__ = new Gq(e); this.size = t.size } au.prototype.clear = Qq, au.prototype.delete = Yq, au.prototype.get = Jq, au.prototype.has = Xq, au.prototype.set = Zq; var N3 = au, eG = '__lodash_hash_undefined__'; function tG(e) { return this.__data__.set(e, eG), this } var nG = tG; function rG(e) { return this.__data__.has(e) } var iG = rG, oG = oy, sG = nG, aG = iG; function Xh(e) { var t = - 1, n = e == null ? 0 : e.length; for (this.__data__ = new oG; ++t < n; ) this.add(e[t]) } Xh.prototype.add = Xh.prototype.push = sG, Xh.prototype.has = aG; var uG = Xh; function lG(e, t) { for (var n = - 1, r = e == null ? 0 : e.length; ++n < r; ) if (t(e[n], n, e)) return !0; return !1 } var cG = lG; function fG(e, t) { return e.has(t) } var dG = fG, hG = uG, pG = cG, gG = dG, mG = 1, vG = 2; function yG(e, t, n, r, i, o) { var a = n & mG, u = e.length, c = t.length; if (u != c && !(a && c > u)) return !1; var f = o.get(e), h = o.get(t); if (f && h) return f == t && h == e; var g = - 1, m = !0, y = n & vG ? new hG : void 0; for (o.set(e, t), o.set(t, e); ++g < u; ) { var v = e[g], p = t[g]; if (r) var E = a ? r(p, v, g, t, e, o) : r(v, p, g, e, t, o); if (E !== void 0) { if (E) continue; m = !1; break } if (y) { if (!pG(t, function (_, b) { if (!gG(y, b) && (v === _ || i(v, _, n, r, o))) return y.push(b) })) { m = !1; break } } else if (!(v === p || i(v, p, n, r, o))) { m = !1; break } } return o.delete(e), o.delete(t), m } var L3 = yG, wG = hi, bG = wG.Uint8Array, _G = bG; function CG(e) { var t = - 1, n = Array(e.size); return e.forEach(function (r, i) { n[++t] = [ i, r ] }), n } var EG = CG; function DG(e) { var t = - 1, n = Array(e.size); return e.forEach(function (r) { n[++t] = r }), n } var xG = DG, M3 = wd, $3 = _G, AG = B3, SG = L3, OG = EG, FG = xG, BG = 1, kG = 2, PG = '[object Boolean]', RG = '[object Date]', TG = '[object Error]', IG = '[object Map]', NG = '[object Number]', LG = '[object RegExp]', MG = '[object Set]', $G = '[object String]', jG = '[object Symbol]', zG = '[object ArrayBuffer]', UG = '[object DataView]', j3 = M3 ? M3.prototype : void 0, sy = j3 ? j3.valueOf : void 0; function HG(e, t, n, r, i, o, a) { switch (n) { case UG: if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset) return !1; e = e.buffer, t = t.buffer; case zG: return !(e.byteLength != t.byteLength || !o(new $3(e), new $3(t))); case PG: case RG: case NG: return AG( + e, + t); case TG: return e.name == t.name && e.message == t.message; case LG: case $G: return e == t + ''; case IG: var u = OG; case MG: var c = r & BG; if (u || (u = FG), e.size != t.size && !c) return !1; var f = a.get(e); if (f) return f == t; r |= kG, a.set(e, t); var h = SG(u(e), u(t), r, i, o, a); return a.delete(e), h; case jG: if (sy) return sy.call(e) == sy.call(t) } return !1 } var WG = HG; function VG(e, t) { for (var n = - 1, r = t.length, i = e.length; ++n < r; ) e[i + n] = t[n]; return e } var KG = VG, qG = KG, GG = _i; function QG(e, t, n) { var r = t(e); return GG(e) ? r : qG(r, n(e)) } var YG = QG; function JG(e, t) { for (var n = - 1, r = e == null ? 0 : e.length, i = 0, o = [ ]; ++n < r; ) { var a = e[n]; t(a, n, e) && (o[i++] = a) } return o } var XG = JG; function ZG() { return [] } var eQ = ZG, tQ = XG, nQ = eQ, rQ = Object.prototype, iQ = rQ.propertyIsEnumerable, z3 = Object.getOwnPropertySymbols, oQ = z3 ? function (e) { return e == null ? [ ] : (e = Object(e), tQ(z3(e), function (t) { return iQ.call(e, t) })) } : nQ, sQ = oQ; function aQ(e, t) { for (var n = - 1, r = Array(e); ++n < e; ) r[n] = t(n); return r } var uQ = aQ, lQ = Al, cQ = Sl, fQ = '[object Arguments]'; function dQ(e) { return cQ(e) && lQ(e) == fQ } var hQ = dQ, U3 = hQ, pQ = Sl, H3 = Object.prototype, gQ = H3.hasOwnProperty, mQ = H3.propertyIsEnumerable, vQ = U3(function () { return arguments }()) ? U3 : function (e) { return pQ(e) && gQ.call(e, 'callee') && !mQ.call(e, 'callee') }, W3 = vQ, Zh = { exports: { } }; function yQ() { return !1 } var wQ = yQ; Zh.exports, function (e, t) { var n = hi, r = wQ, i = t && !t.nodeType && t, o = i && !0 && e && !e.nodeType && e, a = o && o.exports === i, u = a ? n.Buffer : void 0, c = u ? u.isBuffer : void 0, f = c || r; e.exports = f }(Zh, Zh.exports); var V3 = Zh.exports, bQ = 9007199254740991, _Q = /^(?:0|[1-9]\d*)$/; function CQ(e, t) { var n = typeof e; return t = t ?? bQ, !!t && (n == 'number' || n != 'symbol' && _Q.test(e)) && e > - 1 && e % 1 == 0 && e < t } var K3 = CQ, EQ = 9007199254740991; function DQ(e) { return typeof e == 'number' && e > - 1 && e % 1 == 0 && e <= EQ } var ay = DQ, xQ = Al, AQ = ay, SQ = Sl, OQ = '[object Arguments]', FQ = '[object Array]', BQ = '[object Boolean]', kQ = '[object Date]', PQ = '[object Error]', RQ = '[object Function]', TQ = '[object Map]', IQ = '[object Number]', NQ = '[object Object]', LQ = '[object RegExp]', MQ = '[object Set]', $Q = '[object String]', jQ = '[object WeakMap]', zQ = '[object ArrayBuffer]', UQ = '[object DataView]', HQ = '[object Float32Array]', WQ = '[object Float64Array]', VQ = '[object Int8Array]', KQ = '[object Int16Array]', qQ = '[object Int32Array]', GQ = '[object Uint8Array]', QQ = '[object Uint8ClampedArray]', YQ = '[object Uint16Array]', JQ = '[object Uint32Array]', _t = { }; _t[HQ] = _t[WQ] = _t[VQ] = _t[KQ] = _t[qQ] = _t[GQ] = _t[QQ] = _t[YQ] = _t[JQ] = !0, _t[OQ] = _t[FQ] = _t[zQ] = _t[BQ] = _t[UQ] = _t[kQ] = _t[PQ] = _t[RQ] = _t[TQ] = _t[IQ] = _t[NQ] = _t[LQ] = _t[MQ] = _t[$Q] = _t[jQ] = !1; function XQ(e) { return SQ(e) && AQ(e.length) && !!_t[xQ(e)] } var ZQ = XQ; function eY(e) { return function (t) { return e(t) } } var tY = eY, ep = { exports: { } }; ep.exports, function (e, t) { var n = tx, r = t && !t.nodeType && t, i = r && !0 && e && !e.nodeType && e, o = i && i.exports === r, a = o && n.process, u = function () { try { var c = i && i.require && i.require('util').types; return c || a && a.binding && a.binding('util') } catch { } }(); e.exports = u }(ep, ep.exports); var nY = ep.exports, rY = ZQ, iY = tY, q3 = nY, G3 = q3 && q3.isTypedArray, oY = G3 ? iY(G3) : rY, Q3 = oY, sY = uQ, aY = W3, uY = _i, lY = V3, cY = K3, fY = Q3, dY = Object.prototype, hY = dY.hasOwnProperty; function pY(e, t) { var n = uY(e), r = !n && aY(e), i = !n && !r && lY(e), o = !n && !r && !i && fY(e), a = n || r || i || o, u = a ? sY(e.length, String) : [ ], c = u.length; for (var f in e) (t || hY.call(e, f)) && !(a && (f == 'length' || i && (f == 'offset' || f == 'parent') || o && (f == 'buffer' || f == 'byteLength' || f == 'byteOffset') || cY(f, c))) && u.push(f); return u } var gY = pY, mY = Object.prototype; function vY(e) { var t = e && e.constructor, n = typeof t == 'function' && t.prototype || mY; return e === n } var yY = vY; function wY(e, t) { return function (n) { return e(t(n)) } } var bY = wY, _Y = bY, CY = _Y(Object.keys, Object), EY = CY, DY = yY, xY = EY, AY = Object.prototype, SY = AY.hasOwnProperty; function OY(e) { if (!DY(e)) return xY(e); var t = [ ]; for (var n in Object(e)) SY.call(e, n) && n != 'constructor' && t.push(n); return t } var FY = OY, BY = k3, kY = ay; function PY(e) { return e != null && kY(e.length) && !BY(e) } var uy = PY, RY = gY, TY = FY, IY = uy; function NY(e) { return IY(e) ? RY(e) : TY(e) } var ly = NY, LY = YG, MY = sQ, $Y = ly; function jY(e) { return LY(e, $Y, MY) } var zY = jY, Y3 = zY, UY = 1, HY = Object.prototype, WY = HY.hasOwnProperty; function VY(e, t, n, r, i, o) { var a = n & UY, u = Y3(e), c = u.length, f = Y3(t), h = f.length; if (c != h && !a) return !1; for (var g = c; g--; ) { var m = u[g]; if (!(a ? m in t : WY.call(t, m))) return !1 } var y = o.get(e), v = o.get(t); if (y && v) return y == t && v == e; var p = !0; o.set(e, t), o.set(t, e); for (var E = a; ++g < c; ) { m = u[g]; var _ = e[m], b = t[m]; if (r) var x = a ? r(b, _, m, t, e, o) : r(_, b, m, e, t, o); if (!(x === void 0 ? _ === b || i(_, b, n, r, o) : x)) { p = !1; break } E || (E = m == 'constructor') } if (p && !E) { var O = e.constructor, B = t.constructor; O != B && 'constructor' in e && 'constructor' in t && !(typeof O == 'function' && O instanceof O && typeof B == 'function' && B instanceof B) && (p = !1) } return o.delete(e), o.delete(t), p } var KY = VY, qY = iu, GY = hi, QY = qY(GY, 'DataView'), YY = QY, JY = iu, XY = hi, ZY = JY(XY, 'Promise'), eJ = ZY, tJ = iu, nJ = hi, rJ = tJ(nJ, 'Set'), iJ = rJ, oJ = iu, sJ = hi, aJ = oJ(sJ, 'WeakMap'), uJ = aJ, cy = YY, fy = iy, dy = eJ, hy = iJ, py = uJ, J3 = Al, uu = R3, X3 = '[object Map]', lJ = '[object Object]', Z3 = '[object Promise]', eF = '[object Set]', tF = '[object WeakMap]', nF = '[object DataView]', cJ = uu(cy), fJ = uu(fy), dJ = uu(dy), hJ = uu(hy), pJ = uu(py), Ns = J3; (cy && Ns(new cy(new ArrayBuffer(1))) != nF || fy && Ns(new fy) != X3 || dy && Ns(dy.resolve()) != Z3 || hy && Ns(new hy) != eF || py && Ns(new py) != tF) && (Ns = function (e) { var t = J3(e), n = t == lJ ? e.constructor : void 0, r = n ? uu(n) : ''; if (r) switch (r) { case cJ: return nF; case fJ: return X3; case dJ: return Z3; case hJ: return eF; case pJ: return tF } return t }); var gJ = Ns, gy = N3, mJ = L3, vJ = WG, yJ = KY, rF = gJ, iF = _i, oF = V3, wJ = Q3, bJ = 1, sF = '[object Arguments]', aF = '[object Array]', tp = '[object Object]', _J = Object.prototype, uF = _J.hasOwnProperty; function CJ(e, t, n, r, i, o) { var a = iF(e), u = iF(t), c = a ? aF : rF(e), f = u ? aF : rF(t); c = c == sF ? tp : c, f = f == sF ? tp : f; var h = c == tp, g = f == tp, m = c == f; if (m && oF(e)) { if (!oF(t)) return !1; a = !0, h = !1 } if (m && !h) return o || (o = new gy), a || wJ(e) ? mJ(e, t, n, r, i, o) : vJ(e, t, c, n, r, i, o); if (!(n & bJ)) { var y = h && uF.call(e, '__wrapped__'), v = g && uF.call(t, '__wrapped__'); if (y || v) { var p = y ? e.value() : e, E = v ? t.value() : t; return o || (o = new gy), i(p, E, n, r, o) } } return m ? (o || (o = new gy), yJ(e, t, n, r, i, o)) : !1 } var EJ = CJ, DJ = EJ, lF = Sl; function cF(e, t, n, r, i) { return e === t ? !0 : e == null || t == null || !lF(e) && !lF(t) ? e !== e && t !== t : DJ(e, t, n, r, cF, i) } var fF = cF, xJ = N3, AJ = fF, SJ = 1, OJ = 2; function FJ(e, t, n, r) { var i = n.length, o = i, a = !r; if (e == null) return !o; for (e = Object(e); i--; ) { var u = n[i]; if (a && u[2] ? u[1] !== e[u[0]] : !(u[0] in e)) return !1 } for (; ++i < o; ) { u = n[i]; var c = u[0], f = e[c], h = u[1]; if (a && u[2]) { if (f === void 0 && !(c in e)) return !1 } else { var g = new xJ; if (r) var m = r(f, h, c, e, t, g); if (!(m === void 0 ? AJ(h, f, SJ | OJ, r, g) : m)) return !1 } } return !0 } var BJ = FJ, kJ = Ra; function PJ(e) { return e === e && !kJ(e) } var dF = PJ, RJ = dF, TJ = ly; function IJ(e) { for (var t = TJ(e), n = t.length; n--; ) { var r = t[n], i = e[r]; t[n] = [ r, i, RJ(i) ] } return t } var NJ = IJ; function LJ(e, t) { return function (n) { return n == null ? !1 : n[e] === t && (t !== void 0 || e in Object(n)) } } var hF = LJ, MJ = BJ, $J = NJ, jJ = hF; function zJ(e) { var t = $J(e); return t.length == 1 && t[0][2] ? jJ(t[0][0], t[0][1]) : function (n) { return n === e || MJ(n, e, t) } } var UJ = zJ, HJ = _i, WJ = bd, VJ = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, KJ = /^\w*$/; function qJ(e, t) { if (HJ(e)) return !1; var n = typeof e; return n == 'number' || n == 'symbol' || n == 'boolean' || e == null || WJ(e) ? !0 : KJ.test(e) || !VJ.test(e) || t != null && e in Object(t) } var my = qJ, pF = oy, GJ = 'Expected a function'; function vy(e, t) { if (typeof e != 'function' || t != null && typeof t != 'function') throw new TypeError(GJ); var n = function () { var r = arguments, i = t ? t.apply(this, r) : r[0], o = n.cache; if (o.has(i)) return o.get(i); var a = e.apply(this, r); return n.cache = o.set(i, a) || o, a }; return n.cache = new (vy.Cache || pF), n } vy.Cache = pF; var QJ = vy, YJ = QJ, JJ = 500; function XJ(e) { var t = YJ(e, function (r) { return n.size === JJ && n.clear(), r }), n = t.cache; return t } var ZJ = XJ, eX = ZJ, tX = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, nX = /\\(\\)?/g, rX = eX(function (e) { var t = [ ]; return e.charCodeAt(0) === 46 && t.push(''), e.replace(tX, function (n, r, i, o) { t.push(i ? o.replace(nX, '$1') : r || n) }), t }), iX = rX, gF = wd, oX = F3, sX = _i, aX = bd, uX = 1 / 0, mF = gF ? gF.prototype : void 0, vF = mF ? mF.toString : void 0; function yF(e) { if (typeof e == 'string') return e; if (sX(e)) return oX(e, yF) + ''; if (aX(e)) return vF ? vF.call(e) : ''; var t = e + ''; return t == '0' && 1 / e == - uX ? '-0' : t } var lX = yF, cX = lX; function fX(e) { return e == null ? '' : cX(e) } var dX = fX, hX = _i, pX = my, gX = iX, mX = dX; function vX(e, t) { return hX(e) ? e : pX(e, t) ? [ e ] : gX(mX(e)) } var wF = vX, yX = bd, wX = 1 / 0; function bX(e) { if (typeof e == 'string' || yX(e)) return e; var t = e + ''; return t == '0' && 1 / e == - wX ? '-0' : t } var np = bX, _X = wF, CX = np; function EX(e, t) { t = _X(t, e); for (var n = 0, r = t.length; e != null && n < r; ) e = e[CX(t[n++])]; return n && n == r ? e : void 0 } var bF = EX, DX = bF; function xX(e, t, n) { var r = e == null ? void 0 : DX(e, t); return r === void 0 ? n : r } var AX = xX; function SX(e, t) { return e != null && t in Object(e) } var OX = SX, FX = wF, BX = W3, kX = _i, PX = K3, RX = ay, TX = np; function IX(e, t, n) { t = FX(t, e); for (var r = - 1, i = t.length, o = !1; ++r < i; ) { var a = TX(t[r]); if (!(o = e != null && n(e, a))) break; e = e[a] } return o || ++r != i ? o : (i = e == null ? 0 : e.length, !!i && RX(i) && PX(a, i) && (kX(e) || BX(e))) } var NX = IX, LX = OX, MX = NX; function $X(e, t) { return e != null && MX(e, t, LX) } var jX = $X, zX = fF, UX = AX, HX = jX, WX = my, VX = dF, KX = hF, qX = np, GX = 1, QX = 2; function YX(e, t) { return WX(e) && VX(t) ? KX(qX(e), t) : function (n) { var r = UX(n, e); return r === void 0 && r === t ? HX(n, e) : zX(t, r, GX | QX) } } var JX = YX; function XX(e) { return e } var ZX = XX; function eZ(e) { return function (t) { return t == null ? void 0 : t[e] } } var tZ = eZ, nZ = bF; function rZ(e) { return function (t) { return nZ(t, e) } } var iZ = rZ, oZ = tZ, sZ = iZ, aZ = my, uZ = np; function lZ(e) { return aZ(e) ? oZ(uZ(e)) : sZ(e) } var cZ = lZ, fZ = UJ, dZ = JX, hZ = ZX, pZ = _i, gZ = cZ; function mZ(e) { return typeof e == 'function' ? e : e == null ? hZ : typeof e == 'object' ? pZ(e) ? dZ(e[0], e[1]) : fZ(e) : gZ(e) } var vZ = mZ; function yZ(e) { return function (t, n, r) { for (var i = - 1, o = Object(t), a = r(t), u = a.length; u--; ) { var c = a[e ? u : ++i]; if (n(o[c], c, o) === !1) break } return t } } var wZ = yZ, bZ = wZ, _Z = bZ(), CZ = _Z, EZ = CZ, DZ = ly; function xZ(e, t) { return e && EZ(e, t, DZ) } var AZ = xZ, SZ = uy; function OZ(e, t) { return function (n, r) { if (n == null) return n; if (!SZ(n)) return e(n, r); for (var i = n.length, o = t ? i : - 1, a = Object(n); (t ? o-- : ++o < i) && r(a[o], o, a) !== !1; ); return n } } var FZ = OZ, BZ = AZ, kZ = FZ, PZ = kZ(BZ), RZ = PZ, TZ = RZ, IZ = uy; function NZ(e, t) { var n = - 1, r = IZ(e) ? Array(e.length) : [ ]; return TZ(e, function (i, o, a) { r[++n] = t(i, o, a) }), r } var LZ = NZ, MZ = F3, $Z = vZ, jZ = LZ, zZ = _i; function UZ(e, t) { var n = zZ(e) ? MZ : jZ; return n(e, $Z(t)) } var HZ = UZ; const WZ = vr(HZ), VZ = (e, { start: t, end: n }) =>{ const r = e.selection; let i = r.anchor; if (n && (i = rp(e, r, { matchString: n }), !i)) return; let o, a; if (!(t && (o = rp(e, i, { matchString: t, skipInvalid: !0, afterMatch: !0 }), !o || (a = rp(e, i, { matchString: t, skipInvalid: !0 }), !KZ(e, a))))) return { afterStartMatchPoint: o, beforeStartMatchPoint: a, beforeEndMatchPoint: i } }, KZ = (e, t) =>{ const n = qZ(e, t); if (n) { const r = C.string(e, n) ?? ''; if (r) { const i = new RegExp('\\S+'); return !r.match(i) } } return !0 }, rp = (e, t, n) =>{ if (!n || !n.match && !n.matchString) return C.before(e, t, n); const r = !n.unit || n.unit === 'offset', i = n.matchString ? sc(n.matchString) : [ '' ]; let o; return i.some(a=>{ var m, y; let u = t, c = C.point(e, t, { edge: 'end' }); const f = a.length + 1, h = Array.from({ length: f }); let g = 0; for (; ; ) { const v = C.before(e, u, n); if (!v || RA(e, { at: { anchor: v, focus: c } })) return; const p = C.string(e, { anchor: v, focus: c }) ?? ''; let E = p; if (r && f && (h.unshift({ point: v, text: p }), h.pop(), E = WZ(h.slice(0, - 1), 'text').join('')), a === E || (m = n.match) != null && m.call(n, { beforeString: E, beforePoint: v, at: t })) return n.afterMatch ? f && r ? (o = (y = h.at( - 1)) == null ? void 0 : y.point, !!o) : (o = c, !0) : (o = v, !0); if (c = v, u = v, g += 1, !n.skipInvalid && (!a || g >= a.length)) return } }), o }, qZ = (e, t, n) =>{ const r = rp(e, t, n); if (!r) return; const i = C.point(e, t, { edge: 'end' }); return { anchor: r, focus: i } }, GZ = ({ match: e, trigger: t }) =>{ let n, r; typeof e == 'object' ? (n = e.start, r = e.end) : (n = e, r = n.split('').reverse().join('')); const i = t ? sc(t) : [ r.slice( - 1) ]; return r = t ? r : r.slice(0, - 1), { start: n, end: r, triggers: i } }, QZ = (e, { key: t, at: n, shouldChange: r = !0, ...i }) =>{ const o = n ?? e.selection; if (t = sc(t), o) { if (q.isRange(o) && q.isExpanded(o)) K.unsetNodes(e, t, { at: o, match: a=>Ee.isText(a), split: !0, ...i }); else if (e.selection) { const a = C.marks(e) ?? { }; t.forEach(u=>{ delete a[u] }), e.marks = a, r && e.onChange() } } }, YZ = (e, { type: t, text: n, trigger: r, match: i, ignoreTrim: o }) =>{ if (!t) return !1; const a = e.selection, u = sc(i); for (const c of u) { const { start: f, end: h, triggers: g } = GZ({ match: c, trigger: r }); if (!g.includes(n)) continue; const m = VZ(e, { start: f, end: h }); if (!m) continue; const { afterStartMatchPoint: y, beforeEndMatchPoint: v, beforeStartMatchPoint: p } = m; let E = { anchor: y, focus: v }; if (!o) { const b = C.string(e, E) ?? ''; if (b.trim() !== b) continue } h && K.delete(e, { at: { anchor: v, focus: a.anchor } }); const _ = sc(t); if (!de.has(e, E.focus.path)) { const b = C.previous(e); if (b) { const x = Array.from(de.nodes(b[0])); x.length > 0 && Ee.isText(x[x.length - 1][0]) && (E = { ...E, focus: { path: b[1], offset: x[x.length - 1][0].text.length } }) } } return K.select(e, E), _.forEach(b=>{ e.addMark(b, !0) }), K.collapse(e, { edge: 'end' }), QZ(e, { key: _, shouldChange: !1 }), K.delete(e, { at: { anchor: p, focus: y } }), !0 } return !1 }, Lt = 'bold', lt = 'italic', mt = 'underline', dt = 'strikethrough', JZ = [ { mode: 'mark', type: [ lt, dt, mt, Lt ], match: '***__~~' }, { mode: 'mark', type: [ lt, dt, mt, Lt ], match: '**___~~' }, { mode: 'mark', type: [ mt, Lt, lt ], match: '__***' }, { mode: 'mark', type: [ mt, Lt, lt ], match: '***__' }, { mode: 'mark', type: [ mt, Lt, lt ], match: '**___' }, { mode: 'mark', type: [ mt, Lt, lt ], match: '___**' }, { mode: 'mark', type: [ dt, Lt, lt ], match: '***~~' }, { mode: 'mark', type: [ dt, Lt, lt ], match: '~~***' }, { mode: 'mark', type: [ dt, Lt, lt ], match: '~~_**' }, { mode: 'mark', type: [ dt, Lt, lt ], match: '**_~~' }, { mode: 'mark', type: [ dt, Lt, mt ], match: '~~__**' }, { mode: 'mark', type: [ dt, Lt, mt ], match: '~~**__' }, { mode: 'mark', type: [ dt, Lt, mt ], match: '**~~__' }, { mode: 'mark', type: [ dt, Lt, mt ], match: '**__~~' }, { mode: 'mark', type: [ dt, Lt, mt ], match: '__**~~' }, { mode: 'mark', type: [ dt, Lt, mt ], match: '__~~**' }, { mode: 'mark', type: [ lt, dt, mt ], match: '_~~__' }, { mode: 'mark', type: [ lt, dt, mt ], match: '*~~__' }, { mode: 'mark', type: [ lt, dt, mt ], match: '~~___' }, { mode: 'mark', type: [ lt, dt, mt ], match: '~~__*' }, { mode: 'mark', type: [ lt, dt, mt ], match: '~~*__' }, { mode: 'mark', type: [ lt, dt, mt ], match: '__*~~' }, { mode: 'mark', type: [ lt, dt, mt ], match: '___~~' }, { mode: 'mark', type: [ lt, dt, mt ], match: '__~~*' }, { mode: 'mark', type: [ Lt, lt ], match: '***' }, { mode: 'mark', type: [ mt, Lt ], match: '__**' }, { mode: 'mark', type: [ mt, Lt ], match: '**__' }, { mode: 'mark', type: [ dt, Lt ], match: '**~~' }, { mode: 'mark', type: [ dt, Lt ], match: '~~**' }, { mode: 'mark', type: [ mt, lt ], match: '__*' }, { mode: 'mark', type: [ mt, lt ], match: '*__' }, { mode: 'mark', type: [ mt, lt ], match: '___' }, { mode: 'mark', type: [ dt, lt ], match: '~~*' }, { mode: 'mark', type: [ dt, lt ], match: '*~~' }, { mode: 'mark', type: [ dt, lt ], match: '_~~' }, { mode: 'mark', type: [ dt, lt ], match: '~~_' }, { mode: 'mark', type: Lt, match: '**' }, { mode: 'mark', type: lt, match: '*' }, { mode: 'mark', type: lt, match: '_' }, { mode: 'mark', type: mt, match: '__' }, { mode: 'mark', type: dt, match: '~~' }, { mode: 'mark', type: 'code', match: '`' } ], XZ = e=>{ const { insertText: t } = e; return e.insertText = n=>{ if (e.selection && !q.isCollapsed(e.selection)) return t(n); for (const r of JZ) if (YZ(e, { ...r, text: n })) return; t(n) }, e }, ZZ = ({ clearDraft: e, draftKey: t, focusOnLoad: n = !1, forum: r, initialState: i, isEdit: o, lang: a = 'en', thread: u, translations: c, onSubmit: f, setAlert: h }) =>{ var J; const { i18n: g } = zn(), [ m, y ] = D.useState(n), [ v, p ] = ree(t, null), E = D.useRef(null), _ = $O.use.init(); D.useEffect(() =>{ _({ forum: r, thread: u }) }, [ ]); const b = () =>{ y(!0), DA(x) && K.select(x, C.end(x, [ ])) }, x = D.useMemo(() =>XZ(TW(PW(RW(SW(NW(JW(XW(xW(IW(eV(aM(u2()))))))))), { setAlert: Q=>h(Q, { type: 'error' }) }))), [ ]), O = D.useCallback(Q=>W(qU, { ...Q, forum: r }), [ ]), B = D.useCallback(Q=>W(JU, { ...Q }), [ ]), k = D.useCallback(() =>CM(x), [ x ]), { findMention: P, handleKeyDown: I, MentionList: Y, setReference: j } = WW({ editor: x, thread: u }), { open: X, getInputProps: $, getRootProps: U, isDragActive: T } = mW({ editor: x, onError: Q=>h(Q, { type: 'error' }) }), { ref: G } = U(), { isVisible: se, triggerPlaceholder: re } = wW({ editor: x, initialState: !i && !v }), V = Q=>{ G.current = Q, j(Q) }, te = Q=>{ I(Q), _M(x, Q, Ce), HM(x, Q) }, le = UR(() =>{ x.children.length === 1 && !de.string(x.children[0]) ? p(null) : p([new Date().getTime(), x.children]) }, 500), ce = () =>{ P(), o || le(), re() }; D.useEffect(() =>{ c && g.addResourceBundle(a, NE, c).changeLanguage(a) }, [ a, c ]); const ye = () =>{ if (o && i) { const ge = new DOMParser().parseFromString(i, 'text/html'); return S3(ge.body) } let Q = e; if (!Q && v) try { const [ge, he] = v; if (new Date().getTime() - ge >= yM || !he) Q = !0; else return he } catch { } return Q && p(null), yA }, De = D.useMemo(() =>(x.children = ye(), C.normalize(x, { force: !0 }), x.children), [ x ]); D.useEffect(() =>{ !m && T && y(!0) }, [ T ]); const Ce = () =>f(EV(x)), [ L, ne ] = D.useState(((J = E == null ? void 0 : E.current) == null ? void 0 : J.offsetWidth) || 0); return nee(E.current, () =>{ var Q; return ne(((Q = E == null ? void 0 : E.current) == null ? void 0 : Q.offsetWidth) || 0) }), { editor: x, hasFocused: m, isDragActive: T, MentionList: Y, getInputProps: $, getRootProps: U, handleDOMBeforeInput: k, handleOnChange: ce, handleOnKeyDown: te, handleOnFocus: b, openUpload: X, renderElement: O, renderLeaf: B, editorValue: De, submitPost: Ce, width: L, containerRef: E, setRootRef: V, isPlaceholderVisible: se } }, lu = { container: '_container_ylcfx_1', 'editor-expanded': '_editor-expanded_ylcfx_13', editor: '_editor_ylcfx_13', 'editor-container-expanded': '_editor-container-expanded_ylcfx_37', 'editor-container': '_editor-container_ylcfx_37', 'placeholder-submit-button': '_placeholder-submit-button_ylcfx_55' }, eee = ({ alert: e, allowUploads: t, clearDraft: n, draftKey: r, focusOnLoad: i, forum: o, gifPickerEnabled: a, initialState: u, isEdit: c, lang: f, placeholder: h, thread: g, translations: m, clearAlert: y, onCancel: v, onSubmit: p, setAlert: E }) =>{ const { t: _ } = zn(), { editor: b, hasFocused: x, isDragActive: O, MentionList: B, getInputProps: k, getRootProps: P, handleDOMBeforeInput: I, handleOnChange: Y, handleOnFocus: j, handleOnKeyDown: X, openUpload: $, renderElement: U, renderLeaf: T, editorValue: G, submitPost: se, width: re, containerRef: V, setRootRef: te, isPlaceholderVisible: le } = ZZ({ clearDraft: n, draftKey: r, focusOnLoad: i, forum: o, initialState: u, isEdit: c, lang: f, thread: g, translations: m, onSubmit: p, setAlert: E }); return W('div', { className: lu.container, ...t ? P() : { }, ref: te, children: Ve(rM, { editor: b, initialValue: G, onChange: Y, children: [ Ve('div', { className: x ? lu['editor-container-expanded'] : lu['editor-container'], ref: V, children: [ h && le && W(yW, { placeholder: h }), W(KL, { onDrop: ce=>ce.preventDefault(), className: x ? lu['editor-expanded'] : lu.editor, renderElement: U, onDOMBeforeInput: I, renderLeaf: T, spellCheck: !0, autoFocus: i, onFocus: j, onKeyDown: X }), (e == null ? void 0 : e.message) && W(dM, { clearAlert: y, ...e }), x ? Ve(DW, { width: re, editor: b, submitPost: se, isEdit: c, onCancel: v, uploadButton: t && W(QU, { title: _('Upload Images'), open: $ }), gifPickerButton: a && W(hH, { forum: o }), children: [ W(ec, { format: 'bold', title: _('Bold') }), W(ec, { format: 'italic', title: _('Italic') }), W(ec, { format: 'underline', title: _('Underline') }), W(ec, { format: 'strikethrough', title: _('Strikethrough') }), W(RU, { }), W(ZU, { }), W(ec, { format: 'code', title: _('Code') }), W(WM, { format: 'block-quote', title: _('Quote') }), W(LW, { }) ] }) : W('button', { className: lu['placeholder-submit-button'], onClick: se, 'aria-hidden': 'true', type: 'button', children: _('Comment') }) ] }), t && W(pH, { isDragActive: O, getInputProps: k }), B ] }) }) }, tee = () =>{ const e = Cm(), t = c6.use.init(); D.useEffect(() =>{ t() }, [ ]), window.loadTextEditor = (n, r, i) =>{ if (n) return i || (i = Em(n)), i.render(W(OE, { client: e, children: W(eee, { ...r }) })), i } }; function yy(e, t) { const [n, r] = D.useState(!1), i = D.useRef(null); return D.useEffect(() =>{ i.current = new IntersectionObserver(([o]) =>r(o.isIntersecting), t) }, [ ]), D.useEffect(() =>{ var o; return e.current && ((o = i.current) == null || o.observe(e.current)), () =>{ var a; return (a = i.current) == null ? void 0 : a.disconnect() } }, [ ]), n } const nee = (e, t, n) =>{ const r = D.useRef(new ResizeObserver(t)), i = e && 'current' in e ? e.current : e; return D.useLayoutEffect(() =>{ var o; return i && ((o = r.current) == null || o.observe(i, n)), () =>{ var a; return (a = r.current) == null ? void 0 : a.disconnect() } }, [ i, r ]), r.current }, ree = (e, t) =>{ const [n, r] = D.useState(tr.getItem(e)), i = D.useCallback(o=>{ typeof o > 'u' || o === null ? (tr.removeItem(e), r(null)) : (tr.setItem(e, o), r(o)) }, [ e ]); return D.useEffect(() =>{ tr.getItem(e) === null && typeof t < 'u' && i(t) }, [ e, t ]), [ n || t, i ] }, iee = { type: 'logger', log(e) { this.output('log', e) }, warn(e) { this.output('warn', e) }, error(e) { this.output('error', e) }, output(e, t) { console && console[e] && console[e].apply(console, t) } }; class ip { constructor(t) { let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }; this.init(t, n) } init(t) { let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }; this.prefix = n.prefix || 'i18next:', this.logger = t || iee, this.options = n, this.debug = n.debug } log() { for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++) n[r] = arguments[r]; return this.forward(n, 'log', '', !0) } warn() { for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++) n[r] = arguments[r]; return this.forward(n, 'warn', '', !0) } error() { for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++) n[r] = arguments[r]; return this.forward(n, 'error', '') } deprecate() { for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++) n[r] = arguments[r]; return this.forward(n, 'warn', 'WARNING DEPRECATED: ', !0) } forward(t, n, r, i) { return i && !this.debug ? null : (typeof t[0] == 'string' && (t[0] = `${ r }${ this.prefix } ${ t[0] }`), this.logger[n](t)) } create(t) { return new ip(this.logger, { prefix: `${ this.prefix }:${ t }:`, ...this.options }) } clone(t) { return t = t || this.options, t.prefix = t.prefix || this.prefix, new ip(this.logger, t) } } var Ci = new ip; class op { constructor() { this.observers = { } } on(t, n) { return t.split(' ').forEach(r=>{ this.observers[r] || (this.observers[r] = new Map); const i = this.observers[r].get(n) || 0; this.observers[r].set(n, i + 1) }), this } off(t, n) { if (this.observers[t]) { if (!n) { delete this.observers[t]; return } this.observers[t].delete(n) } } emit(t) { for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++) r[i - 1] = arguments[i]; this.observers[t] && Array.from(this.observers[t].entries()).forEach(a=>{ let[u, c] = a; for (let f = 0; f < c; f++) u(...r) }), this.observers['*'] && Array.from(this.observers['*'].entries()).forEach(a=>{ let[u, c] = a; for (let f = 0; f < c; f++) u.apply(u, [ t, ...r ]) }) } } function ac() { let e, t; const n = new Promise((r, i) =>{ e = r, t = i }); return n.resolve = e, n.reject = t, n } function _F(e) { return e == null ? '' : '' + e } function oee(e, t, n) { e.forEach(r=>{ t[r] && (n[r] = t[r]) }) } const see = /###/g; function uc(e, t, n) { function r(u) { return u && u.indexOf('###') > - 1 ? u.replace(see, '.') : u } function i() { return !e || typeof e == 'string' } const o = typeof t != 'string' ? t : t.split('.'); let a = 0; for (; a < o.length - 1; ) { if (i()) return { }; const u = r(o[a]); !e[u] && n && (e[u] = new n), Object.prototype.hasOwnProperty.call(e, u) ? e = e[u] : e = { }, ++a } return i() ? { } : { obj: e, k: r(o[a]) } } function CF(e, t, n) { const { obj: r, k: i } = uc(e, t, Object); if (r !== void 0 || t.length === 1) { r[i] = n; return } let o = t[t.length - 1], a = t.slice(0, t.length - 1), u = uc(e, a, Object); for (; u.obj === void 0 && a.length; ) o = `${ a[a.length - 1] }.${ o }`, a = a.slice(0, a.length - 1), u = uc(e, a, Object), u && u.obj && typeof u.obj[`${ u.k }.${ o }`] < 'u' && (u.obj = void 0); u.obj[`${ u.k }.${ o }`] = n } function aee(e, t, n, r) { const { obj: i, k: o } = uc(e, t, Object); i[o] = i[o] || [ ], r && (i[o] = i[o].concat(n)), r || i[o].push(n) } function sp(e, t) { const { obj: n, k: r } = uc(e, t); if (n) return n[r] } function uee(e, t, n) { const r = sp(e, n); return r !== void 0 ? r : sp(t, n) } function EF(e, t, n) { for (const r in t) r !== '__proto__' && r !== 'constructor' && (r in e ? typeof e[r] == 'string' || e[r] instanceof String || typeof t[r] == 'string' || t[r] instanceof String ? n && (e[r] = t[r]) : EF(e[r], t[r], n) : e[r] = t[r]); return e } function cu(e) { return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&') } var lee = { '&': '&', '<': '<', '>': '>', '"': '"', '\'': ''', '/': '/' }; function cee(e) { return typeof e == 'string' ? e.replace(/[&<>"'\/]/g, t=>lee[t]) : e } class fee { constructor(t) { this.capacity = t, this.regExpMap = new Map, this.regExpQueue = [ ] } getRegExp(t) { const n = this.regExpMap.get(t); if (n !== void 0) return n; const r = new RegExp(t); return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(t, r), this.regExpQueue.push(t), r } } const dee = [ ' ', ',', '?', '!', ';' ], hee = new fee(20); function pee(e, t, n) { t = t || '', n = n || ''; const r = dee.filter(a=>t.indexOf(a) < 0 && n.indexOf(a) < 0); if (r.length === 0) return !0; const i = hee.getRegExp(`(${ r.map(a=>a === '?' ? '\\?' : a).join('|') })`); let o = !i.test(e); if (!o) { const a = e.indexOf(n); a > 0 && !i.test(e.substring(0, a)) && (o = !0) } return o } function wy(e, t) { let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : '.'; if (!e) return; if (e[t]) return e[t]; const r = t.split(n); let i = e; for (let o = 0; o < r.length; ) { if (!i || typeof i != 'object') return; let a, u = ''; for (let c = o; c < r.length; ++c) if (c !== o && (u += n), u += r[c], a = i[u], a !== void 0) { if (['string', 'number', 'boolean'].indexOf(typeof a) > - 1 && c < r.length - 1) continue; o += c - o + 1; break } i = a } return i } function ap(e) { return e && e.indexOf('_') > 0 ? e.replace('_', '-') : e } class DF extends op { constructor(t) { let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { ns: [ 'translation' ], defaultNS: 'translation' }; super (), this.data = t || { }, this.options = n, this.options.keySeparator === void 0 && (this.options.keySeparator = '.'), this.options.ignoreJSONStructure === void 0 && (this.options.ignoreJSONStructure = !0) } addNamespaces(t) { this.options.ns.indexOf(t) < 0 && this.options.ns.push(t) } removeNamespaces(t) { const n = this.options.ns.indexOf(t); n > - 1 && this.options.ns.splice(n, 1) } getResource(t, n, r) { let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : { }; const o = i.keySeparator !== void 0 ? i.keySeparator : this.options.keySeparator, a = i.ignoreJSONStructure !== void 0 ? i.ignoreJSONStructure : this.options.ignoreJSONStructure; let u; t.indexOf('.') > - 1 ? u = t.split('.') : (u = [ t, n ], r && (Array.isArray(r) ? u.push(...r) : typeof r == 'string' && o ? u.push(...r.split(o)) : u.push(r))); const c = sp(this.data, u); return !c && !n && !r && t.indexOf('.') > - 1 && (t = u[0], n = u[1], r = u.slice(2).join('.')), c || !a || typeof r != 'string' ? c : wy(this.data && this.data[t] && this.data[t][n], r, o) } addResource(t, n, r, i) { let o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : { silent: !1 }; const a = o.keySeparator !== void 0 ? o.keySeparator : this.options.keySeparator; let u = [ t, n ]; r && (u = u.concat(a ? r.split(a) : r)), t.indexOf('.') > - 1 && (u = t.split('.'), i = n, n = u[1]), this.addNamespaces(n), CF(this.data, u, i), o.silent || this.emit('added', t, n, r, i) } addResources(t, n, r) { let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : { silent: !1 }; for (const o in r) (typeof r[o] == 'string' || Object.prototype.toString.apply(r[o]) === '[object Array]') && this.addResource(t, n, o, r[o], { silent: !0 }); i.silent || this.emit('added', t, n, r) } addResourceBundle(t, n, r, i, o) { let a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : { silent: !1, skipCopy: !1 }, u = [ t, n ]; t.indexOf('.') > - 1 && (u = t.split('.'), i = r, r = n, n = u[1]), this.addNamespaces(n); let c = sp(this.data, u) || { }; a.skipCopy || (r = JSON.parse(JSON.stringify(r))), i ? EF(c, r, o) : c = { ...c, ...r }, CF(this.data, u, c), a.silent || this.emit('added', t, n, r) } removeResourceBundle(t, n) { this.hasResourceBundle(t, n) && delete this.data[t][n], this.removeNamespaces(n), this.emit('removed', t, n) } hasResourceBundle(t, n) { return this.getResource(t, n) !== void 0 } getResourceBundle(t, n) { return n || (n = this.options.defaultNS), this.options.compatibilityAPI === 'v1' ? { ...this.getResource(t, n) } : this.getResource(t, n) } getDataByLanguage(t) { return this.data[t] } hasLanguageSomeTranslations(t) { const n = this.getDataByLanguage(t); return !!(n && Object.keys(n) || [ ]).find(i=>n[i] && Object.keys(n[i]).length > 0) } toJSON() { return this.data } } var xF = { processors: { }, addPostProcessor(e) { this.processors[e.name] = e }, handle(e, t, n, r, i) { return e.forEach(o=>{ this.processors[o] && (t = this.processors[o].process(t, n, r, i)) }), t } }; const AF = { }; class up extends op { constructor(t) { let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }; super (), oee(['resourceStore', 'languageUtils', 'pluralResolver', 'interpolator', 'backendConnector', 'i18nFormat', 'utils'], t, this), this.options = n, this.options.keySeparator === void 0 && (this.options.keySeparator = '.'), this.logger = Ci.create('translator') } changeLanguage(t) { t && (this.language = t) } exists(t) { let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { interpolation: { } }; if (t == null) return !1; const r = this.resolve(t, n); return r && r.res !== void 0 } extractFromKey(t, n) { let r = n.nsSeparator !== void 0 ? n.nsSeparator : this.options.nsSeparator; r === void 0 && (r = ':'); const i = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator; let o = n.ns || this.options.defaultNS || [ ]; const a = r && t.indexOf(r) > - 1, u = !this.options.userDefinedKeySeparator && !n.keySeparator && !this.options.userDefinedNsSeparator && !n.nsSeparator && !pee(t, r, i); if (a && !u) { const c = t.match(this.interpolator.nestingRegexp); if (c && c.length > 0) return { key: t, namespaces: o }; const f = t.split(r); (r !== i || r === i && this.options.ns.indexOf(f[0]) > - 1) && (o = f.shift()), t = f.join(i) } return typeof o == 'string' && (o = [ o ]), { key: t, namespaces: o } } translate(t, n, r) { if (typeof n != 'object' && this.options.overloadTranslationOptionHandler && (n = this.options.overloadTranslationOptionHandler(arguments)), typeof n == 'object' && (n = { ...n }), n || (n = { }), t == null) return ''; Array.isArray(t) || (t = [ String(t) ]); const i = n.returnDetails !== void 0 ? n.returnDetails : this.options.returnDetails, o = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator, { key: a, namespaces: u } = this.extractFromKey(t[t.length - 1], n), c = u[u.length - 1], f = n.lng || this.language, h = n.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode; if (f && f.toLowerCase() === 'cimode') { if (h) { const O = n.nsSeparator || this.options.nsSeparator; return i ? { res: `${ c }${ O }${ a }`, usedKey: a, exactUsedKey: a, usedLng: f, usedNS: c, usedParams: this.getUsedParamsDetails(n) } : `${ c }${ O }${ a }` } return i ? { res: a, usedKey: a, exactUsedKey: a, usedLng: f, usedNS: c, usedParams: this.getUsedParamsDetails(n) } : a } const g = this.resolve(t, n); let m = g && g.res; const y = g && g.usedKey || a, v = g && g.exactUsedKey || a, p = Object.prototype.toString.apply(m), E = [ '[object Number]', '[object Function]', '[object RegExp]' ], _ = n.joinArrays !== void 0 ? n.joinArrays : this.options.joinArrays, b = !this.i18nFormat || this.i18nFormat.handleAsObject; if (b && m && (typeof m != 'string' && typeof m != 'boolean' && typeof m != 'number') && E.indexOf(p) < 0 && !(typeof _ == 'string' && p === '[object Array]')) { if (!n.returnObjects && !this.options.returnObjects) { this.options.returnedObjectHandler || this.logger.warn('accessing an object - but returnObjects options is not enabled!'); const O = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(y, m, { ...n, ns: u }) : `key '${ a } (${ this.language })' returned an object instead of string.`; return i ? (g.res = O, g.usedParams = this.getUsedParamsDetails(n), g) : O } if (o) { const O = p === '[object Array]', B = O ? [ ] : { }, k = O ? v : y; for (const P in m) if (Object.prototype.hasOwnProperty.call(m, P)) { const I = `${ k }${ o }${ P }`; B[P] = this.translate(I, { ...n, joinArrays: !1, ns: u }), B[P] === I && (B[P] = m[P]) } m = B } } else if (b && typeof _ == 'string' && p === '[object Array]') m = m.join(_), m && (m = this.extendTranslation(m, t, n, r)); else { let O = !1, B = !1; const k = n.count !== void 0 && typeof n.count != 'string', P = up.hasDefaultValue(n), I = k ? this.pluralResolver.getSuffix(f, n.count, n) : '', Y = n.ordinal && k ? this.pluralResolver.getSuffix(f, n.count, { ordinal: !1 }) : '', j = k && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), X = j && n[`defaultValue${ this.options.pluralSeparator }zero`] || n[`defaultValue${ I }`] || n[`defaultValue${ Y }`] || n.defaultValue; !this.isValidLookup(m) && P && (O = !0, m = X), this.isValidLookup(m) || (B = !0, m = a); const U = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && B ? void 0 : m, T = P && X !== m && this.options.updateMissing; if (B || O || T) { if (this.logger.log(T ? 'updateKey' : 'missingKey', f, c, a, T ? X : m), o) { const V = this.resolve(a, { ...n, keySeparator: !1 }); V && V.res && this.logger.warn('Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.') } let G = [ ]; const se = this.languageUtils.getFallbackCodes(this.options.fallbackLng, n.lng || this.language); if (this.options.saveMissingTo === 'fallback' && se && se[0]) for (let V = 0; V < se.length; V++) G.push(se[V]); else this.options.saveMissingTo === 'all' ? G = this.languageUtils.toResolveHierarchy(n.lng || this.language) : G.push(n.lng || this.language); const re = (V, te, le) =>{ const ce = P && le !== m ? le : U; this.options.missingKeyHandler ? this.options.missingKeyHandler(V, c, te, ce, T, n) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(V, c, te, ce, T, n), this.emit('missingKey', V, c, te, m) }; this.options.saveMissing && (this.options.saveMissingPlurals && k ? G.forEach(V=>{ const te = this.pluralResolver.getSuffixes(V, n); j && n[`defaultValue${ this.options.pluralSeparator }zero`] && te.indexOf(`${ this.options.pluralSeparator }zero`) < 0 && te.push(`${ this.options.pluralSeparator }zero`), te.forEach(le=>{ re([V], a + le, n[`defaultValue${ le }`] || X) }) }) : re(G, a, X)) } m = this.extendTranslation(m, t, n, g, r), B && m === a && this.options.appendNamespaceToMissingKey && (m = `${ c }:${ a }`), (B || O) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== 'v1' ? m = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${ c }:${ a }` : a, O ? m : void 0) : m = this.options.parseMissingKeyHandler(m)) } return i ? (g.res = m, g.usedParams = this.getUsedParamsDetails(n), g) : m } extendTranslation(t, n, r, i, o) { var a = this; if (this.i18nFormat && this.i18nFormat.parse) t = this.i18nFormat.parse(t, { ...this.options.interpolation.defaultVariables, ...r }, r.lng || this.language || i.usedLng, i.usedNS, i.usedKey, { resolved: i }); else if (!r.skipInterpolation) { r.interpolation && this.interpolator.init({ ...r, interpolation: { ...this.options.interpolation, ...r.interpolation } }); const f = typeof t == 'string' && (r && r.interpolation && r.interpolation.skipOnVariables !== void 0 ? r.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables); let h; if (f) { const m = t.match(this.interpolator.nestingRegexp); h = m && m.length } let g = r.replace && typeof r.replace != 'string' ? r.replace : r; if (this.options.interpolation.defaultVariables && (g = { ...this.options.interpolation.defaultVariables, ...g }), t = this.interpolator.interpolate(t, g, r.lng || this.language, r), f) { const m = t.match(this.interpolator.nestingRegexp), y = m && m.length; h < y && (r.nest = !1) } !r.lng && this.options.compatibilityAPI !== 'v1' && i && i.res && (r.lng = i.usedLng), r.nest !== !1 && (t = this.interpolator.nest(t, function () { for (var m = arguments.length, y = new Array(m), v = 0; v < m; v++) y[v] = arguments[v]; return o && o[0] === y[0] && !r.context ? (a.logger.warn(`It seems you are nesting recursively key: ${ y[0] } in key: ${ n[0] }`), null) : a.translate(...y, n) }, r)), r.interpolation && this.interpolator.reset() } const u = r.postProcess || this.options.postProcess, c = typeof u == 'string' ? [ u ] : u; return t != null && c && c.length && r.applyPostProcessor !== !1 && (t = xF.handle(c, t, n, this.options && this.options.postProcessPassResolved ? { i18nResolved: { ...i, usedParams: this.getUsedParamsDetails(r) }, ...r } : r, this)), t } resolve(t) { let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }, r, i, o, a, u; return typeof t == 'string' && (t = [ t ]), t.forEach(c=>{ if (this.isValidLookup(r)) return; const f = this.extractFromKey(c, n), h = f.key; i = h; let g = f.namespaces; this.options.fallbackNS && (g = g.concat(this.options.fallbackNS)); const m = n.count !== void 0 && typeof n.count != 'string', y = m && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), v = n.context !== void 0 && (typeof n.context == 'string' || typeof n.context == 'number') && n.context !== '', p = n.lngs ? n.lngs : this.languageUtils.toResolveHierarchy(n.lng || this.language, n.fallbackLng); g.forEach(E=>{ this.isValidLookup(r) || (u = E, !AF[`${ p[0] }-${ E }`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(u) && (AF[`${ p[0] }-${ E }`] = !0, this.logger.warn(`key "${ i }" for languages "${ p.join(', ') }" won't get resolved as namespace "${ u }" was not yet loaded`, 'This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!')), p.forEach(_=>{ if (this.isValidLookup(r)) return; a = _; const b = [ h ]; if (this.i18nFormat && this.i18nFormat.addLookupKeys) this.i18nFormat.addLookupKeys(b, h, _, E, n); else { let O; m && (O = this.pluralResolver.getSuffix(_, n.count, n)); const B = `${ this.options.pluralSeparator }zero`, k = `${ this.options.pluralSeparator }ordinal${ this.options.pluralSeparator }`; if (m && (b.push(h + O), n.ordinal && O.indexOf(k) === 0 && b.push(h + O.replace(k, this.options.pluralSeparator)), y && b.push(h + B)), v) { const P = `${ h }${ this.options.contextSeparator }${ n.context }`; b.push(P), m && (b.push(P + O), n.ordinal && O.indexOf(k) === 0 && b.push(P + O.replace(k, this.options.pluralSeparator)), y && b.push(P + B)) } } let x; for (; x = b.pop(); ) this.isValidLookup(r) || (o = x, r = this.getResource(_, E, x, n)) })) }) }), { res: r, usedKey: i, exactUsedKey: o, usedLng: a, usedNS: u } } isValidLookup(t) { return t !== void 0 && !(!this.options.returnNull && t === null) && !(!this.options.returnEmptyString && t === '') } getResource(t, n, r) { let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : { }; return this.i18nFormat && this.i18nFormat.getResource ? this.i18nFormat.getResource(t, n, r, i) : this.resourceStore.getResource(t, n, r, i) } getUsedParamsDetails() { let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : { }; const n = [ 'defaultValue', 'ordinal', 'context', 'replace', 'lng', 'lngs', 'fallbackLng', 'ns', 'keySeparator', 'nsSeparator', 'returnObjects', 'returnDetails', 'joinArrays', 'postProcess', 'interpolation' ], r = t.replace && typeof t.replace != 'string'; let i = r ? t.replace : t; if (r && typeof t.count < 'u' && (i.count = t.count), this.options.interpolation.defaultVariables && (i = { ...this.options.interpolation.defaultVariables, ...i }), !r) { i = { ...i }; for (const o of n) delete i[o] } return i } static hasDefaultValue(t) { const n = 'defaultValue'; for (const r in t) if (Object.prototype.hasOwnProperty.call(t, r) && n === r.substring(0, n.length) && t[r] !== void 0) return !0; return !1 } } function by(e) { return e.charAt(0).toUpperCase() + e.slice(1) } class SF { constructor(t) { this.options = t, this.supportedLngs = this.options.supportedLngs || !1, this.logger = Ci.create('languageUtils') } getScriptPartFromCode(t) { if (t = ap(t), !t || t.indexOf('-') < 0) return null; const n = t.split('-'); return n.length === 2 || (n.pop(), n[n.length - 1].toLowerCase() === 'x') ? null : this.formatLanguageCode(n.join('-')) } getLanguagePartFromCode(t) { if (t = ap(t), !t || t.indexOf('-') < 0) return t; const n = t.split('-'); return this.formatLanguageCode(n[0]) } formatLanguageCode(t) { if (typeof t == 'string' && t.indexOf('-') > - 1) { const n = [ 'hans', 'hant', 'latn', 'cyrl', 'cans', 'mong', 'arab' ]; let r = t.split('-'); return this.options.lowerCaseLng ? r = r.map(i=>i.toLowerCase()) : r.length === 2 ? (r[0] = r[0].toLowerCase(), r[1] = r[1].toUpperCase(), n.indexOf(r[1].toLowerCase()) > - 1 && (r[1] = by(r[1].toLowerCase()))) : r.length === 3 && (r[0] = r[0].toLowerCase(), r[1].length === 2 && (r[1] = r[1].toUpperCase()), r[0] !== 'sgn' && r[2].length === 2 && (r[2] = r[2].toUpperCase()), n.indexOf(r[1].toLowerCase()) > - 1 && (r[1] = by(r[1].toLowerCase())), n.indexOf(r[2].toLowerCase()) > - 1 && (r[2] = by(r[2].toLowerCase()))), r.join('-') } return this.options.cleanCode || this.options.lowerCaseLng ? t.toLowerCase() : t } isSupportedCode(t) { return (this.options.load === 'languageOnly' || this.options.nonExplicitSupportedLngs) && (t = this.getLanguagePartFromCode(t)), !this.supportedLngs || !this.supportedLngs.length || this.supportedLngs.indexOf(t) > - 1 } getBestMatchFromCodes(t) { if (!t) return null; let n; return t.forEach(r=>{ if (n) return; const i = this.formatLanguageCode(r); (!this.options.supportedLngs || this.isSupportedCode(i)) && (n = i) }), !n && this.options.supportedLngs && t.forEach(r=>{ if (n) return; const i = this.getLanguagePartFromCode(r); if (this.isSupportedCode(i)) return n = i; n = this.options.supportedLngs.find(o=>{ if (o === i) return o; if (!(o.indexOf('-') < 0 && i.indexOf('-') < 0) && (o.indexOf('-') > 0 && i.indexOf('-') < 0 && o.substring(0, o.indexOf('-')) === i || o.indexOf(i) === 0 && i.length > 1)) return o }) }), n || (n = this.getFallbackCodes(this.options.fallbackLng) [0]), n } getFallbackCodes(t, n) { if (!t) return []; if (typeof t == 'function' && (t = t(n)), typeof t == 'string' && (t = [ t ]), Object.prototype.toString.apply(t) === '[object Array]') return t; if (!n) return t.default || [ ]; let r = t[n]; return r || (r = t[this.getScriptPartFromCode(n)]), r || (r = t[this.formatLanguageCode(n)]), r || (r = t[this.getLanguagePartFromCode(n)]), r || (r = t.default), r || [ ] } toResolveHierarchy(t, n) { const r = this.getFallbackCodes(n || this.options.fallbackLng || [ ], t), i = [ ], o = a=>{ a && (this.isSupportedCode(a) ? i.push(a) : this.logger.warn(`rejecting language code not found in supportedLngs: ${ a }`)) }; return typeof t == 'string' && (t.indexOf('-') > - 1 || t.indexOf('_') > - 1) ? (this.options.load !== 'languageOnly' && o(this.formatLanguageCode(t)), this.options.load !== 'languageOnly' && this.options.load !== 'currentOnly' && o(this.getScriptPartFromCode(t)), this.options.load !== 'currentOnly' && o(this.getLanguagePartFromCode(t))) : typeof t == 'string' && o(this.formatLanguageCode(t)), r.forEach(a=>{ i.indexOf(a) < 0 && o(this.formatLanguageCode(a)) }), i } } let gee = [ { lngs: [ 'ach', 'ak', 'am', 'arn', 'br', 'fil', 'gun', 'ln', 'mfe', 'mg', 'mi', 'oc', 'pt', 'pt-BR', 'tg', 'tl', 'ti', 'tr', 'uz', 'wa' ], nr: [ 1, 2 ], fc: 1 }, { lngs: [ 'af', 'an', 'ast', 'az', 'bg', 'bn', 'ca', 'da', 'de', 'dev', 'el', 'en', 'eo', 'es', 'et', 'eu', 'fi', 'fo', 'fur', 'fy', 'gl', 'gu', 'ha', 'hi', 'hu', 'hy', 'ia', 'it', 'kk', 'kn', 'ku', 'lb', 'mai', 'ml', 'mn', 'mr', 'nah', 'nap', 'nb', 'ne', 'nl', 'nn', 'no', 'nso', 'pa', 'pap', 'pms', 'ps', 'pt-PT', 'rm', 'sco', 'se', 'si', 'so', 'son', 'sq', 'sv', 'sw', 'ta', 'te', 'tk', 'ur', 'yo' ], nr: [ 1, 2 ], fc: 2 }, { lngs: [ 'ay', 'bo', 'cgg', 'fa', 'ht', 'id', 'ja', 'jbo', 'ka', 'km', 'ko', 'ky', 'lo', 'ms', 'sah', 'su', 'th', 'tt', 'ug', 'vi', 'wo', 'zh' ], nr: [ 1 ], fc: 3 }, { lngs: [ 'be', 'bs', 'cnr', 'dz', 'hr', 'ru', 'sr', 'uk' ], nr: [ 1, 2, 5 ], fc: 4 }, { lngs: [ 'ar' ], nr: [ 0, 1, 2, 3, 11, 100 ], fc: 5 }, { lngs: [ 'cs', 'sk' ], nr: [ 1, 2, 5 ], fc: 6 }, { lngs: [ 'csb', 'pl' ], nr: [ 1, 2, 5 ], fc: 7 }, { lngs: [ 'cy' ], nr: [ 1, 2, 3, 8 ], fc: 8 }, { lngs: [ 'fr' ], nr: [ 1, 2 ], fc: 9 }, { lngs: [ 'ga' ], nr: [ 1, 2, 3, 7, 11 ], fc: 10 }, { lngs: [ 'gd' ], nr: [ 1, 2, 3, 20 ], fc: 11 }, { lngs: [ 'is' ], nr: [ 1, 2 ], fc: 12 }, { lngs: [ 'jv' ], nr: [ 0, 1 ], fc: 13 }, { lngs: [ 'kw' ], nr: [ 1, 2, 3, 4 ], fc: 14 }, { lngs: [ 'lt' ], nr: [ 1, 2, 10 ], fc: 15 }, { lngs: [ 'lv' ], nr: [ 1, 2, 0 ], fc: 16 }, { lngs: [ 'mk' ], nr: [ 1, 2 ], fc: 17 }, { lngs: [ 'mnk' ], nr: [ 0, 1, 2 ], fc: 18 }, { lngs: [ 'mt' ], nr: [ 1, 2, 11, 20 ], fc: 19 }, { lngs: [ 'or' ], nr: [ 2, 1 ], fc: 2 }, { lngs: [ 'ro' ], nr: [ 1, 2, 20 ], fc: 20 }, { lngs: [ 'sl' ], nr: [ 5, 1, 2, 3 ], fc: 21 }, { lngs: [ 'he', 'iw' ], nr: [ 1, 2, 20, 21 ], fc: 22 } ], mee = { 1: function (e) { return + (e > 1) }, 2: function (e) { return + (e != 1) }, 3: function (e) { return 0 }, 4: function (e) { return e % 10 == 1 && e % 100 != 11 ? 0 : e % 10 >= 2 && e % 10 <= 4 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2 }, 5: function (e) { return e == 0 ? 0 : e == 1 ? 1 : e == 2 ? 2 : e % 100 >= 3 && e % 100 <= 10 ? 3 : e % 100 >= 11 ? 4 : 5 }, 6: function (e) { return e == 1 ? 0 : e >= 2 && e <= 4 ? 1 : 2 }, 7: function (e) { return e == 1 ? 0 : e % 10 >= 2 && e % 10 <= 4 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2 }, 8: function (e) { return e == 1 ? 0 : e == 2 ? 1 : e != 8 && e != 11 ? 2 : 3 }, 9: function (e) { return + (e >= 2) }, 10: function (e) { return e == 1 ? 0 : e == 2 ? 1 : e < 7 ? 2 : e < 11 ? 3 : 4 }, 11: function (e) { return e == 1 || e == 11 ? 0 : e == 2 || e == 12 ? 1 : e > 2 && e < 20 ? 2 : 3 }, 12: function (e) { return + (e % 10 != 1 || e % 100 == 11) }, 13: function (e) { return + (e !== 0) }, 14: function (e) { return e == 1 ? 0 : e == 2 ? 1 : e == 3 ? 2 : 3 }, 15: function (e) { return e % 10 == 1 && e % 100 != 11 ? 0 : e % 10 >= 2 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2 }, 16: function (e) { return e % 10 == 1 && e % 100 != 11 ? 0 : e !== 0 ? 1 : 2 }, 17: function (e) { return e == 1 || e % 10 == 1 && e % 100 != 11 ? 0 : 1 }, 18: function (e) { return e == 0 ? 0 : e == 1 ? 1 : 2 }, 19: function (e) { return e == 1 ? 0 : e == 0 || e % 100 > 1 && e % 100 < 11 ? 1 : e % 100 > 10 && e % 100 < 20 ? 2 : 3 }, 20: function (e) { return e == 1 ? 0 : e == 0 || e % 100 > 0 && e % 100 < 20 ? 1 : 2 }, 21: function (e) { return e % 100 == 1 ? 1 : e % 100 == 2 ? 2 : e % 100 == 3 || e % 100 == 4 ? 3 : 0 }, 22: function (e) { return e == 1 ? 0 : e == 2 ? 1 : (e < 0 || e > 10) && e % 10 == 0 ? 2 : 3 } }; const vee = [ 'v1', 'v2', 'v3' ], yee = [ 'v4' ], OF = { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 }; function wee() { const e = { }; return gee.forEach(t=>{ t.lngs.forEach(n=>{ e[n] = { numbers: t.nr, plurals: mee[t.fc] } }) }), e } class bee { constructor(t) { let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }; this.languageUtils = t, this.options = n, this.logger = Ci.create('pluralResolver'), (!this.options.compatibilityJSON || yee.includes(this.options.compatibilityJSON)) && (typeof Intl > 'u' || !Intl.PluralRules) && (this.options.compatibilityJSON = 'v3', this.logger.error('Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.')), this.rules = wee() } addRule(t, n) { this.rules[t] = n } getRule(t) { let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }; if (this.shouldUseIntlApi()) try { return new Intl.PluralRules(ap(t === 'dev' ? 'en' : t), { type: n.ordinal ? 'ordinal' : 'cardinal' }) } catch { return } return this.rules[t] || this.rules[this.languageUtils.getLanguagePartFromCode(t)] } needsPlural(t) { let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }; const r = this.getRule(t, n); return this.shouldUseIntlApi() ? r && r.resolvedOptions().pluralCategories.length > 1 : r && r.numbers.length > 1 } getPluralFormsOfKey(t, n) { let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { }; return this.getSuffixes(t, r).map(i=>`${ n }${ i }`) } getSuffixes(t) { let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }; const r = this.getRule(t, n); return r ? this.shouldUseIntlApi() ? r.resolvedOptions().pluralCategories.sort((i, o) =>OF[i] - OF[o]).map(i=>`${ this.options.prepend }${ n.ordinal ? `ordinal${ this.options.prepend }` : '' }${ i }`) : r.numbers.map(i=>this.getSuffix(t, i, n)) : [ ] } getSuffix(t, n) { let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { }; const i = this.getRule(t, r); return i ? this.shouldUseIntlApi() ? `${ this.options.prepend }${ r.ordinal ? `ordinal${ this.options.prepend }` : '' }${ i.select(n) }` : this.getSuffixRetroCompatible(i, n) : (this.logger.warn(`no plural rule found for: ${ t }`), '') } getSuffixRetroCompatible(t, n) { const r = t.noAbs ? t.plurals(n) : t.plurals(Math.abs(n)); let i = t.numbers[r]; this.options.simplifyPluralSuffix && t.numbers.length === 2 && t.numbers[0] === 1 && (i === 2 ? i = 'plural' : i === 1 && (i = '')); const o = () =>this.options.prepend && i.toString() ? this.options.prepend + i.toString() : i.toString(); return this.options.compatibilityJSON === 'v1' ? i === 1 ? '' : typeof i == 'number' ? `_plural_${ i.toString() }` : o() : this.options.compatibilityJSON === 'v2' || this.options.simplifyPluralSuffix && t.numbers.length === 2 && t.numbers[0] === 1 ? o() : this.options.prepend && r.toString() ? this.options.prepend + r.toString() : r.toString() } shouldUseIntlApi() { return !vee.includes(this.options.compatibilityJSON) } } function FF(e, t, n) { let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : '.', i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, o = uee(e, t, n); return !o && i && typeof n == 'string' && (o = wy(e, n, r), o === void 0 && (o = wy(t, n, r))), o } class _ee { constructor() { let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : { }; this.logger = Ci.create('interpolator'), this.options = t, this.format = t.interpolation && t.interpolation.format || (n=>n), this.init(t) } init() { let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : { }; t.interpolation || (t.interpolation = { escapeValue: !0 }); const n = t.interpolation; this.escape = n.escape !== void 0 ? n.escape : cee, this.escapeValue = n.escapeValue !== void 0 ? n.escapeValue : !0, this.useRawValueToEscape = n.useRawValueToEscape !== void 0 ? n.useRawValueToEscape : !1, this.prefix = n.prefix ? cu(n.prefix) : n.prefixEscaped || '{{', this.suffix = n.suffix ? cu(n.suffix) : n.suffixEscaped || '}}', this.formatSeparator = n.formatSeparator ? n.formatSeparator : n.formatSeparator || ',', this.unescapePrefix = n.unescapeSuffix ? '' : n.unescapePrefix || '-', this.unescapeSuffix = this.unescapePrefix ? '' : n.unescapeSuffix || '', this.nestingPrefix = n.nestingPrefix ? cu(n.nestingPrefix) : n.nestingPrefixEscaped || cu('$t('), this.nestingSuffix = n.nestingSuffix ? cu(n.nestingSuffix) : n.nestingSuffixEscaped || cu(')'), this.nestingOptionsSeparator = n.nestingOptionsSeparator ? n.nestingOptionsSeparator : n.nestingOptionsSeparator || ',', this.maxReplaces = n.maxReplaces ? n.maxReplaces : 1000, this.alwaysFormat = n.alwaysFormat !== void 0 ? n.alwaysFormat : !1, this.resetRegExp() } reset() { this.options && this.init(this.options) } resetRegExp() { const t = (n, r) =>n && n.source === r ? (n.lastIndex = 0, n) : new RegExp(r, 'g'); this.regexp = t(this.regexp, `${ this.prefix }(.+?)${ this.suffix }`), this.regexpUnescape = t(this.regexpUnescape, `${ this.prefix }${ this.unescapePrefix }(.+?)${ this.unescapeSuffix }${ this.suffix }`), this.nestingRegexp = t(this.nestingRegexp, `${ this.nestingPrefix }(.+?)${ this.nestingSuffix }`) } interpolate(t, n, r, i) { let o, a, u; const c = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || { }; function f(v) { return v.replace(/\$/g, '$$$$') } const h = v=>{ if (v.indexOf(this.formatSeparator) < 0) { const b = FF(n, c, v, this.options.keySeparator, this.options.ignoreJSONStructure); return this.alwaysFormat ? this.format(b, void 0, r, { ...i, ...n, interpolationkey: v }) : b } const p = v.split(this.formatSeparator), E = p.shift().trim(), _ = p.join(this.formatSeparator).trim(); return this.format(FF(n, c, E, this.options.keySeparator, this.options.ignoreJSONStructure), _, r, { ...i, ...n, interpolationkey: E }) }; this.resetRegExp(); const g = i && i.missingInterpolationHandler || this.options.missingInterpolationHandler, m = i && i.interpolation && i.interpolation.skipOnVariables !== void 0 ? i.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables; return [{ regex: this.regexpUnescape, safeValue: v=>f(v) }, { regex: this.regexp, safeValue: v=>this.escapeValue ? f(this.escape(v)) : f(v) } ].forEach(v=>{ for (u = 0; o = v.regex.exec(t); ) { const p = o[1].trim(); if (a = h(p), a === void 0) if (typeof g == 'function') { const _ = g(t, o, i); a = typeof _ == 'string' ? _ : '' } else if (i && Object.prototype.hasOwnProperty.call(i, p)) a = ''; else if (m) { a = o[0]; continue } else this.logger.warn(`missed to pass in variable ${ p } for interpolating ${ t }`), a = ''; else typeof a != 'string' && !this.useRawValueToEscape && (a = _F(a)); const E = v.safeValue(a); if (t = t.replace(o[0], E), m ? (v.regex.lastIndex += a.length, v.regex.lastIndex -= o[0].length) : v.regex.lastIndex = 0, u++, u >= this.maxReplaces) break } }), t } nest(t, n) { let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { }, i, o, a; function u(c, f) { const h = this.nestingOptionsSeparator; if (c.indexOf(h) < 0) return c; const g = c.split(new RegExp(`${ h }[ ]*{`)); let m = `{${ g[1] }`; c = g[0], m = this.interpolate(m, a); const y = m.match(/'/g), v = m.match(/"/g); (y && y.length % 2 === 0 && !v || v.length % 2 !== 0) && (m = m.replace(/'/g, '"')); try { a = JSON.parse(m), f && (a = { ...f, ...a }) } catch (p) { return this.logger.warn(`failed parsing options string in nesting for key ${ c }`, p), `${ c }${ h }${ m }` } return delete a.defaultValue, c } for (; i = this.nestingRegexp.exec(t); ) { let c = [ ]; a = { ...r }, a = a.replace && typeof a.replace != 'string' ? a.replace : a, a.applyPostProcessor = !1, delete a.defaultValue; let f = !1; if (i[0].indexOf(this.formatSeparator) !== - 1 && !/{.*}/.test(i[1])) { const h = i[1].split(this.formatSeparator).map(g=>g.trim()); i[1] = h.shift(), c = h, f = !0 } if (o = n(u.call(this, i[1].trim(), a), a), o && i[0] === t && typeof o != 'string') return o; typeof o != 'string' && (o = _F(o)), o || (this.logger.warn(`missed to resolve ${ i[1] } for nesting ${ t }`), o = ''), f && (o = c.reduce((h, g) =>this.format(h, g, r.lng, { ...r, interpolationkey: i[1].trim() }), o.trim())), t = t.replace(i[0], o), this.regexp.lastIndex = 0 } return t } } function Cee(e) { let t = e.toLowerCase().trim(); const n = { }; if (e.indexOf('(') > - 1) { const r = e.split('('); t = r[0].toLowerCase().trim(); const i = r[1].substring(0, r[1].length - 1); t === 'currency' && i.indexOf(':') < 0 ? n.currency || (n.currency = i.trim()) : t === 'relativetime' && i.indexOf(':') < 0 ? n.range || (n.range = i.trim()) : i.split(';').forEach(a=>{ if (!a) return; const [u, ...c] = a.split(':'), f = c.join(':').trim().replace(/^'+|'+$/g, ''); n[u.trim()] || (n[u.trim()] = f), f === 'false' && (n[u.trim()] = !1), f === 'true' && (n[u.trim()] = !0), isNaN(f) || (n[u.trim()] = parseInt(f, 10)) }) } return { formatName: t, formatOptions: n } } function fu(e) { const t = { }; return function (r, i, o) { const a = i + JSON.stringify(o); let u = t[a]; return u || (u = e(ap(i), o), t[a] = u), u(r) } } class Eee { constructor() { let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : { }; this.logger = Ci.create('formatter'), this.options = t, this.formats = { number: fu((n, r) =>{ const i = new Intl.NumberFormat(n, { ...r }); return o=>i.format(o) }), currency: fu((n, r) =>{ const i = new Intl.NumberFormat(n, { ...r, style: 'currency' }); return o=>i.format(o) }), datetime: fu((n, r) =>{ const i = new Intl.DateTimeFormat(n, { ...r }); return o=>i.format(o) }), relativetime: fu((n, r) =>{ const i = new Intl.RelativeTimeFormat(n, { ...r }); return o=>i.format(o, r.range || 'day') }), list: fu((n, r) =>{ const i = new Intl.ListFormat(n, { ...r }); return o=>i.format(o) }) }, this.init(t) } init(t) { const r = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { interpolation: { } }).interpolation; this.formatSeparator = r.formatSeparator ? r.formatSeparator : r.formatSeparator || ',' } add(t, n) { this.formats[t.toLowerCase().trim()] = n } addCached(t, n) { this.formats[t.toLowerCase().trim()] = fu(n) } format(t, n, r) { let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : { }; return n.split(this.formatSeparator).reduce((u, c) =>{ const { formatName: f, formatOptions: h } = Cee(c); if (this.formats[f]) { let g = u; try { const m = i && i.formatParams && i.formatParams[i.interpolationkey] || { }, y = m.locale || m.lng || i.locale || i.lng || r; g = this.formats[f](u, y, { ...h, ...i, ...m }) } catch (m) { this.logger.warn(m) } return g } else this.logger.warn(`there was no format function for ${ f }`); return u }, t) } } function Dee(e, t) { e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--) } class xee extends op { constructor(t, n, r) { let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : { }; super (), this.backend = t, this.store = n, this.services = r, this.languageUtils = r.languageUtils, this.options = i, this.logger = Ci.create('backendConnector'), this.waitingReads = [ ], this.maxParallelReads = i.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = i.maxRetries >= 0 ? i.maxRetries : 5, this.retryTimeout = i.retryTimeout >= 1 ? i.retryTimeout : 350, this.state = { }, this.queue = [ ], this.backend && this.backend.init && this.backend.init(r, i.backend, i) } queueLoad(t, n, r, i) { const o = { }, a = { }, u = { }, c = { }; return t.forEach(f=>{ let h = !0; n.forEach(g=>{ const m = `${ f }|${ g }`; !r.reload && this.store.hasResourceBundle(f, g) ? this.state[m] = 2 : this.state[m] < 0 || (this.state[m] === 1 ? a[m] === void 0 && (a[m] = !0) : (this.state[m] = 1, h = !1, a[m] === void 0 && (a[m] = !0), o[m] === void 0 && (o[m] = !0), c[g] === void 0 && (c[g] = !0))) }), h || (u[f] = !0) }), (Object.keys(o).length || Object.keys(a).length) && this.queue.push({ pending: a, pendingCount: Object.keys(a).length, loaded: { }, errors: [ ], callback: i }), { toLoad: Object.keys(o), pending: Object.keys(a), toLoadLanguages: Object.keys(u), toLoadNamespaces: Object.keys(c) } } loaded(t, n, r) { const i = t.split('|'), o = i[0], a = i[1]; n && this.emit('failedLoading', o, a, n), r && this.store.addResourceBundle(o, a, r, void 0, void 0, { skipCopy: !0 }), this.state[t] = n ? - 1 : 2; const u = { }; this.queue.forEach(c=>{ aee(c.loaded, [ o ], a), Dee(c, t), n && c.errors.push(n), c.pendingCount === 0 && !c.done && (Object.keys(c.loaded).forEach(f=>{ u[f] || (u[f] = { }); const h = c.loaded[f]; h.length && h.forEach(g=>{ u[f][g] === void 0 && (u[f][g] = !0) }) }), c.done = !0, c.errors.length ? c.callback(c.errors) : c.callback()) }), this.emit('loaded', u), this.queue = this.queue.filter(c=>!c.done) } read(t, n, r) { let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : this.retryTimeout, a = arguments.length > 5 ? arguments[5] : void 0; if (!t.length) return a(null, { }); if (this.readingCalls >= this.maxParallelReads) { this.waitingReads.push({ lng: t, ns: n, fcName: r, tried: i, wait: o, callback: a }); return } this.readingCalls++; const u = (f, h) =>{ if (this.readingCalls--, this.waitingReads.length > 0) { const g = this.waitingReads.shift(); this.read(g.lng, g.ns, g.fcName, g.tried, g.wait, g.callback) } if (f && h && i < this.maxRetries) { setTimeout(() =>{ this.read.call(this, t, n, r, i + 1, o * 2, a) }, o); return } a(f, h) }, c = this.backend[r].bind(this.backend); if (c.length === 2) { try { const f = c(t, n); f && typeof f.then == 'function' ? f.then(h=>u(null, h)).catch(u) : u(null, f) } catch (f) { u(f) } return } return c(t, n, u) } prepareLoading(t, n) { let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { }, i = arguments.length > 3 ? arguments[3] : void 0; if (!this.backend) return this.logger.warn('No backend was added via i18next.use. Will not load resources.'), i && i(); typeof t == 'string' && (t = this.languageUtils.toResolveHierarchy(t)), typeof n == 'string' && (n = [ n ]); const o = this.queueLoad(t, n, r, i); if (!o.toLoad.length) return o.pending.length || i(), null; o.toLoad.forEach(a=>{ this.loadOne(a) }) } load(t, n, r) { this.prepareLoading(t, n, { }, r) } reload(t, n, r) { this.prepareLoading(t, n, { reload: !0 }, r) } loadOne(t) { let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ''; const r = t.split('|'), i = r[0], o = r[1]; this.read(i, o, 'read', void 0, void 0, (a, u) =>{ a && this.logger.warn(`${ n }loading namespace ${ o } for language ${ i } failed`, a), !a && u && this.logger.log(`${ n }loaded namespace ${ o } for language ${ i }`, u), this.loaded(t, a, u) }) } saveMissing(t, n, r, i, o) { let a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : { }, u = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : () =>{ }; if (this.services.utils && this.services.utils.hasLoadedNamespace && !this.services.utils.hasLoadedNamespace(n)) { this.logger.warn(`did not save key "${ r }" as the namespace "${ n }" was not yet loaded`, 'This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!'); return } if (!(r == null || r === '')) { if (this.backend && this.backend.create) { const c = { ...a, isUpdate: o }, f = this.backend.create.bind(this.backend); if (f.length < 6) try { let h; f.length === 5 ? h = f(t, n, r, i, c) : h = f(t, n, r, i), h && typeof h.then == 'function' ? h.then(g=>u(null, g)).catch(u) : u(null, h) } catch (h) { u(h) } else f(t, n, r, i, u, c) } !t || !t[0] || this.store.addResource(t[0], n, r, i) } } } function BF() { return { debug: !1, initImmediate: !0, ns: [ 'translation' ], defaultNS: [ 'translation' ], fallbackLng: [ 'dev' ], fallbackNS: !1, supportedLngs: !1, nonExplicitSupportedLngs: !1, load: 'all', preload: !1, simplifyPluralSuffix: !0, keySeparator: '.', nsSeparator: ':', pluralSeparator: '_', contextSeparator: '_', partialBundledLanguages: !1, saveMissing: !1, updateMissing: !1, saveMissingTo: 'fallback', saveMissingPlurals: !0, missingKeyHandler: !1, missingInterpolationHandler: !1, postProcess: !1, postProcessPassResolved: !1, returnNull: !1, returnEmptyString: !0, returnObjects: !1, joinArrays: !1, returnedObjectHandler: !1, parseMissingKeyHandler: !1, appendNamespaceToMissingKey: !1, appendNamespaceToCIMode: !1, overloadTranslationOptionHandler: function (t) { let n = { }; if (typeof t[1] == 'object' && (n = t[1]), typeof t[1] == 'string' && (n.defaultValue = t[1]), typeof t[2] == 'string' && (n.tDescription = t[2]), typeof t[2] == 'object' || typeof t[3] == 'object') { const r = t[3] || t[2]; Object.keys(r).forEach(i=>{ n[i] = r[i] }) } return n }, interpolation: { escapeValue: !0, format: e=>e, prefix: '{{', suffix: '}}', formatSeparator: ',', unescapePrefix: '-', nestingPrefix: '$t(', nestingSuffix: ')', nestingOptionsSeparator: ',', maxReplaces: 1000, skipOnVariables: !0 } } } function kF(e) { return typeof e.ns == 'string' && (e.ns = [ e.ns ]), typeof e.fallbackLng == 'string' && (e.fallbackLng = [ e.fallbackLng ]), typeof e.fallbackNS == 'string' && (e.fallbackNS = [ e.fallbackNS ]), e.supportedLngs && e.supportedLngs.indexOf('cimode') < 0 && (e.supportedLngs = e.supportedLngs.concat(['cimode'])), e } function lp() { } function Aee(e) { Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{ typeof e[n] == 'function' && (e[n] = e[n].bind(e)) }) } class lc extends op { constructor() { let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : { }, n = arguments.length > 1 ? arguments[1] : void 0; if (super (), this.options = kF(t), this.services = { }, this.logger = Ci, this.modules = { external: [ ] }, Aee(this), n && !this.isInitialized && !t.isClone) { if (!this.options.initImmediate) return this.init(t, n), this; setTimeout(() =>{ this.init(t, n) }, 0) } } init() { var t = this; let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : { }, r = arguments.length > 1 ? arguments[1] : void 0; this.isInitializing = !0, typeof n == 'function' && (r = n, n = { }), !n.defaultNS && n.defaultNS !== !1 && n.ns && (typeof n.ns == 'string' ? n.defaultNS = n.ns : n.ns.indexOf('translation') < 0 && (n.defaultNS = n.ns[0])); const i = BF(); this.options = { ...i, ...this.options, ...kF(n) }, this.options.compatibilityAPI !== 'v1' && (this.options.interpolation = { ...i.interpolation, ...this.options.interpolation }), n.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = n.keySeparator), n.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = n.nsSeparator); function o(h) { return h ? typeof h == 'function' ? new h : h : null } if (!this.options.isClone) { this.modules.logger ? Ci.init(o(this.modules.logger), this.options) : Ci.init(null, this.options); let h; this.modules.formatter ? h = this.modules.formatter : typeof Intl < 'u' && (h = Eee); const g = new SF(this.options); this.store = new DF(this.options.resources, this.options); const m = this.services; m.logger = Ci, m.resourceStore = this.store, m.languageUtils = g, m.pluralResolver = new bee(g, { prepend: this.options.pluralSeparator, compatibilityJSON: this.options.compatibilityJSON, simplifyPluralSuffix: this.options.simplifyPluralSuffix }), h && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (m.formatter = o(h), m.formatter.init(m, this.options), this.options.interpolation.format = m.formatter.format.bind(m.formatter)), m.interpolator = new _ee(this.options), m.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, m.backendConnector = new xee(o(this.modules.backend), m.resourceStore, m, this.options), m.backendConnector.on('*', function (y) { for (var v = arguments.length, p = new Array(v > 1 ? v - 1 : 0), E = 1; E < v; E++) p[E - 1] = arguments[E]; t.emit(y, ...p) }), this.modules.languageDetector && (m.languageDetector = o(this.modules.languageDetector), m.languageDetector.init && m.languageDetector.init(m, this.options.detection, this.options)), this.modules.i18nFormat && (m.i18nFormat = o(this.modules.i18nFormat), m.i18nFormat.init && m.i18nFormat.init(this)), this.translator = new up(this.services, this.options), this.translator.on('*', function (y) { for (var v = arguments.length, p = new Array(v > 1 ? v - 1 : 0), E = 1; E < v; E++) p[E - 1] = arguments[E]; t.emit(y, ...p) }), this.modules.external.forEach(y=>{ y.init && y.init(this) }) } if (this.format = this.options.interpolation.format, r || (r = lp), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) { const h = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng); h.length > 0 && h[0] !== 'dev' && (this.options.lng = h[0]) } !this.services.languageDetector && !this.options.lng && this.logger.warn('init: no languageDetector is used and no lng is defined'), [ 'getResource', 'hasResourceBundle', 'getResourceBundle', 'getDataByLanguage' ].forEach(h=>{ this[h] = function () { return t.store[h](...arguments) } }), [ 'addResource', 'addResources', 'addResourceBundle', 'removeResourceBundle' ].forEach(h=>{ this[h] = function () { return t.store[h](...arguments), t } }); const c = ac(), f = () =>{ const h = (g, m) =>{ this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn('init: i18next is already initialized. You should call init just once!'), this.isInitialized = !0, this.options.isClone || this.logger.log('initialized', this.options), this.emit('initialized', this.options), c.resolve(m), r(g, m) }; if (this.languages && this.options.compatibilityAPI !== 'v1' && !this.isInitialized) return h(null, this.t.bind(this)); this.changeLanguage(this.options.lng, h) }; return this.options.resources || !this.options.initImmediate ? f() : setTimeout(f, 0), c } loadResources(t) { let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : lp; const i = typeof t == 'string' ? t : this.language; if (typeof t == 'function' && (r = t), !this.options.resources || this.options.partialBundledLanguages) { if (i && i.toLowerCase() === 'cimode' && (!this.options.preload || this.options.preload.length === 0)) return r(); const o = [ ], a = u=>{ if (!u || u === 'cimode') return; this.services.languageUtils.toResolveHierarchy(u).forEach(f=>{ f !== 'cimode' && o.indexOf(f) < 0 && o.push(f) }) }; i ? a(i) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>a(c)), this.options.preload && this.options.preload.forEach(u=>a(u)), this.services.backendConnector.load(o, this.options.ns, u=>{ !u && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), r(u) }) } else r(null) } reloadResources(t, n, r) { const i = ac(); return t || (t = this.languages), n || (n = this.options.ns), r || (r = lp), this.services.backendConnector.reload(t, n, o=>{ i.resolve(), r(o) }), i } use(t) { if (!t) throw new Error('You are passing an undefined module! Please check the object you are passing to i18next.use()'); if (!t.type) throw new Error('You are passing a wrong module! Please check the object you are passing to i18next.use()'); return t.type === 'backend' && (this.modules.backend = t), (t.type === 'logger' || t.log && t.warn && t.error) && (this.modules.logger = t), t.type === 'languageDetector' && (this.modules.languageDetector = t), t.type === 'i18nFormat' && (this.modules.i18nFormat = t), t.type === 'postProcessor' && xF.addPostProcessor(t), t.type === 'formatter' && (this.modules.formatter = t), t.type === '3rdParty' && this.modules.external.push(t), this } setResolvedLanguage(t) { if (!(!t || !this.languages) && !(['cimode', 'dev'].indexOf(t) > - 1)) for (let n = 0; n < this.languages.length; n++) { const r = this.languages[n]; if (!(['cimode', 'dev'].indexOf(r) > - 1) && this.store.hasLanguageSomeTranslations(r)) { this.resolvedLanguage = r; break } } } changeLanguage(t, n) { var r = this; this.isLanguageChangingTo = t; const i = ac(); this.emit('languageChanging', t); const o = c=>{ this.language = c, this.languages = this.services.languageUtils.toResolveHierarchy(c), this.resolvedLanguage = void 0, this.setResolvedLanguage(c) }, a = (c, f) =>{ f ? (o(f), this.translator.changeLanguage(f), this.isLanguageChangingTo = void 0, this.emit('languageChanged', f), this.logger.log('languageChanged', f)) : this.isLanguageChangingTo = void 0, i.resolve(function () { return r.t(...arguments) }), n && n(c, function () { return r.t(...arguments) }) }, u = c=>{ !t && !c && this.services.languageDetector && (c = [ ]); const f = typeof c == 'string' ? c : this.services.languageUtils.getBestMatchFromCodes(c); f && (this.language || o(f), this.translator.language || this.translator.changeLanguage(f), this.services.languageDetector && this.services.languageDetector.cacheUserLanguage && this.services.languageDetector.cacheUserLanguage(f)), this.loadResources(f, h=>{ a(h, f) }) }; return !t && this.services.languageDetector && !this.services.languageDetector.async ? u(this.services.languageDetector.detect()) : !t && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(u) : this.services.languageDetector.detect(u) : u(t), i } getFixedT(t, n, r) { var i = this; const o = function (a, u) { let c; if (typeof u != 'object') { for (var f = arguments.length, h = new Array(f > 2 ? f - 2 : 0), g = 2; g < f; g++) h[g - 2] = arguments[g]; c = i.options.overloadTranslationOptionHandler([a, u].concat(h)) } else c = { ...u }; c.lng = c.lng || o.lng, c.lngs = c.lngs || o.lngs, c.ns = c.ns || o.ns, c.keyPrefix = c.keyPrefix || r || o.keyPrefix; const m = i.options.keySeparator || '.'; let y; return c.keyPrefix && Array.isArray(a) ? y = a.map(v=>`${ c.keyPrefix }${ m }${ v }`) : y = c.keyPrefix ? `${ c.keyPrefix }${ m }${ a }` : a, i.t(y, c) }; return typeof t == 'string' ? o.lng = t : o.lngs = t, o.ns = n, o.keyPrefix = r, o } t() { return this.translator && this.translator.translate(...arguments) } exists() { return this.translator && this.translator.exists(...arguments) } setDefaultNamespace(t) { this.options.defaultNS = t } hasLoadedNamespace(t) { let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { }; if (!this.isInitialized) return this.logger.warn('hasLoadedNamespace: i18next was not initialized', this.languages), !1; if (!this.languages || !this.languages.length) return this.logger.warn('hasLoadedNamespace: i18n.languages were undefined or empty', this.languages), !1; const r = n.lng || this.resolvedLanguage || this.languages[0], i = this.options ? this.options.fallbackLng : !1, o = this.languages[this.languages.length - 1]; if (r.toLowerCase() === 'cimode') return !0; const a = (u, c) =>{ const f = this.services.backendConnector.state[`${ u }|${ c }`]; return f === - 1 || f === 2 }; if (n.precheck) { const u = n.precheck(this, a); if (u !== void 0) return u } return !!(this.hasResourceBundle(r, t) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a(r, t) && (!i || a(o, t))) } loadNamespaces(t, n) { const r = ac(); return this.options.ns ? (typeof t == 'string' && (t = [ t ]), t.forEach(i=>{ this.options.ns.indexOf(i) < 0 && this.options.ns.push(i) }), this.loadResources(i=>{ r.resolve(), n && n(i) }), r) : (n && n(), Promise.resolve()) } loadLanguages(t, n) { const r = ac(); typeof t == 'string' && (t = [ t ]); const i = this.options.preload || [ ], o = t.filter(a=>i.indexOf(a) < 0); return o.length ? (this.options.preload = i.concat(o), this.loadResources(a=>{ r.resolve(), n && n(a) }), r) : (n && n(), Promise.resolve()) } dir(t) { if (t || (t = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !t) return 'rtl'; const n = [ 'ar', 'shu', 'sqr', 'ssh', 'xaa', 'yhd', 'yud', 'aao', 'abh', 'abv', 'acm', 'acq', 'acw', 'acx', 'acy', 'adf', 'ads', 'aeb', 'aec', 'afb', 'ajp', 'apc', 'apd', 'arb', 'arq', 'ars', 'ary', 'arz', 'auz', 'avl', 'ayh', 'ayl', 'ayn', 'ayp', 'bbz', 'pga', 'he', 'iw', 'ps', 'pbt', 'pbu', 'pst', 'prp', 'prd', 'ug', 'ur', 'ydd', 'yds', 'yih', 'ji', 'yi', 'hbo', 'men', 'xmn', 'fa', 'jpr', 'peo', 'pes', 'prs', 'dv', 'sam', 'ckb' ], r = this.services && this.services.languageUtils || new SF(BF()); return n.indexOf(r.getLanguagePartFromCode(t)) > - 1 || t.toLowerCase().indexOf('-arab') > 1 ? 'rtl' : 'ltr' } static createInstance() { let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : { }, n = arguments.length > 1 ? arguments[1] : void 0; return new lc(t, n) } cloneInstance() { let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : { }, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : lp; const r = t.forkResourceStore; r && delete t.forkResourceStore; const i = { ...this.options, ...t, isClone: !0 }, o = new lc(i); return (t.debug !== void 0 || t.prefix !== void 0) && (o.logger = o.logger.clone(t)), [ 'store', 'services', 'language' ].forEach(u=>{ o[u] = this[u] }), o.services = { ...this.services }, o.services.utils = { hasLoadedNamespace: o.hasLoadedNamespace.bind(o) }, r && (o.store = new DF(this.store.data, i), o.services.resourceStore = o.store), o.translator = new up(o.services, i), o.translator.on('*', function (u) { for (var c = arguments.length, f = new Array(c > 1 ? c - 1 : 0), h = 1; h < c; h++) f[h - 1] = arguments[h]; o.emit(u, ...f) }), o.init(i, n), o.translator.options = i, o.translator.backendConnector.services.utils = { hasLoadedNamespace: o.hasLoadedNamespace.bind(o) }, o } toJSON() { return { options: this.options, store: this.store, language: this.language, languages: this.languages, resolvedLanguage: this.resolvedLanguage } } } const Cn = lc.createInstance(); Cn.createInstance = lc.createInstance, Cn.createInstance, Cn.dir, Cn.init, Cn.loadResources, Cn.reloadResources, Cn.use, Cn.changeLanguage, Cn.getFixedT, Cn.t, Cn.exists, Cn.setDefaultNamespace, Cn.hasLoadedNamespace, Cn.loadNamespaces, Cn.loadLanguages, Cn.use(_6).init({ fallbackLng: 'en', ns: NE, interpolation: { escapeValue: !1, prefix: '%(', suffix: ')s' } }); const See = Object.freeze(Object.defineProperty({ __proto__: null, default: () =>(tee(), W(Qs, { })) }, Symbol.toStringTag, { value: 'Module' })) }) (); // https://c.disquscdn.com/embedv2/latest/embedv2.js