@snf/access-qa-bot 2.7.3 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,223 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("react-dom/client"),n=require("react/jsx-runtime"),r=require("react-dom/server");function o(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var i=o(e);function A(){return A=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A.apply(null,arguments)}function a(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}a('.rcb-chat-header-container{border-bottom:1px solid #ccc;color:#fff;display:flex;justify-content:space-between;max-height:55px;padding:12px}.rcb-chat-header{display:flex;flex-direction:row}.rcb-bot-avatar{background-size:cover;border-radius:50%;height:30px;margin-right:12px;width:30px}.rcb-message-prompt-container.visible{align-items:center;animation:rcb-animation-pop-in .3s ease-in-out;bottom:0;display:flex;justify-content:center;margin:auto;opacity:1;pointer-events:auto;position:sticky}.rcb-message-prompt-container.hidden{height:0;opacity:0;pointer-events:none;visibility:hidden}.rcb-message-prompt-text{background-color:#fff;border:.5px solid #adadad;border-radius:20px;color:#adadad;cursor:pointer;font-size:12px;padding:6px 12px;transition:color .3s ease,border-color .3s ease;z-index:9999}.rcb-message-prompt-container.hidden .rcb-message-prompt-text{padding:0}.rcb-user-message-container{display:flex;flex-direction:row;justify-content:right}.rcb-user-message{border-radius:22px;font-size:15px;height:fit-content;margin-right:16px;margin-top:8px;min-height:20px;overflow:auto;overflow-wrap:anywhere;padding:12px 16px;text-align:right;white-space:pre-wrap;width:fit-content}.rcb-user-message-offset{margin-right:50px}.rcb-user-message-entry{animation:rcb-animation-user-message-entry .3s ease-in backwards}.rcb-message-user-avatar{background-size:cover;border-radius:50%;height:40px;margin-left:-10px;margin-right:6px;margin-top:9px;width:40px}.rcb-bot-message-container{display:flex;flex-direction:row}.rcb-bot-message{border-radius:22px;font-size:15px;height:fit-content;margin-left:16px;margin-top:8px;min-height:20px;overflow:auto;overflow-wrap:anywhere;padding:12px 16px;text-align:left;white-space:pre-wrap;width:fit-content}.rcb-bot-message-offset{margin-left:50px}.rcb-bot-message-entry{animation:rcb-animation-bot-message-entry .3s ease-in backwards}.rcb-message-bot-avatar{background-size:cover;border-radius:50%;height:40px;margin-left:6px;margin-right:-10px;margin-top:9px;width:40px}.rcb-typing-indicator{align-items:center;display:flex}.rcb-dot{animation:rcb-animation-bot-typing 1s infinite;background-color:#ccc;border-radius:50%;height:8px;margin-right:4px;width:8px}.rcb-dot:nth-child(2){animation-delay:.2s}.rcb-dot:nth-child(3){animation-delay:.4s}.rcb-chat-body-container{height:100%;overflow-x:hidden;overflow-y:scroll;padding-bottom:16px;position:relative;touch-action:pan-y;width:100%}.rcb-chat-body-container::-webkit-scrollbar-track{background-color:#f1f1f1}.rcb-chat-body-container::-webkit-scrollbar-thumb{background-color:#ddd;border-radius:4px}.rcb-chat-body-container::-webkit-scrollbar-thumb:hover{background-color:#cfcfcf}.rcb-chat-body-container::-webkit-scrollbar-corner{background-color:#f1f1f1}.rcb-checkbox-container{display:flex;flex-wrap:wrap;gap:10px;margin-left:16px;padding-top:12px}.rcb-checkbox-offset{margin-left:50px!important}.rcb-checkbox-row-container{align-items:center;animation:rcb-animations-checkboxes-entry .5s ease-out;background-color:#fff;border-radius:10px;border-style:solid;border-width:.5px;cursor:pointer;display:flex;gap:5px;max-height:32px;min-height:30px;overflow:hidden;width:80%}.rcb-checkbox-row-container:hover{box-shadow:0 0 5px #0003}.rcb-checkbox-row{align-items:center;cursor:pointer;display:inline-flex;margin-left:10px}.rcb-checkbox-mark{align-items:center;background-color:#f2f2f2;border:none;border-radius:50%;cursor:pointer;display:flex;height:20px;justify-content:center;margin-right:10px;transition:all .3s ease;width:20px}.rcb-checkbox-mark:hover{background-color:#c2c2c2}.rcb-checkbox-mark:before{content:"✓";transition:all .3s ease}.rcb-checkbox-label{font-size:14px}.rcb-checkbox-next-button{align-items:center;animation:rcb-animations-checkboxes-entry .5s ease-out;background-color:#fff;border-radius:10px;border-style:solid;border-width:.5px;cursor:pointer;display:inline-block;font-size:24px;max-height:32px;min-height:30px;text-align:center;width:80%}.rcb-checkbox-next-button:before{content:"→"}.rcb-checkbox-next-button:hover{box-shadow:0 0 5px #0003}.rcb-options-container{display:flex;flex-wrap:wrap;gap:10px;margin-left:16px;max-width:70%;padding-top:12px}.rcb-options-offset{margin-left:50px!important}.rcb-options{align-items:center;animation:rcb-animation-options-entry .5s ease-out;border-radius:20px;border-style:solid;border-width:.5px;cursor:pointer;display:inline-flex;font-size:14px;justify-content:center;overflow:hidden;padding:10px 20px;transition:background-color .3s ease}.rcb-options:hover{box-shadow:0 0 5px #0003}.rcb-line-break-container{align-items:center;display:flex;justify-content:center;max-height:45px;padding-bottom:5px;padding-top:10px}.rcb-line-break-text{color:#adadad;font-size:12px;padding:6px 12px}.rcb-spinner-container{align-items:center;display:flex;justify-content:center;max-height:45px;min-height:35px;padding-bottom:5px;padding-top:10px}.rcb-spinner{animation:rcb-animation-spin 1s linear infinite;border:4px solid #f3f3f3;border-radius:50%;height:22px;width:22px}.rcb-chat-input{align-items:center;background-color:#fff;border-top:1px solid #ccc;display:flex;padding:8px 16px}.rcb-chat-input::placeholder{color:#999}.rcb-chat-input-textarea{background-color:#fff;border:none;border-radius:4px;color:#000;flex:1;font-family:inherit;font-size:16px;height:auto;min-height:38px;outline:none;overflow-y:scroll;padding:8px;resize:none;touch-action:none}.rcb-chat-input-textarea::-webkit-scrollbar,.rcb-chat-input-textarea::-webkit-scrollbar-thumb{background-color:initial}.rcb-chat-input-textarea::-webkit-scrollbar-thumb:hover{background-color:initial}.rcb-chat-input-char-counter{font-size:14px;margin-left:8px;margin-top:3px}.rcb-chat-footer-container{align-items:flex-end;background-color:#f2f2f2;border-top:1px solid #ccc;color:#000;display:flex;font-size:12px;justify-content:space-between;max-height:55px;padding:12px 16px 8px 10px}.rcb-chat-footer,.rcb-toggle-button{display:flex;flex-direction:row}.rcb-toggle-button{border:none;border-radius:50%;bottom:20px;box-shadow:0 2px 4px #0003;cursor:pointer;height:75px;position:fixed;right:20px;width:75px;z-index:9999}.rcb-toggle-button.rcb-button-hide{animation:rcb-animation-collapse .3s ease-in-out forwards;opacity:0;visibility:hidden}.rcb-toggle-button.rcb-button-show{animation:rcb-animation-expand .3s ease-in-out forwards;opacity:1;visibility:visible}.rcb-toggle-icon{background-position:50%;background-repeat:no-repeat;background-size:cover;border-radius:inherit;height:100%;margin:auto;width:100%}.rcb-badge,.rcb-toggle-icon{align-items:center;display:flex;justify-content:center}.rcb-badge{background-color:red;border-radius:50%;color:#fff;height:25px;position:absolute;right:-6px;top:-6px;width:25px}.rcb-chat-tooltip{border-radius:20px;box-shadow:0 2px 6px #0003;cursor:pointer;font-size:20px;padding:16px;position:fixed;transition:transform .3s ease;white-space:nowrap;z-index:9999}.rcb-chat-tooltip-tail{border-style:solid;border-width:10px 0 10px 10px;content:"";margin-top:-10px;position:absolute;right:-10px;top:50%}.rcb-chat-tooltip.rcb-tooltip-hide{animation:rcb-animation-tooltip-out .5s ease-in-out;opacity:0;visibility:hidden}.rcb-chat-tooltip.rcb-tooltip-show{animation:rcb-animation-tooltip-in .5s ease-in-out;opacity:1;visibility:visible}.rcb-toast-prompt{animation:rcb-animation-pop-in .3s ease-in-out;background-color:#fff;border:.5px solid #7a7a7a;border-radius:5px;color:#7a7a7a;cursor:pointer;font-size:12px;margin-top:6px;padding:6px 12px;text-align:center;transition:color .3s ease,border-color .3s ease;width:100%;z-index:9999}.rcb-toast-prompt-container{align-items:center;animation:popIn .3s ease-in-out;bottom:0;display:flex;flex-direction:column;justify-content:flex-end;left:50%;margin:200 auto auto;opacity:1;pointer-events:auto;position:absolute;transform:translate(-50%)}.rcb-media-display-image-container,.rcb-media-display-video-container{border-radius:22px;margin-right:16px;margin-top:8px;padding:16px;width:fit-content}.rcb-media-display-offset{margin-right:50px!important}.rcb-media-display-image{border-radius:22px;height:auto;object-fit:cover;width:100%}.rcb-media-display-video{background-color:#000;border-radius:22px;height:auto;width:100%}.rcb-media-display-audio{border-radius:22px;height:auto;margin-right:16px;margin-top:8px;width:100%}.rcb-media-entry{animation:rcb-animation-user-message-entry .3s ease-in backwards}.rcb-attach-button-disabled,.rcb-attach-button-enabled{background-size:cover;border-radius:6px;display:inline-block;height:30px;position:relative;text-align:center;width:30px}.rcb-attach-button-disabled input[type=file],.rcb-attach-button-enabled input[type=file]{display:none;height:100%;position:absolute;width:100%}.rcb-attach-button-enabled{cursor:pointer}.rcb-attach-button-disabled{opacity:.5}.rcb-attach-button-enabled:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-attach-button-enabled:hover:after{height:130%;opacity:1;width:130%}.rcb-attach-icon-disabled,.rcb-attach-icon-enabled{background-repeat:no-repeat;background-size:cover;display:inline-block;height:24px;margin-top:2px;transition:background-image .3s ease;width:24px}.rcb-attach-icon-enabled{cursor:pointer}.rcb-emoji-button-disabled,.rcb-emoji-button-enabled{background-size:cover;border-radius:6px;cursor:pointer;display:inline-block;height:30px;position:relative;text-align:center;width:30px}.rcb-emoji-icon-disabled,.rcb-emoji-icon-enabled{background-repeat:no-repeat;background-size:cover;display:inline-block;font-size:20px;height:24px;margin-top:2px;position:relative;width:24px}.rcb-emoji-icon-enabled{cursor:pointer}.rcb-emoji-icon-disabled{opacity:.5}.rcb-emoji-button-enabled:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-emoji-button-enabled:hover:after{height:130%;opacity:1;width:130%}.rcb-emoji-button-popup{background-color:#fff;border:1px solid #ccc;border-radius:4px;box-shadow:0 2px 4px #0003;max-height:200px;overflow-y:auto;padding:8px;position:absolute;transform:translateY(calc(-100% - 30px));width:158px}.rcb-emoji{cursor:pointer;font-size:24px;padding:3px;transition:transform .2s ease-in-out}.rcb-emoji:hover{transform:scale(1.2)}.rcb-audio-icon{background-size:cover;border:none;cursor:pointer;display:inline-block;height:30px;margin-left:5px;position:relative;width:30px}.rcb-audio-icon:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-audio-icon:hover:after{height:130%;opacity:1;width:130%}.rcb-close-chat-icon{background-size:cover;border:none;cursor:pointer;display:inline-block;height:30px;margin-left:5px;position:relative;width:30px}.rcb-close-chat-icon:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-close-chat-icon:hover:after{height:130%;opacity:1;width:130%}.rcb-notification-icon{background-size:cover;border:none;cursor:pointer;display:inline-block;height:30px;margin-left:5px;position:relative;width:30px}.rcb-notification-icon:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-notification-icon:hover:after{height:130%;opacity:1;width:130%}.rcb-voice-button-disabled,.rcb-voice-button-enabled{align-items:center;background-color:#fff;border-radius:4px;box-shadow:0 0 3px #0000004d;cursor:pointer;display:inline-flex;height:32px;justify-content:center;margin-left:8px;text-transform:uppercase;transition:all .3s ease;width:32px}.rcb-voice-button-enabled{border:1px solid red;box-shadow:0 0 3px #ff000080}.rcb-voice-button-enabled:hover{border:1px solid #3d0000}.rcb-voice-button-disabled{border:1px;border-color:#0003;border-style:solid}.rcb-voice-button-disabled:hover{box-shadow:0 0 3px #8a0000}.rcb-voice-icon{background-position:50%;background-repeat:no-repeat;background-size:cover;background-size:contain;height:60%;object-fit:cover;width:60%}.rcb-voice-icon.on{animation:rcb-animation-ping 1s infinite}.rcb-send-button{border:none;border-radius:4px;box-shadow:0 0 3px #0000004d;cursor:pointer;display:inline-flex;height:32px;justify-content:center;margin-left:8px;text-transform:uppercase;transition:background-color .3s ease;width:51px}.rcb-send-icon{background-position:50%;background-repeat:no-repeat;background-size:cover;background-size:contain;height:50%;object-fit:cover;transform:translateY(20%);width:50%}.rcb-view-history-container{align-items:center;display:flex;justify-content:center;max-height:45px;min-height:35px;padding-bottom:5px;padding-top:10px}.rcb-view-history-button{align-items:center;background-color:#fff;border:.5px solid #adadad;border-radius:20px;color:#adadad;cursor:pointer;display:inline-flex;font-size:12px;justify-content:center;max-width:60%;padding:6px 12px;transition:color .3s ease,border-color .3s ease}.rcb-view-history-button>p{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rcb-chatbot-global{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.5;z-index:9999}.rcb-chat-window{background-color:#fff;border-radius:10px;bottom:20px;box-shadow:0 2px 4px #0003;display:flex;flex-direction:column;height:550px;overflow:hidden;position:fixed;right:20px;transition:all .3s ease;width:375px}.rcb-window-embedded .rcb-chat-window{bottom:auto;opacity:1;position:relative;right:auto;visibility:visible}.rcb-window-open .rcb-chat-window{animation:rcb-animation-expand .3s ease-in-out forwards;opacity:1;visibility:visible}.rcb-window-close .rcb-chat-window{animation:rcb-animation-collapse .3s ease-in-out forwards;opacity:0;visibility:hidden}@keyframes rcb-animation-expand{0%{opacity:0;transform:translate(100%,100%) scale(0)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes rcb-animation-collapse{0%{opacity:1;transform:translate(0) scale(1)}to{opacity:0;transform:translate(100%,100%) scale(0)}}@keyframes rcb-animation-ping{0%{filter:brightness(100%);opacity:1}50%{filter:brightness(50%);opacity:.8}}@keyframes rcb-animation-bot-message-entry{0%{opacity:0;transform:translate(-100%,50%) scale(0)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes rcb-animation-user-message-entry{0%{opacity:0;transform:translate(100%,50%) scale(0)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes rcb-animation-bot-typing{0%{opacity:.4}50%{opacity:1}to{opacity:.4}}@keyframes rcb-animation-pop-in{0%{opacity:0;transform:scale(.8)}70%{opacity:1;transform:scale(1.1)}to{transform:scale(1)}}@keyframes rcb-animations-checkboxes-entry{0%{opacity:0;transform:translate(-100%)}to{opacity:1;transform:translate(0)}}@keyframes rcb-animation-options-entry{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes rcb-animation-tooltip-in{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}@keyframes rcb-animation-tooltip-out{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-5px)}}@keyframes rcb-animation-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}',{insertAt:"top"});const s={AUDIO_BUTTON:"audio-button",NOTIFICATION_BUTTON:"notification-button",CLOSE_CHAT_BUTTON:"close-chat-button",SEND_MESSAGE_BUTTON:"send-button",VOICE_MESSAGE_BUTTON:"voice-button",FILE_ATTACHMENT_BUTTON:"file-attachment-button",EMOJI_PICKER_BUTTON:"emoji-button"},l="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20viewBox='0%200%201000%201000'%3e%3crect%20width='100%25'%20height='100%25'%20fill='%23fff'/%3e%3cg%3e%3crect%20width='45'%20height='30'%20x='-22.5'%20y='-15'%20rx='1.5'%20ry='1.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2337547a;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20-99%20362)%20scale(3.4003)'/%3e%3cpath%20d='M0%2075q14%200%2014%2017%200%2016-14%2016Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='rotate(180%20106%20386)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='4'%20x='-12.5'%20y='-2'%20rx='.2'%20ry='.2'%20style='stroke:%2346648c;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20-46%20282)%20scale(3.4003)'/%3e%3cpath%20d='M19%2065h4l5%204v1H14v-1Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='2'%20x='-12.5'%20y='-1'%20rx='.1'%20ry='.1'%20style='stroke:%2398b0ca;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20-3%20240)%20scale(3.4003)'/%3e%3ccircle%20r='7.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(236%20175)%20scale(3.4003)'/%3e%3crect%20width='45'%20height='30'%20x='-22.5'%20y='-15'%20rx='1.5'%20ry='1.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2337547a;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20139%20600)%20scale(3.4003)'/%3e%3cpath%20d='M184%2075q14%200%2014%2017%200%2016-14%2016Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='4'%20x='-12.5'%20y='-2'%20rx='.2'%20ry='.2'%20style='stroke:%2346648c;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20219%20548)%20scale(3.4003)'/%3e%3cpath%20d='M175%2065h4l5%204v1h-14v-1Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='2'%20x='-12.5'%20y='-1'%20rx='.1'%20ry='.1'%20style='stroke:%2398b0ca;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20262%20505)%20scale(3.4003)'/%3e%3ccircle%20r='7.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(767%20175)%20scale(3.4003)'/%3e%3crect%20width='116.7'%20height='70'%20x='-58.4'%20y='-35'%20rx='31.5'%20ry='31.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2371c9fc;fill-rule:nonzero;opacity:1'%20transform='translate(502%20877)%20scale(3.4003)'/%3e%3crect%20width='60'%20height='20'%20x='-30'%20y='-10'%20rx='3'%20ry='3'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2337547a;fill-rule:nonzero;opacity:1'%20transform='translate(502%20728)%20scale(3.4003)'/%3e%3ccircle%20r='75'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2371c9fc;fill-rule:nonzero;opacity:1'%20transform='translate(502%20473)%20scale(3.4003)'/%3e%3crect%20width='129.4'%20height='82.3'%20x='-64.7'%20y='-41.1'%20rx='37'%20ry='37'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23fff;fill-rule:nonzero;opacity:1'%20transform='translate(502%20464)%20scale(3.4003)'/%3e%3crect%20width='108'%20height='68.6'%20x='-54'%20y='-34.3'%20rx='30.9'%20ry='30.9'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23162334;fill-rule:nonzero;opacity:1'%20transform='translate(502%20464)%20scale(3.4003)'/%3e%3ccircle%20r='19.4'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(415%20464)%20scale(3.4003)'/%3e%3ccircle%20r='19.4'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(591%20464)%20scale(3.4003)'/%3e%3crect%20width='96'%20height='53.2'%20x='-48'%20y='-26.6'%20rx='23.9'%20ry='23.9'%20style='stroke:%23162334;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23162334;fill-rule:nonzero;opacity:1'%20transform='translate(503%20875)%20scale(3.4003)'/%3e%3cpath%20stroke-linecap='round'%20d='m68%20215%207-15M81%20222l-7-22M81%20222l7-14M101%20208H87M114%20219l-7-24M113%20219l13-22M131%20214l-5-17M148%20214h-18M69%20214H51M100%20209l7-15'%20style='stroke:%23a478fc;stroke-width:3;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:10;is-custom-font:none;font-file-url:none;fill:none;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3c/g%3e%3c/svg%3e",c=e.forwardRef(((e,t)=>i.createElement("svg",{viewBox:"0 0 637 637",ref:t,...e},i.createElement("path",{d:"m478 113-13 2-4 1h4l14-2c10-2 35-2 42-1l6 3 3 1c3 0-4-3-8-5-7-1-34-1-44 1m56 6 8 6c7 5 20 17 20 19s7 12 8 12l-3-6-4-6c0-3-15-17-25-24-5-3-8-4-4-1m-198 16-9 1a512 512 0 0 1 9-1m-180 30a412 412 0 0 0-23 4 167 167 0 0 0-32 8 439 439 0 0 1 46-9 304 304 0 0 1 11-2l6-1h-8m369 8 4 3-7-6c-1 0 0 2 3 3m-439 9c-7 3-18 13-18 15l6-5c5-5 9-8 14-10l6-4-8 4m442 12-10 11-7 6 7-6c7-5 14-14 13-16l-3 5M65 205l-1 11c0 9 0 10 4 17 5 10 7 12 22 11 10 0 15 0 38-5l5-1-6 1-16 2-21 2c-13 1-16-1-21-10-3-5-4-6-4-15l1-12c1-4 1-5-1-1m335 1c3 0 3 1 3 3l-2 6c-2 5-35 39-76 80-53 51-120 117-138 137-21 24-22 25-22 27 0 3 6 9 9 9 4 0 14-8 38-27a5073 5073 0 0 1 15-16 1421 1421 0 0 0-17 15l-31 25-6 2-4-3c-3-3-3-4-2-6 3-8 79-85 160-163 57-57 79-80 79-86 0-2-3-4-7-4-2 0-2 0 1 1m165 18c-9 17-25 32-57 53l-10 8 16-11 12-8c15-10 27-22 39-39 5-7 6-8 4-8l-4 5m-221 2a199 199 0 0 0-19 10 183 183 0 0 1 27-12c0-1-1-1-8 2m-34 16c-3 3-2 3 2 0l1-2-3 2m151 3-1 2 2-2c3-3 2-3-1 0m-16 12-11 10a281 281 0 0 0 11-10m-24 18-7 5-7 5-42 31c-10 7-24 19-22 19l7-6 16-12a343 343 0 0 0 35-25 573 573 0 0 0 20-17m-187 0-2 2 4-2 3-2-5 2m-14 6-3 2 4-1 4-3-5 2m-7 3-8 4-18 8 18-7 7-3 3-1c1-2 0-2-2-1m254 24a2672 2672 0 0 1-71 54 601 601 0 0 0 39-29 1352 1352 0 0 1 32-25m-291-8-2 2 4-2 3-2-5 2m-13 5-2 2h3c5-3 4-4-1-2m-19 9-7 3-13 6c-10 5-13 7-14 10-3 4-2 5 1 0 2-3 5-5 14-9l13-6 12-6-6 2m178 36c-17 12-21 16-21 17a390 390 0 0 1 20-17m-206 34 1 4 1 3 1 5 2 8 1 5v-6l-1-8-2-5-1-4-1-2c-1-2-1-2-1 0m222 23-9 7a683 683 0 0 0-56 44 261 261 0 0 0-26 20 1345 1345 0 0 0-46 34c-6 3-7 3-19 3-11 0-12 0-18-3-8-4-10-8-17-20l-5-10 4 10c5 10 12 18 19 22 4 2 6 2 17 2 13 0 14 0 21-3l26-19 42-33a2183 2183 0 0 0 43-34 643 643 0 0 1 24-20",fill:"#fff",fillRule:"evenodd"}),i.createElement("path",{d:"M478 114a620 620 0 0 1-39 6l-21 3a5481 5481 0 0 0-19 3 870 870 0 0 1-54 8l-1 1-6 1-12 2-13 2a992 992 0 0 0-76 12 400 400 0 0 1-45 8l-6 1-5 1h-3l-3 1-2 1-26 4-13 2-17 3c-23 5-33 9-43 19-7 8-9 13-9 27 0 8 1 9 4 14 5 9 8 11 21 10l21-2a1133 1133 0 0 1 23-4 659 659 0 0 0 74-14l3-1h3l3-1h3l2-1 2-1h3l2-1h2l24-5 38-7a2100 2100 0 0 1 93-18l3-1 10-1a2082 2082 0 0 1 120-17l2 1c2 0 8 5 8 7l1 2 1 6c0 4 0 6-3 10-2 4-16 16-18 16l-7 5-10 8a1070 1070 0 0 0-11 7 113 113 0 0 1-20 14l-2 2-3 2-2 2h-1a154 154 0 0 1-28 21l-5 4-5 4a573 573 0 0 1-50 37 175 175 0 0 0-24 18l-1 2-2 1-2 1-2 1-1 1-12 10a396 396 0 0 0-32 25l-8 6-6 5-9 7a326 326 0 0 1-25 20l-13 12a5073 5073 0 0 0-17 15c-24 20-34 27-39 27-2 0-8-6-8-9 0-2 1-3 22-27 18-20 85-86 138-137 41-41 74-75 76-80l2-6c0-2 0-3-2-3l-7 1a233 233 0 0 1-26 9l-1 1-1 1h-1l-1 1h-2l-3 2-1 1h-2l-3 2h-1l-5 2-22 10-9 4-4 2-5 2-10 4-2 1-2 1-2 1-13 6a334 334 0 0 1-38 17 75 75 0 0 0-14 6l-5 2-4 1-2 1-3 2-7 3-16 6a247 247 0 0 0-32 14l-1 1h-2l-1 1h-2l-1 1-12 6a103 103 0 0 0-27 15l-2 5-1 1v11l1 5 1 5 1 4c0 3 0 4 2 4v3l1 3 1 2 2 10 1 4 1 5 2 10 2 8 1 4 1 4c3 3 9 25 11 38l1 7v2l1 4v1l1 1v2l1 2 1 3v1l5 10c7 13 9 16 17 20 6 3 7 3 18 3 12 0 13 0 19-3 8-4 11-6 26-18a1345 1345 0 0 1 85-67 683 683 0 0 1 50-39l12-9a513 513 0 0 1 44-33 201 201 0 0 0 22-17 2270 2270 0 0 0 73-54 158 158 0 0 0 58-59c2 0 3-9 4-27l-1-19-1-4-1-6-1-3-4-6-4-6c0-2-6-8-13-14a77 77 0 0 0-28-18c-6-1-34-1-43 1"})))),u=e.forwardRef(((e,t)=>i.createElement("svg",{viewBox:"0 -960 960 960",ref:t,...e},i.createElement("path",{d:"M765-321q0 117-84 196-83 80-200 80-118 0-200-80t-83-196v-392q0-85 61-144 61-58 146-58 86 0 147 58 61 59 61 144v374q0 54-39 92-39 37-93 37-55 0-93-37-38-38-38-92v-372h110v372q0 9 6 14t15 5q8 0 15-5t7-14v-374q0-39-29-66t-68-27q-40 0-69 27t-29 66v392q0 71 51 119t122 48q71 0 122-48t51-119v-426h111v426Z"})))),d=e.forwardRef(((e,t)=>i.createElement("svg",{viewBox:"0 -960 960 960",ref:t,...e},i.createElement("path",{d:"M125-165v-113h77v-273q0-93 55-167 56-75 146-100v-19q0-32 22-55 23-23 55-23t55 23q22 23 22 55v19q90 25 146 99 56 73 56 168v273h77v113H125ZM480-32q-38 0-66-27-27-27-27-66h186q0 39-27 66t-66 27Z"})))),p=e.forwardRef(((e,t)=>i.createElement("svg",{viewBox:"0 -960 960 960",ref:t,...e},i.createElement("path",{d:"M137-190v-113h78v-253q0-41 11-79 11-39 35-71l-9 150h10L17-802l74-74L873-92l-74 74-175-172H137Zm609-149L319-769q20-15 41-25t44-16v-28q0-32 22-54t54-22q32 0 55 22t22 54v28q85 23 137 94t52 160v217ZM481-47q-38 0-65-27t-27-65h184q0 38-27 65t-65 27Z"})))),f=e.forwardRef(((e,t)=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",ref:t,...e},i.createElement("g",{strokeLinecap:"round",strokeWidth:10},i.createElement("path",{d:"m19 19 61 61M80 19 19 80"}))))),h=e.forwardRef(((e,t)=>i.createElement("svg",{viewBox:"0 -960 960 960",ref:t,...e},i.createElement("path",{d:"M94-136v-255l351-93-351-92v-253l816 346L94-136Z"})))),g=e.forwardRef(((e,t)=>i.createElement("svg",{viewBox:"0 -960 960 960",ref:t,...e},i.createElement("path",{d:"M480-372q-61 0-105-43-43-43-43-105v-240q0-61 43-105 43-43 105-43 61 0 105 43 43 44 43 105v240q0 62-43 105t-105 43ZM425-76v-122q-121-16-197-108t-76-214h109q0 91 64 154t155 63q91 0 155-63t64-154h109q0 122-77 214T534-198v122H425Z"})))),m=e.forwardRef(((e,t)=>i.createElement("svg",{viewBox:"0 -960 960 960",ref:t,...e},i.createElement("path",{d:"m763-343-80-79q8-20 13-44 5-23 5-54h109q0 49-11 95t-36 82ZM625-482 336-770v-2q3-56 45-96t101-40q62 0 105 43t43 105v249l-1 17q-1 7-4 12ZM427-76v-122q-120-16-196-108-77-92-77-214h109q0 91 64 154t155 63q43 0 80-14 37-15 67-41l78 79q-35 32-78 53t-93 28v122H427Zm362 27L41-796l75-75 748 748-75 74Z"})))),b=e.forwardRef(((e,t)=>i.createElement("svg",{viewBox:"0 -960 960 960",ref:t,...e},i.createElement("path",{d:"M625-511q29 0 50-21t20-50q0-29-20-50-21-20-50-20t-50 20-20 50q0 29 20 50 21 21 50 21Zm-290 0q29 0 50-21t20-49q0-30-20-50t-50-21q-29 0-50 20-20 21-20 50 0 30 20 50 21 21 50 21Zm145 268q75 0 137-43t85-115H258q24 72 85 115 62 43 137 43Zm0 198q-90 0-170-34-79-34-138-93T79-310q-34-80-34-170t34-170q34-79 93-138t138-93q80-34 170-34t170 34q79 34 138 93t93 138q34 80 34 170t-34 170q-34 79-93 138T650-79q-80 34-170 34Zm0-435Zm0 322q134 0 228-94t94-228q0-134-94-228t-228-94q-134 0-228 94t-94 228q0 134 94 228t228 94Z"})))),y=e.forwardRef(((e,t)=>i.createElement("svg",{viewBox:"0 -960 960 960",ref:t,...e},i.createElement("path",{d:"M553-64v-108q107-27 173-113 67-87 67-197 0-109-67-195T553-789v-108q152 26 249 144 97 117 97 271 0 155-97 273T553-64ZM61-335v-290h176l236-237v764L237-335H61Zm492 28v-346q51 23 82 70t31 103-31 103q-31 47-82 70Z"})))),v=e.forwardRef(((e,t)=>i.createElement("svg",{viewBox:"0 -960 960 960",ref:t,...e},i.createElement("path",{d:"M807-15 700-123q-33 21-71 37-38 15-80 22v-108q20-4 38-12l35-17-153-154v257L234-335H57v-290h144L10-818l74-75L882-90l-75 75Zm37-264-80-79q13-30 19-60 7-31 7-64 0-109-68-195-67-86-173-112v-108q152 26 249 144 98 117 98 271 0 55-14 107-13 51-38 96ZM661-462 549-575v-78q51 23 83 70 31 47 31 103l-1 9-1 9ZM469-655 366-759l103-103v207Z"})))),w={general:{primaryColor:"#42b0c5",secondaryColor:"#491d8d",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",showHeader:!0,showFooter:!0,showInputRow:!0,actionDisabledIcon:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2042%2042'%3e%3cpath%20style='fill:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke:%23b00000;stroke-opacity:1;stroke-miterlimit:4'%20d='M17%209a8%208%200%200%201-8%208%208%208%200%200%201-8-8%208%208%200%200%201%208-8%208%208%200%200%201%208%208Zm0%200'%20transform='rotate(.086)%20scale(1.77778)'/%3e%3cpath%20style='fill:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke:%23b00000;stroke-opacity:1;stroke-miterlimit:10'%20d='M14.66%2014.66%203.34%203.34'%20transform='rotate(.086)%20scale(1.77778)'/%3e%3c/svg%3e",embedded:!1,flowStartTrigger:"ON_LOAD"},tooltip:{mode:"CLOSE",text:"Talk to me! 😊"},chatButton:{icon:c},header:{title:n.jsx("div",{style:{cursor:"pointer",margin:0,fontSize:20,fontWeight:"bold"},onClick:()=>window.open("https://github.com/tjtanjin/"),children:"Tan Jin"}),showAvatar:!0,avatar:l,buttons:[s.NOTIFICATION_BUTTON,s.AUDIO_BUTTON,s.CLOSE_CHAT_BUTTON],closeChatIcon:f},notification:{disabled:!1,defaultToggledOn:!0,volume:.2,icon:d,iconDisabled:p,sound:"data:audio/wav;base64,UklGRmaIAABXQVZFZm10IBAAAAABAAIAQB8AAAB9AAAEABAATElTVBoAAABJTkZPSVNGVA4AAABMYXZmNjAuMTYuMTAwAGRhdGEgiAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////AAAAAAAA//////7/////////AAABAAAAAgABAAEAAQAAAAIAAQABAP//AAD+////AAD+//7////+////AAD//wAA/v8AAAAA/v8AAP//AAAAAAAAAgD////////+////AAABAAEAAgD/////AQABAAAA//8CAP//AAAAAAAA/v8AAAAA//8AAAEA//8EAAAAAAAAAAAA//8BAP//AQABAAEA/////wEA/v///wAAAAACAAAAAAABAAAA//8AAP//AAACAP//////////AAAAAAEAAAAAAAEA//8AAAEAAQADAAIAAgAAAAAA/v///wEAAAAAAAEAAAAAAAEA//8AAAEAAQD//wAA//8AAAEAAAABAAEAAAABAP//AAD//wAAAgAAAP//AQD/////AAAAAP7/AgAAAAIAAAAAAAAAAAABAAAAAQABAP//AAABAP///v8AAP////8AAP//AAD//wAA//8BAP//AAD///7///8BAP7///8AAAIAAgABAAEA/v8AAP//AQADAAEAAAACAAEA/////////v///wEA/v////7/AAD+////AAAAAAAAAgAAAAAAAAD//wEAAAAAAAAAAQABAAIA/v8AAAAA//8AAAEAAAAAAP//AgD//wEA/////wAAAQACAAAAAAAAAP//AQD/////AQAAAAEA/v8AAAEAAQABAAEA///+////AQD//wEAAgD+//7/AAAAAAAAAQAAAAAAAQAAAAAAAAAAAP//AAD//wEAAQD//wAAAQABAP7///8AAP7/AAABAP7/AQABAAEAAAABAAEAAAD+/wIAAAABAAAAAQD/////AQACAP////8AAP//AQD//wEA/v8CAAEAAAAAAAAAAQAAAAIAAQAAAAEAAgD//wEAAAAAAP7///8BAP//AgAAAP///v8CAAAAAgD///////////7/AAACAAEAAgD//wAAAAABAP//AwAAAAMA//8AAAAAAQD+/wAAAAD//wAAAQD//wEA//8BAP7/AAABAAAA//8BAAAA//8AAP//AQADAP3////+////AgD+/////v8BAAEAAQACAAAAAAAAAAAA//8AAP//AAD+/wEA/v8AAP7/AAD//wAAAQACAAAAAQAAAP//AQAAAAAAAAABAAAAAAD+//////8AAAAAAAD//wAAAAABAAEA//8AAAEA//8AAP//AgD+/wAA///+/wAA/v///wAAAQABAAAAAQD//wAA//8AAAEA//8BAAAAAgABAP//AAACAAIAAQABAP//AAAAAAAA//8BAAIAAAABAAAA//8CAAEA/v//////AAAAAAEA////////AQAAAP//AAD//wAAAAAAAP3/AAAAAAEAAAACAAAAAAAAAP//AAD//wAAAAAAAAAAAAAAAP///v///wAAAAABAAAAAAD//wEAAAABAAEAAQD//wAAAAACAAAAAQD+/wAA//8BAAEAAAD+/wAA/////wAAAAABAAAAAAD//////v8AAAAA//8AAAAAAAAAAAIAAAABAAEAAAABAP7/AAD9//////////7///8BAP//AAD///3/AQABAP//AAD//wAAAAABAAAA//8AAP//AAD/////AQABAAEA//8AAAAA//8BAAMA//8AAAAA//8AAP7/AAD//wAAAAAAAP7/AQAAAAAA/v8CAP//AAABAAIAAQABAAAA//8BAAEAAQD///7/AQD//wAAAQABAP//AAD//wEAAAAAAAAAAQAAAAIA//8AAP////8AAP//AQD//////v///wEA/v8AAAIAAgACAAEAAAAAAAEAAAAAAAAAAAAAAAAAAQD//wAA/////wAAAQACAP////8AAAAAAAD//wAAAQD+/wEA//8AAAEAAwD//wEAAQAAAAAAAAABAP////8AAAAAAQAAAAAAAAAAAAEAAQAAAP////////7/AQABAAEAAQD///////8BAAAA//8AAAAAAgABAAEA/v8BAP7///8BAP3/AQABAAIAAAD//wEAAAAAAP//AAABAAIA//8CAAAAAQAAAAEA//8BAAAA/////wAAAAD//wEAAQD//wAAAAAAAP//AAAAAAAAAQABAAAAAQAAAP//AQD//////v8AAAEAAAAAAAAA//8AAAAAAAACAAEAAQAAAP//AAABAAEA/////wAAAgABAAAAAAAAAAEAAAABAP//AQABAP7////+/wEAAAAAAP//AAABAAAAAAABAAEAAAAAAAAA//8BAP///f/+/wEAAQD///7///8AAAAAAQAAAP////8AAAAAAAABAAAAAQD/////AAD//wEA//8AAAIA//8CAAAA//8AAAAAAAD+/wEAAAD+/wAA/////wAA////////AAAAAAAA//8BAAAAAAD//wAAAAD//wEA//8AAP//AQD+/wAAAAAAAP7/AAD+/wEAAQABAP//AAABAAEAAQD//wAA/////wEA//8AAAAAAgAAAAAA//8BAAAAAgAAAAAAAAAAAP7/AQD//wAAAAD+/wAAAAADAAIA/////wAAAQD//wIA//8BAAEA/v8AAAIAAAAAAP3///8AAAAAAAAAAAAAAAABAP///////wAA//8AAAEAAQABAAEAAQABAAAAAQAAAAAAAQABAP7/AQD//wAAAQABAAEA//8BAAAAAgAAAAEAAAABAP//AAD/////AAD//wIA/////wIAAAD///7/AAAAAAAAAAACAP//AAABAP////8AAAAAAAABAAAAAgAAAAAAAQD+/wEA/////wAA/////wAAAAAAAAAA/v//////AAAAAP//AAABAAAAAQAAAAIAAAACAAAA//8AAAAA//8AAP7/AAAAAP//AAACAP//AQABAP//AQABAAAA/////////v8AAP//AQAAAAAA///+/wAAAQD+/wEAAQAAAAEA/////wAAAQD//wAA//8AAAAA/v8BAAEA//8AAP7//v8BAAAAAAAAAAEA//8AAAEA/////wAAAAD//////////wEAAAABAAEA//8CAAEA/f8AAAAA//8BAAAABAABAAEAAQAAAAAAAAAAAP7///8AAAAA/v8BAAAA//8AAAIA//8AAP////8BAP//AAAAAAAAAAD/////AQD///7/////////AQD8////AgABAAIA////////AAD//wAAAAABAAAAAAAAAAEAAgAAAP//AQD//wAAAAAAAP/////+/wAAAAABAAAAAwABAP///////wEAAAADAP//AQACAAAA//8CAAEAAAAAAP///////wIAAAAAAAAAAQAAAAAAAgD//wEAAAABAAAA/v8AAAAAAAAAAAAAAAAAAAEA/v8AAP//AQD//wAA//////7///8AAAAAAAAAAP7/AQD//wAA//8AAAEAAAABAAEAAQD/////AAD//wEAAAD/////AQAAAAEAAAD//wEAAAD/////AgD//wAAAQD//////////wAAAAD//wAAAAABAAAAAAD//wAAAQD///7/AQD//wEAAAD/////AAD//wEA//8AAAEA//8CAAAAAQD//wEAAgAAAAEAAwAAAAAA/v8BAAEAAgD//wEAAAAAAAAAAAD//wEA//8AAAAAAQACAP///////wAAAQABAAEAAAAAAAEAAQD+/wEA/f////////8AAAAA//8AAAEA//8BAAAA/v///wEAAAAAAAEA/////wAAAAAAAP//AAAAAAIAAAABAAAA/////wAAAAD//wAA/v8AAAMAAQD+/wEAAAABAAEA//8BAP//AgAAAAAAAAD//wAA/////wEA/v8CAP3/AAACAP3/AQABAAAAAQACAAEA/v8AAAAA//8BAAAAAgAAAAAAAgACAAEA/v/9/wAAAQABAP7///8AAP//AgD+/////v8CAP////8BAP//AQACAAEAAQABAP//AAD///7/AAABAAEAAgD//wEA//8CAAEAAQABAAEAAAABAAAA/v8AAAEA/v8AAP//AAABAP//AQAAAAEAAgAAAAAA/v///wEAAQAAAAIAAAD/////AgAAAAEA/v8AAP7/AQAAAAAAAQAAAAEAAAACAAEA//8BAP////8AAAIAAAAAAP//AAAAAAIAAAAAAAAAAwABAP///v8BAAAAAAAAAP3/AAABAAEA/v////////////3//v8AAAAAAQABAAIAAAD+/////v8AAAAAAQABAAEAAQAAAP//AAAAAP//AQAAAP//AAABAAAAAAAAAAAA////////AAAAAP//AQD/////AAABAAEA//8CAP7///8AAP7//v8BAAEAAAD+/////////wEAAAAAAAAAAgD//wAAAQAAAP7/AQABAP//AQAAAAAAAAD/////AAACAP////8BAAAAAAD//wAA//8AAAEAAQABAAAAAAABAAAAAQD+/wEA/v8AAAEAAQD/////AAD//wAAAQABAP7//v//////AAACAAAAAAAAAAAAAAACAAAAAQAAAAAA//8BAP//AQD//wAA///+/wIAAQD//wAAAAD//wAA/v8AAP3///8AAAAAAAAAAAAA/f8AAAAA//8CAP7/AAD///7/AAAAAAAAAAD//wEAAAAAAAEAAAAAAAAA//8BAP////8BAP7///8CAAEA//8BAP3///////////8BAAAAAAAAAAEAAgD+//////8BAAMAAQADAAEAAAACAAAAAQD/////AAABAAMAAQAAAP//AQD//wAA//8AAAAA//8CAP7//////wAAAAAAAAIA/v8AAP//AAACAP//AwD//wAA//8AAP//AwD//wEAAQABAAEAAQACAAEAAAD//wAA//8AAAIAAAAAAP///////wAAAQD//wIA//8BAP7/AAD///////8AAAAAAAAAAAEAAAD//wAAAQD//wEA//8BAAAAAAD/////AgABAAIAAAABAAAAAAAAAP//AAAAAAAA//8AAAAAAAD/////AQAAAAAAAQD//wAA///+////AAAAAAEAAgABAAEAAAAAAP//AQAAAAAAAQD+/wAAAAABAAEAAAD/////AQABAP7///8AAAIAAAACAAAA//8AAP//AgACAAAA///+/wAAAAABAAAAAQAAAAEA/v8BAAEA//8CAP//AQD+/////v8AAAAAAAACAP//AAD+/wIA/v8BAAAAAAD/////AAAAAP7///8AAP7//////wEAAAABAAAAAAD//wAAAAAAAAAAAgACAAAAAAABAAAA/f8AAP7/AgAAAAEA//8BAAAAAAD///7/AQD//wAAAAAAAAEAAAAAAAEAAAAAAAAAAQAAAAAA//8AAAAAAAABAP///////wAAAgABAAEA//8AAP//AAACAP//AQABAAEA//8BAAAAAAABAAAA//8AAAEAAAAAAAIA/v8BAP//AQD//wEAAAABAAEAAQACAAEAAAAAAAEAAAABAAAAAAD/////AAABAAEA//8AAAAAAQABAP//AAAAAP//AAD/////AQD//wAAAAABAAEA//8BAAAA//8AAP///f/+/wAA/////wAAAQAAAAIAAAAAAAAAAAD+/wEA/f8CAAAA//8AAAEAAgAAAAMAAAABAAAAAAAAAP//AQAAAAAAAQABAAAAAQAAAP//AAAAAAAA//8AAAAAAAABAAAAAQAAAAAAAAABAAIAAAAAAP7/AQD//wAAAAD+////AAAAAAAAAAABAAAA/////wAA//8AAAAAAAD/////AgD//wAA//8CAP//AQACAAEA/f////////8BAAIAAQABAP//AAD//wAA///+////AAD+/wAAAQD/////AAAAAAAA/////wAAAAABAAAAAQAAAAAA//8AAAIAAAABAP//AQABAAEA//8AAAAAAAADAAEAAAABAP//AgD//wMA//8AAAAAAAD//wAAAAD9/wEA///+/wAA//8BAAEA//8BAAAA//8AAP///v8BAP///////////v8BAAAAAQABAAAAAAAAAAAA//8AAP7/AQAAAAAAAAAAAP7/AQAAAAAAAgABAAEAAAABAAEAAAAAAAAAAAD+/wAAAAD//wEAAAAAAAAAAAAAAP//AgABAAAAAAABAAEAAAD/////AAAAAP//AAABAP////8BAAAAAQABAP7//v/+////AQAAAAAAAQAAAAEAAgAAAAAAAQAAAAEAAAD+/////v8BAP//AAABAP//AQABAAAAAAD//wAA//8CAP//AAAAAAEAAAABAAAAAAAAAP//AAD+////AwAAAAAAAQD//wEAAAACAAEAAAADAAAAAAD/////AAAAAAEAAAABAAAA//8AAAEA//8BAP///v8AAP//AAD//wAAAQABAP//AQAAAAAA/////wEAAQAAAP////8AAAEA//8BAAAAAQAAAP////8AAAAAAQAAAAIAAQAAAAEAAAAAAAEAAAD//wEAAAAAAP////8AAAAA//8BAAEAAAAAAAIA///+/wIA/v8BAAAAAQACAAAAAQAAAP7///8AAP//AAAAAAEAAAAAAP7/AAD+////AAAAAAAAAAD//wAA/v8BAAMAAAABAAIAAgD//wAA//8BAAEA//8BAP7/AAAAAP7///8BAAAAAQAAAP7/AQD/////AAAAAAEAAAABAP//AQABAAAAAgABAAAAAAAAAP///////wEA//8AAAEA//8AAAAAAQAAAAIAAAABAP7//////wAAAQABAAAAAAABAAEA///+/wAA//8BAP///v8AAP///v8BAAAA//8CAAAAAQAAAAEAAQABAAAAAAD+/wAAAAD+/wAAAAAAAAAA/f////////8AAAAAAQABAP///////wEA//8BAAEAAAAAAAAA/////wEA/v//////AAAAAP//AAABAAAAAAD+/wAAAAD9////AQAAAAEAAwD//wEAAQAAAP//AgAAAAAAAAD+/wIAAAAAAAAAAAAAAAIA//8AAAEAAQACAAAAAQD//wAAAAD//wIAAQABAAAAAAD//wEA//8BAAEAAQAAAAAAAQABAP7/AAD//wEAAAACAP7/AQAAAAAAAAD//wIAAQACAAIAAQAAAAAAAAAAAP3///8BAAAAAQACAP//AgD9/wAAAAD//wEA/v////////8AAAAAAAD//wEAAQD//wMAAQAAAAEA//8AAAEA//8AAAAAAAACAAAAAAD//wAAAQD///////8AAAAA//8BAAIA/v8BAAEA/f8AAAAAAAAAAAAAAgD/////AAD+/wAAAAD//wAAAAAAAP//////////AgABAP///v8AAAIAAQAAAP//AAABAAAA/////wAAAAAAAAEAAAABAP///v///wIA//8BAAEAAQAAAAAA///+/wEAAAAAAAAA/////////v8BAP3/AAAAAAAAAAAAAAAA//8AAP//AAAAAP//AAABAAIAAAACAP////8DAAAAAAABAAAAAwABAP//AAABAP//AAAAAP////8BAAAAAgD//wAA///+/wAAAQD//wAA//8AAP7///8AAAAA/v8AAAAAAQD//wEA/v////////8AAAAAAQAAAP//AQACAAAAAAAAAP//AAD//wAAAAD//wAAAAD+/wAAAAAAAP//AQD//wAAAgAAAAAAAQABAAAAAwD+/wAAAAD///7/AQD//wIAAQAAAP//AAD//wAA//8CAAEAAAAAAAAA/////wAAAAD//wEAAQD///////8BAAAA//8BAAEAAAAAAAAA/v///wEAAAAAAAAAAAADAAAAAAAAAAAAAQABAAEAAAD+//7//v8AAP//AQAAAAAAAAABAAEAAgAAAAAAAQD//wAA/f8AAAAAAAABAAAAAQAAAAAAAAAAAAIA//8BAP///////wIA/////wAAAAABAAEA//8BAAAAAAD//wAAAQD//wEAAAAAAAIA/v8BAP//AAAAAAEAAAABAP//AAAAAAAAAQABAP7/AAABAAAAAQD//wIAAAAAAAEA///+/wAA//8AAP//AAAAAAAAAAABAP///////wIAAQAAAAEAAQAAAP7/AQAAAAAAAQAAAAAAAQD/////AQAAAAAA///+//7/AAD+/wEA//8AAAAA///+/wEAAAABAAIAAQABAAAA//8AAP//AAD//wAAAAD//wAAAAAAAP//AQAAAAAA////////AQAAAAAAAQD+////AQABAP7/AAD///7/AgD//wAAAAAAAP//AAAAAAEA//8BAAEAAgAAAAIAAAD//wEA/////wAAAQD///7/AQD//wEAAQD/////AAAAAAEAAgAAAAAAAQD//wEA//8AAP7//////wAA//8BAAEA//8BAAAAAQD/////AAABAP//AAACAP//AQAAAP//AAABAP////8AAAAAAAABAAEAAwABAAAAAgD//wAAAAD//wEAAAABAAAAAAABAAEA/////wAA//8AAAIAAAAAAAEAAQABAAEAAQABAP//AgAAAAAA//8BAP3//v///wAA//8AAAAAAQAAAP//AQD//wEAAAACAAIAAAABAAAA//8BAAEA//8BAP//AAAAAP//AQAAAAIAAAD//wAAAAAAAAEA////////AQAAAP//AQD//wAAAQD+/wEAAAABAP///v///wAAAAAAAP//AAAAAAIAAQD//wAAAgD+/wAAAAD//wAAAAABAP///P//////AAACAP////8AAAIAAAABAAAAAAAAAAAA//8AAAAAAQADAP//AQAAAAAAAAABAAEAAQAAAAAA/v8AAAAAAAD//wAAAQD//wAAAAD//wAA/v////////8CAAEA/v8BAP7/AAAAAAAA//8AAAEAAAD//wIAAQAAAAIAAQAAAAAAAAD///7/AQABAP//AAAAAP//AAACAAEA//8BAAAAAwAAAAAAAAD//wEAAAD//wAA///////////+/wAAAQABAAIAAAABAAEAAAD//wEAAAD/////AAD+/wIAAwABAAEA/v8BAAEAAAD//wAA//8AAP//AAAAAAEAAAAAAP//AAAAAAEAAQABAAEA/v///wAAAAD//wEAAAACAAAA/f/+/wAA/v///wAA//8AAAEAAQD///7/AAAAAAAAAAABAAAAAAACAAAAAAABAAAAAAABAP//AQD//wAA//8BAP7/AgABAAEAAQAAAAAAAQD//wEA/v8AAP////8AAP///////wIAAQD//wAAAAD//wAA/v///wAAAQD//wIA/////wEAAAAAAAIAAAABAAAAAAD//wEA//8AAAAA/////wAAAQAAAAAAAAD//wEAAQAAAAAAAAACAP///////wAAAgD//wAA/v8AAAIAAAAAAAEAAAABAP//AQABAAEAAQAAAP///v8BAAEAAAAAAP////8AAAAAAQD//wIAAQAAAAEAAAAAAAAA//8BAP//AAAAAP7//v///wEAAAAAAAIAAAAAAP//AAD//wEA//8BAAAAAAABAAEAAAABAP7///8AAAIAAAABAP//AAD//wEAAAAAAP//AAAAAAEAAAAAAAAAAAAAAP7/AQD//wAAAQD+/wEA/v8BAP7/AAABAAEAAAACAAIAAAADAAAA//8AAAEAAAABAP//AQD//wIA/////wEA//8AAAEA//8AAAEAAAAAAAAAAQABAAAAAAAAAAAAAAD//////////wAA//8AAP7/AAD+/wAAAQAAAAAA/////wAABAAAAAAA//8AAAEAAAAAAAAA/v8AAP//AAAAAAAAAAD//wAAAAD///////8BAAEAAAD/////AgABAAEA/v/+/wAAAQACAAEAAAD//wAAAwABAP//AgD+/wAA/v8AAAAAAAAAAAEA//8AAAEAAAD+/wEAAAAAAAEAAgAAAAEAAAABAP//AQD+/wIA/////wAAAQD//wAAAQD+/wAAAQABAAAA////////AAACAAAAAQAAAAIA//8BAP///v///wEA//8BAAEAAQD+/wAAAQD9/wAAAQAAAAEAAAABAAAAAgAAAP//AAD+/wAA/f8AAAAA////////AgAAAAcAAQD7/wEA/f8AAAIA//8GAP7//v/+//b/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+P/F//z/rv/i/7r/6v/Z/wYABwAoADAAKQBOABkATAD0/zQA1P8PANv/0//v/6//FwCi/ywAxP8oAPn//v82APT/WwD4/00A+/8yAPv//f/8/83/+v+w/+T/sf/j/9b/AQACACoAIgAtAEIAHwBPAAEAQADe/xcA0v/k/+X/t/8IAKv/IgC//yEA6/8EACMA9/9PAPf/VAD+/zcA+/8JAPn/1P8AALf/6f+w/+P/zf////j/HAAdAC0APgAfAEsABwBCAOP/IADV/+//2v/B//3/rP8PALv/GADd/xEAFgABAEMABABaAP//QgACABcA+//n/wAAwP/w/67/4v+///3/6f8WABcAKQA0ACIARgAQAEcA8f8pANn/9f/U/87/7f+v/wgAtP8RANP/FgANAAIAOQACAFQA/f9HAAAAIAABAO3//P/E/wEAs//q/7n/9P/i/wYAEQAZADEAJABBABMASAAAADEA3/8CANL/1v/g/7H/AACy/w8Axf8ZAPv/CQAzAAIAVQD//1AAAAAsAAIA9v/7/8r/AwC2//P/tf/m/+H/AwADABEAKQApADoAHgBHAAgAPADr/wkA1//f/93/vP/6/7L/CgDA/x4A7/8hACkAAgBPAPz/UgD1/zIABAAEAPz/0v/5/7f/AACy//H/2f/+/wEAAAAkABUAMwAdADoAEQA9APD/EADU//L/1P/H/+z/tf8LALv/HADk/ygAGgADAEMA//9TAPn/QAAAABAAAQDc//z/wf8DALD/7P/Q//z/9/8HABoAFgA3ACMAMAAOADwA+P8ZANv/+P/Y/9H/5v+8/wUAu/8WANf/HgAMAAoAPQABAFMA/f9HAP7/HwAEAN//+v/H/wMAs//2/8r/8//y/wMADgAQAC4AIwAyABMAJwD8/xcA3v8LANP/5v/f/8j/AgC4/w4A1P8eAAQACgAxAAEAUgD+/0gA/v8nAAIA8f/5/8r/BAC6/+3/wP/l/+b/AQAIABkAIwArAC4AIAAoAAkAGADj/w0A0f/r/9//0P8DAL3/CgDN/xkA//8IACUAAgBJAAAATwD+/ysAAQD7//3/z/8DAMT/+f/K/+L/5P/1////EgAcACYALgApAC4ACwAcAPL/EADZ//L/1f/U//f/uv8KAMX/DwDu/wcAHwADAEUABgBNAAEANQAAAAYAAQDf////xf/+/9P/4f/b//X/9v8LAA4AGAAlACoAMAAQABkA9v8TAOL/+f/W/9r/8f/I/wcAxP8MAOr/BwATAAQAOAAGAEcAAABCAAEADwAEAOP//v/F/wIAzf/o/93/8P/s/w4ACwAZACEAKgAyABMAIQD5/xgA6v8DANb/4P/y/9H/AQDJ/wkA4/8DAAoA/f8wAAQAQwABAEAA//8VAAIA7P/+/8r/BADP/+v/2v/s/+n/CwAIAA0AHAAjADQAHAAkAP//GQDy/wQA5v/i//b/0P/7/8f/AADh/wMAAAD+/yUAAAA7AAEAOAAAABwAAAD6/wAA1/8CAMr/AADb/+3/5f8BAAIACAAVABcALwAfACgA+/8XAPn/DgDe/+//7v/Q/wMAz/8JAOP/CwDx////EAAHADEAAQArAAIAHQAEAAcAAADr/wEAzv8CANj//f/k/wEA+f/+/xQABwAqAB4ALAD+/x4A8P8SAOb/8//f/9j//f/N/wEA3v8LAO7/AgAMAAQALAAEAC0AAQAdAAQADwABAPP/BADV/wMA0/8AAOH/AQD1/wAAEAADACQAGwAwAAQAHwD0/xUA8f/4/+L/2//7/8z/AwDc/woA6f8AAAQAAwAoAAcANAAAACcAAgAUAAEA+P8CANv/AgDR/wEA4v8BAOz/AgAIAPv/JAAVADMAFAAhAPP/GQDz//7/3P/l/+3/z/8BANf/CgDn/wkA/P///xoABwAwAAIAJwACABcAAwABAAIA4f8BAND/AgDd//3/6P8CAAYA/f8YAAwALwAZACUA9v8bAPj/AwDq/+r/7P/S//7/1/8EAOX/CQD6//7/GQAFAC8AAQApAAEAGQACAAMAAgDm/wEAzv8BANv//v/p/wIA//8BABMABQArACAALAABAB4A8f8NAOv/7v/m/9n/+P/R/wMA4f8OAPT/AQATAAMAKwAHACoAAwAbAAMABQADAO7/AQDU/wEA2f8AAOL////3////EgAAACUAGgAvAAUAHQD2/xIA9f/0//T/3P/4/8///f/h/wIA7f8AAAoAAQApAAQALQADACAAAgAPAP//9P///9r//f/T/wAA3f/9//D/AQAQAP//HAAHAC8ACQAfAPv/GAD+//f/+P/j/wEA0v/+/9n/AADq/wIABgD//x0AAQAuAAEAIwAAABQAAwD8/wEA3/8AAM//AADe////7f8BAAwA//8ZAAMALwAAACEA//8dAP3//v/9/+n////U//z/1v8BAOT/AAD+/wAAGwD+/ywA/v8kAAIAGAD///3////q/wEA0P///97/AADk/wAABAAAABUAAQAqAAEAKQAAABwAAAAFAP//6f8AANr////X/wAA4/8AAPj/AgAUAAAAKgD//ywAAAAcAP7/AQAAAOv/AADU/wAA2v8CAOP/AAABAAAAFgABABsAAAAqAAEAHwAAABQAAgDv/wEA3v///9H////f////7/8BAAoAAQApAAAALgD//yEAAQAIAAAA8P8BANr//v/V////4f8AAPf//v8UAAAAFAAAACYAAQAhAP7/GwD+//T/AADo/wIA1v8CANr/AgDp/wEABgAAAB8AAQAsAAEAJAAAAAwA///z/wEA3/8AANT/AADh/wEA9P///xQAAgASAAAAJQAAACEAAAAaAP//+v8BAOj////W////2P8BAOf///8DAAAAHwAAAC4AAAAlAAAAEgAAAPL/AQDm////0f8CAN3/AADr//7/EQD//xAAAQAhAAIAJQAAAB8AAAABAP//6v8CAN//AQDX/wAA4/8AAPr/AAAXAAAAKgABACgAAAAbAP///f8AAOj/AADU/wAA2v///+f/AQANAAMAEQD+/xwA/v8kAP7/IQABAAgA/v/p////5/8AANf/AQDd/wEA8v8BABMAAQAjAAAALgAAACAAAQADAAEA7f8BANn/AgDY//7/4P/+/wEAAAAXAAIAFAAFACUA/P8jAP//EgAAAO//AQDo////1/8AAN3/AADx//7/DgAAAB0AAQAoAAAAIwAAAAoAAQDv/wMA4f8AANn/AQDi/wEA+v///xgAAAAQAP3/IwD//yUA/v8XAAAA7/8AAOv/AADc/wAA3P/+/+v/AQALAAEAGgACACkAAAAkAP7/EAABAO/////q//7/1/8AANz/AgDw/wEAEgD//w8AAAAcAAIAJQAAAB0AAAD2////7P8AAOP/AgDa/wAA5P8BAAQAAQAWAAAAIgAAACMAAAAaAP//+P///+v/AQDZ/wAA2////+7/AAARAAAADgAAABYAAAAhAAAAIAABAPz/AQDt/wAA5P8AANr/AQDg/wEA/P8BABcAAAAhAP//KQD//xwAAAD8/wEA7v8AAN3////Z/wAA6f8BAA0AAAARAAEAEQAAACMAAAAgAAEA/f8CAO3/AADv/wAA3v8BANv////1////EgAAABkA//8nAAAAIgAAAAMAAADu/wAA6P8CANn/AQDg////BQD//xMAAQAOAP//IAABACYAAAAGAAAA6f////H/AADg/wEA2f8AAO3///8PAAAAFQACACQAAAAkAAEADQABAO//AADp/wAA2////9z/AQD7/wEAFgAAAAwAAQAXAP7/JQD9/xMAAADx/wAA8f8AAOr/AADc/wEA4/8BAAkAAAAVAAAAIQD//yYA//8UAAEA9P8BAOz/AADf/wAA3P8AAPP/AAAQAAAADQABAA0AAAAlAAEAGAD///H//v/0/wEA7v8CAN//AADg//3/BAACABUAAQAfAAAAJwABABgAAQD0//7/7f///+L/AADa/wIA8P///w4A//8SAAMACQAAACAAAQAgAP//+v////P////y/wEA4/8BANr/AQD9/wAAEwD//xkAAQAjAAAAIgABAPz////s/wAA6v8BANX/AQDr//7/BwABABMAAAAHAP//FwAAACYAAAD//wEA9P8BAPb/AQDu////2v8BAPn/AAATAP//FwD//yEAAAAjAAAAAgAAAOn/AQDr//7/2P8CAOT/AAABAP//FgABAAUAAQATAP//IwAAAAEAAgDy/wEA9/8AAPb/AADb/wAA6/8BABAAAAATAP7/IQAAACYA//8UAP//7/8AAPD/AADd/wEA3P/+//7///8OAAAACgAAAAgAAAAhAP//CQACAPT/AQD2/wAA9v///97////m/wIADgABABMAAQAfAP//JwAAABMAAADw/wAA8P///+r/AQDb/wAA9f8AAA8AAAARAAIABAD//wYA/v8HAAAAAQD//wMAAgAGAAAA7f8AAOz/AAALAP//DwACABQA//8bAAAAHgD///f/AADq/wEA6/8BANj//v/t/wAACAD+/xAAAgAEAAAABAABAAcAAQADAAAA//8AAAUA///1/wAA5f///wIAAAAOAAAAEAAAABsAAAAhAAAA/v8BAOj////y////3f8AAOf/AQAGAAEADAAAAAcA//8BAP//CQABAAMA//8BAP//BQAAAAAAAADo/wAA+/8AAAoAAAALAAAAFAAAACAAAQAGAAIA7f8BAPH/AADm/wMA3P8CAP7/AgASAP//CgD//wAAAAAIAP//BQD//wEAAAACAP7/BAAAAPz/AwD8////BAAAAAEA//8HAAAAHQAAAAgA/v/x//7/8f///+f/AQDg/////P///woAAAAMAP//AAABAAYA//8EAAAAAgAAAAUAAAACAAAAAwAAAAIAAAABAAAAAQABAAAAAgAcAP//DgD///T/AQDx/wAA9P8CAOH/AAD3/wAACQAAAAoAAQABAP//AwAAAAcAAAD+/wAAAgACAAEAAAD+////AwD+/wAAAAABAP//+v8BABEAAQATAAAA9f/+//L//f/z/wIA6f8AAPb/AQAFAP//DAAAAAAAAAAFAP//BQD//wEA//8DAAEAAQAAAP7///8AAAAA//8BAAIAAAD+/wAAEAABABYAAgD6/wEA8v8BAPX/AwDp/wAA8////wMA//8JAAEABAABAAEA//8FAAEA//8AAAMAAQACAP//AQAAAAEAAgAFAP//AQABAAAAAQAAAP//EQABAAAAAAD5/wEA+P8AAPr////6/wAA+/8BAAIA//8BAAAA//8CAAUA//8BAP7/AAABAAEAAgAAAAAAAwAAAAEA/v8DAAIAAAACAAQA//8TAAAA/P8BAPr////3//////8AAPz/AQD7/wEAAgD/////AAABAAEABAAAAP//////////AAAAAAAAAAADAAAAAwAAAAAA//8EAP///v/+/xAA//8HAAAA+/////j/AQD8////AAD///n///8AAAAA//8AAP////8DAP//AgAAAAAAAAACAAIAAAD+/wAAAQD//wAA/////wIAAgD9////CQACAAYA///9////+f8BAPr/AQAAAAIA/v///wAA//8AAAAAAAAAAAEAAAABAAAAAgAAAAEAAAAAAAEAAQABAAAAAgABAP//AAD//wEAAAD///////8BAAIAAQAAAAAA/v/+//////8BAAAAAQABAP//AAD///////8BAAAAAQABAP////8CAAEAAQD//wEA/v//////AQAAAAAAAAAAAAAAAAD9/wMA/////wAAAQD+/wEA/v/+//7/AQD//wMAAAAAAAAAAAABAAEA//////7/AAACAP3/AAD//wAAAQAAAP//AQD//wAAAAAAAAEA//8CAP//AAAAAAAA/v8AAAAA//8BAP//AAABAP//AAAAAP//AQD//wAAAQABAAAAAAABAAEA/v///wAAAAD//////////wAAAAAAAP//AAD////////8/wIAAAADAAEA/////wEA/v8BAP7/AgAAAAEAAgAAAP//AgD/////AQD//wEA//////7/AQD//wMAAAAAAAAA//8CAP//AQAAAP//AAACAAAAAAABAP//AQD+/wAA/////wAA/f///wAAAAAAAP7/AAAAAAAAAgD//wEAAQACAP//AAAAAAEAAQD//wAAAAAAAAAA//8BAAMA/v8AAP7/AQAAAAAAAQAAAAAA///+//7/AAAAAAAA//8BAP7/AQAAAP//AQABAAAAAQAAAP//AAD//wIA/v///wAAAQABAP//AAD//wEA//8BAP//AgAAAP///////wAAAQABAP//AwABAAAAAAAAAAAA/////wIAAwACAAAA/v8BAAAAAAAAAAAA//8AAP////8AAAAA/////wAA/////wEA/v8CAAEAAQD//wAAAAABAAAAAAD//wEAAQABAAAA//8CAAAAAAAAAP7/AAABAAAAAQABAAAAAgABAAAAAQD//wEAAwD+/wAA/v8AAAEAAAAAAAAAAAAAAAEAAAD//wMA/v///wAAAAACAAEAAAAAAP7///8DAAEAAQD//wEA/f8BAAEAAQD//wEAAQABAAMAAgAAAAEA//8AAP//BAAAAAIA/v//////AQABAAAAAAD//wEAAAACAAIAAQAAAAAAAgAAAAAAAAABAAIAAAABAAIAAQAAAP////8AAAAAAAD//wAAAQACAP//AAAAAAAAAQAAAAEA//8AAAAAAAD/////AQD//wAAAQD9////AQAAAAAA//8BAAAA///+/////v8BAAAAAQAAAAAAAAAAAAIA//8BAAAAAAACAP//AQD//wAAAAD/////AAD9/wAAAAACAAAAAgAAAAEAAQABAAEAAAAAAAEA//8AAAEAAQACAAAAAQAAAAEA//8BAAIAAAACAP//AAABAAAAAAAAAAAAAAD//wAAAQD/////AAAAAP////8AAAEAAAAAAP7///8BAAIAAQD//wEAAQAAAP//AgAAAAAAAAD//wAA//8CAP7/AQAAAP7/AAD+////AAAAAAAAAQABAAAA//8AAAEAAAABAP7/AAAAAP7/AAD+/wAAAQABAAEA/////////v8BAP///v///wIAAAAAAAAAAQAAAAIAAQAAAAAAAAABAAEAAAAAAAAAAAD//wEAAQD//wAAAQABAAAA/v/+/////////wAAAAD//wAAAAD/////AAAAAP7/AAD//wIA//8CAP//AQAAAP////8AAAAAAQABAP////8AAP//AQACAAAAAQAAAAAAAAAAAAAA//8BAAAAAAD+/wAA/v///wEAAAD+//7///8CAP7/AAABAP3/AwAAAAAAAAABAAIAAAABAAAAAQABAAIAAAAAAP//AAAAAAEAAAACAAEAAAACAAAAAAABAAAAAwAAAAAAAAD+/wAAAQD9//////8BAAAA/v8AAAAAAAAAAAAAAAD//wMA/v8BAAEAAQACAAAA/v8BAP//AwABAAIAAQABAP//AQAAAAEAAAAAAAEA//8AAAAAAAD/////AAABAAEAAAAAAP////8AAAAAAAAAAAAA/v8AAP//AQAAAP//AAABAAIAAQAAAAAAAgABAAAA/////wAAAQABAP//AQABAAEA/////wAAAAAAAAAAAAABAAEAAQAAAAAAAAAAAAAA//8AAP7/AQD9/wAAAgD//wEAAQABAAEA/v8AAAEA/////wAAAAAAAP//AAABAAAAAAAAAAAA//8CAP//AAABAAEAAQABAAAA//8BAAIAAgD//wAA/v8AAAEAAAD///7/AAAAAAEAAAABAAAAAQABAAAAAQACAAAA///+/wAAAQABAP7////+/wAA//8AAAAAAgAAAP//AQD9/wAAAAD//wAA//8AAAAAAQAAAAAAAQD//wAAAAAAAP//AQABAAAA/v8CAP//AAD///////8AAAAAAAACAAEA//8BAP7/AAAAAAEA//8BAAAAAQD//wAAAQD+/wAA/////wAAAAD//wAAAQABAAAA//8AAAEA/////wAA//8AAAAA/v/+/wEAAgABAP//AgD//wIA/////wAA//8AAAEAAQAAAAAAAQAAAAMAAAACAP//",showCount:!0},audio:{disabled:!0,defaultToggledOn:!1,language:"en-US",voiceNames:["Microsoft David - English (United States)","Alex (English - United States)"],rate:1,volume:1,icon:y,iconDisabled:v},chatHistory:{disabled:!1,maxEntries:30,storageKey:"rcb-history",storageType:"LOCAL_STORAGE",viewChatHistoryButtonText:"Load Chat History ⟳",chatHistoryLineBreakText:"----- Previous Chat History -----",autoLoad:!1},chatInput:{disabled:!1,allowNewline:!1,enabledPlaceholderText:"Type your message...",disabledPlaceholderText:"",showCharacterCount:!1,characterLimit:-1,botDelay:1e3,sendButtonIcon:h,blockSpam:!0,sendOptionOutput:!0,sendCheckboxOutput:!0,buttons:[s.VOICE_MESSAGE_BUTTON,s.SEND_MESSAGE_BUTTON]},chatWindow:{showScrollbar:!1,showTypingIndicator:!0,autoJumpToBottom:!1,showMessagePrompt:!0,messagePromptText:"New Messages ↓",messagePromptOffset:30,defaultOpen:!1},sensitiveInput:{maskInTextArea:!0,maskInUserBubble:!0,asterisksCount:10,hideInUserBubble:!1},userBubble:{animate:!0,showAvatar:!1,avatar:"data:image/svg+xml,%3csvg%20width='140'%20height='140'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cy='60.044'%20cx='70'%20fill='%235c5c5c'%20r='29'/%3e%3cpath%20d='m16.36%20156.186-.01-30.5c-.005-16.844%2024.168-30.507%2053.991-30.516%2029.823-.009%2054.004%2013.64%2054.01%2030.484l.008%2030.5-108%20.032z'%20fill='%235c5c5c'/%3e%3c/svg%3e",simulateStream:!1,streamSpeed:30},botBubble:{animate:!0,showAvatar:!1,avatar:l,simulateStream:!1,streamSpeed:30},voice:{disabled:!0,defaultToggledOn:!1,language:"en-US",timeoutPeriod:1e4,autoSendDisabled:!1,autoSendPeriod:1e3,sendAsAudio:!1,icon:g,iconDisabled:m},footer:{text:n.jsxs("div",{style:{cursor:"pointer",display:"flex",flexDirection:"row",alignItems:"center",columnGap:3},onClick:()=>window.open("https://react-chatbotify.com"),children:[n.jsx("span",{children:"Powered By "},0),n.jsx("div",{style:{borderRadius:"50%",width:14,height:14,display:"flex",justifyContent:"center",alignItems:"center",background:"linear-gradient(to right, #42b0c5, #491d8d)"},children:n.jsx(c,{style:{width:"80%",height:"80%",fill:"#fff"}})},1),n.jsx("span",{style:{fontWeight:"bold"},children:" React ChatBotify"},2)]}),buttons:[s.FILE_ATTACHMENT_BUTTON,s.EMOJI_PICKER_BUTTON]},fileAttachment:{disabled:!1,multiple:!0,accept:".png",icon:u,iconDisabled:u,sendFileName:!0,showMediaDisplay:!1},emoji:{disabled:!1,icon:b,iconDisabled:b,list:["😀","😃","😄","😅","😊","😌","😇","🙃","🤣","😍","🥰","🥳","🎉","🎈","🚀","⭐️"]},toast:{maxCount:3,forbidOnMax:!1,dismissOnClick:!0},event:{rcbPreInjectMessage:!1,rcbPostInjectMessage:!1,rcbStartSimulateStreamMessage:!1,rcbStopSimulateStreamMessage:!1,rcbStartStreamMessage:!1,rcbChunkStreamMessage:!1,rcbStopStreamMessage:!1,rcbRemoveMessage:!1,rcbLoadChatHistory:!1,rcbToggleChatWindow:!1,rcbStartSpeakAudio:!1,rcbToggleAudio:!1,rcbToggleNotifications:!1,rcbToggleVoice:!1,rcbChangePath:!1,rcbShowToast:!1,rcbDismissToast:!1,rcbUserSubmitText:!1,rcbUserUploadFile:!1,rcbTextAreaChangeValue:!1,rcbPreLoadChatBot:!1,rcbPostLoadChatBot:!1,rcbPreProcessBlock:!1,rcbPostProcessBlock:!1},ariaLabel:{chatButton:"open chat",audioButton:"toggle audio",closeChatButton:"close chat",emojiButton:"emoji picker",fileAttachmentButton:"upload file",notificationButton:"toggle notifications",sendButton:"send message",voiceButton:"toggle voice",inputTextArea:"input text area"},device:{desktopEnabled:!0,mobileEnabled:!0,applyMobileOptimizations:!0}},x=e.createContext({settings:{},setSettings:()=>null}),E=()=>e.useContext(x),k=({children:e,settings:t=w,setSettings:r})=>n.jsx(x.Provider,{value:{settings:t,setSettings:r},children:e}),P={tooltipStyle:{},notificationBadgeStyle:{},chatWindowStyle:{},headerStyle:{},bodyStyle:{},chatInputContainerStyle:{},chatInputAreaStyle:{},chatInputAreaFocusedStyle:{},chatInputAreaDisabledStyle:{},userBubbleStyle:{},botBubbleStyle:{},botOptionStyle:{},botOptionHoveredStyle:{},botCheckboxRowStyle:{},botCheckboxNextStyle:{},botCheckMarkStyle:{},botCheckMarkSelectedStyle:{},characterLimitStyle:{},characterLimitReachedStyle:{},chatHistoryLineBreakStyle:{},chatMessagePromptStyle:{},chatMessagePromptHoveredStyle:{},footerStyle:{},loadingSpinnerStyle:{},mediaDisplayContainerStyle:{},chatButtonStyle:{},chatHistoryButtonStyle:{},chatHistoryButtonHoveredStyle:{},sendButtonStyle:{},sendButtonHoveredStyle:{},sendButtonDisabledStyle:{},audioButtonStyle:{},audioButtonDisabledStyle:{},closeChatButtonStyle:{},emojiButtonStyle:{},emojiButtonDisabledStyle:{},fileAttachmentButtonStyle:{},fileAttachmentButtonDisabledStyle:{},notificationButtonStyle:{},notificationButtonDisabledStyle:{},voiceButtonStyle:{},voiceButtonDisabledStyle:{},chatIconStyle:{},audioIconStyle:{},audioIconDisabledStyle:{},closeChatIconStyle:{},emojiIconStyle:{},emojiIconDisabledStyle:{},fileAttachmentIconStyle:{},fileAttachmentIconDisabledStyle:{},notificationIconStyle:{},notificationIconDisabledStyle:{},voiceIconStyle:{},voiceIconDisabledStyle:{},sendIconStyle:{},sendIconDisabledStyle:{},sendIconHoveredStyle:{},rcbTypingIndicatorContainerStyle:{},rcbTypingIndicatorDotStyle:{},toastPromptContainerStyle:{},toastPromptStyle:{},toastPromptHoveredStyle:{}},C=e.createContext({styles:{},setStyles:()=>null}),B=()=>e.useContext(C),D=({children:e,styles:t=P,setStyles:r})=>n.jsx(C.Provider,{value:{styles:t,setStyles:r},children:e}),S=({buttons:t})=>{var r,o,i,A,a,s,l;const{settings:c}=E(),{styles:u}=B(),d={backgroundImage:`linear-gradient(to right, ${null==(r=c.general)?void 0:r.secondaryColor},\n\t\t\t${null==(o=c.general)?void 0:o.primaryColor})`,...u.headerStyle};return n.jsxs("div",{style:d,className:"rcb-chat-header-container",children:[n.jsxs("div",{className:"rcb-chat-header",children:[(null==(i=c.header)?void 0:i.showAvatar)&&n.jsx("div",{style:{backgroundImage:`url("${null==(A=c.header)?void 0:A.avatar}")`},className:"rcb-bot-avatar"}),e.isValidElement(null==(a=c.header)?void 0:a.title)?null==(s=c.header)?void 0:s.title:n.jsx("div",{style:{margin:0,fontSize:20,fontWeight:"bold"},children:null==(l=c.header)?void 0:l.title})]}),n.jsx("div",{className:"rcb-chat-header",children:null==t?void 0:t.map(((t,r)=>n.jsx(e.Fragment,{children:t},r)))})]})},I=e.createContext({}),T=()=>e.useContext(I),Q=({children:t,botIdRef:r,flowRef:o})=>{const i=e.useRef(null),A=e.useRef(""),a=e.useRef(null),s=e.useRef(new Map),l=e.useRef(null),c=e.useRef(""),u=e.useRef(!1),d=e.useRef(null),p=e.useRef(null),f=e.useRef(null);return n.jsx(I.Provider,{value:{botIdRef:r,flowRef:o,inputRef:i,timeoutIdRef:a,streamMessageMap:s,chatBodyRef:l,paramsInputRef:c,keepVoiceOnRef:u,audioContextRef:d,audioBufferRef:p,gainNodeRef:f,prevInputRef:A},children:t})},M=t=>{const[n,r]=e.useState(t),o=e.useRef(t);return[n,e=>{const t="function"==typeof e?e(o.current):e;o.current=t,r(t)},o]},O=e.createContext({}),N=()=>e.useContext(O),L=({children:t,settings:r})=>{var o,i,A,a,s,l;const[c,u,d]=M(!1),[p,f,h]=M((null==(o=null==r?void 0:r.chatWindow)?void 0:o.defaultOpen)??!1),[g,m,b]=M((null==(i=null==r?void 0:r.audio)?void 0:i.defaultToggledOn)??!1),[y,v,w]=M((null==(A=null==r?void 0:r.voice)?void 0:A.defaultToggledOn)??!1),[x,E,k]=M((null==(a=null==r?void 0:r.notification)?void 0:a.defaultToggledOn)??!0),[P,C]=e.useState(!1),[B,D]=e.useState(!1),[S,I,T]=M(!1),[Q,N,L]=M(!0),[R,j,H]=M(!1),[_,F]=e.useState(!1),[U,z]=e.useState(!1),[G,Y]=e.useState(0),[q,W]=e.useState(0),[X,V]=e.useState(!1),[K,J]=e.useState((null==(s=window.visualViewport)?void 0:s.height)??window.innerHeight),[Z,$]=e.useState((null==(l=window.visualViewport)?void 0:l.width)??window.innerWidth);return n.jsx(O.Provider,{value:{isBotTyping:c,setSyncedIsBotTyping:u,syncedIsBotTypingRef:d,isChatWindowOpen:p,setSyncedIsChatWindowOpen:f,syncedIsChatWindowOpenRef:h,audioToggledOn:g,setSyncedAudioToggledOn:m,syncedAudioToggledOnRef:b,voiceToggledOn:y,setSyncedVoiceToggledOn:v,syncedVoiceToggledOnRef:w,notificationsToggledOn:x,setSyncedNotificationsToggledOn:E,syncedNotificationsToggledOnRef:k,isLoadingChatHistory:P,setIsLoadingChatHistory:C,hasChatHistoryLoaded:B,setHasChatHistoryLoaded:D,isScrolling:S,setSyncedIsScrolling:I,syncedIsScrollingRef:T,textAreaDisabled:Q,setSyncedTextAreaDisabled:N,syncedTextAreaDisabledRef:L,textAreaSensitiveMode:R,setSyncedTextAreaSensitiveMode:j,syncedTextAreaSensitiveModeRef:H,hasInteractedPage:_,setHasInteractedPage:F,hasFlowStarted:U,setHasFlowStarted:z,unreadCount:G,setUnreadCount:Y,inputLength:q,setInputLength:W,blockAllowsAttachment:X,setBlockAllowsAttachment:V,viewportHeight:K,setViewportHeight:J,viewportWidth:Z,setViewportWidth:$},children:t})};var R=(e=>(e.START_SPEAK_AUDIO="rcb-start-speak-audio",e.TOGGLE_AUDIO="rcb-toggle-audio",e.TOGGLE_NOTIFICATIONS="rcb-toggle-notifications",e.TOGGLE_VOICE="rcb-toggle-voice",e.TOGGLE_CHAT_WINDOW="rcb-toggle-chat-window",e.PRE_INJECT_MESSAGE="rcb-pre-inject-message",e.POST_INJECT_MESSAGE="rcb-post-inject-message",e.START_SIMULATE_STREAM_MESSAGE="rcb-start-simulate-stream-message",e.STOP_SIMULATE_STREAM_MESSAGE="rcb-stop-simulate-stream-message",e.START_STREAM_MESSAGE="rcb-start-stream-message",e.CHUNK_STREAM_MESSAGE="rcb-chunk-stream-message",e.STOP_STREAM_MESSAGE="rcb-stop-stream-message",e.REMOVE_MESSAGE="rcb-remove-message",e.LOAD_CHAT_HISTORY="rcb-load-chat-history",e.CHANGE_PATH="rcb-change-path",e.SHOW_TOAST="rcb-show-toast",e.DISMISS_TOAST="rcb-dismiss-toast",e.USER_SUBMIT_TEXT="rcb-user-submit-text",e.USER_UPLOAD_FILE="rcb-user-upload-file",e.TEXT_AREA_CHANGE_VALUE="rcb-text-area-change-value",e.PRE_LOAD_CHATBOT="rcb-pre-load-chatbot",e.POST_LOAD_CHATBOT="rcb-post-load-chatbot",e.PRE_PROCESS_BLOCK="rcb-pre-process-block",e.POST_PROCESS_BLOCK="rcb-post-process-block",e))(R||{});const j={[R.START_SPEAK_AUDIO]:!0,[R.TOGGLE_AUDIO]:!0,[R.TOGGLE_VOICE]:!0,[R.TOGGLE_NOTIFICATIONS]:!0,[R.TOGGLE_CHAT_WINDOW]:!0,[R.PRE_INJECT_MESSAGE]:!0,[R.POST_INJECT_MESSAGE]:!1,[R.PRE_LOAD_CHATBOT]:!0,[R.POST_LOAD_CHATBOT]:!1,[R.START_SIMULATE_STREAM_MESSAGE]:!0,[R.STOP_SIMULATE_STREAM_MESSAGE]:!1,[R.START_STREAM_MESSAGE]:!0,[R.CHUNK_STREAM_MESSAGE]:!0,[R.STOP_STREAM_MESSAGE]:!0,[R.REMOVE_MESSAGE]:!0,[R.LOAD_CHAT_HISTORY]:!0,[R.CHANGE_PATH]:!0,[R.SHOW_TOAST]:!0,[R.DISMISS_TOAST]:!0,[R.USER_SUBMIT_TEXT]:!0,[R.USER_UPLOAD_FILE]:!0,[R.TEXT_AREA_CHANGE_VALUE]:!0,[R.PRE_PROCESS_BLOCK]:!0,[R.POST_PROCESS_BLOCK]:!0},H=async(e,t,n)=>{const r=new CustomEvent(e,{detail:t,cancelable:j[e]});return r.data=n,r.promises=[],window.dispatchEvent(r),await Promise.all(r.promises),r},_=e.createContext({paths:[],setSyncedPaths:()=>{},syncedPathsRef:{current:[]}}),F=()=>e.useContext(_),U=({children:e})=>{const[t,r,o]=M([]);return n.jsx(_.Provider,{value:{paths:t,setSyncedPaths:r,syncedPathsRef:o},children:e})},z=()=>{const{botIdRef:t}=T(),{syncedPathsRef:n}=F(),r=e.useCallback((()=>n.current.length>0?n.current.at(-1)??null:null),[]),o=e.useCallback((()=>n.current.length>1?n.current.at(-2)??null:null),[]);return{dispatchRcbEvent:e.useCallback((async(e,n)=>{const i={botId:t.current,currPath:r(),prevPath:o()};return await H(e,i,n)}),[t])}},G=()=>{const{settings:t}=E(),{isChatWindowOpen:n,setSyncedIsChatWindowOpen:r,viewportHeight:o,setViewportHeight:i,viewportWidth:A,setViewportWidth:a,setUnreadCount:s,setSyncedIsBotTyping:l,setSyncedIsScrolling:c,syncedIsBotTypingRef:u,syncedIsChatWindowOpenRef:d}=N(),{chatBodyRef:p}=T(),{dispatchRcbEvent:f}=z(),h=e.useCallback((()=>{if(!p.current)return!1;const e=p.current.getBoundingClientRect(),t=window.innerHeight??document.documentElement.clientHeight,n=window.innerWidth??document.documentElement.clientWidth;return e.top>=0&&e.left>=0&&e.bottom<=t&&e.right<=n}),[p]),g=e.useCallback((async e=>{var n;e!==d.current&&(null!=(n=t.event)&&n.rcbToggleChatWindow&&(await f(R.TOGGLE_CHAT_WINDOW,{currState:d.current,newState:!d.current})).defaultPrevented||r((e=>(e||s(0),!e))))}),[d]),m=e.useCallback((async e=>{e!==u.current&&l((e=>!e))}),[u]),b=e.useCallback(((e,t,n,r)=>(e/=r/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t),[]),y=e.useCallback(((e=0)=>{if(!p.current)return;const t=p.current.scrollHeight-p.current.clientHeight;if(e<=0)return p.current.scrollTop=t,void c(!1);const n=p.current.scrollTop,r=t-n;let o=0;const i=()=>{if(!p.current)return;o+=20;const t=b(o,n,r,e);p.current.scrollTop=t,o<e?requestAnimationFrame(i):c(!1)};i()}),[p]);return{isChatWindowOpen:n,setSyncedIsChatWindowOpen:r,toggleChatWindow:g,viewportHeight:o,setViewportHeight:i,viewportWidth:A,setViewportWidth:a,toggleIsBotTyping:m,scrollToBottom:y,getIsChatBotVisible:h}},Y=()=>{var t,r,o;const{settings:i}=E(),{styles:A}=B(),{unreadCount:a,isScrolling:s}=N(),{chatBodyRef:l}=T(),{scrollToBottom:c}=G(),[u,d]=e.useState(!1),p={color:null==(t=i.general)?void 0:t.primaryColor,borderColor:null==(r=i.general)?void 0:r.primaryColor,...A.chatMessagePromptHoveredStyle};return n.jsx("div",{className:"rcb-message-prompt-container "+(l.current&&(null==(f=i.chatWindow)?void 0:f.showMessagePrompt)&&s&&a>0?"visible":"hidden"),children:n.jsx("div",{onMouseEnter:()=>{d(!0)},onMouseLeave:()=>{d(!1)},style:u?p:{...A.chatMessagePromptStyle},onMouseDown:e=>{e.preventDefault(),c(600)},className:"rcb-message-prompt-text",children:null==(o=i.chatWindow)?void 0:o.messagePromptText})});var f},q=e.createContext({messages:[],setSyncedMessages:()=>{},syncedMessagesRef:{current:[]}}),W=()=>e.useContext(q),X=({children:e})=>{const[t,r,o]=M([]);return n.jsx(q.Provider,{value:{messages:t,setSyncedMessages:r,syncedMessagesRef:o},children:e})},V=({message:e,isNewSender:t})=>{var r,o,i,A,a,s;const{settings:l}=E(),{styles:c}=B(),u="string"==typeof e.content,d=e.content,p=e.contentWrapper?n.jsx(e.contentWrapper,{children:d}):d,f={backgroundColor:null==(r=l.general)?void 0:r.primaryColor,color:"#fff",maxWidth:null!=(o=l.userBubble)&&o.showAvatar?"65%":"70%",...c.userBubbleStyle},h=null!=(i=l.userBubble)&&i.animate?"rcb-user-message-entry":"",g=(null==(A=l.userBubble)?void 0:A.showAvatar)&&t,m="rcb-user-message"+(!t&&null!=(a=l.userBubble)&&a.showAvatar?" rcb-user-message-offset":"");return n.jsxs("div",{className:"rcb-user-message-container",children:[u?n.jsx("div",{style:f,className:`${m} ${h}`,children:p}):n.jsx(n.Fragment,{children:p}),g&&n.jsx("div",{style:{backgroundImage:`url("${null==(s=l.userBubble)?void 0:s.avatar}")`},className:"rcb-message-user-avatar"})]})},K=({message:e,isNewSender:t})=>{var r,o,i,A,a,s;const{settings:l}=E(),{styles:c}=B(),u="string"==typeof e.content,d=e.content,p=e.contentWrapper?n.jsx(e.contentWrapper,{children:d}):d,f={backgroundColor:null==(r=l.general)?void 0:r.secondaryColor,color:"#fff",maxWidth:null!=(o=l.botBubble)&&o.showAvatar?"65%":"70%",...c.botBubbleStyle},h=null!=(i=l.botBubble)&&i.animate?"rcb-bot-message-entry":"",g=(null==(A=l.botBubble)?void 0:A.showAvatar)&&t,m="rcb-bot-message"+(!t&&null!=(a=l.botBubble)&&a.showAvatar?" rcb-bot-message-offset":"");return n.jsxs("div",{className:"rcb-bot-message-container",children:[g&&n.jsx("div",{style:{backgroundImage:`url("${null==(s=l.botBubble)?void 0:s.avatar}")`},className:"rcb-message-bot-avatar"}),u?n.jsx("div",{style:f,className:`${m} ${h}`,children:p}):n.jsx(n.Fragment,{children:p})]})},J=()=>{var e,t,r;const{settings:o}=E(),{styles:i}=B(),A=null!=(e=o.botBubble)&&e.animate?"rcb-bot-message-entry":"";return n.jsxs("div",{className:"rcb-bot-message-container",children:[(null==(t=o.botBubble)?void 0:t.showAvatar)&&n.jsx("div",{style:{backgroundImage:`url("${null==(r=o.botBubble)?void 0:r.avatar}")`},className:"rcb-message-bot-avatar"}),n.jsx("div",{onMouseDown:e=>{e.preventDefault()},className:`rcb-bot-message ${A}`,children:n.jsxs("div",{className:"rcb-typing-indicator",style:{...null==i?void 0:i.rcbTypingIndicatorContainerStyle},children:[n.jsx("span",{className:"rcb-dot",style:{...null==i?void 0:i.rcbTypingIndicatorDotStyle}}),n.jsx("span",{className:"rcb-dot",style:{...null==i?void 0:i.rcbTypingIndicatorDotStyle}}),n.jsx("span",{className:"rcb-dot",style:{...null==i?void 0:i.rcbTypingIndicatorDotStyle}})]})})]})},Z=()=>{var t,r,o;const{settings:i}=E(),{styles:A}=B(),{messages:a}=W(),{scrollToBottom:s}=G(),{isBotTyping:l,syncedIsScrollingRef:c}=N(),{chatBodyRef:u}=T(),d={...null==A?void 0:A.bodyStyle,scrollbarWidth:null!=(t=i.chatWindow)&&t.showScrollbar?"auto":"none"};e.useEffect((()=>{c.current||s()}),[null==(r=u.current)?void 0:r.scrollHeight]);return n.jsxs("div",{style:d,className:"rcb-chat-body-container",ref:u,children:[a.map(((e,t)=>{const r=(e=>0===e||a[e].sender!==a[e-1].sender)(t);return"USER"===e.sender.toUpperCase()?n.jsx(V,{message:e,isNewSender:r},t):"BOT"===e.sender.toUpperCase()?n.jsx(K,{message:e,isNewSender:r},t):n.jsx("div",{children:e.content},t)})),l&&(null==(o=i.chatWindow)?void 0:o.showTypingIndicator)&&n.jsx(J,{}),n.jsx(Y,{})]})},$=({checkboxes:t,checkedItems:r,path:o})=>{var i,A,a,s,l,c,u,d,p,f,h;const{settings:g}=E(),{styles:m}=B(),{paths:b}=F(),{handleSubmitText:y}=$e(),[v,w]=e.useState(new Set),[x,k]=e.useState(!1),P={cursor:x?`url("${null==(i=g.general)?void 0:i.actionDisabledIcon}"), auto`:"pointer",color:null==(A=g.general)?void 0:A.primaryColor,borderColor:null==(a=g.general)?void 0:a.primaryColor,...m.botCheckboxRowStyle},C={cursor:x||v.size<t.min?`url("${null==(s=g.general)?void 0:s.actionDisabledIcon}"), auto`:"pointer",color:null==(l=g.general)?void 0:l.primaryColor,borderColor:null==(c=g.general)?void 0:c.primaryColor,...m.botCheckboxNextStyle},D={cursor:x?`url("${null==(u=g.general)?void 0:u.actionDisabledIcon}"), auto`:"pointer",color:"transparent",...m.botCheckMarkStyle},S={cursor:x?`url("${null==(d=g.general)?void 0:d.actionDisabledIcon}"), auto`:"pointer",color:"#fff",borderColor:null==(p=g.general)?void 0:p.primaryColor,backgroundColor:null==(f=g.general)?void 0:f.primaryColor,...m.botCheckMarkSelectedStyle};e.useEffect((()=>{b.length>0&&b[b.length-1]!==o&&k(!t.reusable)}),[b]);return n.jsxs("div",{className:"rcb-checkbox-container "+(null!=(h=g.botBubble)&&h.showAvatar?"rcb-checkbox-offset":""),children:[t.items.map((e=>n.jsx("div",{onMouseDown:n=>{n.preventDefault(),(e=>{x||w((n=>{const o=new Set(n);if(o.has(e))r.delete(e),o.delete(e);else{if(v.size==t.max)return n;r.add(e),o.add(e)}return o}))})(e)},style:P,className:"rcb-checkbox-row-container",children:n.jsxs("div",{className:"rcb-checkbox-row",children:[n.jsx("div",{style:v.has(e)?S:D,className:"rcb-checkbox-mark"}),n.jsx("div",{className:"rcb-checkbox-label",children:e})]})},e))),n.jsx("div",{style:C,className:"rcb-checkbox-next-button",onMouseDown:e=>{var n;if(e.preventDefault(),x||v.size<t.min)return;const o=Array.from(r).join(", ");let i;k(!t.reusable),i=null!=t.sendOutput?t.sendOutput:(null==(n=g.chatInput)?void 0:n.sendCheckboxOutput)??!0,y(o,i)}})]})},ee=async(e,t)=>{const r=e.checkboxes;if(!r)return;let o;if("function"==typeof r?(o=r(t),o instanceof Promise&&(o=await o)):o=r,Array.isArray(o)&&(o={items:o}),!("items"in o)||0==o.items.length)return;null==o.min&&(o.min=1),null==o.max&&(o.max=o.items.length),o.min>o.max&&(o.min=o.max),null==o.reusable&&(o.reusable=!1);const i=new Set,A=t.currPath,a=n.jsx($,{checkboxes:o,checkedItems:i,path:A});await t.injectMessage(a)},te=async(e,t)=>{const n=e.function;if(!n)return;const r=n(t);return r instanceof Promise?await r:r},ne=async(e,t,n)=>{const r=e.message;if(!r)return;if("string"==typeof r)return void(""!==r.trim()&&(n?await t.simulateStreamMessage(r):await t.injectMessage(r)));let o=r(t);o instanceof Promise&&(o=await o),"string"==typeof o&&""!==o.trim()&&(n?await t.simulateStreamMessage(o):await t.injectMessage(o))},re=({options:t,path:r})=>{var o,i,A,a,s,l;const{settings:c}=E(),{styles:u}=B(),{paths:d}=F(),{handleSubmitText:p}=$e(),[f,h]=e.useState([]),[g,m]=e.useState(!1),b={cursor:g?`url("${null==(o=c.general)?void 0:o.actionDisabledIcon}"), auto`:"pointer",color:null==(i=c.general)?void 0:i.primaryColor,borderColor:null==(A=c.general)?void 0:A.primaryColor,backgroundColor:"#fff",...u.botOptionStyle},y={color:"#fff",borderColor:null==(a=c.general)?void 0:a.primaryColor,backgroundColor:null==(s=c.general)?void 0:s.primaryColor,...u.botOptionHoveredStyle};e.useEffect((()=>{d.length>0&&d[d.length-1]!==r&&m(!t.reusable)}),[d]);return n.jsx("div",{className:"rcb-options-container "+(null!=(l=c.botBubble)&&l.showAvatar?"rcb-options-offset":""),children:t.items.map(((e,r)=>{const o=f[r]&&!g;return n.jsx("div",{className:"rcb-options",style:o?y:b,onMouseEnter:()=>(e=>{h((t=>{const n=[...t];return n[e]=!0,n}))})(r),onMouseLeave:()=>(e=>{h((t=>{const n=[...t];return n[e]=!1,n}))})(r),onMouseDown:n=>{var r;if(n.preventDefault(),g)return;let o;m(!t.reusable),o=null!=t.sendOutput?t.sendOutput:(null==(r=c.chatInput)?void 0:r.sendOptionOutput)??!0,p(e,o)},children:e},e)}))})},oe=async(e,t)=>{const r=e.options;if(!r)return;let o;if("function"==typeof r?(o=r(t),o instanceof Promise&&(o=await o)):o=r,Array.isArray(o)&&(o={items:o}),!("items"in o)||0==o.items.length)return;null==o.reusable&&(o.reusable=!1);const i=t.currPath,A=n.jsx(re,{options:o,path:i});await t.injectMessage(A)},ie=async(e,t)=>{const n=e.component;if(n){if("function"==typeof n){let e=n(t);if(e instanceof Promise&&(e=await e),!e)return;return void await t.injectMessage(e)}await t.injectMessage(n)}},Ae=async(e,t,n,r)=>{const o=e.transition;let i;if("function"==typeof o?(i=o(t),i instanceof Promise&&(i=await i)):i=o,"number"==typeof i&&(i={duration:i}),!i||i instanceof Promise||null==i.duration||"number"!=typeof i.duration)return;null==i.interruptable&&(i.interruptable=!1);const A=setTimeout((async()=>{const n=await r(e);n&&await le(n,t)}),i.duration);i.interruptable&&(n.current=A)},ae=async(e,t,n)=>{const r=e.chatDisabled;if(null==r)return;let o;"function"==typeof r?(o=r(t),o instanceof Promise&&(o=await o)):o=r,n(o)},se=async(e,t,n)=>{const r=e.isSensitive;if(!r)return void n(!1);let o;"function"==typeof r?(o=r(t),o instanceof Promise&&(o=await o)):o=r,n(o)},le=async(e,t)=>{if(!e)throw new Error("Block is not valid.");const n=Object.keys(e);for(const r of n)"function"===r&&await te(e,t);n.includes("path")&&await(async(e,t)=>{const n=e.path;if(!n)return!1;if("string"==typeof n)return await t.goToPath(n),!0;let r=n(t);if(r instanceof Promise&&(r=await r),!r)return!1;const o=r;return await t.goToPath(o),!0})(e,t)},ce=()=>{var e;const{settings:t}=E(),{styles:r}=B();return n.jsx("div",{className:"rcb-line-break-container",children:n.jsx("div",{style:{...r.chatHistoryLineBreakStyle},className:"rcb-line-break-text","data-testid":"chat-history-line-break-text",children:null==(e=t.chatHistory)?void 0:e.chatHistoryLineBreakText})})},ue=()=>{var e;const{settings:t}=E(),{styles:r}=B(),o={borderTop:`4px solid ${null==(e=t.general)?void 0:e.primaryColor}`,...r.loadingSpinnerStyle};return n.jsx("div",{className:"rcb-spinner-container",children:n.jsx("div",{style:o,className:"rcb-spinner"})})},de=()=>{try{if(typeof crypto<"u"&&"function"==typeof crypto.randomUUID)return crypto.randomUUID();throw new Error("crypto.randomUUID not available")}catch(e){if(typeof crypto<"u"&&"function"==typeof crypto.getRandomValues)return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){const t=crypto.getRandomValues(new Uint8Array(1))[0]%16;return("x"===e?t:3&t|8).toString(16)}));throw console.error(e),new Error("crypto.getRandomValues is also not available")}},pe=(e,t)=>({id:de(),content:e,sender:t,type:"string"==typeof e?"string":"object",timestamp:(new Date).toUTCString(),tags:[]});let fe,he=!1,ge="rcb-history",me=30,be=!1,ye=[];const ve=async e=>{if(be||!fe)return;const t=[],n=he?ye.length:0;for(let r=e.length-1;r>=n;r--){const n=e[r];if("SYSTEM"!==n.sender.toUpperCase()&&(""!==n.content&&t.unshift(n),t.length===me))break}let r=t.map(Pe);if(r.length<me){const e=me-r.length;r=[...ye.slice(-e),...r]}Ee(r)},we=()=>ye,xe=e=>{Ee(e),ye=e},Ee=e=>{fe&&fe.setItem(ge,JSON.stringify(e))},ke=e=>{var t,n,r,o,i;fe="SESSION_STORAGE"===(null==(n=null==(t=e.chatHistory)?void 0:t.storageType)?void 0:n.toUpperCase())?sessionStorage:localStorage,ge=null==(r=e.chatHistory)?void 0:r.storageKey,me=null==(o=e.chatHistory)?void 0:o.maxEntries,be=null==(i=e.chatHistory)?void 0:i.disabled,ye=(e=>{if(null!=e)try{return JSON.parse(e)}catch{return[]}return[]})(fe.getItem(ge))},Pe=t=>e.isValidElement(t.content)?structuredClone({id:t.id,content:r.renderToString(t.content),type:t.type,sender:t.sender.toUpperCase(),timestamp:t.timestamp,tags:t.tags}):t,Ce=(t,n,r)=>{const o=(new DOMParser).parseFromString(t,"text/html");return Array.from(o.body.childNodes).map(((t,o)=>{var i;if(t.nodeType===Node.TEXT_NODE)return t.textContent;{const A=t.tagName.toLowerCase();let a=Array.from(t.attributes).reduce(((e,t)=>{const n=t.name.toLowerCase();if("style"===n){const r=t.value.split(";").filter((e=>""!==e.trim())),o={};r.forEach((e=>{const[t,n]=e.split(":").map((e=>e.trim())),r=t.replace(/-([a-z])/g,((e,t)=>t.toUpperCase()));o[r]=n})),e[n]=o}else"audio"!==A&&"video"!==A||"controls"!==n||""!==t.value?e[n]=t.value:e[n]="true";return e}),{});if(Object.prototype.hasOwnProperty.call(a,"class")){const e=t.classList;a.className=e.toString(),delete a.class,null!=(i=n.botBubble)&&i.showAvatar&&(a=Be(e,a)),a=De(e,a,n,r),a=Se(e,a,n,r),a=Ie(e,a,n,r),a=Te(e,a,n,r)}if(["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"].includes(A))return e.createElement(A,{key:o,...a});{const i=Ce(t.innerHTML,n,r);return e.createElement(A,{key:o,...a},...i)}}}))},Be=(e,t)=>((e.contains("rcb-options-container")||e.contains("rcb-checkbox-container"))&&(t.className=`${e.toString()} rcb-options-offset`),t),De=(e,t,n,r)=>{var o,i,A,a,s;return e.contains("rcb-options")&&(t.style={...t.style,color:(null==(o=r.botOptionStyle)?void 0:o.color)??(null==(i=n.general)?void 0:i.primaryColor),borderColor:(null==(A=r.botOptionStyle)?void 0:A.color)??(null==(a=n.general)?void 0:a.primaryColor),cursor:`url("${null==(s=n.general)?void 0:s.actionDisabledIcon}"), auto`,...r.botOptionStyle}),t},Se=(e,t,n,r)=>{var o,i,A,a,s;return e.contains("rcb-checkbox-row-container")&&(t.style={...t.style,color:(null==(o=r.botCheckboxRowStyle)?void 0:o.color)??(null==(i=n.general)?void 0:i.primaryColor),borderColor:(null==(A=r.botCheckboxRowStyle)?void 0:A.color)??(null==(a=n.general)?void 0:a.primaryColor),cursor:`url("${null==(s=n.general)?void 0:s.actionDisabledIcon}"), auto`,...r.botCheckboxRowStyle}),t},Ie=(e,t,n,r)=>{var o,i,A,a,s;return e.contains("rcb-checkbox-next-button")&&(t.style={...t.style,color:(null==(o=r.botCheckboxNextStyle)?void 0:o.color)??(null==(i=n.general)?void 0:i.primaryColor),borderColor:(null==(A=r.botCheckboxNextStyle)?void 0:A.color)??(null==(a=n.general)?void 0:a.primaryColor),cursor:`url("${null==(s=n.general)?void 0:s.actionDisabledIcon}"), auto`,...r.botCheckboxNextStyle}),t},Te=(e,t,n,r)=>{var o,i;return(e.contains("rcb-media-display-image-container")||e.contains("rcb-media-display-video-container"))&&(t.style={...t.style,backgroundColor:null==(o=n.general)?void 0:o.primaryColor,maxWidth:null!=(i=n.userBubble)&&i.showAvatar?"65%":"70%",...r.mediaDisplayContainerStyle}),t},Qe=()=>{const{settings:t}=E(),{notificationsToggledOn:n,setSyncedNotificationsToggledOn:r,hasInteractedPage:o,unreadCount:i,setUnreadCount:A,syncedNotificationsToggledOnRef:a}=N(),{audioBufferRef:s,audioContextRef:l,gainNodeRef:c}=T(),{dispatchRcbEvent:u}=z(),d=e.useCallback((async()=>{var e,n;const r=null==(e=t.notification)?void 0:e.sound;l.current=new AudioContext;const o=l.current.createGain();let i;if(o.gain.value=(null==(n=t.notification)?void 0:n.volume)??.2,c.current=o,null!=r&&r.startsWith("data:audio")){const e=atob(r.split(",")[1]),t=new ArrayBuffer(e.length),n=new Uint8Array(t);for(let t=0;t<e.length;t++)n[t]=e.charCodeAt(t);i=t}else i=await(await fetch(r)).arrayBuffer();s.current=await l.current.decodeAudioData(i)}),[t.notification]),p=e.useCallback((()=>{var e;if(null!=(e=t.notification)&&e.disabled||!a.current||!o||!l.current||!s.current)return;const n=l.current.createBufferSource();n.buffer=s.current,n.connect(c.current).connect(l.current.destination),n.start()}),[t.notification,a,o,l,s,c]);return{unreadCount:i,setUnreadCount:A,notificationsToggledOn:n,toggleNotifications:e.useCallback((async e=>{var n;e!==a.current&&(null!=(n=t.event)&&n.rcbToggleNotifications&&(await u(R.TOGGLE_NOTIFICATIONS,{currState:a.current,newState:!a.current})).defaultPrevented||r((e=>!e)))}),[a]),playNotificationSound:p,setUpNotifications:d}},Me=(e,t)=>{var n,r,o,i;((e,t,n,r,o)=>{if(!window.SpeechSynthesisUtterance)return void console.info("Speech Synthesis API is not supported in this environment.");const i=new window.SpeechSynthesisUtterance;i.text=e,i.lang=t,i.rate=r,i.volume=o;let A=!1;for(const e of n)if(window.speechSynthesis.getVoices().find((t=>{if(t.name===e)return i.voice=t,window.speechSynthesis.speak(i),void(A=!0)})),A)break;A||window.speechSynthesis.speak(i)})(t,null==(n=e.audio)?void 0:n.language,null==(r=e.audio)?void 0:r.voiceNames,null==(o=e.audio)?void 0:o.rate,null==(i=e.audio)?void 0:i.volume)},Oe=()=>{const{settings:t}=E(),{audioToggledOn:n,setSyncedAudioToggledOn:r,syncedAudioToggledOnRef:o}=N(),{dispatchRcbEvent:i}=z(),A=e.useCallback((async e=>{var n;e!==o.current&&(null!=(n=t.event)&&n.rcbToggleAudio&&(await i(R.TOGGLE_AUDIO,{currState:o.current,newState:!o.current})).defaultPrevented||r((e=>!e)))}),[o]),a=e.useCallback((async e=>{var n,r;if(null!=(n=t.audio)&&n.disabled||!o.current)return;let A=e;if(null!=(r=t.event)&&r.rcbStartSpeakAudio){const e=await i(R.START_SPEAK_AUDIO,{textToRead:A});if(e.defaultPrevented)return;A=e.data.textToRead}Me(t,A)}),[t,o]);return{audioToggledOn:n,speakAudio:a,toggleAudio:A}},Ne=()=>{var t,n;const{settings:r}=E(),{messages:o,setSyncedMessages:i,syncedMessagesRef:A}=W(),{setSyncedIsBotTyping:a,setUnreadCount:s,syncedIsScrollingRef:l,syncedIsChatWindowOpenRef:c}=N(),{streamMessageMap:u,chatBodyRef:d,paramsInputRef:p}=T(),{scrollToBottom:f,getIsChatBotVisible:h}=G(),{dispatchRcbEvent:g}=z(),{speakAudio:m}=Oe(),{playNotificationSound:b}=Qe(),y=e.useCallback(((e,t=!1)=>{var n,o;ve(e);let i=!0;const A=e[e.length-1];if(!A)return;const a=A.sender.toUpperCase();"USER"===a&&(i=!1),null!=(n=r.general)&&n.embedded&&h()&&(i=!1),(c.current&&!l.current||t)&&(i=!1),i&&b(),!t&&("USER"!==a&&null!=(o=r.chatWindow)&&o.autoJumpToBottom||"USER"===a||!l.current)&&setTimeout((()=>f()),1)}),[r,d,c,l,b,f,h]),v=e.useCallback((async(e,t="BOT",n=null)=>{var o,u,d,f,h;if("string"!=typeof e)throw new Error("Content must be of type string to simulate stream.");t=t.toUpperCase();let b=pe(e,t);if(null!=(o=r.event)&&o.rcbStartSimulateStreamMessage){const e=await g(R.START_SIMULATE_STREAM_MESSAGE,{message:b});if(e.defaultPrevented)return null;n=e.data.simulateStreamChunker||n,b=e.data.message}a(!1);let v=30;v="BOT"===t?null==(u=r.botBubble)?void 0:u.streamSpeed:null==(d=r.userBubble)?void 0:d.streamSpeed;const w={...b,content:""};i((e=>[...e,w])),y(A.current);let x=b.content;n&&(x=n(x));let E=0;const k=x.length;"BOT"===b.sender.toUpperCase()&&(c.current||null!=(f=r.general)&&f.embedded)&&"string"==typeof b.content&&""!==b.content.trim()&&m(b.content);const P=new Promise((e=>{const t=setInterval((()=>{if(E>=k)return clearInterval(t),void e();i((e=>{const t=[...e];for(let e=t.length-1;e>=0;e--)if(t[e].id===w.id){const n=x[E];n&&(w.content+=n,t[e]=w),E++;break}return t}))}),v)}));return(l.current||!c.current)&&s((e=>e+1)),await P,ve(A.current),null!=(h=r.event)&&h.rcbStopSimulateStreamMessage&&await g(R.STOP_SIMULATE_STREAM_MESSAGE,{message:b}),"USER"===t&&(p.current=e),b}),[r,g,y,A,p,a,s,c,m]),w=e.useCallback((async(e,t="BOT")=>{var n,o,a;t=t.toUpperCase();let u=pe(e,t);if(null!=(n=r.event)&&n.rcbPreInjectMessage){const e=await g(R.PRE_INJECT_MESSAGE,{message:u});if(e.defaultPrevented)return null;u=e.data.message}return"BOT"===u.sender.toUpperCase()&&(c.current||null!=(o=r.general)&&o.embedded)&&"string"==typeof u.content&&""!==u.content.trim()&&m(u.content),(l.current||!c.current)&&s((e=>e+1)),null!=(a=r.event)&&a.rcbPostInjectMessage&&await g(R.POST_INJECT_MESSAGE,{message:u}),i((e=>[...e,u])),y(A.current),"USER"===t&&"string"==typeof e&&(p.current=e),u}),[r,g,y,p,A,c,m,s]),x=e.useCallback((async e=>{var t;const n=A.current.find((t=>t.id===e));return!n||null!=(t=r.event)&&t.rcbRemoveMessage&&(await g(R.REMOVE_MESSAGE,{message:n})).defaultPrevented?null:(i((t=>t.filter((t=>t.id!==e)))),y(A.current),s((e=>Math.max(e-1,0))),n)}),[g,null==(t=r.event)?void 0:t.rcbRemoveMessage,y,A,s]),k=e.useCallback((async(e,t="BOT")=>{var n,o;if(t=t.toUpperCase(),!u.current.has(t)){const o=pe(e,t);return null!=(n=r.event)&&n.rcbStartStreamMessage&&(await g(R.START_STREAM_MESSAGE,{message:o})).defaultPrevented?null:(a(!1),i((e=>[...e,o])),y(A.current),u.current.set(t,o.id),(l.current||!c.current)&&s((e=>e+1)),o)}const d={...pe(e,t),id:u.current.get(t)};return null!=(o=r.event)&&o.rcbChunkStreamMessage&&(await g(R.CHUNK_STREAM_MESSAGE,{message:d})).defaultPrevented?null:(i((e=>e.map((e=>e.id===d.id?d:e)))),y(A.current,!0),d)}),[g,r.event,y,A,a,s,u]),P=e.useCallback((async(e="BOT")=>{var t;if(e=e.toUpperCase(),!u.current.has(e))return!0;const n=u.current.get(e);let o;for(let e=0;e<3;e++){const e=A.current.find((e=>e.id===n));e&&(o=e),await new Promise((e=>setTimeout(e,20)))}return(null==(t=r.event)||!t.rcbStopStreamMessage||!(await g(R.STOP_STREAM_MESSAGE,{message:o})).defaultPrevented)&&(u.current.delete(e),ve(A.current),"USER"===e&&"string"==typeof(null==o?void 0:o.content)&&(p.current=o.content),!0)}),[g,null==(n=r.event)?void 0:n.rcbStopStreamMessage,u,p]);return{simulateStreamMessage:v,injectMessage:w,removeMessage:x,streamMessage:k,endStreamMessage:P,replaceMessages:e.useCallback((e=>{i(e),y(e)}),[y]),messages:o}};let Le,Re,je,He=!1,_e=null;const Fe=()=>{if(!Le){const e=window.SpeechRecognition||window.webkitSpeechRecognition;Le=null!=e?new e:null}return Le},Ue=(e,t,n,r,o,i)=>{var A,a,s;const l=Fe();if(!l)return;if(!He)try{He=!0,l.lang=null==(A=e.voice)?void 0:A.language,l.start()}catch{}const c=null==(a=e.voice)?void 0:a.timeoutPeriod,u=null==(s=e.voice)?void 0:s.autoSendPeriod;l.onresult=A=>{var a,s;clearTimeout(Re),Re=null,clearTimeout(je);const l=A.results[A.results.length-1][0].transcript;if(i.current){const t=null==(a=e.chatInput)?void 0:a.characterLimit,n=i.current.value+l;null!=t&&t>=0&&n.length>t?r(n.slice(0,t)):r(n),o(i.current.value.length)}c&&(Re=setTimeout((async()=>await Ye(t,i)),c)),null!=(s=e.voice)&&s.autoSendDisabled||(je=setTimeout(n,u))},l.onend=()=>{He?(l.start(),!Re&&c&&(Re=setTimeout((async()=>await Ye(t,i)),c))):(clearTimeout(Re),Re=null,clearTimeout(je))},c&&(Re=setTimeout((async()=>await Ye(t,i)),c))},ze=(e,t)=>{navigator.mediaDevices.getUserMedia({audio:!0}).then((n=>{if(_e=new MediaRecorder(n),!He)try{He=!0,_e.start()}catch{}_e.ondataavailable=e=>{t.current&&t.current.push(e.data)},_e.onstop=()=>{e(),n.getTracks().forEach((e=>e.stop()))}})).catch((e=>{console.error("Unable to use microphone:",e)}))},Ge=()=>{const e=Fe();e&&(He=!1,e&&e.stop(),_e&&"inactive"!==_e.state&&(_e.stop(),_e=null),clearTimeout(Re),Re=null,clearTimeout(je))},Ye=async(e,t)=>{var n;null!=(n=t.current)&&n.disabled||await e(),Ge()},qe=()=>{const{settings:t}=E(),{voiceToggledOn:n,setSyncedVoiceToggledOn:r,syncedVoiceToggledOnRef:o}=N(),{dispatchRcbEvent:i}=z(),A=e.useCallback((async e=>{var n;e!==o.current&&(null!=(n=t.event)&&n.rcbToggleVoice&&(await i(R.TOGGLE_VOICE,{currState:o.current,newState:!o.current})).defaultPrevented||r((e=>!e)))}),[o]),a=e.useCallback((e=>{((e,t)=>{var n,r,o;const i=Fe();null!=(n=t.voice)&&n.disabled||null==(r=t.chatInput)||!r.blockSpam||!i||(e&&!He?(He=!0,null!=(o=t.voice)&&o.sendAsAudio?null==_e||_e.start():i.start()):e||Ge())})(e,t)}),[t]);return{voiceToggledOn:n,toggleVoice:A,syncVoice:a}},We=()=>{var t;const{settings:n}=E(),{inputLength:r,setInputLength:o,textAreaDisabled:i,setSyncedTextAreaDisabled:A,textAreaSensitiveMode:a,setSyncedTextAreaSensitiveMode:s,syncedTextAreaDisabledRef:l,syncedTextAreaSensitiveModeRef:c}=N(),{inputRef:u,chatBodyRef:d,prevInputRef:p}=T(),{dispatchRcbEvent:f}=z(),{getIsChatBotVisible:h}=G(),g=e.useCallback((async e=>{var t,r,o;if(l.current&&u.current)u.current.value="";else if(u.current&&null!==p.current){const i=null==(t=n.chatInput)?void 0:t.characterLimit,A=(null==(r=n.chatInput)?void 0:r.allowNewline)?e:e.replace(/\n/g," ");if(null!=i&&i>=0&&A.length>i?u.current.value=A.slice(0,i):u.current.value=A,null!=(o=n.event)&&o.rcbTextAreaChangeValue&&(await f(R.TEXT_AREA_CHANGE_VALUE,{currValue:u.current.value,prevValue:p.current})).defaultPrevented)return void(u.current.value=p.current);p.current=u.current.value}}),[l,u,p,n,f]),m=e.useCallback((e=>{var t;null!=(t=u.current)&&t.disabled||setTimeout((()=>{var t,r,o;null!=(t=n.general)&&t.embedded?h()&&(null==(r=u.current)||r.focus()):"start"!==e&&(null==(o=u.current)||o.focus())}),100)}),[u,null==(t=n.general)?void 0:t.embedded,d,h]),b=e.useCallback((()=>{u.current&&u.current.focus()}),[]),y=e.useCallback((()=>{u.current&&u.current.blur()}),[]),v=e.useCallback((()=>u&&u.current?u.current.value:""),[]),w=e.useCallback((e=>{e!==l.current&&A((e=>!e))}),[l]),x=e.useCallback((e=>{e!==c.current&&s((e=>!e))}),[c]);return{textAreaDisabled:i,setSyncedTextAreaDisabled:A,textAreaSensitiveMode:a,setSyncedTextAreaSensitiveMode:s,inputLength:r,setInputLength:o,getTextAreaValue:v,setTextAreaValue:g,updateTextAreaFocus:m,focusTextArea:b,blurTextArea:y,toggleTextAreaDisabled:w,toggleTextAreaSensitiveMode:x}},Xe=e.createContext({toasts:[],setSyncedToasts:()=>{},syncedToastsRef:{current:[]}}),Ve=()=>e.useContext(Xe),Ke=({children:e})=>{const[t,r,o]=M([]);return n.jsx(Xe.Provider,{value:{toasts:t,setSyncedToasts:r,syncedToastsRef:o},children:e})},Je=()=>{const{settings:t}=E(),{toasts:n,setSyncedToasts:r,syncedToastsRef:o}=Ve(),{dispatchRcbEvent:i}=z(),A=e.useCallback((async(e,n)=>{var A,a,s,l;let c=null;if(o.current.length>=((null==(A=t.toast)?void 0:A.maxCount)??3)){if(null!=(a=t.toast)&&a.forbidOnMax)return null;c=de();let o={id:c,content:e,timeout:n};if(null!=(s=t.event)&&s.rcbShowToast){const e=await i(R.SHOW_TOAST,{toast:o});if(e.defaultPrevented)return null;o=e.data.toast}return r((e=>[...e.slice(1),o])),c}c=de();let u={id:c,content:e,timeout:n};if(null!=(l=t.event)&&l.rcbShowToast){const e=await i(R.SHOW_TOAST,{toast:u});if(e.defaultPrevented)return null;u=e.data.toast}return r((e=>[...e,u])),c}),[t,i]),a=e.useCallback((async e=>{var n;const A=o.current.find((t=>t.id===e));return!A||null!=(n=t.event)&&n.rcbDismissToast&&(await i(R.DISMISS_TOAST,{toast:A})).defaultPrevented?null:(r((t=>t.filter((t=>t.id!==e)))),e)}),[i]);return{showToast:A,dismissToast:a,toasts:n,replaceToasts:e.useCallback((e=>{r(e)}),[])}},Ze=()=>{var t,n,r,o,i;const{settings:A}=E(),{paths:a,setSyncedPaths:s,syncedPathsRef:l}=F(),{flowRef:c,streamMessageMap:u,paramsInputRef:d,keepVoiceOnRef:p,timeoutIdRef:f}=T(),{setSyncedIsBotTyping:h,setSyncedTextAreaDisabled:g,setSyncedTextAreaSensitiveMode:m,blockAllowsAttachment:b,setBlockAllowsAttachment:y}=N(),{dispatchRcbEvent:v}=z(),{endStreamMessage:w,injectMessage:x,removeMessage:k,simulateStreamMessage:P,streamMessage:C}=Ne(),{showToast:B,dismissToast:D}=Je(),{toggleChatWindow:S}=G(),{updateTextAreaFocus:I,setTextAreaValue:Q}=We(),{syncVoice:M}=qe(),O=e.useCallback((async e=>{var t;if(null!=(t=A.event)&&t.rcbPostProcessBlock){const t=await v(R.POST_PROCESS_BLOCK,{block:e});if(t.defaultPrevented)return null;e=t.data.block}return e}),[null==(t=A.event)?void 0:t.rcbPostProcessBlock,v]),L=e.useCallback((async(e,t)=>{var n,r,o,i;if(!e)return;let a=c.current[e];if(!a)return void h(!1);if(null!=(n=A.event)&&n.rcbPreProcessBlock){const e=await v(R.PRE_PROCESS_BLOCK,{block:a});if(e.defaultPrevented)return;a=e.data.block}h(!0),null!=(r=A.chatInput)&&r.blockSpam&&g(!0),m(!1);const s={prevPath:t,currPath:e,goToPath:_,setTextAreaValue:Q,userInput:d.current,endStreamMessage:w,injectMessage:x,removeMessage:k,simulateStreamMessage:P,streamMessage:C,toggleChatWindow:S,showToast:B,dismissToast:D};await(async(e,t,n,r,o,i,A)=>{if(!e)throw new Error("Block is not valid.");for(const a of Object.keys(e))switch(a){case"message":await ne(e,t,n);break;case"options":await oe(e,t);break;case"checkboxes":await ee(e,t);break;case"component":await ie(e,t);break;case"chatDisabled":await ae(e,t,o);break;case"isSensitive":await se(e,t,i);break;case"transition":await Ae(e,t,r,A)}})(a,s,(null==(o=A.botBubble)?void 0:o.simulateStream)??!1,f,g,m,O),h(!1),"chatDisabled"in a||g(null==(i=A.chatInput)?void 0:i.disabled),"isSensitive"in a||m(!1),y("function"==typeof a.file),I(e),M(p.current&&!a.chatDisabled),e!==t&&u.current.clear()}),[c,I,M,null==(n=A.botBubble)?void 0:n.simulateStream,null==(r=A.chatInput)?void 0:r.disabled,d,w,x,k,P,C,S,B,D,p,u]),j=e.useCallback((()=>l.current.length>0?l.current.at(-1)??null:null),[]),H=e.useCallback((()=>l.current.length>1?l.current.at(-2)??null:null),[]),_=e.useCallback((async e=>{var t;const n=j(),r=H();return(null==(t=A.event)||!t.rcbChangePath||!(await v(R.CHANGE_PATH,{currPath:n,prevPath:r,nextPath:e})).defaultPrevented)&&(s((t=>[...t,e])),await L(e,n),!0)}),[null==(o=A.chatInput)?void 0:o.blockSpam,null==(i=A.event)?void 0:i.rcbChangePath,L,v]),U=e.useCallback((e=>{s(e)}),[]);return{getCurrPath:j,getPrevPath:H,goToPath:_,blockAllowsAttachment:b,setBlockAllowsAttachment:y,paths:a,replacePaths:U,firePostProcessBlockEvent:O}},$e=()=>{var t,n,r,o;const{settings:i}=E(),{endStreamMessage:A,injectMessage:a,removeMessage:s,simulateStreamMessage:l,streamMessage:c}=Ne(),{syncedPathsRef:u}=F(),{getCurrPath:d,getPrevPath:p,goToPath:f,firePostProcessBlockEvent:h}=Ze(),{setSyncedTextAreaSensitiveMode:g,setSyncedTextAreaDisabled:m,setSyncedIsBotTyping:b,setBlockAllowsAttachment:y,setInputLength:v,syncedVoiceToggledOnRef:w,syncedTextAreaSensitiveModeRef:x}=N(),{flowRef:k,inputRef:P,keepVoiceOnRef:C,paramsInputRef:B,timeoutIdRef:D}=T(),{showToast:S,dismissToast:I}=Je(),{dispatchRcbEvent:Q}=z(),{syncVoice:M}=qe(),{setTextAreaValue:O}=We(),{toggleChatWindow:L}=G(),j=e.useCallback((async e=>{var t,n,r,o,A,s;const c=d();if(c&&k.current[c]){if(x.current){if(null!=(t=null==i?void 0:i.sensitiveInput)&&t.hideInUserBubble)return;if(null!=(n=null==i?void 0:i.sensitiveInput)&&n.maskInUserBubble)return void(null!=(r=i.userBubble)&&r.simulateStream?await l("*".repeat((null==(o=i.sensitiveInput)?void 0:o.asterisksCount)??10),"USER"):await a("*".repeat((null==(A=i.sensitiveInput)?void 0:A.asterisksCount)??10),"USER"))}null!=(s=i.userBubble)&&s.simulateStream?await l(e,"USER"):await a(e,"USER")}}),[k,d,i,a,l,x]),H=e.useCallback((async(e,t=!0)=>{var n,r;if(""===(e=e.trim()))return;t&&await j(e),D.current&&clearTimeout(D.current),P.current&&(O(""),v(0));const o=d();if(!o)return;let x=k.current[o];const E=await h(x);E&&(null!=(n=i.chatInput)&&n.blockSpam&&m(!0),C.current=w.current,M(!1),setTimeout((()=>{b(!0)}),400),g(!1),setTimeout((async()=>{var e;const t={prevPath:p(),currPath:d(),goToPath:f,setTextAreaValue:O,userInput:B.current,injectMessage:a,simulateStreamMessage:l,streamMessage:c,removeMessage:s,endStreamMessage:A,toggleChatWindow:L,showToast:S,dismissToast:I},n=u.current.length;await le(E,t),u.current.length===n&&(m("chatDisabled"in x?!!x.chatDisabled:!(null==(e=i.chatInput)||!e.disabled)),se(x,t,g),y("function"==typeof x.file),M(C.current),b(!1))}),null==(r=i.chatInput)?void 0:r.botDelay))}),[D,null==(t=i.chatInput)?void 0:t.blockSpam,null==(n=i.chatInput)?void 0:n.botDelay,null==(r=i.chatInput)?void 0:r.disabled,C,w,M,j,p,d,f,a,l,c,s,A,L,S,I,k]);return{handleSubmitText:e.useCallback((async(e,t=!0)=>{var n,r;e=e??(null==(n=P.current)?void 0:n.value),!(null!=(r=i.event)&&r.rcbUserSubmitText&&(await Q(R.USER_SUBMIT_TEXT,{inputText:e,sendInChat:t})).defaultPrevented||!d())&&H(e,t)}),[Q,d,H,P,null==(o=i.event)?void 0:o.rcbUserSubmitText])}},et=()=>{var t;const{settings:n}=E();return e.useMemo((()=>{var e;if(typeof window>"u"||!window.navigator)return!1;if(null==(e=n.device)||!e.applyMobileOptimizations)return!0;const t=navigator.userAgent,r=!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t),o=window.innerWidth>=768;return r&&o}),[null==(t=n.device)?void 0:t.applyMobileOptimizations])},tt=({buttons:t})=>{var r,o,i,A,a,s,l,c,u,d,p;const f=et(),{settings:h}=E(),{styles:g}=B(),{textAreaDisabled:m,textAreaSensitiveMode:b,inputLength:y,hasFlowStarted:v,setHasFlowStarted:w,setInputLength:x}=N(),{inputRef:k}=T(),[P,C]=e.useState(!1),[D,S]=e.useState(!1),{handleSubmitText:I}=$e(),{setTextAreaValue:Q}=We(),M={boxSizing:f?"content-box":"border-box",...g.chatInputAreaStyle},O={outline:m?"":"none",boxShadow:m?"":`0 0 5px ${null==(r=h.general)?void 0:r.primaryColor}`,boxSizing:f?"content-box":"border-box",...g.chatInputAreaStyle,...g.chatInputAreaFocusedStyle},L={cursor:`url("${null==(o=h.general)?void 0:o.actionDisabledIcon}"), auto`,caretColor:"transparent",boxSizing:f?"content-box":"border-box",...g.chatInputAreaStyle,...g.chatInputAreaDisabledStyle},R={color:"#989898",...g.characterLimitStyle},j={color:"#ff0000",...g.characterLimitReachedStyle},H=m?null==(i=h.chatInput)?void 0:i.disabledPlaceholderText:null==(A=h.chatInput)?void 0:A.enabledPlaceholderText,_=()=>{m||C(!0)},F=()=>{C(!1)},U=()=>{S(!0)},z=()=>{S(!1)},G=async e=>{var t;if(!D&&"Enter"===e.key){if(e.shiftKey)return void(null!=(t=h.chatInput)&&t.allowNewline||e.preventDefault());e.preventDefault(),await I()}},Y=e=>{k.current&&(Q(e.target.value),x(k.current.value.length))};return n.jsxs("div",{"aria-label":(null==(a=h.ariaLabel)?void 0:a.inputTextArea)??"input text area",role:"textbox",onMouseDown:e=>{var t;e.stopPropagation(),!v&&"ON_CHATBOT_INTERACT"===(null==(t=h.general)?void 0:t.flowStartTrigger)&&w(!0)},style:{...g.chatInputContainerStyle},className:"rcb-chat-input",children:[b&&null!=(s=h.sensitiveInput)&&s.maskInTextArea?n.jsx("input",{ref:k,type:"password",className:"rcb-chat-input-textarea",style:m?L:P?O:M,placeholder:H,onChange:Y,onKeyDown:G,onFocus:_,onBlur:F,onCompositionStart:U,onCompositionEnd:z}):n.jsx("textarea",{ref:k,style:m?L:P?O:M,rows:1,className:"rcb-chat-input-textarea",placeholder:H,onChange:Y,onKeyDown:G,onFocus:_,onBlur:F,onCompositionStart:U,onCompositionEnd:z}),n.jsxs(n.Fragment,{children:[null==t?void 0:t.map(((t,r)=>n.jsx(e.Fragment,{children:t},r))),(null==(l=h.chatInput)?void 0:l.showCharacterCount)&&null!=(null==(c=h.chatInput)?void 0:c.characterLimit)&&(null==(u=h.chatInput)?void 0:u.characterLimit)>0&&n.jsxs("div",{className:"rcb-chat-input-char-counter",style:y>=(null==(d=h.chatInput)?void 0:d.characterLimit)?j:R,children:[y,"/",null==(p=h.chatInput)?void 0:p.characterLimit]})]})]})},nt=({buttons:t})=>{var r;const{settings:o}=E(),{styles:i}=B();return n.jsxs("div",{"data-testid":"chatbot-footer-container",style:{...i.footerStyle},className:"rcb-chat-footer-container",children:[n.jsx("div",{className:"rcb-chat-footer",children:null==t?void 0:t.map(((t,r)=>n.jsx(e.Fragment,{children:t},r)))}),n.jsx("span",{children:null==(r=o.footer)?void 0:r.text})]})},rt=()=>{var e,t,r,o,i,A,a;const{settings:s}=E(),{styles:l}=B(),{unreadCount:c}=N(),{isChatWindowOpen:u,toggleChatWindow:d}=G(),p={backgroundImage:`linear-gradient(to right, ${null==(e=s.general)?void 0:e.secondaryColor},\n\t\t\t${null==(t=s.general)?void 0:t.primaryColor})`,...l.chatButtonStyle},f={backgroundImage:`url(${null==(r=s.chatButton)?void 0:r.icon})`,fill:"#fff",width:75,height:75,...l.chatIconStyle};return n.jsx(n.Fragment,{children:!(null!=(o=s.general)&&o.embedded)&&n.jsxs("div",{"aria-label":(null==(i=s.ariaLabel)?void 0:i.chatButton)??"open chat",role:"button",style:p,className:"rcb-toggle-button "+(u?"rcb-button-hide":"rcb-button-show"),onClick:()=>d(!0),children:[(()=>{var e;const t=null==(e=s.chatButton)?void 0:e.icon;return t&&"string"!=typeof t?t&&n.jsx("span",{className:"rcb-toggle-icon",children:n.jsx(t,{style:f})}):n.jsx("span",{className:"rcb-toggle-icon",style:f})})(),!(null!=(A=s.notification)&&A.disabled)&&(null==(a=s.notification)?void 0:a.showCount)&&n.jsx("span",{style:{...l.notificationBadgeStyle},className:"rcb-badge",children:c})]})})},ot=()=>{var t,r,o,i;const A=et(),{settings:a}=E(),{styles:s}=B(),{chatBodyRef:l}=T(),{isChatWindowOpen:c,toggleChatWindow:u}=G(),[d,p]=e.useState(!1),[f,h]=e.useState(!1),[g,m]=e.useState(0);e.useEffect((()=>{var e,t,n;const r=null==(e=a.tooltip)?void 0:e.mode;if("ALWAYS"===r)if(A){let e;e=c?((null==(t=l.current)?void 0:t.offsetWidth)??375)-("number"==typeof(null==(n=s.chatButtonStyle)?void 0:n.width)?s.chatButtonStyle.width:75):0,m(e),p(!0)}else p(!c);else"NEVER"===r?p(!1):"START"===r?f?p(!1):(h(!0),p(!0)):"CLOSE"===r&&p(!c)}),[c]);const b={transform:`translateX(-${g}px)`,right:((null==(t=s.chatButtonStyle)?void 0:t.width)??75)+40,bottom:30,backgroundColor:null==(r=a.general)?void 0:r.secondaryColor,color:"#fff",...s.tooltipStyle},y={borderColor:`transparent transparent transparent ${b.backgroundColor}`};return n.jsx(n.Fragment,{children:!(null!=(o=a.general)&&o.embedded)&&n.jsxs("div",{"data-testid":"chat-tooltip",style:b,className:"rcb-chat-tooltip "+(d?"rcb-tooltip-show":"rcb-tooltip-hide"),onClick:()=>u(!0),children:[n.jsx("span",{children:null==(i=a.tooltip)?void 0:i.text}),n.jsx("span",{className:"rcb-chat-tooltip-tail",style:y})]})})},it=({id:t,content:r,timeout:o})=>{var i,A;const{settings:a}=E(),{styles:s}=B(),[l]=e.useState({toastPromptStyle:{...s.toastPromptStyle},toastPromptHoveredStyle:{...s.toastPromptHoveredStyle}}),{dismissToast:c}=Je(),[u,d]=e.useState(!1),p={color:null==(i=a.general)?void 0:i.primaryColor,borderColor:null==(A=a.general)?void 0:A.primaryColor,...l.toastPromptHoveredStyle};return e.useEffect((()=>{if(o){const e=setTimeout((()=>{c(t)}),o);return()=>clearTimeout(e)}}),[t,c,o]),"string"==typeof r?n.jsx("div",{onMouseEnter:()=>{d(!0)},onMouseLeave:()=>{d(!1)},style:u?p:l.toastPromptStyle,onMouseDown:async e=>{var n;null!=(n=a.toast)&&n.dismissOnClick&&(e.preventDefault(),await c(t))},className:"rcb-toast-prompt",children:r}):n.jsx(n.Fragment,{children:r})},At=()=>{var e,t,r,o,i,A,a,s,l,c,u,d;const{styles:p}=B(),{toasts:f}=Ve(),h={bottom:`calc(${"number"==typeof(null==(e=p.footerStyle)?void 0:e.height)?`${null==(t=p.footerStyle)?void 0:t.height}px`:(null==(r=p.footerStyle)?void 0:r.height)??"50px"} + ${"number"==typeof(null==(o=p.chatInputContainerStyle)?void 0:o.height)?`${null==(i=p.chatInputContainerStyle)?void 0:i.height}px`:(null==(A=p.chatInputContainerStyle)?void 0:A.height)??"70px"} + 20px)`,width:300,minWidth:`calc(${"number"==typeof(null==(a=p.chatWindowStyle)?void 0:a.width)?`${null==(s=p.chatWindowStyle)?void 0:s.width}px`:(null==(l=p.chatWindowStyle)?void 0:l.width)??"375px"} / 2)`,maxWidth:`calc(${"number"==typeof(null==(c=p.chatWindowStyle)?void 0:c.width)?`${null==(u=p.chatWindowStyle)?void 0:u.width}px`:(null==(d=p.chatWindowStyle)?void 0:d.width)??"375px"} - 50px)`,...p.toastPromptContainerStyle};return n.jsx("div",{className:"rcb-toast-prompt-container",style:h,children:f.map((e=>n.jsx(it,{id:e.id,content:e.content,timeout:e.timeout},e.id)))})},at=({file:e,fileType:t,fileUrl:r})=>{var o,i,A;const{settings:a}=E(),{styles:s}=B(),l={backgroundColor:null==(o=a.general)?void 0:o.primaryColor,maxWidth:null!=(i=a.userBubble)&&i.showAvatar?"65%":"70%",...s.mediaDisplayContainerStyle};return n.jsx(n.Fragment,{children:r?n.jsxs(n.Fragment,{children:["image"===t&&r&&n.jsx("div",{style:l,className:"rcb-media-display-image-container rcb-media-entry","data-testid":"media-display-image-container",children:n.jsx("img",{src:r,alt:"Image Display",className:"rcb-media-display-image"})}),"video"===t&&r&&n.jsx("div",{style:l,className:"rcb-media-display-video-container rcb-media-entry","data-testid":"media-display-video-container",children:n.jsxs("video",{controls:!0,className:"rcb-media-display-video",children:[n.jsx("source",{src:r,type:e.type}),"Your browser does not support the video tag."]})}),"audio"===t&&r&&n.jsxs("audio",{"data-testid":"media-display-audio-container",style:{maxWidth:null!=(A=a.userBubble)&&A.showAvatar?"65%":"70%"},controls:!0,className:"rcb-media-display-audio rcb-media-entry",children:[n.jsx("source",{src:r,type:e.type}),"Your browser does not support the audio tag."]})]}):n.jsx(n.Fragment,{})})},st=async e=>{if(!e)return{fileType:null,fileUrl:null};const t=e.type.split("/")[0];if(!["image","video","audio"].includes(t))return{fileType:null,fileUrl:null};try{return{fileType:t,fileUrl:await new Promise(((t,n)=>{const r=new FileReader;r.onload=()=>t(r.result),r.onerror=()=>n(new Error("File reading failed")),r.readAsDataURL(e)}))}}catch(e){return console.error(e),{fileType:null,fileUrl:null}}},lt=()=>{var e,t,r,o,i,A;const{settings:a}=E(),{styles:s}=B(),{injectMessage:l,simulateStreamMessage:c,streamMessage:u,removeMessage:d,endStreamMessage:p}=Ne(),{getCurrPath:f,getPrevPath:h,goToPath:g,blockAllowsAttachment:m}=Ze(),{flowRef:b,inputRef:y}=T(),v=b.current,{showToast:w,dismissToast:x}=Je(),{dispatchRcbEvent:k}=z(),{toggleChatWindow:P}=G(),{setTextAreaValue:C}=We(),{handleSubmitText:D}=$e(),S={cursor:`url("${null==(e=a.general)?void 0:e.actionDisabledIcon}"), auto`,...s.fileAttachmentButtonStyle,...s.fileAttachmentButtonDisabledStyle},I={backgroundImage:`url(${null==(t=a.fileAttachment)?void 0:t.icon})`,fill:"#a6a6a6",...s.fileAttachmentIconStyle},Q={backgroundImage:`url(${null==(r=a.fileAttachment)?void 0:r.icon})`,fill:"#a6a6a6",...s.fileAttachmentIconStyle,...s.fileAttachmentIconDisabledStyle};return n.jsxs("label",{"aria-label":(null==(o=a.ariaLabel)?void 0:o.fileAttachmentButton)??"upload file",role:"button",className:m?"rcb-attach-button-enabled":"rcb-attach-button-disabled",style:m?{...s.fileAttachmentButtonStyle}:S,children:[n.jsx("input",{className:"rcb-attach-input",role:"file",type:"file",onChange:async e=>{var t,r,o,i;const A=e.target.files;if(!A)return;const s=Array.from(A);if(e.target.value="",null!=(t=a.event)&&t.rcbUserUploadFile&&(await k(R.USER_UPLOAD_FILE,{files:s})).defaultPrevented)return;const m=f();if(!m)return;const b=v[m];if(!b)return;const E=b.file;if(null!=E){const e=[];for(let t=0;t<s.length;t++){if(e.push(s[t].name),null==(r=a.fileAttachment)||!r.showMediaDisplay)continue;const o=await st(s[t]);!o.fileType||!o.fileUrl||await l(n.jsx(at,{file:s[t],fileType:o.fileType,fileUrl:o.fileUrl}),"USER")}await D("📄 "+e.join(", "),null==(o=a.fileAttachment)?void 0:o.sendFileName),await E({userInput:null==(i=y.current)?void 0:i.value,prevPath:h(),currPath:f(),goToPath:g,setTextAreaValue:C,injectMessage:l,simulateStreamMessage:c,streamMessage:u,removeMessage:d,endStreamMessage:p,toggleChatWindow:P,showToast:w,dismissToast:x,files:s})}},multiple:null==(i=a.fileAttachment)?void 0:i.multiple,accept:null==(A=a.fileAttachment)?void 0:A.accept,disabled:!m}),(()=>{var e,t;const r=m?null==(e=a.fileAttachment)?void 0:e.icon:null==(t=a.fileAttachment)?void 0:t.iconDisabled;return r&&"string"!=typeof r?r&&n.jsx("span",{className:m?"rcb-attach-icon-enabled":"rcb-attach-icon-disabled",children:n.jsx(r,{style:m?I:Q})}):n.jsx("span",{className:m?"rcb-attach-icon-enabled":"rcb-attach-icon-disabled",style:m?I:Q})})()]})},ct=()=>{var t,r,o,i,A,a;const{settings:s}=E(),{styles:l}=B(),{syncedTextAreaDisabledRef:c}=N(),{inputRef:u}=T(),{textAreaDisabled:d,setTextAreaValue:p}=We(),f=e.useRef(null),h=e.useRef(null),[g,m]=e.useState(!1),b={cursor:`url("${null==(t=s.general)?void 0:t.actionDisabledIcon}"), auto`,...l.emojiButtonStyle,...l.emojiButtonDisabledStyle},y={backgroundImage:`url(${null==(r=s.emoji)?void 0:r.icon})`,fill:"#a6a6a6",...l.emojiIconStyle},v={backgroundImage:`url(${null==(o=s.emoji)?void 0:o.icon})`,fill:"#a6a6a6",...l.emojiIconStyle,...l.emojiIconDisabledStyle};e.useEffect((()=>{const e=e=>{const t=e.composedPath();f.current&&!t.includes(f.current)&&h.current&&!t.includes(h.current)&&m(!1)},t=()=>{(()=>{if(f.current&&h.current){const e=h.current.getBoundingClientRect(),t=f.current.offsetHeight,n=e.top-t-8;f.current.style.left=`${e.left}px`,f.current.style.top=`${n}px`}})()};return document.addEventListener("mousedown",e),window.addEventListener("resize",t),()=>{document.removeEventListener("mousedown",e),window.removeEventListener("resize",t)}}),[]);return n.jsxs(n.Fragment,{children:[n.jsx("div",{"aria-label":(null==(i=s.ariaLabel)?void 0:i.emojiButton)??"emoji picker",role:"button",ref:h,className:""+(d?"rcb-emoji-button-disabled":"rcb-emoji-button-enabled"),style:d?b:{...l.emojiButtonStyle},onMouseDown:e=>{e.preventDefault(),c.current?m(!1):m((e=>!e))},children:(()=>{var e,t;const r=d?null==(e=s.emoji)?void 0:e.iconDisabled:null==(t=s.emoji)?void 0:t.icon;return r&&"string"!=typeof r?r&&n.jsx("span",{className:""+(d?"rcb-emoji-icon-disabled":"rcb-emoji-icon-enabled"),children:n.jsx(r,{style:d?v:y})}):n.jsx("span",{className:""+(d?"rcb-emoji-icon-disabled":"rcb-emoji-icon-enabled"),style:d?v:y})})()}),g&&n.jsx("div",{className:"rcb-emoji-button-popup",ref:f,children:null==(a=null==(A=s.emoji)?void 0:A.list)?void 0:a.map(((e,t)=>n.jsx("span",{className:"rcb-emoji",onMouseDown:t=>((e,t)=>{e.preventDefault(),u.current&&(p(u.current.value+t),setTimeout((()=>{const e=u.current;if(e){e.focus();const t=e.value.length;e.setSelectionRange(t,t)}}),50)),m(!1)})(t,e),children:e},t)))})]})},ut=()=>{var e,t,r;const{settings:o}=E(),{styles:i}=B(),{audioToggledOn:A,toggleAudio:a}=Oe(),s={backgroundImage:`url(${null==(e=o.audio)?void 0:e.icon})`,fill:"#fcec3d",...i.audioIconStyle},l={backgroundImage:`url(${null==(t=o.audio)?void 0:t.iconDisabled})`,fill:"#e8eaed",...i.audioIconStyle,...i.audioIconDisabledStyle};return n.jsx("div",{"aria-label":(null==(r=o.ariaLabel)?void 0:r.audioButton)??"toggle audio",role:"button",onMouseDown:async e=>{e.preventDefault(),await a()},style:A?{...i.audioButtonStyle}:{...i.audioButtonStyle,...i.audioButtonDisabledStyle},children:(()=>{var e,t;const r=A?null==(e=o.audio)?void 0:e.icon:null==(t=o.audio)?void 0:t.iconDisabled;return r&&"string"!=typeof r?r&&n.jsx("span",{className:"rcb-audio-icon","data-testid":"rcb-audio-icon",children:n.jsx(r,{style:A?s:l,"data-testid":"rcb-audio-icon-svg"})}):n.jsx("span",{className:"rcb-audio-icon","data-testid":"rcb-audio-icon",style:A?s:l})})()})},dt=()=>{var e,t;const{settings:r}=E(),{styles:o}=B(),{toggleChatWindow:i}=G(),A={backgroundImage:`url(${null==(e=r.header)?void 0:e.closeChatIcon})`,fill:"#e8eaed",stroke:"#e8eaed",...o.closeChatIconStyle};return n.jsx("div",{"aria-label":(null==(t=r.ariaLabel)?void 0:t.closeChatButton)??"close chat",role:"button",onMouseDown:e=>{e.stopPropagation(),i(!1)},style:{...o.closeChatButtonStyle},children:(()=>{var e;const t=null==(e=r.header)?void 0:e.closeChatIcon;return t&&"string"!=typeof t?t&&n.jsx("span",{className:"rcb-close-chat-icon","data-testid":"rcb-close-chat-icon",children:n.jsx(t,{style:A})}):n.jsx("span",{className:"rcb-close-chat-icon","data-testid":"rcb-close-chat-icon",style:A})})()})},pt=()=>{var e,t,r;const{settings:o}=E(),{styles:i}=B(),{notificationsToggledOn:A,toggleNotifications:a}=(()=>{const{notificationsToggledOn:e,toggleNotifications:t,playNotificationSound:n}=Qe();return{notificationsToggledOn:e,toggleNotifications:t,playNotificationSound:n}})(),s={backgroundImage:`url(${null==(e=o.notification)?void 0:e.icon})`,fill:"#fcec3d",...i.notificationIconStyle},l={backgroundImage:`url(${null==(t=o.notification)?void 0:t.iconDisabled})`,fill:"#e8eaed",...i.notificationIconStyle,...i.notificationIconDisabledStyle};return n.jsx("div",{"aria-label":(null==(r=o.ariaLabel)?void 0:r.notificationButton)??"toggle notifications",role:"button",onMouseDown:async e=>{e.preventDefault(),await a()},style:A?{...i.notificationButtonStyle}:{...i.notificationButtonStyle,...i.notificationButtonDisabledStyle},children:(()=>{var e,t;const r=A?null==(e=o.notification)?void 0:e.icon:null==(t=o.notification)?void 0:t.iconDisabled;return r&&"string"!=typeof r?r&&n.jsx("span",{className:"rcb-notification-icon","data-testid":"rcb-notification-icon",children:n.jsx(r,{style:A?s:l,"data-testid":"rcb-notification-icon-svg"})}):n.jsx("span",{className:"rcb-notification-icon","data-testid":"rcb-notification-icon",style:A?s:l})})()})},ft=()=>{var t,r,o;const{settings:i}=E(),{styles:A}=B(),{injectMessage:a}=Ne(),{inputRef:s}=T(),{voiceToggledOn:l,toggleVoice:c}=qe(),{setInputLength:u,setTextAreaValue:d,textAreaDisabled:p}=We(),{handleSubmitText:f}=$e(),h=e.useRef([]),[g,m]=e.useState(!1);e.useEffect((()=>{var e;null!=(e=i.voice)&&e.sendAsAudio?(w(),h.current=[]):f()}),[g]),e.useEffect((()=>{l?((e,t,n,r,o,i,A)=>{var a;null!=(a=e.voice)&&a.sendAsAudio?ze(n,i):Ue(e,t,n,r,o,A)})(i,c,v,d,u,h,s):Ge()}),[l]);const b={backgroundImage:`url(${null==(t=i.voice)?void 0:t.icon})`,fill:"#9aa0a6",...A.voiceIconStyle},y={backgroundImage:`url(${null==(r=i.voice)?void 0:r.iconDisabled})`,fill:"#9aa0a6",...A.voiceIconStyle,...A.voiceIconDisabledStyle},v=()=>{m((e=>!e))},w=async()=>{const e=new Blob(h.current,{type:"audio/wav"}),t=new File([e],"voice-input.wav",{type:"audio/wav"}),r=await st(t);!r.fileType||!r.fileUrl||await a(n.jsx(at,{file:t,fileType:r.fileType,fileUrl:r.fileUrl}),"USER")};return n.jsx("div",{"aria-label":(null==(o=i.ariaLabel)?void 0:o.voiceButton)??"toggle voice",role:"button",onMouseDown:async e=>{e.preventDefault(),!p&&await c()},style:l&&!p?{...A.voiceButtonStyle}:{...A.voiceButtonStyle,...A.voiceButtonDisabledStyle},className:l&&!p?"rcb-voice-button-enabled":"rcb-voice-button-disabled",children:(()=>{var e,t;const r=l?null==(e=i.voice)?void 0:e.icon:null==(t=i.voice)?void 0:t.iconDisabled;return r&&"string"!=typeof r?r&&n.jsx("span",{className:"rcb-voice-icon "+(l&&!p?"on":""),children:n.jsx(r,{style:l&&!p?b:y})}):n.jsx("span",{className:"rcb-voice-icon"+(l&&!p?"-on":""),"data-testid":"rcb-voice-icon",style:l&&!p?b:y})})()})},ht=()=>{var t,r,o,i,A,a,s,l;const{settings:c}=E(),{styles:u}=B(),{textAreaDisabled:d}=N(),[p,f]=e.useState(!1),{handleSubmitText:h}=$e(),g={backgroundColor:null==(t=c.general)?void 0:t.primaryColor,...u.sendButtonStyle},m={cursor:`url("${null==(r=c.general)?void 0:r.actionDisabledIcon}"), auto`,backgroundColor:null==(o=c.general)?void 0:o.primaryColor,...u.sendButtonStyle,...u.sendButtonDisabledStyle},b={backgroundColor:null==(i=c.general)?void 0:i.secondaryColor,...u.sendButtonStyle,...u.sendButtonHoveredStyle},y={backgroundImage:`url(${null==(A=c.chatInput)?void 0:A.sendButtonIcon})`,fill:"#fff",...u.sendIconStyle},v={backgroundImage:`url(${null==(a=c.chatInput)?void 0:a.sendButtonIcon})`,fill:"#fff",...u.sendIconStyle,...u.sendIconDisabledStyle},w={backgroundImage:`url(${null==(s=c.chatInput)?void 0:s.sendButtonIcon})`,fill:"#fff",...u.sendIconStyle,...u.sendIconHoveredStyle};return n.jsx("div",{"aria-label":(null==(l=c.ariaLabel)?void 0:l.sendButton)??"send message",role:"button",onMouseEnter:()=>{f(!0)},onMouseLeave:()=>{f(!1)},onMouseDown:async e=>{null==e||e.preventDefault(),!d&&await h()},style:d?m:p?b:g,className:"rcb-send-button",children:(()=>{var e;const t=null==(e=c.chatInput)?void 0:e.sendButtonIcon;return t&&"string"!=typeof t?t&&n.jsx("span",{className:"rcb-send-icon","data-testid":"rcb-send-icon",children:n.jsx(t,{style:d?v:p?w:y})}):n.jsx("span",{className:"rcb-send-icon","data-testid":"rcb-send-icon",style:d?v:p?w:y})})()})},gt=(e,t)=>{var n,r,o,i,A,a,l,c,u;const d={[s.AUDIO_BUTTON]:null==(n=e.audio)?void 0:n.disabled,[s.CLOSE_CHAT_BUTTON]:null==(r=e.general)?void 0:r.embedded,[s.EMOJI_PICKER_BUTTON]:null==(o=e.emoji)?void 0:o.disabled,[s.FILE_ATTACHMENT_BUTTON]:null==(i=e.fileAttachment)?void 0:i.disabled,[s.NOTIFICATION_BUTTON]:null==(A=e.notification)?void 0:A.disabled,[s.SEND_MESSAGE_BUTTON]:!1,[s.VOICE_MESSAGE_BUTTON]:null==(a=e.voice)?void 0:a.disabled},p={},f=e=>e?e.map((e=>{if("string"==typeof e){if((e=>Object.values(s).includes(e))(e)&&!d[e]){if(p[e])return p[e];const n=t[e];if("function"==typeof n){const t=n();return p[e]=t,t}return null}return null}return e})).filter((e=>null!==e)):[];return{header:f(null==(l=e.header)?void 0:l.buttons),chatInput:f(null==(c=e.chatInput)?void 0:c.buttons),footer:f(null==(u=e.footer)?void 0:u.buttons)}},mt=()=>{const{settings:t}=E(),r=e.useMemo((()=>({[s.CLOSE_CHAT_BUTTON]:()=>n.jsx(dt,{}),[s.AUDIO_BUTTON]:()=>n.jsx(ut,{}),[s.NOTIFICATION_BUTTON]:()=>n.jsx(pt,{}),[s.EMOJI_PICKER_BUTTON]:()=>n.jsx(ct,{}),[s.FILE_ATTACHMENT_BUTTON]:()=>n.jsx(lt,{}),[s.SEND_MESSAGE_BUTTON]:()=>n.jsx(ht,{}),[s.VOICE_MESSAGE_BUTTON]:()=>n.jsx(ft,{})})),[]),{header:o,chatInput:i,footer:A}=e.useMemo((()=>gt(t,r)),[t,r]);return{headerButtons:e.useMemo((()=>o),[o]),chatInputButtons:e.useMemo((()=>i),[i]),footerButtons:e.useMemo((()=>A),[A])}},bt=()=>{const{settings:t}=E(),{styles:r}=B(),{setSyncedMessages:o,syncedMessagesRef:i}=W(),{isLoadingChatHistory:A,setIsLoadingChatHistory:a,hasChatHistoryLoaded:s,setHasChatHistoryLoaded:l}=N(),{chatBodyRef:c}=T(),{dispatchRcbEvent:u}=z(),d=e.useCallback((async()=>{var e,A;const s=we();if(!s||null!=(e=t.event)&&e.rcbLoadChatHistory&&(await u(R.LOAD_CHAT_HISTORY,{})).defaultPrevented)return;a(!0);const d=(null==(A=c.current)?void 0:A.scrollHeight)??0;((e,t,r,o,i,A,a,s,l)=>{var c;if(he=!0,null!=r)try{const c=pe(n.jsx(ue,{}),"SYSTEM"),u=i.current.slice(1);o([c,...u]);const d=r.map((n=>{if("object"===n.type){const r=Ce(n.content,e,t);return{...n,content:r}}return n}));setTimeout((()=>{var t;const r=i.current.slice(1);let A=null!=(t=e.chatHistory)&&t.autoLoad?pe(n.jsx(n.Fragment,{}),"SYSTEM"):pe(n.jsx(ce,{}),"SYSTEM");o([...d,A,...r]),l(!0)}),500),setTimeout((()=>{if(!A.current)return;const{scrollHeight:e}=A.current,t=e-a;A.current.scrollTop+=t,s(!1)}),510)}catch{fe.removeItem(null==(c=e.chatHistory)?void 0:c.storageKey)}})(t,r,s,o,i,c,d,a,l)}),[t,r,u,i,c,a,l]);return{isLoadingChatHistory:A,setIsLoadingChatHistory:a,hasChatHistoryLoaded:s,showChatHistory:d}},yt=()=>{var t,r,o;const{settings:i}=E(),{styles:A}=B(),{showChatHistory:a}=bt(),[s,l]=e.useState(!1),c={color:null==(t=i.general)?void 0:t.primaryColor,borderColor:null==(r=i.general)?void 0:r.primaryColor,...A.chatHistoryButtonStyle,...A.chatHistoryButtonHoveredStyle};return n.jsx("div",{className:"rcb-view-history-container",children:n.jsx("div",{onMouseEnter:()=>{l(!0)},onMouseLeave:()=>{l(!1)},style:s?c:{...A.chatHistoryButtonStyle},onMouseDown:e=>{e.preventDefault(),a()},className:"rcb-view-history-button",role:"button",tabIndex:0,children:n.jsx("p",{children:null==(o=i.chatHistory)?void 0:o.viewChatHistoryButtonText})})})},vt=()=>{var t,r,o,i;const A=et(),{settings:a}=E(),{replaceMessages:s}=Ne(),{isBotTyping:l,isChatWindowOpen:c,setUnreadCount:u,setSyncedIsChatWindowOpen:d,setSyncedTextAreaDisabled:p,setSyncedAudioToggledOn:f,setSyncedVoiceToggledOn:h,setSyncedIsScrolling:g,syncedIsScrollingRef:m,syncedIsChatWindowOpenRef:b}=N(),{chatBodyRef:y}=T(),{viewportHeight:v,setViewportHeight:w,setViewportWidth:x,scrollToBottom:k}=G(),{setUpNotifications:P}=Qe(),{handleFirstInteraction:C}=(()=>{var t;const{settings:n}=E(),{hasInteractedPage:r,setHasInteractedPage:o,hasFlowStarted:i,setHasFlowStarted:A}=N(),a=e.useCallback((()=>{var e;if(o(!0),!i&&"ON_PAGE_INTERACT"===(null==(e=n.general)?void 0:e.flowStartTrigger)&&A(!0),!window.SpeechSynthesisUtterance)return void console.info("Speech Synthesis API is not supported in this environment.");const t=new window.SpeechSynthesisUtterance;t.text="",t.onend=()=>{window.removeEventListener("click",a),window.removeEventListener("keydown",a),window.removeEventListener("touchstart",a)},window.speechSynthesis.speak(t)}),[i,null==(t=n.general)?void 0:t.flowStartTrigger]);return{hasInteractedPage:r,handleFirstInteraction:a}})(),{showChatHistory:B}=bt(),D=e.useRef(0),S=e.useRef(!1);e.useEffect((()=>(window.addEventListener("click",C),window.addEventListener("keydown",C),window.addEventListener("touchstart",C),()=>{window.removeEventListener("click",C),window.removeEventListener("keydown",C),window.removeEventListener("touchstart",C)})),[]),e.useEffect((()=>{const e=y.current;if(!e)return;const t=()=>{S.current||(S.current=!0,requestAnimationFrame((()=>{var t,n;if(!e)return;const{scrollTop:r,clientHeight:o,scrollHeight:i}=e,A=r+o<i-((null==(t=a.chatWindow)?void 0:t.messagePromptOffset)??30);g(A),m.current=A,A||(r+o>=i-1&&(e.scrollTop=i-o-1),(b.current||null!=(n=a.general)&&n.embedded)&&u(0)),S.current=!1})))};return e.addEventListener("wheel",t,{passive:!0}),e.addEventListener("touchmove",t,{passive:!0}),()=>{e.removeEventListener("wheel",t),e.removeEventListener("touchmove",t)}}),[]),e.useEffect((()=>{var e,t,n;p(null==(e=a.chatInput)?void 0:e.disabled),d(null==(t=a.chatWindow)?void 0:t.defaultOpen),f(null==(n=a.audio)?void 0:n.defaultToggledOn),setTimeout((()=>{var e;h(null==(e=a.voice)?void 0:e.defaultToggledOn)}),1)}),[]),e.useEffect((()=>{var e;null!=(e=a.notification)&&e.disabled||P()}),[null==(t=a.notification)?void 0:t.disabled]),e.useEffect((()=>{!m.current&&null!=y&&y.current&&k()}),[l]),e.useEffect((()=>{var e,t;if(null!=(e=a.chatHistory)&&e.disabled)fe&&fe.removeItem(ge);else if(ke(a),we().length>0){const e=pe(n.jsx(yt,{}),"SYSTEM");s([e]),null!=(t=a.chatHistory)&&t.autoLoad&&B()}}),[null==(r=a.chatHistory)?void 0:r.storageKey,null==(o=a.chatHistory)?void 0:o.maxEntries,null==(i=a.chatHistory)?void 0:i.disabled]),e.useEffect((()=>{var e;A||null!=(e=a.general)&&e.embedded||!navigator.virtualKeyboard||(navigator.virtualKeyboard.overlaysContent=!0,navigator.virtualKeyboard.addEventListener("geometrychange",(e=>{if(!e.target)return;const{x:t,y:n,width:r,height:o}=e.target.boundingRect;0==t&&0==n&&0==r&&0==o?(setTimeout((()=>{var e;w(null==(e=window.visualViewport)?void 0:e.height)}),101),setTimeout((()=>{var e,t;v!=(null==(e=window.visualViewport)?void 0:e.height)&&w(null==(t=window.visualViewport)?void 0:t.height)}),1001)):setTimeout((()=>{var e;w((null==(e=window.visualViewport)?void 0:e.height)-o)}),101)})))}),[A]),e.useEffect((()=>{var e,t,n,r;if(A)return;c&&(w(null==(e=window.visualViewport)?void 0:e.height),x(null==(t=window.visualViewport)?void 0:t.width));const o=()=>window.scrollTo({top:0,left:0,behavior:"auto"}),i=()=>D.current=window.scrollY,a=()=>{var e,t;w(null==(e=window.visualViewport)?void 0:e.height),x(null==(t=window.visualViewport)?void 0:t.width)},s=()=>{var e;window.removeEventListener("scroll",o),window.removeEventListener("scroll",i),null==(e=window.visualViewport)||e.removeEventListener("resize",a)};return c?(s(),document.body.style.position="fixed",window.addEventListener("scroll",o),null==(n=window.visualViewport)||n.addEventListener("resize",a)):(document.body.style.position="static",s(),window.scrollTo({top:D.current,left:0,behavior:"auto"}),window.addEventListener("scroll",i),null==(r=window.visualViewport)||r.removeEventListener("resize",a)),s}),[c,A])},wt="https://cdn.jsdelivr.net/gh/react-chatbotify/community-themes/themes",xt="2592000",Et="RCB_THEME_CACHE_DATA",kt=async(e,t)=>{const{id:n,version:r,baseUrl:o=wt,cacheDuration:i=xt}=t,A=r||await(async(e,t)=>{const n=`${t}/${e}/meta.json`;try{const e=await fetch(n);return e.ok?(await e.json()).version:(console.error(`Failed to fetch meta.json from ${n}`),null)}catch(e){return console.error(`Failed to fetch meta.json from ${n}`,e),null}})(n,o);if(!A)return console.error(`Unable to find version for theme: ${n}`),{settings:{},inlineStyles:{},cssStylesText:""};const a=((e,t,n)=>{const r=localStorage.getItem(`${Et}_${e}_${t}`);if(!r)return null;try{const e=JSON.parse(r),t=(new Date).getTime(),o=Math.floor(t/1e3);return e.cacheDate+n>=o?e:null}catch(t){return console.error(`Unable to fetch cache for ${e}`,t),null}})(n,A,i);if(a){const t=Pt(e,a.cssStylesText);return{settings:a.settings,inlineStyles:a.inlineStyles,cssStylesText:t}}const s=`${o}/${n}/${A}/styles.css`,l=`${o}/${n}/${A}/settings.json`,c=`${o}/${n}/${A}/styles.json`;let u="";const d=await fetch(s);d.ok?u=await d.text():console.info(`Could not fetch styles.css from ${s}`);const p=await fetch(l);let f={};p.ok?f=await p.json():console.info(`Could not fetch settings.json from ${l}`);const h=await fetch(c);let g={};h.ok?g=await h.json():console.info(`Could not fetch styles.json from ${c}`),((e,t,n,r,o)=>{const i=(new Date).getTime(),A={settings:n,inlineStyles:r,cssStylesText:o,cacheDate:Math.floor(i/1e3)};localStorage.setItem(`${Et}_${e}_${t}`,JSON.stringify(A))})(n,A,f,g,u);return{settings:f,inlineStyles:g,cssStylesText:Pt(e,u)}},Pt=(e,t)=>t.split(new RegExp("(?<=})")).map((t=>{const n=t.trim();return n.startsWith("@import")||n.startsWith("@keyframes")||n.startsWith("@media")?n:n?`#${e} ${n}`:""})).join("\n"),Ct=async(e,t,n,r)=>{var o,i;let A=Dt(w),a=Dt(P),s="";if(null!=r)if(Array.isArray(r))for(const t of r){const n=await kt(e,t);A=Bt(n.settings,A),a=Bt(n.inlineStyles,a),s+=n.cssStylesText}else{const t=await kt(e,r);A=Bt(t.settings,A),a=Bt(t.inlineStyles,a),s+=t.cssStylesText}return null!=t&&(A=Bt(t,A)),null!=n&&(a=Bt(n,a)),null!=(null==(o=A.chatInput)?void 0:o.botDelay)&&(null==(i=A.chatInput)?void 0:i.botDelay)<500&&(A.chatInput.botDelay=500),{settings:A,inlineStyles:a,cssStylesText:s}},Bt=(t,n)=>{const r=[{source:t,target:n}];for(;r.length;){const t=r.pop();if(null==t)continue;const{source:n,target:o}=t;for(const t of Object.keys(n)){const i=t;if(e.isValidElement(n[i]))o[i]=n[i];else if("object"!=typeof n[i]||null===n[i]||Array.isArray(n[i]))try{o[i]=n[i]}catch{}else("object"!=typeof o[i]||null===o[i])&&(o[i]={}),r.push({source:n[i],target:o[i]})}}return n},Dt=e=>{if(null===e||"object"!=typeof e)return e;const t=Array.isArray(e)?[]:{},n=[{source:e,target:t}],r=new WeakMap;for(r.set(e,t);n.length;){const e=n.pop();if(null==e)continue;const{source:t,target:o}=e;for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const i=t[e];if(i&&"object"==typeof i)if(r.has(i))o[e]=r.get(i);else{const t=Array.isArray(i)?[]:{};r.set(i,t),o[e]=t,n.push({source:i,target:t})}else o[e]=i}}return t},St=()=>{const{settings:t,setSettings:n}=E(),r=e.useCallback((e=>{!e||0===Object.keys(e).length||n(Dt(Bt(e,t)))}),[t]),o=e.useCallback((e=>{n(e)}),[]);return{settings:t,replaceSettings:o,updateSettings:r}},It=()=>{const{styles:t,setStyles:n}=B(),r=e.useCallback((e=>{!e||0===Object.keys(e).length||n(Dt(Bt(e,t)))}),[t]),o=e.useCallback((e=>{n(e)}),[]);return{styles:t,replaceStyles:o,updateStyles:r}},Tt=({plugins:t,slots:r})=>{var o,i;const A=et(),{settings:a}=E(),{styles:s}=B(),{hasFlowStarted:l,setHasFlowStarted:c}=N(),{inputRef:u}=T(),{viewportHeight:d,viewportWidth:p,isChatWindowOpen:f}=G(),{goToPath:h}=Ze(),{headerButtons:g,chatInputButtons:m,footerButtons:b}=mt();vt(),(t=>{const{updateSettings:n}=St(),{updateStyles:r}=It(),o=null==t?void 0:t.map((e=>e()));e.useEffect((()=>{let e={},t={};null==o||o.forEach((n=>{null!=n&&n.settings&&0!==Object.keys(null==n?void 0:n.settings).length&&(e=Bt(n.settings,e)),null!=n&&n.styles&&0!==Object.keys(null==n?void 0:n.styles).length&&(t=Bt(n.styles,t))})),n(e),r(t)}),[])})(t),e.useEffect((()=>{var e;(l||"ON_LOAD"===(null==(e=a.general)?void 0:e.flowStartTrigger))&&h("start")}),[l,null==(o=a.general)?void 0:o.flowStartTrigger]);const y=e.useMemo((()=>{var e;const t="rcb-chatbot-global ";return null!=(e=a.general)&&e.embedded?t+"rcb-window-embedded":f?t+"rcb-window-open":t+"rcb-window-close"}),[a,f]);return n.jsx(n.Fragment,{children:(()=>{var e,t;return A&&(null==(e=a.device)?void 0:e.desktopEnabled)||!A&&(null==(t=a.device)?void 0:t.mobileEnabled)})()&&n.jsxs("div",{onMouseDown:e=>{var t,n;!l&&"ON_CHATBOT_INTERACT"===(null==(t=a.general)?void 0:t.flowStartTrigger)&&c(!0),A?null==(n=u.current)||n.blur():null==e||e.preventDefault()},className:y,children:[n.jsx(ot,{}),n.jsx(rt,{}),f&&!A&&!(null!=(i=a.general)&&i.embedded)&&n.jsxs(n.Fragment,{children:[n.jsx("style",{children:"\n\t\t\t\t\t\t\t\t\thtml {\n\t\t\t\t\t\t\t\t\t\toverflow: hidden !important;\n\t\t\t\t\t\t\t\t\t\ttouch-action: none !important;\n\t\t\t\t\t\t\t\t\t\tscroll-behavior: auto !important;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t"}),n.jsx("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"#fff",zIndex:9999}})]}),n.jsx("div",{style:(()=>{var e,t;return A||null!=(e=a.general)&&e.embedded?null!=(t=a.general)&&t.embedded?{...s.chatWindowStyle}:{...s.chatWindowStyle,zIndex:1e4}:{...s.chatWindowStyle,borderRadius:"0px",left:"0px",right:"auto",top:"0px",bottom:"auto",width:`${p}px`,height:`${d}px`,zIndex:1e4}})(),className:"rcb-chat-window",children:(()=>{var e,t,o;const i=(null==r?void 0:r.chatBotHeader)||S,A=(null==r?void 0:r.chatBotBody)||Z,s=(null==r?void 0:r.chatBotInput)||tt,l=(null==r?void 0:r.chatBotFooter)||nt;return n.jsxs(n.Fragment,{children:[(null==(e=a.general)?void 0:e.showHeader)&&n.jsx(i,{buttons:g}),n.jsx(A,{}),n.jsx(At,{}),(null==(t=a.general)?void 0:t.showInputRow)&&n.jsx(s,{buttons:m}),(null==(o=a.general)?void 0:o.showFooter)&&n.jsx(l,{buttons:b})]})})()})]})})},Qt=e.createContext(void 0),Mt=()=>e.useContext(Qt),Ot=({children:t})=>{var r;const o=e.useRef(""),i=e.useRef({}),[A,a]=e.useState({}),[s,l]=e.useState({}),[c,u]=e.useState(!1);e.useEffect((()=>{u(!0)}),[]);return c?n.jsx("div",{style:{fontFamily:null==(r=A.general)?void 0:r.fontFamily},children:n.jsx(Qt.Provider,{value:{loadConfig:async(e,t,n,r,A,s)=>{o.current=e,i.current=t;const c=await Ct(e,n,r,A);s.current&&(s.current.textContent=c.cssStylesText),a(c.settings),l(c.inlineStyles)}},children:n.jsx(k,{settings:A,setSettings:a,children:n.jsx(D,{styles:s,setStyles:l,children:n.jsx(Ke,{children:n.jsx(Q,{botIdRef:o,flowRef:i,children:n.jsx(U,{children:n.jsx(L,{settings:A,children:n.jsx(X,{children:t})})})})})})})})}):null},Nt=({id:t,flow:n,settings:r,styles:o,themes:i,plugins:A,setConfigLoaded:a,styleRootRef:s})=>{const l=e.useMemo((()=>t),[]),c=Mt(),{flowRef:u}=T();u&&u.current!==n&&(u.current=n);return e.useEffect((()=>{(async()=>{var e,t;null!=(e=r.event)&&e.rcbPreLoadChatBot&&(await H(R.PRE_LOAD_CHATBOT,{botId:l,currPath:null,prevPath:null},{flow:n,settings:r,styles:o,themes:i,plugins:A})).defaultPrevented||(null!=c&&c.loadConfig&&(await c.loadConfig(l,n,r,o,i,s),a(!0)),null!=(t=r.event)&&t.rcbPostLoadChatBot&&H(R.POST_LOAD_CHATBOT,{botId:l,currPath:null,prevPath:null},{flow:n,settings:r,styles:o,themes:i,plugins:A}))})()}),[i]),null},Lt=["Quickstart","API Docs","Examples","Github","Discord"],Rt={start:{message:"Hello, I am Tan Jin 👋! Welcome to React ChatBotify, I'm excited that you are using our chatbot 😊!",transition:{duration:1e3},chatDisabled:!0,path:"show_options"},show_options:{message:"It looks like you have not set up a conversation flow yet. No worries! Here are a few helpful things you can check out to get started:",options:Lt,path:"process_options"},prompt_again:{message:"Do you need any other help?",options:Lt,path:"process_options"},unknown_input:{message:"Sorry, I do not understand your message 😢! If you require further assistance, you may click on the Github option and open an issue there or visit our discord.",options:Lt,path:"process_options"},process_options:{transition:{duration:0},path:e=>{let t="";switch(e.userInput){case"Quickstart":t="https://react-chatbotify.com/docs/introduction/quickstart/";break;case"API Docs":t="https://react-chatbotify.com/docs/api/bot_options";break;case"Examples":t="https://react-chatbotify.com/docs/examples/basic_form";break;case"Github":t="https://github.com/react-chatbotify/react-chatbotify/";break;case"Discord":t="https://discord.gg/6R4DK4G5Zh";break;default:return"unknown_input"}return e.injectMessage("Sit tight! I'll send you right there!"),setTimeout((()=>{window.open(t)}),1e3),"repeat"}},repeat:{transition:{duration:3e3},path:"prompt_again"}},jt=({id:t,flow:r,settings:o,styles:i,themes:A,plugins:a,slots:s})=>{const l=e.useMemo((()=>t||"rcb-"+de()),[]),c=r&&0!==Object.keys(r).length?r:Rt,u=o||{},d=i||{},p=a||[],[f,h]=e.useState(!1),g=Mt(),m=e.useRef(null),[b,y]=e.useState(A||[]);e.useEffect((()=>{A&&y(A)}),[A]);const v=()=>n.jsxs(n.Fragment,{children:[n.jsx(Nt,{styleRootRef:m,id:l,flow:c,settings:u,styles:d,themes:b,plugins:p,setConfigLoaded:h}),f&&n.jsx(Tt,{plugins:a,slots:s})]});return null==g?n.jsxs(Ot,{children:[n.jsx("style",{ref:m}),n.jsx("div",{id:l,children:v()})]}):n.jsxs(n.Fragment,{children:[n.jsx("style",{ref:m}),n.jsx("div",{id:l,children:v()})]})},Ht=()=>{const{getBotId:t}=(()=>{const{botIdRef:t}=T();return{getBotId:e.useCallback((()=>t.current),[t])}})();return{getBotId:t}},_t=()=>{const{hasFlowStarted:t,restartFlow:n,getFlow:r}=(()=>{const{replaceMessages:t}=Ne(),{replacePaths:n,goToPath:r}=Ze(),{replaceToasts:o}=Je(),{hasFlowStarted:i}=N(),{flowRef:A,timeoutIdRef:a}=T(),{settings:s}=E();return{hasFlowStarted:i,restartFlow:e.useCallback((async()=>{ke(s),a.current&&clearTimeout(a.current),t([]),o([]),n([]),await r("start")}),[a,s,t,o,n,ke,r]),getFlow:e.useCallback((()=>(null==A?void 0:A.current)??{}),[A])}})();return{hasFlowStarted:t,restartFlow:n,getFlow:r}},Ft=()=>{const{endStreamMessage:e,injectMessage:t,removeMessage:n,simulateStreamMessage:r,streamMessage:o,messages:i,replaceMessages:A}=Ne();return{endStreamMessage:e,injectMessage:t,removeMessage:n,simulateStreamMessage:r,streamMessage:o,messages:i,replaceMessages:A}},Ut=(t,n)=>{const{getBotId:r}=Ht();e.useEffect((()=>{const e=e=>{e.detail.botId===r()&&n(e)};return window.addEventListener(t,e),()=>{window.removeEventListener(t,e)}}),[r,t,n])},zt=()=>{const{settings:e,replaceSettings:t,updateSettings:n}=St();return{settings:e,replaceSettings:t,updateSettings:n}},Gt=()=>{const{showChatHistory:e,hasChatHistoryLoaded:t}=bt();return{showChatHistory:e,getHistoryMessages:we,setHistoryMessages:xe,hasChatHistoryLoaded:t}},Yt={a:{content:9,self:!1,type:105},address:{invalid:["h1","h2","h3","h4","h5","h6","address","article","aside","section","div","header","footer"],self:!1},audio:{children:["track","source"]},br:{type:9,void:!0},body:{content:127},button:{content:8,type:105},caption:{content:1,parent:["table"]},col:{parent:["colgroup"],void:!0},colgroup:{children:["col"],parent:["table"]},details:{children:["summary"],type:97},dd:{content:1,parent:["dl"]},dl:{children:["dt","dd"],type:1},dt:{content:1,invalid:["footer","header"],parent:["dl"]},figcaption:{content:1,parent:["figure"]},footer:{invalid:["footer","header"]},header:{invalid:["footer","header"]},hr:{type:1,void:!0},img:{void:!0},li:{content:1,parent:["ul","ol","menu"]},main:{self:!1},ol:{children:["li"],type:1},picture:{children:["source","img"],type:25},rb:{parent:["ruby","rtc"]},rp:{parent:["ruby","rtc"]},rt:{content:8,parent:["ruby","rtc"]},rtc:{content:8,parent:["ruby"]},ruby:{children:["rb","rp","rt","rtc"]},source:{parent:["audio","video","picture"],void:!0},summary:{content:8,parent:["details"]},table:{children:["caption","colgroup","thead","tbody","tfoot","tr"],type:1},tbody:{parent:["table"],children:["tr"]},td:{content:1,parent:["tr"]},tfoot:{parent:["table"],children:["tr"]},th:{content:1,parent:["tr"]},thead:{parent:["table"],children:["tr"]},tr:{parent:["table","tbody","thead","tfoot"],children:["th","td"]},track:{parent:["audio","video"],void:!0},ul:{children:["li"],type:1},video:{children:["track","source"]},wbr:{type:9,void:!0}};function qt(e){return t=>{Yt[t]={...e,...Yt[t]}}}["address","main","div","figure","p","pre"].forEach(qt({content:1,type:65})),["abbr","b","bdi","bdo","cite","code","data","dfn","em","i","kbd","mark","q","ruby","samp","strong","sub","sup","time","u","var"].forEach(qt({content:8,type:73})),["p","pre"].forEach(qt({content:8,type:65})),["s","small","span","del","ins"].forEach(qt({content:8,type:9})),["article","aside","footer","header","nav","section","blockquote"].forEach(qt({content:1,type:67})),["h1","h2","h3","h4","h5","h6"].forEach(qt({content:8,type:69})),["audio","canvas","iframe","img","video"].forEach(qt({type:89}));const Wt=Object.freeze(Yt),Xt=["applet","base","body","command","embed","frame","frameset","head","html","link","meta","noscript","object","script","style","title"],Vt=Object.keys(Wt).filter((e=>"canvas"!==e&&"iframe"!==e)),Kt=Object.freeze({alt:1,cite:1,class:1,colspan:3,controls:4,datetime:1,default:4,disabled:4,dir:1,height:1,href:1,id:1,kind:1,label:1,lang:1,loading:1,loop:4,media:1,muted:4,poster:1,rel:1,role:1,rowspan:3,scope:1,sizes:1,span:3,start:3,style:5,src:1,srclang:1,srcset:1,tabindex:1,target:1,title:1,type:1,width:1}),Jt=Object.freeze({class:"className",colspan:"colSpan",datetime:"dateTime",rowspan:"rowSpan",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex"});function Zt(){return Zt=Object.assign||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},Zt.apply(this,arguments)}function $t({attributes:t={},className:n,children:r=null,selfClose:o=!1,tagName:i}){const A=i;return o?e.createElement(A,Zt({className:n},t)):e.createElement(A,Zt({className:n},t),r)}class en{attribute(e,t){return t}node(e,t){return t}}function tn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}
2
- /*!
1
+ (function(In,N){typeof exports=="object"&&typeof module<"u"?N(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],N):(In=typeof globalThis<"u"?globalThis:In||self,N(In.AccessQABot={},In.jsxRuntime,In.React,In.ReactDOM))})(this,function(In,N,R,tf){"use strict";function nf(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,i.get?i:{enumerable:!0,get:()=>e[a]})}}return n.default=e,Object.freeze(n)}const lt=nf(R);var _l=tf;process.env.NODE_ENV==="production"?(_l.createRoot,_l.hydrateRoot):_l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;var Io={},Bo={};/**
2
+ * @license React
3
+ * react-dom-server-legacy.browser.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var _u;function rf(){if(_u)return Bo;_u=1;var e=R;function n(g){for(var x="https://reactjs.org/docs/error-decoder.html?invariant="+g,T=1;T<arguments.length;T++)x+="&args[]="+encodeURIComponent(arguments[T]);return"Minified React error #"+g+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=Object.prototype.hasOwnProperty,i=/^[: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]*$/,o={},c={};function u(g){return a.call(c,g)?!0:a.call(o,g)?!1:i.test(g)?c[g]=!0:(o[g]=!0,!1)}function d(g,x,T,L,K,G,q){this.acceptsBooleans=x===2||x===3||x===4,this.attributeName=L,this.attributeNamespace=K,this.mustUseProperty=T,this.propertyName=g,this.type=x,this.sanitizeURL=G,this.removeEmptyString=q}var A={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(g){A[g]=new d(g,0,!1,g,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(g){var x=g[0];A[x]=new d(x,1,!1,g[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(g){A[g]=new d(g,2,!1,g.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(g){A[g]=new d(g,2,!1,g,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(g){A[g]=new d(g,3,!1,g.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(g){A[g]=new d(g,3,!0,g,null,!1,!1)}),["capture","download"].forEach(function(g){A[g]=new d(g,4,!1,g,null,!1,!1)}),["cols","rows","size","span"].forEach(function(g){A[g]=new d(g,6,!1,g,null,!1,!1)}),["rowSpan","start"].forEach(function(g){A[g]=new d(g,5,!1,g.toLowerCase(),null,!1,!1)});var p=/[\-:]([a-z])/g;function h(g){return g[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(g){var x=g.replace(p,h);A[x]=new d(x,1,!1,g,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(g){var x=g.replace(p,h);A[x]=new d(x,1,!1,g,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(g){var x=g.replace(p,h);A[x]=new d(x,1,!1,g,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(g){A[g]=new d(g,1,!1,g.toLowerCase(),null,!1,!1)}),A.xlinkHref=new d("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(g){A[g]=new d(g,1,!1,g.toLowerCase(),null,!0,!0)});var m={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},y=["Webkit","ms","Moz","O"];Object.keys(m).forEach(function(g){y.forEach(function(x){x=x+g.charAt(0).toUpperCase()+g.substring(1),m[x]=m[g]})});var C=/["'&<>]/;function D(g){if(typeof g=="boolean"||typeof g=="number")return""+g;g=""+g;var x=C.exec(g);if(x){var T="",L,K=0;for(L=x.index;L<g.length;L++){switch(g.charCodeAt(L)){case 34:x="&quot;";break;case 38:x="&amp;";break;case 39:x="&#x27;";break;case 60:x="&lt;";break;case 62:x="&gt;";break;default:continue}K!==L&&(T+=g.substring(K,L)),K=L+1,T+=x}g=K!==L?T+g.substring(K,L):T}return g}var Q=/([A-Z])/g,E=/^ms-/,I=Array.isArray;function _(g,x){return{insertionMode:g,selectedValue:x}}function B(g,x,T){switch(x){case"select":return _(1,T.value!=null?T.value:T.defaultValue);case"svg":return _(2,null);case"math":return _(3,null);case"foreignObject":return _(1,null);case"table":return _(4,null);case"thead":case"tbody":case"tfoot":return _(5,null);case"colgroup":return _(7,null);case"tr":return _(6,null)}return 4<=g.insertionMode||g.insertionMode===0?_(1,null):g}var U=new Map;function j(g,x,T){if(typeof T!="object")throw Error(n(62));x=!0;for(var L in T)if(a.call(T,L)){var K=T[L];if(K!=null&&typeof K!="boolean"&&K!==""){if(L.indexOf("--")===0){var G=D(L);K=D((""+K).trim())}else{G=L;var q=U.get(G);q!==void 0||(q=D(G.replace(Q,"-$1").toLowerCase().replace(E,"-ms-")),U.set(G,q)),G=q,K=typeof K=="number"?K===0||a.call(m,L)?""+K:K+"px":D((""+K).trim())}x?(x=!1,g.push(' style="',G,":",K)):g.push(";",G,":",K)}}x||g.push('"')}function z(g,x,T,L){switch(T){case"style":j(g,x,L);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<T.length)||T[0]!=="o"&&T[0]!=="O"||T[1]!=="n"&&T[1]!=="N"){if(x=A.hasOwnProperty(T)?A[T]:null,x!==null){switch(typeof L){case"function":case"symbol":return;case"boolean":if(!x.acceptsBooleans)return}switch(T=x.attributeName,x.type){case 3:L&&g.push(" ",T,'=""');break;case 4:L===!0?g.push(" ",T,'=""'):L!==!1&&g.push(" ",T,'="',D(L),'"');break;case 5:isNaN(L)||g.push(" ",T,'="',D(L),'"');break;case 6:!isNaN(L)&&1<=L&&g.push(" ",T,'="',D(L),'"');break;default:x.sanitizeURL&&(L=""+L),g.push(" ",T,'="',D(L),'"')}}else if(u(T)){switch(typeof L){case"function":case"symbol":return;case"boolean":if(x=T.toLowerCase().slice(0,5),x!=="data-"&&x!=="aria-")return}g.push(" ",T,'="',D(L),'"')}}}function W(g,x,T){if(x!=null){if(T!=null)throw Error(n(60));if(typeof x!="object"||!("__html"in x))throw Error(n(61));x=x.__html,x!=null&&g.push(""+x)}}function te(g){var x="";return e.Children.forEach(g,function(T){T!=null&&(x+=T)}),x}function J(g,x,T,L){g.push(Z(T));var K=T=null,G;for(G in x)if(a.call(x,G)){var q=x[G];if(q!=null)switch(G){case"children":T=q;break;case"dangerouslySetInnerHTML":K=q;break;default:z(g,L,G,q)}}return g.push(">"),W(g,K,T),typeof T=="string"?(g.push(D(T)),null):T}var Y=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ee=new Map;function Z(g){var x=ee.get(g);if(x===void 0){if(!Y.test(g))throw Error(n(65,g));x="<"+g,ee.set(g,x)}return x}function ie(g,x,T,L,K){switch(x){case"select":g.push(Z("select"));var G=null,q=null;for(Se in T)if(a.call(T,Se)){var le=T[Se];if(le!=null)switch(Se){case"children":G=le;break;case"dangerouslySetInnerHTML":q=le;break;case"defaultValue":case"value":break;default:z(g,L,Se,le)}}return g.push(">"),W(g,q,G),G;case"option":q=K.selectedValue,g.push(Z("option"));var be=le=null,Ce=null,Se=null;for(G in T)if(a.call(T,G)){var Ue=T[G];if(Ue!=null)switch(G){case"children":le=Ue;break;case"selected":Ce=Ue;break;case"dangerouslySetInnerHTML":Se=Ue;break;case"value":be=Ue;default:z(g,L,G,Ue)}}if(q!=null)if(T=be!==null?""+be:te(le),I(q)){for(L=0;L<q.length;L++)if(""+q[L]===T){g.push(' selected=""');break}}else""+q===T&&g.push(' selected=""');else Ce&&g.push(' selected=""');return g.push(">"),W(g,Se,le),le;case"textarea":g.push(Z("textarea")),Se=q=G=null;for(le in T)if(a.call(T,le)&&(be=T[le],be!=null))switch(le){case"children":Se=be;break;case"value":G=be;break;case"defaultValue":q=be;break;case"dangerouslySetInnerHTML":throw Error(n(91));default:z(g,L,le,be)}if(G===null&&q!==null&&(G=q),g.push(">"),Se!=null){if(G!=null)throw Error(n(92));if(I(Se)&&1<Se.length)throw Error(n(93));G=""+Se}return typeof G=="string"&&G[0]===`
10
+ `&&g.push(`
11
+ `),G!==null&&g.push(D(""+G)),null;case"input":g.push(Z("input")),be=Se=le=G=null;for(q in T)if(a.call(T,q)&&(Ce=T[q],Ce!=null))switch(q){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,"input"));case"defaultChecked":be=Ce;break;case"defaultValue":le=Ce;break;case"checked":Se=Ce;break;case"value":G=Ce;break;default:z(g,L,q,Ce)}return Se!==null?z(g,L,"checked",Se):be!==null&&z(g,L,"checked",be),G!==null?z(g,L,"value",G):le!==null&&z(g,L,"value",le),g.push("/>"),null;case"menuitem":g.push(Z("menuitem"));for(var Dt in T)if(a.call(T,Dt)&&(G=T[Dt],G!=null))switch(Dt){case"children":case"dangerouslySetInnerHTML":throw Error(n(400));default:z(g,L,Dt,G)}return g.push(">"),null;case"title":g.push(Z("title")),G=null;for(Ue in T)if(a.call(T,Ue)&&(q=T[Ue],q!=null))switch(Ue){case"children":G=q;break;case"dangerouslySetInnerHTML":throw Error(n(434));default:z(g,L,Ue,q)}return g.push(">"),G;case"listing":case"pre":g.push(Z(x)),q=G=null;for(be in T)if(a.call(T,be)&&(le=T[be],le!=null))switch(be){case"children":G=le;break;case"dangerouslySetInnerHTML":q=le;break;default:z(g,L,be,le)}if(g.push(">"),q!=null){if(G!=null)throw Error(n(60));if(typeof q!="object"||!("__html"in q))throw Error(n(61));T=q.__html,T!=null&&(typeof T=="string"&&0<T.length&&T[0]===`
12
+ `?g.push(`
13
+ `,T):g.push(""+T))}return typeof G=="string"&&G[0]===`
14
+ `&&g.push(`
15
+ `),G;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":g.push(Z(x));for(var It in T)if(a.call(T,It)&&(G=T[It],G!=null))switch(It){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,x));default:z(g,L,It,G)}return g.push("/>"),null;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 J(g,T,x,L);case"html":return K.insertionMode===0&&g.push("<!DOCTYPE html>"),J(g,T,x,L);default:if(x.indexOf("-")===-1&&typeof T.is!="string")return J(g,T,x,L);g.push(Z(x)),q=G=null;for(Ce in T)if(a.call(T,Ce)&&(le=T[Ce],le!=null))switch(Ce){case"children":G=le;break;case"dangerouslySetInnerHTML":q=le;break;case"style":j(g,L,le);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:u(Ce)&&typeof le!="function"&&typeof le!="symbol"&&g.push(" ",Ce,'="',D(le),'"')}return g.push(">"),W(g,q,G),G}}function ue(g,x,T){if(g.push('<!--$?--><template id="'),T===null)throw Error(n(395));return g.push(T),g.push('"></template>')}function se(g,x,T,L){switch(T.insertionMode){case 0:case 1:return g.push('<div hidden id="'),g.push(x.segmentPrefix),x=L.toString(16),g.push(x),g.push('">');case 2:return g.push('<svg aria-hidden="true" style="display:none" id="'),g.push(x.segmentPrefix),x=L.toString(16),g.push(x),g.push('">');case 3:return g.push('<math aria-hidden="true" style="display:none" id="'),g.push(x.segmentPrefix),x=L.toString(16),g.push(x),g.push('">');case 4:return g.push('<table hidden id="'),g.push(x.segmentPrefix),x=L.toString(16),g.push(x),g.push('">');case 5:return g.push('<table hidden><tbody id="'),g.push(x.segmentPrefix),x=L.toString(16),g.push(x),g.push('">');case 6:return g.push('<table hidden><tr id="'),g.push(x.segmentPrefix),x=L.toString(16),g.push(x),g.push('">');case 7:return g.push('<table hidden><colgroup id="'),g.push(x.segmentPrefix),x=L.toString(16),g.push(x),g.push('">');default:throw Error(n(397))}}function xe(g,x){switch(x.insertionMode){case 0:case 1:return g.push("</div>");case 2:return g.push("</svg>");case 3:return g.push("</math>");case 4:return g.push("</table>");case 5:return g.push("</tbody></table>");case 6:return g.push("</tr></table>");case 7:return g.push("</colgroup></table>");default:throw Error(n(397))}}var ge=/[<\u2028\u2029]/g;function me(g){return JSON.stringify(g).replace(ge,function(x){switch(x){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function M(g,x){return x=x===void 0?"":x,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:x+"P:",segmentPrefix:x+"S:",boundaryPrefix:x+"B:",idPrefix:x,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:g}}function fe(g,x,T,L){return T.generateStaticMarkup?(g.push(D(x)),!1):(x===""?g=L:(L&&g.push("<!-- -->"),g.push(D(x)),g=!0),g)}var O=Object.assign,de=Symbol.for("react.element"),Ee=Symbol.for("react.portal"),he=Symbol.for("react.fragment"),ve=Symbol.for("react.strict_mode"),Te=Symbol.for("react.profiler"),Qe=Symbol.for("react.provider"),tt=Symbol.for("react.context"),Le=Symbol.for("react.forward_ref"),Je=Symbol.for("react.suspense"),qe=Symbol.for("react.suspense_list"),ft=Symbol.for("react.memo"),Ne=Symbol.for("react.lazy"),We=Symbol.for("react.scope"),ct=Symbol.for("react.debug_trace_mode"),ht=Symbol.for("react.legacy_hidden"),ln=Symbol.for("react.default_value"),pt=Symbol.iterator;function Ft(g){if(g==null)return null;if(typeof g=="function")return g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case he:return"Fragment";case Ee:return"Portal";case Te:return"Profiler";case ve:return"StrictMode";case Je:return"Suspense";case qe:return"SuspenseList"}if(typeof g=="object")switch(g.$$typeof){case tt:return(g.displayName||"Context")+".Consumer";case Qe:return(g._context.displayName||"Context")+".Provider";case Le:var x=g.render;return g=g.displayName,g||(g=x.displayName||x.name||"",g=g!==""?"ForwardRef("+g+")":"ForwardRef"),g;case ft:return x=g.displayName||null,x!==null?x:Ft(g.type)||"Memo";case Ne:x=g._payload,g=g._init;try{return Ft(g(x))}catch{}}return null}var jt={};function Gt(g,x){if(g=g.contextTypes,!g)return jt;var T={},L;for(L in g)T[L]=x[L];return T}var gt=null;function st(g,x){if(g!==x){g.context._currentValue2=g.parentValue,g=g.parent;var T=x.parent;if(g===null){if(T!==null)throw Error(n(401))}else{if(T===null)throw Error(n(401));st(g,T)}x.context._currentValue2=x.value}}function Xe(g){g.context._currentValue2=g.parentValue,g=g.parent,g!==null&&Xe(g)}function Vt(g){var x=g.parent;x!==null&&Vt(x),g.context._currentValue2=g.value}function cn(g,x){if(g.context._currentValue2=g.parentValue,g=g.parent,g===null)throw Error(n(402));g.depth===x.depth?st(g,x):cn(g,x)}function Xn(g,x){var T=x.parent;if(T===null)throw Error(n(402));g.depth===T.depth?st(g,T):Xn(g,T),x.context._currentValue2=x.value}function at(g){var x=gt;x!==g&&(x===null?Vt(g):g===null?Xe(x):x.depth===g.depth?st(x,g):x.depth>g.depth?cn(x,g):Xn(x,g),gt=g)}var ne={isMounted:function(){return!1},enqueueSetState:function(g,x){g=g._reactInternals,g.queue!==null&&g.queue.push(x)},enqueueReplaceState:function(g,x){g=g._reactInternals,g.replace=!0,g.queue=[x]},enqueueForceUpdate:function(){}};function we(g,x,T,L){var K=g.state!==void 0?g.state:null;g.updater=ne,g.props=T,g.state=K;var G={queue:[],replace:!1};g._reactInternals=G;var q=x.contextType;if(g.context=typeof q=="object"&&q!==null?q._currentValue2:L,q=x.getDerivedStateFromProps,typeof q=="function"&&(q=q(T,K),K=q==null?K:O({},K,q),g.state=K),typeof x.getDerivedStateFromProps!="function"&&typeof g.getSnapshotBeforeUpdate!="function"&&(typeof g.UNSAFE_componentWillMount=="function"||typeof g.componentWillMount=="function"))if(x=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),x!==g.state&&ne.enqueueReplaceState(g,g.state,null),G.queue!==null&&0<G.queue.length)if(x=G.queue,q=G.replace,G.queue=null,G.replace=!1,q&&x.length===1)g.state=x[0];else{for(G=q?x[0]:g.state,K=!0,q=q?1:0;q<x.length;q++){var le=x[q];le=typeof le=="function"?le.call(g,G,T,L):le,le!=null&&(K?(K=!1,G=O({},G,le)):O(G,le))}g.state=G}else G.queue=null}var ke={id:1,overflow:""};function He(g,x,T){var L=g.id;g=g.overflow;var K=32-_e(L)-1;L&=~(1<<K),T+=1;var G=32-_e(x)+K;if(30<G){var q=K-K%5;return G=(L&(1<<q)-1).toString(32),L>>=q,K-=q,{id:1<<32-_e(x)+K|T<<K|L,overflow:G+g}}return{id:1<<G|T<<K|L,overflow:g}}var _e=Math.clz32?Math.clz32:yt,kt=Math.log,Xt=Math.LN2;function yt(g){return g>>>=0,g===0?32:31-(kt(g)/Xt|0)|0}function Jt(g,x){return g===x&&(g!==0||1/g===1/x)||g!==g&&x!==x}var Jn=typeof Object.is=="function"?Object.is:Jt,Ge=null,bt=null,mt=null,Ye=null,On=!1,fr=!1,Kn=0,un=null,pr=0;function En(){if(Ge===null)throw Error(n(321));return Ge}function vt(){if(0<pr)throw Error(n(312));return{memoizedState:null,queue:null,next:null}}function Ir(){return Ye===null?mt===null?(On=!1,mt=Ye=vt()):(On=!0,Ye=mt):Ye.next===null?(On=!1,Ye=Ye.next=vt()):(On=!0,Ye=Ye.next),Ye}function Br(){bt=Ge=null,fr=!1,mt=null,pr=0,Ye=un=null}function to(g,x){return typeof x=="function"?x(g):x}function ut(g,x,T){if(Ge=En(),Ye=Ir(),On){var L=Ye.queue;if(x=L.dispatch,un!==null&&(T=un.get(L),T!==void 0)){un.delete(L),L=Ye.memoizedState;do L=g(L,T.action),T=T.next;while(T!==null);return Ye.memoizedState=L,[L,x]}return[Ye.memoizedState,x]}return g=g===to?typeof x=="function"?x():x:T!==void 0?T(x):x,Ye.memoizedState=g,g=Ye.queue={last:null,dispatch:null},g=g.dispatch=Ho.bind(null,Ge,g),[Ye.memoizedState,g]}function Mr(g,x){if(Ge=En(),Ye=Ir(),x=x===void 0?null:x,Ye!==null){var T=Ye.memoizedState;if(T!==null&&x!==null){var L=T[1];e:if(L===null)L=!1;else{for(var K=0;K<L.length&&K<x.length;K++)if(!Jn(x[K],L[K])){L=!1;break e}L=!0}if(L)return T[0]}}return g=g(),Ye.memoizedState=[g,x],g}function Ho(g,x,T){if(25<=pr)throw Error(n(301));if(g===Ge)if(fr=!0,g={action:T,next:null},un===null&&(un=new Map),T=un.get(x),T===void 0)un.set(x,g);else{for(x=T;x.next!==null;)x=x.next;x.next=g}}function No(){throw Error(n(394))}function An(){}var Rr={readContext:function(g){return g._currentValue2},useContext:function(g){return En(),g._currentValue2},useMemo:Mr,useReducer:ut,useRef:function(g){Ge=En(),Ye=Ir();var x=Ye.memoizedState;return x===null?(g={current:g},Ye.memoizedState=g):x},useState:function(g){return ut(to,g)},useInsertionEffect:An,useLayoutEffect:function(){},useCallback:function(g,x){return Mr(function(){return g},x)},useImperativeHandle:An,useEffect:An,useDebugValue:An,useDeferredValue:function(g){return En(),g},useTransition:function(){return En(),[!1,No]},useId:function(){var g=bt.treeContext,x=g.overflow;g=g.id,g=(g&~(1<<32-_e(g)-1)).toString(32)+x;var T=hr;if(T===null)throw Error(n(404));return x=Kn++,g=":"+T.idPrefix+"R"+g,0<x&&(g+="H"+x.toString(32)),g+":"},useMutableSource:function(g,x){return En(),x(g._source)},useSyncExternalStore:function(g,x,T){if(T===void 0)throw Error(n(407));return T()}},hr=null,Fn=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Lt(g){return console.error(g),null}function dn(){}function gr(g,x,T,L,K,G,q,le,be){var Ce=[],Se=new Set;return x={destination:null,responseState:x,progressiveChunkSize:L===void 0?12800:L,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Se,pingedTasks:Ce,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:K===void 0?Lt:K,onAllReady:dn,onShellReady:q===void 0?dn:q,onShellError:dn,onFatalError:dn},T=Qn(x,0,null,T,!1,!1),T.parentFlushed=!0,g=Ln(x,g,null,T,Se,jt,null,ke),Ce.push(g),x}function Ln(g,x,T,L,K,G,q,le){g.allPendingTasks++,T===null?g.pendingRootTasks++:T.pendingTasks++;var be={node:x,ping:function(){var Ce=g.pingedTasks;Ce.push(be),Ce.length===1&&Pt(g)},blockedBoundary:T,blockedSegment:L,abortSet:K,legacyContext:G,context:q,treeContext:le};return K.add(be),be}function Qn(g,x,T,L,K,G){return{status:0,id:-1,index:x,parentFlushed:!1,chunks:[],children:[],formatContext:L,boundary:T,lastPushedText:K,textEmbedded:G}}function fn(g,x){if(g=g.onError(x),g!=null&&typeof g!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof g+'" instead');return g}function _n(g,x){var T=g.onShellError;T(x),T=g.onFatalError,T(x),g.destination!==null?(g.status=2,g.destination.destroy(x)):(g.status=1,g.fatalError=x)}function Qt(g,x,T,L,K){for(Ge={},bt=x,Kn=0,g=T(L,K);fr;)fr=!1,Kn=0,pr+=1,Ye=null,g=T(L,K);return Br(),g}function no(g,x,T,L){var K=T.render(),G=L.childContextTypes;if(G!=null){var q=x.legacyContext;if(typeof T.getChildContext!="function")L=q;else{T=T.getChildContext();for(var le in T)if(!(le in G))throw Error(n(108,Ft(L)||"Unknown",le));L=O({},q,T)}x.legacyContext=L,At(g,x,K),x.legacyContext=q}else At(g,x,K)}function ro(g,x){if(g&&g.defaultProps){x=O({},x),g=g.defaultProps;for(var T in g)x[T]===void 0&&(x[T]=g[T]);return x}return x}function kn(g,x,T,L,K){if(typeof T=="function")if(T.prototype&&T.prototype.isReactComponent){K=Gt(T,x.legacyContext);var G=T.contextType;G=new T(L,typeof G=="object"&&G!==null?G._currentValue2:K),we(G,T,L,K),no(g,x,G,T)}else{G=Gt(T,x.legacyContext),K=Qt(g,x,T,L,G);var q=Kn!==0;if(typeof K=="object"&&K!==null&&typeof K.render=="function"&&K.$$typeof===void 0)we(K,T,L,G),no(g,x,K,T);else if(q){L=x.treeContext,x.treeContext=He(L,1,0);try{At(g,x,K)}finally{x.treeContext=L}}else At(g,x,K)}else if(typeof T=="string"){switch(K=x.blockedSegment,G=ie(K.chunks,T,L,g.responseState,K.formatContext),K.lastPushedText=!1,q=K.formatContext,K.formatContext=B(q,T,L),hn(g,x,G),K.formatContext=q,T){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:K.chunks.push("</",T,">")}K.lastPushedText=!1}else{switch(T){case ht:case ct:case ve:case Te:case he:At(g,x,L.children);return;case qe:At(g,x,L.children);return;case We:throw Error(n(343));case Je:e:{T=x.blockedBoundary,K=x.blockedSegment,G=L.fallback,L=L.children,q=new Set;var le={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:q,errorDigest:null},be=Qn(g,K.chunks.length,le,K.formatContext,!1,!1);K.children.push(be),K.lastPushedText=!1;var Ce=Qn(g,0,null,K.formatContext,!1,!1);Ce.parentFlushed=!0,x.blockedBoundary=le,x.blockedSegment=Ce;try{if(hn(g,x,L),g.responseState.generateStaticMarkup||Ce.lastPushedText&&Ce.textEmbedded&&Ce.chunks.push("<!-- -->"),Ce.status=1,Kt(le,Ce),le.pendingTasks===0)break e}catch(Se){Ce.status=4,le.forceClientRender=!0,le.errorDigest=fn(g,Se)}finally{x.blockedBoundary=T,x.blockedSegment=K}x=Ln(g,G,T,be,q,x.legacyContext,x.context,x.treeContext),g.pingedTasks.push(x)}return}if(typeof T=="object"&&T!==null)switch(T.$$typeof){case Le:if(L=Qt(g,x,T.render,L,K),Kn!==0){T=x.treeContext,x.treeContext=He(T,1,0);try{At(g,x,L)}finally{x.treeContext=T}}else At(g,x,L);return;case ft:T=T.type,L=ro(T,L),kn(g,x,T,L,K);return;case Qe:if(K=L.children,T=T._context,L=L.value,G=T._currentValue2,T._currentValue2=L,q=gt,gt=L={parent:q,depth:q===null?0:q.depth+1,context:T,parentValue:G,value:L},x.context=L,At(g,x,K),g=gt,g===null)throw Error(n(403));L=g.parentValue,g.context._currentValue2=L===ln?g.context._defaultValue:L,g=gt=g.parent,x.context=g;return;case tt:L=L.children,L=L(T._currentValue2),At(g,x,L);return;case Ne:K=T._init,T=K(T._payload),L=ro(T,L),kn(g,x,T,L,void 0);return}throw Error(n(130,T==null?T:typeof T,""))}}function At(g,x,T){if(x.node=T,typeof T=="object"&&T!==null){switch(T.$$typeof){case de:kn(g,x,T.type,T.props,T.ref);return;case Ee:throw Error(n(257));case Ne:var L=T._init;T=L(T._payload),At(g,x,T);return}if(I(T)){pn(g,x,T);return}if(T===null||typeof T!="object"?L=null:(L=pt&&T[pt]||T["@@iterator"],L=typeof L=="function"?L:null),L&&(L=L.call(T))){if(T=L.next(),!T.done){var K=[];do K.push(T.value),T=L.next();while(!T.done);pn(g,x,K)}return}throw g=Object.prototype.toString.call(T),Error(n(31,g==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":g))}typeof T=="string"?(L=x.blockedSegment,L.lastPushedText=fe(x.blockedSegment.chunks,T,g.responseState,L.lastPushedText)):typeof T=="number"&&(L=x.blockedSegment,L.lastPushedText=fe(x.blockedSegment.chunks,""+T,g.responseState,L.lastPushedText))}function pn(g,x,T){for(var L=T.length,K=0;K<L;K++){var G=x.treeContext;x.treeContext=He(G,L,K);try{hn(g,x,T[K])}finally{x.treeContext=G}}}function hn(g,x,T){var L=x.blockedSegment.formatContext,K=x.legacyContext,G=x.context;try{return At(g,x,T)}catch(be){if(Br(),typeof be=="object"&&be!==null&&typeof be.then=="function"){T=be;var q=x.blockedSegment,le=Qn(g,q.chunks.length,null,q.formatContext,q.lastPushedText,!0);q.children.push(le),q.lastPushedText=!1,g=Ln(g,x.node,x.blockedBoundary,le,x.abortSet,x.legacyContext,x.context,x.treeContext).ping,T.then(g,g),x.blockedSegment.formatContext=L,x.legacyContext=K,x.context=G,at(G)}else throw x.blockedSegment.formatContext=L,x.legacyContext=K,x.context=G,at(G),be}}function Hn(g){var x=g.blockedBoundary;g=g.blockedSegment,g.status=3,gn(this,x,g)}function mr(g,x,T){var L=g.blockedBoundary;g.blockedSegment.status=3,L===null?(x.allPendingTasks--,x.status!==2&&(x.status=2,x.destination!==null&&x.destination.push(null))):(L.pendingTasks--,L.forceClientRender||(L.forceClientRender=!0,g=T===void 0?Error(n(432)):T,L.errorDigest=x.onError(g),L.parentFlushed&&x.clientRenderedBoundaries.push(L)),L.fallbackAbortableTasks.forEach(function(K){return mr(K,x,T)}),L.fallbackAbortableTasks.clear(),x.allPendingTasks--,x.allPendingTasks===0&&(L=x.onAllReady,L()))}function Kt(g,x){if(x.chunks.length===0&&x.children.length===1&&x.children[0].boundary===null){var T=x.children[0];T.id=x.id,T.parentFlushed=!0,T.status===1&&Kt(g,T)}else g.completedSegments.push(x)}function gn(g,x,T){if(x===null){if(T.parentFlushed){if(g.completedRootSegment!==null)throw Error(n(389));g.completedRootSegment=T}g.pendingRootTasks--,g.pendingRootTasks===0&&(g.onShellError=dn,x=g.onShellReady,x())}else x.pendingTasks--,x.forceClientRender||(x.pendingTasks===0?(T.parentFlushed&&T.status===1&&Kt(x,T),x.parentFlushed&&g.completedBoundaries.push(x),x.fallbackAbortableTasks.forEach(Hn,g),x.fallbackAbortableTasks.clear()):T.parentFlushed&&T.status===1&&(Kt(x,T),x.completedSegments.length===1&&x.parentFlushed&&g.partialBoundaries.push(x)));g.allPendingTasks--,g.allPendingTasks===0&&(g=g.onAllReady,g())}function Pt(g){if(g.status!==2){var x=gt,T=Fn.current;Fn.current=Rr;var L=hr;hr=g.responseState;try{var K=g.pingedTasks,G;for(G=0;G<K.length;G++){var q=K[G],le=g,be=q.blockedSegment;if(be.status===0){at(q.context);try{At(le,q,q.node),le.responseState.generateStaticMarkup||be.lastPushedText&&be.textEmbedded&&be.chunks.push("<!-- -->"),q.abortSet.delete(q),be.status=1,gn(le,q.blockedBoundary,be)}catch(Bt){if(Br(),typeof Bt=="object"&&Bt!==null&&typeof Bt.then=="function"){var Ce=q.ping;Bt.then(Ce,Ce)}else{q.abortSet.delete(q),be.status=4;var Se=q.blockedBoundary,Ue=Bt,Dt=fn(le,Ue);if(Se===null?_n(le,Ue):(Se.pendingTasks--,Se.forceClientRender||(Se.forceClientRender=!0,Se.errorDigest=Dt,Se.parentFlushed&&le.clientRenderedBoundaries.push(Se))),le.allPendingTasks--,le.allPendingTasks===0){var It=le.onAllReady;It()}}}finally{}}}K.splice(0,G),g.destination!==null&&Tt(g,g.destination)}catch(Bt){fn(g,Bt),_n(g,Bt)}finally{hr=L,Fn.current=T,T===Rr&&at(x)}}}function Nn(g,x,T){switch(T.parentFlushed=!0,T.status){case 0:var L=T.id=g.nextSegmentId++;return T.lastPushedText=!1,T.textEmbedded=!1,g=g.responseState,x.push('<template id="'),x.push(g.placeholderPrefix),g=L.toString(16),x.push(g),x.push('"></template>');case 1:T.status=2;var K=!0;L=T.chunks;var G=0;T=T.children;for(var q=0;q<T.length;q++){for(K=T[q];G<K.index;G++)x.push(L[G]);K=$n(g,x,K)}for(;G<L.length-1;G++)x.push(L[G]);return G<L.length&&(K=x.push(L[G])),K;default:throw Error(n(390))}}function $n(g,x,T){var L=T.boundary;if(L===null)return Nn(g,x,T);if(L.parentFlushed=!0,L.forceClientRender)return g.responseState.generateStaticMarkup||(L=L.errorDigest,x.push("<!--$!-->"),x.push("<template"),L&&(x.push(' data-dgst="'),L=D(L),x.push(L),x.push('"')),x.push("></template>")),Nn(g,x,T),g=g.responseState.generateStaticMarkup?!0:x.push("<!--/$-->"),g;if(0<L.pendingTasks){L.rootSegmentID=g.nextSegmentId++,0<L.completedSegments.length&&g.partialBoundaries.push(L);var K=g.responseState,G=K.nextSuspenseID++;return K=K.boundaryPrefix+G.toString(16),L=L.id=K,ue(x,g.responseState,L),Nn(g,x,T),x.push("<!--/$-->")}if(L.byteSize>g.progressiveChunkSize)return L.rootSegmentID=g.nextSegmentId++,g.completedBoundaries.push(L),ue(x,g.responseState,L.id),Nn(g,x,T),x.push("<!--/$-->");if(g.responseState.generateStaticMarkup||x.push("<!--$-->"),T=L.completedSegments,T.length!==1)throw Error(n(391));return $n(g,x,T[0]),g=g.responseState.generateStaticMarkup?!0:x.push("<!--/$-->"),g}function vr(g,x,T){return se(x,g.responseState,T.formatContext,T.id),$n(g,x,T),xe(x,T.formatContext)}function Wt(g,x,T){for(var L=T.completedSegments,K=0;K<L.length;K++)mn(g,x,T,L[K]);if(L.length=0,g=g.responseState,L=T.id,T=T.rootSegmentID,x.push(g.startInlineScript),g.sentCompleteBoundaryFunction?x.push('$RC("'):(g.sentCompleteBoundaryFunction=!0,x.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),L===null)throw Error(n(395));return T=T.toString(16),x.push(L),x.push('","'),x.push(g.segmentPrefix),x.push(T),x.push('")<\/script>')}function mn(g,x,T,L){if(L.status===2)return!0;var K=L.id;if(K===-1){if((L.id=T.rootSegmentID)===-1)throw Error(n(392));return vr(g,x,L)}return vr(g,x,L),g=g.responseState,x.push(g.startInlineScript),g.sentCompleteSegmentFunction?x.push('$RS("'):(g.sentCompleteSegmentFunction=!0,x.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),x.push(g.segmentPrefix),K=K.toString(16),x.push(K),x.push('","'),x.push(g.placeholderPrefix),x.push(K),x.push('")<\/script>')}function Tt(g,x){try{var T=g.completedRootSegment;if(T!==null&&g.pendingRootTasks===0){$n(g,x,T),g.completedRootSegment=null;var L=g.responseState.bootstrapChunks;for(T=0;T<L.length-1;T++)x.push(L[T]);T<L.length&&x.push(L[T])}var K=g.clientRenderedBoundaries,G;for(G=0;G<K.length;G++){var q=K[G];L=x;var le=g.responseState,be=q.id,Ce=q.errorDigest,Se=q.errorMessage,Ue=q.errorComponentStack;if(L.push(le.startInlineScript),le.sentClientRenderFunction?L.push('$RX("'):(le.sentClientRenderFunction=!0,L.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),be===null)throw Error(n(395));if(L.push(be),L.push('"'),Ce||Se||Ue){L.push(",");var Dt=me(Ce||"");L.push(Dt)}if(Se||Ue){L.push(",");var It=me(Se||"");L.push(It)}if(Ue){L.push(",");var Bt=me(Ue);L.push(Bt)}if(!L.push(")<\/script>")){g.destination=null,G++,K.splice(0,G);return}}K.splice(0,G);var Un=g.completedBoundaries;for(G=0;G<Un.length;G++)if(!Wt(g,x,Un[G])){g.destination=null,G++,Un.splice(0,G);return}Un.splice(0,G);var vn=g.partialBoundaries;for(G=0;G<vn.length;G++){var br=vn[G];e:{K=g,q=x;var zn=br.completedSegments;for(le=0;le<zn.length;le++)if(!mn(K,q,br,zn[le])){le++,zn.splice(0,le);var Zn=!1;break e}zn.splice(0,le),Zn=!0}if(!Zn){g.destination=null,G++,vn.splice(0,G);return}}vn.splice(0,G);var Cn=g.completedBoundaries;for(G=0;G<Cn.length;G++)if(!Wt(g,x,Cn[G])){g.destination=null,G++,Cn.splice(0,G);return}Cn.splice(0,G)}finally{g.allPendingTasks===0&&g.pingedTasks.length===0&&g.clientRenderedBoundaries.length===0&&g.completedBoundaries.length===0&&x.push(null)}}function yr(g,x){try{var T=g.abortableTasks;T.forEach(function(L){return mr(L,g,x)}),T.clear(),g.destination!==null&&Tt(g,g.destination)}catch(L){fn(g,L),_n(g,L)}}function wt(){}function _t(g,x,T,L){var K=!1,G=null,q="",le={push:function(Ce){return Ce!==null&&(q+=Ce),!0},destroy:function(Ce){K=!0,G=Ce}},be=!1;if(g=gr(g,M(T,x?x.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,wt,void 0,function(){be=!0}),Pt(g),yr(g,L),g.status===1)g.status=2,le.destroy(g.fatalError);else if(g.status!==2&&g.destination===null){g.destination=le;try{Tt(g,le)}catch(Ce){fn(g,Ce),_n(g,Ce)}}if(K)throw G;if(!be)throw Error(n(426));return q}return Bo.renderToNodeStream=function(){throw Error(n(207))},Bo.renderToStaticMarkup=function(g,x){return _t(g,x,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Bo.renderToStaticNodeStream=function(){throw Error(n(208))},Bo.renderToString=function(g,x){return _t(g,x,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Bo.version="18.3.1",Bo}var Ts={};/**
16
+ * @license React
17
+ * react-dom-server.browser.production.min.js
18
+ *
19
+ * Copyright (c) Facebook, Inc. and its affiliates.
20
+ *
21
+ * This source code is licensed under the MIT license found in the
22
+ * LICENSE file in the root directory of this source tree.
23
+ */var Hu;function of(){if(Hu)return Ts;Hu=1;var e=R;function n(v){for(var w="https://reactjs.org/docs/error-decoder.html?invariant="+v,k=1;k<arguments.length;k++)w+="&args[]="+encodeURIComponent(arguments[k]);return"Minified React error #"+v+"; visit "+w+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=null,i=0;function o(v,w){if(w.length!==0)if(512<w.length)0<i&&(v.enqueue(new Uint8Array(a.buffer,0,i)),a=new Uint8Array(512),i=0),v.enqueue(w);else{var k=a.length-i;k<w.length&&(k===0?v.enqueue(a):(a.set(w.subarray(0,k),i),v.enqueue(a),w=w.subarray(k)),a=new Uint8Array(512),i=0),a.set(w,i),i+=w.length}}function c(v,w){return o(v,w),!0}function u(v){a&&0<i&&(v.enqueue(new Uint8Array(a.buffer,0,i)),a=null,i=0)}var d=new TextEncoder;function A(v){return d.encode(v)}function p(v){return d.encode(v)}function h(v,w){typeof v.error=="function"?v.error(w):v.close()}var m=Object.prototype.hasOwnProperty,y=/^[: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]*$/,C={},D={};function Q(v){return m.call(D,v)?!0:m.call(C,v)?!1:y.test(v)?D[v]=!0:(C[v]=!0,!1)}function E(v,w,k,F,$,X,re){this.acceptsBooleans=w===2||w===3||w===4,this.attributeName=F,this.attributeNamespace=$,this.mustUseProperty=k,this.propertyName=v,this.type=w,this.sanitizeURL=X,this.removeEmptyString=re}var I={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(v){I[v]=new E(v,0,!1,v,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(v){var w=v[0];I[w]=new E(w,1,!1,v[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(v){I[v]=new E(v,2,!1,v.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(v){I[v]=new E(v,2,!1,v,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(v){I[v]=new E(v,3,!1,v.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(v){I[v]=new E(v,3,!0,v,null,!1,!1)}),["capture","download"].forEach(function(v){I[v]=new E(v,4,!1,v,null,!1,!1)}),["cols","rows","size","span"].forEach(function(v){I[v]=new E(v,6,!1,v,null,!1,!1)}),["rowSpan","start"].forEach(function(v){I[v]=new E(v,5,!1,v.toLowerCase(),null,!1,!1)});var _=/[\-:]([a-z])/g;function B(v){return v[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(v){var w=v.replace(_,B);I[w]=new E(w,1,!1,v,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(v){var w=v.replace(_,B);I[w]=new E(w,1,!1,v,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(v){var w=v.replace(_,B);I[w]=new E(w,1,!1,v,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(v){I[v]=new E(v,1,!1,v.toLowerCase(),null,!1,!1)}),I.xlinkHref=new E("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(v){I[v]=new E(v,1,!1,v.toLowerCase(),null,!0,!0)});var U={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},j=["Webkit","ms","Moz","O"];Object.keys(U).forEach(function(v){j.forEach(function(w){w=w+v.charAt(0).toUpperCase()+v.substring(1),U[w]=U[v]})});var z=/["'&<>]/;function W(v){if(typeof v=="boolean"||typeof v=="number")return""+v;v=""+v;var w=z.exec(v);if(w){var k="",F,$=0;for(F=w.index;F<v.length;F++){switch(v.charCodeAt(F)){case 34:w="&quot;";break;case 38:w="&amp;";break;case 39:w="&#x27;";break;case 60:w="&lt;";break;case 62:w="&gt;";break;default:continue}$!==F&&(k+=v.substring($,F)),$=F+1,k+=w}v=$!==F?k+v.substring($,F):k}return v}var te=/([A-Z])/g,J=/^ms-/,Y=Array.isArray,ee=p("<script>"),Z=p("<\/script>"),ie=p('<script src="'),ue=p('<script type="module" src="'),se=p('" async=""><\/script>'),xe=/(<\/|<)(s)(cript)/gi;function ge(v,w,k,F){return""+w+(k==="s"?"\\u0073":"\\u0053")+F}function me(v,w,k,F,$){v=v===void 0?"":v,w=w===void 0?ee:p('<script nonce="'+W(w)+'">');var X=[];if(k!==void 0&&X.push(w,A((""+k).replace(xe,ge)),Z),F!==void 0)for(k=0;k<F.length;k++)X.push(ie,A(W(F[k])),se);if($!==void 0)for(F=0;F<$.length;F++)X.push(ue,A(W($[F])),se);return{bootstrapChunks:X,startInlineScript:w,placeholderPrefix:p(v+"P:"),segmentPrefix:p(v+"S:"),boundaryPrefix:v+"B:",idPrefix:v,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function M(v,w){return{insertionMode:v,selectedValue:w}}function fe(v){return M(v==="http://www.w3.org/2000/svg"?2:v==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function O(v,w,k){switch(w){case"select":return M(1,k.value!=null?k.value:k.defaultValue);case"svg":return M(2,null);case"math":return M(3,null);case"foreignObject":return M(1,null);case"table":return M(4,null);case"thead":case"tbody":case"tfoot":return M(5,null);case"colgroup":return M(7,null);case"tr":return M(6,null)}return 4<=v.insertionMode||v.insertionMode===0?M(1,null):v}var de=p("<!-- -->");function Ee(v,w,k,F){return w===""?F:(F&&v.push(de),v.push(A(W(w))),!0)}var he=new Map,ve=p(' style="'),Te=p(":"),Qe=p(";");function tt(v,w,k){if(typeof k!="object")throw Error(n(62));w=!0;for(var F in k)if(m.call(k,F)){var $=k[F];if($!=null&&typeof $!="boolean"&&$!==""){if(F.indexOf("--")===0){var X=A(W(F));$=A(W((""+$).trim()))}else{X=F;var re=he.get(X);re!==void 0||(re=p(W(X.replace(te,"-$1").toLowerCase().replace(J,"-ms-"))),he.set(X,re)),X=re,$=typeof $=="number"?$===0||m.call(U,F)?A(""+$):A($+"px"):A(W((""+$).trim()))}w?(w=!1,v.push(ve,X,Te,$)):v.push(Qe,X,Te,$)}}w||v.push(qe)}var Le=p(" "),Je=p('="'),qe=p('"'),ft=p('=""');function Ne(v,w,k,F){switch(k){case"style":tt(v,w,F);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<k.length)||k[0]!=="o"&&k[0]!=="O"||k[1]!=="n"&&k[1]!=="N"){if(w=I.hasOwnProperty(k)?I[k]:null,w!==null){switch(typeof F){case"function":case"symbol":return;case"boolean":if(!w.acceptsBooleans)return}switch(k=A(w.attributeName),w.type){case 3:F&&v.push(Le,k,ft);break;case 4:F===!0?v.push(Le,k,ft):F!==!1&&v.push(Le,k,Je,A(W(F)),qe);break;case 5:isNaN(F)||v.push(Le,k,Je,A(W(F)),qe);break;case 6:!isNaN(F)&&1<=F&&v.push(Le,k,Je,A(W(F)),qe);break;default:w.sanitizeURL&&(F=""+F),v.push(Le,k,Je,A(W(F)),qe)}}else if(Q(k)){switch(typeof F){case"function":case"symbol":return;case"boolean":if(w=k.toLowerCase().slice(0,5),w!=="data-"&&w!=="aria-")return}v.push(Le,A(k),Je,A(W(F)),qe)}}}var We=p(">"),ct=p("/>");function ht(v,w,k){if(w!=null){if(k!=null)throw Error(n(60));if(typeof w!="object"||!("__html"in w))throw Error(n(61));w=w.__html,w!=null&&v.push(A(""+w))}}function ln(v){var w="";return e.Children.forEach(v,function(k){k!=null&&(w+=k)}),w}var pt=p(' selected=""');function Ft(v,w,k,F){v.push(st(k));var $=k=null,X;for(X in w)if(m.call(w,X)){var re=w[X];if(re!=null)switch(X){case"children":k=re;break;case"dangerouslySetInnerHTML":$=re;break;default:Ne(v,F,X,re)}}return v.push(We),ht(v,$,k),typeof k=="string"?(v.push(A(W(k))),null):k}var jt=p(`
24
+ `),Gt=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,gt=new Map;function st(v){var w=gt.get(v);if(w===void 0){if(!Gt.test(v))throw Error(n(65,v));w=p("<"+v),gt.set(v,w)}return w}var Xe=p("<!DOCTYPE html>");function Vt(v,w,k,F,$){switch(w){case"select":v.push(st("select"));var X=null,re=null;for(Me in k)if(m.call(k,Me)){var ce=k[Me];if(ce!=null)switch(Me){case"children":X=ce;break;case"dangerouslySetInnerHTML":re=ce;break;case"defaultValue":case"value":break;default:Ne(v,F,Me,ce)}}return v.push(We),ht(v,re,X),X;case"option":re=$.selectedValue,v.push(st("option"));var Pe=ce=null,Re=null,Me=null;for(X in k)if(m.call(k,X)){var $e=k[X];if($e!=null)switch(X){case"children":ce=$e;break;case"selected":Re=$e;break;case"dangerouslySetInnerHTML":Me=$e;break;case"value":Pe=$e;default:Ne(v,F,X,$e)}}if(re!=null)if(k=Pe!==null?""+Pe:ln(ce),Y(re)){for(F=0;F<re.length;F++)if(""+re[F]===k){v.push(pt);break}}else""+re===k&&v.push(pt);else Re&&v.push(pt);return v.push(We),ht(v,Me,ce),ce;case"textarea":v.push(st("textarea")),Me=re=X=null;for(ce in k)if(m.call(k,ce)&&(Pe=k[ce],Pe!=null))switch(ce){case"children":Me=Pe;break;case"value":X=Pe;break;case"defaultValue":re=Pe;break;case"dangerouslySetInnerHTML":throw Error(n(91));default:Ne(v,F,ce,Pe)}if(X===null&&re!==null&&(X=re),v.push(We),Me!=null){if(X!=null)throw Error(n(92));if(Y(Me)&&1<Me.length)throw Error(n(93));X=""+Me}return typeof X=="string"&&X[0]===`
25
+ `&&v.push(jt),X!==null&&v.push(A(W(""+X))),null;case"input":v.push(st("input")),Pe=Me=ce=X=null;for(re in k)if(m.call(k,re)&&(Re=k[re],Re!=null))switch(re){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,"input"));case"defaultChecked":Pe=Re;break;case"defaultValue":ce=Re;break;case"checked":Me=Re;break;case"value":X=Re;break;default:Ne(v,F,re,Re)}return Me!==null?Ne(v,F,"checked",Me):Pe!==null&&Ne(v,F,"checked",Pe),X!==null?Ne(v,F,"value",X):ce!==null&&Ne(v,F,"value",ce),v.push(ct),null;case"menuitem":v.push(st("menuitem"));for(var Nt in k)if(m.call(k,Nt)&&(X=k[Nt],X!=null))switch(Nt){case"children":case"dangerouslySetInnerHTML":throw Error(n(400));default:Ne(v,F,Nt,X)}return v.push(We),null;case"title":v.push(st("title")),X=null;for($e in k)if(m.call(k,$e)&&(re=k[$e],re!=null))switch($e){case"children":X=re;break;case"dangerouslySetInnerHTML":throw Error(n(434));default:Ne(v,F,$e,re)}return v.push(We),X;case"listing":case"pre":v.push(st(w)),re=X=null;for(Pe in k)if(m.call(k,Pe)&&(ce=k[Pe],ce!=null))switch(Pe){case"children":X=ce;break;case"dangerouslySetInnerHTML":re=ce;break;default:Ne(v,F,Pe,ce)}if(v.push(We),re!=null){if(X!=null)throw Error(n(60));if(typeof re!="object"||!("__html"in re))throw Error(n(61));k=re.__html,k!=null&&(typeof k=="string"&&0<k.length&&k[0]===`
26
+ `?v.push(jt,A(k)):v.push(A(""+k)))}return typeof X=="string"&&X[0]===`
27
+ `&&v.push(jt),X;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":v.push(st(w));for(var Zt in k)if(m.call(k,Zt)&&(X=k[Zt],X!=null))switch(Zt){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,w));default:Ne(v,F,Zt,X)}return v.push(ct),null;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 Ft(v,k,w,F);case"html":return $.insertionMode===0&&v.push(Xe),Ft(v,k,w,F);default:if(w.indexOf("-")===-1&&typeof k.is!="string")return Ft(v,k,w,F);v.push(st(w)),re=X=null;for(Re in k)if(m.call(k,Re)&&(ce=k[Re],ce!=null))switch(Re){case"children":X=ce;break;case"dangerouslySetInnerHTML":re=ce;break;case"style":tt(v,F,ce);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:Q(Re)&&typeof ce!="function"&&typeof ce!="symbol"&&v.push(Le,A(Re),Je,A(W(ce)),qe)}return v.push(We),ht(v,re,X),X}}var cn=p("</"),Xn=p(">"),at=p('<template id="'),ne=p('"></template>'),we=p("<!--$-->"),ke=p('<!--$?--><template id="'),He=p('"></template>'),_e=p("<!--$!-->"),kt=p("<!--/$-->"),Xt=p("<template"),yt=p('"'),Jt=p(' data-dgst="');p(' data-msg="'),p(' data-stck="');var Jn=p("></template>");function Ge(v,w,k){if(o(v,ke),k===null)throw Error(n(395));return o(v,k),c(v,He)}var bt=p('<div hidden id="'),mt=p('">'),Ye=p("</div>"),On=p('<svg aria-hidden="true" style="display:none" id="'),fr=p('">'),Kn=p("</svg>"),un=p('<math aria-hidden="true" style="display:none" id="'),pr=p('">'),En=p("</math>"),vt=p('<table hidden id="'),Ir=p('">'),Br=p("</table>"),to=p('<table hidden><tbody id="'),ut=p('">'),Mr=p("</tbody></table>"),Ho=p('<table hidden><tr id="'),No=p('">'),An=p("</tr></table>"),Rr=p('<table hidden><colgroup id="'),hr=p('">'),Fn=p("</colgroup></table>");function Lt(v,w,k,F){switch(k.insertionMode){case 0:case 1:return o(v,bt),o(v,w.segmentPrefix),o(v,A(F.toString(16))),c(v,mt);case 2:return o(v,On),o(v,w.segmentPrefix),o(v,A(F.toString(16))),c(v,fr);case 3:return o(v,un),o(v,w.segmentPrefix),o(v,A(F.toString(16))),c(v,pr);case 4:return o(v,vt),o(v,w.segmentPrefix),o(v,A(F.toString(16))),c(v,Ir);case 5:return o(v,to),o(v,w.segmentPrefix),o(v,A(F.toString(16))),c(v,ut);case 6:return o(v,Ho),o(v,w.segmentPrefix),o(v,A(F.toString(16))),c(v,No);case 7:return o(v,Rr),o(v,w.segmentPrefix),o(v,A(F.toString(16))),c(v,hr);default:throw Error(n(397))}}function dn(v,w){switch(w.insertionMode){case 0:case 1:return c(v,Ye);case 2:return c(v,Kn);case 3:return c(v,En);case 4:return c(v,Br);case 5:return c(v,Mr);case 6:return c(v,An);case 7:return c(v,Fn);default:throw Error(n(397))}}var gr=p('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),Ln=p('$RS("'),Qn=p('","'),fn=p('")<\/script>'),_n=p('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),Qt=p('$RC("'),no=p('","'),ro=p('")<\/script>'),kn=p('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),At=p('$RX("'),pn=p('"'),hn=p(")<\/script>"),Hn=p(","),mr=/[<\u2028\u2029]/g;function Kt(v){return JSON.stringify(v).replace(mr,function(w){switch(w){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var gn=Object.assign,Pt=Symbol.for("react.element"),Nn=Symbol.for("react.portal"),$n=Symbol.for("react.fragment"),vr=Symbol.for("react.strict_mode"),Wt=Symbol.for("react.profiler"),mn=Symbol.for("react.provider"),Tt=Symbol.for("react.context"),yr=Symbol.for("react.forward_ref"),wt=Symbol.for("react.suspense"),_t=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),T=Symbol.for("react.scope"),L=Symbol.for("react.debug_trace_mode"),K=Symbol.for("react.legacy_hidden"),G=Symbol.for("react.default_value"),q=Symbol.iterator;function le(v){if(v==null)return null;if(typeof v=="function")return v.displayName||v.name||null;if(typeof v=="string")return v;switch(v){case $n:return"Fragment";case Nn:return"Portal";case Wt:return"Profiler";case vr:return"StrictMode";case wt:return"Suspense";case _t:return"SuspenseList"}if(typeof v=="object")switch(v.$$typeof){case Tt:return(v.displayName||"Context")+".Consumer";case mn:return(v._context.displayName||"Context")+".Provider";case yr:var w=v.render;return v=v.displayName,v||(v=w.displayName||w.name||"",v=v!==""?"ForwardRef("+v+")":"ForwardRef"),v;case g:return w=v.displayName||null,w!==null?w:le(v.type)||"Memo";case x:w=v._payload,v=v._init;try{return le(v(w))}catch{}}return null}var be={};function Ce(v,w){if(v=v.contextTypes,!v)return be;var k={},F;for(F in v)k[F]=w[F];return k}var Se=null;function Ue(v,w){if(v!==w){v.context._currentValue=v.parentValue,v=v.parent;var k=w.parent;if(v===null){if(k!==null)throw Error(n(401))}else{if(k===null)throw Error(n(401));Ue(v,k)}w.context._currentValue=w.value}}function Dt(v){v.context._currentValue=v.parentValue,v=v.parent,v!==null&&Dt(v)}function It(v){var w=v.parent;w!==null&&It(w),v.context._currentValue=v.value}function Bt(v,w){if(v.context._currentValue=v.parentValue,v=v.parent,v===null)throw Error(n(402));v.depth===w.depth?Ue(v,w):Bt(v,w)}function Un(v,w){var k=w.parent;if(k===null)throw Error(n(402));v.depth===k.depth?Ue(v,k):Un(v,k),w.context._currentValue=w.value}function vn(v){var w=Se;w!==v&&(w===null?It(v):v===null?Dt(w):w.depth===v.depth?Ue(w,v):w.depth>v.depth?Bt(w,v):Un(w,v),Se=v)}var br={isMounted:function(){return!1},enqueueSetState:function(v,w){v=v._reactInternals,v.queue!==null&&v.queue.push(w)},enqueueReplaceState:function(v,w){v=v._reactInternals,v.replace=!0,v.queue=[w]},enqueueForceUpdate:function(){}};function zn(v,w,k,F){var $=v.state!==void 0?v.state:null;v.updater=br,v.props=k,v.state=$;var X={queue:[],replace:!1};v._reactInternals=X;var re=w.contextType;if(v.context=typeof re=="object"&&re!==null?re._currentValue:F,re=w.getDerivedStateFromProps,typeof re=="function"&&(re=re(k,$),$=re==null?$:gn({},$,re),v.state=$),typeof w.getDerivedStateFromProps!="function"&&typeof v.getSnapshotBeforeUpdate!="function"&&(typeof v.UNSAFE_componentWillMount=="function"||typeof v.componentWillMount=="function"))if(w=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),w!==v.state&&br.enqueueReplaceState(v,v.state,null),X.queue!==null&&0<X.queue.length)if(w=X.queue,re=X.replace,X.queue=null,X.replace=!1,re&&w.length===1)v.state=w[0];else{for(X=re?w[0]:v.state,$=!0,re=re?1:0;re<w.length;re++){var ce=w[re];ce=typeof ce=="function"?ce.call(v,X,k,F):ce,ce!=null&&($?($=!1,X=gn({},X,ce)):gn(X,ce))}v.state=X}else X.queue=null}var Zn={id:1,overflow:""};function Cn(v,w,k){var F=v.id;v=v.overflow;var $=32-qn(F)-1;F&=~(1<<$),k+=1;var X=32-qn(w)+$;if(30<X){var re=$-$%5;return X=(F&(1<<re)-1).toString(32),F>>=re,$-=re,{id:1<<32-qn(w)+$|k<<$|F,overflow:X+v}}return{id:1<<X|k<<$|F,overflow:v}}var qn=Math.clz32?Math.clz32:oo,Qi=Math.log,_i=Math.LN2;function oo(v){return v>>>=0,v===0?32:31-(Qi(v)/_i|0)|0}function yn(v,w){return v===w&&(v!==0||1/v===1/w)||v!==v&&w!==w}var Hi=typeof Object.is=="function"?Object.is:yn,Pn=null,Uo=null,ao=null,Ke=null,er=!1,io=!1,tr=0,jn=null,so=0;function Wn(){if(Pn===null)throw Error(n(321));return Pn}function $t(){if(0<so)throw Error(n(312));return{memoizedState:null,queue:null,next:null}}function zo(){return Ke===null?ao===null?(er=!1,ao=Ke=$t()):(er=!0,Ke=ao):Ke.next===null?(er=!1,Ke=Ke.next=$t()):(er=!0,Ke=Ke.next),Ke}function Or(){Uo=Pn=null,io=!1,ao=null,so=0,Ke=jn=null}function Ta(v,w){return typeof w=="function"?w(v):w}function lo(v,w,k){if(Pn=Wn(),Ke=zo(),er){var F=Ke.queue;if(w=F.dispatch,jn!==null&&(k=jn.get(F),k!==void 0)){jn.delete(F),F=Ke.memoizedState;do F=v(F,k.action),k=k.next;while(k!==null);return Ke.memoizedState=F,[F,w]}return[Ke.memoizedState,w]}return v=v===Ta?typeof w=="function"?w():w:k!==void 0?k(w):w,Ke.memoizedState=v,v=Ke.queue={last:null,dispatch:null},v=v.dispatch=Ni.bind(null,Pn,v),[Ke.memoizedState,v]}function Da(v,w){if(Pn=Wn(),Ke=zo(),w=w===void 0?null:w,Ke!==null){var k=Ke.memoizedState;if(k!==null&&w!==null){var F=k[1];e:if(F===null)F=!1;else{for(var $=0;$<F.length&&$<w.length;$++)if(!Hi(w[$],F[$])){F=!1;break e}F=!0}if(F)return k[0]}}return v=v(),Ke.memoizedState=[v,w],v}function Ni(v,w,k){if(25<=so)throw Error(n(301));if(v===Pn)if(io=!0,v={action:k,next:null},jn===null&&(jn=new Map),k=jn.get(w),k===void 0)jn.set(w,v);else{for(w=k;w.next!==null;)w=w.next;w.next=v}}function Ui(){throw Error(n(394))}function co(){}var Ia={readContext:function(v){return v._currentValue},useContext:function(v){return Wn(),v._currentValue},useMemo:Da,useReducer:lo,useRef:function(v){Pn=Wn(),Ke=zo();var w=Ke.memoizedState;return w===null?(v={current:v},Ke.memoizedState=v):w},useState:function(v){return lo(Ta,v)},useInsertionEffect:co,useLayoutEffect:function(){},useCallback:function(v,w){return Da(function(){return v},w)},useImperativeHandle:co,useEffect:co,useDebugValue:co,useDeferredValue:function(v){return Wn(),v},useTransition:function(){return Wn(),[!1,Ui]},useId:function(){var v=Uo.treeContext,w=v.overflow;v=v.id,v=(v&~(1<<32-qn(v)-1)).toString(32)+w;var k=Fr;if(k===null)throw Error(n(404));return w=tr++,v=":"+k.idPrefix+"R"+v,0<w&&(v+="H"+w.toString(32)),v+":"},useMutableSource:function(v,w){return Wn(),w(v._source)},useSyncExternalStore:function(v,w,k){if(k===void 0)throw Error(n(407));return k()}},Fr=null,jo=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function zi(v){return console.error(v),null}function wr(){}function Wo(v,w,k,F,$,X,re,ce,Pe){var Re=[],Me=new Set;return w={destination:null,responseState:w,progressiveChunkSize:F===void 0?12800:F,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Me,pingedTasks:Re,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:$===void 0?zi:$,onAllReady:X===void 0?wr:X,onShellReady:re===void 0?wr:re,onShellError:ce===void 0?wr:ce,onFatalError:Pe===void 0?wr:Pe},k=xr(w,0,null,k,!1,!1),k.parentFlushed=!0,v=Yo(w,v,null,k,Me,be,null,Zn),Re.push(v),w}function Yo(v,w,k,F,$,X,re,ce){v.allPendingTasks++,k===null?v.pendingRootTasks++:k.pendingTasks++;var Pe={node:w,ping:function(){var Re=v.pingedTasks;Re.push(Pe),Re.length===1&&Qa(v)},blockedBoundary:k,blockedSegment:F,abortSet:$,legacyContext:X,context:re,treeContext:ce};return $.add(Pe),Pe}function xr(v,w,k,F,$,X){return{status:0,id:-1,index:w,parentFlushed:!1,chunks:[],children:[],formatContext:F,boundary:k,lastPushedText:$,textEmbedded:X}}function Lr(v,w){if(v=v.onError(w),v!=null&&typeof v!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof v+'" instead');return v}function uo(v,w){var k=v.onShellError;k(w),k=v.onFatalError,k(w),v.destination!==null?(v.status=2,h(v.destination,w)):(v.status=1,v.fatalError=w)}function Ba(v,w,k,F,$){for(Pn={},Uo=w,tr=0,v=k(F,$);io;)io=!1,tr=0,so+=1,Ke=null,v=k(F,$);return Or(),v}function Ma(v,w,k,F){var $=k.render(),X=F.childContextTypes;if(X!=null){var re=w.legacyContext;if(typeof k.getChildContext!="function")F=re;else{k=k.getChildContext();for(var ce in k)if(!(ce in X))throw Error(n(108,le(F)||"Unknown",ce));F=gn({},re,k)}w.legacyContext=F,Ht(v,w,$),w.legacyContext=re}else Ht(v,w,$)}function Ra(v,w){if(v&&v.defaultProps){w=gn({},w),v=v.defaultProps;for(var k in v)w[k]===void 0&&(w[k]=v[k]);return w}return w}function Ao(v,w,k,F,$){if(typeof k=="function")if(k.prototype&&k.prototype.isReactComponent){$=Ce(k,w.legacyContext);var X=k.contextType;X=new k(F,typeof X=="object"&&X!==null?X._currentValue:$),zn(X,k,F,$),Ma(v,w,X,k)}else{X=Ce(k,w.legacyContext),$=Ba(v,w,k,F,X);var re=tr!==0;if(typeof $=="object"&&$!==null&&typeof $.render=="function"&&$.$$typeof===void 0)zn($,k,F,X),Ma(v,w,$,k);else if(re){F=w.treeContext,w.treeContext=Cn(F,1,0);try{Ht(v,w,$)}finally{w.treeContext=F}}else Ht(v,w,$)}else if(typeof k=="string"){switch($=w.blockedSegment,X=Vt($.chunks,k,F,v.responseState,$.formatContext),$.lastPushedText=!1,re=$.formatContext,$.formatContext=O(re,k,F),fo(v,w,X),$.formatContext=re,k){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:$.chunks.push(cn,A(k),Xn)}$.lastPushedText=!1}else{switch(k){case K:case L:case vr:case Wt:case $n:Ht(v,w,F.children);return;case _t:Ht(v,w,F.children);return;case T:throw Error(n(343));case wt:e:{k=w.blockedBoundary,$=w.blockedSegment,X=F.fallback,F=F.children,re=new Set;var ce={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:re,errorDigest:null},Pe=xr(v,$.chunks.length,ce,$.formatContext,!1,!1);$.children.push(Pe),$.lastPushedText=!1;var Re=xr(v,0,null,$.formatContext,!1,!1);Re.parentFlushed=!0,w.blockedBoundary=ce,w.blockedSegment=Re;try{if(fo(v,w,F),Re.lastPushedText&&Re.textEmbedded&&Re.chunks.push(de),Re.status=1,po(ce,Re),ce.pendingTasks===0)break e}catch(Me){Re.status=4,ce.forceClientRender=!0,ce.errorDigest=Lr(v,Me)}finally{w.blockedBoundary=k,w.blockedSegment=$}w=Yo(v,X,k,Pe,re,w.legacyContext,w.context,w.treeContext),v.pingedTasks.push(w)}return}if(typeof k=="object"&&k!==null)switch(k.$$typeof){case yr:if(F=Ba(v,w,k.render,F,$),tr!==0){k=w.treeContext,w.treeContext=Cn(k,1,0);try{Ht(v,w,F)}finally{w.treeContext=k}}else Ht(v,w,F);return;case g:k=k.type,F=Ra(k,F),Ao(v,w,k,F,$);return;case mn:if($=F.children,k=k._context,F=F.value,X=k._currentValue,k._currentValue=F,re=Se,Se=F={parent:re,depth:re===null?0:re.depth+1,context:k,parentValue:X,value:F},w.context=F,Ht(v,w,$),v=Se,v===null)throw Error(n(403));F=v.parentValue,v.context._currentValue=F===G?v.context._defaultValue:F,v=Se=v.parent,w.context=v;return;case Tt:F=F.children,F=F(k._currentValue),Ht(v,w,F);return;case x:$=k._init,k=$(k._payload),F=Ra(k,F),Ao(v,w,k,F,void 0);return}throw Error(n(130,k==null?k:typeof k,""))}}function Ht(v,w,k){if(w.node=k,typeof k=="object"&&k!==null){switch(k.$$typeof){case Pt:Ao(v,w,k.type,k.props,k.ref);return;case Nn:throw Error(n(257));case x:var F=k._init;k=F(k._payload),Ht(v,w,k);return}if(Y(k)){Oa(v,w,k);return}if(k===null||typeof k!="object"?F=null:(F=q&&k[q]||k["@@iterator"],F=typeof F=="function"?F:null),F&&(F=F.call(k))){if(k=F.next(),!k.done){var $=[];do $.push(k.value),k=F.next();while(!k.done);Oa(v,w,$)}return}throw v=Object.prototype.toString.call(k),Error(n(31,v==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":v))}typeof k=="string"?(F=w.blockedSegment,F.lastPushedText=Ee(w.blockedSegment.chunks,k,v.responseState,F.lastPushedText)):typeof k=="number"&&(F=w.blockedSegment,F.lastPushedText=Ee(w.blockedSegment.chunks,""+k,v.responseState,F.lastPushedText))}function Oa(v,w,k){for(var F=k.length,$=0;$<F;$++){var X=w.treeContext;w.treeContext=Cn(X,F,$);try{fo(v,w,k[$])}finally{w.treeContext=X}}}function fo(v,w,k){var F=w.blockedSegment.formatContext,$=w.legacyContext,X=w.context;try{return Ht(v,w,k)}catch(Pe){if(Or(),typeof Pe=="object"&&Pe!==null&&typeof Pe.then=="function"){k=Pe;var re=w.blockedSegment,ce=xr(v,re.chunks.length,null,re.formatContext,re.lastPushedText,!0);re.children.push(ce),re.lastPushedText=!1,v=Yo(v,w.node,w.blockedBoundary,ce,w.abortSet,w.legacyContext,w.context,w.treeContext).ping,k.then(v,v),w.blockedSegment.formatContext=F,w.legacyContext=$,w.context=X,vn(X)}else throw w.blockedSegment.formatContext=F,w.legacyContext=$,w.context=X,vn(X),Pe}}function ji(v){var w=v.blockedBoundary;v=v.blockedSegment,v.status=3,La(this,w,v)}function Fa(v,w,k){var F=v.blockedBoundary;v.blockedSegment.status=3,F===null?(w.allPendingTasks--,w.status!==2&&(w.status=2,w.destination!==null&&w.destination.close())):(F.pendingTasks--,F.forceClientRender||(F.forceClientRender=!0,v=k===void 0?Error(n(432)):k,F.errorDigest=w.onError(v),F.parentFlushed&&w.clientRenderedBoundaries.push(F)),F.fallbackAbortableTasks.forEach(function($){return Fa($,w,k)}),F.fallbackAbortableTasks.clear(),w.allPendingTasks--,w.allPendingTasks===0&&(F=w.onAllReady,F()))}function po(v,w){if(w.chunks.length===0&&w.children.length===1&&w.children[0].boundary===null){var k=w.children[0];k.id=w.id,k.parentFlushed=!0,k.status===1&&po(v,k)}else v.completedSegments.push(w)}function La(v,w,k){if(w===null){if(k.parentFlushed){if(v.completedRootSegment!==null)throw Error(n(389));v.completedRootSegment=k}v.pendingRootTasks--,v.pendingRootTasks===0&&(v.onShellError=wr,w=v.onShellReady,w())}else w.pendingTasks--,w.forceClientRender||(w.pendingTasks===0?(k.parentFlushed&&k.status===1&&po(w,k),w.parentFlushed&&v.completedBoundaries.push(w),w.fallbackAbortableTasks.forEach(ji,v),w.fallbackAbortableTasks.clear()):k.parentFlushed&&k.status===1&&(po(w,k),w.completedSegments.length===1&&w.parentFlushed&&v.partialBoundaries.push(w)));v.allPendingTasks--,v.allPendingTasks===0&&(v=v.onAllReady,v())}function Qa(v){if(v.status!==2){var w=Se,k=jo.current;jo.current=Ia;var F=Fr;Fr=v.responseState;try{var $=v.pingedTasks,X;for(X=0;X<$.length;X++){var re=$[X],ce=v,Pe=re.blockedSegment;if(Pe.status===0){vn(re.context);try{Ht(ce,re,re.node),Pe.lastPushedText&&Pe.textEmbedded&&Pe.chunks.push(de),re.abortSet.delete(re),Pe.status=1,La(ce,re.blockedBoundary,Pe)}catch(qt){if(Or(),typeof qt=="object"&&qt!==null&&typeof qt.then=="function"){var Re=re.ping;qt.then(Re,Re)}else{re.abortSet.delete(re),Pe.status=4;var Me=re.blockedBoundary,$e=qt,Nt=Lr(ce,$e);if(Me===null?uo(ce,$e):(Me.pendingTasks--,Me.forceClientRender||(Me.forceClientRender=!0,Me.errorDigest=Nt,Me.parentFlushed&&ce.clientRenderedBoundaries.push(Me))),ce.allPendingTasks--,ce.allPendingTasks===0){var Zt=ce.onAllReady;Zt()}}}finally{}}}$.splice(0,X),v.destination!==null&&Go(v,v.destination)}catch(qt){Lr(v,qt),uo(v,qt)}finally{Fr=F,jo.current=k,k===Ia&&vn(w)}}}function ho(v,w,k){switch(k.parentFlushed=!0,k.status){case 0:var F=k.id=v.nextSegmentId++;return k.lastPushedText=!1,k.textEmbedded=!1,v=v.responseState,o(w,at),o(w,v.placeholderPrefix),v=A(F.toString(16)),o(w,v),c(w,ne);case 1:k.status=2;var $=!0;F=k.chunks;var X=0;k=k.children;for(var re=0;re<k.length;re++){for($=k[re];X<$.index;X++)o(w,F[X]);$=go(v,w,$)}for(;X<F.length-1;X++)o(w,F[X]);return X<F.length&&($=c(w,F[X])),$;default:throw Error(n(390))}}function go(v,w,k){var F=k.boundary;if(F===null)return ho(v,w,k);if(F.parentFlushed=!0,F.forceClientRender)F=F.errorDigest,c(w,_e),o(w,Xt),F&&(o(w,Jt),o(w,A(W(F))),o(w,yt)),c(w,Jn),ho(v,w,k);else if(0<F.pendingTasks){F.rootSegmentID=v.nextSegmentId++,0<F.completedSegments.length&&v.partialBoundaries.push(F);var $=v.responseState,X=$.nextSuspenseID++;$=p($.boundaryPrefix+X.toString(16)),F=F.id=$,Ge(w,v.responseState,F),ho(v,w,k)}else if(F.byteSize>v.progressiveChunkSize)F.rootSegmentID=v.nextSegmentId++,v.completedBoundaries.push(F),Ge(w,v.responseState,F.id),ho(v,w,k);else{if(c(w,we),k=F.completedSegments,k.length!==1)throw Error(n(391));go(v,w,k[0])}return c(w,kt)}function _a(v,w,k){return Lt(w,v.responseState,k.formatContext,k.id),go(v,w,k),dn(w,k.formatContext)}function Ha(v,w,k){for(var F=k.completedSegments,$=0;$<F.length;$++)Na(v,w,k,F[$]);if(F.length=0,v=v.responseState,F=k.id,k=k.rootSegmentID,o(w,v.startInlineScript),v.sentCompleteBoundaryFunction?o(w,Qt):(v.sentCompleteBoundaryFunction=!0,o(w,_n)),F===null)throw Error(n(395));return k=A(k.toString(16)),o(w,F),o(w,no),o(w,v.segmentPrefix),o(w,k),c(w,ro)}function Na(v,w,k,F){if(F.status===2)return!0;var $=F.id;if($===-1){if((F.id=k.rootSegmentID)===-1)throw Error(n(392));return _a(v,w,F)}return _a(v,w,F),v=v.responseState,o(w,v.startInlineScript),v.sentCompleteSegmentFunction?o(w,Ln):(v.sentCompleteSegmentFunction=!0,o(w,gr)),o(w,v.segmentPrefix),$=A($.toString(16)),o(w,$),o(w,Qn),o(w,v.placeholderPrefix),o(w,$),c(w,fn)}function Go(v,w){a=new Uint8Array(512),i=0;try{var k=v.completedRootSegment;if(k!==null&&v.pendingRootTasks===0){go(v,w,k),v.completedRootSegment=null;var F=v.responseState.bootstrapChunks;for(k=0;k<F.length-1;k++)o(w,F[k]);k<F.length&&c(w,F[k])}var $=v.clientRenderedBoundaries,X;for(X=0;X<$.length;X++){var re=$[X];F=w;var ce=v.responseState,Pe=re.id,Re=re.errorDigest,Me=re.errorMessage,$e=re.errorComponentStack;if(o(F,ce.startInlineScript),ce.sentClientRenderFunction?o(F,At):(ce.sentClientRenderFunction=!0,o(F,kn)),Pe===null)throw Error(n(395));o(F,Pe),o(F,pn),(Re||Me||$e)&&(o(F,Hn),o(F,A(Kt(Re||"")))),(Me||$e)&&(o(F,Hn),o(F,A(Kt(Me||"")))),$e&&(o(F,Hn),o(F,A(Kt($e)))),c(F,hn)}$.splice(0,X);var Nt=v.completedBoundaries;for(X=0;X<Nt.length;X++)Ha(v,w,Nt[X]);Nt.splice(0,X),u(w),a=new Uint8Array(512),i=0;var Zt=v.partialBoundaries;for(X=0;X<Zt.length;X++){var qt=Zt[X];e:{$=v,re=w;var mo=qt.completedSegments;for(ce=0;ce<mo.length;ce++)if(!Na($,re,qt,mo[ce])){ce++,mo.splice(0,ce);var za=!1;break e}mo.splice(0,ce),za=!0}if(!za){v.destination=null,X++,Zt.splice(0,X);return}}Zt.splice(0,X);var Qr=v.completedBoundaries;for(X=0;X<Qr.length;X++)Ha(v,w,Qr[X]);Qr.splice(0,X)}finally{u(w),v.allPendingTasks===0&&v.pingedTasks.length===0&&v.clientRenderedBoundaries.length===0&&v.completedBoundaries.length===0&&w.close()}}function Ua(v,w){try{var k=v.abortableTasks;k.forEach(function(F){return Fa(F,v,w)}),k.clear(),v.destination!==null&&Go(v,v.destination)}catch(F){Lr(v,F),uo(v,F)}}return Ts.renderToReadableStream=function(v,w){return new Promise(function(k,F){var $,X,re=new Promise(function(Me,$e){X=Me,$=$e}),ce=Wo(v,me(w?w.identifierPrefix:void 0,w?w.nonce:void 0,w?w.bootstrapScriptContent:void 0,w?w.bootstrapScripts:void 0,w?w.bootstrapModules:void 0),fe(w?w.namespaceURI:void 0),w?w.progressiveChunkSize:void 0,w?w.onError:void 0,X,function(){var Me=new ReadableStream({type:"bytes",pull:function($e){if(ce.status===1)ce.status=2,h($e,ce.fatalError);else if(ce.status!==2&&ce.destination===null){ce.destination=$e;try{Go(ce,$e)}catch(Nt){Lr(ce,Nt),uo(ce,Nt)}}},cancel:function(){Ua(ce)}},{highWaterMark:0});Me.allReady=re,k(Me)},function(Me){re.catch(function(){}),F(Me)},$);if(w&&w.signal){var Pe=w.signal,Re=function(){Ua(ce,Pe.reason),Pe.removeEventListener("abort",Re)};Pe.addEventListener("abort",Re)}Qa(ce)})},Ts.version="18.3.1",Ts}var Mo={};/**
28
+ * @license React
29
+ * react-dom-server-legacy.browser.development.js
30
+ *
31
+ * Copyright (c) Facebook, Inc. and its affiliates.
32
+ *
33
+ * This source code is licensed under the MIT license found in the
34
+ * LICENSE file in the root directory of this source tree.
35
+ */var Nu;function af(){return Nu||(Nu=1,process.env.NODE_ENV!=="production"&&function(){var e=R,n="18.3.1",a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function i(t){{for(var r=arguments.length,s=new Array(r>1?r-1:0),f=1;f<r;f++)s[f-1]=arguments[f];c("warn",t,s)}}function o(t){{for(var r=arguments.length,s=new Array(r>1?r-1:0),f=1;f<r;f++)s[f-1]=arguments[f];c("error",t,s)}}function c(t,r,s){{var f=a.ReactDebugCurrentFrame,b=f.getStackAddendum();b!==""&&(r+="%s",s=s.concat([b]));var S=s.map(function(P){return String(P)});S.unshift("Warning: "+r),Function.prototype.apply.call(console[t],console,S)}}function u(t){t()}function d(t){}function A(t,r){p(t,r)}function p(t,r){return t.push(r)}function h(t){}function m(t){t.push(null)}function y(t){return t}function C(t){return t}function D(t,r){t.destroy(r)}function Q(t){{var r=typeof Symbol=="function"&&Symbol.toStringTag,s=r&&t[Symbol.toStringTag]||t.constructor.name||"Object";return s}}function E(t){try{return I(t),!1}catch{return!0}}function I(t){return""+t}function _(t,r){if(E(t))return o("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",r,Q(t)),I(t)}function B(t,r){if(E(t))return o("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",r,Q(t)),I(t)}function U(t){if(E(t))return o("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",Q(t)),I(t)}var j=Object.prototype.hasOwnProperty,z=0,W=1,te=2,J=3,Y=4,ee=5,Z=6,ie=":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",ue=ie+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",se=new RegExp("^["+ie+"]["+ue+"]*$"),xe={},ge={};function me(t){return j.call(ge,t)?!0:j.call(xe,t)?!1:se.test(t)?(ge[t]=!0,!0):(xe[t]=!0,o("Invalid attribute name: `%s`",t),!1)}function M(t,r,s,f){if(s!==null&&s.type===z)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":{if(s!==null)return!s.acceptsBooleans;var b=t.toLowerCase().slice(0,5);return b!=="data-"&&b!=="aria-"}default:return!1}}function fe(t){return de.hasOwnProperty(t)?de[t]:null}function O(t,r,s,f,b,S,P){this.acceptsBooleans=r===te||r===J||r===Y,this.attributeName=f,this.attributeNamespace=b,this.mustUseProperty=s,this.propertyName=t,this.type=r,this.sanitizeURL=S,this.removeEmptyString=P}var de={},Ee=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Ee.forEach(function(t){de[t]=new O(t,z,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var r=t[0],s=t[1];de[r]=new O(r,W,!1,s,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){de[t]=new O(t,te,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){de[t]=new O(t,te,!1,t,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(t){de[t]=new O(t,J,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){de[t]=new O(t,J,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){de[t]=new O(t,Y,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){de[t]=new O(t,Z,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){de[t]=new O(t,ee,!1,t.toLowerCase(),null,!1,!1)});var he=/[\-\:]([a-z])/g,ve=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(t){var r=t.replace(he,ve);de[r]=new O(r,W,!1,t,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(t){var r=t.replace(he,ve);de[r]=new O(r,W,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var r=t.replace(he,ve);de[r]=new O(r,W,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){de[t]=new O(t,W,!1,t.toLowerCase(),null,!1,!1)});var Te="xlinkHref";de[Te]=new O("xlinkHref",W,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){de[t]=new O(t,W,!1,t.toLowerCase(),null,!0,!0)});var Qe={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};function tt(t,r){return t+r.charAt(0).toUpperCase()+r.substring(1)}var Le=["Webkit","ms","Moz","O"];Object.keys(Qe).forEach(function(t){Le.forEach(function(r){Qe[tt(r,t)]=Qe[t]})});var Je={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function qe(t,r){Je[r.type]||r.onChange||r.onInput||r.readOnly||r.disabled||r.value==null||o("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),r.onChange||r.readOnly||r.disabled||r.checked==null||o("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function ft(t,r){if(t.indexOf("-")===-1)return typeof r.is=="string";switch(t){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 Ne={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},We={},ct=new RegExp("^(aria)-["+ue+"]*$"),ht=new RegExp("^(aria)[A-Z]["+ue+"]*$");function ln(t,r){{if(j.call(We,r)&&We[r])return!0;if(ht.test(r)){var s="aria-"+r.slice(4).toLowerCase(),f=Ne.hasOwnProperty(s)?s:null;if(f==null)return o("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",r),We[r]=!0,!0;if(r!==f)return o("Invalid ARIA attribute `%s`. Did you mean `%s`?",r,f),We[r]=!0,!0}if(ct.test(r)){var b=r.toLowerCase(),S=Ne.hasOwnProperty(b)?b:null;if(S==null)return We[r]=!0,!1;if(r!==S)return o("Unknown ARIA attribute `%s`. Did you mean `%s`?",r,S),We[r]=!0,!0}}return!0}function pt(t,r){{var s=[];for(var f in r){var b=ln(t,f);b||s.push(f)}var S=s.map(function(P){return"`"+P+"`"}).join(", ");s.length===1?o("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",S,t):s.length>1&&o("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",S,t)}}function Ft(t,r){ft(t,r)||pt(t,r)}var jt=!1;function Gt(t,r){{if(t!=="input"&&t!=="textarea"&&t!=="select")return;r!=null&&r.value===null&&!jt&&(jt=!0,t==="select"&&r.multiple?o("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",t):o("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",t))}}var gt={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},st=function(){};{var Xe={},Vt=/^on./,cn=/^on[^A-Z]/,Xn=new RegExp("^(aria)-["+ue+"]*$"),at=new RegExp("^(aria)[A-Z]["+ue+"]*$");st=function(t,r,s,f){if(j.call(Xe,r)&&Xe[r])return!0;var b=r.toLowerCase();if(b==="onfocusin"||b==="onfocusout")return o("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Xe[r]=!0,!0;if(f!=null){var S=f.registrationNameDependencies,P=f.possibleRegistrationNames;if(S.hasOwnProperty(r))return!0;var H=P.hasOwnProperty(b)?P[b]:null;if(H!=null)return o("Invalid event handler property `%s`. Did you mean `%s`?",r,H),Xe[r]=!0,!0;if(Vt.test(r))return o("Unknown event handler property `%s`. It will be ignored.",r),Xe[r]=!0,!0}else if(Vt.test(r))return cn.test(r)&&o("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",r),Xe[r]=!0,!0;if(Xn.test(r)||at.test(r))return!0;if(b==="innerhtml")return o("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Xe[r]=!0,!0;if(b==="aria")return o("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Xe[r]=!0,!0;if(b==="is"&&s!==null&&s!==void 0&&typeof s!="string")return o("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof s),Xe[r]=!0,!0;if(typeof s=="number"&&isNaN(s))return o("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",r),Xe[r]=!0,!0;var V=fe(r),oe=V!==null&&V.type===z;if(gt.hasOwnProperty(b)){var ae=gt[b];if(ae!==r)return o("Invalid DOM property `%s`. Did you mean `%s`?",r,ae),Xe[r]=!0,!0}else if(!oe&&r!==b)return o("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",r,b),Xe[r]=!0,!0;return typeof s=="boolean"&&M(r,s,V)?(s?o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',s,r,r,s,r):o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',s,r,r,s,r,r,r),Xe[r]=!0,!0):oe?!0:M(r,s,V)?(Xe[r]=!0,!1):((s==="false"||s==="true")&&V!==null&&V.type===J&&(o("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",s,r,s==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',r,s),Xe[r]=!0),!0)}}var ne=function(t,r,s){{var f=[];for(var b in r){var S=st(t,b,r[b],s);S||f.push(b)}var P=f.map(function(H){return"`"+H+"`"}).join(", ");f.length===1?o("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",P,t):f.length>1&&o("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",P,t)}};function we(t,r,s){ft(t,r)||ne(t,r,s)}var ke=function(){};{var He=/^(?:webkit|moz|o)[A-Z]/,_e=/^-ms-/,kt=/-(.)/g,Xt=/;\s*$/,yt={},Jt={},Jn=!1,Ge=!1,bt=function(t){return t.replace(kt,function(r,s){return s.toUpperCase()})},mt=function(t){yt.hasOwnProperty(t)&&yt[t]||(yt[t]=!0,o("Unsupported style property %s. Did you mean %s?",t,bt(t.replace(_e,"ms-"))))},Ye=function(t){yt.hasOwnProperty(t)&&yt[t]||(yt[t]=!0,o("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1)))},On=function(t,r){Jt.hasOwnProperty(r)&&Jt[r]||(Jt[r]=!0,o(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,r.replace(Xt,"")))},fr=function(t,r){Jn||(Jn=!0,o("`NaN` is an invalid value for the `%s` css style property.",t))},Kn=function(t,r){Ge||(Ge=!0,o("`Infinity` is an invalid value for the `%s` css style property.",t))};ke=function(t,r){t.indexOf("-")>-1?mt(t):He.test(t)?Ye(t):Xt.test(r)&&On(t,r),typeof r=="number"&&(isNaN(r)?fr(t,r):isFinite(r)||Kn(t,r))}}var un=ke,pr=/["'&<>]/;function En(t){U(t);var r=""+t,s=pr.exec(r);if(!s)return r;var f,b="",S,P=0;for(S=s.index;S<r.length;S++){switch(r.charCodeAt(S)){case 34:f="&quot;";break;case 38:f="&amp;";break;case 39:f="&#x27;";break;case 60:f="&lt;";break;case 62:f="&gt;";break;default:continue}P!==S&&(b+=r.substring(P,S)),P=S+1,b+=f}return P!==S?b+r.substring(P,S):b}function vt(t){return typeof t=="boolean"||typeof t=="number"?""+t:En(t)}var Ir=/([A-Z])/g,Br=/^ms-/;function to(t){return t.replace(Ir,"-$1").toLowerCase().replace(Br,"-ms-")}var ut=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,Mr=!1;function Ho(t){!Mr&&ut.test(t)&&(Mr=!0,o("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(t)))}var No=Array.isArray;function An(t){return No(t)}var Rr="<script>";function hr(t,r,s,f,b){var S=t===void 0?"":t,P=Rr,H=[];return{bootstrapChunks:H,startInlineScript:P,placeholderPrefix:S+"P:",segmentPrefix:S+"S:",boundaryPrefix:S+"B:",idPrefix:S,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Fn=0,Lt=1,dn=2,gr=3,Ln=4,Qn=5,fn=6,_n=7;function Qt(t,r){return{insertionMode:t,selectedValue:r}}function no(t,r,s){switch(r){case"select":return Qt(Lt,s.value!=null?s.value:s.defaultValue);case"svg":return Qt(dn,null);case"math":return Qt(gr,null);case"foreignObject":return Qt(Lt,null);case"table":return Qt(Ln,null);case"thead":case"tbody":case"tfoot":return Qt(Qn,null);case"colgroup":return Qt(_n,null);case"tr":return Qt(fn,null)}return t.insertionMode>=Ln||t.insertionMode===Fn?Qt(Lt,null):t}var ro=null;function kn(t){var r=t.nextSuspenseID++;return t.boundaryPrefix+r.toString(16)}function At(t,r,s){var f=t.idPrefix,b=":"+f+"R"+r;return s>0&&(b+="H"+s.toString(32)),b+":"}function pn(t){return vt(t)}var hn="<!-- -->";function Hn(t,r,s,f){return r===""?f:(f&&t.push(hn),t.push(pn(r)),!0)}function mr(t,r,s,f){s&&f&&t.push(hn)}var Kt=new Map;function gn(t){var r=Kt.get(t);if(r!==void 0)return r;var s=vt(to(t));return Kt.set(t,s),s}var Pt=' style="',Nn=":",$n=";";function vr(t,r,s){if(typeof s!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var f=!0;for(var b in s)if(j.call(s,b)){var S=s[b];if(!(S==null||typeof S=="boolean"||S==="")){var P=void 0,H=void 0,V=b.indexOf("--")===0;V?(P=vt(b),B(S,b),H=vt((""+S).trim())):(un(b,S),P=gn(b),typeof S=="number"?S!==0&&!j.call(Qe,b)?H=S+"px":H=""+S:(B(S,b),H=vt((""+S).trim()))),f?(f=!1,t.push(Pt,P,Nn,H)):t.push($n,P,Nn,H)}}f||t.push(Tt)}var Wt=" ",mn='="',Tt='"',yr='=""';function wt(t,r,s,f){switch(s){case"style":{vr(t,r,f);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(s.length>2&&(s[0]==="o"||s[0]==="O")&&(s[1]==="n"||s[1]==="N"))){var b=fe(s);if(b!==null){switch(typeof f){case"function":case"symbol":return;case"boolean":if(!b.acceptsBooleans)return}var S=b.attributeName,P=S;switch(b.type){case J:f&&t.push(Wt,P,yr);return;case Y:f===!0?t.push(Wt,P,yr):f===!1||t.push(Wt,P,mn,vt(f),Tt);return;case ee:isNaN(f)||t.push(Wt,P,mn,vt(f),Tt);break;case Z:!isNaN(f)&&f>=1&&t.push(Wt,P,mn,vt(f),Tt);break;default:b.sanitizeURL&&(_(f,S),f=""+f,Ho(f)),t.push(Wt,P,mn,vt(f),Tt)}}else if(me(s)){switch(typeof f){case"function":case"symbol":return;case"boolean":{var H=s.toLowerCase().slice(0,5);if(H!=="data-"&&H!=="aria-")return}}t.push(Wt,s,mn,vt(f),Tt)}}}var _t=">",g="/>";function x(t,r,s){if(r!=null){if(s!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof r!="object"||!("__html"in r))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var f=r.__html;f!=null&&(U(f),t.push(""+f))}}var T=!1,L=!1,K=!1,G=!1,q=!1,le=!1,be=!1;function Ce(t,r){{var s=t[r];if(s!=null){var f=An(s);t.multiple&&!f?o("The `%s` prop supplied to <select> must be an array if `multiple` is true.",r):!t.multiple&&f&&o("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",r)}}}function Se(t,r,s){qe("select",r),Ce(r,"value"),Ce(r,"defaultValue"),r.value!==void 0&&r.defaultValue!==void 0&&!K&&(o("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),K=!0),t.push(yn("select"));var f=null,b=null;for(var S in r)if(j.call(r,S)){var P=r[S];if(P==null)continue;switch(S){case"children":f=P;break;case"dangerouslySetInnerHTML":b=P;break;case"defaultValue":case"value":break;default:wt(t,s,S,P);break}}return t.push(_t),x(t,b,f),f}function Ue(t){var r="";return e.Children.forEach(t,function(s){s!=null&&(r+=s,!q&&typeof s!="string"&&typeof s!="number"&&(q=!0,o("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),r}var Dt=' selected=""';function It(t,r,s,f){var b=f.selectedValue;t.push(yn("option"));var S=null,P=null,H=null,V=null;for(var oe in r)if(j.call(r,oe)){var ae=r[oe];if(ae==null)continue;switch(oe){case"children":S=ae;break;case"selected":H=ae,be||(o("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),be=!0);break;case"dangerouslySetInnerHTML":V=ae;break;case"value":P=ae;default:wt(t,s,oe,ae);break}}if(b!=null){var pe;if(P!==null?(_(P,"value"),pe=""+P):(V!==null&&(le||(le=!0,o("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),pe=Ue(S)),An(b))for(var De=0;De<b.length;De++){_(b[De],"value");var je=""+b[De];if(je===pe){t.push(Dt);break}}else _(b,"select.value"),""+b===pe&&t.push(Dt)}else H&&t.push(Dt);return t.push(_t),x(t,V,S),S}function Bt(t,r,s){qe("input",r),r.checked!==void 0&&r.defaultChecked!==void 0&&!L&&(o("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",r.type),L=!0),r.value!==void 0&&r.defaultValue!==void 0&&!T&&(o("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",r.type),T=!0),t.push(yn("input"));var f=null,b=null,S=null,P=null;for(var H in r)if(j.call(r,H)){var V=r[H];if(V==null)continue;switch(H){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":P=V;break;case"defaultValue":b=V;break;case"checked":S=V;break;case"value":f=V;break;default:wt(t,s,H,V);break}}return S!==null?wt(t,s,"checked",S):P!==null&&wt(t,s,"checked",P),f!==null?wt(t,s,"value",f):b!==null&&wt(t,s,"value",b),t.push(g),null}function Un(t,r,s){qe("textarea",r),r.value!==void 0&&r.defaultValue!==void 0&&!G&&(o("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),G=!0),t.push(yn("textarea"));var f=null,b=null,S=null;for(var P in r)if(j.call(r,P)){var H=r[P];if(H==null)continue;switch(P){case"children":S=H;break;case"value":f=H;break;case"defaultValue":b=H;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:wt(t,s,P,H);break}}if(f===null&&b!==null&&(f=b),t.push(_t),S!=null){if(o("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),f!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(An(S)){if(S.length>1)throw new Error("<textarea> can only have at most one child.");U(S[0]),f=""+S[0]}U(S),f=""+S}return typeof f=="string"&&f[0]===`
36
+ `&&t.push(qn),f!==null&&(_(f,"value"),t.push(pn(""+f))),null}function vn(t,r,s,f){t.push(yn(s));for(var b in r)if(j.call(r,b)){var S=r[b];if(S==null)continue;switch(b){case"children":case"dangerouslySetInnerHTML":throw new Error(s+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:wt(t,f,b,S);break}}return t.push(g),null}function br(t,r,s){t.push(yn("menuitem"));for(var f in r)if(j.call(r,f)){var b=r[f];if(b==null)continue;switch(f){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:wt(t,s,f,b);break}}return t.push(_t),null}function zn(t,r,s){t.push(yn("title"));var f=null;for(var b in r)if(j.call(r,b)){var S=r[b];if(S==null)continue;switch(b){case"children":f=S;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:wt(t,s,b,S);break}}t.push(_t);{var P=Array.isArray(f)&&f.length<2?f[0]||null:f;Array.isArray(f)&&f.length>1?o("A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):P!=null&&P.$$typeof!=null?o("A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):P!=null&&typeof P!="string"&&typeof P!="number"&&o("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return f}function Zn(t,r,s,f){t.push(yn(s));var b=null,S=null;for(var P in r)if(j.call(r,P)){var H=r[P];if(H==null)continue;switch(P){case"children":b=H;break;case"dangerouslySetInnerHTML":S=H;break;default:wt(t,f,P,H);break}}return t.push(_t),x(t,S,b),typeof b=="string"?(t.push(pn(b)),null):b}function Cn(t,r,s,f){t.push(yn(s));var b=null,S=null;for(var P in r)if(j.call(r,P)){var H=r[P];if(H==null)continue;switch(P){case"children":b=H;break;case"dangerouslySetInnerHTML":S=H;break;case"style":vr(t,f,H);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:me(P)&&typeof H!="function"&&typeof H!="symbol"&&t.push(Wt,P,mn,vt(H),Tt);break}}return t.push(_t),x(t,S,b),b}var qn=`
37
+ `;function Qi(t,r,s,f){t.push(yn(s));var b=null,S=null;for(var P in r)if(j.call(r,P)){var H=r[P];if(H==null)continue;switch(P){case"children":b=H;break;case"dangerouslySetInnerHTML":S=H;break;default:wt(t,f,P,H);break}}if(t.push(_t),S!=null){if(b!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof S!="object"||!("__html"in S))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var V=S.__html;V!=null&&(typeof V=="string"&&V.length>0&&V[0]===`
38
+ `?t.push(qn,V):(U(V),t.push(""+V)))}return typeof b=="string"&&b[0]===`
39
+ `&&t.push(qn),b}var _i=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,oo=new Map;function yn(t){var r=oo.get(t);if(r===void 0){if(!_i.test(t))throw new Error("Invalid tag: "+t);r="<"+t,oo.set(t,r)}return r}var Hi="<!DOCTYPE html>";function Pn(t,r,s,f,b){switch(Ft(r,s),Gt(r,s),we(r,s,null),!s.suppressContentEditableWarning&&s.contentEditable&&s.children!=null&&o("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),b.insertionMode!==dn&&b.insertionMode!==gr&&r.indexOf("-")===-1&&typeof s.is!="string"&&r.toLowerCase()!==r&&o("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",r),r){case"select":return Se(t,s,f);case"option":return It(t,s,f,b);case"textarea":return Un(t,s,f);case"input":return Bt(t,s,f);case"menuitem":return br(t,s,f);case"title":return zn(t,s,f);case"listing":case"pre":return Qi(t,s,r,f);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return vn(t,s,r,f);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 Zn(t,s,r,f);case"html":return b.insertionMode===Fn&&t.push(Hi),Zn(t,s,r,f);default:return r.indexOf("-")===-1&&typeof s.is!="string"?Zn(t,s,r,f):Cn(t,s,r,f)}}var Uo="</",ao=">";function Ke(t,r,s){switch(r){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:t.push(Uo,r,ao)}}function er(t,r){for(var s=r.bootstrapChunks,f=0;f<s.length-1;f++)A(t,s[f]);return f<s.length?p(t,s[f]):!0}var io='<template id="',tr='"></template>';function jn(t,r,s){A(t,io),A(t,r.placeholderPrefix);var f=s.toString(16);return A(t,f),p(t,tr)}var so="<!--$-->",Wn='<!--$?--><template id="',$t='"></template>',zo="<!--$!-->",Or="<!--/$-->",Ta="<template",lo='"',Da=' data-dgst="',Ni=' data-msg="',Ui=' data-stck="',co="></template>";function Ia(t,r){return p(t,so)}function Fr(t,r,s){if(A(t,Wn),s===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return A(t,s),p(t,$t)}function jo(t,r,s,f,b){var S;return S=p(t,zo),A(t,Ta),s&&(A(t,Da),A(t,vt(s)),A(t,lo)),f&&(A(t,Ni),A(t,vt(f)),A(t,lo)),b&&(A(t,Ui),A(t,vt(b)),A(t,lo)),S=p(t,co),S}function zi(t,r){return p(t,Or)}function wr(t,r){return p(t,Or)}function Wo(t,r){return p(t,Or)}var Yo='<div hidden id="',xr='">',Lr="</div>",uo='<svg aria-hidden="true" style="display:none" id="',Ba='">',Ma="</svg>",Ra='<math aria-hidden="true" style="display:none" id="',Ao='">',Ht="</math>",Oa='<table hidden id="',fo='">',ji="</table>",Fa='<table hidden><tbody id="',po='">',La="</tbody></table>",Qa='<table hidden><tr id="',ho='">',go="</tr></table>",_a='<table hidden><colgroup id="',Ha='">',Na="</colgroup></table>";function Go(t,r,s,f){switch(s.insertionMode){case Fn:case Lt:return A(t,Yo),A(t,r.segmentPrefix),A(t,f.toString(16)),p(t,xr);case dn:return A(t,uo),A(t,r.segmentPrefix),A(t,f.toString(16)),p(t,Ba);case gr:return A(t,Ra),A(t,r.segmentPrefix),A(t,f.toString(16)),p(t,Ao);case Ln:return A(t,Oa),A(t,r.segmentPrefix),A(t,f.toString(16)),p(t,fo);case Qn:return A(t,Fa),A(t,r.segmentPrefix),A(t,f.toString(16)),p(t,po);case fn:return A(t,Qa),A(t,r.segmentPrefix),A(t,f.toString(16)),p(t,ho);case _n:return A(t,_a),A(t,r.segmentPrefix),A(t,f.toString(16)),p(t,Ha);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function Ua(t,r){switch(r.insertionMode){case Fn:case Lt:return p(t,Lr);case dn:return p(t,Ma);case gr:return p(t,Ht);case Ln:return p(t,ji);case Qn:return p(t,La);case fn:return p(t,go);case _n:return p(t,Na);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var v="function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}",w='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',k='function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}',F=v+';$RS("',$='$RS("',X='","',re='")<\/script>';function ce(t,r,s){A(t,r.startInlineScript),r.sentCompleteSegmentFunction?A(t,$):(r.sentCompleteSegmentFunction=!0,A(t,F)),A(t,r.segmentPrefix);var f=s.toString(16);return A(t,f),A(t,X),A(t,r.placeholderPrefix),A(t,f),p(t,re)}var Pe=w+';$RC("',Re='$RC("',Me='","',$e='")<\/script>';function Nt(t,r,s,f){if(A(t,r.startInlineScript),r.sentCompleteBoundaryFunction?A(t,Re):(r.sentCompleteBoundaryFunction=!0,A(t,Pe)),s===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var b=f.toString(16);return A(t,s),A(t,Me),A(t,r.segmentPrefix),A(t,b),p(t,$e)}var Zt=k+';$RX("',qt='$RX("',mo='"',za=")<\/script>",Qr=",";function zc(t,r,s,f,b,S){if(A(t,r.startInlineScript),r.sentClientRenderFunction?A(t,qt):(r.sentClientRenderFunction=!0,A(t,Zt)),s===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return A(t,s),A(t,mo),(f||b||S)&&(A(t,Qr),A(t,Wi(f||""))),(b||S)&&(A(t,Qr),A(t,Wi(b||""))),S&&(A(t,Qr),A(t,Wi(S))),p(t,za)}var jc=/[<\u2028\u2029]/g;function Wi(t){var r=JSON.stringify(t);return r.replace(jc,function(s){switch(s){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function Wc(t,r){var s=hr(r);return{bootstrapChunks:s.bootstrapChunks,startInlineScript:s.startInlineScript,placeholderPrefix:s.placeholderPrefix,segmentPrefix:s.segmentPrefix,boundaryPrefix:s.boundaryPrefix,idPrefix:s.idPrefix,nextSuspenseID:s.nextSuspenseID,sentCompleteSegmentFunction:s.sentCompleteSegmentFunction,sentCompleteBoundaryFunction:s.sentCompleteBoundaryFunction,sentClientRenderFunction:s.sentClientRenderFunction,generateStaticMarkup:t}}function Yc(){return{insertionMode:Lt,selectedValue:null}}function Zs(t,r,s,f){return s.generateStaticMarkup?(t.push(vt(r)),!1):Hn(t,r,s,f)}function qs(t,r,s,f){if(!r.generateStaticMarkup)return mr(t,r,s,f)}function Gc(t,r){return r.generateStaticMarkup?!0:Ia(t)}function Vc(t,r,s,f,b){return r.generateStaticMarkup?!0:jo(t,r,s,f,b)}function Xc(t,r){return r.generateStaticMarkup?!0:zi(t)}function Jc(t,r){return r.generateStaticMarkup?!0:Wo(t)}var Yt=Object.assign,Kc=Symbol.for("react.element"),el=Symbol.for("react.portal"),ja=Symbol.for("react.fragment"),en=Symbol.for("react.strict_mode"),tl=Symbol.for("react.profiler"),Wa=Symbol.for("react.provider"),Ya=Symbol.for("react.context"),Ga=Symbol.for("react.forward_ref"),Va=Symbol.for("react.suspense"),Vo=Symbol.for("react.suspense_list"),Xo=Symbol.for("react.memo"),vo=Symbol.for("react.lazy"),Yi=Symbol.for("react.scope"),Gi=Symbol.for("react.debug_trace_mode"),Vi=Symbol.for("react.legacy_hidden"),Xa=Symbol.for("react.default_value"),nl=Symbol.iterator,$c="@@iterator";function Zc(t){if(t===null||typeof t!="object")return null;var r=nl&&t[nl]||t[$c];return typeof r=="function"?r:null}function qc(t,r,s){var f=t.displayName;if(f)return f;var b=r.displayName||r.name||"";return b!==""?s+"("+b+")":s}function Xi(t){return t.displayName||"Context"}function it(t){if(t==null)return null;if(typeof t.tag=="number"&&o("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case ja:return"Fragment";case el:return"Portal";case tl:return"Profiler";case en:return"StrictMode";case Va:return"Suspense";case Vo:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Ya:var r=t;return Xi(r)+".Consumer";case Wa:var s=t;return Xi(s._context)+".Provider";case Ga:return qc(t,t.render,"ForwardRef");case Xo:var f=t.displayName||null;return f!==null?f:it(t.type)||"Memo";case vo:{var b=t,S=b._payload,P=b._init;try{return it(P(S))}catch{return null}}}return null}var Jo=0,rl,Ji,nt,yo,Ki,$i,Zi;function qi(){}qi.__reactDisabledLog=!0;function ol(){{if(Jo===0){rl=console.log,Ji=console.info,nt=console.warn,yo=console.error,Ki=console.group,$i=console.groupCollapsed,Zi=console.groupEnd;var t={configurable:!0,enumerable:!0,value:qi,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}Jo++}}function al(){{if(Jo--,Jo===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Yt({},t,{value:rl}),info:Yt({},t,{value:Ji}),warn:Yt({},t,{value:nt}),error:Yt({},t,{value:yo}),group:Yt({},t,{value:Ki}),groupCollapsed:Yt({},t,{value:$i}),groupEnd:Yt({},t,{value:Zi})})}Jo<0&&o("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ja=a.ReactCurrentDispatcher,Ka;function Ko(t,r,s){{if(Ka===void 0)try{throw Error()}catch(b){var f=b.stack.trim().match(/\n( *(at )?)/);Ka=f&&f[1]||""}return`
40
+ `+Ka+t}}var es=!1,bo;{var ts=typeof WeakMap=="function"?WeakMap:Map;bo=new ts}function _r(t,r){if(!t||es)return"";{var s=bo.get(t);if(s!==void 0)return s}var f;es=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var S;S=Ja.current,Ja.current=null,ol();try{if(r){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(Ct){f=Ct}Reflect.construct(t,[],P)}else{try{P.call()}catch(Ct){f=Ct}t.call(P.prototype)}}else{try{throw Error()}catch(Ct){f=Ct}t()}}catch(Ct){if(Ct&&f&&typeof Ct.stack=="string"){for(var H=Ct.stack.split(`
41
+ `),V=f.stack.split(`
42
+ `),oe=H.length-1,ae=V.length-1;oe>=1&&ae>=0&&H[oe]!==V[ae];)ae--;for(;oe>=1&&ae>=0;oe--,ae--)if(H[oe]!==V[ae]){if(oe!==1||ae!==1)do if(oe--,ae--,ae<0||H[oe]!==V[ae]){var pe=`
43
+ `+H[oe].replace(" at new "," at ");return t.displayName&&pe.includes("<anonymous>")&&(pe=pe.replace("<anonymous>",t.displayName)),typeof t=="function"&&bo.set(t,pe),pe}while(oe>=1&&ae>=0);break}}}finally{es=!1,Ja.current=S,al(),Error.prepareStackTrace=b}var De=t?t.displayName||t.name:"",je=De?Ko(De):"";return typeof t=="function"&&bo.set(t,je),je}function ns(t,r,s){return _r(t,!0)}function $o(t,r,s){return _r(t,!1)}function eu(t){var r=t.prototype;return!!(r&&r.isReactComponent)}function Zo(t,r,s){if(t==null)return"";if(typeof t=="function")return _r(t,eu(t));if(typeof t=="string")return Ko(t);switch(t){case Va:return Ko("Suspense");case Vo:return Ko("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case Ga:return $o(t.render);case Xo:return Zo(t.type,r,s);case vo:{var f=t,b=f._payload,S=f._init;try{return Zo(S(b),r,s)}catch{}}}return""}var il={},rs=a.ReactDebugCurrentFrame;function $a(t){if(t){var r=t._owner,s=Zo(t.type,t._source,r?r.type:null);rs.setExtraStackFrame(s)}else rs.setExtraStackFrame(null)}function Za(t,r,s,f,b){{var S=Function.call.bind(j);for(var P in t)if(S(t,P)){var H=void 0;try{if(typeof t[P]!="function"){var V=Error((f||"React class")+": "+s+" type `"+P+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[P]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw V.name="Invariant Violation",V}H=t[P](r,P,f,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(oe){H=oe}H&&!(H instanceof Error)&&($a(b),o("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",f||"React class",s,P,typeof H),$a(null)),H instanceof Error&&!(H.message in il)&&(il[H.message]=!0,$a(b),o("Failed %s type: %s",s,H.message),$a(null))}}}var qa;qa={};var qo={};Object.freeze(qo);function ea(t,r){{var s=t.contextTypes;if(!s)return qo;var f={};for(var b in s)f[b]=r[b];{var S=it(t)||"Unknown";Za(s,f,"context",S)}return f}}function sl(t,r,s,f){{if(typeof t.getChildContext!="function"){{var b=it(r)||"Unknown";qa[b]||(qa[b]=!0,o("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",b,b))}return s}var S=t.getChildContext();for(var P in S)if(!(P in f))throw new Error((it(r)||"Unknown")+'.getChildContext(): key "'+P+'" is not defined in childContextTypes.');{var H=it(r)||"Unknown";Za(f,S,"child context",H)}return Yt({},s,S)}}var Hr;Hr={};var ei=null,Sr=null;function os(t){t.context._currentValue2=t.parentValue}function Nr(t){t.context._currentValue2=t.value}function ti(t,r){if(t!==r){os(t);var s=t.parent,f=r.parent;if(s===null){if(f!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(f===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");ti(s,f)}Nr(r)}}function Er(t){os(t);var r=t.parent;r!==null&&Er(r)}function ni(t){var r=t.parent;r!==null&&ni(r),Nr(t)}function ri(t,r){os(t);var s=t.parent;if(s===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");s.depth===r.depth?ti(s,r):ri(s,r)}function ta(t,r){var s=r.parent;if(s===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");t.depth===s.depth?ti(t,s):ta(t,s),Nr(r)}function na(t){var r=Sr,s=t;r!==s&&(r===null?ni(s):s===null?Er(r):r.depth===s.depth?ti(r,s):r.depth>s.depth?ri(r,s):ta(r,s),Sr=s)}function ll(t,r){var s;s=t._currentValue2,t._currentValue2=r,t._currentRenderer2!==void 0&&t._currentRenderer2!==null&&t._currentRenderer2!==Hr&&o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer2=Hr;var f=Sr,b={parent:f,depth:f===null?0:f.depth+1,context:t,parentValue:s,value:r};return Sr=b,b}function cl(t){var r=Sr;if(r===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");r.context!==t&&o("The parent context is not the expected context. This is probably a bug in React.");{var s=r.parentValue;s===Xa?r.context._currentValue2=r.context._defaultValue:r.context._currentValue2=s,t._currentRenderer2!==void 0&&t._currentRenderer2!==null&&t._currentRenderer2!==Hr&&o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer2=Hr}return Sr=r.parent}function ul(){return Sr}function kr(t){var r=t._currentValue2;return r}function as(t){return t._reactInternals}function tu(t,r){t._reactInternals=r}var Al={},wo={},ra,is,oi,ai,ii,xo,oa,aa,si;{ra=new Set,is=new Set,oi=new Set,oa=new Set,ai=new Set,aa=new Set,si=new Set;var ia=new Set;xo=function(t,r){if(!(t===null||typeof t=="function")){var s=r+"_"+t;ia.has(s)||(ia.add(s),o("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",r,t))}},ii=function(t,r){if(r===void 0){var s=it(t)||"Component";ai.has(s)||(ai.add(s),o("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",s))}}}function li(t,r){{var s=t.constructor,f=s&&it(s)||"ReactClass",b=f+"."+r;if(Al[b])return;o(`%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
44
+
45
+ Please check the code for the %s component.`,r,r,f),Al[b]=!0}}var ci={isMounted:function(t){return!1},enqueueSetState:function(t,r,s){var f=as(t);f.queue===null?li(t,"setState"):(f.queue.push(r),s!=null&&xo(s,"setState"))},enqueueReplaceState:function(t,r,s){var f=as(t);f.replace=!0,f.queue=[r],s!=null&&xo(s,"setState")},enqueueForceUpdate:function(t,r){var s=as(t);s.queue===null?li(t,"forceUpdate"):r!=null&&xo(r,"setState")}};function ss(t,r,s,f,b){var S=s(b,f);ii(r,S);var P=S==null?f:Yt({},f,S);return P}function dl(t,r,s){var f=qo,b=t.contextType;if("contextType"in t){var S=b===null||b!==void 0&&b.$$typeof===Ya&&b._context===void 0;if(!S&&!si.has(t)){si.add(t);var P="";b===void 0?P=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof b!="object"?P=" However, it is set to a "+typeof b+".":b.$$typeof===Wa?P=" Did you accidentally pass the Context.Provider instead?":b._context!==void 0?P=" Did you accidentally pass the Context.Consumer instead?":P=" However, it is set to an object with keys {"+Object.keys(b).join(", ")+"}.",o("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",it(t)||"Component",P)}}typeof b=="object"&&b!==null?f=kr(b):f=s;var H=new t(r,f);{if(typeof t.getDerivedStateFromProps=="function"&&(H.state===null||H.state===void 0)){var V=it(t)||"Component";ra.has(V)||(ra.add(V),o("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",V,H.state===null?"null":"undefined",V))}if(typeof t.getDerivedStateFromProps=="function"||typeof H.getSnapshotBeforeUpdate=="function"){var oe=null,ae=null,pe=null;if(typeof H.componentWillMount=="function"&&H.componentWillMount.__suppressDeprecationWarning!==!0?oe="componentWillMount":typeof H.UNSAFE_componentWillMount=="function"&&(oe="UNSAFE_componentWillMount"),typeof H.componentWillReceiveProps=="function"&&H.componentWillReceiveProps.__suppressDeprecationWarning!==!0?ae="componentWillReceiveProps":typeof H.UNSAFE_componentWillReceiveProps=="function"&&(ae="UNSAFE_componentWillReceiveProps"),typeof H.componentWillUpdate=="function"&&H.componentWillUpdate.__suppressDeprecationWarning!==!0?pe="componentWillUpdate":typeof H.UNSAFE_componentWillUpdate=="function"&&(pe="UNSAFE_componentWillUpdate"),oe!==null||ae!==null||pe!==null){var De=it(t)||"Component",je=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";oi.has(De)||(oi.add(De),o(`Unsafe legacy lifecycles will not be called for components using new component APIs.
46
+
47
+ %s uses %s but also contains the following legacy lifecycles:%s%s%s
48
+
49
+ The above lifecycles should be removed. Learn more about this warning here:
50
+ https://reactjs.org/link/unsafe-component-lifecycles`,De,je,oe!==null?`
51
+ `+oe:"",ae!==null?`
52
+ `+ae:"",pe!==null?`
53
+ `+pe:""))}}}return H}function fl(t,r,s){{var f=it(r)||"Component",b=t.render;b||(r.prototype&&typeof r.prototype.render=="function"?o("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",f):o("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",f)),t.getInitialState&&!t.getInitialState.isReactClassApproved&&!t.state&&o("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",f),t.getDefaultProps&&!t.getDefaultProps.isReactClassApproved&&o("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",f),t.propTypes&&o("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",f),t.contextType&&o("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",f),t.contextTypes&&o("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",f),r.contextType&&r.contextTypes&&!aa.has(r)&&(aa.add(r),o("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",f)),typeof t.componentShouldUpdate=="function"&&o("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",f),r.prototype&&r.prototype.isPureReactComponent&&typeof t.shouldComponentUpdate<"u"&&o("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",it(r)||"A pure component"),typeof t.componentDidUnmount=="function"&&o("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",f),typeof t.componentDidReceiveProps=="function"&&o("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",f),typeof t.componentWillRecieveProps=="function"&&o("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",f),typeof t.UNSAFE_componentWillRecieveProps=="function"&&o("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",f);var S=t.props!==s;t.props!==void 0&&S&&o("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",f,f),t.defaultProps&&o("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",f,f),typeof t.getSnapshotBeforeUpdate=="function"&&typeof t.componentDidUpdate!="function"&&!is.has(r)&&(is.add(r),o("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",it(r))),typeof t.getDerivedStateFromProps=="function"&&o("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",f),typeof t.getDerivedStateFromError=="function"&&o("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",f),typeof r.getSnapshotBeforeUpdate=="function"&&o("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",f);var P=t.state;P&&(typeof P!="object"||An(P))&&o("%s.state: must be set to an object or null",f),typeof t.getChildContext=="function"&&typeof r.childContextTypes!="object"&&o("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",f)}}function pl(t,r){var s=r.state;if(typeof r.componentWillMount=="function"){if(r.componentWillMount.__suppressDeprecationWarning!==!0){var f=it(t)||"Unknown";wo[f]||(i(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
54
+
55
+ * Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
56
+
57
+ Please update the following components: %s`,f),wo[f]=!0)}r.componentWillMount()}typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),s!==r.state&&(o("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",it(t)||"Component"),ci.enqueueReplaceState(r,r.state,null))}function nu(t,r,s,f){if(t.queue!==null&&t.queue.length>0){var b=t.queue,S=t.replace;if(t.queue=null,t.replace=!1,S&&b.length===1)r.state=b[0];else{for(var P=S?b[0]:r.state,H=!0,V=S?1:0;V<b.length;V++){var oe=b[V],ae=typeof oe=="function"?oe.call(r,P,s,f):oe;ae!=null&&(H?(H=!1,P=Yt({},P,ae)):Yt(P,ae))}r.state=P}}else t.queue=null}function hl(t,r,s,f){fl(t,r,s);var b=t.state!==void 0?t.state:null;t.updater=ci,t.props=s,t.state=b;var S={queue:[],replace:!1};tu(t,S);var P=r.contextType;if(typeof P=="object"&&P!==null?t.context=kr(P):t.context=f,t.state===s){var H=it(r)||"Component";oa.has(H)||(oa.add(H),o("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",H))}var V=r.getDerivedStateFromProps;typeof V=="function"&&(t.state=ss(t,r,V,b,s)),typeof r.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function"&&(typeof t.UNSAFE_componentWillMount=="function"||typeof t.componentWillMount=="function")&&(pl(r,t),nu(S,t,s,f))}var ru={id:1,overflow:""};function ou(t){var r=t.overflow,s=t.id,f=s&~au(s);return f.toString(32)+r}function ls(t,r,s){var f=t.id,b=t.overflow,S=sa(f)-1,P=f&~(1<<S),H=s+1,V=sa(r)+S;if(V>30){var oe=S-S%5,ae=(1<<oe)-1,pe=(P&ae).toString(32),De=P>>oe,je=S-oe,Ct=sa(r)+je,Vr=H<<je,Xr=Vr|De,ir=pe+b;return{id:1<<Ct|Xr,overflow:ir}}else{var Do=H<<S,Qu=Do|P,Cm=b;return{id:1<<V|Qu,overflow:Cm}}}function sa(t){return 32-iu(t)}function au(t){return 1<<sa(t)-1}var iu=Math.clz32?Math.clz32:su,cs=Math.log,ui=Math.LN2;function su(t){var r=t>>>0;return r===0?32:31-(cs(r)/ui|0)|0}function lu(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var cu=typeof Object.is=="function"?Object.is:lu,nr=null,us=null,Ai=null,et=null,tn=!1,So=!1,Ur=0,ze=null,Cr=0,di=25,nn=!1,rn;function Yn(){if(nr===null)throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
58
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
59
+ 2. You might be breaking the Rules of Hooks
60
+ 3. You might have more than one copy of React in the same app
61
+ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return nn&&o("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks"),nr}function uu(t,r){if(r===null)return o("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",rn),!1;t.length!==r.length&&o(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
62
+
63
+ Previous: %s
64
+ Incoming: %s`,rn,"["+t.join(", ")+"]","["+r.join(", ")+"]");for(var s=0;s<r.length&&s<t.length;s++)if(!cu(t[s],r[s]))return!1;return!0}function Tn(){if(Cr>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function Pr(){return et===null?Ai===null?(tn=!1,Ai=et=Tn()):(tn=!0,et=Ai):et.next===null?(tn=!1,et=et.next=Tn()):(tn=!0,et=et.next),et}function zr(t,r){nr=r,us=t,nn=!1,Ur=0}function Au(t,r,s,f){for(;So;)So=!1,Ur=0,Cr+=1,et=null,s=t(r,f);return la(),s}function As(){var t=Ur!==0;return t}function la(){nn=!1,nr=null,us=null,So=!1,Ai=null,Cr=0,ze=null,et=null}function du(t){return nn&&o("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),kr(t)}function fu(t){return rn="useContext",Yn(),kr(t)}function fi(t,r){return typeof r=="function"?r(t):r}function ds(t){return rn="useState",gl(fi,t)}function gl(t,r,s){if(t!==fi&&(rn="useReducer"),nr=Yn(),et=Pr(),tn){var f=et.queue,b=f.dispatch;if(ze!==null){var S=ze.get(f);if(S!==void 0){ze.delete(f);var P=et.memoizedState,H=S;do{var V=H.action;nn=!0,P=t(P,V),nn=!1,H=H.next}while(H!==null);return et.memoizedState=P,[P,b]}}return[et.memoizedState,b]}else{nn=!0;var oe;t===fi?oe=typeof r=="function"?r():r:oe=s!==void 0?s(r):r,nn=!1,et.memoizedState=oe;var ae=et.queue={last:null,dispatch:null},pe=ae.dispatch=vl.bind(null,nr,ae);return[et.memoizedState,pe]}}function ml(t,r){nr=Yn(),et=Pr();var s=r===void 0?null:r;if(et!==null){var f=et.memoizedState;if(f!==null&&s!==null){var b=f[1];if(uu(s,b))return f[0]}}nn=!0;var S=t();return nn=!1,et.memoizedState=[S,s],S}function fs(t){nr=Yn(),et=Pr();var r=et.memoizedState;if(r===null){var s={current:t};return Object.seal(s),et.memoizedState=s,s}else return r}function pu(t,r){rn="useLayoutEffect",o("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.")}function vl(t,r,s){if(Cr>=di)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(t===nr){So=!0;var f={action:s,next:null};ze===null&&(ze=new Map);var b=ze.get(r);if(b===void 0)ze.set(r,f);else{for(var S=b;S.next!==null;)S=S.next;S.next=f}}}function yl(t,r){return ml(function(){return t},r)}function hu(t,r,s){return Yn(),r(t._source)}function gu(t,r,s){if(s===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return s()}function mu(t){return Yn(),t}function vu(){throw new Error("startTransition cannot be called during server rendering.")}function yu(){return Yn(),[!1,vu]}function bu(){var t=us,r=ou(t.treeContext),s=ps;if(s===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var f=Ur++;return At(s,r,f)}function pi(){}var bl={readContext:du,useContext:fu,useMemo:ml,useReducer:gl,useRef:fs,useState:ds,useInsertionEffect:pi,useLayoutEffect:pu,useCallback:yl,useImperativeHandle:pi,useEffect:pi,useDebugValue:pi,useDeferredValue:mu,useTransition:yu,useId:bu,useMutableSource:hu,useSyncExternalStore:gu},ps=null;function wl(t){ps=t}function hi(t){try{var r="",s=t;do{switch(s.tag){case 0:r+=Ko(s.type,null,null);break;case 1:r+=$o(s.type,null,null);break;case 2:r+=ns(s.type,null,null);break}s=s.parent}while(s);return r}catch(f){return`
65
+ Error generating stack: `+f.message+`
66
+ `+f.stack}}var gi=a.ReactCurrentDispatcher,ca=a.ReactDebugCurrentFrame,mi=0,Eo=1,vi=2,yi=3,bi=4,ko=0,hs=1,jr=2,xl=12800;function wu(t){return console.error(t),null}function Co(){}function Po(t,r,s,f,b,S,P,H,V){var oe=[],ae=new Set,pe={destination:null,responseState:r,progressiveChunkSize:f===void 0?xl:f,status:ko,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:ae,pingedTasks:oe,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:b===void 0?wu:b,onAllReady:Co,onShellReady:P===void 0?Co:P,onShellError:Co,onFatalError:Co},De=wi(pe,0,null,s,!1,!1);De.parentFlushed=!0;var je=Wr(pe,t,null,De,ae,qo,ei,ru);return oe.push(je),pe}function xu(t,r){var s=t.pingedTasks;s.push(r),s.length===1&&u(function(){return ks(t)})}function Su(t,r){return{id:ro,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:r,errorDigest:null}}function Wr(t,r,s,f,b,S,P,H){t.allPendingTasks++,s===null?t.pendingRootTasks++:s.pendingTasks++;var V={node:r,ping:function(){return xu(t,V)},blockedBoundary:s,blockedSegment:f,abortSet:b,legacyContext:S,context:P,treeContext:H};return V.componentStack=null,b.add(V),V}function wi(t,r,s,f,b,S){return{status:mi,id:-1,index:r,parentFlushed:!1,chunks:[],children:[],formatContext:f,boundary:s,lastPushedText:b,textEmbedded:S}}var rr=null;function gs(){return rr===null||rr.componentStack===null?"":hi(rr.componentStack)}function Yr(t,r){t.componentStack={tag:0,parent:t.componentStack,type:r}}function ua(t,r){t.componentStack={tag:1,parent:t.componentStack,type:r}}function or(t,r){t.componentStack={tag:2,parent:t.componentStack,type:r}}function Gn(t){t.componentStack===null?o("Unexpectedly popped too many stack frames. This is a bug in React."):t.componentStack=t.componentStack.parent}var ar=null;function xi(t,r){{var s;typeof r=="string"?s=r:r&&typeof r.message=="string"?s=r.message:s=String(r);var f=ar||gs();ar=null,t.errorMessage=s,t.errorComponentStack=f}}function Aa(t,r){var s=t.onError(r);if(s!=null&&typeof s!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof s+'" instead');return s}function Dn(t,r){var s=t.onShellError;s(r);var f=t.onFatalError;f(r),t.destination!==null?(t.status=jr,D(t.destination,r)):(t.status=hs,t.fatalError=r)}function da(t,r,s){Yr(r,"Suspense");var f=r.blockedBoundary,b=r.blockedSegment,S=s.fallback,P=s.children,H=new Set,V=Su(t,H),oe=b.chunks.length,ae=wi(t,oe,V,b.formatContext,!1,!1);b.children.push(ae),b.lastPushedText=!1;var pe=wi(t,0,null,b.formatContext,!1,!1);pe.parentFlushed=!0,r.blockedBoundary=V,r.blockedSegment=pe;try{if(Ut(t,r,P),qs(pe.chunks,t.responseState,pe.lastPushedText,pe.textEmbedded),pe.status=Eo,To(V,pe),V.pendingTasks===0){Gn(r);return}}catch(je){pe.status=bi,V.forceClientRender=!0,V.errorDigest=Aa(t,je),xi(V,je)}finally{r.blockedBoundary=f,r.blockedSegment=b}var De=Wr(t,S,f,ae,H,r.legacyContext,r.context,r.treeContext);De.componentStack=r.componentStack,t.pingedTasks.push(De),Gn(r)}function ms(t,r,s,f){Yr(r,s);var b=r.blockedSegment,S=Pn(b.chunks,s,f,t.responseState,b.formatContext);b.lastPushedText=!1;var P=b.formatContext;b.formatContext=no(P,s,f),Ut(t,r,S),b.formatContext=P,Ke(b.chunks,s),b.lastPushedText=!1,Gn(r)}function fa(t){return t.prototype&&t.prototype.isReactComponent}function pa(t,r,s,f,b){var S={};zr(r,S);var P=s(f,b);return Au(s,f,P,b)}function Sl(t,r,s,f,b){var S=s.render();s.props!==b&&(ys||o("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",it(f)||"a component"),ys=!0);{var P=f.childContextTypes;if(P!=null){var H=r.legacyContext,V=sl(s,f,H,P);r.legacyContext=V,on(t,r,S),r.legacyContext=H;return}}on(t,r,S)}function Eu(t,r,s,f){or(r,s);var b=ea(s,r.legacyContext),S=dl(s,f,b);hl(S,s,f,b),Sl(t,r,S,s,f),Gn(r)}var El={},ha={},vs={},kl={},ys=!1,ga={},bs=!1,ws=!1,xs=!1;function Cl(t,r,s,f){var b;if(b=ea(s,r.legacyContext),ua(r,s),s.prototype&&typeof s.prototype.render=="function"){var S=it(s)||"Unknown";El[S]||(o("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",S,S),El[S]=!0)}var P=pa(t,r,s,f,b),H=As();if(typeof P=="object"&&P!==null&&typeof P.render=="function"&&P.$$typeof===void 0){var V=it(s)||"Unknown";ha[V]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",V,V,V),ha[V]=!0)}if(typeof P=="object"&&P!==null&&typeof P.render=="function"&&P.$$typeof===void 0){{var oe=it(s)||"Unknown";ha[oe]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",oe,oe,oe),ha[oe]=!0)}hl(P,s,f,b),Sl(t,r,P,s,f)}else if(Pl(s),H){var ae=r.treeContext,pe=1,De=0;r.treeContext=ls(ae,pe,De);try{on(t,r,P)}finally{r.treeContext=ae}}else on(t,r,P);Gn(r)}function Pl(t){{if(t&&t.childContextTypes&&o("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),t.defaultProps!==void 0){var r=it(t)||"Unknown";ga[r]||(o("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",r),ga[r]=!0)}if(typeof t.getDerivedStateFromProps=="function"){var s=it(t)||"Unknown";kl[s]||(o("%s: Function components do not support getDerivedStateFromProps.",s),kl[s]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var f=it(t)||"Unknown";vs[f]||(o("%s: Function components do not support contextType.",f),vs[f]=!0)}}}function Ss(t,r){if(t&&t.defaultProps){var s=Yt({},r),f=t.defaultProps;for(var b in f)s[b]===void 0&&(s[b]=f[b]);return s}return r}function Tl(t,r,s,f,b){ua(r,s.render);var S=pa(t,r,s.render,f,b),P=As();if(P){var H=r.treeContext,V=1,oe=0;r.treeContext=ls(H,V,oe);try{on(t,r,S)}finally{r.treeContext=H}}else on(t,r,S);Gn(r)}function ku(t,r,s,f,b){var S=s.type,P=Ss(S,f);Es(t,r,S,P,b)}function Cu(t,r,s,f){s._context===void 0?s!==s.Consumer&&(xs||(xs=!0,o("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):s=s._context;var b=f.children;typeof b!="function"&&o("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var S=kr(s),P=b(S);on(t,r,P)}function Dl(t,r,s,f){var b=s._context,S=f.value,P=f.children,H;H=r.context,r.context=ll(b,S),on(t,r,P),r.context=cl(b),H!==r.context&&o("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Pu(t,r,s,f,b){Yr(r,"Lazy");var S=s._payload,P=s._init,H=P(S),V=Ss(H,f);Es(t,r,H,V,b),Gn(r)}function Es(t,r,s,f,b){if(typeof s=="function")if(fa(s)){Eu(t,r,s,f);return}else{Cl(t,r,s,f);return}if(typeof s=="string"){ms(t,r,s,f);return}switch(s){case Vi:case Gi:case en:case tl:case ja:{on(t,r,f.children);return}case Vo:{Yr(r,"SuspenseList"),on(t,r,f.children),Gn(r);return}case Yi:throw new Error("ReactDOMServer does not yet support scope components.");case Va:{da(t,r,f);return}}if(typeof s=="object"&&s!==null)switch(s.$$typeof){case Ga:{Tl(t,r,s,f,b);return}case Xo:{ku(t,r,s,f,b);return}case Wa:{Dl(t,r,s,f);return}case Ya:{Cu(t,r,s,f);return}case vo:{Pu(t,r,s,f);return}}var S="";throw(s===void 0||typeof s=="object"&&s!==null&&Object.keys(s).length===0)&&(S+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(s==null?s:typeof s)+"."+S))}function Tu(t,r){typeof Symbol=="function"&&t[Symbol.toStringTag]==="Generator"&&(bs||o("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),bs=!0),t.entries===r&&(ws||o("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ws=!0)}function on(t,r,s){try{return Du(t,r,s)}catch(f){throw typeof f=="object"&&f!==null&&typeof f.then=="function"||(ar=ar!==null?ar:gs()),f}}function Du(t,r,s){if(r.node=s,typeof s=="object"&&s!==null){switch(s.$$typeof){case Kc:{var f=s,b=f.type,S=f.props,P=f.ref;Es(t,r,b,S,P);return}case el:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case vo:{var H=s,V=H._payload,oe=H._init,ae;try{ae=oe(V)}catch(Do){throw typeof Do=="object"&&Do!==null&&typeof Do.then=="function"&&Yr(r,"Lazy"),Do}on(t,r,ae);return}}if(An(s)){Si(t,r,s);return}var pe=Zc(s);if(pe){Tu(s,pe);var De=pe.call(s);if(De){var je=De.next();if(!je.done){var Ct=[];do Ct.push(je.value),je=De.next();while(!je.done);Si(t,r,Ct);return}return}}var Vr=Object.prototype.toString.call(s);throw new Error("Objects are not valid as a React child (found: "+(Vr==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":Vr)+"). If you meant to render a collection of children, use an array instead.")}if(typeof s=="string"){var Xr=r.blockedSegment;Xr.lastPushedText=Zs(r.blockedSegment.chunks,s,t.responseState,Xr.lastPushedText);return}if(typeof s=="number"){var ir=r.blockedSegment;ir.lastPushedText=Zs(r.blockedSegment.chunks,""+s,t.responseState,ir.lastPushedText);return}typeof s=="function"&&o("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function Si(t,r,s){for(var f=s.length,b=0;b<f;b++){var S=r.treeContext;r.treeContext=ls(S,f,b);try{Ut(t,r,s[b])}finally{r.treeContext=S}}}function Iu(t,r,s){var f=r.blockedSegment,b=f.chunks.length,S=wi(t,b,null,f.formatContext,f.lastPushedText,!0);f.children.push(S),f.lastPushedText=!1;var P=Wr(t,r.node,r.blockedBoundary,S,r.abortSet,r.legacyContext,r.context,r.treeContext);r.componentStack!==null&&(P.componentStack=r.componentStack.parent);var H=P.ping;s.then(H,H)}function Ut(t,r,s){var f=r.blockedSegment.formatContext,b=r.legacyContext,S=r.context,P=null;P=r.componentStack;try{return on(t,r,s)}catch(H){if(la(),typeof H=="object"&&H!==null&&typeof H.then=="function"){Iu(t,r,H),r.blockedSegment.formatContext=f,r.legacyContext=b,r.context=S,na(S),r.componentStack=P;return}else throw r.blockedSegment.formatContext=f,r.legacyContext=b,r.context=S,na(S),r.componentStack=P,H}}function Bu(t,r,s,f){var b=Aa(t,f);if(r===null?Dn(t,f):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,r.errorDigest=b,xi(r,f),r.parentFlushed&&t.clientRenderedBoundaries.push(r))),t.allPendingTasks--,t.allPendingTasks===0){var S=t.onAllReady;S()}}function Il(t){var r=this,s=t.blockedBoundary,f=t.blockedSegment;f.status=yi,Ml(r,s,f)}function Bl(t,r,s){var f=t.blockedBoundary,b=t.blockedSegment;if(b.status=yi,f===null)r.allPendingTasks--,r.status!==jr&&(r.status=jr,r.destination!==null&&m(r.destination));else{if(f.pendingTasks--,!f.forceClientRender){f.forceClientRender=!0;var S=s===void 0?new Error("The render was aborted by the server without a reason."):s;f.errorDigest=r.onError(S);{var P="The server did not finish this Suspense boundary: ";S&&typeof S.message=="string"?S=P+S.message:S=P+String(S);var H=rr;rr=t;try{xi(f,S)}finally{rr=H}}f.parentFlushed&&r.clientRenderedBoundaries.push(f)}if(f.fallbackAbortableTasks.forEach(function(oe){return Bl(oe,r,s)}),f.fallbackAbortableTasks.clear(),r.allPendingTasks--,r.allPendingTasks===0){var V=r.onAllReady;V()}}}function To(t,r){if(r.chunks.length===0&&r.children.length===1&&r.children[0].boundary===null){var s=r.children[0];s.id=r.id,s.parentFlushed=!0,s.status===Eo&&To(t,s)}else{var f=t.completedSegments;f.push(r)}}function Ml(t,r,s){if(r===null){if(s.parentFlushed){if(t.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");t.completedRootSegment=s}if(t.pendingRootTasks--,t.pendingRootTasks===0){t.onShellError=Co;var f=t.onShellReady;f()}}else if(r.pendingTasks--,!r.forceClientRender){if(r.pendingTasks===0)s.parentFlushed&&s.status===Eo&&To(r,s),r.parentFlushed&&t.completedBoundaries.push(r),r.fallbackAbortableTasks.forEach(Il,t),r.fallbackAbortableTasks.clear();else if(s.parentFlushed&&s.status===Eo){To(r,s);var b=r.completedSegments;b.length===1&&r.parentFlushed&&t.partialBoundaries.push(r)}}if(t.allPendingTasks--,t.allPendingTasks===0){var S=t.onAllReady;S()}}function Mu(t,r){var s=r.blockedSegment;if(s.status===mi){na(r.context);var f=null;f=rr,rr=r;try{on(t,r,r.node),qs(s.chunks,t.responseState,s.lastPushedText,s.textEmbedded),r.abortSet.delete(r),s.status=Eo,Ml(t,r.blockedBoundary,s)}catch(S){if(la(),typeof S=="object"&&S!==null&&typeof S.then=="function"){var b=r.ping;S.then(b,b)}else r.abortSet.delete(r),s.status=bi,Bu(t,r.blockedBoundary,s,S)}finally{rr=f}}}function ks(t){if(t.status!==jr){var r=ul(),s=gi.current;gi.current=bl;var f;f=ca.getCurrentStack,ca.getCurrentStack=gs;var b=ps;wl(t.responseState);try{var S=t.pingedTasks,P;for(P=0;P<S.length;P++){var H=S[P];Mu(t,H)}S.splice(0,P),t.destination!==null&&ki(t,t.destination)}catch(V){Aa(t,V),Dn(t,V)}finally{wl(b),gi.current=s,ca.getCurrentStack=f,s===bl&&na(r)}}}function Gr(t,r,s){switch(s.parentFlushed=!0,s.status){case mi:{var f=s.id=t.nextSegmentId++;return s.lastPushedText=!1,s.textEmbedded=!1,jn(r,t.responseState,f)}case Eo:{s.status=vi;for(var b=!0,S=s.chunks,P=0,H=s.children,V=0;V<H.length;V++){for(var oe=H[V];P<oe.index;P++)A(r,S[P]);b=ma(t,r,oe)}for(;P<S.length-1;P++)A(r,S[P]);return P<S.length&&(b=p(r,S[P])),b}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function ma(t,r,s){var f=s.boundary;if(f===null)return Gr(t,r,s);if(f.parentFlushed=!0,f.forceClientRender)return Vc(r,t.responseState,f.errorDigest,f.errorMessage,f.errorComponentStack),Gr(t,r,s),Jc(r,t.responseState);if(f.pendingTasks>0){f.rootSegmentID=t.nextSegmentId++,f.completedSegments.length>0&&t.partialBoundaries.push(f);var b=f.id=kn(t.responseState);return Fr(r,t.responseState,b),Gr(t,r,s),wr(r,t.responseState)}else{if(f.byteSize>t.progressiveChunkSize)return f.rootSegmentID=t.nextSegmentId++,t.completedBoundaries.push(f),Fr(r,t.responseState,f.id),Gr(t,r,s),wr(r,t.responseState);Gc(r,t.responseState);var S=f.completedSegments;if(S.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var P=S[0];return ma(t,r,P),Xc(r,t.responseState)}}function Ru(t,r,s){return zc(r,t.responseState,s.id,s.errorDigest,s.errorMessage,s.errorComponentStack)}function Cs(t,r,s){return Go(r,t.responseState,s.formatContext,s.id),ma(t,r,s),Ua(r,s.formatContext)}function va(t,r,s){for(var f=s.completedSegments,b=0;b<f.length;b++){var S=f[b];Rl(t,r,s,S)}return f.length=0,Nt(r,t.responseState,s.id,s.rootSegmentID)}function Ei(t,r,s){for(var f=s.completedSegments,b=0;b<f.length;b++){var S=f[b];if(!Rl(t,r,s,S))return b++,f.splice(0,b),!1}return f.splice(0,b),!0}function Rl(t,r,s,f){if(f.status===vi)return!0;var b=f.id;if(b===-1){var S=f.id=s.rootSegmentID;if(S===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Cs(t,r,f)}else return Cs(t,r,f),ce(r,t.responseState,b)}function ki(t,r){try{var s=t.completedRootSegment;s!==null&&t.pendingRootTasks===0&&(ma(t,r,s),t.completedRootSegment=null,er(r,t.responseState));var f=t.clientRenderedBoundaries,b;for(b=0;b<f.length;b++){var S=f[b];if(!Ru(t,r,S)){t.destination=null,b++,f.splice(0,b);return}}f.splice(0,b);var P=t.completedBoundaries;for(b=0;b<P.length;b++){var H=P[b];if(!va(t,r,H)){t.destination=null,b++,P.splice(0,b);return}}P.splice(0,b);var V=t.partialBoundaries;for(b=0;b<V.length;b++){var oe=V[b];if(!Ei(t,r,oe)){t.destination=null,b++,V.splice(0,b);return}}V.splice(0,b);var ae=t.completedBoundaries;for(b=0;b<ae.length;b++){var pe=ae[b];if(!va(t,r,pe)){t.destination=null,b++,ae.splice(0,b);return}}ae.splice(0,b)}finally{t.allPendingTasks===0&&t.pingedTasks.length===0&&t.clientRenderedBoundaries.length===0&&t.completedBoundaries.length===0&&(t.abortableTasks.size!==0&&o("There was still abortable task at the root when we closed. This is a bug in React."),m(r))}}function Ol(t){u(function(){return ks(t)})}function Ou(t,r){if(t.status===hs){t.status=jr,D(r,t.fatalError);return}if(t.status!==jr&&t.destination===null){t.destination=r;try{ki(t,r)}catch(s){Aa(t,s),Dn(t,s)}}}function Fl(t,r){try{var s=t.abortableTasks;s.forEach(function(f){return Bl(f,t,r)}),s.clear(),t.destination!==null&&ki(t,t.destination)}catch(f){Aa(t,f),Dn(t,f)}}function Ps(){}function Ll(t,r,s,f){var b=!1,S=null,P="",H={push:function(pe){return pe!==null&&(P+=pe),!0},destroy:function(pe){b=!0,S=pe}},V=!1;function oe(){V=!0}var ae=Po(t,Wc(s,r?r.identifierPrefix:void 0),Yc(),1/0,Ps,void 0,oe);if(Ol(ae),Fl(ae,f),Ou(ae,H),b)throw S;if(!V)throw new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");return P}function Fu(t,r){return Ll(t,r,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function Ql(t,r){return Ll(t,r,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function Lu(){throw new Error("ReactDOMServer.renderToNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToString() instead.")}function l(){throw new Error("ReactDOMServer.renderToStaticNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToStaticMarkup() instead.")}Mo.renderToNodeStream=Lu,Mo.renderToStaticMarkup=Ql,Mo.renderToStaticNodeStream=l,Mo.renderToString=Fu,Mo.version=n}()),Mo}var Ds={};/**
67
+ * @license React
68
+ * react-dom-server.browser.development.js
69
+ *
70
+ * Copyright (c) Facebook, Inc. and its affiliates.
71
+ *
72
+ * This source code is licensed under the MIT license found in the
73
+ * LICENSE file in the root directory of this source tree.
74
+ */var Uu;function sf(){return Uu||(Uu=1,process.env.NODE_ENV!=="production"&&function(){var e=R,n="18.3.1",a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function i(l){{for(var t=arguments.length,r=new Array(t>1?t-1:0),s=1;s<t;s++)r[s-1]=arguments[s];c("warn",l,r)}}function o(l){{for(var t=arguments.length,r=new Array(t>1?t-1:0),s=1;s<t;s++)r[s-1]=arguments[s];c("error",l,r)}}function c(l,t,r){{var s=a.ReactDebugCurrentFrame,f=s.getStackAddendum();f!==""&&(t+="%s",r=r.concat([f]));var b=r.map(function(S){return String(S)});b.unshift("Warning: "+t),Function.prototype.apply.call(console[l],console,b)}}function u(l){l()}var d=512,A=null,p=0;function h(l){A=new Uint8Array(d),p=0}function m(l,t){if(t.length!==0){if(t.length>d){p>0&&(l.enqueue(new Uint8Array(A.buffer,0,p)),A=new Uint8Array(d),p=0),l.enqueue(t);return}var r=t,s=A.length-p;s<r.length&&(s===0?l.enqueue(A):(A.set(r.subarray(0,s),p),l.enqueue(A),r=r.subarray(s)),A=new Uint8Array(d),p=0),A.set(r,p),p+=r.length}}function y(l,t){return m(l,t),!0}function C(l){A&&p>0&&(l.enqueue(new Uint8Array(A.buffer,0,p)),A=null,p=0)}function D(l){l.close()}var Q=new TextEncoder;function E(l){return Q.encode(l)}function I(l){return Q.encode(l)}function _(l,t){typeof l.error=="function"?l.error(t):l.close()}function B(l){{var t=typeof Symbol=="function"&&Symbol.toStringTag,r=t&&l[Symbol.toStringTag]||l.constructor.name||"Object";return r}}function U(l){try{return j(l),!1}catch{return!0}}function j(l){return""+l}function z(l,t){if(U(l))return o("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,B(l)),j(l)}function W(l,t){if(U(l))return o("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,B(l)),j(l)}function te(l){if(U(l))return o("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",B(l)),j(l)}var J=Object.prototype.hasOwnProperty,Y=0,ee=1,Z=2,ie=3,ue=4,se=5,xe=6,ge=":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",me=ge+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",M=new RegExp("^["+ge+"]["+me+"]*$"),fe={},O={};function de(l){return J.call(O,l)?!0:J.call(fe,l)?!1:M.test(l)?(O[l]=!0,!0):(fe[l]=!0,o("Invalid attribute name: `%s`",l),!1)}function Ee(l,t,r,s){if(r!==null&&r.type===Y)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":{if(r!==null)return!r.acceptsBooleans;var f=l.toLowerCase().slice(0,5);return f!=="data-"&&f!=="aria-"}default:return!1}}function he(l){return Te.hasOwnProperty(l)?Te[l]:null}function ve(l,t,r,s,f,b,S){this.acceptsBooleans=t===Z||t===ie||t===ue,this.attributeName=s,this.attributeNamespace=f,this.mustUseProperty=r,this.propertyName=l,this.type=t,this.sanitizeURL=b,this.removeEmptyString=S}var Te={},Qe=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Qe.forEach(function(l){Te[l]=new ve(l,Y,!1,l,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(l){var t=l[0],r=l[1];Te[t]=new ve(t,ee,!1,r,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){Te[l]=new ve(l,Z,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){Te[l]=new ve(l,Z,!1,l,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(l){Te[l]=new ve(l,ie,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){Te[l]=new ve(l,ie,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){Te[l]=new ve(l,ue,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){Te[l]=new ve(l,xe,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){Te[l]=new ve(l,se,!1,l.toLowerCase(),null,!1,!1)});var tt=/[\-\:]([a-z])/g,Le=function(l){return l[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(l){var t=l.replace(tt,Le);Te[t]=new ve(t,ee,!1,l,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(l){var t=l.replace(tt,Le);Te[t]=new ve(t,ee,!1,l,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(l){var t=l.replace(tt,Le);Te[t]=new ve(t,ee,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){Te[l]=new ve(l,ee,!1,l.toLowerCase(),null,!1,!1)});var Je="xlinkHref";Te[Je]=new ve("xlinkHref",ee,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){Te[l]=new ve(l,ee,!1,l.toLowerCase(),null,!0,!0)});var qe={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};function ft(l,t){return l+t.charAt(0).toUpperCase()+t.substring(1)}var Ne=["Webkit","ms","Moz","O"];Object.keys(qe).forEach(function(l){Ne.forEach(function(t){qe[ft(t,l)]=qe[l]})});var We={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function ct(l,t){We[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||o("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||o("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function ht(l,t){if(l.indexOf("-")===-1)return typeof t.is=="string";switch(l){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 ln={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},pt={},Ft=new RegExp("^(aria)-["+me+"]*$"),jt=new RegExp("^(aria)[A-Z]["+me+"]*$");function Gt(l,t){{if(J.call(pt,t)&&pt[t])return!0;if(jt.test(t)){var r="aria-"+t.slice(4).toLowerCase(),s=ln.hasOwnProperty(r)?r:null;if(s==null)return o("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),pt[t]=!0,!0;if(t!==s)return o("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,s),pt[t]=!0,!0}if(Ft.test(t)){var f=t.toLowerCase(),b=ln.hasOwnProperty(f)?f:null;if(b==null)return pt[t]=!0,!1;if(t!==b)return o("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,b),pt[t]=!0,!0}}return!0}function gt(l,t){{var r=[];for(var s in t){var f=Gt(l,s);f||r.push(s)}var b=r.map(function(S){return"`"+S+"`"}).join(", ");r.length===1?o("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",b,l):r.length>1&&o("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",b,l)}}function st(l,t){ht(l,t)||gt(l,t)}var Xe=!1;function Vt(l,t){{if(l!=="input"&&l!=="textarea"&&l!=="select")return;t!=null&&t.value===null&&!Xe&&(Xe=!0,l==="select"&&t.multiple?o("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",l):o("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",l))}}var cn={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Xn=function(){};{var at={},ne=/^on./,we=/^on[^A-Z]/,ke=new RegExp("^(aria)-["+me+"]*$"),He=new RegExp("^(aria)[A-Z]["+me+"]*$");Xn=function(l,t,r,s){if(J.call(at,t)&&at[t])return!0;var f=t.toLowerCase();if(f==="onfocusin"||f==="onfocusout")return o("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),at[t]=!0,!0;if(s!=null){var b=s.registrationNameDependencies,S=s.possibleRegistrationNames;if(b.hasOwnProperty(t))return!0;var P=S.hasOwnProperty(f)?S[f]:null;if(P!=null)return o("Invalid event handler property `%s`. Did you mean `%s`?",t,P),at[t]=!0,!0;if(ne.test(t))return o("Unknown event handler property `%s`. It will be ignored.",t),at[t]=!0,!0}else if(ne.test(t))return we.test(t)&&o("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),at[t]=!0,!0;if(ke.test(t)||He.test(t))return!0;if(f==="innerhtml")return o("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),at[t]=!0,!0;if(f==="aria")return o("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),at[t]=!0,!0;if(f==="is"&&r!==null&&r!==void 0&&typeof r!="string")return o("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof r),at[t]=!0,!0;if(typeof r=="number"&&isNaN(r))return o("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),at[t]=!0,!0;var H=he(t),V=H!==null&&H.type===Y;if(cn.hasOwnProperty(f)){var oe=cn[f];if(oe!==t)return o("Invalid DOM property `%s`. Did you mean `%s`?",t,oe),at[t]=!0,!0}else if(!V&&t!==f)return o("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,f),at[t]=!0,!0;return typeof r=="boolean"&&Ee(t,r,H)?(r?o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',r,t,t,r,t):o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',r,t,t,r,t,t,t),at[t]=!0,!0):V?!0:Ee(t,r,H)?(at[t]=!0,!1):((r==="false"||r==="true")&&H!==null&&H.type===ie&&(o("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",r,t,r==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,r),at[t]=!0),!0)}}var _e=function(l,t,r){{var s=[];for(var f in t){var b=Xn(l,f,t[f],r);b||s.push(f)}var S=s.map(function(P){return"`"+P+"`"}).join(", ");s.length===1?o("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",S,l):s.length>1&&o("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",S,l)}};function kt(l,t,r){ht(l,t)||_e(l,t,r)}var Xt=function(){};{var yt=/^(?:webkit|moz|o)[A-Z]/,Jt=/^-ms-/,Jn=/-(.)/g,Ge=/;\s*$/,bt={},mt={},Ye=!1,On=!1,fr=function(l){return l.replace(Jn,function(t,r){return r.toUpperCase()})},Kn=function(l){bt.hasOwnProperty(l)&&bt[l]||(bt[l]=!0,o("Unsupported style property %s. Did you mean %s?",l,fr(l.replace(Jt,"ms-"))))},un=function(l){bt.hasOwnProperty(l)&&bt[l]||(bt[l]=!0,o("Unsupported vendor-prefixed style property %s. Did you mean %s?",l,l.charAt(0).toUpperCase()+l.slice(1)))},pr=function(l,t){mt.hasOwnProperty(t)&&mt[t]||(mt[t]=!0,o(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,l,t.replace(Ge,"")))},En=function(l,t){Ye||(Ye=!0,o("`NaN` is an invalid value for the `%s` css style property.",l))},vt=function(l,t){On||(On=!0,o("`Infinity` is an invalid value for the `%s` css style property.",l))};Xt=function(l,t){l.indexOf("-")>-1?Kn(l):yt.test(l)?un(l):Ge.test(t)&&pr(l,t),typeof t=="number"&&(isNaN(t)?En(l,t):isFinite(t)||vt(l,t))}}var Ir=Xt,Br=/["'&<>]/;function to(l){te(l);var t=""+l,r=Br.exec(t);if(!r)return t;var s,f="",b,S=0;for(b=r.index;b<t.length;b++){switch(t.charCodeAt(b)){case 34:s="&quot;";break;case 38:s="&amp;";break;case 39:s="&#x27;";break;case 60:s="&lt;";break;case 62:s="&gt;";break;default:continue}S!==b&&(f+=t.substring(S,b)),S=b+1,f+=s}return S!==b?f+t.substring(S,b):f}function ut(l){return typeof l=="boolean"||typeof l=="number"?""+l:to(l)}var Mr=/([A-Z])/g,Ho=/^ms-/;function No(l){return l.replace(Mr,"-$1").toLowerCase().replace(Ho,"-ms-")}var An=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,Rr=!1;function hr(l){!Rr&&An.test(l)&&(Rr=!0,o("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(l)))}var Fn=Array.isArray;function Lt(l){return Fn(l)}var dn=I("<script>"),gr=I("<\/script>"),Ln=I('<script src="'),Qn=I('<script type="module" src="'),fn=I('" async=""><\/script>');function _n(l){return te(l),(""+l).replace(Qt,no)}var Qt=/(<\/|<)(s)(cript)/gi,no=function(l,t,r,s){return""+t+(r==="s"?"\\u0073":"\\u0053")+s};function ro(l,t,r,s,f){var b=l===void 0?"":l,S=t===void 0?dn:I('<script nonce="'+ut(t)+'">'),P=[];if(r!==void 0&&P.push(S,E(_n(r)),gr),s!==void 0)for(var H=0;H<s.length;H++)P.push(Ln,E(ut(s[H])),fn);if(f!==void 0)for(var V=0;V<f.length;V++)P.push(Qn,E(ut(f[V])),fn);return{bootstrapChunks:P,startInlineScript:S,placeholderPrefix:I(b+"P:"),segmentPrefix:I(b+"S:"),boundaryPrefix:b+"B:",idPrefix:b,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var kn=0,At=1,pn=2,hn=3,Hn=4,mr=5,Kt=6,gn=7;function Pt(l,t){return{insertionMode:l,selectedValue:t}}function Nn(l){var t=l==="http://www.w3.org/2000/svg"?pn:l==="http://www.w3.org/1998/Math/MathML"?hn:kn;return Pt(t,null)}function $n(l,t,r){switch(t){case"select":return Pt(At,r.value!=null?r.value:r.defaultValue);case"svg":return Pt(pn,null);case"math":return Pt(hn,null);case"foreignObject":return Pt(At,null);case"table":return Pt(Hn,null);case"thead":case"tbody":case"tfoot":return Pt(mr,null);case"colgroup":return Pt(gn,null);case"tr":return Pt(Kt,null)}return l.insertionMode>=Hn||l.insertionMode===kn?Pt(At,null):l}var vr=null;function Wt(l){var t=l.nextSuspenseID++;return I(l.boundaryPrefix+t.toString(16))}function mn(l,t,r){var s=l.idPrefix,f=":"+s+"R"+t;return r>0&&(f+="H"+r.toString(32)),f+":"}function Tt(l){return ut(l)}var yr=I("<!-- -->");function wt(l,t,r,s){return t===""?s:(s&&l.push(yr),l.push(E(Tt(t))),!0)}function _t(l,t,r,s){r&&s&&l.push(yr)}var g=new Map;function x(l){var t=g.get(l);if(t!==void 0)return t;var r=I(ut(No(l)));return g.set(l,r),r}var T=I(' style="'),L=I(":"),K=I(";");function G(l,t,r){if(typeof r!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var s=!0;for(var f in r)if(J.call(r,f)){var b=r[f];if(!(b==null||typeof b=="boolean"||b==="")){var S=void 0,P=void 0,H=f.indexOf("--")===0;H?(S=E(ut(f)),W(b,f),P=E(ut((""+b).trim()))):(Ir(f,b),S=x(f),typeof b=="number"?b!==0&&!J.call(qe,f)?P=E(b+"px"):P=E(""+b):(W(b,f),P=E(ut((""+b).trim())))),s?(s=!1,l.push(T,S,L,P)):l.push(K,S,L,P)}}s||l.push(be)}var q=I(" "),le=I('="'),be=I('"'),Ce=I('=""');function Se(l,t,r,s){switch(r){case"style":{G(l,t,s);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(r.length>2&&(r[0]==="o"||r[0]==="O")&&(r[1]==="n"||r[1]==="N"))){var f=he(r);if(f!==null){switch(typeof s){case"function":case"symbol":return;case"boolean":if(!f.acceptsBooleans)return}var b=f.attributeName,S=E(b);switch(f.type){case ie:s&&l.push(q,S,Ce);return;case ue:s===!0?l.push(q,S,Ce):s===!1||l.push(q,S,le,E(ut(s)),be);return;case se:isNaN(s)||l.push(q,S,le,E(ut(s)),be);break;case xe:!isNaN(s)&&s>=1&&l.push(q,S,le,E(ut(s)),be);break;default:f.sanitizeURL&&(z(s,b),s=""+s,hr(s)),l.push(q,S,le,E(ut(s)),be)}}else if(de(r)){switch(typeof s){case"function":case"symbol":return;case"boolean":{var P=r.toLowerCase().slice(0,5);if(P!=="data-"&&P!=="aria-")return}}l.push(q,E(r),le,E(ut(s)),be)}}}var Ue=I(">"),Dt=I("/>");function It(l,t,r){if(t!=null){if(r!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof t!="object"||!("__html"in t))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var s=t.__html;s!=null&&(te(s),l.push(E(""+s)))}}var Bt=!1,Un=!1,vn=!1,br=!1,zn=!1,Zn=!1,Cn=!1;function qn(l,t){{var r=l[t];if(r!=null){var s=Lt(r);l.multiple&&!s?o("The `%s` prop supplied to <select> must be an array if `multiple` is true.",t):!l.multiple&&s&&o("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",t)}}}function Qi(l,t,r){ct("select",t),qn(t,"value"),qn(t,"defaultValue"),t.value!==void 0&&t.defaultValue!==void 0&&!vn&&(o("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),vn=!0),l.push($t("select"));var s=null,f=null;for(var b in t)if(J.call(t,b)){var S=t[b];if(S==null)continue;switch(b){case"children":s=S;break;case"dangerouslySetInnerHTML":f=S;break;case"defaultValue":case"value":break;default:Se(l,r,b,S);break}}return l.push(Ue),It(l,f,s),s}function _i(l){var t="";return e.Children.forEach(l,function(r){r!=null&&(t+=r,!zn&&typeof r!="string"&&typeof r!="number"&&(zn=!0,o("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),t}var oo=I(' selected=""');function yn(l,t,r,s){var f=s.selectedValue;l.push($t("option"));var b=null,S=null,P=null,H=null;for(var V in t)if(J.call(t,V)){var oe=t[V];if(oe==null)continue;switch(V){case"children":b=oe;break;case"selected":P=oe,Cn||(o("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Cn=!0);break;case"dangerouslySetInnerHTML":H=oe;break;case"value":S=oe;default:Se(l,r,V,oe);break}}if(f!=null){var ae;if(S!==null?(z(S,"value"),ae=""+S):(H!==null&&(Zn||(Zn=!0,o("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),ae=_i(b)),Lt(f))for(var pe=0;pe<f.length;pe++){z(f[pe],"value");var De=""+f[pe];if(De===ae){l.push(oo);break}}else z(f,"select.value"),""+f===ae&&l.push(oo)}else P&&l.push(oo);return l.push(Ue),It(l,H,b),b}function Hi(l,t,r){ct("input",t),t.checked!==void 0&&t.defaultChecked!==void 0&&!Un&&(o("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",t.type),Un=!0),t.value!==void 0&&t.defaultValue!==void 0&&!Bt&&(o("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",t.type),Bt=!0),l.push($t("input"));var s=null,f=null,b=null,S=null;for(var P in t)if(J.call(t,P)){var H=t[P];if(H==null)continue;switch(P){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":S=H;break;case"defaultValue":f=H;break;case"checked":b=H;break;case"value":s=H;break;default:Se(l,r,P,H);break}}return b!==null?Se(l,r,"checked",b):S!==null&&Se(l,r,"checked",S),s!==null?Se(l,r,"value",s):f!==null&&Se(l,r,"value",f),l.push(Dt),null}function Pn(l,t,r){ct("textarea",t),t.value!==void 0&&t.defaultValue!==void 0&&!br&&(o("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),br=!0),l.push($t("textarea"));var s=null,f=null,b=null;for(var S in t)if(J.call(t,S)){var P=t[S];if(P==null)continue;switch(S){case"children":b=P;break;case"value":s=P;break;case"defaultValue":f=P;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:Se(l,r,S,P);break}}if(s===null&&f!==null&&(s=f),l.push(Ue),b!=null){if(o("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),s!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Lt(b)){if(b.length>1)throw new Error("<textarea> can only have at most one child.");te(b[0]),s=""+b[0]}te(b),s=""+b}return typeof s=="string"&&s[0]===`
75
+ `&&l.push(tr),s!==null&&(z(s,"value"),l.push(E(Tt(""+s)))),null}function Uo(l,t,r,s){l.push($t(r));for(var f in t)if(J.call(t,f)){var b=t[f];if(b==null)continue;switch(f){case"children":case"dangerouslySetInnerHTML":throw new Error(r+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Se(l,s,f,b);break}}return l.push(Dt),null}function ao(l,t,r){l.push($t("menuitem"));for(var s in t)if(J.call(t,s)){var f=t[s];if(f==null)continue;switch(s){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:Se(l,r,s,f);break}}return l.push(Ue),null}function Ke(l,t,r){l.push($t("title"));var s=null;for(var f in t)if(J.call(t,f)){var b=t[f];if(b==null)continue;switch(f){case"children":s=b;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:Se(l,r,f,b);break}}l.push(Ue);{var S=Array.isArray(s)&&s.length<2?s[0]||null:s;Array.isArray(s)&&s.length>1?o("A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):S!=null&&S.$$typeof!=null?o("A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):S!=null&&typeof S!="string"&&typeof S!="number"&&o("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return s}function er(l,t,r,s){l.push($t(r));var f=null,b=null;for(var S in t)if(J.call(t,S)){var P=t[S];if(P==null)continue;switch(S){case"children":f=P;break;case"dangerouslySetInnerHTML":b=P;break;default:Se(l,s,S,P);break}}return l.push(Ue),It(l,b,f),typeof f=="string"?(l.push(E(Tt(f))),null):f}function io(l,t,r,s){l.push($t(r));var f=null,b=null;for(var S in t)if(J.call(t,S)){var P=t[S];if(P==null)continue;switch(S){case"children":f=P;break;case"dangerouslySetInnerHTML":b=P;break;case"style":G(l,s,P);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:de(S)&&typeof P!="function"&&typeof P!="symbol"&&l.push(q,E(S),le,E(ut(P)),be);break}}return l.push(Ue),It(l,b,f),f}var tr=I(`
76
+ `);function jn(l,t,r,s){l.push($t(r));var f=null,b=null;for(var S in t)if(J.call(t,S)){var P=t[S];if(P==null)continue;switch(S){case"children":f=P;break;case"dangerouslySetInnerHTML":b=P;break;default:Se(l,s,S,P);break}}if(l.push(Ue),b!=null){if(f!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof b!="object"||!("__html"in b))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var H=b.__html;H!=null&&(typeof H=="string"&&H.length>0&&H[0]===`
77
+ `?l.push(tr,E(H)):(te(H),l.push(E(""+H))))}return typeof f=="string"&&f[0]===`
78
+ `&&l.push(tr),f}var so=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Wn=new Map;function $t(l){var t=Wn.get(l);if(t===void 0){if(!so.test(l))throw new Error("Invalid tag: "+l);t=I("<"+l),Wn.set(l,t)}return t}var zo=I("<!DOCTYPE html>");function Or(l,t,r,s,f){switch(st(t,r),Vt(t,r),kt(t,r,null),!r.suppressContentEditableWarning&&r.contentEditable&&r.children!=null&&o("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),f.insertionMode!==pn&&f.insertionMode!==hn&&t.indexOf("-")===-1&&typeof r.is!="string"&&t.toLowerCase()!==t&&o("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",t),t){case"select":return Qi(l,r,s);case"option":return yn(l,r,s,f);case"textarea":return Pn(l,r,s);case"input":return Hi(l,r,s);case"menuitem":return ao(l,r,s);case"title":return Ke(l,r,s);case"listing":case"pre":return jn(l,r,t,s);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return Uo(l,r,t,s);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 er(l,r,t,s);case"html":return f.insertionMode===kn&&l.push(zo),er(l,r,t,s);default:return t.indexOf("-")===-1&&typeof r.is!="string"?er(l,r,t,s):io(l,r,t,s)}}var Ta=I("</"),lo=I(">");function Da(l,t,r){switch(t){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:l.push(Ta,E(t),lo)}}function Ni(l,t){for(var r=t.bootstrapChunks,s=0;s<r.length-1;s++)m(l,r[s]);return s<r.length?y(l,r[s]):!0}var Ui=I('<template id="'),co=I('"></template>');function Ia(l,t,r){m(l,Ui),m(l,t.placeholderPrefix);var s=E(r.toString(16));return m(l,s),y(l,co)}var Fr=I("<!--$-->"),jo=I('<!--$?--><template id="'),zi=I('"></template>'),wr=I("<!--$!-->"),Wo=I("<!--/$-->"),Yo=I("<template"),xr=I('"'),Lr=I(' data-dgst="'),uo=I(' data-msg="'),Ba=I(' data-stck="'),Ma=I("></template>");function Ra(l,t){return y(l,Fr)}function Ao(l,t,r){if(m(l,jo),r===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return m(l,r),y(l,zi)}function Ht(l,t,r,s,f){var b;return b=y(l,wr),m(l,Yo),r&&(m(l,Lr),m(l,E(ut(r))),m(l,xr)),s&&(m(l,uo),m(l,E(ut(s))),m(l,xr)),f&&(m(l,Ba),m(l,E(ut(f))),m(l,xr)),b=y(l,Ma),b}function Oa(l,t){return y(l,Wo)}function fo(l,t){return y(l,Wo)}function ji(l,t){return y(l,Wo)}var Fa=I('<div hidden id="'),po=I('">'),La=I("</div>"),Qa=I('<svg aria-hidden="true" style="display:none" id="'),ho=I('">'),go=I("</svg>"),_a=I('<math aria-hidden="true" style="display:none" id="'),Ha=I('">'),Na=I("</math>"),Go=I('<table hidden id="'),Ua=I('">'),v=I("</table>"),w=I('<table hidden><tbody id="'),k=I('">'),F=I("</tbody></table>"),$=I('<table hidden><tr id="'),X=I('">'),re=I("</tr></table>"),ce=I('<table hidden><colgroup id="'),Pe=I('">'),Re=I("</colgroup></table>");function Me(l,t,r,s){switch(r.insertionMode){case kn:case At:return m(l,Fa),m(l,t.segmentPrefix),m(l,E(s.toString(16))),y(l,po);case pn:return m(l,Qa),m(l,t.segmentPrefix),m(l,E(s.toString(16))),y(l,ho);case hn:return m(l,_a),m(l,t.segmentPrefix),m(l,E(s.toString(16))),y(l,Ha);case Hn:return m(l,Go),m(l,t.segmentPrefix),m(l,E(s.toString(16))),y(l,Ua);case mr:return m(l,w),m(l,t.segmentPrefix),m(l,E(s.toString(16))),y(l,k);case Kt:return m(l,$),m(l,t.segmentPrefix),m(l,E(s.toString(16))),y(l,X);case gn:return m(l,ce),m(l,t.segmentPrefix),m(l,E(s.toString(16))),y(l,Pe);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function $e(l,t){switch(t.insertionMode){case kn:case At:return y(l,La);case pn:return y(l,go);case hn:return y(l,Na);case Hn:return y(l,v);case mr:return y(l,F);case Kt:return y(l,re);case gn:return y(l,Re);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var Nt="function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}",Zt='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',qt='function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}',mo=I(Nt+';$RS("'),za=I('$RS("'),Qr=I('","'),zc=I('")<\/script>');function jc(l,t,r){m(l,t.startInlineScript),t.sentCompleteSegmentFunction?m(l,za):(t.sentCompleteSegmentFunction=!0,m(l,mo)),m(l,t.segmentPrefix);var s=E(r.toString(16));return m(l,s),m(l,Qr),m(l,t.placeholderPrefix),m(l,s),y(l,zc)}var Wi=I(Zt+';$RC("'),Wc=I('$RC("'),Yc=I('","'),Zs=I('")<\/script>');function qs(l,t,r,s){if(m(l,t.startInlineScript),t.sentCompleteBoundaryFunction?m(l,Wc):(t.sentCompleteBoundaryFunction=!0,m(l,Wi)),r===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var f=E(s.toString(16));return m(l,r),m(l,Yc),m(l,t.segmentPrefix),m(l,f),y(l,Zs)}var Gc=I(qt+';$RX("'),Vc=I('$RX("'),Xc=I('"'),Jc=I(")<\/script>"),Yt=I(",");function Kc(l,t,r,s,f,b){if(m(l,t.startInlineScript),t.sentClientRenderFunction?m(l,Vc):(t.sentClientRenderFunction=!0,m(l,Gc)),r===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return m(l,r),m(l,Xc),(s||f||b)&&(m(l,Yt),m(l,E(ja(s||"")))),(f||b)&&(m(l,Yt),m(l,E(ja(f||"")))),b&&(m(l,Yt),m(l,E(ja(b)))),y(l,Jc)}var el=/[<\u2028\u2029]/g;function ja(l){var t=JSON.stringify(l);return t.replace(el,function(r){switch(r){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var en=Object.assign,tl=Symbol.for("react.element"),Wa=Symbol.for("react.portal"),Ya=Symbol.for("react.fragment"),Ga=Symbol.for("react.strict_mode"),Va=Symbol.for("react.profiler"),Vo=Symbol.for("react.provider"),Xo=Symbol.for("react.context"),vo=Symbol.for("react.forward_ref"),Yi=Symbol.for("react.suspense"),Gi=Symbol.for("react.suspense_list"),Vi=Symbol.for("react.memo"),Xa=Symbol.for("react.lazy"),nl=Symbol.for("react.scope"),$c=Symbol.for("react.debug_trace_mode"),Zc=Symbol.for("react.legacy_hidden"),qc=Symbol.for("react.default_value"),Xi=Symbol.iterator,it="@@iterator";function Jo(l){if(l===null||typeof l!="object")return null;var t=Xi&&l[Xi]||l[it];return typeof t=="function"?t:null}function rl(l,t,r){var s=l.displayName;if(s)return s;var f=t.displayName||t.name||"";return f!==""?r+"("+f+")":r}function Ji(l){return l.displayName||"Context"}function nt(l){if(l==null)return null;if(typeof l.tag=="number"&&o("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case Ya:return"Fragment";case Wa:return"Portal";case Va:return"Profiler";case Ga:return"StrictMode";case Yi:return"Suspense";case Gi:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case Xo:var t=l;return Ji(t)+".Consumer";case Vo:var r=l;return Ji(r._context)+".Provider";case vo:return rl(l,l.render,"ForwardRef");case Vi:var s=l.displayName||null;return s!==null?s:nt(l.type)||"Memo";case Xa:{var f=l,b=f._payload,S=f._init;try{return nt(S(b))}catch{return null}}}return null}var yo=0,Ki,$i,Zi,qi,ol,al,Ja;function Ka(){}Ka.__reactDisabledLog=!0;function Ko(){{if(yo===0){Ki=console.log,$i=console.info,Zi=console.warn,qi=console.error,ol=console.group,al=console.groupCollapsed,Ja=console.groupEnd;var l={configurable:!0,enumerable:!0,value:Ka,writable:!0};Object.defineProperties(console,{info:l,log:l,warn:l,error:l,group:l,groupCollapsed:l,groupEnd:l})}yo++}}function es(){{if(yo--,yo===0){var l={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:en({},l,{value:Ki}),info:en({},l,{value:$i}),warn:en({},l,{value:Zi}),error:en({},l,{value:qi}),group:en({},l,{value:ol}),groupCollapsed:en({},l,{value:al}),groupEnd:en({},l,{value:Ja})})}yo<0&&o("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var bo=a.ReactCurrentDispatcher,ts;function _r(l,t,r){{if(ts===void 0)try{throw Error()}catch(f){var s=f.stack.trim().match(/\n( *(at )?)/);ts=s&&s[1]||""}return`
79
+ `+ts+l}}var ns=!1,$o;{var eu=typeof WeakMap=="function"?WeakMap:Map;$o=new eu}function Zo(l,t){if(!l||ns)return"";{var r=$o.get(l);if(r!==void 0)return r}var s;ns=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var b;b=bo.current,bo.current=null,Ko();try{if(t){var S=function(){throw Error()};if(Object.defineProperty(S.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(S,[])}catch(je){s=je}Reflect.construct(l,[],S)}else{try{S.call()}catch(je){s=je}l.call(S.prototype)}}else{try{throw Error()}catch(je){s=je}l()}}catch(je){if(je&&s&&typeof je.stack=="string"){for(var P=je.stack.split(`
80
+ `),H=s.stack.split(`
81
+ `),V=P.length-1,oe=H.length-1;V>=1&&oe>=0&&P[V]!==H[oe];)oe--;for(;V>=1&&oe>=0;V--,oe--)if(P[V]!==H[oe]){if(V!==1||oe!==1)do if(V--,oe--,oe<0||P[V]!==H[oe]){var ae=`
82
+ `+P[V].replace(" at new "," at ");return l.displayName&&ae.includes("<anonymous>")&&(ae=ae.replace("<anonymous>",l.displayName)),typeof l=="function"&&$o.set(l,ae),ae}while(V>=1&&oe>=0);break}}}finally{ns=!1,bo.current=b,es(),Error.prepareStackTrace=f}var pe=l?l.displayName||l.name:"",De=pe?_r(pe):"";return typeof l=="function"&&$o.set(l,De),De}function il(l,t,r){return Zo(l,!0)}function rs(l,t,r){return Zo(l,!1)}function $a(l){var t=l.prototype;return!!(t&&t.isReactComponent)}function Za(l,t,r){if(l==null)return"";if(typeof l=="function")return Zo(l,$a(l));if(typeof l=="string")return _r(l);switch(l){case Yi:return _r("Suspense");case Gi:return _r("SuspenseList")}if(typeof l=="object")switch(l.$$typeof){case vo:return rs(l.render);case Vi:return Za(l.type,t,r);case Xa:{var s=l,f=s._payload,b=s._init;try{return Za(b(f),t,r)}catch{}}}return""}var qa={},qo=a.ReactDebugCurrentFrame;function ea(l){if(l){var t=l._owner,r=Za(l.type,l._source,t?t.type:null);qo.setExtraStackFrame(r)}else qo.setExtraStackFrame(null)}function sl(l,t,r,s,f){{var b=Function.call.bind(J);for(var S in l)if(b(l,S)){var P=void 0;try{if(typeof l[S]!="function"){var H=Error((s||"React class")+": "+r+" type `"+S+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof l[S]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw H.name="Invariant Violation",H}P=l[S](t,S,s,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(V){P=V}P&&!(P instanceof Error)&&(ea(f),o("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",s||"React class",r,S,typeof P),ea(null)),P instanceof Error&&!(P.message in qa)&&(qa[P.message]=!0,ea(f),o("Failed %s type: %s",r,P.message),ea(null))}}}var Hr;Hr={};var ei={};Object.freeze(ei);function Sr(l,t){{var r=l.contextTypes;if(!r)return ei;var s={};for(var f in r)s[f]=t[f];{var b=nt(l)||"Unknown";sl(r,s,"context",b)}return s}}function os(l,t,r,s){{if(typeof l.getChildContext!="function"){{var f=nt(t)||"Unknown";Hr[f]||(Hr[f]=!0,o("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",f,f))}return r}var b=l.getChildContext();for(var S in b)if(!(S in s))throw new Error((nt(t)||"Unknown")+'.getChildContext(): key "'+S+'" is not defined in childContextTypes.');{var P=nt(t)||"Unknown";sl(s,b,"child context",P)}return en({},r,b)}}var Nr;Nr={};var ti=null,Er=null;function ni(l){l.context._currentValue=l.parentValue}function ri(l){l.context._currentValue=l.value}function ta(l,t){if(l!==t){ni(l);var r=l.parent,s=t.parent;if(r===null){if(s!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(s===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");ta(r,s)}ri(t)}}function na(l){ni(l);var t=l.parent;t!==null&&na(t)}function ll(l){var t=l.parent;t!==null&&ll(t),ri(l)}function cl(l,t){ni(l);var r=l.parent;if(r===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");r.depth===t.depth?ta(r,t):cl(r,t)}function ul(l,t){var r=t.parent;if(r===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");l.depth===r.depth?ta(l,r):ul(l,r),ri(t)}function kr(l){var t=Er,r=l;t!==r&&(t===null?ll(r):r===null?na(t):t.depth===r.depth?ta(t,r):t.depth>r.depth?cl(t,r):ul(t,r),Er=r)}function as(l,t){var r;r=l._currentValue,l._currentValue=t,l._currentRenderer!==void 0&&l._currentRenderer!==null&&l._currentRenderer!==Nr&&o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),l._currentRenderer=Nr;var s=Er,f={parent:s,depth:s===null?0:s.depth+1,context:l,parentValue:r,value:t};return Er=f,f}function tu(l){var t=Er;if(t===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");t.context!==l&&o("The parent context is not the expected context. This is probably a bug in React.");{var r=t.parentValue;r===qc?t.context._currentValue=t.context._defaultValue:t.context._currentValue=r,l._currentRenderer!==void 0&&l._currentRenderer!==null&&l._currentRenderer!==Nr&&o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),l._currentRenderer=Nr}return Er=t.parent}function Al(){return Er}function wo(l){var t=l._currentValue;return t}function ra(l){return l._reactInternals}function is(l,t){l._reactInternals=t}var oi={},ai={},ii,xo,oa,aa,si,ia,li,ci,ss;{ii=new Set,xo=new Set,oa=new Set,li=new Set,aa=new Set,ci=new Set,ss=new Set;var dl=new Set;ia=function(l,t){if(!(l===null||typeof l=="function")){var r=t+"_"+l;dl.has(r)||(dl.add(r),o("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,l))}},si=function(l,t){if(t===void 0){var r=nt(l)||"Component";aa.has(r)||(aa.add(r),o("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",r))}}}function fl(l,t){{var r=l.constructor,s=r&&nt(r)||"ReactClass",f=s+"."+t;if(oi[f])return;o(`%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
83
+
84
+ Please check the code for the %s component.`,t,t,s),oi[f]=!0}}var pl={isMounted:function(l){return!1},enqueueSetState:function(l,t,r){var s=ra(l);s.queue===null?fl(l,"setState"):(s.queue.push(t),r!=null&&ia(r,"setState"))},enqueueReplaceState:function(l,t,r){var s=ra(l);s.replace=!0,s.queue=[t],r!=null&&ia(r,"setState")},enqueueForceUpdate:function(l,t){var r=ra(l);r.queue===null?fl(l,"forceUpdate"):t!=null&&ia(t,"setState")}};function nu(l,t,r,s,f){var b=r(f,s);si(t,b);var S=b==null?s:en({},s,b);return S}function hl(l,t,r){var s=ei,f=l.contextType;if("contextType"in l){var b=f===null||f!==void 0&&f.$$typeof===Xo&&f._context===void 0;if(!b&&!ss.has(l)){ss.add(l);var S="";f===void 0?S=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof f!="object"?S=" However, it is set to a "+typeof f+".":f.$$typeof===Vo?S=" Did you accidentally pass the Context.Provider instead?":f._context!==void 0?S=" Did you accidentally pass the Context.Consumer instead?":S=" However, it is set to an object with keys {"+Object.keys(f).join(", ")+"}.",o("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",nt(l)||"Component",S)}}typeof f=="object"&&f!==null?s=wo(f):s=r;var P=new l(t,s);{if(typeof l.getDerivedStateFromProps=="function"&&(P.state===null||P.state===void 0)){var H=nt(l)||"Component";ii.has(H)||(ii.add(H),o("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",H,P.state===null?"null":"undefined",H))}if(typeof l.getDerivedStateFromProps=="function"||typeof P.getSnapshotBeforeUpdate=="function"){var V=null,oe=null,ae=null;if(typeof P.componentWillMount=="function"&&P.componentWillMount.__suppressDeprecationWarning!==!0?V="componentWillMount":typeof P.UNSAFE_componentWillMount=="function"&&(V="UNSAFE_componentWillMount"),typeof P.componentWillReceiveProps=="function"&&P.componentWillReceiveProps.__suppressDeprecationWarning!==!0?oe="componentWillReceiveProps":typeof P.UNSAFE_componentWillReceiveProps=="function"&&(oe="UNSAFE_componentWillReceiveProps"),typeof P.componentWillUpdate=="function"&&P.componentWillUpdate.__suppressDeprecationWarning!==!0?ae="componentWillUpdate":typeof P.UNSAFE_componentWillUpdate=="function"&&(ae="UNSAFE_componentWillUpdate"),V!==null||oe!==null||ae!==null){var pe=nt(l)||"Component",De=typeof l.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";oa.has(pe)||(oa.add(pe),o(`Unsafe legacy lifecycles will not be called for components using new component APIs.
85
+
86
+ %s uses %s but also contains the following legacy lifecycles:%s%s%s
87
+
88
+ The above lifecycles should be removed. Learn more about this warning here:
89
+ https://reactjs.org/link/unsafe-component-lifecycles`,pe,De,V!==null?`
90
+ `+V:"",oe!==null?`
91
+ `+oe:"",ae!==null?`
92
+ `+ae:""))}}}return P}function ru(l,t,r){{var s=nt(t)||"Component",f=l.render;f||(t.prototype&&typeof t.prototype.render=="function"?o("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",s):o("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",s)),l.getInitialState&&!l.getInitialState.isReactClassApproved&&!l.state&&o("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",s),l.getDefaultProps&&!l.getDefaultProps.isReactClassApproved&&o("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",s),l.propTypes&&o("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",s),l.contextType&&o("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",s),l.contextTypes&&o("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",s),t.contextType&&t.contextTypes&&!ci.has(t)&&(ci.add(t),o("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",s)),typeof l.componentShouldUpdate=="function"&&o("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",s),t.prototype&&t.prototype.isPureReactComponent&&typeof l.shouldComponentUpdate<"u"&&o("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",nt(t)||"A pure component"),typeof l.componentDidUnmount=="function"&&o("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",s),typeof l.componentDidReceiveProps=="function"&&o("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",s),typeof l.componentWillRecieveProps=="function"&&o("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",s),typeof l.UNSAFE_componentWillRecieveProps=="function"&&o("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",s);var b=l.props!==r;l.props!==void 0&&b&&o("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",s,s),l.defaultProps&&o("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",s,s),typeof l.getSnapshotBeforeUpdate=="function"&&typeof l.componentDidUpdate!="function"&&!xo.has(t)&&(xo.add(t),o("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",nt(t))),typeof l.getDerivedStateFromProps=="function"&&o("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",s),typeof l.getDerivedStateFromError=="function"&&o("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",s),typeof t.getSnapshotBeforeUpdate=="function"&&o("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",s);var S=l.state;S&&(typeof S!="object"||Lt(S))&&o("%s.state: must be set to an object or null",s),typeof l.getChildContext=="function"&&typeof t.childContextTypes!="object"&&o("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",s)}}function ou(l,t){var r=t.state;if(typeof t.componentWillMount=="function"){if(t.componentWillMount.__suppressDeprecationWarning!==!0){var s=nt(l)||"Unknown";ai[s]||(i(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
93
+
94
+ * Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
95
+
96
+ Please update the following components: %s`,s),ai[s]=!0)}t.componentWillMount()}typeof t.UNSAFE_componentWillMount=="function"&&t.UNSAFE_componentWillMount(),r!==t.state&&(o("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",nt(l)||"Component"),pl.enqueueReplaceState(t,t.state,null))}function ls(l,t,r,s){if(l.queue!==null&&l.queue.length>0){var f=l.queue,b=l.replace;if(l.queue=null,l.replace=!1,b&&f.length===1)t.state=f[0];else{for(var S=b?f[0]:t.state,P=!0,H=b?1:0;H<f.length;H++){var V=f[H],oe=typeof V=="function"?V.call(t,S,r,s):V;oe!=null&&(P?(P=!1,S=en({},S,oe)):en(S,oe))}t.state=S}}else l.queue=null}function sa(l,t,r,s){ru(l,t,r);var f=l.state!==void 0?l.state:null;l.updater=pl,l.props=r,l.state=f;var b={queue:[],replace:!1};is(l,b);var S=t.contextType;if(typeof S=="object"&&S!==null?l.context=wo(S):l.context=s,l.state===r){var P=nt(t)||"Component";li.has(P)||(li.add(P),o("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",P))}var H=t.getDerivedStateFromProps;typeof H=="function"&&(l.state=nu(l,t,H,f,r)),typeof t.getDerivedStateFromProps!="function"&&typeof l.getSnapshotBeforeUpdate!="function"&&(typeof l.UNSAFE_componentWillMount=="function"||typeof l.componentWillMount=="function")&&(ou(t,l),ls(b,l,r,s))}var au={id:1,overflow:""};function iu(l){var t=l.overflow,r=l.id,s=r&~su(r);return s.toString(32)+t}function cs(l,t,r){var s=l.id,f=l.overflow,b=ui(s)-1,S=s&~(1<<b),P=r+1,H=ui(t)+b;if(H>30){var V=b-b%5,oe=(1<<V)-1,ae=(S&oe).toString(32),pe=S>>V,De=b-V,je=ui(t)+De,Ct=P<<De,Vr=Ct|pe,Xr=ae+f;return{id:1<<je|Vr,overflow:Xr}}else{var ir=P<<b,Do=ir|S,Qu=f;return{id:1<<H|Do,overflow:Qu}}}function ui(l){return 32-lu(l)}function su(l){return 1<<ui(l)-1}var lu=Math.clz32?Math.clz32:us,cu=Math.log,nr=Math.LN2;function us(l){var t=l>>>0;return t===0?32:31-(cu(t)/nr|0)|0}function Ai(l,t){return l===t&&(l!==0||1/l===1/t)||l!==l&&t!==t}var et=typeof Object.is=="function"?Object.is:Ai,tn=null,So=null,Ur=null,ze=null,Cr=!1,di=!1,nn=0,rn=null,Yn=0,uu=25,Tn=!1,Pr;function zr(){if(tn===null)throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
97
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
98
+ 2. You might be breaking the Rules of Hooks
99
+ 3. You might have more than one copy of React in the same app
100
+ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return Tn&&o("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks"),tn}function Au(l,t){if(t===null)return o("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Pr),!1;l.length!==t.length&&o(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
101
+
102
+ Previous: %s
103
+ Incoming: %s`,Pr,"["+l.join(", ")+"]","["+t.join(", ")+"]");for(var r=0;r<t.length&&r<l.length;r++)if(!et(l[r],t[r]))return!1;return!0}function As(){if(Yn>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function la(){return ze===null?Ur===null?(Cr=!1,Ur=ze=As()):(Cr=!0,ze=Ur):ze.next===null?(Cr=!1,ze=ze.next=As()):(Cr=!0,ze=ze.next),ze}function du(l,t){tn=t,So=l,Tn=!1,nn=0}function fu(l,t,r,s){for(;di;)di=!1,nn=0,Yn+=1,ze=null,r=l(t,s);return ds(),r}function fi(){var l=nn!==0;return l}function ds(){Tn=!1,tn=null,So=null,di=!1,Ur=null,Yn=0,rn=null,ze=null}function gl(l){return Tn&&o("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),wo(l)}function ml(l){return Pr="useContext",zr(),wo(l)}function fs(l,t){return typeof t=="function"?t(l):t}function pu(l){return Pr="useState",vl(fs,l)}function vl(l,t,r){if(l!==fs&&(Pr="useReducer"),tn=zr(),ze=la(),Cr){var s=ze.queue,f=s.dispatch;if(rn!==null){var b=rn.get(s);if(b!==void 0){rn.delete(s);var S=ze.memoizedState,P=b;do{var H=P.action;Tn=!0,S=l(S,H),Tn=!1,P=P.next}while(P!==null);return ze.memoizedState=S,[S,f]}}return[ze.memoizedState,f]}else{Tn=!0;var V;l===fs?V=typeof t=="function"?t():t:V=r!==void 0?r(t):t,Tn=!1,ze.memoizedState=V;var oe=ze.queue={last:null,dispatch:null},ae=oe.dispatch=mu.bind(null,tn,oe);return[ze.memoizedState,ae]}}function yl(l,t){tn=zr(),ze=la();var r=t===void 0?null:t;if(ze!==null){var s=ze.memoizedState;if(s!==null&&r!==null){var f=s[1];if(Au(r,f))return s[0]}}Tn=!0;var b=l();return Tn=!1,ze.memoizedState=[b,r],b}function hu(l){tn=zr(),ze=la();var t=ze.memoizedState;if(t===null){var r={current:l};return Object.seal(r),ze.memoizedState=r,r}else return t}function gu(l,t){Pr="useLayoutEffect",o("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.")}function mu(l,t,r){if(Yn>=uu)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(l===tn){di=!0;var s={action:r,next:null};rn===null&&(rn=new Map);var f=rn.get(t);if(f===void 0)rn.set(t,s);else{for(var b=f;b.next!==null;)b=b.next;b.next=s}}}function vu(l,t){return yl(function(){return l},t)}function yu(l,t,r){return zr(),t(l._source)}function bu(l,t,r){if(r===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return r()}function pi(l){return zr(),l}function bl(){throw new Error("startTransition cannot be called during server rendering.")}function ps(){return zr(),[!1,bl]}function wl(){var l=So,t=iu(l.treeContext),r=ca;if(r===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var s=nn++;return mn(r,t,s)}function hi(){}var gi={readContext:gl,useContext:ml,useMemo:yl,useReducer:vl,useRef:hu,useState:pu,useInsertionEffect:hi,useLayoutEffect:gu,useCallback:vu,useImperativeHandle:hi,useEffect:hi,useDebugValue:hi,useDeferredValue:pi,useTransition:ps,useId:wl,useMutableSource:yu,useSyncExternalStore:bu},ca=null;function mi(l){ca=l}function Eo(l){try{var t="",r=l;do{switch(r.tag){case 0:t+=_r(r.type,null,null);break;case 1:t+=rs(r.type,null,null);break;case 2:t+=il(r.type,null,null);break}r=r.parent}while(r);return t}catch(s){return`
104
+ Error generating stack: `+s.message+`
105
+ `+s.stack}}var vi=a.ReactCurrentDispatcher,yi=a.ReactDebugCurrentFrame,bi=0,ko=1,hs=2,jr=3,xl=4,wu=0,Co=1,Po=2,xu=12800;function Su(l){return console.error(l),null}function Wr(){}function wi(l,t,r,s,f,b,S,P,H){var V=[],oe=new Set,ae={destination:null,responseState:t,progressiveChunkSize:s===void 0?xu:s,status:wu,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:oe,pingedTasks:V,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:f===void 0?Su:f,onAllReady:b===void 0?Wr:b,onShellReady:S===void 0?Wr:S,onShellError:P===void 0?Wr:P,onFatalError:H===void 0?Wr:H},pe=ua(ae,0,null,r,!1,!1);pe.parentFlushed=!0;var De=Yr(ae,l,null,pe,oe,ei,ti,au);return V.push(De),ae}function rr(l,t){var r=l.pingedTasks;r.push(t),r.length===1&&u(function(){return Cs(l)})}function gs(l,t){return{id:vr,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:t,errorDigest:null}}function Yr(l,t,r,s,f,b,S,P){l.allPendingTasks++,r===null?l.pendingRootTasks++:r.pendingTasks++;var H={node:t,ping:function(){return rr(l,H)},blockedBoundary:r,blockedSegment:s,abortSet:f,legacyContext:b,context:S,treeContext:P};return H.componentStack=null,f.add(H),H}function ua(l,t,r,s,f,b){return{status:bi,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:s,boundary:r,lastPushedText:f,textEmbedded:b}}var or=null;function Gn(){return or===null||or.componentStack===null?"":Eo(or.componentStack)}function ar(l,t){l.componentStack={tag:0,parent:l.componentStack,type:t}}function xi(l,t){l.componentStack={tag:1,parent:l.componentStack,type:t}}function Aa(l,t){l.componentStack={tag:2,parent:l.componentStack,type:t}}function Dn(l){l.componentStack===null?o("Unexpectedly popped too many stack frames. This is a bug in React."):l.componentStack=l.componentStack.parent}var da=null;function ms(l,t){{var r;typeof t=="string"?r=t:t&&typeof t.message=="string"?r=t.message:r=String(t);var s=da||Gn();da=null,l.errorMessage=r,l.errorComponentStack=s}}function fa(l,t){var r=l.onError(t);if(r!=null&&typeof r!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof r+'" instead');return r}function pa(l,t){var r=l.onShellError;r(t);var s=l.onFatalError;s(t),l.destination!==null?(l.status=Po,_(l.destination,t)):(l.status=Co,l.fatalError=t)}function Sl(l,t,r){ar(t,"Suspense");var s=t.blockedBoundary,f=t.blockedSegment,b=r.fallback,S=r.children,P=new Set,H=gs(l,P),V=f.chunks.length,oe=ua(l,V,H,f.formatContext,!1,!1);f.children.push(oe),f.lastPushedText=!1;var ae=ua(l,0,null,f.formatContext,!1,!1);ae.parentFlushed=!0,t.blockedBoundary=H,t.blockedSegment=ae;try{if(To(l,t,S),_t(ae.chunks,l.responseState,ae.lastPushedText,ae.textEmbedded),ae.status=ko,Gr(H,ae),H.pendingTasks===0){Dn(t);return}}catch(De){ae.status=xl,H.forceClientRender=!0,H.errorDigest=fa(l,De),ms(H,De)}finally{t.blockedBoundary=s,t.blockedSegment=f}var pe=Yr(l,b,s,oe,P,t.legacyContext,t.context,t.treeContext);pe.componentStack=t.componentStack,l.pingedTasks.push(pe),Dn(t)}function Eu(l,t,r,s){ar(t,r);var f=t.blockedSegment,b=Or(f.chunks,r,s,l.responseState,f.formatContext);f.lastPushedText=!1;var S=f.formatContext;f.formatContext=$n(S,r,s),To(l,t,b),f.formatContext=S,Da(f.chunks,r),f.lastPushedText=!1,Dn(t)}function El(l){return l.prototype&&l.prototype.isReactComponent}function ha(l,t,r,s,f){var b={};du(t,b);var S=r(s,f);return fu(r,s,S,f)}function vs(l,t,r,s,f){var b=r.render();r.props!==f&&(xs||o("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",nt(s)||"a component"),xs=!0);{var S=s.childContextTypes;if(S!=null){var P=t.legacyContext,H=os(r,s,P,S);t.legacyContext=H,Ut(l,t,b),t.legacyContext=P;return}}Ut(l,t,b)}function kl(l,t,r,s){Aa(t,r);var f=Sr(r,t.legacyContext),b=hl(r,s,f);sa(b,r,s,f),vs(l,t,b,r,s),Dn(t)}var ys={},ga={},bs={},ws={},xs=!1,Cl={},Pl=!1,Ss=!1,Tl=!1;function ku(l,t,r,s){var f;if(f=Sr(r,t.legacyContext),xi(t,r),r.prototype&&typeof r.prototype.render=="function"){var b=nt(r)||"Unknown";ys[b]||(o("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",b,b),ys[b]=!0)}var S=ha(l,t,r,s,f),P=fi();if(typeof S=="object"&&S!==null&&typeof S.render=="function"&&S.$$typeof===void 0){var H=nt(r)||"Unknown";ga[H]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",H,H,H),ga[H]=!0)}if(typeof S=="object"&&S!==null&&typeof S.render=="function"&&S.$$typeof===void 0){{var V=nt(r)||"Unknown";ga[V]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",V,V,V),ga[V]=!0)}sa(S,r,s,f),vs(l,t,S,r,s)}else if(Cu(r),P){var oe=t.treeContext,ae=1,pe=0;t.treeContext=cs(oe,ae,pe);try{Ut(l,t,S)}finally{t.treeContext=oe}}else Ut(l,t,S);Dn(t)}function Cu(l){{if(l&&l.childContextTypes&&o("%s(...): childContextTypes cannot be defined on a function component.",l.displayName||l.name||"Component"),l.defaultProps!==void 0){var t=nt(l)||"Unknown";Cl[t]||(o("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",t),Cl[t]=!0)}if(typeof l.getDerivedStateFromProps=="function"){var r=nt(l)||"Unknown";ws[r]||(o("%s: Function components do not support getDerivedStateFromProps.",r),ws[r]=!0)}if(typeof l.contextType=="object"&&l.contextType!==null){var s=nt(l)||"Unknown";bs[s]||(o("%s: Function components do not support contextType.",s),bs[s]=!0)}}}function Dl(l,t){if(l&&l.defaultProps){var r=en({},t),s=l.defaultProps;for(var f in s)r[f]===void 0&&(r[f]=s[f]);return r}return t}function Pu(l,t,r,s,f){xi(t,r.render);var b=ha(l,t,r.render,s,f),S=fi();if(S){var P=t.treeContext,H=1,V=0;t.treeContext=cs(P,H,V);try{Ut(l,t,b)}finally{t.treeContext=P}}else Ut(l,t,b);Dn(t)}function Es(l,t,r,s,f){var b=r.type,S=Dl(b,s);Si(l,t,b,S,f)}function Tu(l,t,r,s){r._context===void 0?r!==r.Consumer&&(Tl||(Tl=!0,o("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):r=r._context;var f=s.children;typeof f!="function"&&o("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var b=wo(r),S=f(b);Ut(l,t,S)}function on(l,t,r,s){var f=r._context,b=s.value,S=s.children,P;P=t.context,t.context=as(f,b),Ut(l,t,S),t.context=tu(f),P!==t.context&&o("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Du(l,t,r,s,f){ar(t,"Lazy");var b=r._payload,S=r._init,P=S(b),H=Dl(P,s);Si(l,t,P,H,f),Dn(t)}function Si(l,t,r,s,f){if(typeof r=="function")if(El(r)){kl(l,t,r,s);return}else{ku(l,t,r,s);return}if(typeof r=="string"){Eu(l,t,r,s);return}switch(r){case Zc:case $c:case Ga:case Va:case Ya:{Ut(l,t,s.children);return}case Gi:{ar(t,"SuspenseList"),Ut(l,t,s.children),Dn(t);return}case nl:throw new Error("ReactDOMServer does not yet support scope components.");case Yi:{Sl(l,t,s);return}}if(typeof r=="object"&&r!==null)switch(r.$$typeof){case vo:{Pu(l,t,r,s,f);return}case Vi:{Es(l,t,r,s,f);return}case Vo:{on(l,t,r,s);return}case Xo:{Tu(l,t,r,s);return}case Xa:{Du(l,t,r,s);return}}var b="";throw(r===void 0||typeof r=="object"&&r!==null&&Object.keys(r).length===0)&&(b+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(r==null?r:typeof r)+"."+b))}function Iu(l,t){typeof Symbol=="function"&&l[Symbol.toStringTag]==="Generator"&&(Pl||o("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),Pl=!0),l.entries===t&&(Ss||o("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ss=!0)}function Ut(l,t,r){try{return Bu(l,t,r)}catch(s){throw typeof s=="object"&&s!==null&&typeof s.then=="function"||(da=da!==null?da:Gn()),s}}function Bu(l,t,r){if(t.node=r,typeof r=="object"&&r!==null){switch(r.$$typeof){case tl:{var s=r,f=s.type,b=s.props,S=s.ref;Si(l,t,f,b,S);return}case Wa:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case Xa:{var P=r,H=P._payload,V=P._init,oe;try{oe=V(H)}catch(ir){throw typeof ir=="object"&&ir!==null&&typeof ir.then=="function"&&ar(t,"Lazy"),ir}Ut(l,t,oe);return}}if(Lt(r)){Il(l,t,r);return}var ae=Jo(r);if(ae){Iu(r,ae);var pe=ae.call(r);if(pe){var De=pe.next();if(!De.done){var je=[];do je.push(De.value),De=pe.next();while(!De.done);Il(l,t,je);return}return}}var Ct=Object.prototype.toString.call(r);throw new Error("Objects are not valid as a React child (found: "+(Ct==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":Ct)+"). If you meant to render a collection of children, use an array instead.")}if(typeof r=="string"){var Vr=t.blockedSegment;Vr.lastPushedText=wt(t.blockedSegment.chunks,r,l.responseState,Vr.lastPushedText);return}if(typeof r=="number"){var Xr=t.blockedSegment;Xr.lastPushedText=wt(t.blockedSegment.chunks,""+r,l.responseState,Xr.lastPushedText);return}typeof r=="function"&&o("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function Il(l,t,r){for(var s=r.length,f=0;f<s;f++){var b=t.treeContext;t.treeContext=cs(b,s,f);try{To(l,t,r[f])}finally{t.treeContext=b}}}function Bl(l,t,r){var s=t.blockedSegment,f=s.chunks.length,b=ua(l,f,null,s.formatContext,s.lastPushedText,!0);s.children.push(b),s.lastPushedText=!1;var S=Yr(l,t.node,t.blockedBoundary,b,t.abortSet,t.legacyContext,t.context,t.treeContext);t.componentStack!==null&&(S.componentStack=t.componentStack.parent);var P=S.ping;r.then(P,P)}function To(l,t,r){var s=t.blockedSegment.formatContext,f=t.legacyContext,b=t.context,S=null;S=t.componentStack;try{return Ut(l,t,r)}catch(P){if(ds(),typeof P=="object"&&P!==null&&typeof P.then=="function"){Bl(l,t,P),t.blockedSegment.formatContext=s,t.legacyContext=f,t.context=b,kr(b),t.componentStack=S;return}else throw t.blockedSegment.formatContext=s,t.legacyContext=f,t.context=b,kr(b),t.componentStack=S,P}}function Ml(l,t,r,s){var f=fa(l,s);if(t===null?pa(l,s):(t.pendingTasks--,t.forceClientRender||(t.forceClientRender=!0,t.errorDigest=f,ms(t,s),t.parentFlushed&&l.clientRenderedBoundaries.push(t))),l.allPendingTasks--,l.allPendingTasks===0){var b=l.onAllReady;b()}}function Mu(l){var t=this,r=l.blockedBoundary,s=l.blockedSegment;s.status=jr,ma(t,r,s)}function ks(l,t,r){var s=l.blockedBoundary,f=l.blockedSegment;if(f.status=jr,s===null)t.allPendingTasks--,t.status!==Po&&(t.status=Po,t.destination!==null&&D(t.destination));else{if(s.pendingTasks--,!s.forceClientRender){s.forceClientRender=!0;var b=r===void 0?new Error("The render was aborted by the server without a reason."):r;s.errorDigest=t.onError(b);{var S="The server did not finish this Suspense boundary: ";b&&typeof b.message=="string"?b=S+b.message:b=S+String(b);var P=or;or=l;try{ms(s,b)}finally{or=P}}s.parentFlushed&&t.clientRenderedBoundaries.push(s)}if(s.fallbackAbortableTasks.forEach(function(V){return ks(V,t,r)}),s.fallbackAbortableTasks.clear(),t.allPendingTasks--,t.allPendingTasks===0){var H=t.onAllReady;H()}}}function Gr(l,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null){var r=t.children[0];r.id=t.id,r.parentFlushed=!0,r.status===ko&&Gr(l,r)}else{var s=l.completedSegments;s.push(t)}}function ma(l,t,r){if(t===null){if(r.parentFlushed){if(l.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");l.completedRootSegment=r}if(l.pendingRootTasks--,l.pendingRootTasks===0){l.onShellError=Wr;var s=l.onShellReady;s()}}else if(t.pendingTasks--,!t.forceClientRender){if(t.pendingTasks===0)r.parentFlushed&&r.status===ko&&Gr(t,r),t.parentFlushed&&l.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Mu,l),t.fallbackAbortableTasks.clear();else if(r.parentFlushed&&r.status===ko){Gr(t,r);var f=t.completedSegments;f.length===1&&t.parentFlushed&&l.partialBoundaries.push(t)}}if(l.allPendingTasks--,l.allPendingTasks===0){var b=l.onAllReady;b()}}function Ru(l,t){var r=t.blockedSegment;if(r.status===bi){kr(t.context);var s=null;s=or,or=t;try{Ut(l,t,t.node),_t(r.chunks,l.responseState,r.lastPushedText,r.textEmbedded),t.abortSet.delete(t),r.status=ko,ma(l,t.blockedBoundary,r)}catch(b){if(ds(),typeof b=="object"&&b!==null&&typeof b.then=="function"){var f=t.ping;b.then(f,f)}else t.abortSet.delete(t),r.status=xl,Ml(l,t.blockedBoundary,r,b)}finally{or=s}}}function Cs(l){if(l.status!==Po){var t=Al(),r=vi.current;vi.current=gi;var s;s=yi.getCurrentStack,yi.getCurrentStack=Gn;var f=ca;mi(l.responseState);try{var b=l.pingedTasks,S;for(S=0;S<b.length;S++){var P=b[S];Ru(l,P)}b.splice(0,S),l.destination!==null&&Ps(l,l.destination)}catch(H){fa(l,H),pa(l,H)}finally{mi(f),vi.current=r,yi.getCurrentStack=s,r===gi&&kr(t)}}}function va(l,t,r){switch(r.parentFlushed=!0,r.status){case bi:{var s=r.id=l.nextSegmentId++;return r.lastPushedText=!1,r.textEmbedded=!1,Ia(t,l.responseState,s)}case ko:{r.status=hs;for(var f=!0,b=r.chunks,S=0,P=r.children,H=0;H<P.length;H++){for(var V=P[H];S<V.index;S++)m(t,b[S]);f=Ei(l,t,V)}for(;S<b.length-1;S++)m(t,b[S]);return S<b.length&&(f=y(t,b[S])),f}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function Ei(l,t,r){var s=r.boundary;if(s===null)return va(l,t,r);if(s.parentFlushed=!0,s.forceClientRender)return Ht(t,l.responseState,s.errorDigest,s.errorMessage,s.errorComponentStack),va(l,t,r),ji(t,l.responseState);if(s.pendingTasks>0){s.rootSegmentID=l.nextSegmentId++,s.completedSegments.length>0&&l.partialBoundaries.push(s);var f=s.id=Wt(l.responseState);return Ao(t,l.responseState,f),va(l,t,r),fo(t,l.responseState)}else{if(s.byteSize>l.progressiveChunkSize)return s.rootSegmentID=l.nextSegmentId++,l.completedBoundaries.push(s),Ao(t,l.responseState,s.id),va(l,t,r),fo(t,l.responseState);Ra(t,l.responseState);var b=s.completedSegments;if(b.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var S=b[0];return Ei(l,t,S),Oa(t,l.responseState)}}function Rl(l,t,r){return Kc(t,l.responseState,r.id,r.errorDigest,r.errorMessage,r.errorComponentStack)}function ki(l,t,r){return Me(t,l.responseState,r.formatContext,r.id),Ei(l,t,r),$e(t,r.formatContext)}function Ol(l,t,r){for(var s=r.completedSegments,f=0;f<s.length;f++){var b=s[f];Fl(l,t,r,b)}return s.length=0,qs(t,l.responseState,r.id,r.rootSegmentID)}function Ou(l,t,r){for(var s=r.completedSegments,f=0;f<s.length;f++){var b=s[f];if(!Fl(l,t,r,b))return f++,s.splice(0,f),!1}return s.splice(0,f),!0}function Fl(l,t,r,s){if(s.status===hs)return!0;var f=s.id;if(f===-1){var b=s.id=r.rootSegmentID;if(b===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return ki(l,t,s)}else return ki(l,t,s),jc(t,l.responseState,f)}function Ps(l,t){h();try{var r=l.completedRootSegment;r!==null&&l.pendingRootTasks===0&&(Ei(l,t,r),l.completedRootSegment=null,Ni(t,l.responseState));var s=l.clientRenderedBoundaries,f;for(f=0;f<s.length;f++){var b=s[f];Rl(l,t,b)}s.splice(0,f);var S=l.completedBoundaries;for(f=0;f<S.length;f++){var P=S[f];Ol(l,t,P)}S.splice(0,f),C(t),h(t);var H=l.partialBoundaries;for(f=0;f<H.length;f++){var V=H[f];if(!Ou(l,t,V)){l.destination=null,f++,H.splice(0,f);return}}H.splice(0,f);var oe=l.completedBoundaries;for(f=0;f<oe.length;f++){var ae=oe[f];Ol(l,t,ae)}oe.splice(0,f)}finally{C(t),l.allPendingTasks===0&&l.pingedTasks.length===0&&l.clientRenderedBoundaries.length===0&&l.completedBoundaries.length===0&&(l.abortableTasks.size!==0&&o("There was still abortable task at the root when we closed. This is a bug in React."),D(t))}}function Ll(l){u(function(){return Cs(l)})}function Fu(l,t){if(l.status===Co){l.status=Po,_(t,l.fatalError);return}if(l.status!==Po&&l.destination===null){l.destination=t;try{Ps(l,t)}catch(r){fa(l,r),pa(l,r)}}}function Ql(l,t){try{var r=l.abortableTasks;r.forEach(function(s){return ks(s,l,t)}),r.clear(),l.destination!==null&&Ps(l,l.destination)}catch(s){fa(l,s),pa(l,s)}}function Lu(l,t){return new Promise(function(r,s){var f,b,S=new Promise(function(pe,De){b=pe,f=De});function P(){var pe=new ReadableStream({type:"bytes",pull:function(De){Fu(V,De)},cancel:function(De){Ql(V)}},{highWaterMark:0});pe.allReady=S,r(pe)}function H(pe){S.catch(function(){}),s(pe)}var V=wi(l,ro(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),Nn(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,b,P,H,f);if(t&&t.signal){var oe=t.signal,ae=function(){Ql(V,oe.reason),oe.removeEventListener("abort",ae)};oe.addEventListener("abort",ae)}Ll(V)})}Ds.renderToReadableStream=Lu,Ds.version=n}()),Ds}var Ro,Hl;process.env.NODE_ENV==="production"?(Ro=rf(),Hl=of()):(Ro=af(),Hl=sf()),Io.version=Ro.version,Io.renderToString=Ro.renderToString,Io.renderToStaticMarkup=Ro.renderToStaticMarkup,Io.renderToNodeStream=Ro.renderToNodeStream,Io.renderToStaticNodeStream=Ro.renderToStaticNodeStream,Io.renderToReadableStream=Hl.renderToReadableStream;function zu(e,n){n===void 0&&(n={});var a=n.insertAt;if(e&&typeof document<"u"){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",a==="top"&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}zu('.rcb-chat-header-container{border-bottom:1px solid #ccc;color:#fff;display:flex;justify-content:space-between;max-height:55px;padding:12px}.rcb-chat-header{display:flex;flex-direction:row}.rcb-bot-avatar{background-size:cover;border-radius:50%;height:30px;margin-right:12px;width:30px}.rcb-message-prompt-container.visible{align-items:center;animation:rcb-animation-pop-in .3s ease-in-out;bottom:0;display:flex;justify-content:center;margin:auto;opacity:1;pointer-events:auto;position:sticky}.rcb-message-prompt-container.hidden{height:0;opacity:0;pointer-events:none;visibility:hidden}.rcb-message-prompt-text{background-color:#fff;border:.5px solid #adadad;border-radius:20px;color:#adadad;cursor:pointer;font-size:12px;padding:6px 12px;transition:color .3s ease,border-color .3s ease;z-index:9999}.rcb-message-prompt-container.hidden .rcb-message-prompt-text{padding:0}.rcb-user-message-container{display:flex;flex-direction:row;justify-content:right}.rcb-user-message{border-radius:22px;font-size:15px;height:fit-content;margin-right:16px;margin-top:8px;min-height:20px;overflow:auto;overflow-wrap:anywhere;padding:12px 16px;text-align:right;white-space:pre-wrap;width:fit-content}.rcb-user-message-offset{margin-right:50px}.rcb-user-message-entry{animation:rcb-animation-user-message-entry .3s ease-in backwards}.rcb-message-user-avatar{background-size:cover;border-radius:50%;height:40px;margin-left:-10px;margin-right:6px;margin-top:9px;width:40px}.rcb-bot-message-container{display:flex;flex-direction:row}.rcb-bot-message{border-radius:22px;font-size:15px;height:fit-content;margin-left:16px;margin-top:8px;min-height:20px;overflow:auto;overflow-wrap:anywhere;padding:12px 16px;text-align:left;white-space:pre-wrap;width:fit-content}.rcb-bot-message-offset{margin-left:50px}.rcb-bot-message-entry{animation:rcb-animation-bot-message-entry .3s ease-in backwards}.rcb-message-bot-avatar{background-size:cover;border-radius:50%;height:40px;margin-left:6px;margin-right:-10px;margin-top:9px;width:40px}.rcb-typing-indicator{align-items:center;display:flex}.rcb-dot{animation:rcb-animation-bot-typing 1s infinite;background-color:#ccc;border-radius:50%;height:8px;margin-right:4px;width:8px}.rcb-dot:nth-child(2){animation-delay:.2s}.rcb-dot:nth-child(3){animation-delay:.4s}.rcb-chat-body-container{height:100%;overflow-x:hidden;overflow-y:scroll;padding-bottom:16px;position:relative;touch-action:pan-y;width:100%}.rcb-chat-body-container::-webkit-scrollbar-track{background-color:#f1f1f1}.rcb-chat-body-container::-webkit-scrollbar-thumb{background-color:#ddd;border-radius:4px}.rcb-chat-body-container::-webkit-scrollbar-thumb:hover{background-color:#cfcfcf}.rcb-chat-body-container::-webkit-scrollbar-corner{background-color:#f1f1f1}.rcb-checkbox-container{display:flex;flex-wrap:wrap;gap:10px;margin-left:16px;padding-top:12px}.rcb-checkbox-offset{margin-left:50px!important}.rcb-checkbox-row-container{align-items:center;animation:rcb-animations-checkboxes-entry .5s ease-out;background-color:#fff;border-radius:10px;border-style:solid;border-width:.5px;cursor:pointer;display:flex;gap:5px;max-height:32px;min-height:30px;overflow:hidden;width:80%}.rcb-checkbox-row-container:hover{box-shadow:0 0 5px #0003}.rcb-checkbox-row{align-items:center;cursor:pointer;display:inline-flex;margin-left:10px}.rcb-checkbox-mark{align-items:center;background-color:#f2f2f2;border:none;border-radius:50%;cursor:pointer;display:flex;height:20px;justify-content:center;margin-right:10px;transition:all .3s ease;width:20px}.rcb-checkbox-mark:hover{background-color:#c2c2c2}.rcb-checkbox-mark:before{content:"✓";transition:all .3s ease}.rcb-checkbox-label{font-size:14px}.rcb-checkbox-next-button{align-items:center;animation:rcb-animations-checkboxes-entry .5s ease-out;background-color:#fff;border-radius:10px;border-style:solid;border-width:.5px;cursor:pointer;display:inline-block;font-size:24px;max-height:32px;min-height:30px;text-align:center;width:80%}.rcb-checkbox-next-button:before{content:"→"}.rcb-checkbox-next-button:hover{box-shadow:0 0 5px #0003}.rcb-options-container{display:flex;flex-wrap:wrap;gap:10px;margin-left:16px;max-width:70%;padding-top:12px}.rcb-options-offset{margin-left:50px!important}.rcb-options{align-items:center;animation:rcb-animation-options-entry .5s ease-out;border-radius:20px;border-style:solid;border-width:.5px;cursor:pointer;display:inline-flex;font-size:14px;justify-content:center;overflow:hidden;padding:10px 20px;transition:background-color .3s ease}.rcb-options:hover{box-shadow:0 0 5px #0003}.rcb-line-break-container{align-items:center;display:flex;justify-content:center;max-height:45px;padding-bottom:5px;padding-top:10px}.rcb-line-break-text{color:#adadad;font-size:12px;padding:6px 12px}.rcb-spinner-container{align-items:center;display:flex;justify-content:center;max-height:45px;min-height:35px;padding-bottom:5px;padding-top:10px}.rcb-spinner{animation:rcb-animation-spin 1s linear infinite;border:4px solid #f3f3f3;border-radius:50%;height:22px;width:22px}.rcb-chat-input{align-items:center;background-color:#fff;border-top:1px solid #ccc;display:flex;padding:8px 16px}.rcb-chat-input::placeholder{color:#999}.rcb-chat-input-textarea{background-color:#fff;border:none;border-radius:4px;color:#000;flex:1;font-family:inherit;font-size:16px;height:auto;min-height:38px;outline:none;overflow-y:scroll;padding:8px;resize:none;touch-action:none}.rcb-chat-input-textarea::-webkit-scrollbar,.rcb-chat-input-textarea::-webkit-scrollbar-thumb{background-color:initial}.rcb-chat-input-textarea::-webkit-scrollbar-thumb:hover{background-color:initial}.rcb-chat-input-char-counter{font-size:14px;margin-left:8px;margin-top:3px}.rcb-chat-footer-container{align-items:flex-end;background-color:#f2f2f2;border-top:1px solid #ccc;color:#000;display:flex;font-size:12px;justify-content:space-between;max-height:55px;padding:12px 16px 8px 10px}.rcb-chat-footer,.rcb-toggle-button{display:flex;flex-direction:row}.rcb-toggle-button{border:none;border-radius:50%;bottom:20px;box-shadow:0 2px 4px #0003;cursor:pointer;height:75px;position:fixed;right:20px;width:75px;z-index:9999}.rcb-toggle-button.rcb-button-hide{animation:rcb-animation-collapse .3s ease-in-out forwards;opacity:0;visibility:hidden}.rcb-toggle-button.rcb-button-show{animation:rcb-animation-expand .3s ease-in-out forwards;opacity:1;visibility:visible}.rcb-toggle-icon{background-position:50%;background-repeat:no-repeat;background-size:cover;border-radius:inherit;height:100%;margin:auto;width:100%}.rcb-badge,.rcb-toggle-icon{align-items:center;display:flex;justify-content:center}.rcb-badge{background-color:red;border-radius:50%;color:#fff;height:25px;position:absolute;right:-6px;top:-6px;width:25px}.rcb-chat-tooltip{border-radius:20px;box-shadow:0 2px 6px #0003;cursor:pointer;font-size:20px;padding:16px;position:fixed;transition:transform .3s ease;white-space:nowrap;z-index:9999}.rcb-chat-tooltip-tail{border-style:solid;border-width:10px 0 10px 10px;content:"";margin-top:-10px;position:absolute;right:-10px;top:50%}.rcb-chat-tooltip.rcb-tooltip-hide{animation:rcb-animation-tooltip-out .5s ease-in-out;opacity:0;visibility:hidden}.rcb-chat-tooltip.rcb-tooltip-show{animation:rcb-animation-tooltip-in .5s ease-in-out;opacity:1;visibility:visible}.rcb-toast-prompt{animation:rcb-animation-pop-in .3s ease-in-out;background-color:#fff;border:.5px solid #7a7a7a;border-radius:5px;color:#7a7a7a;cursor:pointer;font-size:12px;margin-top:6px;padding:6px 12px;text-align:center;transition:color .3s ease,border-color .3s ease;width:100%;z-index:9999}.rcb-toast-prompt-container{align-items:center;animation:popIn .3s ease-in-out;bottom:0;display:flex;flex-direction:column;justify-content:flex-end;left:50%;margin:200 auto auto;opacity:1;pointer-events:auto;position:absolute;transform:translate(-50%)}.rcb-media-display-image-container,.rcb-media-display-video-container{border-radius:22px;margin-right:16px;margin-top:8px;padding:16px;width:fit-content}.rcb-media-display-offset{margin-right:50px!important}.rcb-media-display-image{border-radius:22px;height:auto;object-fit:cover;width:100%}.rcb-media-display-video{background-color:#000;border-radius:22px;height:auto;width:100%}.rcb-media-display-audio{border-radius:22px;height:auto;margin-right:16px;margin-top:8px;width:100%}.rcb-media-entry{animation:rcb-animation-user-message-entry .3s ease-in backwards}.rcb-attach-button-disabled,.rcb-attach-button-enabled{background-size:cover;border-radius:6px;display:inline-block;height:30px;position:relative;text-align:center;width:30px}.rcb-attach-button-disabled input[type=file],.rcb-attach-button-enabled input[type=file]{display:none;height:100%;position:absolute;width:100%}.rcb-attach-button-enabled{cursor:pointer}.rcb-attach-button-disabled{opacity:.5}.rcb-attach-button-enabled:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-attach-button-enabled:hover:after{height:130%;opacity:1;width:130%}.rcb-attach-icon-disabled,.rcb-attach-icon-enabled{background-repeat:no-repeat;background-size:cover;display:inline-block;height:24px;margin-top:2px;transition:background-image .3s ease;width:24px}.rcb-attach-icon-enabled{cursor:pointer}.rcb-emoji-button-disabled,.rcb-emoji-button-enabled{background-size:cover;border-radius:6px;cursor:pointer;display:inline-block;height:30px;position:relative;text-align:center;width:30px}.rcb-emoji-icon-disabled,.rcb-emoji-icon-enabled{background-repeat:no-repeat;background-size:cover;display:inline-block;font-size:20px;height:24px;margin-top:2px;position:relative;width:24px}.rcb-emoji-icon-enabled{cursor:pointer}.rcb-emoji-icon-disabled{opacity:.5}.rcb-emoji-button-enabled:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-emoji-button-enabled:hover:after{height:130%;opacity:1;width:130%}.rcb-emoji-button-popup{background-color:#fff;border:1px solid #ccc;border-radius:4px;box-shadow:0 2px 4px #0003;max-height:200px;overflow-y:auto;padding:8px;position:absolute;transform:translateY(calc(-100% - 30px));width:158px}.rcb-emoji{cursor:pointer;font-size:24px;padding:3px;transition:transform .2s ease-in-out}.rcb-emoji:hover{transform:scale(1.2)}.rcb-audio-icon{background-size:cover;border:none;cursor:pointer;display:inline-block;height:30px;margin-left:5px;position:relative;width:30px}.rcb-audio-icon:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-audio-icon:hover:after{height:130%;opacity:1;width:130%}.rcb-close-chat-icon{background-size:cover;border:none;cursor:pointer;display:inline-block;height:30px;margin-left:5px;position:relative;width:30px}.rcb-close-chat-icon:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-close-chat-icon:hover:after{height:130%;opacity:1;width:130%}.rcb-notification-icon{background-size:cover;border:none;cursor:pointer;display:inline-block;height:30px;margin-left:5px;position:relative;width:30px}.rcb-notification-icon:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-notification-icon:hover:after{height:130%;opacity:1;width:130%}.rcb-voice-button-disabled,.rcb-voice-button-enabled{align-items:center;background-color:#fff;border-radius:4px;box-shadow:0 0 3px #0000004d;cursor:pointer;display:inline-flex;height:32px;justify-content:center;margin-left:8px;text-transform:uppercase;transition:all .3s ease;width:32px}.rcb-voice-button-enabled{border:1px solid red;box-shadow:0 0 3px #ff000080}.rcb-voice-button-enabled:hover{border:1px solid #3d0000}.rcb-voice-button-disabled{border:1px;border-color:#0003;border-style:solid}.rcb-voice-button-disabled:hover{box-shadow:0 0 3px #8a0000}.rcb-voice-icon{background-position:50%;background-repeat:no-repeat;background-size:cover;background-size:contain;height:60%;object-fit:cover;width:60%}.rcb-voice-icon.on{animation:rcb-animation-ping 1s infinite}.rcb-send-button{border:none;border-radius:4px;box-shadow:0 0 3px #0000004d;cursor:pointer;display:inline-flex;height:32px;justify-content:center;margin-left:8px;text-transform:uppercase;transition:background-color .3s ease;width:51px}.rcb-send-icon{background-position:50%;background-repeat:no-repeat;background-size:cover;background-size:contain;height:50%;object-fit:cover;transform:translateY(20%);width:50%}.rcb-view-history-container{align-items:center;display:flex;justify-content:center;max-height:45px;min-height:35px;padding-bottom:5px;padding-top:10px}.rcb-view-history-button{align-items:center;background-color:#fff;border:.5px solid #adadad;border-radius:20px;color:#adadad;cursor:pointer;display:inline-flex;font-size:12px;justify-content:center;max-width:60%;padding:6px 12px;transition:color .3s ease,border-color .3s ease}.rcb-view-history-button>p{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rcb-chatbot-global{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.5;z-index:9999}.rcb-chat-window{background-color:#fff;border-radius:10px;bottom:20px;box-shadow:0 2px 4px #0003;display:flex;flex-direction:column;height:550px;overflow:hidden;position:fixed;right:20px;transition:all .3s ease;width:375px}.rcb-window-embedded .rcb-chat-window{bottom:auto;opacity:1;position:relative;right:auto;visibility:visible}.rcb-window-open .rcb-chat-window{animation:rcb-animation-expand .3s ease-in-out forwards;opacity:1;visibility:visible}.rcb-window-close .rcb-chat-window{animation:rcb-animation-collapse .3s ease-in-out forwards;opacity:0;visibility:hidden}@keyframes rcb-animation-expand{0%{opacity:0;transform:translate(100%,100%) scale(0)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes rcb-animation-collapse{0%{opacity:1;transform:translate(0) scale(1)}to{opacity:0;transform:translate(100%,100%) scale(0)}}@keyframes rcb-animation-ping{0%{filter:brightness(100%);opacity:1}50%{filter:brightness(50%);opacity:.8}}@keyframes rcb-animation-bot-message-entry{0%{opacity:0;transform:translate(-100%,50%) scale(0)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes rcb-animation-user-message-entry{0%{opacity:0;transform:translate(100%,50%) scale(0)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes rcb-animation-bot-typing{0%{opacity:.4}50%{opacity:1}to{opacity:.4}}@keyframes rcb-animation-pop-in{0%{opacity:0;transform:scale(.8)}70%{opacity:1;transform:scale(1.1)}to{transform:scale(1)}}@keyframes rcb-animations-checkboxes-entry{0%{opacity:0;transform:translate(-100%)}to{opacity:1;transform:translate(0)}}@keyframes rcb-animation-options-entry{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes rcb-animation-tooltip-in{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}@keyframes rcb-animation-tooltip-out{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-5px)}}@keyframes rcb-animation-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}',{insertAt:"top"});const dt={AUDIO_BUTTON:"audio-button",NOTIFICATION_BUTTON:"notification-button",CLOSE_CHAT_BUTTON:"close-chat-button",SEND_MESSAGE_BUTTON:"send-button",VOICE_MESSAGE_BUTTON:"voice-button",FILE_ATTACHMENT_BUTTON:"file-attachment-button",EMOJI_PICKER_BUTTON:"emoji-button"},ju="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20viewBox='0%200%201000%201000'%3e%3crect%20width='100%25'%20height='100%25'%20fill='%23fff'/%3e%3cg%3e%3crect%20width='45'%20height='30'%20x='-22.5'%20y='-15'%20rx='1.5'%20ry='1.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2337547a;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20-99%20362)%20scale(3.4003)'/%3e%3cpath%20d='M0%2075q14%200%2014%2017%200%2016-14%2016Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='rotate(180%20106%20386)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='4'%20x='-12.5'%20y='-2'%20rx='.2'%20ry='.2'%20style='stroke:%2346648c;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20-46%20282)%20scale(3.4003)'/%3e%3cpath%20d='M19%2065h4l5%204v1H14v-1Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='2'%20x='-12.5'%20y='-1'%20rx='.1'%20ry='.1'%20style='stroke:%2398b0ca;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20-3%20240)%20scale(3.4003)'/%3e%3ccircle%20r='7.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(236%20175)%20scale(3.4003)'/%3e%3crect%20width='45'%20height='30'%20x='-22.5'%20y='-15'%20rx='1.5'%20ry='1.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2337547a;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20139%20600)%20scale(3.4003)'/%3e%3cpath%20d='M184%2075q14%200%2014%2017%200%2016-14%2016Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='4'%20x='-12.5'%20y='-2'%20rx='.2'%20ry='.2'%20style='stroke:%2346648c;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20219%20548)%20scale(3.4003)'/%3e%3cpath%20d='M175%2065h4l5%204v1h-14v-1Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='2'%20x='-12.5'%20y='-1'%20rx='.1'%20ry='.1'%20style='stroke:%2398b0ca;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20262%20505)%20scale(3.4003)'/%3e%3ccircle%20r='7.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(767%20175)%20scale(3.4003)'/%3e%3crect%20width='116.7'%20height='70'%20x='-58.4'%20y='-35'%20rx='31.5'%20ry='31.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2371c9fc;fill-rule:nonzero;opacity:1'%20transform='translate(502%20877)%20scale(3.4003)'/%3e%3crect%20width='60'%20height='20'%20x='-30'%20y='-10'%20rx='3'%20ry='3'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2337547a;fill-rule:nonzero;opacity:1'%20transform='translate(502%20728)%20scale(3.4003)'/%3e%3ccircle%20r='75'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2371c9fc;fill-rule:nonzero;opacity:1'%20transform='translate(502%20473)%20scale(3.4003)'/%3e%3crect%20width='129.4'%20height='82.3'%20x='-64.7'%20y='-41.1'%20rx='37'%20ry='37'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23fff;fill-rule:nonzero;opacity:1'%20transform='translate(502%20464)%20scale(3.4003)'/%3e%3crect%20width='108'%20height='68.6'%20x='-54'%20y='-34.3'%20rx='30.9'%20ry='30.9'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23162334;fill-rule:nonzero;opacity:1'%20transform='translate(502%20464)%20scale(3.4003)'/%3e%3ccircle%20r='19.4'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(415%20464)%20scale(3.4003)'/%3e%3ccircle%20r='19.4'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(591%20464)%20scale(3.4003)'/%3e%3crect%20width='96'%20height='53.2'%20x='-48'%20y='-26.6'%20rx='23.9'%20ry='23.9'%20style='stroke:%23162334;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23162334;fill-rule:nonzero;opacity:1'%20transform='translate(503%20875)%20scale(3.4003)'/%3e%3cpath%20stroke-linecap='round'%20d='m68%20215%207-15M81%20222l-7-22M81%20222l7-14M101%20208H87M114%20219l-7-24M113%20219l13-22M131%20214l-5-17M148%20214h-18M69%20214H51M100%20209l7-15'%20style='stroke:%23a478fc;stroke-width:3;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:10;is-custom-font:none;font-file-url:none;fill:none;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3c/g%3e%3c/svg%3e",Wu=R.forwardRef((e,n)=>lt.createElement("svg",{viewBox:"0 0 637 637",ref:n,...e},lt.createElement("path",{d:"m478 113-13 2-4 1h4l14-2c10-2 35-2 42-1l6 3 3 1c3 0-4-3-8-5-7-1-34-1-44 1m56 6 8 6c7 5 20 17 20 19s7 12 8 12l-3-6-4-6c0-3-15-17-25-24-5-3-8-4-4-1m-198 16-9 1a512 512 0 0 1 9-1m-180 30a412 412 0 0 0-23 4 167 167 0 0 0-32 8 439 439 0 0 1 46-9 304 304 0 0 1 11-2l6-1h-8m369 8 4 3-7-6c-1 0 0 2 3 3m-439 9c-7 3-18 13-18 15l6-5c5-5 9-8 14-10l6-4-8 4m442 12-10 11-7 6 7-6c7-5 14-14 13-16l-3 5M65 205l-1 11c0 9 0 10 4 17 5 10 7 12 22 11 10 0 15 0 38-5l5-1-6 1-16 2-21 2c-13 1-16-1-21-10-3-5-4-6-4-15l1-12c1-4 1-5-1-1m335 1c3 0 3 1 3 3l-2 6c-2 5-35 39-76 80-53 51-120 117-138 137-21 24-22 25-22 27 0 3 6 9 9 9 4 0 14-8 38-27a5073 5073 0 0 1 15-16 1421 1421 0 0 0-17 15l-31 25-6 2-4-3c-3-3-3-4-2-6 3-8 79-85 160-163 57-57 79-80 79-86 0-2-3-4-7-4-2 0-2 0 1 1m165 18c-9 17-25 32-57 53l-10 8 16-11 12-8c15-10 27-22 39-39 5-7 6-8 4-8l-4 5m-221 2a199 199 0 0 0-19 10 183 183 0 0 1 27-12c0-1-1-1-8 2m-34 16c-3 3-2 3 2 0l1-2-3 2m151 3-1 2 2-2c3-3 2-3-1 0m-16 12-11 10a281 281 0 0 0 11-10m-24 18-7 5-7 5-42 31c-10 7-24 19-22 19l7-6 16-12a343 343 0 0 0 35-25 573 573 0 0 0 20-17m-187 0-2 2 4-2 3-2-5 2m-14 6-3 2 4-1 4-3-5 2m-7 3-8 4-18 8 18-7 7-3 3-1c1-2 0-2-2-1m254 24a2672 2672 0 0 1-71 54 601 601 0 0 0 39-29 1352 1352 0 0 1 32-25m-291-8-2 2 4-2 3-2-5 2m-13 5-2 2h3c5-3 4-4-1-2m-19 9-7 3-13 6c-10 5-13 7-14 10-3 4-2 5 1 0 2-3 5-5 14-9l13-6 12-6-6 2m178 36c-17 12-21 16-21 17a390 390 0 0 1 20-17m-206 34 1 4 1 3 1 5 2 8 1 5v-6l-1-8-2-5-1-4-1-2c-1-2-1-2-1 0m222 23-9 7a683 683 0 0 0-56 44 261 261 0 0 0-26 20 1345 1345 0 0 0-46 34c-6 3-7 3-19 3-11 0-12 0-18-3-8-4-10-8-17-20l-5-10 4 10c5 10 12 18 19 22 4 2 6 2 17 2 13 0 14 0 21-3l26-19 42-33a2183 2183 0 0 0 43-34 643 643 0 0 1 24-20",fill:"#fff",fillRule:"evenodd"}),lt.createElement("path",{d:"M478 114a620 620 0 0 1-39 6l-21 3a5481 5481 0 0 0-19 3 870 870 0 0 1-54 8l-1 1-6 1-12 2-13 2a992 992 0 0 0-76 12 400 400 0 0 1-45 8l-6 1-5 1h-3l-3 1-2 1-26 4-13 2-17 3c-23 5-33 9-43 19-7 8-9 13-9 27 0 8 1 9 4 14 5 9 8 11 21 10l21-2a1133 1133 0 0 1 23-4 659 659 0 0 0 74-14l3-1h3l3-1h3l2-1 2-1h3l2-1h2l24-5 38-7a2100 2100 0 0 1 93-18l3-1 10-1a2082 2082 0 0 1 120-17l2 1c2 0 8 5 8 7l1 2 1 6c0 4 0 6-3 10-2 4-16 16-18 16l-7 5-10 8a1070 1070 0 0 0-11 7 113 113 0 0 1-20 14l-2 2-3 2-2 2h-1a154 154 0 0 1-28 21l-5 4-5 4a573 573 0 0 1-50 37 175 175 0 0 0-24 18l-1 2-2 1-2 1-2 1-1 1-12 10a396 396 0 0 0-32 25l-8 6-6 5-9 7a326 326 0 0 1-25 20l-13 12a5073 5073 0 0 0-17 15c-24 20-34 27-39 27-2 0-8-6-8-9 0-2 1-3 22-27 18-20 85-86 138-137 41-41 74-75 76-80l2-6c0-2 0-3-2-3l-7 1a233 233 0 0 1-26 9l-1 1-1 1h-1l-1 1h-2l-3 2-1 1h-2l-3 2h-1l-5 2-22 10-9 4-4 2-5 2-10 4-2 1-2 1-2 1-13 6a334 334 0 0 1-38 17 75 75 0 0 0-14 6l-5 2-4 1-2 1-3 2-7 3-16 6a247 247 0 0 0-32 14l-1 1h-2l-1 1h-2l-1 1-12 6a103 103 0 0 0-27 15l-2 5-1 1v11l1 5 1 5 1 4c0 3 0 4 2 4v3l1 3 1 2 2 10 1 4 1 5 2 10 2 8 1 4 1 4c3 3 9 25 11 38l1 7v2l1 4v1l1 1v2l1 2 1 3v1l5 10c7 13 9 16 17 20 6 3 7 3 18 3 12 0 13 0 19-3 8-4 11-6 26-18a1345 1345 0 0 1 85-67 683 683 0 0 1 50-39l12-9a513 513 0 0 1 44-33 201 201 0 0 0 22-17 2270 2270 0 0 0 73-54 158 158 0 0 0 58-59c2 0 3-9 4-27l-1-19-1-4-1-6-1-3-4-6-4-6c0-2-6-8-13-14a77 77 0 0 0-28-18c-6-1-34-1-43 1"}))),Yu=R.forwardRef((e,n)=>lt.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},lt.createElement("path",{d:"M765-321q0 117-84 196-83 80-200 80-118 0-200-80t-83-196v-392q0-85 61-144 61-58 146-58 86 0 147 58 61 59 61 144v374q0 54-39 92-39 37-93 37-55 0-93-37-38-38-38-92v-372h110v372q0 9 6 14t15 5q8 0 15-5t7-14v-374q0-39-29-66t-68-27q-40 0-69 27t-29 66v392q0 71 51 119t122 48q71 0 122-48t51-119v-426h111v426Z"}))),lf=R.forwardRef((e,n)=>lt.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},lt.createElement("path",{d:"M125-165v-113h77v-273q0-93 55-167 56-75 146-100v-19q0-32 22-55 23-23 55-23t55 23q22 23 22 55v19q90 25 146 99 56 73 56 168v273h77v113H125ZM480-32q-38 0-66-27-27-27-27-66h186q0 39-27 66t-66 27Z"}))),cf=R.forwardRef((e,n)=>lt.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},lt.createElement("path",{d:"M137-190v-113h78v-253q0-41 11-79 11-39 35-71l-9 150h10L17-802l74-74L873-92l-74 74-175-172H137Zm609-149L319-769q20-15 41-25t44-16v-28q0-32 22-54t54-22q32 0 55 22t22 54v28q85 23 137 94t52 160v217ZM481-47q-38 0-65-27t-27-65h184q0 38-27 65t-65 27Z"}))),uf=R.forwardRef((e,n)=>lt.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",ref:n,...e},lt.createElement("g",{strokeLinecap:"round",strokeWidth:10},lt.createElement("path",{d:"m19 19 61 61M80 19 19 80"})))),Af=R.forwardRef((e,n)=>lt.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},lt.createElement("path",{d:"M94-136v-255l351-93-351-92v-253l816 346L94-136Z"}))),df=R.forwardRef((e,n)=>lt.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},lt.createElement("path",{d:"M480-372q-61 0-105-43-43-43-43-105v-240q0-61 43-105 43-43 105-43 61 0 105 43 43 44 43 105v240q0 62-43 105t-105 43ZM425-76v-122q-121-16-197-108t-76-214h109q0 91 64 154t155 63q91 0 155-63t64-154h109q0 122-77 214T534-198v122H425Z"}))),ff=R.forwardRef((e,n)=>lt.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},lt.createElement("path",{d:"m763-343-80-79q8-20 13-44 5-23 5-54h109q0 49-11 95t-36 82ZM625-482 336-770v-2q3-56 45-96t101-40q62 0 105 43t43 105v249l-1 17q-1 7-4 12ZM427-76v-122q-120-16-196-108-77-92-77-214h109q0 91 64 154t155 63q43 0 80-14 37-15 67-41l78 79q-35 32-78 53t-93 28v122H427Zm362 27L41-796l75-75 748 748-75 74Z"}))),Gu=R.forwardRef((e,n)=>lt.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},lt.createElement("path",{d:"M625-511q29 0 50-21t20-50q0-29-20-50-21-20-50-20t-50 20-20 50q0 29 20 50 21 21 50 21Zm-290 0q29 0 50-21t20-49q0-30-20-50t-50-21q-29 0-50 20-20 21-20 50 0 30 20 50 21 21 50 21Zm145 268q75 0 137-43t85-115H258q24 72 85 115 62 43 137 43Zm0 198q-90 0-170-34-79-34-138-93T79-310q-34-80-34-170t34-170q34-79 93-138t138-93q80-34 170-34t170 34q79 34 138 93t93 138q34 80 34 170t-34 170q-34 79-93 138T650-79q-80 34-170 34Zm0-435Zm0 322q134 0 228-94t94-228q0-134-94-228t-228-94q-134 0-228 94t-94 228q0 134 94 228t228 94Z"}))),pf=R.forwardRef((e,n)=>lt.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},lt.createElement("path",{d:"M553-64v-108q107-27 173-113 67-87 67-197 0-109-67-195T553-789v-108q152 26 249 144 97 117 97 271 0 155-97 273T553-64ZM61-335v-290h176l236-237v764L237-335H61Zm492 28v-346q51 23 82 70t31 103-31 103q-31 47-82 70Z"}))),hf=R.forwardRef((e,n)=>lt.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},lt.createElement("path",{d:"M807-15 700-123q-33 21-71 37-38 15-80 22v-108q20-4 38-12l35-17-153-154v257L234-335H57v-290h144L10-818l74-75L882-90l-75 75Zm37-264-80-79q13-30 19-60 7-31 7-64 0-109-68-195-67-86-173-112v-108q152 26 249 144 98 117 98 271 0 55-14 107-13 51-38 96ZM661-462 549-575v-78q51 23 83 70 31 47 31 103l-1 9-1 9ZM469-655 366-759l103-103v207Z"}))),Vu={general:{primaryColor:"#42b0c5",secondaryColor:"#491d8d",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",showHeader:!0,showFooter:!0,showInputRow:!0,actionDisabledIcon:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2042%2042'%3e%3cpath%20style='fill:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke:%23b00000;stroke-opacity:1;stroke-miterlimit:4'%20d='M17%209a8%208%200%200%201-8%208%208%208%200%200%201-8-8%208%208%200%200%201%208-8%208%208%200%200%201%208%208Zm0%200'%20transform='rotate(.086)%20scale(1.77778)'/%3e%3cpath%20style='fill:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke:%23b00000;stroke-opacity:1;stroke-miterlimit:10'%20d='M14.66%2014.66%203.34%203.34'%20transform='rotate(.086)%20scale(1.77778)'/%3e%3c/svg%3e",embedded:!1,flowStartTrigger:"ON_LOAD"},tooltip:{mode:"CLOSE",text:"Talk to me! 😊"},chatButton:{icon:Wu},header:{title:N.jsx("div",{style:{cursor:"pointer",margin:0,fontSize:20,fontWeight:"bold"},onClick:()=>window.open("https://github.com/tjtanjin/"),children:"Tan Jin"}),showAvatar:!0,avatar:ju,buttons:[dt.NOTIFICATION_BUTTON,dt.AUDIO_BUTTON,dt.CLOSE_CHAT_BUTTON],closeChatIcon:uf},notification:{disabled:!1,defaultToggledOn:!0,volume:.2,icon:lf,iconDisabled:cf,sound:"data:audio/wav;base64,UklGRmaIAABXQVZFZm10IBAAAAABAAIAQB8AAAB9AAAEABAATElTVBoAAABJTkZPSVNGVA4AAABMYXZmNjAuMTYuMTAwAGRhdGEgiAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////AAAAAAAA//////7/////////AAABAAAAAgABAAEAAQAAAAIAAQABAP//AAD+////AAD+//7////+////AAD//wAA/v8AAAAA/v8AAP//AAAAAAAAAgD////////+////AAABAAEAAgD/////AQABAAAA//8CAP//AAAAAAAA/v8AAAAA//8AAAEA//8EAAAAAAAAAAAA//8BAP//AQABAAEA/////wEA/v///wAAAAACAAAAAAABAAAA//8AAP//AAACAP//////////AAAAAAEAAAAAAAEA//8AAAEAAQADAAIAAgAAAAAA/v///wEAAAAAAAEAAAAAAAEA//8AAAEAAQD//wAA//8AAAEAAAABAAEAAAABAP//AAD//wAAAgAAAP//AQD/////AAAAAP7/AgAAAAIAAAAAAAAAAAABAAAAAQABAP//AAABAP///v8AAP////8AAP//AAD//wAA//8BAP//AAD///7///8BAP7///8AAAIAAgABAAEA/v8AAP//AQADAAEAAAACAAEA/////////v///wEA/v////7/AAD+////AAAAAAAAAgAAAAAAAAD//wEAAAAAAAAAAQABAAIA/v8AAAAA//8AAAEAAAAAAP//AgD//wEA/////wAAAQACAAAAAAAAAP//AQD/////AQAAAAEA/v8AAAEAAQABAAEA///+////AQD//wEAAgD+//7/AAAAAAAAAQAAAAAAAQAAAAAAAAAAAP//AAD//wEAAQD//wAAAQABAP7///8AAP7/AAABAP7/AQABAAEAAAABAAEAAAD+/wIAAAABAAAAAQD/////AQACAP////8AAP//AQD//wEA/v8CAAEAAAAAAAAAAQAAAAIAAQAAAAEAAgD//wEAAAAAAP7///8BAP//AgAAAP///v8CAAAAAgD///////////7/AAACAAEAAgD//wAAAAABAP//AwAAAAMA//8AAAAAAQD+/wAAAAD//wAAAQD//wEA//8BAP7/AAABAAAA//8BAAAA//8AAP//AQADAP3////+////AgD+/////v8BAAEAAQACAAAAAAAAAAAA//8AAP//AAD+/wEA/v8AAP7/AAD//wAAAQACAAAAAQAAAP//AQAAAAAAAAABAAAAAAD+//////8AAAAAAAD//wAAAAABAAEA//8AAAEA//8AAP//AgD+/wAA///+/wAA/v///wAAAQABAAAAAQD//wAA//8AAAEA//8BAAAAAgABAP//AAACAAIAAQABAP//AAAAAAAA//8BAAIAAAABAAAA//8CAAEA/v//////AAAAAAEA////////AQAAAP//AAD//wAAAAAAAP3/AAAAAAEAAAACAAAAAAAAAP//AAD//wAAAAAAAAAAAAAAAP///v///wAAAAABAAAAAAD//wEAAAABAAEAAQD//wAAAAACAAAAAQD+/wAA//8BAAEAAAD+/wAA/////wAAAAABAAAAAAD//////v8AAAAA//8AAAAAAAAAAAIAAAABAAEAAAABAP7/AAD9//////////7///8BAP//AAD///3/AQABAP//AAD//wAAAAABAAAA//8AAP//AAD/////AQABAAEA//8AAAAA//8BAAMA//8AAAAA//8AAP7/AAD//wAAAAAAAP7/AQAAAAAA/v8CAP//AAABAAIAAQABAAAA//8BAAEAAQD///7/AQD//wAAAQABAP//AAD//wEAAAAAAAAAAQAAAAIA//8AAP////8AAP//AQD//////v///wEA/v8AAAIAAgACAAEAAAAAAAEAAAAAAAAAAAAAAAAAAQD//wAA/////wAAAQACAP////8AAAAAAAD//wAAAQD+/wEA//8AAAEAAwD//wEAAQAAAAAAAAABAP////8AAAAAAQAAAAAAAAAAAAEAAQAAAP////////7/AQABAAEAAQD///////8BAAAA//8AAAAAAgABAAEA/v8BAP7///8BAP3/AQABAAIAAAD//wEAAAAAAP//AAABAAIA//8CAAAAAQAAAAEA//8BAAAA/////wAAAAD//wEAAQD//wAAAAAAAP//AAAAAAAAAQABAAAAAQAAAP//AQD//////v8AAAEAAAAAAAAA//8AAAAAAAACAAEAAQAAAP//AAABAAEA/////wAAAgABAAAAAAAAAAEAAAABAP//AQABAP7////+/wEAAAAAAP//AAABAAAAAAABAAEAAAAAAAAA//8BAP///f/+/wEAAQD///7///8AAAAAAQAAAP////8AAAAAAAABAAAAAQD/////AAD//wEA//8AAAIA//8CAAAA//8AAAAAAAD+/wEAAAD+/wAA/////wAA////////AAAAAAAA//8BAAAAAAD//wAAAAD//wEA//8AAP//AQD+/wAAAAAAAP7/AAD+/wEAAQABAP//AAABAAEAAQD//wAA/////wEA//8AAAAAAgAAAAAA//8BAAAAAgAAAAAAAAAAAP7/AQD//wAAAAD+/wAAAAADAAIA/////wAAAQD//wIA//8BAAEA/v8AAAIAAAAAAP3///8AAAAAAAAAAAAAAAABAP///////wAA//8AAAEAAQABAAEAAQABAAAAAQAAAAAAAQABAP7/AQD//wAAAQABAAEA//8BAAAAAgAAAAEAAAABAP//AAD/////AAD//wIA/////wIAAAD///7/AAAAAAAAAAACAP//AAABAP////8AAAAAAAABAAAAAgAAAAAAAQD+/wEA/////wAA/////wAAAAAAAAAA/v//////AAAAAP//AAABAAAAAQAAAAIAAAACAAAA//8AAAAA//8AAP7/AAAAAP//AAACAP//AQABAP//AQABAAAA/////////v8AAP//AQAAAAAA///+/wAAAQD+/wEAAQAAAAEA/////wAAAQD//wAA//8AAAAA/v8BAAEA//8AAP7//v8BAAAAAAAAAAEA//8AAAEA/////wAAAAD//////////wEAAAABAAEA//8CAAEA/f8AAAAA//8BAAAABAABAAEAAQAAAAAAAAAAAP7///8AAAAA/v8BAAAA//8AAAIA//8AAP////8BAP//AAAAAAAAAAD/////AQD///7/////////AQD8////AgABAAIA////////AAD//wAAAAABAAAAAAAAAAEAAgAAAP//AQD//wAAAAAAAP/////+/wAAAAABAAAAAwABAP///////wEAAAADAP//AQACAAAA//8CAAEAAAAAAP///////wIAAAAAAAAAAQAAAAAAAgD//wEAAAABAAAA/v8AAAAAAAAAAAAAAAAAAAEA/v8AAP//AQD//wAA//////7///8AAAAAAAAAAP7/AQD//wAA//8AAAEAAAABAAEAAQD/////AAD//wEAAAD/////AQAAAAEAAAD//wEAAAD/////AgD//wAAAQD//////////wAAAAD//wAAAAABAAAAAAD//wAAAQD///7/AQD//wEAAAD/////AAD//wEA//8AAAEA//8CAAAAAQD//wEAAgAAAAEAAwAAAAAA/v8BAAEAAgD//wEAAAAAAAAAAAD//wEA//8AAAAAAQACAP///////wAAAQABAAEAAAAAAAEAAQD+/wEA/f////////8AAAAA//8AAAEA//8BAAAA/v///wEAAAAAAAEA/////wAAAAAAAP//AAAAAAIAAAABAAAA/////wAAAAD//wAA/v8AAAMAAQD+/wEAAAABAAEA//8BAP//AgAAAAAAAAD//wAA/////wEA/v8CAP3/AAACAP3/AQABAAAAAQACAAEA/v8AAAAA//8BAAAAAgAAAAAAAgACAAEA/v/9/wAAAQABAP7///8AAP//AgD+/////v8CAP////8BAP//AQACAAEAAQABAP//AAD///7/AAABAAEAAgD//wEA//8CAAEAAQABAAEAAAABAAAA/v8AAAEA/v8AAP//AAABAP//AQAAAAEAAgAAAAAA/v///wEAAQAAAAIAAAD/////AgAAAAEA/v8AAP7/AQAAAAAAAQAAAAEAAAACAAEA//8BAP////8AAAIAAAAAAP//AAAAAAIAAAAAAAAAAwABAP///v8BAAAAAAAAAP3/AAABAAEA/v////////////3//v8AAAAAAQABAAIAAAD+/////v8AAAAAAQABAAEAAQAAAP//AAAAAP//AQAAAP//AAABAAAAAAAAAAAA////////AAAAAP//AQD/////AAABAAEA//8CAP7///8AAP7//v8BAAEAAAD+/////////wEAAAAAAAAAAgD//wAAAQAAAP7/AQABAP//AQAAAAAAAAD/////AAACAP////8BAAAAAAD//wAA//8AAAEAAQABAAAAAAABAAAAAQD+/wEA/v8AAAEAAQD/////AAD//wAAAQABAP7//v//////AAACAAAAAAAAAAAAAAACAAAAAQAAAAAA//8BAP//AQD//wAA///+/wIAAQD//wAAAAD//wAA/v8AAP3///8AAAAAAAAAAAAA/f8AAAAA//8CAP7/AAD///7/AAAAAAAAAAD//wEAAAAAAAEAAAAAAAAA//8BAP////8BAP7///8CAAEA//8BAP3///////////8BAAAAAAAAAAEAAgD+//////8BAAMAAQADAAEAAAACAAAAAQD/////AAABAAMAAQAAAP//AQD//wAA//8AAAAA//8CAP7//////wAAAAAAAAIA/v8AAP//AAACAP//AwD//wAA//8AAP//AwD//wEAAQABAAEAAQACAAEAAAD//wAA//8AAAIAAAAAAP///////wAAAQD//wIA//8BAP7/AAD///////8AAAAAAAAAAAEAAAD//wAAAQD//wEA//8BAAAAAAD/////AgABAAIAAAABAAAAAAAAAP//AAAAAAAA//8AAAAAAAD/////AQAAAAAAAQD//wAA///+////AAAAAAEAAgABAAEAAAAAAP//AQAAAAAAAQD+/wAAAAABAAEAAAD/////AQABAP7///8AAAIAAAACAAAA//8AAP//AgACAAAA///+/wAAAAABAAAAAQAAAAEA/v8BAAEA//8CAP//AQD+/////v8AAAAAAAACAP//AAD+/wIA/v8BAAAAAAD/////AAAAAP7///8AAP7//////wEAAAABAAAAAAD//wAAAAAAAAAAAgACAAAAAAABAAAA/f8AAP7/AgAAAAEA//8BAAAAAAD///7/AQD//wAAAAAAAAEAAAAAAAEAAAAAAAAAAQAAAAAA//8AAAAAAAABAP///////wAAAgABAAEA//8AAP//AAACAP//AQABAAEA//8BAAAAAAABAAAA//8AAAEAAAAAAAIA/v8BAP//AQD//wEAAAABAAEAAQACAAEAAAAAAAEAAAABAAAAAAD/////AAABAAEA//8AAAAAAQABAP//AAAAAP//AAD/////AQD//wAAAAABAAEA//8BAAAA//8AAP///f/+/wAA/////wAAAQAAAAIAAAAAAAAAAAD+/wEA/f8CAAAA//8AAAEAAgAAAAMAAAABAAAAAAAAAP//AQAAAAAAAQABAAAAAQAAAP//AAAAAAAA//8AAAAAAAABAAAAAQAAAAAAAAABAAIAAAAAAP7/AQD//wAAAAD+////AAAAAAAAAAABAAAA/////wAA//8AAAAAAAD/////AgD//wAA//8CAP//AQACAAEA/f////////8BAAIAAQABAP//AAD//wAA///+////AAD+/wAAAQD/////AAAAAAAA/////wAAAAABAAAAAQAAAAAA//8AAAIAAAABAP//AQABAAEA//8AAAAAAAADAAEAAAABAP//AgD//wMA//8AAAAAAAD//wAAAAD9/wEA///+/wAA//8BAAEA//8BAAAA//8AAP///v8BAP///////////v8BAAAAAQABAAAAAAAAAAAA//8AAP7/AQAAAAAAAAAAAP7/AQAAAAAAAgABAAEAAAABAAEAAAAAAAAAAAD+/wAAAAD//wEAAAAAAAAAAAAAAP//AgABAAAAAAABAAEAAAD/////AAAAAP//AAABAP////8BAAAAAQABAP7//v/+////AQAAAAAAAQAAAAEAAgAAAAAAAQAAAAEAAAD+/////v8BAP//AAABAP//AQABAAAAAAD//wAA//8CAP//AAAAAAEAAAABAAAAAAAAAP//AAD+////AwAAAAAAAQD//wEAAAACAAEAAAADAAAAAAD/////AAAAAAEAAAABAAAA//8AAAEA//8BAP///v8AAP//AAD//wAAAQABAP//AQAAAAAA/////wEAAQAAAP////8AAAEA//8BAAAAAQAAAP////8AAAAAAQAAAAIAAQAAAAEAAAAAAAEAAAD//wEAAAAAAP////8AAAAA//8BAAEAAAAAAAIA///+/wIA/v8BAAAAAQACAAAAAQAAAP7///8AAP//AAAAAAEAAAAAAP7/AAD+////AAAAAAAAAAD//wAA/v8BAAMAAAABAAIAAgD//wAA//8BAAEA//8BAP7/AAAAAP7///8BAAAAAQAAAP7/AQD/////AAAAAAEAAAABAP//AQABAAAAAgABAAAAAAAAAP///////wEA//8AAAEA//8AAAAAAQAAAAIAAAABAP7//////wAAAQABAAAAAAABAAEA///+/wAA//8BAP///v8AAP///v8BAAAA//8CAAAAAQAAAAEAAQABAAAAAAD+/wAAAAD+/wAAAAAAAAAA/f////////8AAAAAAQABAP///////wEA//8BAAEAAAAAAAAA/////wEA/v//////AAAAAP//AAABAAAAAAD+/wAAAAD9////AQAAAAEAAwD//wEAAQAAAP//AgAAAAAAAAD+/wIAAAAAAAAAAAAAAAIA//8AAAEAAQACAAAAAQD//wAAAAD//wIAAQABAAAAAAD//wEA//8BAAEAAQAAAAAAAQABAP7/AAD//wEAAAACAP7/AQAAAAAAAAD//wIAAQACAAIAAQAAAAAAAAAAAP3///8BAAAAAQACAP//AgD9/wAAAAD//wEA/v////////8AAAAAAAD//wEAAQD//wMAAQAAAAEA//8AAAEA//8AAAAAAAACAAAAAAD//wAAAQD///////8AAAAA//8BAAIA/v8BAAEA/f8AAAAAAAAAAAAAAgD/////AAD+/wAAAAD//wAAAAAAAP//////////AgABAP///v8AAAIAAQAAAP//AAABAAAA/////wAAAAAAAAEAAAABAP///v///wIA//8BAAEAAQAAAAAA///+/wEAAAAAAAAA/////////v8BAP3/AAAAAAAAAAAAAAAA//8AAP//AAAAAP//AAABAAIAAAACAP////8DAAAAAAABAAAAAwABAP//AAABAP//AAAAAP////8BAAAAAgD//wAA///+/wAAAQD//wAA//8AAP7///8AAAAA/v8AAAAAAQD//wEA/v////////8AAAAAAQAAAP//AQACAAAAAAAAAP//AAD//wAAAAD//wAAAAD+/wAAAAAAAP//AQD//wAAAgAAAAAAAQABAAAAAwD+/wAAAAD///7/AQD//wIAAQAAAP//AAD//wAA//8CAAEAAAAAAAAA/////wAAAAD//wEAAQD///////8BAAAA//8BAAEAAAAAAAAA/v///wEAAAAAAAAAAAADAAAAAAAAAAAAAQABAAEAAAD+//7//v8AAP//AQAAAAAAAAABAAEAAgAAAAAAAQD//wAA/f8AAAAAAAABAAAAAQAAAAAAAAAAAAIA//8BAP///////wIA/////wAAAAABAAEA//8BAAAAAAD//wAAAQD//wEAAAAAAAIA/v8BAP//AAAAAAEAAAABAP//AAAAAAAAAQABAP7/AAABAAAAAQD//wIAAAAAAAEA///+/wAA//8AAP//AAAAAAAAAAABAP///////wIAAQAAAAEAAQAAAP7/AQAAAAAAAQAAAAAAAQD/////AQAAAAAA///+//7/AAD+/wEA//8AAAAA///+/wEAAAABAAIAAQABAAAA//8AAP//AAD//wAAAAD//wAAAAAAAP//AQAAAAAA////////AQAAAAAAAQD+////AQABAP7/AAD///7/AgD//wAAAAAAAP//AAAAAAEA//8BAAEAAgAAAAIAAAD//wEA/////wAAAQD///7/AQD//wEAAQD/////AAAAAAEAAgAAAAAAAQD//wEA//8AAP7//////wAA//8BAAEA//8BAAAAAQD/////AAABAP//AAACAP//AQAAAP//AAABAP////8AAAAAAAABAAEAAwABAAAAAgD//wAAAAD//wEAAAABAAAAAAABAAEA/////wAA//8AAAIAAAAAAAEAAQABAAEAAQABAP//AgAAAAAA//8BAP3//v///wAA//8AAAAAAQAAAP//AQD//wEAAAACAAIAAAABAAAA//8BAAEA//8BAP//AAAAAP//AQAAAAIAAAD//wAAAAAAAAEA////////AQAAAP//AQD//wAAAQD+/wEAAAABAP///v///wAAAAAAAP//AAAAAAIAAQD//wAAAgD+/wAAAAD//wAAAAABAP///P//////AAACAP////8AAAIAAAABAAAAAAAAAAAA//8AAAAAAQADAP//AQAAAAAAAAABAAEAAQAAAAAA/v8AAAAAAAD//wAAAQD//wAAAAD//wAA/v////////8CAAEA/v8BAP7/AAAAAAAA//8AAAEAAAD//wIAAQAAAAIAAQAAAAAAAAD///7/AQABAP//AAAAAP//AAACAAEA//8BAAAAAwAAAAAAAAD//wEAAAD//wAA///////////+/wAAAQABAAIAAAABAAEAAAD//wEAAAD/////AAD+/wIAAwABAAEA/v8BAAEAAAD//wAA//8AAP//AAAAAAEAAAAAAP//AAAAAAEAAQABAAEA/v///wAAAAD//wEAAAACAAAA/f/+/wAA/v///wAA//8AAAEAAQD///7/AAAAAAAAAAABAAAAAAACAAAAAAABAAAAAAABAP//AQD//wAA//8BAP7/AgABAAEAAQAAAAAAAQD//wEA/v8AAP////8AAP///////wIAAQD//wAAAAD//wAA/v///wAAAQD//wIA/////wEAAAAAAAIAAAABAAAAAAD//wEA//8AAAAA/////wAAAQAAAAAAAAD//wEAAQAAAAAAAAACAP///////wAAAgD//wAA/v8AAAIAAAAAAAEAAAABAP//AQABAAEAAQAAAP///v8BAAEAAAAAAP////8AAAAAAQD//wIAAQAAAAEAAAAAAAAA//8BAP//AAAAAP7//v///wEAAAAAAAIAAAAAAP//AAD//wEA//8BAAAAAAABAAEAAAABAP7///8AAAIAAAABAP//AAD//wEAAAAAAP//AAAAAAEAAAAAAAAAAAAAAP7/AQD//wAAAQD+/wEA/v8BAP7/AAABAAEAAAACAAIAAAADAAAA//8AAAEAAAABAP//AQD//wIA/////wEA//8AAAEA//8AAAEAAAAAAAAAAQABAAAAAAAAAAAAAAD//////////wAA//8AAP7/AAD+/wAAAQAAAAAA/////wAABAAAAAAA//8AAAEAAAAAAAAA/v8AAP//AAAAAAAAAAD//wAAAAD///////8BAAEAAAD/////AgABAAEA/v/+/wAAAQACAAEAAAD//wAAAwABAP//AgD+/wAA/v8AAAAAAAAAAAEA//8AAAEAAAD+/wEAAAAAAAEAAgAAAAEAAAABAP//AQD+/wIA/////wAAAQD//wAAAQD+/wAAAQABAAAA////////AAACAAAAAQAAAAIA//8BAP///v///wEA//8BAAEAAQD+/wAAAQD9/wAAAQAAAAEAAAABAAAAAgAAAP//AAD+/wAA/f8AAAAA////////AgAAAAcAAQD7/wEA/f8AAAIA//8GAP7//v/+//b/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+P/F//z/rv/i/7r/6v/Z/wYABwAoADAAKQBOABkATAD0/zQA1P8PANv/0//v/6//FwCi/ywAxP8oAPn//v82APT/WwD4/00A+/8yAPv//f/8/83/+v+w/+T/sf/j/9b/AQACACoAIgAtAEIAHwBPAAEAQADe/xcA0v/k/+X/t/8IAKv/IgC//yEA6/8EACMA9/9PAPf/VAD+/zcA+/8JAPn/1P8AALf/6f+w/+P/zf////j/HAAdAC0APgAfAEsABwBCAOP/IADV/+//2v/B//3/rP8PALv/GADd/xEAFgABAEMABABaAP//QgACABcA+//n/wAAwP/w/67/4v+///3/6f8WABcAKQA0ACIARgAQAEcA8f8pANn/9f/U/87/7f+v/wgAtP8RANP/FgANAAIAOQACAFQA/f9HAAAAIAABAO3//P/E/wEAs//q/7n/9P/i/wYAEQAZADEAJABBABMASAAAADEA3/8CANL/1v/g/7H/AACy/w8Axf8ZAPv/CQAzAAIAVQD//1AAAAAsAAIA9v/7/8r/AwC2//P/tf/m/+H/AwADABEAKQApADoAHgBHAAgAPADr/wkA1//f/93/vP/6/7L/CgDA/x4A7/8hACkAAgBPAPz/UgD1/zIABAAEAPz/0v/5/7f/AACy//H/2f/+/wEAAAAkABUAMwAdADoAEQA9APD/EADU//L/1P/H/+z/tf8LALv/HADk/ygAGgADAEMA//9TAPn/QAAAABAAAQDc//z/wf8DALD/7P/Q//z/9/8HABoAFgA3ACMAMAAOADwA+P8ZANv/+P/Y/9H/5v+8/wUAu/8WANf/HgAMAAoAPQABAFMA/f9HAP7/HwAEAN//+v/H/wMAs//2/8r/8//y/wMADgAQAC4AIwAyABMAJwD8/xcA3v8LANP/5v/f/8j/AgC4/w4A1P8eAAQACgAxAAEAUgD+/0gA/v8nAAIA8f/5/8r/BAC6/+3/wP/l/+b/AQAIABkAIwArAC4AIAAoAAkAGADj/w0A0f/r/9//0P8DAL3/CgDN/xkA//8IACUAAgBJAAAATwD+/ysAAQD7//3/z/8DAMT/+f/K/+L/5P/1////EgAcACYALgApAC4ACwAcAPL/EADZ//L/1f/U//f/uv8KAMX/DwDu/wcAHwADAEUABgBNAAEANQAAAAYAAQDf////xf/+/9P/4f/b//X/9v8LAA4AGAAlACoAMAAQABkA9v8TAOL/+f/W/9r/8f/I/wcAxP8MAOr/BwATAAQAOAAGAEcAAABCAAEADwAEAOP//v/F/wIAzf/o/93/8P/s/w4ACwAZACEAKgAyABMAIQD5/xgA6v8DANb/4P/y/9H/AQDJ/wkA4/8DAAoA/f8wAAQAQwABAEAA//8VAAIA7P/+/8r/BADP/+v/2v/s/+n/CwAIAA0AHAAjADQAHAAkAP//GQDy/wQA5v/i//b/0P/7/8f/AADh/wMAAAD+/yUAAAA7AAEAOAAAABwAAAD6/wAA1/8CAMr/AADb/+3/5f8BAAIACAAVABcALwAfACgA+/8XAPn/DgDe/+//7v/Q/wMAz/8JAOP/CwDx////EAAHADEAAQArAAIAHQAEAAcAAADr/wEAzv8CANj//f/k/wEA+f/+/xQABwAqAB4ALAD+/x4A8P8SAOb/8//f/9j//f/N/wEA3v8LAO7/AgAMAAQALAAEAC0AAQAdAAQADwABAPP/BADV/wMA0/8AAOH/AQD1/wAAEAADACQAGwAwAAQAHwD0/xUA8f/4/+L/2//7/8z/AwDc/woA6f8AAAQAAwAoAAcANAAAACcAAgAUAAEA+P8CANv/AgDR/wEA4v8BAOz/AgAIAPv/JAAVADMAFAAhAPP/GQDz//7/3P/l/+3/z/8BANf/CgDn/wkA/P///xoABwAwAAIAJwACABcAAwABAAIA4f8BAND/AgDd//3/6P8CAAYA/f8YAAwALwAZACUA9v8bAPj/AwDq/+r/7P/S//7/1/8EAOX/CQD6//7/GQAFAC8AAQApAAEAGQACAAMAAgDm/wEAzv8BANv//v/p/wIA//8BABMABQArACAALAABAB4A8f8NAOv/7v/m/9n/+P/R/wMA4f8OAPT/AQATAAMAKwAHACoAAwAbAAMABQADAO7/AQDU/wEA2f8AAOL////3////EgAAACUAGgAvAAUAHQD2/xIA9f/0//T/3P/4/8///f/h/wIA7f8AAAoAAQApAAQALQADACAAAgAPAP//9P///9r//f/T/wAA3f/9//D/AQAQAP//HAAHAC8ACQAfAPv/GAD+//f/+P/j/wEA0v/+/9n/AADq/wIABgD//x0AAQAuAAEAIwAAABQAAwD8/wEA3/8AAM//AADe////7f8BAAwA//8ZAAMALwAAACEA//8dAP3//v/9/+n////U//z/1v8BAOT/AAD+/wAAGwD+/ywA/v8kAAIAGAD///3////q/wEA0P///97/AADk/wAABAAAABUAAQAqAAEAKQAAABwAAAAFAP//6f8AANr////X/wAA4/8AAPj/AgAUAAAAKgD//ywAAAAcAP7/AQAAAOv/AADU/wAA2v8CAOP/AAABAAAAFgABABsAAAAqAAEAHwAAABQAAgDv/wEA3v///9H////f////7/8BAAoAAQApAAAALgD//yEAAQAIAAAA8P8BANr//v/V////4f8AAPf//v8UAAAAFAAAACYAAQAhAP7/GwD+//T/AADo/wIA1v8CANr/AgDp/wEABgAAAB8AAQAsAAEAJAAAAAwA///z/wEA3/8AANT/AADh/wEA9P///xQAAgASAAAAJQAAACEAAAAaAP//+v8BAOj////W////2P8BAOf///8DAAAAHwAAAC4AAAAlAAAAEgAAAPL/AQDm////0f8CAN3/AADr//7/EQD//xAAAQAhAAIAJQAAAB8AAAABAP//6v8CAN//AQDX/wAA4/8AAPr/AAAXAAAAKgABACgAAAAbAP///f8AAOj/AADU/wAA2v///+f/AQANAAMAEQD+/xwA/v8kAP7/IQABAAgA/v/p////5/8AANf/AQDd/wEA8v8BABMAAQAjAAAALgAAACAAAQADAAEA7f8BANn/AgDY//7/4P/+/wEAAAAXAAIAFAAFACUA/P8jAP//EgAAAO//AQDo////1/8AAN3/AADx//7/DgAAAB0AAQAoAAAAIwAAAAoAAQDv/wMA4f8AANn/AQDi/wEA+v///xgAAAAQAP3/IwD//yUA/v8XAAAA7/8AAOv/AADc/wAA3P/+/+v/AQALAAEAGgACACkAAAAkAP7/EAABAO/////q//7/1/8AANz/AgDw/wEAEgD//w8AAAAcAAIAJQAAAB0AAAD2////7P8AAOP/AgDa/wAA5P8BAAQAAQAWAAAAIgAAACMAAAAaAP//+P///+v/AQDZ/wAA2////+7/AAARAAAADgAAABYAAAAhAAAAIAABAPz/AQDt/wAA5P8AANr/AQDg/wEA/P8BABcAAAAhAP//KQD//xwAAAD8/wEA7v8AAN3////Z/wAA6f8BAA0AAAARAAEAEQAAACMAAAAgAAEA/f8CAO3/AADv/wAA3v8BANv////1////EgAAABkA//8nAAAAIgAAAAMAAADu/wAA6P8CANn/AQDg////BQD//xMAAQAOAP//IAABACYAAAAGAAAA6f////H/AADg/wEA2f8AAO3///8PAAAAFQACACQAAAAkAAEADQABAO//AADp/wAA2////9z/AQD7/wEAFgAAAAwAAQAXAP7/JQD9/xMAAADx/wAA8f8AAOr/AADc/wEA4/8BAAkAAAAVAAAAIQD//yYA//8UAAEA9P8BAOz/AADf/wAA3P8AAPP/AAAQAAAADQABAA0AAAAlAAEAGAD///H//v/0/wEA7v8CAN//AADg//3/BAACABUAAQAfAAAAJwABABgAAQD0//7/7f///+L/AADa/wIA8P///w4A//8SAAMACQAAACAAAQAgAP//+v////P////y/wEA4/8BANr/AQD9/wAAEwD//xkAAQAjAAAAIgABAPz////s/wAA6v8BANX/AQDr//7/BwABABMAAAAHAP//FwAAACYAAAD//wEA9P8BAPb/AQDu////2v8BAPn/AAATAP//FwD//yEAAAAjAAAAAgAAAOn/AQDr//7/2P8CAOT/AAABAP//FgABAAUAAQATAP//IwAAAAEAAgDy/wEA9/8AAPb/AADb/wAA6/8BABAAAAATAP7/IQAAACYA//8UAP//7/8AAPD/AADd/wEA3P/+//7///8OAAAACgAAAAgAAAAhAP//CQACAPT/AQD2/wAA9v///97////m/wIADgABABMAAQAfAP//JwAAABMAAADw/wAA8P///+r/AQDb/wAA9f8AAA8AAAARAAIABAD//wYA/v8HAAAAAQD//wMAAgAGAAAA7f8AAOz/AAALAP//DwACABQA//8bAAAAHgD///f/AADq/wEA6/8BANj//v/t/wAACAD+/xAAAgAEAAAABAABAAcAAQADAAAA//8AAAUA///1/wAA5f///wIAAAAOAAAAEAAAABsAAAAhAAAA/v8BAOj////y////3f8AAOf/AQAGAAEADAAAAAcA//8BAP//CQABAAMA//8BAP//BQAAAAAAAADo/wAA+/8AAAoAAAALAAAAFAAAACAAAQAGAAIA7f8BAPH/AADm/wMA3P8CAP7/AgASAP//CgD//wAAAAAIAP//BQD//wEAAAACAP7/BAAAAPz/AwD8////BAAAAAEA//8HAAAAHQAAAAgA/v/x//7/8f///+f/AQDg/////P///woAAAAMAP//AAABAAYA//8EAAAAAgAAAAUAAAACAAAAAwAAAAIAAAABAAAAAQABAAAAAgAcAP//DgD///T/AQDx/wAA9P8CAOH/AAD3/wAACQAAAAoAAQABAP//AwAAAAcAAAD+/wAAAgACAAEAAAD+////AwD+/wAAAAABAP//+v8BABEAAQATAAAA9f/+//L//f/z/wIA6f8AAPb/AQAFAP//DAAAAAAAAAAFAP//BQD//wEA//8DAAEAAQAAAP7///8AAAAA//8BAAIAAAD+/wAAEAABABYAAgD6/wEA8v8BAPX/AwDp/wAA8////wMA//8JAAEABAABAAEA//8FAAEA//8AAAMAAQACAP//AQAAAAEAAgAFAP//AQABAAAAAQAAAP//EQABAAAAAAD5/wEA+P8AAPr////6/wAA+/8BAAIA//8BAAAA//8CAAUA//8BAP7/AAABAAEAAgAAAAAAAwAAAAEA/v8DAAIAAAACAAQA//8TAAAA/P8BAPr////3//////8AAPz/AQD7/wEAAgD/////AAABAAEABAAAAP//////////AAAAAAAAAAADAAAAAwAAAAAA//8EAP///v/+/xAA//8HAAAA+/////j/AQD8////AAD///n///8AAAAA//8AAP////8DAP//AgAAAAAAAAACAAIAAAD+/wAAAQD//wAA/////wIAAgD9////CQACAAYA///9////+f8BAPr/AQAAAAIA/v///wAA//8AAAAAAAAAAAEAAAABAAAAAgAAAAEAAAAAAAEAAQABAAAAAgABAP//AAD//wEAAAD///////8BAAIAAQAAAAAA/v/+//////8BAAAAAQABAP//AAD///////8BAAAAAQABAP////8CAAEAAQD//wEA/v//////AQAAAAAAAAAAAAAAAAD9/wMA/////wAAAQD+/wEA/v/+//7/AQD//wMAAAAAAAAAAAABAAEA//////7/AAACAP3/AAD//wAAAQAAAP//AQD//wAAAAAAAAEA//8CAP//AAAAAAAA/v8AAAAA//8BAP//AAABAP//AAAAAP//AQD//wAAAQABAAAAAAABAAEA/v///wAAAAD//////////wAAAAAAAP//AAD////////8/wIAAAADAAEA/////wEA/v8BAP7/AgAAAAEAAgAAAP//AgD/////AQD//wEA//////7/AQD//wMAAAAAAAAA//8CAP//AQAAAP//AAACAAAAAAABAP//AQD+/wAA/////wAA/f///wAAAAAAAP7/AAAAAAAAAgD//wEAAQACAP//AAAAAAEAAQD//wAAAAAAAAAA//8BAAMA/v8AAP7/AQAAAAAAAQAAAAAA///+//7/AAAAAAAA//8BAP7/AQAAAP//AQABAAAAAQAAAP//AAD//wIA/v///wAAAQABAP//AAD//wEA//8BAP//AgAAAP///////wAAAQABAP//AwABAAAAAAAAAAAA/////wIAAwACAAAA/v8BAAAAAAAAAAAA//8AAP////8AAAAA/////wAA/////wEA/v8CAAEAAQD//wAAAAABAAAAAAD//wEAAQABAAAA//8CAAAAAAAAAP7/AAABAAAAAQABAAAAAgABAAAAAQD//wEAAwD+/wAA/v8AAAEAAAAAAAAAAAAAAAEAAAD//wMA/v///wAAAAACAAEAAAAAAP7///8DAAEAAQD//wEA/f8BAAEAAQD//wEAAQABAAMAAgAAAAEA//8AAP//BAAAAAIA/v//////AQABAAAAAAD//wEAAAACAAIAAQAAAAAAAgAAAAAAAAABAAIAAAABAAIAAQAAAP////8AAAAAAAD//wAAAQACAP//AAAAAAAAAQAAAAEA//8AAAAAAAD/////AQD//wAAAQD9////AQAAAAAA//8BAAAA///+/////v8BAAAAAQAAAAAAAAAAAAIA//8BAAAAAAACAP//AQD//wAAAAD/////AAD9/wAAAAACAAAAAgAAAAEAAQABAAEAAAAAAAEA//8AAAEAAQACAAAAAQAAAAEA//8BAAIAAAACAP//AAABAAAAAAAAAAAAAAD//wAAAQD/////AAAAAP////8AAAEAAAAAAP7///8BAAIAAQD//wEAAQAAAP//AgAAAAAAAAD//wAA//8CAP7/AQAAAP7/AAD+////AAAAAAAAAQABAAAA//8AAAEAAAABAP7/AAAAAP7/AAD+/wAAAQABAAEA/////////v8BAP///v///wIAAAAAAAAAAQAAAAIAAQAAAAAAAAABAAEAAAAAAAAAAAD//wEAAQD//wAAAQABAAAA/v/+/////////wAAAAD//wAAAAD/////AAAAAP7/AAD//wIA//8CAP//AQAAAP////8AAAAAAQABAP////8AAP//AQACAAAAAQAAAAAAAAAAAAAA//8BAAAAAAD+/wAA/v///wEAAAD+//7///8CAP7/AAABAP3/AwAAAAAAAAABAAIAAAABAAAAAQABAAIAAAAAAP//AAAAAAEAAAACAAEAAAACAAAAAAABAAAAAwAAAAAAAAD+/wAAAQD9//////8BAAAA/v8AAAAAAAAAAAAAAAD//wMA/v8BAAEAAQACAAAA/v8BAP//AwABAAIAAQABAP//AQAAAAEAAAAAAAEA//8AAAAAAAD/////AAABAAEAAAAAAP////8AAAAAAAAAAAAA/v8AAP//AQAAAP//AAABAAIAAQAAAAAAAgABAAAA/////wAAAQABAP//AQABAAEA/////wAAAAAAAAAAAAABAAEAAQAAAAAAAAAAAAAA//8AAP7/AQD9/wAAAgD//wEAAQABAAEA/v8AAAEA/////wAAAAAAAP//AAABAAAAAAAAAAAA//8CAP//AAABAAEAAQABAAAA//8BAAIAAgD//wAA/v8AAAEAAAD///7/AAAAAAEAAAABAAAAAQABAAAAAQACAAAA///+/wAAAQABAP7////+/wAA//8AAAAAAgAAAP//AQD9/wAAAAD//wAA//8AAAAAAQAAAAAAAQD//wAAAAAAAP//AQABAAAA/v8CAP//AAD///////8AAAAAAAACAAEA//8BAP7/AAAAAAEA//8BAAAAAQD//wAAAQD+/wAA/////wAAAAD//wAAAQABAAAA//8AAAEA/////wAA//8AAAAA/v/+/wEAAgABAP//AgD//wIA/////wAA//8AAAEAAQAAAAAAAQAAAAMAAAACAP//",showCount:!0},audio:{disabled:!0,defaultToggledOn:!1,language:"en-US",voiceNames:["Microsoft David - English (United States)","Alex (English - United States)"],rate:1,volume:1,icon:pf,iconDisabled:hf},chatHistory:{disabled:!1,maxEntries:30,storageKey:"rcb-history",storageType:"LOCAL_STORAGE",viewChatHistoryButtonText:"Load Chat History ⟳",chatHistoryLineBreakText:"----- Previous Chat History -----",autoLoad:!1},chatInput:{disabled:!1,allowNewline:!1,enabledPlaceholderText:"Type your message...",disabledPlaceholderText:"",showCharacterCount:!1,characterLimit:-1,botDelay:1e3,sendButtonIcon:Af,blockSpam:!0,sendOptionOutput:!0,sendCheckboxOutput:!0,buttons:[dt.VOICE_MESSAGE_BUTTON,dt.SEND_MESSAGE_BUTTON]},chatWindow:{showScrollbar:!1,showTypingIndicator:!0,autoJumpToBottom:!1,showMessagePrompt:!0,messagePromptText:"New Messages ↓",messagePromptOffset:30,defaultOpen:!1},sensitiveInput:{maskInTextArea:!0,maskInUserBubble:!0,asterisksCount:10,hideInUserBubble:!1},userBubble:{animate:!0,showAvatar:!1,avatar:"data:image/svg+xml,%3csvg%20width='140'%20height='140'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cy='60.044'%20cx='70'%20fill='%235c5c5c'%20r='29'/%3e%3cpath%20d='m16.36%20156.186-.01-30.5c-.005-16.844%2024.168-30.507%2053.991-30.516%2029.823-.009%2054.004%2013.64%2054.01%2030.484l.008%2030.5-108%20.032z'%20fill='%235c5c5c'/%3e%3c/svg%3e",simulateStream:!1,streamSpeed:30},botBubble:{animate:!0,showAvatar:!1,avatar:ju,simulateStream:!1,streamSpeed:30},voice:{disabled:!0,defaultToggledOn:!1,language:"en-US",timeoutPeriod:1e4,autoSendDisabled:!1,autoSendPeriod:1e3,sendAsAudio:!1,icon:df,iconDisabled:ff},footer:{text:N.jsxs("div",{style:{cursor:"pointer",display:"flex",flexDirection:"row",alignItems:"center",columnGap:3},onClick:()=>window.open("https://react-chatbotify.com"),children:[N.jsx("span",{children:"Powered By "},0),N.jsx("div",{style:{borderRadius:"50%",width:14,height:14,display:"flex",justifyContent:"center",alignItems:"center",background:"linear-gradient(to right, #42b0c5, #491d8d)"},children:N.jsx(Wu,{style:{width:"80%",height:"80%",fill:"#fff"}})},1),N.jsx("span",{style:{fontWeight:"bold"},children:" React ChatBotify"},2)]}),buttons:[dt.FILE_ATTACHMENT_BUTTON,dt.EMOJI_PICKER_BUTTON]},fileAttachment:{disabled:!1,multiple:!0,accept:".png",icon:Yu,iconDisabled:Yu,sendFileName:!0,showMediaDisplay:!1},emoji:{disabled:!1,icon:Gu,iconDisabled:Gu,list:["😀","😃","😄","😅","😊","😌","😇","🙃","🤣","😍","🥰","🥳","🎉","🎈","🚀","⭐️"]},toast:{maxCount:3,forbidOnMax:!1,dismissOnClick:!0},event:{rcbPreInjectMessage:!1,rcbPostInjectMessage:!1,rcbStartSimulateStreamMessage:!1,rcbStopSimulateStreamMessage:!1,rcbStartStreamMessage:!1,rcbChunkStreamMessage:!1,rcbStopStreamMessage:!1,rcbRemoveMessage:!1,rcbLoadChatHistory:!1,rcbToggleChatWindow:!1,rcbStartSpeakAudio:!1,rcbToggleAudio:!1,rcbToggleNotifications:!1,rcbToggleVoice:!1,rcbChangePath:!1,rcbShowToast:!1,rcbDismissToast:!1,rcbUserSubmitText:!1,rcbUserUploadFile:!1,rcbTextAreaChangeValue:!1,rcbPreLoadChatBot:!1,rcbPostLoadChatBot:!1,rcbPreProcessBlock:!1,rcbPostProcessBlock:!1},ariaLabel:{chatButton:"open chat",audioButton:"toggle audio",closeChatButton:"close chat",emojiButton:"emoji picker",fileAttachmentButton:"upload file",notificationButton:"toggle notifications",sendButton:"send message",voiceButton:"toggle voice",inputTextArea:"input text area"},device:{desktopEnabled:!0,mobileEnabled:!0,applyMobileOptimizations:!0}},Xu=R.createContext({settings:{},setSyncedSettings:()=>null,syncedSettingsRef:{current:{}}}),Fe=()=>R.useContext(Xu),gf=({children:e,settings:n=Vu,setSyncedSettings:a,syncedSettingsRef:i})=>N.jsx(Xu.Provider,{value:{settings:n,setSyncedSettings:a,syncedSettingsRef:i},children:e}),Ju={tooltipStyle:{},notificationBadgeStyle:{},chatWindowStyle:{},headerStyle:{},bodyStyle:{},chatInputContainerStyle:{},chatInputAreaStyle:{},chatInputAreaFocusedStyle:{},chatInputAreaDisabledStyle:{},userBubbleStyle:{},botBubbleStyle:{},botOptionStyle:{},botOptionHoveredStyle:{},botCheckboxRowStyle:{},botCheckboxNextStyle:{},botCheckMarkStyle:{},botCheckMarkSelectedStyle:{},characterLimitStyle:{},characterLimitReachedStyle:{},chatHistoryLineBreakStyle:{},chatMessagePromptStyle:{},chatMessagePromptHoveredStyle:{},footerStyle:{},loadingSpinnerStyle:{},mediaDisplayContainerStyle:{},chatButtonStyle:{},chatButtonHoveredStyle:{},chatHistoryButtonStyle:{},chatHistoryButtonHoveredStyle:{},sendButtonStyle:{},sendButtonHoveredStyle:{},sendButtonDisabledStyle:{},audioButtonStyle:{},audioButtonDisabledStyle:{},closeChatButtonStyle:{},emojiButtonStyle:{},emojiButtonDisabledStyle:{},fileAttachmentButtonStyle:{},fileAttachmentButtonDisabledStyle:{},notificationButtonStyle:{},notificationButtonDisabledStyle:{},voiceButtonStyle:{},voiceButtonDisabledStyle:{},chatIconStyle:{},audioIconStyle:{},audioIconDisabledStyle:{},closeChatIconStyle:{},emojiIconStyle:{},emojiIconDisabledStyle:{},fileAttachmentIconStyle:{},fileAttachmentIconDisabledStyle:{},notificationIconStyle:{},notificationIconDisabledStyle:{},voiceIconStyle:{},voiceIconDisabledStyle:{},sendIconStyle:{},sendIconDisabledStyle:{},sendIconHoveredStyle:{},rcbTypingIndicatorContainerStyle:{},rcbTypingIndicatorDotStyle:{},toastPromptContainerStyle:{},toastPromptStyle:{},toastPromptHoveredStyle:{}},Ku=R.createContext({styles:{},setSyncedStyles:()=>null,syncedStylesRef:{current:{}}}),Ze=()=>R.useContext(Ku),mf=({children:e,styles:n=Ju,setSyncedStyles:a,syncedStylesRef:i})=>N.jsx(Ku.Provider,{value:{styles:n,setSyncedStyles:a,syncedStylesRef:i},children:e}),vf=({buttons:e})=>{var n,a,i,o,c,u,d;const{settings:A}=Fe(),{styles:p}=Ze(),h={backgroundImage:`linear-gradient(to right, ${(n=A.general)==null?void 0:n.secondaryColor},
106
+ ${(a=A.general)==null?void 0:a.primaryColor})`,...p.headerStyle};return N.jsxs("div",{style:h,className:"rcb-chat-header-container",children:[N.jsxs("div",{className:"rcb-chat-header",children:[((i=A.header)==null?void 0:i.showAvatar)&&N.jsx("div",{style:{backgroundImage:`url("${(o=A.header)==null?void 0:o.avatar}")`},className:"rcb-bot-avatar"}),R.isValidElement((c=A.header)==null?void 0:c.title)?(u=A.header)==null?void 0:u.title:N.jsx("div",{style:{margin:0,fontSize:20,fontWeight:"bold"},children:(d=A.header)==null?void 0:d.title})]}),N.jsx("div",{className:"rcb-chat-header",children:e==null?void 0:e.map((m,y)=>N.jsx(R.Fragment,{children:m},y))})]})},$u=R.createContext({}),xt=()=>R.useContext($u),yf=({children:e,botIdRef:n,flowRef:a})=>{const i=R.useRef(null),o=R.useRef(""),c=R.useRef(null),u=R.useRef(new Map),d=R.useRef(null),A=R.useRef(""),p=R.useRef(!1),h=R.useRef(null),m=R.useRef(null),y=R.useRef(null);return N.jsx($u.Provider,{value:{botIdRef:n,flowRef:a,inputRef:i,timeoutIdRef:c,streamMessageMap:u,chatBodyRef:d,paramsInputRef:A,keepVoiceOnRef:p,audioContextRef:h,audioBufferRef:m,gainNodeRef:y,prevInputRef:o},children:e})},bn=e=>{const[n,a]=R.useState(e),i=R.useRef(e);return[n,o=>{const c=typeof o=="function"?o(i.current):o;i.current=c,a(c)},i]},Zu=R.createContext({}),Et=()=>R.useContext(Zu),bf=({children:e,settings:n})=>{var a,i,o,c,u,d;const[A,p,h]=bn(!1),[m,y,C]=bn(((a=n==null?void 0:n.chatWindow)==null?void 0:a.defaultOpen)??!1),[D,Q,E]=bn(((i=n==null?void 0:n.audio)==null?void 0:i.defaultToggledOn)??!1),[I,_,B]=bn(((o=n==null?void 0:n.voice)==null?void 0:o.defaultToggledOn)??!1),[U,j,z]=bn(((c=n==null?void 0:n.notification)==null?void 0:c.defaultToggledOn)??!0),[W,te]=R.useState(!1),[J,Y]=R.useState(!1),[ee,Z,ie]=bn(!1),[ue,se,xe]=bn(!0),[ge,me,M]=bn(!1),[fe,O]=R.useState(!1),[de,Ee]=R.useState(!1),[he,ve]=R.useState(0),[Te,Qe]=R.useState(0),[tt,Le]=R.useState(!1),[Je,qe]=R.useState(((u=window.visualViewport)==null?void 0:u.height)??window.innerHeight),[ft,Ne]=R.useState(((d=window.visualViewport)==null?void 0:d.width)??window.innerWidth);return N.jsx(Zu.Provider,{value:{isBotTyping:A,setSyncedIsBotTyping:p,syncedIsBotTypingRef:h,isChatWindowOpen:m,setSyncedIsChatWindowOpen:y,syncedIsChatWindowOpenRef:C,audioToggledOn:D,setSyncedAudioToggledOn:Q,syncedAudioToggledOnRef:E,voiceToggledOn:I,setSyncedVoiceToggledOn:_,syncedVoiceToggledOnRef:B,notificationsToggledOn:U,setSyncedNotificationsToggledOn:j,syncedNotificationsToggledOnRef:z,isLoadingChatHistory:W,setIsLoadingChatHistory:te,hasChatHistoryLoaded:J,setHasChatHistoryLoaded:Y,isScrolling:ee,setSyncedIsScrolling:Z,syncedIsScrollingRef:ie,textAreaDisabled:ue,setSyncedTextAreaDisabled:se,syncedTextAreaDisabledRef:xe,textAreaSensitiveMode:ge,setSyncedTextAreaSensitiveMode:me,syncedTextAreaSensitiveModeRef:M,hasInteractedPage:fe,setHasInteractedPage:O,hasFlowStarted:de,setHasFlowStarted:Ee,unreadCount:he,setUnreadCount:ve,inputLength:Te,setInputLength:Qe,blockAllowsAttachment:tt,setBlockAllowsAttachment:Le,viewportHeight:Je,setViewportHeight:qe,viewportWidth:ft,setViewportWidth:Ne},children:e})};var ye=(e=>(e.START_SPEAK_AUDIO="rcb-start-speak-audio",e.TOGGLE_AUDIO="rcb-toggle-audio",e.TOGGLE_NOTIFICATIONS="rcb-toggle-notifications",e.TOGGLE_VOICE="rcb-toggle-voice",e.TOGGLE_CHAT_WINDOW="rcb-toggle-chat-window",e.PRE_INJECT_MESSAGE="rcb-pre-inject-message",e.POST_INJECT_MESSAGE="rcb-post-inject-message",e.START_SIMULATE_STREAM_MESSAGE="rcb-start-simulate-stream-message",e.STOP_SIMULATE_STREAM_MESSAGE="rcb-stop-simulate-stream-message",e.START_STREAM_MESSAGE="rcb-start-stream-message",e.CHUNK_STREAM_MESSAGE="rcb-chunk-stream-message",e.STOP_STREAM_MESSAGE="rcb-stop-stream-message",e.REMOVE_MESSAGE="rcb-remove-message",e.LOAD_CHAT_HISTORY="rcb-load-chat-history",e.CHANGE_PATH="rcb-change-path",e.SHOW_TOAST="rcb-show-toast",e.DISMISS_TOAST="rcb-dismiss-toast",e.USER_SUBMIT_TEXT="rcb-user-submit-text",e.USER_UPLOAD_FILE="rcb-user-upload-file",e.TEXT_AREA_CHANGE_VALUE="rcb-text-area-change-value",e.PRE_LOAD_CHATBOT="rcb-pre-load-chatbot",e.POST_LOAD_CHATBOT="rcb-post-load-chatbot",e.PRE_PROCESS_BLOCK="rcb-pre-process-block",e.POST_PROCESS_BLOCK="rcb-post-process-block",e))(ye||{});const wf={[ye.START_SPEAK_AUDIO]:!0,[ye.TOGGLE_AUDIO]:!0,[ye.TOGGLE_VOICE]:!0,[ye.TOGGLE_NOTIFICATIONS]:!0,[ye.TOGGLE_CHAT_WINDOW]:!0,[ye.PRE_INJECT_MESSAGE]:!0,[ye.POST_INJECT_MESSAGE]:!1,[ye.PRE_LOAD_CHATBOT]:!0,[ye.POST_LOAD_CHATBOT]:!1,[ye.START_SIMULATE_STREAM_MESSAGE]:!0,[ye.STOP_SIMULATE_STREAM_MESSAGE]:!1,[ye.START_STREAM_MESSAGE]:!0,[ye.CHUNK_STREAM_MESSAGE]:!0,[ye.STOP_STREAM_MESSAGE]:!0,[ye.REMOVE_MESSAGE]:!0,[ye.LOAD_CHAT_HISTORY]:!0,[ye.CHANGE_PATH]:!0,[ye.SHOW_TOAST]:!0,[ye.DISMISS_TOAST]:!0,[ye.USER_SUBMIT_TEXT]:!0,[ye.USER_UPLOAD_FILE]:!0,[ye.TEXT_AREA_CHANGE_VALUE]:!0,[ye.PRE_PROCESS_BLOCK]:!0,[ye.POST_PROCESS_BLOCK]:!0},Nl=async(e,n,a)=>{const i=new CustomEvent(e,{detail:n,cancelable:wf[e]});return i.data=a,i.promises=[],window.dispatchEvent(i),await Promise.all(i.promises),i},qu=R.createContext({paths:[],setSyncedPaths:()=>{},syncedPathsRef:{current:[]}}),Ci=()=>R.useContext(qu),xf=({children:e})=>{const[n,a,i]=bn([]);return N.jsx(qu.Provider,{value:{paths:n,setSyncedPaths:a,syncedPathsRef:i},children:e})},Vn=()=>{const{botIdRef:e}=xt(),{syncedPathsRef:n}=Ci(),a=R.useCallback(()=>n.current.length>0?n.current.at(-1)??null:null,[]),i=R.useCallback(()=>n.current.length>1?n.current.at(-2)??null:null,[]);return{dispatchRcbEvent:R.useCallback(async(o,c)=>{const u={botId:e.current,currPath:a(),prevPath:i()};return await Nl(o,u,c)},[e])}},wn=()=>{const{settings:e}=Fe(),{isChatWindowOpen:n,setSyncedIsChatWindowOpen:a,viewportHeight:i,setViewportHeight:o,viewportWidth:c,setViewportWidth:u,setUnreadCount:d,setSyncedIsBotTyping:A,setSyncedIsScrolling:p,syncedIsBotTypingRef:h,syncedIsChatWindowOpenRef:m}=Et(),{chatBodyRef:y}=xt(),{dispatchRcbEvent:C}=Vn(),D=R.useCallback(()=>{if(!y.current)return!1;const B=y.current.getBoundingClientRect(),U=window.innerHeight??document.documentElement.clientHeight,j=window.innerWidth??document.documentElement.clientWidth;return B.top>=0&&B.left>=0&&B.bottom<=U&&B.right<=j},[y]),Q=R.useCallback(async B=>{var U;B!==m.current&&((U=e.event)!=null&&U.rcbToggleChatWindow&&(await C(ye.TOGGLE_CHAT_WINDOW,{currState:m.current,newState:!m.current})).defaultPrevented||a(j=>(j||d(0),!j)))},[m]),E=R.useCallback(async B=>{B!==h.current&&A(U=>!U)},[h]),I=R.useCallback((B,U,j,z)=>(B/=z/2)<1?j/2*B*B+U:-j/2*(--B*(B-2)-1)+U,[]),_=R.useCallback((B=0)=>{if(!y.current)return;const U=y.current.scrollHeight-y.current.clientHeight;if(B<=0)return y.current.scrollTop=U,void p(!1);const j=y.current.scrollTop,z=U-j;let W=0;const te=()=>{if(!y.current)return;W+=20;const J=I(W,j,z,B);y.current.scrollTop=J,W<B?requestAnimationFrame(te):p(!1)};te()},[y]);return{isChatWindowOpen:n,setSyncedIsChatWindowOpen:a,toggleChatWindow:Q,viewportHeight:i,setViewportHeight:o,viewportWidth:c,setViewportWidth:u,toggleIsBotTyping:E,scrollToBottom:_,getIsChatBotVisible:D}},Sf=()=>{var e,n,a;const{settings:i}=Fe(),{styles:o}=Ze(),{unreadCount:c,isScrolling:u}=Et(),{chatBodyRef:d}=xt(),{scrollToBottom:A}=wn(),[p,h]=R.useState(!1),m={color:(e=i.general)==null?void 0:e.primaryColor,borderColor:(n=i.general)==null?void 0:n.primaryColor,...o.chatMessagePromptHoveredStyle};return N.jsx("div",{className:"rcb-message-prompt-container "+(d.current&&((y=i.chatWindow)!=null&&y.showMessagePrompt)&&u&&c>0?"visible":"hidden"),children:N.jsx("div",{onMouseEnter:()=>{h(!0)},onMouseLeave:()=>{h(!1)},style:p?m:{...o.chatMessagePromptStyle},onMouseDown:C=>{C.preventDefault(),A(600)},className:"rcb-message-prompt-text",children:(a=i.chatWindow)==null?void 0:a.messagePromptText})});var y},eA=R.createContext({messages:[],setSyncedMessages:()=>{},syncedMessagesRef:{current:[]}}),Ul=()=>R.useContext(eA),Ef=({children:e})=>{const[n,a,i]=bn([]);return N.jsx(eA.Provider,{value:{messages:n,setSyncedMessages:a,syncedMessagesRef:i},children:e})},kf=({message:e,isNewSender:n})=>{var a,i,o,c,u,d;const{settings:A}=Fe(),{styles:p}=Ze(),h=typeof e.content=="string",m=e.content,y=e.contentWrapper?N.jsx(e.contentWrapper,{children:m}):m,C={backgroundColor:(a=A.general)==null?void 0:a.primaryColor,color:"#fff",maxWidth:(i=A.userBubble)!=null&&i.showAvatar?"65%":"70%",...p.userBubbleStyle},D=(o=A.userBubble)!=null&&o.animate?"rcb-user-message-entry":"",Q=((c=A.userBubble)==null?void 0:c.showAvatar)&&n,E="rcb-user-message"+(!n&&(u=A.userBubble)!=null&&u.showAvatar?" rcb-user-message-offset":"");return N.jsxs("div",{className:"rcb-user-message-container",children:[h?N.jsx("div",{style:C,className:`${E} ${D}`,children:y}):N.jsx(N.Fragment,{children:y}),Q&&N.jsx("div",{style:{backgroundImage:`url("${(d=A.userBubble)==null?void 0:d.avatar}")`},className:"rcb-message-user-avatar"})]})},Cf=({message:e,isNewSender:n})=>{var a,i,o,c,u,d;const{settings:A}=Fe(),{styles:p}=Ze(),h=typeof e.content=="string",m=e.content,y=e.contentWrapper?N.jsx(e.contentWrapper,{children:m}):m,C={backgroundColor:(a=A.general)==null?void 0:a.secondaryColor,color:"#fff",maxWidth:(i=A.botBubble)!=null&&i.showAvatar?"65%":"70%",...p.botBubbleStyle},D=(o=A.botBubble)!=null&&o.animate?"rcb-bot-message-entry":"",Q=((c=A.botBubble)==null?void 0:c.showAvatar)&&n,E="rcb-bot-message"+(!n&&(u=A.botBubble)!=null&&u.showAvatar?" rcb-bot-message-offset":"");return N.jsxs("div",{className:"rcb-bot-message-container",children:[Q&&N.jsx("div",{style:{backgroundImage:`url("${(d=A.botBubble)==null?void 0:d.avatar}")`},className:"rcb-message-bot-avatar"}),h?N.jsx("div",{style:C,className:`${E} ${D}`,children:y}):N.jsx(N.Fragment,{children:y})]})},Pf=()=>{var e,n,a;const{settings:i}=Fe(),{styles:o}=Ze(),c=(e=i.botBubble)!=null&&e.animate?"rcb-bot-message-entry":"";return N.jsxs("div",{className:"rcb-bot-message-container",children:[((n=i.botBubble)==null?void 0:n.showAvatar)&&N.jsx("div",{style:{backgroundImage:`url("${(a=i.botBubble)==null?void 0:a.avatar}")`},className:"rcb-message-bot-avatar"}),N.jsx("div",{onMouseDown:u=>{u.preventDefault()},className:`rcb-bot-message ${c}`,children:N.jsxs("div",{className:"rcb-typing-indicator",style:{...o==null?void 0:o.rcbTypingIndicatorContainerStyle},children:[N.jsx("span",{className:"rcb-dot",style:{...o==null?void 0:o.rcbTypingIndicatorDotStyle}}),N.jsx("span",{className:"rcb-dot",style:{...o==null?void 0:o.rcbTypingIndicatorDotStyle}}),N.jsx("span",{className:"rcb-dot",style:{...o==null?void 0:o.rcbTypingIndicatorDotStyle}})]})})]})},Tf=()=>{var e,n,a;const{settings:i}=Fe(),{styles:o}=Ze(),{messages:c}=Ul(),{scrollToBottom:u}=wn(),{isBotTyping:d,syncedIsScrollingRef:A}=Et(),{chatBodyRef:p}=xt(),h={...o==null?void 0:o.bodyStyle,scrollbarWidth:(e=i.chatWindow)!=null&&e.showScrollbar?"auto":"none"};return R.useEffect(()=>{A.current||u()},[(n=p.current)==null?void 0:n.scrollHeight]),N.jsxs("div",{style:h,className:"rcb-chat-body-container",ref:p,children:[c.map((m,y)=>{const C=(D=>D===0||c[D].sender!==c[D-1].sender)(y);return m.sender.toUpperCase()==="USER"?N.jsx(kf,{message:m,isNewSender:C},y):m.sender.toUpperCase()==="BOT"?N.jsx(Cf,{message:m,isNewSender:C},y):N.jsx("div",{children:m.content},y)}),d&&((a=i.chatWindow)==null?void 0:a.showTypingIndicator)&&N.jsx(Pf,{}),N.jsx(Sf,{})]})},Df=({checkboxes:e,checkedItems:n,path:a})=>{var i,o,c,u,d,A,p,h,m,y,C;const{settings:D}=Fe(),{styles:Q}=Ze(),{paths:E}=Ci(),{handleSubmitText:I}=ba(),[_,B]=R.useState(new Set),[U,j]=R.useState(!1),z={cursor:U?`url("${(i=D.general)==null?void 0:i.actionDisabledIcon}"), auto`:"pointer",color:(o=D.general)==null?void 0:o.primaryColor,borderColor:(c=D.general)==null?void 0:c.primaryColor,...Q.botCheckboxRowStyle},W={cursor:U||_.size<e.min?`url("${(u=D.general)==null?void 0:u.actionDisabledIcon}"), auto`:"pointer",color:(d=D.general)==null?void 0:d.primaryColor,borderColor:(A=D.general)==null?void 0:A.primaryColor,...Q.botCheckboxNextStyle},te={cursor:U?`url("${(p=D.general)==null?void 0:p.actionDisabledIcon}"), auto`:"pointer",color:"transparent",...Q.botCheckMarkStyle},J={cursor:U?`url("${(h=D.general)==null?void 0:h.actionDisabledIcon}"), auto`:"pointer",color:"#fff",borderColor:(m=D.general)==null?void 0:m.primaryColor,backgroundColor:(y=D.general)==null?void 0:y.primaryColor,...Q.botCheckMarkSelectedStyle};return R.useEffect(()=>{E.length>0&&E[E.length-1]!==a&&j(!e.reusable)},[E]),N.jsxs("div",{className:"rcb-checkbox-container "+((C=D.botBubble)!=null&&C.showAvatar?"rcb-checkbox-offset":""),children:[e.items.map(Y=>N.jsx("div",{onMouseDown:ee=>{ee.preventDefault(),(Z=>{U||B(ie=>{const ue=new Set(ie);if(ue.has(Z))n.delete(Z),ue.delete(Z);else{if(_.size==e.max)return ie;n.add(Z),ue.add(Z)}return ue})})(Y)},style:z,className:"rcb-checkbox-row-container",children:N.jsxs("div",{className:"rcb-checkbox-row",children:[N.jsx("div",{style:_.has(Y)?J:te,className:"rcb-checkbox-mark"}),N.jsx("div",{className:"rcb-checkbox-label",children:Y})]})},Y)),N.jsx("div",{style:W,className:"rcb-checkbox-next-button",onMouseDown:Y=>{var ee;if(Y.preventDefault(),U||_.size<e.min)return;const Z=Array.from(n).join(", ");let ie;j(!e.reusable),ie=e.sendOutput!=null?e.sendOutput:((ee=D.chatInput)==null?void 0:ee.sendCheckboxOutput)??!0,I(Z,ie)}})]})},If=async(e,n)=>{const a=e.checkboxes;if(!a)return;let i;if(typeof a=="function"?(i=a(n),i instanceof Promise&&(i=await i)):i=a,Array.isArray(i)&&(i={items:i}),!("items"in i)||i.items.length==0)return;i.min==null&&(i.min=1),i.max==null&&(i.max=i.items.length),i.min>i.max&&(i.min=i.max),i.reusable==null&&(i.reusable=!1);const o=new Set,c=n.currPath,u=N.jsx(Df,{checkboxes:i,checkedItems:o,path:c});await n.injectMessage(u)},Bf=async(e,n)=>{const a=e.function;if(!a)return;const i=a(n);return i instanceof Promise?await i:i},Mf=async(e,n,a)=>{const i=e.message;if(!i)return;if(typeof i=="string")return void(i.trim()!==""&&(a?await n.simulateStreamMessage(i):await n.injectMessage(i)));let o=i(n);o instanceof Promise&&(o=await o),typeof o=="string"&&o.trim()!==""&&(a?await n.simulateStreamMessage(o):await n.injectMessage(o))},Rf=({options:e,path:n})=>{var a,i,o,c,u,d;const{settings:A}=Fe(),{styles:p}=Ze(),{paths:h}=Ci(),{handleSubmitText:m}=ba(),[y,C]=R.useState([]),[D,Q]=R.useState(!1),E={cursor:D?`url("${(a=A.general)==null?void 0:a.actionDisabledIcon}"), auto`:"pointer",color:(i=A.general)==null?void 0:i.primaryColor,borderColor:(o=A.general)==null?void 0:o.primaryColor,backgroundColor:"#fff",...p.botOptionStyle},I={color:"#fff",borderColor:(c=A.general)==null?void 0:c.primaryColor,backgroundColor:(u=A.general)==null?void 0:u.primaryColor,...p.botOptionHoveredStyle};return R.useEffect(()=>{h.length>0&&h[h.length-1]!==n&&Q(!e.reusable)},[h]),N.jsx("div",{className:"rcb-options-container "+((d=A.botBubble)!=null&&d.showAvatar?"rcb-options-offset":""),children:e.items.map((_,B)=>{const U=y[B]&&!D;return N.jsx("div",{className:"rcb-options",style:U?I:E,onMouseEnter:()=>(j=>{C(z=>{const W=[...z];return W[j]=!0,W})})(B),onMouseLeave:()=>(j=>{C(z=>{const W=[...z];return W[j]=!1,W})})(B),onMouseDown:j=>{var z;if(j.preventDefault(),D)return;let W;Q(!e.reusable),W=e.sendOutput!=null?e.sendOutput:((z=A.chatInput)==null?void 0:z.sendOptionOutput)??!0,m(_,W)},children:_},_)})})},Of=async(e,n)=>{const a=e.options;if(!a)return;let i;if(typeof a=="function"?(i=a(n),i instanceof Promise&&(i=await i)):i=a,Array.isArray(i)&&(i={items:i}),!("items"in i)||i.items.length==0)return;i.reusable==null&&(i.reusable=!1);const o=n.currPath,c=N.jsx(Rf,{options:i,path:o});await n.injectMessage(c)},Ff=async(e,n)=>{const a=e.component;if(a){if(typeof a=="function"){let i=a(n);return i instanceof Promise&&(i=await i),i?void await n.injectMessage(i):void 0}await n.injectMessage(a)}},Lf=async(e,n,a,i)=>{const o=e.transition;let c;if(typeof o=="function"?(c=o(n),c instanceof Promise&&(c=await c)):c=o,typeof c=="number"&&(c={duration:c}),!c||c instanceof Promise||c.duration==null||typeof c.duration!="number")return;c.interruptable==null&&(c.interruptable=!1);const u=setTimeout(async()=>{const d=await i(e);d&&await nA(d,n)},c.duration);c.interruptable&&(a.current=u)},Qf=async(e,n,a)=>{const i=e.chatDisabled;if(i==null)return;let o;typeof i=="function"?(o=i(n),o instanceof Promise&&(o=await o)):o=i,a(o)},tA=async(e,n,a)=>{const i=e.isSensitive;if(!i)return void a(!1);let o;typeof i=="function"?(o=i(n),o instanceof Promise&&(o=await o)):o=i,a(o)},nA=async(e,n)=>{if(!e)throw new Error("Block is not valid.");const a=Object.keys(e);for(const i of a)i==="function"&&await Bf(e,n);a.includes("path")&&await(async(i,o)=>{const c=i.path;if(!c)return!1;if(typeof c=="string")return await o.goToPath(c),!0;let u=c(o);if(u instanceof Promise&&(u=await u),!u)return!1;const d=u;return await o.goToPath(d),!0})(e,n)},_f=()=>{var e;const{settings:n}=Fe(),{styles:a}=Ze();return N.jsx("div",{className:"rcb-line-break-container",children:N.jsx("div",{style:{...a.chatHistoryLineBreakStyle},className:"rcb-line-break-text","data-testid":"chat-history-line-break-text",children:(e=n.chatHistory)==null?void 0:e.chatHistoryLineBreakText})})},Hf=()=>{var e;const{settings:n}=Fe(),{styles:a}=Ze(),i={borderTop:`4px solid ${(e=n.general)==null?void 0:e.primaryColor}`,...a.loadingSpinnerStyle};return N.jsx("div",{className:"rcb-spinner-container",children:N.jsx("div",{style:i,className:"rcb-spinner"})})},Is=()=>{try{if(typeof crypto<"u"&&typeof crypto.randomUUID=="function")return crypto.randomUUID();throw new Error("crypto.randomUUID not available")}catch(e){if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function")return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){const a=crypto.getRandomValues(new Uint8Array(1))[0]%16;return(n==="x"?a:3&a|8).toString(16)});throw console.error(e),new Error("crypto.getRandomValues is also not available")}},Jr=(e,n)=>({id:Is(),content:e,sender:n,type:typeof e=="string"?"string":"object",timestamp:new Date().toUTCString(),tags:[]});let Kr,rA=!1,Bs="rcb-history",Ms=30,oA=!1,Pi=[];const zl=async e=>{if(oA||!Kr)return;const n=[],a=rA?Pi.length:0;for(let o=e.length-1;o>=a;o--){const c=e[o];if(c.sender.toUpperCase()!=="SYSTEM"&&(c.content!==""&&n.unshift(c),n.length===Ms))break}let i=n.map(Uf);if(i.length<Ms){const o=Ms-i.length;i=[...Pi.slice(-o),...i]}aA(i)},jl=()=>Pi,Nf=e=>{aA(e),Pi=e},aA=e=>{Kr&&Kr.setItem(Bs,JSON.stringify(e))},Wl=e=>{var n,a,i,o,c;Kr=((a=(n=e.chatHistory)==null?void 0:n.storageType)==null?void 0:a.toUpperCase())==="SESSION_STORAGE"?sessionStorage:localStorage,Bs=(i=e.chatHistory)==null?void 0:i.storageKey,Ms=(o=e.chatHistory)==null?void 0:o.maxEntries,oA=(c=e.chatHistory)==null?void 0:c.disabled,Pi=(u=>{if(u!=null)try{return JSON.parse(u)}catch{return[]}return[]})(Kr.getItem(Bs))},Uf=e=>R.isValidElement(e.content)?structuredClone({id:e.id,content:Io.renderToString(e.content),type:e.type,sender:e.sender.toUpperCase(),timestamp:e.timestamp,tags:e.tags}):e,iA=(e,n,a)=>{const i=new DOMParser().parseFromString(e,"text/html");return Array.from(i.body.childNodes).map((o,c)=>{var u;if(o.nodeType===Node.TEXT_NODE)return o.textContent;{const d=o.tagName.toLowerCase();let A=Array.from(o.attributes).reduce((p,h)=>{const m=h.name.toLowerCase();if(m==="style"){const y=h.value.split(";").filter(D=>D.trim()!==""),C={};y.forEach(D=>{const[Q,E]=D.split(":").map(_=>_.trim()),I=Q.replace(/-([a-z])/g,(_,B)=>B.toUpperCase());C[I]=E}),p[m]=C}else d!=="audio"&&d!=="video"||m!=="controls"||h.value!==""?p[m]=h.value:p[m]="true";return p},{});if(Object.prototype.hasOwnProperty.call(A,"class")){const p=o.classList;A.className=p.toString(),delete A.class,(u=n.botBubble)!=null&&u.showAvatar&&(A=zf(p,A)),A=jf(p,A,n,a),A=Wf(p,A,n,a),A=Yf(p,A,n,a),A=Gf(p,A,n,a)}if(["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"].includes(d))return R.createElement(d,{key:c,...A});{const p=iA(o.innerHTML,n,a);return R.createElement(d,{key:c,...A},...p)}}})},zf=(e,n)=>((e.contains("rcb-options-container")||e.contains("rcb-checkbox-container"))&&(n.className=`${e.toString()} rcb-options-offset`),n),jf=(e,n,a,i)=>{var o,c,u,d,A;return e.contains("rcb-options")&&(n.style={...n.style,color:((o=i.botOptionStyle)==null?void 0:o.color)??((c=a.general)==null?void 0:c.primaryColor),borderColor:((u=i.botOptionStyle)==null?void 0:u.color)??((d=a.general)==null?void 0:d.primaryColor),cursor:`url("${(A=a.general)==null?void 0:A.actionDisabledIcon}"), auto`,...i.botOptionStyle}),n},Wf=(e,n,a,i)=>{var o,c,u,d,A;return e.contains("rcb-checkbox-row-container")&&(n.style={...n.style,color:((o=i.botCheckboxRowStyle)==null?void 0:o.color)??((c=a.general)==null?void 0:c.primaryColor),borderColor:((u=i.botCheckboxRowStyle)==null?void 0:u.color)??((d=a.general)==null?void 0:d.primaryColor),cursor:`url("${(A=a.general)==null?void 0:A.actionDisabledIcon}"), auto`,...i.botCheckboxRowStyle}),n},Yf=(e,n,a,i)=>{var o,c,u,d,A;return e.contains("rcb-checkbox-next-button")&&(n.style={...n.style,color:((o=i.botCheckboxNextStyle)==null?void 0:o.color)??((c=a.general)==null?void 0:c.primaryColor),borderColor:((u=i.botCheckboxNextStyle)==null?void 0:u.color)??((d=a.general)==null?void 0:d.primaryColor),cursor:`url("${(A=a.general)==null?void 0:A.actionDisabledIcon}"), auto`,...i.botCheckboxNextStyle}),n},Gf=(e,n,a,i)=>{var o,c;return(e.contains("rcb-media-display-image-container")||e.contains("rcb-media-display-video-container"))&&(n.style={...n.style,backgroundColor:(o=a.general)==null?void 0:o.primaryColor,maxWidth:(c=a.userBubble)!=null&&c.showAvatar?"65%":"70%",...i.mediaDisplayContainerStyle}),n},Yl=()=>{const{settings:e}=Fe(),{notificationsToggledOn:n,setSyncedNotificationsToggledOn:a,hasInteractedPage:i,unreadCount:o,setUnreadCount:c,syncedNotificationsToggledOnRef:u}=Et(),{audioBufferRef:d,audioContextRef:A,gainNodeRef:p}=xt(),{dispatchRcbEvent:h}=Vn(),m=R.useCallback(async()=>{var C,D;const Q=(C=e.notification)==null?void 0:C.sound;A.current=new AudioContext;const E=A.current.createGain();let I;if(E.gain.value=((D=e.notification)==null?void 0:D.volume)??.2,p.current=E,Q!=null&&Q.startsWith("data:audio")){const _=atob(Q.split(",")[1]),B=new ArrayBuffer(_.length),U=new Uint8Array(B);for(let j=0;j<_.length;j++)U[j]=_.charCodeAt(j);I=B}else I=await(await fetch(Q)).arrayBuffer();d.current=await A.current.decodeAudioData(I)},[e.notification]),y=R.useCallback(()=>{var C;if((C=e.notification)!=null&&C.disabled||!u.current||!i||!A.current||!d.current)return;const D=A.current.createBufferSource();D.buffer=d.current,D.connect(p.current).connect(A.current.destination),D.start()},[e.notification,u,i,A,d,p]);return{unreadCount:o,setUnreadCount:c,notificationsToggledOn:n,toggleNotifications:R.useCallback(async C=>{var D;C!==u.current&&((D=e.event)!=null&&D.rcbToggleNotifications&&(await h(ye.TOGGLE_NOTIFICATIONS,{currState:u.current,newState:!u.current})).defaultPrevented||a(Q=>!Q))},[u]),playNotificationSound:y,setUpNotifications:m}},Vf=(e,n)=>{var a,i,o,c;((u,d,A,p,h)=>{if(!window.SpeechSynthesisUtterance)return void console.info("Speech Synthesis API is not supported in this environment.");const m=new window.SpeechSynthesisUtterance;m.text=u,m.lang=d,m.rate=p,m.volume=h;let y=!1;for(const C of A)if(window.speechSynthesis.getVoices().find(D=>{if(D.name===C)return m.voice=D,window.speechSynthesis.speak(m),void(y=!0)}),y)break;y||window.speechSynthesis.speak(m)})(n,(a=e.audio)==null?void 0:a.language,(i=e.audio)==null?void 0:i.voiceNames,(o=e.audio)==null?void 0:o.rate,(c=e.audio)==null?void 0:c.volume)},sA=()=>{const{settings:e}=Fe(),{audioToggledOn:n,setSyncedAudioToggledOn:a,syncedAudioToggledOnRef:i}=Et(),{dispatchRcbEvent:o}=Vn(),c=R.useCallback(async d=>{var A;d!==i.current&&((A=e.event)!=null&&A.rcbToggleAudio&&(await o(ye.TOGGLE_AUDIO,{currState:i.current,newState:!i.current})).defaultPrevented||a(p=>!p))},[i]),u=R.useCallback(async d=>{var A,p;if((A=e.audio)!=null&&A.disabled||!i.current)return;let h=d;if((p=e.event)!=null&&p.rcbStartSpeakAudio){const m=await o(ye.START_SPEAK_AUDIO,{textToRead:h});if(m.defaultPrevented)return;h=m.data.textToRead}Vf(e,h)},[e,i]);return{audioToggledOn:n,speakAudio:u,toggleAudio:c}},Oo=()=>{var e,n;const{settings:a}=Fe(),{messages:i,setSyncedMessages:o,syncedMessagesRef:c}=Ul(),{setSyncedIsBotTyping:u,setUnreadCount:d,syncedIsScrollingRef:A,syncedIsChatWindowOpenRef:p}=Et(),{streamMessageMap:h,chatBodyRef:m,paramsInputRef:y}=xt(),{scrollToBottom:C,getIsChatBotVisible:D}=wn(),{dispatchRcbEvent:Q}=Vn(),{speakAudio:E}=sA(),{playNotificationSound:I}=Yl(),_=R.useCallback((J,Y=!1)=>{var ee,Z;zl(J);let ie=!0;const ue=J[J.length-1];if(!ue)return;const se=ue.sender.toUpperCase();se==="USER"&&(ie=!1),(ee=a.general)!=null&&ee.embedded&&D()&&(ie=!1),(p.current&&!A.current||Y)&&(ie=!1),ie&&I(),!Y&&(se!=="USER"&&(Z=a.chatWindow)!=null&&Z.autoJumpToBottom||se==="USER"||!A.current)&&setTimeout(()=>C(),1)},[a,m,p,A,I,C,D]),B=R.useCallback(async(J,Y="BOT",ee=null)=>{var Z,ie,ue,se,xe;if(typeof J!="string")throw new Error("Content must be of type string to simulate stream.");Y=Y.toUpperCase();let ge=Jr(J,Y);if((Z=a.event)!=null&&Z.rcbStartSimulateStreamMessage){const he=await Q(ye.START_SIMULATE_STREAM_MESSAGE,{message:ge});if(he.defaultPrevented)return null;ee=he.data.simulateStreamChunker||ee,ge=he.data.message}u(!1);let me=30;me=Y==="BOT"?(ie=a.botBubble)==null?void 0:ie.streamSpeed:(ue=a.userBubble)==null?void 0:ue.streamSpeed;const M={...ge,content:""};o(he=>[...he,M]),_(c.current);let fe=ge.content;ee&&(fe=ee(fe));let O=0;const de=fe.length;ge.sender.toUpperCase()==="BOT"&&(p.current||(se=a.general)!=null&&se.embedded)&&typeof ge.content=="string"&&ge.content.trim()!==""&&E(ge.content);const Ee=new Promise(he=>{const ve=setInterval(()=>{if(O>=de)return clearInterval(ve),void he();o(Te=>{const Qe=[...Te];for(let tt=Qe.length-1;tt>=0;tt--)if(Qe[tt].id===M.id){const Le=fe[O];Le&&(M.content+=Le,Qe[tt]=M),O++;break}return Qe})},me)});return(A.current||!p.current)&&d(he=>he+1),await Ee,zl(c.current),(xe=a.event)!=null&&xe.rcbStopSimulateStreamMessage&&await Q(ye.STOP_SIMULATE_STREAM_MESSAGE,{message:ge}),Y==="USER"&&(y.current=J),ge},[a,Q,_,c,y,u,d,p,E]),U=R.useCallback(async(J,Y="BOT")=>{var ee,Z,ie;Y=Y.toUpperCase();let ue=Jr(J,Y);if((ee=a.event)!=null&&ee.rcbPreInjectMessage){const se=await Q(ye.PRE_INJECT_MESSAGE,{message:ue});if(se.defaultPrevented)return null;ue=se.data.message}return ue.sender.toUpperCase()==="BOT"&&(p.current||(Z=a.general)!=null&&Z.embedded)&&typeof ue.content=="string"&&ue.content.trim()!==""&&E(ue.content),(A.current||!p.current)&&d(se=>se+1),(ie=a.event)!=null&&ie.rcbPostInjectMessage&&await Q(ye.POST_INJECT_MESSAGE,{message:ue}),o(se=>[...se,ue]),_(c.current),Y==="USER"&&typeof J=="string"&&(y.current=J),ue},[a,Q,_,y,c,p,E,d]),j=R.useCallback(async J=>{var Y;const ee=c.current.find(Z=>Z.id===J);return!ee||(Y=a.event)!=null&&Y.rcbRemoveMessage&&(await Q(ye.REMOVE_MESSAGE,{message:ee})).defaultPrevented?null:(o(Z=>Z.filter(ie=>ie.id!==J)),_(c.current),d(Z=>Math.max(Z-1,0)),ee)},[Q,(e=a.event)==null?void 0:e.rcbRemoveMessage,_,c,d]),z=R.useCallback(async(J,Y="BOT")=>{var ee,Z;if(Y=Y.toUpperCase(),!h.current.has(Y)){const ue=Jr(J,Y);return(ee=a.event)!=null&&ee.rcbStartStreamMessage&&(await Q(ye.START_STREAM_MESSAGE,{message:ue})).defaultPrevented?null:(u(!1),o(se=>[...se,ue]),_(c.current),h.current.set(Y,ue.id),(A.current||!p.current)&&d(se=>se+1),ue)}const ie={...Jr(J,Y),id:h.current.get(Y)};return(Z=a.event)!=null&&Z.rcbChunkStreamMessage&&(await Q(ye.CHUNK_STREAM_MESSAGE,{message:ie})).defaultPrevented?null:(o(ue=>ue.map(se=>se.id===ie.id?ie:se)),_(c.current,!0),ie)},[Q,a.event,_,c,u,d,h]),W=R.useCallback(async(J="BOT")=>{var Y;if(J=J.toUpperCase(),!h.current.has(J))return!0;const ee=h.current.get(J);let Z;for(let ie=0;ie<3;ie++){const ue=c.current.find(se=>se.id===ee);ue&&(Z=ue),await new Promise(se=>setTimeout(se,20))}return((Y=a.event)==null||!Y.rcbStopStreamMessage||!(await Q(ye.STOP_STREAM_MESSAGE,{message:Z})).defaultPrevented)&&(h.current.delete(J),zl(c.current),J==="USER"&&typeof(Z==null?void 0:Z.content)=="string"&&(y.current=Z.content),!0)},[Q,(n=a.event)==null?void 0:n.rcbStopStreamMessage,h,y]),te=R.useCallback(J=>{const Y=typeof J=="function"?J(c.current):J;o(Y),_(Y)},[_,c]);return{simulateStreamMessage:B,injectMessage:U,removeMessage:j,streamMessage:z,endStreamMessage:W,replaceMessages:te,messages:i}};let Gl,sr,Rs,$r=!1,lr=null;const Vl=()=>{if(!Gl){const e=window.SpeechRecognition||window.webkitSpeechRecognition;Gl=e!=null?new e:null}return Gl},Xf=(e,n,a,i,o,c)=>{var u,d,A;const p=Vl();if(!p)return;if(!$r)try{$r=!0,p.lang=(u=e.voice)==null?void 0:u.language,p.start()}catch{}const h=(d=e.voice)==null?void 0:d.timeoutPeriod,m=(A=e.voice)==null?void 0:A.autoSendPeriod;p.onresult=y=>{var C,D;clearTimeout(sr),sr=null,clearTimeout(Rs);const Q=y.results[y.results.length-1][0].transcript;if(c.current){const E=(C=e.chatInput)==null?void 0:C.characterLimit,I=c.current.value+Q;E!=null&&E>=0&&I.length>E?i(I.slice(0,E)):i(I),o(c.current.value.length)}h&&(sr=setTimeout(async()=>await Jl(n,c),h)),(D=e.voice)!=null&&D.autoSendDisabled||(Rs=setTimeout(a,m))},p.onend=()=>{$r?(p.start(),!sr&&h&&(sr=setTimeout(async()=>await Jl(n,c),h))):(clearTimeout(sr),sr=null,clearTimeout(Rs))},h&&(sr=setTimeout(async()=>await Jl(n,c),h))},Jf=(e,n)=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(a=>{if(lr=new MediaRecorder(a),!$r)try{$r=!0,lr.start()}catch{}lr.ondataavailable=i=>{n.current&&n.current.push(i.data)},lr.onstop=()=>{e(),a.getTracks().forEach(i=>i.stop())}}).catch(a=>{console.error("Unable to use microphone:",a)})},Xl=()=>{const e=Vl();e&&($r=!1,e&&e.stop(),lr&&lr.state!=="inactive"&&(lr.stop(),lr=null),clearTimeout(sr),sr=null,clearTimeout(Rs))},Jl=async(e,n)=>{var a;(a=n.current)!=null&&a.disabled||await e(),Xl()},Kl=()=>{const{settings:e}=Fe(),{voiceToggledOn:n,setSyncedVoiceToggledOn:a,syncedVoiceToggledOnRef:i}=Et(),{dispatchRcbEvent:o}=Vn(),c=R.useCallback(async d=>{var A;d!==i.current&&((A=e.event)!=null&&A.rcbToggleVoice&&(await o(ye.TOGGLE_VOICE,{currState:i.current,newState:!i.current})).defaultPrevented||a(p=>!p))},[i]),u=R.useCallback(d=>{((A,p)=>{var h,m,y;const C=Vl();(h=p.voice)!=null&&h.disabled||(m=p.chatInput)==null||!m.blockSpam||!C||(A&&!$r?($r=!0,(y=p.voice)!=null&&y.sendAsAudio?lr==null||lr.start():C.start()):A||Xl())})(d,e)},[e]);return{voiceToggledOn:n,toggleVoice:c,syncVoice:u}},Fo=()=>{var e;const{settings:n}=Fe(),{inputLength:a,setInputLength:i,textAreaDisabled:o,setSyncedTextAreaDisabled:c,textAreaSensitiveMode:u,setSyncedTextAreaSensitiveMode:d,syncedTextAreaDisabledRef:A,syncedTextAreaSensitiveModeRef:p}=Et(),{inputRef:h,chatBodyRef:m,prevInputRef:y}=xt(),{dispatchRcbEvent:C}=Vn(),{getIsChatBotVisible:D}=wn(),Q=R.useCallback(async z=>{var W,te,J;if(A.current&&h.current)h.current.value="";else if(h.current&&y.current!==null){const Y=(W=n.chatInput)==null?void 0:W.characterLimit,ee=(te=n.chatInput)!=null&&te.allowNewline?z:z.replace(/\n/g," ");if(Y!=null&&Y>=0&&ee.length>Y?h.current.value=ee.slice(0,Y):h.current.value=ee,(J=n.event)!=null&&J.rcbTextAreaChangeValue&&(await C(ye.TEXT_AREA_CHANGE_VALUE,{currValue:h.current.value,prevValue:y.current})).defaultPrevented)return void(h.current.value=y.current);y.current=h.current.value}},[A,h,y,n,C]),E=R.useCallback(z=>{var W;(W=h.current)!=null&&W.disabled||setTimeout(()=>{var te,J,Y;(te=n.general)!=null&&te.embedded?D()&&((J=h.current)==null||J.focus()):z!=="start"&&((Y=h.current)==null||Y.focus())},100)},[h,(e=n.general)==null?void 0:e.embedded,m,D]),I=R.useCallback(()=>{h.current&&h.current.focus()},[]),_=R.useCallback(()=>{h.current&&h.current.blur()},[]),B=R.useCallback(()=>h&&h.current?h.current.value:"",[]),U=R.useCallback(z=>{z!==A.current&&c(W=>!W)},[A]),j=R.useCallback(z=>{z!==p.current&&d(W=>!W)},[p]);return{textAreaDisabled:o,setSyncedTextAreaDisabled:c,textAreaSensitiveMode:u,setSyncedTextAreaSensitiveMode:d,inputLength:a,setInputLength:i,getTextAreaValue:B,setTextAreaValue:Q,updateTextAreaFocus:E,focusTextArea:I,blurTextArea:_,toggleTextAreaDisabled:U,toggleTextAreaSensitiveMode:j}},lA=R.createContext({toasts:[],setSyncedToasts:()=>{},syncedToastsRef:{current:[]}}),cA=()=>R.useContext(lA),Kf=({children:e})=>{const[n,a,i]=bn([]);return N.jsx(lA.Provider,{value:{toasts:n,setSyncedToasts:a,syncedToastsRef:i},children:e})},ya=()=>{const{settings:e}=Fe(),{toasts:n,setSyncedToasts:a,syncedToastsRef:i}=cA(),{dispatchRcbEvent:o}=Vn(),c=R.useCallback(async(A,p)=>{var h,m,y,C;let D=null;if(i.current.length>=(((h=e.toast)==null?void 0:h.maxCount)??3)){if((m=e.toast)!=null&&m.forbidOnMax)return null;D=Is();let E={id:D,content:A,timeout:p};if((y=e.event)!=null&&y.rcbShowToast){const I=await o(ye.SHOW_TOAST,{toast:E});if(I.defaultPrevented)return null;E=I.data.toast}return a(I=>[...I.slice(1),E]),D}D=Is();let Q={id:D,content:A,timeout:p};if((C=e.event)!=null&&C.rcbShowToast){const E=await o(ye.SHOW_TOAST,{toast:Q});if(E.defaultPrevented)return null;Q=E.data.toast}return a(E=>[...E,Q]),D},[e,o]),u=R.useCallback(async A=>{var p;const h=i.current.find(m=>m.id===A);return!h||(p=e.event)!=null&&p.rcbDismissToast&&(await o(ye.DISMISS_TOAST,{toast:h})).defaultPrevented?null:(a(m=>m.filter(y=>y.id!==A)),A)},[o]),d=R.useCallback(A=>{const p=typeof A=="function"?A(i.current):A;a(p)},[i]);return{showToast:c,dismissToast:u,toasts:n,replaceToasts:d}},Os=()=>{var e,n,a,i,o;const{settings:c}=Fe(),{paths:u,setSyncedPaths:d,syncedPathsRef:A}=Ci(),{flowRef:p,streamMessageMap:h,paramsInputRef:m,keepVoiceOnRef:y,timeoutIdRef:C}=xt(),{setSyncedIsBotTyping:D,setSyncedTextAreaDisabled:Q,setSyncedTextAreaSensitiveMode:E,blockAllowsAttachment:I,setBlockAllowsAttachment:_}=Et(),{dispatchRcbEvent:B}=Vn(),{endStreamMessage:U,injectMessage:j,removeMessage:z,simulateStreamMessage:W,streamMessage:te}=Oo(),{showToast:J,dismissToast:Y}=ya(),{toggleChatWindow:ee}=wn(),{updateTextAreaFocus:Z,setTextAreaValue:ie}=Fo(),{syncVoice:ue}=Kl(),se=R.useCallback(async O=>{var de;if((de=c.event)!=null&&de.rcbPostProcessBlock){const Ee=await B(ye.POST_PROCESS_BLOCK,{block:O});if(Ee.defaultPrevented)return null;O=Ee.data.block}return O},[(e=c.event)==null?void 0:e.rcbPostProcessBlock,B]),xe=R.useCallback(async(O,de)=>{var Ee,he,ve,Te;if(!O)return;let Qe=p.current[O];if(!Qe)return void D(!1);if((Ee=c.event)!=null&&Ee.rcbPreProcessBlock){const Le=await B(ye.PRE_PROCESS_BLOCK,{block:Qe});if(Le.defaultPrevented)return;Qe=Le.data.block}D(!0),(he=c.chatInput)!=null&&he.blockSpam&&Q(!0),E(!1);const tt={prevPath:de,currPath:O,goToPath:M,setTextAreaValue:ie,userInput:m.current,endStreamMessage:U,injectMessage:j,removeMessage:z,simulateStreamMessage:W,streamMessage:te,toggleChatWindow:ee,showToast:J,dismissToast:Y};await(async(Le,Je,qe,ft,Ne,We,ct)=>{if(!Le)throw new Error("Block is not valid.");for(const ht of Object.keys(Le))switch(ht){case"message":await Mf(Le,Je,qe);break;case"options":await Of(Le,Je);break;case"checkboxes":await If(Le,Je);break;case"component":await Ff(Le,Je);break;case"chatDisabled":await Qf(Le,Je,Ne);break;case"isSensitive":await tA(Le,Je,We);break;case"transition":await Lf(Le,Je,ft,ct)}})(Qe,tt,((ve=c.botBubble)==null?void 0:ve.simulateStream)??!1,C,Q,E,se),D(!1),"chatDisabled"in Qe||Q((Te=c.chatInput)==null?void 0:Te.disabled),"isSensitive"in Qe||E(!1),_(typeof Qe.file=="function"),Z(O),ue(y.current&&!Qe.chatDisabled),O!==de&&h.current.clear()},[p,Z,ue,(n=c.botBubble)==null?void 0:n.simulateStream,(a=c.chatInput)==null?void 0:a.disabled,m,U,j,z,W,te,ee,J,Y,y,h]),ge=R.useCallback(()=>A.current.length>0?A.current.at(-1)??null:null,[]),me=R.useCallback(()=>A.current.length>1?A.current.at(-2)??null:null,[]),M=R.useCallback(async O=>{var de;const Ee=ge(),he=me();return((de=c.event)==null||!de.rcbChangePath||!(await B(ye.CHANGE_PATH,{currPath:Ee,prevPath:he,nextPath:O})).defaultPrevented)&&(d(ve=>[...ve,O]),await xe(O,Ee),!0)},[(i=c.chatInput)==null?void 0:i.blockSpam,(o=c.event)==null?void 0:o.rcbChangePath,xe,B]),fe=R.useCallback(O=>{const de=typeof O=="function"?O(A.current):O;d(de)},[A]);return{getCurrPath:ge,getPrevPath:me,goToPath:M,blockAllowsAttachment:I,setBlockAllowsAttachment:_,paths:u,replacePaths:fe,firePostProcessBlockEvent:se}},ba=()=>{var e,n,a,i;const{settings:o}=Fe(),{endStreamMessage:c,injectMessage:u,removeMessage:d,simulateStreamMessage:A,streamMessage:p}=Oo(),{syncedPathsRef:h}=Ci(),{getCurrPath:m,getPrevPath:y,goToPath:C,firePostProcessBlockEvent:D}=Os(),{setSyncedTextAreaSensitiveMode:Q,setSyncedTextAreaDisabled:E,setSyncedIsBotTyping:I,setBlockAllowsAttachment:_,setInputLength:B,syncedVoiceToggledOnRef:U,syncedTextAreaSensitiveModeRef:j}=Et(),{flowRef:z,inputRef:W,keepVoiceOnRef:te,paramsInputRef:J,timeoutIdRef:Y}=xt(),{showToast:ee,dismissToast:Z}=ya(),{dispatchRcbEvent:ie}=Vn(),{syncVoice:ue}=Kl(),{setTextAreaValue:se}=Fo(),{toggleChatWindow:xe}=wn(),ge=R.useCallback(async M=>{var fe,O,de,Ee,he,ve;const Te=m();if(Te&&z.current[Te]){if(j.current){if((fe=o==null?void 0:o.sensitiveInput)!=null&&fe.hideInUserBubble)return;if((O=o==null?void 0:o.sensitiveInput)!=null&&O.maskInUserBubble)return void((de=o.userBubble)!=null&&de.simulateStream?await A("*".repeat(((Ee=o.sensitiveInput)==null?void 0:Ee.asterisksCount)??10),"USER"):await u("*".repeat(((he=o.sensitiveInput)==null?void 0:he.asterisksCount)??10),"USER"))}(ve=o.userBubble)!=null&&ve.simulateStream?await A(M,"USER"):await u(M,"USER")}},[z,m,o,u,A,j]),me=R.useCallback(async(M,fe=!0)=>{var O,de;if((M=M.trim())==="")return;fe&&await ge(M),Y.current&&clearTimeout(Y.current),W.current&&(se(""),B(0));const Ee=m();if(!Ee)return;let he=z.current[Ee];const ve=await D(he);ve&&((O=o.chatInput)!=null&&O.blockSpam&&E(!0),te.current=U.current,ue(!1),setTimeout(()=>{I(!0)},400),Q(!1),setTimeout(async()=>{var Te;const Qe={prevPath:y(),currPath:m(),goToPath:C,setTextAreaValue:se,userInput:J.current,injectMessage:u,simulateStreamMessage:A,streamMessage:p,removeMessage:d,endStreamMessage:c,toggleChatWindow:xe,showToast:ee,dismissToast:Z},tt=h.current.length;await nA(ve,Qe),h.current.length===tt&&(E("chatDisabled"in he?!!he.chatDisabled:!((Te=o.chatInput)==null||!Te.disabled)),tA(he,Qe,Q),_(typeof he.file=="function"),ue(te.current),I(!1))},(de=o.chatInput)==null?void 0:de.botDelay))},[Y,(e=o.chatInput)==null?void 0:e.blockSpam,(n=o.chatInput)==null?void 0:n.botDelay,(a=o.chatInput)==null?void 0:a.disabled,te,U,ue,ge,y,m,C,u,A,p,d,c,xe,ee,Z,z]);return{handleSubmitText:R.useCallback(async(M,fe=!0)=>{var O,de;M=M??((O=W.current)==null?void 0:O.value),!((de=o.event)!=null&&de.rcbUserSubmitText&&(await ie(ye.USER_SUBMIT_TEXT,{inputText:M,sendInChat:fe})).defaultPrevented||!m())&&me(M,fe)},[ie,m,me,W,(i=o.event)==null?void 0:i.rcbUserSubmitText])}},Fs=()=>{var e;const{settings:n}=Fe();return R.useMemo(()=>{var a;if(typeof window>"u"||!window.navigator)return!1;if((a=n.device)==null||!a.applyMobileOptimizations)return!0;const i=navigator.userAgent,o=!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(i),c=window.innerWidth>=768;return o&&c},[(e=n.device)==null?void 0:e.applyMobileOptimizations])},$f=({buttons:e})=>{var n,a,i,o,c,u,d,A,p,h,m;const y=Fs(),{settings:C}=Fe(),{styles:D}=Ze(),{textAreaDisabled:Q,textAreaSensitiveMode:E,inputLength:I,hasFlowStarted:_,setHasFlowStarted:B,setInputLength:U}=Et(),{inputRef:j}=xt(),[z,W]=R.useState(!1),[te,J]=R.useState(!1),{handleSubmitText:Y}=ba(),{setTextAreaValue:ee}=Fo(),Z={boxSizing:y?"content-box":"border-box",...D.chatInputAreaStyle},ie={outline:Q?"":"none",boxShadow:Q?"":`0 0 5px ${(n=C.general)==null?void 0:n.primaryColor}`,boxSizing:y?"content-box":"border-box",...D.chatInputAreaStyle,...D.chatInputAreaFocusedStyle},ue={cursor:`url("${(a=C.general)==null?void 0:a.actionDisabledIcon}"), auto`,caretColor:"transparent",boxSizing:y?"content-box":"border-box",...D.chatInputAreaStyle,...D.chatInputAreaDisabledStyle},se={color:"#989898",...D.characterLimitStyle},xe={color:"#ff0000",...D.characterLimitReachedStyle},ge=Q?(i=C.chatInput)==null?void 0:i.disabledPlaceholderText:(o=C.chatInput)==null?void 0:o.enabledPlaceholderText,me=()=>{Q||W(!0)},M=()=>{W(!1)},fe=()=>{J(!0)},O=()=>{J(!1)},de=async he=>{var ve;if(!te&&he.key==="Enter"){if(he.shiftKey)return void((ve=C.chatInput)!=null&&ve.allowNewline||he.preventDefault());he.preventDefault(),await Y()}},Ee=he=>{j.current&&(ee(he.target.value),U(j.current.value.length))};return N.jsxs("div",{"aria-label":((c=C.ariaLabel)==null?void 0:c.inputTextArea)??"input text area",role:"textbox",onMouseDown:he=>{var ve;he.stopPropagation(),!_&&((ve=C.general)==null?void 0:ve.flowStartTrigger)==="ON_CHATBOT_INTERACT"&&B(!0)},style:{...D.chatInputContainerStyle},className:"rcb-chat-input",children:[E&&(u=C.sensitiveInput)!=null&&u.maskInTextArea?N.jsx("input",{ref:j,type:"password",className:"rcb-chat-input-textarea",style:Q?ue:z?ie:Z,placeholder:ge,onChange:Ee,onKeyDown:de,onFocus:me,onBlur:M,onCompositionStart:fe,onCompositionEnd:O}):N.jsx("textarea",{ref:j,style:Q?ue:z?ie:Z,rows:1,className:"rcb-chat-input-textarea",placeholder:ge,onChange:Ee,onKeyDown:de,onFocus:me,onBlur:M,onCompositionStart:fe,onCompositionEnd:O}),N.jsxs(N.Fragment,{children:[e==null?void 0:e.map((he,ve)=>N.jsx(R.Fragment,{children:he},ve)),((d=C.chatInput)==null?void 0:d.showCharacterCount)&&((A=C.chatInput)==null?void 0:A.characterLimit)!=null&&((p=C.chatInput)==null?void 0:p.characterLimit)>0&&N.jsxs("div",{className:"rcb-chat-input-char-counter",style:I>=((h=C.chatInput)==null?void 0:h.characterLimit)?xe:se,children:[I,"/",(m=C.chatInput)==null?void 0:m.characterLimit]})]})]})},Zf=({buttons:e})=>{var n;const{settings:a}=Fe(),{styles:i}=Ze();return N.jsxs("div",{"data-testid":"chatbot-footer-container",style:{...i.footerStyle},className:"rcb-chat-footer-container",children:[N.jsx("div",{className:"rcb-chat-footer",children:e==null?void 0:e.map((o,c)=>N.jsx(R.Fragment,{children:o},c))}),N.jsx("span",{children:(n=a.footer)==null?void 0:n.text})]})},qf=()=>{var e,n,a,i,o,c,u;const{settings:d}=Fe(),{styles:A}=Ze(),{unreadCount:p}=Et(),{isChatWindowOpen:h,toggleChatWindow:m}=wn(),[y,C]=R.useState(!1),D={backgroundImage:`linear-gradient(to right, ${(e=d.general)==null?void 0:e.secondaryColor},
107
+ ${(n=d.general)==null?void 0:n.primaryColor})`,...A.chatButtonStyle},Q={transform:"scale(1.05)",...A.chatButtonStyle,...A.chatButtonHoveredStyle},E={backgroundImage:`url(${(a=d.chatButton)==null?void 0:a.icon})`,fill:"#fff",width:75,height:75,...A.chatIconStyle};return N.jsx(N.Fragment,{children:!((i=d.general)!=null&&i.embedded)&&N.jsxs("div",{"aria-label":((o=d.ariaLabel)==null?void 0:o.chatButton)??"open chat",role:"button",style:y?Q:D,className:"rcb-toggle-button "+(h?"rcb-button-hide":"rcb-button-show"),onMouseEnter:()=>{C(!0)},onMouseLeave:()=>{C(!1)},onClick:()=>m(!0),children:[(()=>{var I;const _=(I=d.chatButton)==null?void 0:I.icon;return _&&typeof _!="string"?_&&N.jsx("span",{className:"rcb-toggle-icon",children:N.jsx(_,{style:E})}):N.jsx("span",{className:"rcb-toggle-icon",style:E})})(),!((c=d.notification)!=null&&c.disabled)&&((u=d.notification)==null?void 0:u.showCount)&&N.jsx("span",{style:{...A.notificationBadgeStyle},className:"rcb-badge",children:p})]})})},ep=()=>{var e,n,a,i;const o=Fs(),{settings:c}=Fe(),{styles:u}=Ze(),{chatBodyRef:d}=xt(),{isChatWindowOpen:A,toggleChatWindow:p}=wn(),[h,m]=R.useState(!1),[y,C]=R.useState(!1),[D,Q]=R.useState(0);R.useEffect(()=>{var _,B,U;const j=(_=c.tooltip)==null?void 0:_.mode;if(j==="ALWAYS")if(o){let z;z=A?(((B=d.current)==null?void 0:B.offsetWidth)??375)-(typeof((U=u.chatButtonStyle)==null?void 0:U.width)=="number"?u.chatButtonStyle.width:75):0,Q(z),m(!0)}else m(!A);else j==="NEVER"?m(!1):j==="START"?y?m(!1):(C(!0),m(!0)):j==="CLOSE"&&m(!A)},[A]);const E={transform:`translateX(-${D}px)`,right:(((e=u.chatButtonStyle)==null?void 0:e.width)??75)+40,bottom:30,backgroundColor:(n=c.general)==null?void 0:n.secondaryColor,color:"#fff",...u.tooltipStyle},I={borderColor:`transparent transparent transparent ${E.backgroundColor}`};return N.jsx(N.Fragment,{children:!((a=c.general)!=null&&a.embedded)&&N.jsxs("div",{"data-testid":"chat-tooltip",style:E,className:"rcb-chat-tooltip "+(h?"rcb-tooltip-show":"rcb-tooltip-hide"),onClick:()=>p(!0),children:[N.jsx("span",{children:(i=c.tooltip)==null?void 0:i.text}),N.jsx("span",{className:"rcb-chat-tooltip-tail",style:I})]})})},tp=({id:e,content:n,timeout:a})=>{var i,o;const{settings:c}=Fe(),{styles:u}=Ze(),[d]=R.useState({toastPromptStyle:{...u.toastPromptStyle},toastPromptHoveredStyle:{...u.toastPromptHoveredStyle}}),{dismissToast:A}=ya(),[p,h]=R.useState(!1),m={color:(i=c.general)==null?void 0:i.primaryColor,borderColor:(o=c.general)==null?void 0:o.primaryColor,...d.toastPromptHoveredStyle};return R.useEffect(()=>{if(a){const y=setTimeout(()=>{A(e)},a);return()=>clearTimeout(y)}},[e,A,a]),typeof n=="string"?N.jsx("div",{onMouseEnter:()=>{h(!0)},onMouseLeave:()=>{h(!1)},style:p?m:d.toastPromptStyle,onMouseDown:async y=>{var C;(C=c.toast)!=null&&C.dismissOnClick&&(y.preventDefault(),await A(e))},className:"rcb-toast-prompt",children:n}):N.jsx(N.Fragment,{children:n})},np=()=>{var e,n,a,i,o,c,u,d,A,p,h,m;const{styles:y}=Ze(),{toasts:C}=cA(),D={bottom:`calc(${typeof((e=y.footerStyle)==null?void 0:e.height)=="number"?`${(n=y.footerStyle)==null?void 0:n.height}px`:((a=y.footerStyle)==null?void 0:a.height)??"50px"} + ${typeof((i=y.chatInputContainerStyle)==null?void 0:i.height)=="number"?`${(o=y.chatInputContainerStyle)==null?void 0:o.height}px`:((c=y.chatInputContainerStyle)==null?void 0:c.height)??"70px"} + 20px)`,width:300,minWidth:`calc(${typeof((u=y.chatWindowStyle)==null?void 0:u.width)=="number"?`${(d=y.chatWindowStyle)==null?void 0:d.width}px`:((A=y.chatWindowStyle)==null?void 0:A.width)??"375px"} / 2)`,maxWidth:`calc(${typeof((p=y.chatWindowStyle)==null?void 0:p.width)=="number"?`${(h=y.chatWindowStyle)==null?void 0:h.width}px`:((m=y.chatWindowStyle)==null?void 0:m.width)??"375px"} - 50px)`,...y.toastPromptContainerStyle};return N.jsx("div",{className:"rcb-toast-prompt-container",style:D,children:C.map(Q=>N.jsx(tp,{id:Q.id,content:Q.content,timeout:Q.timeout},Q.id))})},uA=({file:e,fileType:n,fileUrl:a})=>{var i,o,c;const{settings:u}=Fe(),{styles:d}=Ze(),A={backgroundColor:(i=u.general)==null?void 0:i.primaryColor,maxWidth:(o=u.userBubble)!=null&&o.showAvatar?"65%":"70%",...d.mediaDisplayContainerStyle};return N.jsx(N.Fragment,{children:a?N.jsxs(N.Fragment,{children:[n==="image"&&a&&N.jsx("div",{style:A,className:"rcb-media-display-image-container rcb-media-entry","data-testid":"media-display-image-container",children:N.jsx("img",{src:a,alt:"Image Display",className:"rcb-media-display-image"})}),n==="video"&&a&&N.jsx("div",{style:A,className:"rcb-media-display-video-container rcb-media-entry","data-testid":"media-display-video-container",children:N.jsxs("video",{controls:!0,className:"rcb-media-display-video",children:[N.jsx("source",{src:a,type:e.type}),"Your browser does not support the video tag."]})}),n==="audio"&&a&&N.jsxs("audio",{"data-testid":"media-display-audio-container",style:{maxWidth:(c=u.userBubble)!=null&&c.showAvatar?"65%":"70%"},controls:!0,className:"rcb-media-display-audio rcb-media-entry",children:[N.jsx("source",{src:a,type:e.type}),"Your browser does not support the audio tag."]})]}):N.jsx(N.Fragment,{})})},AA=async e=>{if(!e)return{fileType:null,fileUrl:null};const n=e.type.split("/")[0];if(!["image","video","audio"].includes(n))return{fileType:null,fileUrl:null};try{return{fileType:n,fileUrl:await new Promise((a,i)=>{const o=new FileReader;o.onload=()=>a(o.result),o.onerror=()=>i(new Error("File reading failed")),o.readAsDataURL(e)})}}catch(a){return console.error(a),{fileType:null,fileUrl:null}}},rp=()=>{var e,n,a,i,o,c;const{settings:u}=Fe(),{styles:d}=Ze(),{injectMessage:A,simulateStreamMessage:p,streamMessage:h,removeMessage:m,endStreamMessage:y}=Oo(),{getCurrPath:C,getPrevPath:D,goToPath:Q,blockAllowsAttachment:E}=Os(),{flowRef:I,inputRef:_}=xt(),B=I.current,{showToast:U,dismissToast:j}=ya(),{dispatchRcbEvent:z}=Vn(),{toggleChatWindow:W}=wn(),{setTextAreaValue:te}=Fo(),{handleSubmitText:J}=ba(),Y={cursor:`url("${(e=u.general)==null?void 0:e.actionDisabledIcon}"), auto`,...d.fileAttachmentButtonStyle,...d.fileAttachmentButtonDisabledStyle},ee={backgroundImage:`url(${(n=u.fileAttachment)==null?void 0:n.icon})`,fill:"#a6a6a6",...d.fileAttachmentIconStyle},Z={backgroundImage:`url(${(a=u.fileAttachment)==null?void 0:a.icon})`,fill:"#a6a6a6",...d.fileAttachmentIconStyle,...d.fileAttachmentIconDisabledStyle};return N.jsxs("label",{"aria-label":((i=u.ariaLabel)==null?void 0:i.fileAttachmentButton)??"upload file",role:"button",className:E?"rcb-attach-button-enabled":"rcb-attach-button-disabled",style:E?{...d.fileAttachmentButtonStyle}:Y,children:[N.jsx("input",{className:"rcb-attach-input",role:"file",type:"file",onChange:async ie=>{var ue,se,xe,ge;const me=ie.target.files;if(!me)return;const M=Array.from(me);if(ie.target.value="",(ue=u.event)!=null&&ue.rcbUserUploadFile&&(await z(ye.USER_UPLOAD_FILE,{files:M})).defaultPrevented)return;const fe=C();if(!fe)return;const O=B[fe];if(!O)return;const de=O.file;if(de!=null){const Ee=[];for(let he=0;he<M.length;he++){if(Ee.push(M[he].name),(se=u.fileAttachment)==null||!se.showMediaDisplay)continue;const ve=await AA(M[he]);!ve.fileType||!ve.fileUrl||await A(N.jsx(uA,{file:M[he],fileType:ve.fileType,fileUrl:ve.fileUrl}),"USER")}await J("📄 "+Ee.join(", "),(xe=u.fileAttachment)==null?void 0:xe.sendFileName),await de({userInput:(ge=_.current)==null?void 0:ge.value,prevPath:D(),currPath:C(),goToPath:Q,setTextAreaValue:te,injectMessage:A,simulateStreamMessage:p,streamMessage:h,removeMessage:m,endStreamMessage:y,toggleChatWindow:W,showToast:U,dismissToast:j,files:M})}},multiple:(o=u.fileAttachment)==null?void 0:o.multiple,accept:(c=u.fileAttachment)==null?void 0:c.accept,disabled:!E}),(()=>{var ie,ue;const se=E?(ie=u.fileAttachment)==null?void 0:ie.icon:(ue=u.fileAttachment)==null?void 0:ue.iconDisabled;return se&&typeof se!="string"?se&&N.jsx("span",{className:E?"rcb-attach-icon-enabled":"rcb-attach-icon-disabled",children:N.jsx(se,{style:E?ee:Z})}):N.jsx("span",{className:E?"rcb-attach-icon-enabled":"rcb-attach-icon-disabled",style:E?ee:Z})})()]})},op=()=>{var e,n,a,i,o,c;const{settings:u}=Fe(),{styles:d}=Ze(),{syncedTextAreaDisabledRef:A}=Et(),{inputRef:p}=xt(),{textAreaDisabled:h,setTextAreaValue:m}=Fo(),y=R.useRef(null),C=R.useRef(null),[D,Q]=R.useState(!1),E={cursor:`url("${(e=u.general)==null?void 0:e.actionDisabledIcon}"), auto`,...d.emojiButtonStyle,...d.emojiButtonDisabledStyle},I={backgroundImage:`url(${(n=u.emoji)==null?void 0:n.icon})`,fill:"#a6a6a6",...d.emojiIconStyle},_={backgroundImage:`url(${(a=u.emoji)==null?void 0:a.icon})`,fill:"#a6a6a6",...d.emojiIconStyle,...d.emojiIconDisabledStyle};return R.useEffect(()=>{const B=j=>{const z=j.composedPath();y.current&&!z.includes(y.current)&&C.current&&!z.includes(C.current)&&Q(!1)},U=()=>{(()=>{if(y.current&&C.current){const j=C.current.getBoundingClientRect(),z=y.current.offsetHeight,W=j.top-z-8;y.current.style.left=`${j.left}px`,y.current.style.top=`${W}px`}})()};return document.addEventListener("mousedown",B),window.addEventListener("resize",U),()=>{document.removeEventListener("mousedown",B),window.removeEventListener("resize",U)}},[]),N.jsxs(N.Fragment,{children:[N.jsx("div",{"aria-label":((i=u.ariaLabel)==null?void 0:i.emojiButton)??"emoji picker",role:"button",ref:C,className:h?"rcb-emoji-button-disabled":"rcb-emoji-button-enabled",style:h?E:{...d.emojiButtonStyle},onMouseDown:B=>{B.preventDefault(),A.current?Q(!1):Q(U=>!U)},children:(()=>{var B,U;const j=h?(B=u.emoji)==null?void 0:B.iconDisabled:(U=u.emoji)==null?void 0:U.icon;return j&&typeof j!="string"?j&&N.jsx("span",{className:h?"rcb-emoji-icon-disabled":"rcb-emoji-icon-enabled",children:N.jsx(j,{style:h?_:I})}):N.jsx("span",{className:h?"rcb-emoji-icon-disabled":"rcb-emoji-icon-enabled",style:h?_:I})})()}),D&&N.jsx("div",{className:"rcb-emoji-button-popup",ref:y,children:(c=(o=u.emoji)==null?void 0:o.list)==null?void 0:c.map((B,U)=>N.jsx("span",{className:"rcb-emoji",onMouseDown:j=>((z,W)=>{z.preventDefault(),p.current&&(m(p.current.value+W),setTimeout(()=>{const te=p.current;if(te){te.focus();const J=te.value.length;te.setSelectionRange(J,J)}},50)),Q(!1)})(j,B),children:B},U))})]})},ap=()=>{var e,n,a;const{settings:i}=Fe(),{styles:o}=Ze(),{audioToggledOn:c,toggleAudio:u}=sA(),d={backgroundImage:`url(${(e=i.audio)==null?void 0:e.icon})`,fill:"#fcec3d",...o.audioIconStyle},A={backgroundImage:`url(${(n=i.audio)==null?void 0:n.iconDisabled})`,fill:"#e8eaed",...o.audioIconStyle,...o.audioIconDisabledStyle};return N.jsx("div",{"aria-label":((a=i.ariaLabel)==null?void 0:a.audioButton)??"toggle audio",role:"button",onMouseDown:async p=>{p.preventDefault(),await u()},style:c?{...o.audioButtonStyle}:{...o.audioButtonStyle,...o.audioButtonDisabledStyle},children:(()=>{var p,h;const m=c?(p=i.audio)==null?void 0:p.icon:(h=i.audio)==null?void 0:h.iconDisabled;return m&&typeof m!="string"?m&&N.jsx("span",{className:"rcb-audio-icon","data-testid":"rcb-audio-icon",children:N.jsx(m,{style:c?d:A,"data-testid":"rcb-audio-icon-svg"})}):N.jsx("span",{className:"rcb-audio-icon","data-testid":"rcb-audio-icon",style:c?d:A})})()})},ip=()=>{var e,n;const{settings:a}=Fe(),{styles:i}=Ze(),{toggleChatWindow:o}=wn(),c={backgroundImage:`url(${(e=a.header)==null?void 0:e.closeChatIcon})`,fill:"#e8eaed",stroke:"#e8eaed",...i.closeChatIconStyle};return N.jsx("div",{"aria-label":((n=a.ariaLabel)==null?void 0:n.closeChatButton)??"close chat",role:"button",onMouseDown:u=>{u.stopPropagation(),o(!1)},style:{...i.closeChatButtonStyle},children:(()=>{var u;const d=(u=a.header)==null?void 0:u.closeChatIcon;return d&&typeof d!="string"?d&&N.jsx("span",{className:"rcb-close-chat-icon","data-testid":"rcb-close-chat-icon",children:N.jsx(d,{style:c})}):N.jsx("span",{className:"rcb-close-chat-icon","data-testid":"rcb-close-chat-icon",style:c})})()})},sp=()=>{var e,n,a;const{settings:i}=Fe(),{styles:o}=Ze(),{notificationsToggledOn:c,toggleNotifications:u}=(()=>{const{notificationsToggledOn:p,toggleNotifications:h,playNotificationSound:m}=Yl();return{notificationsToggledOn:p,toggleNotifications:h,playNotificationSound:m}})(),d={backgroundImage:`url(${(e=i.notification)==null?void 0:e.icon})`,fill:"#fcec3d",...o.notificationIconStyle},A={backgroundImage:`url(${(n=i.notification)==null?void 0:n.iconDisabled})`,fill:"#e8eaed",...o.notificationIconStyle,...o.notificationIconDisabledStyle};return N.jsx("div",{"aria-label":((a=i.ariaLabel)==null?void 0:a.notificationButton)??"toggle notifications",role:"button",onMouseDown:async p=>{p.preventDefault(),await u()},style:c?{...o.notificationButtonStyle}:{...o.notificationButtonStyle,...o.notificationButtonDisabledStyle},children:(()=>{var p,h;const m=c?(p=i.notification)==null?void 0:p.icon:(h=i.notification)==null?void 0:h.iconDisabled;return m&&typeof m!="string"?m&&N.jsx("span",{className:"rcb-notification-icon","data-testid":"rcb-notification-icon",children:N.jsx(m,{style:c?d:A,"data-testid":"rcb-notification-icon-svg"})}):N.jsx("span",{className:"rcb-notification-icon","data-testid":"rcb-notification-icon",style:c?d:A})})()})},lp=()=>{var e,n,a;const{settings:i}=Fe(),{styles:o}=Ze(),{injectMessage:c}=Oo(),{inputRef:u}=xt(),{voiceToggledOn:d,toggleVoice:A}=Kl(),{setInputLength:p,setTextAreaValue:h,textAreaDisabled:m}=Fo(),{handleSubmitText:y}=ba(),C=R.useRef([]),[D,Q]=R.useState(!1);R.useEffect(()=>{var U;(U=i.voice)!=null&&U.sendAsAudio?(B(),C.current=[]):y()},[D]),R.useEffect(()=>{d?((U,j,z,W,te,J,Y)=>{var ee;(ee=U.voice)!=null&&ee.sendAsAudio?Jf(z,J):Xf(U,j,z,W,te,Y)})(i,A,_,h,p,C,u):Xl()},[d]);const E={backgroundImage:`url(${(e=i.voice)==null?void 0:e.icon})`,fill:"#9aa0a6",...o.voiceIconStyle},I={backgroundImage:`url(${(n=i.voice)==null?void 0:n.iconDisabled})`,fill:"#9aa0a6",...o.voiceIconStyle,...o.voiceIconDisabledStyle},_=()=>{Q(U=>!U)},B=async()=>{const U=new Blob(C.current,{type:"audio/wav"}),j=new File([U],"voice-input.wav",{type:"audio/wav"}),z=await AA(j);!z.fileType||!z.fileUrl||await c(N.jsx(uA,{file:j,fileType:z.fileType,fileUrl:z.fileUrl}),"USER")};return N.jsx("div",{"aria-label":((a=i.ariaLabel)==null?void 0:a.voiceButton)??"toggle voice",role:"button",onMouseDown:async U=>{U.preventDefault(),!m&&await A()},style:d&&!m?{...o.voiceButtonStyle}:{...o.voiceButtonStyle,...o.voiceButtonDisabledStyle},className:d&&!m?"rcb-voice-button-enabled":"rcb-voice-button-disabled",children:(()=>{var U,j;const z=d?(U=i.voice)==null?void 0:U.icon:(j=i.voice)==null?void 0:j.iconDisabled;return z&&typeof z!="string"?z&&N.jsx("span",{className:"rcb-voice-icon "+(d&&!m?"on":""),children:N.jsx(z,{style:d&&!m?E:I})}):N.jsx("span",{className:"rcb-voice-icon"+(d&&!m?"-on":""),"data-testid":"rcb-voice-icon",style:d&&!m?E:I})})()})},cp=()=>{var e,n,a,i,o,c,u,d;const{settings:A}=Fe(),{styles:p}=Ze(),{textAreaDisabled:h}=Et(),[m,y]=R.useState(!1),{handleSubmitText:C}=ba(),D={backgroundColor:(e=A.general)==null?void 0:e.primaryColor,...p.sendButtonStyle},Q={cursor:`url("${(n=A.general)==null?void 0:n.actionDisabledIcon}"), auto`,backgroundColor:(a=A.general)==null?void 0:a.primaryColor,...p.sendButtonStyle,...p.sendButtonDisabledStyle},E={backgroundColor:(i=A.general)==null?void 0:i.secondaryColor,...p.sendButtonStyle,...p.sendButtonHoveredStyle},I={backgroundImage:`url(${(o=A.chatInput)==null?void 0:o.sendButtonIcon})`,fill:"#fff",...p.sendIconStyle},_={backgroundImage:`url(${(c=A.chatInput)==null?void 0:c.sendButtonIcon})`,fill:"#fff",...p.sendIconStyle,...p.sendIconDisabledStyle},B={backgroundImage:`url(${(u=A.chatInput)==null?void 0:u.sendButtonIcon})`,fill:"#fff",...p.sendIconStyle,...p.sendIconHoveredStyle};return N.jsx("div",{"aria-label":((d=A.ariaLabel)==null?void 0:d.sendButton)??"send message",role:"button",onMouseEnter:()=>{y(!0)},onMouseLeave:()=>{y(!1)},onMouseDown:async U=>{U==null||U.preventDefault(),!h&&await C()},style:h?Q:m?E:D,className:"rcb-send-button",children:(()=>{var U;const j=(U=A.chatInput)==null?void 0:U.sendButtonIcon;return j&&typeof j!="string"?j&&N.jsx("span",{className:"rcb-send-icon","data-testid":"rcb-send-icon",children:N.jsx(j,{style:h?_:m?B:I})}):N.jsx("span",{className:"rcb-send-icon","data-testid":"rcb-send-icon",style:h?_:m?B:I})})()})},up=(e,n)=>{var a,i,o,c,u,d,A,p,h;const m={[dt.AUDIO_BUTTON]:(a=e.audio)==null?void 0:a.disabled,[dt.CLOSE_CHAT_BUTTON]:(i=e.general)==null?void 0:i.embedded,[dt.EMOJI_PICKER_BUTTON]:(o=e.emoji)==null?void 0:o.disabled,[dt.FILE_ATTACHMENT_BUTTON]:(c=e.fileAttachment)==null?void 0:c.disabled,[dt.NOTIFICATION_BUTTON]:(u=e.notification)==null?void 0:u.disabled,[dt.SEND_MESSAGE_BUTTON]:!1,[dt.VOICE_MESSAGE_BUTTON]:(d=e.voice)==null?void 0:d.disabled},y={},C=D=>D?D.map(Q=>{if(typeof Q=="string"){if((E=>Object.values(dt).includes(E))(Q)&&!m[Q]){if(y[Q])return y[Q];const E=n[Q];if(typeof E=="function"){const I=E();return y[Q]=I,I}return null}return null}return Q}).filter(Q=>Q!==null):[];return{header:C((A=e.header)==null?void 0:A.buttons),chatInput:C((p=e.chatInput)==null?void 0:p.buttons),footer:C((h=e.footer)==null?void 0:h.buttons)}},Ap=()=>{const{settings:e}=Fe(),n=R.useMemo(()=>({[dt.CLOSE_CHAT_BUTTON]:()=>N.jsx(ip,{}),[dt.AUDIO_BUTTON]:()=>N.jsx(ap,{}),[dt.NOTIFICATION_BUTTON]:()=>N.jsx(sp,{}),[dt.EMOJI_PICKER_BUTTON]:()=>N.jsx(op,{}),[dt.FILE_ATTACHMENT_BUTTON]:()=>N.jsx(rp,{}),[dt.SEND_MESSAGE_BUTTON]:()=>N.jsx(cp,{}),[dt.VOICE_MESSAGE_BUTTON]:()=>N.jsx(lp,{})}),[]),{header:a,chatInput:i,footer:o}=R.useMemo(()=>up(e,n),[e,n]);return{headerButtons:R.useMemo(()=>a,[a]),chatInputButtons:R.useMemo(()=>i,[i]),footerButtons:R.useMemo(()=>o,[o])}},$l=()=>{const{settings:e}=Fe(),{styles:n}=Ze(),{setSyncedMessages:a,syncedMessagesRef:i}=Ul(),{isLoadingChatHistory:o,setIsLoadingChatHistory:c,hasChatHistoryLoaded:u,setHasChatHistoryLoaded:d}=Et(),{chatBodyRef:A}=xt(),{dispatchRcbEvent:p}=Vn(),h=R.useCallback(async()=>{var m,y;const C=jl();if(!C||(m=e.event)!=null&&m.rcbLoadChatHistory&&(await p(ye.LOAD_CHAT_HISTORY,{})).defaultPrevented)return;c(!0);const D=((y=A.current)==null?void 0:y.scrollHeight)??0;((Q,E,I,_,B,U,j,z,W)=>{var te;if(rA=!0,I!=null)try{const J=Jr(N.jsx(Hf,{}),"SYSTEM"),Y=B.current.slice(1);_([J,...Y]);const ee=I.map(Z=>{if(Z.type==="object"){const ie=iA(Z.content,Q,E);return{...Z,content:ie}}return Z});setTimeout(()=>{var Z;const ie=B.current.slice(1);let ue=(Z=Q.chatHistory)!=null&&Z.autoLoad?Jr(N.jsx(N.Fragment,{}),"SYSTEM"):Jr(N.jsx(_f,{}),"SYSTEM");_([...ee,ue,...ie]),W(!0)},500),setTimeout(()=>{if(!U.current)return;const{scrollHeight:Z}=U.current,ie=Z-j;U.current.scrollTop+=ie,z(!1)},510)}catch{Kr.removeItem((te=Q.chatHistory)==null?void 0:te.storageKey)}})(e,n,C,a,i,A,D,c,d)},[e,n,p,i,A,c,d]);return{isLoadingChatHistory:o,setIsLoadingChatHistory:c,hasChatHistoryLoaded:u,showChatHistory:h}},dp=()=>{var e,n,a;const{settings:i}=Fe(),{styles:o}=Ze(),{showChatHistory:c}=$l(),[u,d]=R.useState(!1),A={color:(e=i.general)==null?void 0:e.primaryColor,borderColor:(n=i.general)==null?void 0:n.primaryColor,...o.chatHistoryButtonStyle,...o.chatHistoryButtonHoveredStyle};return N.jsx("div",{className:"rcb-view-history-container",children:N.jsx("div",{onMouseEnter:()=>{d(!0)},onMouseLeave:()=>{d(!1)},style:u?A:{...o.chatHistoryButtonStyle},onMouseDown:p=>{p.preventDefault(),c()},className:"rcb-view-history-button",role:"button",tabIndex:0,children:N.jsx("p",{children:(a=i.chatHistory)==null?void 0:a.viewChatHistoryButtonText})})})},fp=()=>{var e,n,a,i;const o=Fs(),{settings:c}=Fe(),{replaceMessages:u}=Oo(),{isBotTyping:d,isChatWindowOpen:A,setUnreadCount:p,setSyncedIsChatWindowOpen:h,setSyncedTextAreaDisabled:m,setSyncedAudioToggledOn:y,setSyncedVoiceToggledOn:C,setSyncedIsScrolling:D,syncedIsScrollingRef:Q,syncedIsChatWindowOpenRef:E}=Et(),{chatBodyRef:I}=xt(),{viewportHeight:_,setViewportHeight:B,setViewportWidth:U,scrollToBottom:j}=wn(),{setUpNotifications:z}=Yl(),{handleFirstInteraction:W}=(()=>{var ee;const{settings:Z}=Fe(),{hasInteractedPage:ie,setHasInteractedPage:ue,hasFlowStarted:se,setHasFlowStarted:xe}=Et(),ge=R.useCallback(()=>{var me;if(ue(!0),!se&&((me=Z.general)==null?void 0:me.flowStartTrigger)==="ON_PAGE_INTERACT"&&xe(!0),!window.SpeechSynthesisUtterance)return void console.info("Speech Synthesis API is not supported in this environment.");const M=new window.SpeechSynthesisUtterance;M.text="",M.onend=()=>{window.removeEventListener("click",ge),window.removeEventListener("keydown",ge),window.removeEventListener("touchstart",ge)},window.speechSynthesis.speak(M)},[se,(ee=Z.general)==null?void 0:ee.flowStartTrigger]);return{hasInteractedPage:ie,handleFirstInteraction:ge}})(),{showChatHistory:te}=$l(),J=R.useRef(0),Y=R.useRef(!1);R.useEffect(()=>(window.addEventListener("click",W),window.addEventListener("keydown",W),window.addEventListener("touchstart",W),()=>{window.removeEventListener("click",W),window.removeEventListener("keydown",W),window.removeEventListener("touchstart",W)}),[]),R.useEffect(()=>{const ee=I.current;if(!ee)return;const Z=()=>{Y.current||(Y.current=!0,requestAnimationFrame(()=>{var ie,ue;if(!ee)return;const{scrollTop:se,clientHeight:xe,scrollHeight:ge}=ee,me=se+xe<ge-(((ie=c.chatWindow)==null?void 0:ie.messagePromptOffset)??30);D(me),Q.current=me,me||(se+xe>=ge-1&&(ee.scrollTop=ge-xe-1),(E.current||(ue=c.general)!=null&&ue.embedded)&&p(0)),Y.current=!1}))};return ee.addEventListener("wheel",Z,{passive:!0}),ee.addEventListener("touchmove",Z,{passive:!0}),()=>{ee.removeEventListener("wheel",Z),ee.removeEventListener("touchmove",Z)}},[]),R.useEffect(()=>{var ee,Z,ie;m((ee=c.chatInput)==null?void 0:ee.disabled),h((Z=c.chatWindow)==null?void 0:Z.defaultOpen),y((ie=c.audio)==null?void 0:ie.defaultToggledOn),setTimeout(()=>{var ue;C((ue=c.voice)==null?void 0:ue.defaultToggledOn)},1)},[]),R.useEffect(()=>{var ee;(ee=c.notification)!=null&&ee.disabled||z()},[(e=c.notification)==null?void 0:e.disabled]),R.useEffect(()=>{!Q.current&&I!=null&&I.current&&j()},[d]),R.useEffect(()=>{var ee,Z;if((ee=c.chatHistory)!=null&&ee.disabled)Kr&&Kr.removeItem(Bs);else if(Wl(c),jl().length>0){const ie=Jr(N.jsx(dp,{}),"SYSTEM");u([ie]),(Z=c.chatHistory)!=null&&Z.autoLoad&&te()}},[(n=c.chatHistory)==null?void 0:n.storageKey,(a=c.chatHistory)==null?void 0:a.maxEntries,(i=c.chatHistory)==null?void 0:i.disabled]),R.useEffect(()=>{var ee;o||(ee=c.general)!=null&&ee.embedded||!navigator.virtualKeyboard||(navigator.virtualKeyboard.overlaysContent=!0,navigator.virtualKeyboard.addEventListener("geometrychange",Z=>{if(!Z.target)return;const{x:ie,y:ue,width:se,height:xe}=Z.target.boundingRect;ie==0&&ue==0&&se==0&&xe==0?(setTimeout(()=>{var ge;B((ge=window.visualViewport)==null?void 0:ge.height)},101),setTimeout(()=>{var ge,me;_!=((ge=window.visualViewport)==null?void 0:ge.height)&&B((me=window.visualViewport)==null?void 0:me.height)},1001)):setTimeout(()=>{var ge;B(((ge=window.visualViewport)==null?void 0:ge.height)-xe)},101)}))},[o]),R.useEffect(()=>{var ee,Z,ie,ue;if(o)return;A&&(B((ee=window.visualViewport)==null?void 0:ee.height),U((Z=window.visualViewport)==null?void 0:Z.width));const se=()=>window.scrollTo({top:0,left:0,behavior:"auto"}),xe=()=>J.current=window.scrollY,ge=()=>{var M,fe;B((M=window.visualViewport)==null?void 0:M.height),U((fe=window.visualViewport)==null?void 0:fe.width)},me=()=>{var M;window.removeEventListener("scroll",se),window.removeEventListener("scroll",xe),(M=window.visualViewport)==null||M.removeEventListener("resize",ge)};return A?(me(),document.body.style.position="fixed",window.addEventListener("scroll",se),(ie=window.visualViewport)==null||ie.addEventListener("resize",ge)):(document.body.style.position="static",me(),window.scrollTo({top:J.current,left:0,behavior:"auto"}),window.addEventListener("scroll",xe),(ue=window.visualViewport)==null||ue.removeEventListener("resize",ge)),me},[A,o])},pp="https://cdn.jsdelivr.net/gh/react-chatbotify/community-themes/themes",hp="2592000",dA="RCB_THEME_CACHE_DATA",fA=async(e,n)=>{const{id:a,version:i,baseUrl:o=pp,cacheDuration:c=hp}=n,u=i||await(async(I,_)=>{const B=`${_}/${I}/meta.json`;try{const U=await fetch(B);return U.ok?(await U.json()).version:(console.error(`Failed to fetch meta.json from ${B}`),null)}catch(U){return console.error(`Failed to fetch meta.json from ${B}`,U),null}})(a,o);if(!u)return console.error(`Unable to find version for theme: ${a}`),{settings:{},inlineStyles:{},cssStylesText:""};const d=((I,_,B)=>{const U=localStorage.getItem(`${dA}_${I}_${_}`);if(!U)return null;try{const j=JSON.parse(U),z=new Date().getTime(),W=Math.floor(z/1e3);return j.cacheDate+B>=W?j:null}catch(j){return console.error(`Unable to fetch cache for ${I}`,j),null}})(a,u,c);if(d){const I=pA(e,d.cssStylesText);return{settings:d.settings,inlineStyles:d.inlineStyles,cssStylesText:I}}const A=`${o}/${a}/${u}/styles.css`,p=`${o}/${a}/${u}/settings.json`,h=`${o}/${a}/${u}/styles.json`;let m="";const y=await fetch(A);y.ok?m=await y.text():console.info(`Could not fetch styles.css from ${A}`);const C=await fetch(p);let D={};C.ok?D=await C.json():console.info(`Could not fetch settings.json from ${p}`);const Q=await fetch(h);let E={};return Q.ok?E=await Q.json():console.info(`Could not fetch styles.json from ${h}`),((I,_,B,U,j)=>{const z=new Date().getTime(),W={settings:B,inlineStyles:U,cssStylesText:j,cacheDate:Math.floor(z/1e3)};localStorage.setItem(`${dA}_${I}_${_}`,JSON.stringify(W))})(a,u,D,E,m),{settings:D,inlineStyles:E,cssStylesText:pA(e,m)}},pA=(e,n)=>n.split(new RegExp("(?<=})")).map(a=>{const i=a.trim();return i.startsWith("@import")||i.startsWith("@keyframes")||i.startsWith("@media")?i:i?`#${e} ${i}`:""}).join(`
108
+ `),gp=async(e,n,a,i)=>{var o,c;let u=Ls(Vu),d=Ls(Ju),A="";if(i!=null)if(Array.isArray(i))for(const p of i){const h=await fA(e,p);u=cr(h.settings,u),d=cr(h.inlineStyles,d),A+=h.cssStylesText}else{const p=await fA(e,i);u=cr(p.settings,u),d=cr(p.inlineStyles,d),A+=p.cssStylesText}return n!=null&&(u=cr(n,u)),a!=null&&(d=cr(a,d)),((o=u.chatInput)==null?void 0:o.botDelay)!=null&&((c=u.chatInput)==null?void 0:c.botDelay)<500&&(u.chatInput.botDelay=500),{settings:u,inlineStyles:d,cssStylesText:A}},cr=(e,n)=>{const a=[{source:e,target:n}];for(;a.length;){const i=a.pop();if(i==null)continue;const{source:o,target:c}=i;for(const u of Object.keys(o)){const d=u;if(R.isValidElement(o[d]))c[d]=o[d];else if(typeof o[d]!="object"||o[d]===null||Array.isArray(o[d]))try{c[d]=o[d]}catch{}else(typeof c[d]!="object"||c[d]===null)&&(c[d]={}),a.push({source:o[d],target:c[d]})}}return n},Ls=e=>{if(e===null||typeof e!="object")return e;const n=Array.isArray(e)?[]:{},a=[{source:e,target:n}],i=new WeakMap;for(i.set(e,n);a.length;){const o=a.pop();if(o==null)continue;const{source:c,target:u}=o;for(const d in c)if(Object.prototype.hasOwnProperty.call(c,d)){const A=c[d];if(A&&typeof A=="object")if(i.has(A))u[d]=i.get(A);else{const p=Array.isArray(A)?[]:{};i.set(A,p),u[d]=p,a.push({source:A,target:p})}else u[d]=A}}return n},hA=()=>{const{settings:e,setSyncedSettings:n,syncedSettingsRef:a}=Fe(),i=R.useCallback(c=>{!c||Object.keys(c).length===0||n(Ls(cr(c,e)))},[e]),o=R.useCallback(c=>{const u=typeof c=="function"?c(a.current):c;n(u)},[a]);return{settings:e,replaceSettings:o,updateSettings:i}},gA=()=>{const{styles:e,setSyncedStyles:n,syncedStylesRef:a}=Ze(),i=R.useCallback(c=>{!c||Object.keys(c).length===0||n(Ls(cr(c,e)))},[e]),o=R.useCallback(c=>{const u=typeof c=="function"?c(a.current):c;n(u)},[a]);return{styles:e,replaceStyles:o,updateStyles:i}},mp=({plugins:e,slots:n})=>{var a,i;const o=Fs(),{settings:c}=Fe(),{styles:u}=Ze(),{hasFlowStarted:d,setHasFlowStarted:A}=Et(),{inputRef:p}=xt(),{viewportHeight:h,viewportWidth:m,isChatWindowOpen:y}=wn(),{goToPath:C}=Os(),{headerButtons:D,chatInputButtons:Q,footerButtons:E}=Ap();fp(),(_=>{const{updateSettings:B}=hA(),{updateStyles:U}=gA(),j=_==null?void 0:_.map(z=>z());R.useEffect(()=>{let z={},W={};j==null||j.forEach(te=>{te!=null&&te.settings&&Object.keys(te==null?void 0:te.settings).length!==0&&(z=cr(te.settings,z)),te!=null&&te.styles&&Object.keys(te==null?void 0:te.styles).length!==0&&(W=cr(te.styles,W))}),B(z),U(W)},[])})(e),R.useEffect(()=>{var _;(d||((_=c.general)==null?void 0:_.flowStartTrigger)==="ON_LOAD")&&C("start")},[d,(a=c.general)==null?void 0:a.flowStartTrigger]);const I=R.useMemo(()=>{var _;const B="rcb-chatbot-global ";return(_=c.general)!=null&&_.embedded?B+"rcb-window-embedded":y?B+"rcb-window-open":B+"rcb-window-close"},[c,y]);return N.jsx(N.Fragment,{children:(()=>{var _,B;return o&&((_=c.device)==null?void 0:_.desktopEnabled)||!o&&((B=c.device)==null?void 0:B.mobileEnabled)})()&&N.jsxs("div",{onMouseDown:_=>{var B,U;!d&&((B=c.general)==null?void 0:B.flowStartTrigger)==="ON_CHATBOT_INTERACT"&&A(!0),o?(U=p.current)==null||U.blur():_==null||_.preventDefault()},className:I,children:[N.jsx(ep,{}),N.jsx(qf,{}),y&&!o&&!((i=c.general)!=null&&i.embedded)&&N.jsxs(N.Fragment,{children:[N.jsx("style",{children:`
109
+ html {
110
+ overflow: hidden !important;
111
+ touch-action: none !important;
112
+ scroll-behavior: auto !important;
113
+ }
114
+ `}),N.jsx("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"#fff",zIndex:9999}})]}),N.jsx("div",{style:(()=>{var _,B;return o||(_=c.general)!=null&&_.embedded?(B=c.general)!=null&&B.embedded?{...u.chatWindowStyle}:{...u.chatWindowStyle,zIndex:1e4}:{...u.chatWindowStyle,borderRadius:"0px",left:"0px",right:"auto",top:"0px",bottom:"auto",width:`${m}px`,height:`${h}px`,zIndex:1e4}})(),className:"rcb-chat-window",children:(()=>{var _,B,U;const j=(n==null?void 0:n.chatBotHeader)||vf,z=(n==null?void 0:n.chatBotBody)||Tf,W=(n==null?void 0:n.chatBotInput)||$f,te=(n==null?void 0:n.chatBotFooter)||Zf;return N.jsxs(N.Fragment,{children:[((_=c.general)==null?void 0:_.showHeader)&&N.jsx(j,{buttons:D}),N.jsx(z,{}),N.jsx(np,{}),((B=c.general)==null?void 0:B.showInputRow)&&N.jsx(W,{buttons:Q}),((U=c.general)==null?void 0:U.showFooter)&&N.jsx(te,{buttons:E})]})})()})]})})},mA=R.createContext(void 0),vA=()=>R.useContext(mA),yA=({children:e})=>{var n;const a=R.useRef(""),i=R.useRef({}),[o,c,u]=bn({}),[d,A,p]=bn({}),[h,m]=R.useState(!1);return R.useEffect(()=>{m(!0)},[]),h?N.jsx("div",{style:{fontFamily:(n=o.general)==null?void 0:n.fontFamily},children:N.jsx(mA.Provider,{value:{loadConfig:async(y,C,D,Q,E,I)=>{a.current=y,i.current=C;const _=await gp(y,D,Q,E);I.current&&(I.current.textContent=_.cssStylesText),c(_.settings),A(_.inlineStyles)}},children:N.jsx(gf,{settings:o,setSyncedSettings:c,syncedSettingsRef:u,children:N.jsx(mf,{styles:d,setSyncedStyles:A,syncedStylesRef:p,children:N.jsx(Kf,{children:N.jsx(yf,{botIdRef:a,flowRef:i,children:N.jsx(xf,{children:N.jsx(bf,{settings:o,children:N.jsx(Ef,{children:e})})})})})})})})}):null},vp=({id:e,flow:n,settings:a,styles:i,themes:o,plugins:c,setConfigLoaded:u,styleRootRef:d})=>{const A=R.useMemo(()=>e,[]),p=vA(),{flowRef:h}=xt();return h&&h.current!==n&&(h.current=n),R.useEffect(()=>{(async()=>{var m,y;(m=a.event)!=null&&m.rcbPreLoadChatBot&&(await Nl(ye.PRE_LOAD_CHATBOT,{botId:A,currPath:null,prevPath:null},{flow:n,settings:a,styles:i,themes:o,plugins:c})).defaultPrevented||(p!=null&&p.loadConfig&&(await p.loadConfig(A,n,a,i,o,d),u(!0)),(y=a.event)!=null&&y.rcbPostLoadChatBot&&Nl(ye.POST_LOAD_CHATBOT,{botId:A,currPath:null,prevPath:null},{flow:n,settings:a,styles:i,themes:o,plugins:c}))})()},[o]),null},Zl=["Quickstart","API Docs","Examples","Github","Discord"],yp={start:{message:"Hello, I am Tan Jin 👋! Welcome to React ChatBotify, I'm excited that you are using our chatbot 😊!",transition:{duration:1e3},chatDisabled:!0,path:"show_options"},show_options:{message:"It looks like you have not set up a conversation flow yet. No worries! Here are a few helpful things you can check out to get started:",options:Zl,path:"process_options"},prompt_again:{message:"Do you need any other help?",options:Zl,path:"process_options"},unknown_input:{message:"Sorry, I do not understand your message 😢! If you require further assistance, you may click on the Github option and open an issue there or visit our discord.",options:Zl,path:"process_options"},process_options:{transition:{duration:0},path:e=>{let n="";switch(e.userInput){case"Quickstart":n="https://react-chatbotify.com/docs/introduction/quickstart/";break;case"API Docs":n="https://react-chatbotify.com/docs/api/bot_options";break;case"Examples":n="https://react-chatbotify.com/docs/examples/basic_form";break;case"Github":n="https://github.com/react-chatbotify/react-chatbotify/";break;case"Discord":n="https://discord.gg/6R4DK4G5Zh";break;default:return"unknown_input"}return e.injectMessage("Sit tight! I'll send you right there!"),setTimeout(()=>{window.open(n)},1e3),"repeat"}},repeat:{transition:{duration:3e3},path:"prompt_again"}},bp=({id:e,flow:n,settings:a,styles:i,themes:o,plugins:c,slots:u})=>{const d=R.useMemo(()=>e||"rcb-"+Is(),[]),A=n&&Object.keys(n).length!==0?n:yp,p=a||{},h=i||{},m=c||[],[y,C]=R.useState(!1),D=vA(),Q=R.useRef(null),[E,I]=R.useState(o||[]);R.useEffect(()=>{o&&I(o)},[o]);const _=()=>N.jsxs(N.Fragment,{children:[N.jsx(vp,{styleRootRef:Q,id:d,flow:A,settings:p,styles:h,themes:E,plugins:m,setConfigLoaded:C}),y&&N.jsx(mp,{plugins:c,slots:u})]});return N.jsxs(D==null?yA:N.Fragment,{children:[N.jsx("style",{ref:Q}),N.jsx("div",{id:d,children:_()})]})},wp=()=>{const{getBotId:e}=(()=>{const{botIdRef:n}=xt();return{getBotId:R.useCallback(()=>n.current,[n])}})();return{getBotId:e}},Qs=()=>{const{hasFlowStarted:e,restartFlow:n,getFlow:a}=(()=>{const{replaceMessages:i}=Oo(),{replacePaths:o,goToPath:c}=Os(),{replaceToasts:u}=ya(),{hasFlowStarted:d}=Et(),{flowRef:A,timeoutIdRef:p}=xt(),{settings:h}=Fe();return{hasFlowStarted:d,restartFlow:R.useCallback(async()=>{Wl(h),p.current&&clearTimeout(p.current),i([]),u([]),o([]),await c("start")},[p,h,i,u,o,Wl,c]),getFlow:R.useCallback(()=>(A==null?void 0:A.current)??{},[A])}})();return{hasFlowStarted:e,restartFlow:n,getFlow:a}},ql=()=>{const{endStreamMessage:e,injectMessage:n,removeMessage:a,simulateStreamMessage:i,streamMessage:o,messages:c,replaceMessages:u}=Oo();return{endStreamMessage:e,injectMessage:n,removeMessage:a,simulateStreamMessage:i,streamMessage:o,messages:c,replaceMessages:u}},Bn=(e,n)=>{const{getBotId:a}=wp();R.useEffect(()=>{const i=o=>{o.detail.botId===a()&&n(o)};return window.addEventListener(e,i),()=>{window.removeEventListener(e,i)}},[a,e,n])},bA=()=>{const{settings:e,replaceSettings:n,updateSettings:a}=hA();return{settings:e,replaceSettings:n,updateSettings:a}},wA=()=>{const{showChatHistory:e,hasChatHistoryLoaded:n}=$l();return{showChatHistory:e,getHistoryMessages:jl,setHistoryMessages:Nf,hasChatHistoryLoaded:n}},ec={a:{content:9,self:!1,type:105},address:{invalid:["h1","h2","h3","h4","h5","h6","address","article","aside","section","div","header","footer"],self:!1},audio:{children:["track","source"]},br:{type:9,void:!0},body:{content:127},button:{content:8,type:105},caption:{content:1,parent:["table"]},col:{parent:["colgroup"],void:!0},colgroup:{children:["col"],parent:["table"]},details:{children:["summary"],type:97},dd:{content:1,parent:["dl"]},dl:{children:["dt","dd"],type:1},dt:{content:1,invalid:["footer","header"],parent:["dl"]},figcaption:{content:1,parent:["figure"]},footer:{invalid:["footer","header"]},header:{invalid:["footer","header"]},hr:{type:1,void:!0},img:{void:!0},li:{content:1,parent:["ul","ol","menu"]},main:{self:!1},ol:{children:["li"],type:1},picture:{children:["source","img"],type:25},rb:{parent:["ruby","rtc"]},rp:{parent:["ruby","rtc"]},rt:{content:8,parent:["ruby","rtc"]},rtc:{content:8,parent:["ruby"]},ruby:{children:["rb","rp","rt","rtc"]},source:{parent:["audio","video","picture"],void:!0},summary:{content:8,parent:["details"]},table:{children:["caption","colgroup","thead","tbody","tfoot","tr"],type:1},tbody:{parent:["table"],children:["tr"]},td:{content:1,parent:["tr"]},tfoot:{parent:["table"],children:["tr"]},th:{content:1,parent:["tr"]},thead:{parent:["table"],children:["tr"]},tr:{parent:["table","tbody","thead","tfoot"],children:["th","td"]},track:{parent:["audio","video"],void:!0},ul:{children:["li"],type:1},video:{children:["track","source"]},wbr:{type:9,void:!0}};function Lo(e){return n=>{ec[n]={...e,...ec[n]}}}["address","main","div","figure","p","pre"].forEach(Lo({content:1,type:65})),["abbr","b","bdi","bdo","cite","code","data","dfn","em","i","kbd","mark","q","ruby","samp","strong","sub","sup","time","u","var"].forEach(Lo({content:8,type:73})),["p","pre"].forEach(Lo({content:8,type:65})),["s","small","span","del","ins"].forEach(Lo({content:8,type:9})),["article","aside","footer","header","nav","section","blockquote"].forEach(Lo({content:1,type:67})),["h1","h2","h3","h4","h5","h6"].forEach(Lo({content:8,type:69})),["audio","canvas","iframe","img","video"].forEach(Lo({type:89}));const tc=Object.freeze(ec),xp=["applet","base","body","command","embed","frame","frameset","head","html","link","meta","noscript","object","script","style","title"],Sp=Object.keys(tc).filter(e=>e!=="canvas"&&e!=="iframe"),xA=Object.freeze({alt:1,cite:1,class:1,colspan:3,controls:4,datetime:1,default:4,disabled:4,dir:1,height:1,href:1,id:1,kind:1,label:1,lang:1,loading:1,loop:4,media:1,muted:4,poster:1,rel:1,role:1,rowspan:3,scope:1,sizes:1,span:3,start:3,style:5,src:1,srclang:1,srcset:1,tabindex:1,target:1,title:1,type:1,width:1}),Ep=Object.freeze({class:"className",colspan:"colSpan",datetime:"dateTime",rowspan:"rowSpan",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex"});function _s(){return _s=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},_s.apply(this,arguments)}function SA({attributes:e={},className:n,children:a=null,selfClose:i=!1,tagName:o}){const c=o;return i?R.createElement(c,_s({className:n},e)):R.createElement(c,_s({className:n},e),a)}class kp{attribute(n,a){return a}node(n,a){return a}}function Cp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}/*!
3
115
  * escape-html
4
116
  * Copyright(c) 2012-2013 TJ Holowaychuk
5
117
  * Copyright(c) 2015 Andreas Lubbe
6
118
  * Copyright(c) 2015 Tiancheng "Timothy" Gu
7
119
  * MIT Licensed
8
- */var nn,rn;const on=tn(function(){if(rn)return nn;rn=1;var e=/["'&<>]/;return nn=function(t){var n=""+t,r=e.exec(n);if(!r)return n;var o,i="",A=0,a=0;for(A=r.index;A<n.length;A++){switch(n.charCodeAt(A)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 39:o="&#39;";break;case 60:o="&lt;";break;case 62:o="&gt;";break;default:continue}a!==A&&(i+=n.substring(a,A)),a=A+1,i+=o}return a!==A?i+n.substring(a,A):i}}());function An(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const an=/(url|image|image-set)\(/i;class sn extends en{attribute(e,t){return"style"===e&&Object.keys(t).forEach((e=>{String(t[e]).match(an)&&delete t[e]})),t}}const ln=/^<(!doctype|(html|head|body)(\s|>))/i,cn=/^(aria-|data-|\w+:)/iu,un=/{{{(\w+)\/?}}}/;function dn(){if(!(typeof window>"u"||typeof document>"u"))return document.implementation.createHTMLDocument("Interweave")}class pn{constructor(e,t={},n=[],r=[]){var o;if(An(this,"allowed",void 0),An(this,"banned",void 0),An(this,"blocked",void 0),An(this,"container",void 0),An(this,"content",[]),An(this,"props",void 0),An(this,"matchers",void 0),An(this,"filters",void 0),An(this,"keyIndex",void 0),"production"!==process.env.NODE_ENV&&e&&"string"!=typeof e)throw new TypeError("Interweave parser requires a valid string.");this.props=t,this.matchers=n,this.filters=[...r,new sn],this.keyIndex=-1,this.container=this.createContainer(e||""),this.allowed=new Set(null!==(o=t.allowList)&&void 0!==o?o:Vt),this.banned=new Set(Xt),this.blocked=new Set(t.blockList)}applyAttributeFilters(e,t){return this.filters.reduce(((t,n)=>null!==t&&"function"==typeof n.attribute?n.attribute(e,t):t),t)}applyNodeFilters(e,t){return this.filters.reduce(((t,n)=>null!==t&&"function"==typeof n.node?n.node(e,t):t),t)}applyMatchers(e,t){const n={},{props:r}=this;let o=e,i=0,A=null;return this.matchers.forEach((e=>{const a=e.asTag().toLowerCase(),s=this.getTagConfig(a);if(r[e.inverseName]||!this.isTagAllowed(a)||!this.canRenderChild(t,s))return;let l="";for(;o&&(A=e.match(o));){const{index:t,length:a,match:s,valid:c,void:u,...d}=A,p=e.propName+String(i);t>0&&(l+=o.slice(0,t)),c?(l+=u?`{{{${p}/}}}`:`{{{${p}}}}${s}{{{/${p}}}}`,this.keyIndex+=1,i+=1,n[p]={children:s,matcher:e,props:{...r,...d,key:this.keyIndex}}):l+=s,e.greedy?(o=l+o.slice(t+a),l=""):o=o.slice(t+(a||s.length))}e.greedy||(o=l+o)})),0===i?e:this.replaceTokens(o,n)}canRenderChild(e,t){return!(!e.tagName||!t.tagName||e.void)&&(e.children.length>0?e.children.includes(t.tagName):!(e.invalid.length>0&&e.invalid.includes(t.tagName))&&(t.parent.length>0?t.parent.includes(e.tagName):!(!e.self&&e.tagName===t.tagName)&&!!(e&&e.content&t.type)))}convertLineBreaks(e){const{noHtml:t,disableLineBreaks:n}=this.props;if(t||n||e.match(/<((?:\/[ a-z]+)|(?:[ a-z]+\/))>/gi))return e;let r=e.replace(/\r\n/g,"\n");return r=r.replace(/\n{3,}/g,"\n\n\n"),r=r.replace(/\n/g,"<br/>"),r}createContainer(e){var t;const n=(typeof global<"u"&&global.INTERWEAVE_SSR_POLYFILL||dn)();if(!n)return;const r=null!==(t=this.props.containerTagName)&&void 0!==t?t:"body",o="body"===r||"fragment"===r?n.body:n.createElement(r);if(e.match(ln)){if("production"!==process.env.NODE_ENV)throw new Error("HTML documents as Interweave content are not supported.")}else o.innerHTML=this.convertLineBreaks(this.props.escapeHtml?on(e):e);return o}extractAttributes(e){const{allowAttributes:t}=this.props,n={};let r=0;return 1===e.nodeType&&e.attributes&&([...e.attributes].forEach((o=>{const{name:i,value:A}=o,a=i.toLowerCase(),s=Kt[a]||Kt[i];if(!this.isSafe(e)||!a.match(cn)&&(!t&&(!s||2===s)||a.startsWith("on")||A.replace(/(\s|\0|&#x0([9AD]);)/,"").match(/(javascript|vbscript|livescript|xss):/i)))return;let l="style"===a?this.extractStyleAttribute(e):A;4===s?l=!0:3===s?l=Number.parseFloat(String(l)):5!==s&&(l=String(l)),n[Jt[a]||a]=this.applyAttributeFilters(a,l),r+=1})),0!==r)?n:null}extractStyleAttribute(e){const t={};return Array.from(e.style).forEach((n=>{const r=e.style[n];("string"==typeof r||"number"==typeof r)&&(t[n.replace(/-([a-z])/g,((e,t)=>String(t).toUpperCase()))]=r)})),t}getTagConfig(e){const t={children:[],content:0,invalid:[],parent:[],self:!0,tagName:"",type:0,void:!1};return Wt[e]?{...t,...Wt[e],tagName:e}:t}isSafe(e){if(typeof HTMLAnchorElement<"u"&&e instanceof HTMLAnchorElement){const t=e.getAttribute("href");if(null!=t&&t.startsWith("#"))return!0;const n=e.protocol.toLowerCase();return":"===n||"http:"===n||"https:"===n||"mailto:"===n||"tel:"===n}return!0}isTagAllowed(e){return!this.banned.has(e)&&!this.blocked.has(e)&&(this.props.allowElements||this.allowed.has(e))}parse(){return this.container?this.parseNode(this.container,this.getTagConfig(this.container.nodeName.toLowerCase())):[]}parseNode(t,n){const{noHtml:r,noHtmlExceptMatchers:o,allowElements:i,transform:A,transformOnlyAllowList:a}=this.props;let s=[],l="";return[...t.childNodes].forEach((t=>{if(1===t.nodeType){const u=t.nodeName.toLowerCase(),d=this.getTagConfig(u);l&&(s.push(l),l="");const p=this.applyNodeFilters(u,t);if(!p)return;let f;if(A&&(!a||this.isTagAllowed(u))){this.keyIndex+=1;const t=this.keyIndex;f=this.parseNode(p,d);const n=A(p,f,d);if(null===n)return;if(typeof n<"u")return void s.push(e.cloneElement(n,{key:t}));this.keyIndex=t-1}if(this.banned.has(u))return;if(r||o&&"br"!==u||!this.isTagAllowed(u)||!i&&!this.canRenderChild(n,d))s=[...s,...this.parseNode(p,d.tagName?d:n)];else{var c;this.keyIndex+=1;const t=this.extractAttributes(p),n={tagName:u};t&&(n.attributes=t),d.void&&(n.selfClose=d.void),s.push(e.createElement($t,{...n,key:this.keyIndex},null!==(c=f)&&void 0!==c?c:this.parseNode(p,d)))}}else if(3===t.nodeType){const e=r&&!o?t.textContent:this.applyMatchers(t.textContent||"",n);Array.isArray(e)?s=[...s,...e]:l+=e}})),l&&s.push(l),s}replaceTokens(e,t){if(!e.includes("{{{"))return e;const n=[];let r=e,o=null;for(;o=r.match(un);){const[e,i]=o,A=o.index,a=e.includes("/");if("production"!==process.env.NODE_ENV&&!t[i])throw new Error(`Token "${i}" found but no matching element to replace with.`);A>0&&(n.push(r.slice(0,A)),r=r.slice(A));const{children:s,matcher:l,props:c}=t[i];let u;if(a)u=e.length,n.push(l.createElement(s,c));else{const o=r.match(new RegExp(`{{{/${i}}}}`));if("production"!==process.env.NODE_ENV&&!o)throw new Error(`Closing token missing for interpolated element "${i}".`);u=o.index+o[0].length,n.push(l.createElement(this.replaceTokens(r.slice(e.length,o.index),t),c))}r=r.slice(u)}return r.length>0&&n.push(r),0===n.length?"":1===n.length&&"string"==typeof n[0]?n[0]:n}}function fn(t){var n;const{attributes:r,className:o,containerTagName:i,content:A,emptyContent:a,parsedContent:s,tagName:l,noWrap:c}=t,u=null!==(n=i??l)&&void 0!==n?n:"span",d="fragment"===u||c;let p;if(s)p=s;else{const e=new pn(A??"",t).parse();e.length>0&&(p=e)}return p||(p=a),d?e.createElement(e.Fragment,null,p):e.createElement($t,{attributes:r,className:o,tagName:u},p)}function hn(t){const{attributes:n,className:r,content:o="",disableFilters:i=!1,disableMatchers:A=!1,emptyContent:a=null,filters:s=[],matchers:l=[],onAfterParse:c=null,onBeforeParse:u=null,tagName:d="span",noWrap:p=!1,...f}=t,h=A?[]:l,g=i?[]:s,m=u?[u]:[],b=c?[c]:[];h.forEach((e=>{e.onBeforeParse&&m.push(e.onBeforeParse.bind(e)),e.onAfterParse&&b.push(e.onAfterParse.bind(e))}));const y=m.reduce(((e,n)=>{const r=n(e,t);if("production"!==process.env.NODE_ENV&&"string"!=typeof r)throw new TypeError("Interweave `onBeforeParse` must return a valid HTML string.");return r}),o??""),v=new pn(y,f,h,g),w=b.reduce(((e,n)=>{const r=n(e,t);if("production"!==process.env.NODE_ENV&&!Array.isArray(r))throw new TypeError("Interweave `onAfterParse` must return an array of strings and React elements.");return r}),v.parse());return e.createElement(fn,{attributes:n,className:r,containerTagName:t.containerTagName,emptyContent:a,noWrap:p,parsedContent:0===w.length?void 0:w,tagName:d})}const gn=({children:e})=>n.jsx(hn,{content:"string"==typeof e?e:""}),mn={autoConfig:!0},bn=(e,t,n)=>{var r;if(!e.detail.currPath)return!1;const o=t[e.detail.currPath];return!!o&&((null==(r=o.renderHtml)?void 0:r.map((e=>e.toUpperCase())).includes(n))??!1)},yn=e=>{const t=[];let n="",r=!1;for(let o=0;o<e.length;o++){const i=e[o];"<"===i?r?(t.push(n),n=i):(r=!0,n=i):">"===i?(n+=i,t.push(n),n="",r=!1):r?n+=i:t.push(i)}return""!==n&&t.push(n),t},vn=t=>{const{getFlow:n}=_t(),{messages:r,replaceMessages:o}=Ft(),{settings:i}=zt(),{hasChatHistoryLoaded:A}=Gt(),a={...t,...mn},s=a.htmlComponent?a.htmlComponent:gn;e.useEffect((()=>{var e,t;if(A){const n=[...r];for(let r=0;r<n.length&&r<((null==(e=i.chatHistory)?void 0:e.maxEntries)??30);r++){const e=n[r];null!=(t=e.tags)&&t.includes("rcb-html-renderer-plugin:parsed")&&(e.contentWrapper=s)}o(n)}}),[A]);const l=async e=>{var t;const r=null==(t=e.data.message)?void 0:t.sender.toUpperCase();"string"==typeof e.data.message.content&&bn(e,n(),r)&&("rcb-start-simulate-stream-message"===e.type&&(e.data.simulateStreamChunker=yn),e.data.message.contentWrapper=s,e.data.message.tags||(e.data.message.tags=[]),e.data.message.tags.push("rcb-html-renderer-plugin:parsed"))};Ut(R.PRE_INJECT_MESSAGE,l),Ut(R.CHUNK_STREAM_MESSAGE,l),Ut(R.START_STREAM_MESSAGE,l),Ut(R.START_SIMULATE_STREAM_MESSAGE,l),Ut(R.START_SPEAK_AUDIO,(async e=>{bn(e,n(),"BOT")&&(e.data.textToRead=(e=>typeof window.DOMParser<"u"?(new DOMParser).parseFromString(e,"text/html").body.textContent||"":e.replace(/<\/?[^>]+(>|$)/g,""))(e.data.textToRead))}));const c={name:"@rcb-plugins/html-renderer"};return null!=a&&a.autoConfig&&(c.settings={event:{rcbPreInjectMessage:!0,rcbChunkStreamMessage:!0,rcbStartSimulateStreamMessage:!0,rcbStartStreamMessage:!0,rcbStartSpeakAudio:!0}}),c};const wn=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,xn=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,En={};function kn(e,t){return(En.jsx?xn:wn).test(e)}const Pn=/[ \t\n\f\r]/g;function Cn(e){return""===e.replace(Pn,"")}class Bn{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function Dn(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new Bn(n,r,t)}function Sn(e){return e.toLowerCase()}Bn.prototype.property={},Bn.prototype.normal={},Bn.prototype.space=null;class In{constructor(e,t){this.property=e,this.attribute=t}}In.prototype.space=null,In.prototype.boolean=!1,In.prototype.booleanish=!1,In.prototype.overloadedBoolean=!1,In.prototype.number=!1,In.prototype.commaSeparated=!1,In.prototype.spaceSeparated=!1,In.prototype.commaOrSpaceSeparated=!1,In.prototype.mustUseProperty=!1,In.prototype.defined=!1;let Tn=0;const Qn=Hn(),Mn=Hn(),On=Hn(),Nn=Hn(),Ln=Hn(),Rn=Hn(),jn=Hn();function Hn(){return 2**++Tn}const _n=Object.freeze(Object.defineProperty({__proto__:null,boolean:Qn,booleanish:Mn,commaOrSpaceSeparated:jn,commaSeparated:Rn,number:Nn,overloadedBoolean:On,spaceSeparated:Ln},Symbol.toStringTag,{value:"Module"})),Fn=Object.keys(_n);class Un extends In{constructor(e,t,n,r){let o=-1;if(super(e,t),zn(this,"space",r),"number"==typeof n)for(;++o<Fn.length;){const e=Fn[o];zn(this,Fn[o],(n&_n[e])===_n[e])}}}function zn(e,t,n){n&&(e[t]=n)}Un.prototype.defined=!0;const Gn={}.hasOwnProperty;function Yn(e){const t={},n={};let r;for(r in e.properties)if(Gn.call(e.properties,r)){const o=e.properties[r],i=new Un(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Sn(r)]=r,n[Sn(i.attribute)]=r}return new Bn(t,n,e.space)}const qn=Yn({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Wn=Yn({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Xn(e,t){return t in e?e[t]:t}function Vn(e,t){return Xn(e,t.toLowerCase())}const Kn=Yn({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Vn,properties:{xmlns:null,xmlnsXLink:null}}),Jn=Yn({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Mn,ariaAutoComplete:null,ariaBusy:Mn,ariaChecked:Mn,ariaColCount:Nn,ariaColIndex:Nn,ariaColSpan:Nn,ariaControls:Ln,ariaCurrent:null,ariaDescribedBy:Ln,ariaDetails:null,ariaDisabled:Mn,ariaDropEffect:Ln,ariaErrorMessage:null,ariaExpanded:Mn,ariaFlowTo:Ln,ariaGrabbed:Mn,ariaHasPopup:null,ariaHidden:Mn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ln,ariaLevel:Nn,ariaLive:null,ariaModal:Mn,ariaMultiLine:Mn,ariaMultiSelectable:Mn,ariaOrientation:null,ariaOwns:Ln,ariaPlaceholder:null,ariaPosInSet:Nn,ariaPressed:Mn,ariaReadOnly:Mn,ariaRelevant:null,ariaRequired:Mn,ariaRoleDescription:Ln,ariaRowCount:Nn,ariaRowIndex:Nn,ariaRowSpan:Nn,ariaSelected:Mn,ariaSetSize:Nn,ariaSort:null,ariaValueMax:Nn,ariaValueMin:Nn,ariaValueNow:Nn,ariaValueText:null,role:null}}),Zn=Yn({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Vn,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Rn,acceptCharset:Ln,accessKey:Ln,action:null,allow:null,allowFullScreen:Qn,allowPaymentRequest:Qn,allowUserMedia:Qn,alt:null,as:null,async:Qn,autoCapitalize:null,autoComplete:Ln,autoFocus:Qn,autoPlay:Qn,blocking:Ln,capture:null,charSet:null,checked:Qn,cite:null,className:Ln,cols:Nn,colSpan:null,content:null,contentEditable:Mn,controls:Qn,controlsList:Ln,coords:Nn|Rn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Qn,defer:Qn,dir:null,dirName:null,disabled:Qn,download:On,draggable:Mn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Qn,formTarget:null,headers:Ln,height:Nn,hidden:Qn,high:Nn,href:null,hrefLang:null,htmlFor:Ln,httpEquiv:Ln,id:null,imageSizes:null,imageSrcSet:null,inert:Qn,inputMode:null,integrity:null,is:null,isMap:Qn,itemId:null,itemProp:Ln,itemRef:Ln,itemScope:Qn,itemType:Ln,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Qn,low:Nn,manifest:null,max:null,maxLength:Nn,media:null,method:null,min:null,minLength:Nn,multiple:Qn,muted:Qn,name:null,nonce:null,noModule:Qn,noValidate:Qn,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Qn,optimum:Nn,pattern:null,ping:Ln,placeholder:null,playsInline:Qn,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Qn,referrerPolicy:null,rel:Ln,required:Qn,reversed:Qn,rows:Nn,rowSpan:Nn,sandbox:Ln,scope:null,scoped:Qn,seamless:Qn,selected:Qn,shadowRootClonable:Qn,shadowRootDelegatesFocus:Qn,shadowRootMode:null,shape:null,size:Nn,sizes:null,slot:null,span:Nn,spellCheck:Mn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Nn,step:null,style:null,tabIndex:Nn,target:null,title:null,translate:null,type:null,typeMustMatch:Qn,useMap:null,value:Mn,width:Nn,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ln,axis:null,background:null,bgColor:null,border:Nn,borderColor:null,bottomMargin:Nn,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Qn,declare:Qn,event:null,face:null,frame:null,frameBorder:null,hSpace:Nn,leftMargin:Nn,link:null,longDesc:null,lowSrc:null,marginHeight:Nn,marginWidth:Nn,noResize:Qn,noHref:Qn,noShade:Qn,noWrap:Qn,object:null,profile:null,prompt:null,rev:null,rightMargin:Nn,rules:null,scheme:null,scrolling:Mn,standby:null,summary:null,text:null,topMargin:Nn,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Nn,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Qn,disableRemotePlayback:Qn,prefix:null,property:null,results:Nn,security:null,unselectable:null}}),$n=Yn({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Xn,properties:{about:jn,accentHeight:Nn,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Nn,amplitude:Nn,arabicForm:null,ascent:Nn,attributeName:null,attributeType:null,azimuth:Nn,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Nn,by:null,calcMode:null,capHeight:Nn,className:Ln,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Nn,diffuseConstant:Nn,direction:null,display:null,dur:null,divisor:Nn,dominantBaseline:null,download:Qn,dx:null,dy:null,edgeMode:null,editable:null,elevation:Nn,enableBackground:null,end:null,event:null,exponent:Nn,externalResourcesRequired:null,fill:null,fillOpacity:Nn,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Rn,g2:Rn,glyphName:Rn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Nn,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Nn,horizOriginX:Nn,horizOriginY:Nn,id:null,ideographic:Nn,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Nn,k:Nn,k1:Nn,k2:Nn,k3:Nn,k4:Nn,kernelMatrix:jn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Nn,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Nn,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Nn,overlineThickness:Nn,paintOrder:null,panose1:null,path:null,pathLength:Nn,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ln,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Nn,pointsAtY:Nn,pointsAtZ:Nn,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:jn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:jn,rev:jn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:jn,requiredFeatures:jn,requiredFonts:jn,requiredFormats:jn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Nn,specularExponent:Nn,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Nn,strikethroughThickness:Nn,string:null,stroke:null,strokeDashArray:jn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Nn,strokeOpacity:Nn,strokeWidth:null,style:null,surfaceScale:Nn,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:jn,tabIndex:Nn,tableValues:null,target:null,targetX:Nn,targetY:Nn,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:jn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Nn,underlineThickness:Nn,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Nn,values:null,vAlphabetic:Nn,vMathematical:Nn,vectorEffect:null,vHanging:Nn,vIdeographic:Nn,version:null,vertAdvY:Nn,vertOriginX:Nn,vertOriginY:Nn,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Nn,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),er=/^data[-\w.:]+$/i,tr=/-[a-z]/g,nr=/[A-Z]/g;function rr(e){return"-"+e.toLowerCase()}function or(e){return e.charAt(1).toUpperCase()}const ir={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Ar=Dn([Wn,qn,Kn,Jn,Zn],"html"),ar=Dn([Wn,qn,Kn,Jn,$n],"svg");function sr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lr,cr,ur,dr={};var pr=function(){if(ur)return dr;ur=1;var e=dr&&dr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(dr,"__esModule",{value:!0}),dr.default=function(e,n){var r=null;if(!e||"string"!=typeof e)return r;var o=(0,t.default)(e),i="function"==typeof n;return o.forEach((function(e){if("declaration"===e.type){var t=e.property,o=e.value;i?n(t,o,e):o&&((r=r||{})[t]=o)}})),r};var t=e(function(){if(cr)return lr;cr=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,A=/^[;\s]*/,a=/^\s+|\s+$/g,s="";function l(e){return e?e.replace(a,s):s}return lr=function(a,c){if("string"!=typeof a)throw new TypeError("First argument must be a string");if(!a)return[];c=c||{};var u=1,d=1;function p(e){var n=e.match(t);n&&(u+=n.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function f(){var e={line:u,column:d};return function(t){return t.position=new h(e),b(),t}}function h(e){this.start=e,this.end={line:u,column:d},this.source=c.source}function g(e){var t=new Error(c.source+":"+u+":"+d+": "+e);if(t.reason=e,t.filename=c.source,t.line=u,t.column=d,t.source=a,!c.silent)throw t}function m(e){var t=e.exec(a);if(t){var n=t[0];return p(n),a=a.slice(n.length),t}}function b(){m(n)}function y(e){var t;for(e=e||[];t=v();)!1!==t&&e.push(t);return e}function v(){var e=f();if("/"==a.charAt(0)&&"*"==a.charAt(1)){for(var t=2;s!=a.charAt(t)&&("*"!=a.charAt(t)||"/"!=a.charAt(t+1));)++t;if(t+=2,s===a.charAt(t-1))return g("End of comment missing");var n=a.slice(2,t-2);return d+=2,p(n),a=a.slice(t),d+=2,e({type:"comment",comment:n})}}function w(){var t=f(),n=m(r);if(n){if(v(),!m(o))return g("property missing ':'");var a=m(i),c=t({type:"declaration",property:l(n[0].replace(e,s)),value:a?l(a[0].replace(e,s)):s});return m(A),c}}return h.prototype.content=a,b(),function(){var e,t=[];for(y(t);e=w();)!1!==e&&(t.push(e),y(t));return t}()},lr}());return dr}();const fr=sr(pr),hr=fr.default||fr,gr=br("end"),mr=br("start");function br(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function yr(e){return e&&"object"==typeof e?"position"in e||"type"in e?wr(e.position):"start"in e||"end"in e?wr(e):"line"in e||"column"in e?vr(e):"":""}function vr(e){return xr(e&&e.line)+":"+xr(e&&e.column)}function wr(e){return vr(e&&e.start)+"-"+vr(e&&e.end)}function xr(e){return e&&"number"==typeof e?e:1}class Er extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",o={},i=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!o.cause&&e&&(i=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const A=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=A?A.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=A?A.line:void 0,this.name=yr(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=i&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}Er.prototype.file="",Er.prototype.name="",Er.prototype.reason="",Er.prototype.message="",Er.prototype.stack="",Er.prototype.column=void 0,Er.prototype.line=void 0,Er.prototype.ancestors=void 0,Er.prototype.cause=void 0,Er.prototype.fatal=void 0,Er.prototype.place=void 0,Er.prototype.ruleId=void 0,Er.prototype.source=void 0;const kr={}.hasOwnProperty,Pr=new Map,Cr=/[A-Z]/g,Br=/-([a-z])/g,Dr=new Set(["table","tbody","thead","tfoot","tr"]),Sr=new Set(["td","th"]),Ir="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Tr(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,o,i){const A=Array.isArray(o.children),a=mr(n);return t(r,o,i,A,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,o,i){const A=Array.isArray(o.children)?n:t;return i?A(r,o,i):A(r,o)}}(0,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?ar:Ar,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},i=Qr(o,e,void 0);return i&&"string"!=typeof i?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function Qr(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(o=ar,e.schema=o),e.ancestors.push(t);const i=Rr(e,t.tagName,!1),A=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&kr.call(t.properties,o)){const i=Lr(e,o,t.properties[o]);if(i){const[o,A]=i;e.tableCellAlignToStyle&&"align"===o&&"string"==typeof A&&Sr.has(t.tagName)?r=A:n[o]=A}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let a=Nr(e,t);return Dr.has(t.tagName)&&(a=a.filter((function(e){return"string"!=typeof e||!function(e){return"object"==typeof e?"text"===e.type&&Cn(e.value):Cn(e)}(e)}))),Mr(e,A,i,t),Or(A,a),e.ancestors.pop(),e.schema=r,e.create(t,i,A,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}jr(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.name&&"html"===r.space&&(o=ar,e.schema=o),e.ancestors.push(t);const i=null===t.name?e.Fragment:Rr(e,t.name,!0),A=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];t.type;const o=t.expression;o.type;const i=o.properties[0];i.type,Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else jr(e,t.position);else{const o=r.name;let i;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];t.type,i=e.evaluater.evaluateExpression(t.expression)}else jr(e,t.position);else i=null===r.value||r.value;n[o]=i}return n}(e,t),a=Nr(e,t);return Mr(e,A,i,t),Or(A,a),e.ancestors.pop(),e.schema=r,e.create(t,i,A,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);jr(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return Or(r,Nr(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function Mr(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Or(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Nr(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:Pr;for(;++r<t.children.length;){const i=t.children[r];let A;if(e.passKeys){const e="element"===i.type?i.tagName:"mdxJsxFlowElement"===i.type||"mdxJsxTextElement"===i.type?i.name:void 0;if(e){const t=o.get(e)||0;A=e+"-"+t,o.set(e,t+1)}}const a=Qr(e,i,A);void 0!==a&&n.push(a)}return n}function Lr(e,t,n){const r=function(e,t){const n=Sn(t);let r=t,o=In;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&er.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(tr,or);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!tr.test(e)){let n=e.replace(nr,rr);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=Un}return new o(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(n):function(e){return e.join(" ").trim()}(n)),"style"===r.property){let t="object"==typeof n?n:function(e,t){const n={};try{hr(t,r)}catch(t){if(!e.ignoreInvalidStyle){const n=t,r=new Er("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Ir+"#cannot-parse-style-attribute",r}}return n;function r(e,t){let r=e;"--"!==r.slice(0,2)&&("-ms-"===r.slice(0,4)&&(r="ms-"+r.slice(4)),r=r.replace(Br,_r)),n[r]=t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)kr.call(e,n)&&(t[Hr(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?ir[r.property]||r.property:r.attribute,n]}}function Rr(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++o<e.length;){const t=kn(e[o])?{type:"Identifier",name:e[o]}:{type:"Literal",value:e[o]};n=n?{type:"MemberExpression",object:n,property:t,computed:!(!o||"Literal"!==t.type),optional:!1}:t}r=n}else r=kn(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return kr.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);jr(e)}function jr(e,t){const n=new Er("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Ir+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Hr(e){let t=e.replace(Cr,Fr);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function _r(e,t){return t.toUpperCase()}function Fr(e){return"-"+e.toLowerCase()}const Ur={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},zr={};function Gr(e,t,n){if(function(e){return!(!e||"object"!=typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Yr(e.children,t,n)}return Array.isArray(e)?Yr(e,t,n):""}function Yr(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=Gr(e[o],t,n);return r.join("")}const qr=document.createElement("i");function Wr(e){const t="&"+e+";";qr.innerHTML=t;const n=qr.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}function Xr(e,t,n,r){const o=e.length;let i,A=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);A<r.length;)i=r.slice(A,A+1e4),i.unshift(t,0),e.splice(...i),A+=1e4,t+=1e4}function Vr(e,t){return e.length>0?(Xr(e,e.length,0,t),e):t}const Kr={}.hasOwnProperty;function Jr(e){const t={};let n=-1;for(;++n<e.length;)Zr(t,e[n]);return t}function Zr(e,t){let n;for(n in t){const r=(Kr.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){Kr.call(r,i)||(r[i]=[]);const e=o[i];$r(r[i],Array.isArray(e)?e:e?[e]:[])}}}function $r(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);Xr(e,0,0,r)}function eo(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function to(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const no=ho(/[A-Za-z]/),ro=ho(/[\dA-Za-z]/),oo=ho(/[#-'*+\--9=?A-Z^-~]/);function io(e){return null!==e&&(e<32||127===e)}const Ao=ho(/\d/),ao=ho(/[\dA-Fa-f]/),so=ho(/[!-/:-@[-`{-~]/);function lo(e){return null!==e&&e<-2}function co(e){return null!==e&&(e<0||32===e)}function uo(e){return-2===e||-1===e||32===e}const po=ho(new RegExp("\\p{P}|\\p{S}","u")),fo=ho(/\s/);function ho(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function go(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let A="";if(37===i&&ro(e.charCodeAt(n+1))&&ro(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(A=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(A=String.fromCharCode(i,t),o=1):A="�"}else A=String.fromCharCode(i);A&&(t.push(e.slice(r,n),encodeURIComponent(A)),r=n+o+1,A=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function mo(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){return uo(r)?(e.enter(n),A(r)):t(r)};function A(r){return uo(r)&&i++<o?(e.consume(r),A):(e.exit(n),t(r))}}const bo={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),mo(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):lo(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}};const yo={tokenize:function(e){const t=this,n=[];let r,o,i,A=0;return a;function a(r){if(A<n.length){const o=n[A];return t.containerState=o[1],e.attempt(o[0].continuation,s,l)(r)}return l(r)}function s(e){if(A++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&b();const n=t.events.length;let o,i=n;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}m(A);let a=n;for(;a<t.events.length;)t.events[a][1].end={...o},a++;return Xr(t.events,i+1,0,t.events.slice(n)),t.events.length=a,l(e)}return a(e)}function l(o){if(A===n.length){if(!r)return d(o);if(r.currentConstruct&&r.currentConstruct.concrete)return f(o);t.interrupt=!(!r.currentConstruct||r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(vo,c,u)(o)}function c(e){return r&&b(),m(A),d(e)}function u(e){return t.parser.lazy[t.now().line]=A!==n.length,i=t.now().offset,f(e)}function d(n){return t.containerState={},e.attempt(vo,p,f)(n)}function p(e){return A++,n.push([t.currentConstruct,t.containerState]),d(e)}function f(n){return null===n?(r&&b(),m(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),h(n))}function h(n){return null===n?(g(e.exit("chunkFlow"),!0),m(0),void e.consume(n)):lo(n)?(e.consume(n),g(e.exit("chunkFlow")),A=0,t.interrupt=void 0,a):(e.consume(n),h)}function g(e,n){const a=t.sliceStream(e);if(n&&a.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(a),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<i&&(!r.events[e][1].end||r.events[e][1].end.offset>i))return;const n=t.events.length;let o,a,s=n;for(;s--;)if("exit"===t.events[s][0]&&"chunkFlow"===t.events[s][1].type){if(o){a=t.events[s][1].end;break}o=!0}for(m(A),e=n;e<t.events.length;)t.events[e][1].end={...a},e++;Xr(t.events,s+1,0,t.events.slice(n)),t.events.length=e}}function m(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function b(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},vo={tokenize:function(e,t,n){return mo(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function wo(e){return null===e||co(e)||fo(e)?1:po(e)?2:void 0}function xo(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const Eo={name:"attention",resolveAll:function(e,t){let n,r,o,i,A,a,s,l,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close)for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;const u={...e[n][1].end},d={...e[c][1].start};ko(u,-a),ko(d,a),i={type:a>1?"strongSequence":"emphasisSequence",start:u,end:{...e[n][1].end}},A={type:a>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:d},o={type:a>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:a>1?"strong":"emphasis",start:{...i.start},end:{...A.end}},e[n][1].end={...i.start},e[c][1].start={...A.end},s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=Vr(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=Vr(s,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),s=Vr(s,xo(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),s=Vr(s,[["exit",o,t],["enter",A,t],["exit",A,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(l=2,s=Vr(s,[["enter",e[c][1],t],["exit",e[c][1],t]])):l=0,Xr(e,n-1,c-n+3,s),c=n+s.length-l-2;break}for(c=-1;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=wo(r);let i;return function(t){return i=t,e.enter("attentionSequence"),A(t)};function A(a){if(a===i)return e.consume(a),A;const s=e.exit("attentionSequence"),l=wo(a),c=!l||2===l&&o||n.includes(a),u=!o||2===o&&l||n.includes(r);return s._open=!!(42===i?c:c&&(o||!u)),s._close=!!(42===i?u:u&&(l||!c)),t(a)}}};function ko(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Po={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return no(t)?(e.consume(t),i):64===t?n(t):s(t)}function i(e){return 43===e||45===e||46===e||ro(e)?(r=1,A(e)):s(e)}function A(t){return 58===t?(e.consume(t),r=0,a):(43===t||45===t||46===t||ro(t))&&r++<32?(e.consume(t),A):(r=0,s(t))}function a(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||io(r)?n(r):(e.consume(r),a)}function s(t){return 64===t?(e.consume(t),l):oo(t)?(e.consume(t),s):n(t)}function l(e){return ro(e)?c(e):n(e)}function c(n){return 46===n?(e.consume(n),r=0,l):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):u(n)}function u(t){if((45===t||ro(t))&&r++<63){const n=45===t?u:c;return e.consume(t),n}return n(t)}}};const Co={partial:!0,tokenize:function(e,t,n){return function(t){return uo(t)?mo(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||lo(e)?t(e):n(e)}}};const Bo={continuation:{tokenize:function(e,t,n){const r=this;return function(t){return uo(t)?mo(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):o(t)};function o(r){return e.attempt(Bo,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return uo(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};const Do={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return so(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const So={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,A=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,i=ro,l(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=ao,l):(e.enter("characterReferenceValue"),o=7,i=Ao,l(t))}function l(a){if(59===a&&A){const o=e.exit("characterReferenceValue");return i!==ro||Wr(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return i(a)&&A++<o?(e.consume(a),l):n(a)}}};const Io={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},To={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return A;function A(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s}function s(t){return e.enter("codeFencedFence"),uo(t)?mo(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===i?(e.enter("codeFencedFenceSequence"),c(t)):n(t)}function c(t){return t===i?(o++,e.consume(t),c):o>=a?(e.exit("codeFencedFenceSequence"),uo(t)?mo(e,u,"whitespace")(t):u(t)):n(t)}function u(r){return null===r||lo(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let i,A=0,a=0;return function(t){return function(t){const n=r.events[r.events.length-1];return A=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(t)}(t)};function s(t){return t===i?(a++,e.consume(t),s):a<3?n(t):(e.exit("codeFencedFenceSequence"),uo(t)?mo(e,l,"whitespace")(t):l(t))}function l(n){return null===n||lo(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(Io,p,b)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),c(n))}function c(t){return null===t||lo(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(t)):uo(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),mo(e,u,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),c)}function u(t){return null===t||lo(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return null===t||lo(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(t)):96===t&&t===i?n(t):(e.consume(t),d)}function p(t){return e.attempt(o,b,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h}function h(t){return A>0&&uo(t)?mo(e,g,"linePrefix",A+1)(t):g(t)}function g(t){return null===t||lo(t)?e.check(Io,p,b)(t):(e.enter("codeFlowValue"),m(t))}function m(t){return null===t||lo(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),m)}function b(n){return e.exit("codeFenced"),t(n)}}};const Qo={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),mo(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?a(t):lo(t)?e.attempt(Mo,i,a)(t):(e.enter("codeFlowValue"),A(t))}function A(t){return null===t||lo(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),A)}function a(n){return e.exit("codeIndented"),t(n)}}},Mo={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):lo(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):mo(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):lo(e)?o(e):n(e)}}};const Oo={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}for(t=o-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,o,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),A(t)};function A(t){return 96===t?(e.consume(t),i++,A):(e.exit("codeTextSequence"),a(t))}function a(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),a):96===t?(o=e.enter("codeTextSequence"),r=0,l(t)):lo(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):(e.enter("codeTextData"),s(t))}function s(t){return null===t||32===t||96===t||lo(t)?(e.exit("codeTextData"),a(t)):(e.consume(t),s)}function l(n){return 96===n?(e.consume(n),r++,l):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",s(n))}}};class No{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=t??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&Lo(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Lo(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Lo(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);Lo(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Lo(this.left,t.reverse())}}}function Lo(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Ro(e){const t={};let n,r,o,i,A,a,s,l=-1;const c=new No(e);for(;++l<c.length;){for(;l in t;)l=t[l];if(n=c.get(l),l&&"chunkFlow"===n[1].type&&"listItemPrefix"===c.get(l-1)[1].type&&(a=n[1]._tokenizer.events,o=0,o<a.length&&"lineEndingBlank"===a[o][1].type&&(o+=2),o<a.length&&"content"===a[o][1].type))for(;++o<a.length&&"content"!==a[o][1].type;)"chunkText"===a[o][1].type&&(a[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,jo(c,l)),l=t[l],s=!0);else if(n[1]._container){for(o=l,r=void 0;o--;)if(i=c.get(o),"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(r&&(c.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);else if("linePrefix"!==i[1].type)break;r&&(n[1].end={...c.get(r)[1].start},A=c.slice(r,l),A.unshift(n),c.splice(r,l-r+1,A))}}return Xr(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!s}function jo(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[],A=n._tokenizer||r.parser[n.contentType](n.start),a=A.events,s=[],l={};let c,u,d=-1,p=n,f=0,h=0;const g=[h];for(;p;){for(;e.get(++o)[1]!==p;);i.push(o),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),u&&A.defineSkip(p.start),p._isInFirstContentOfListItem&&(A._gfmTasklistFirstContentOfListItem=!0),A.write(c),p._isInFirstContentOfListItem&&(A._gfmTasklistFirstContentOfListItem=void 0)),u=p,p=p.next}for(p=n;++d<a.length;)"exit"===a[d][0]&&"enter"===a[d-1][0]&&a[d][1].type===a[d-1][1].type&&a[d][1].start.line!==a[d][1].end.line&&(h=d+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(A.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),d=g.length;d--;){const t=a.slice(g[d],g[d+1]),n=i.pop();s.push([n,n+t.length-1]),e.splice(n,2,t)}for(s.reverse(),d=-1;++d<s.length;)l[f+s[d][0]]=f+s[d][1],f+=s[d][1]-s[d][0]-1;return l}const Ho={resolve:function(e){return Ro(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):lo(t)?e.check(_o,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},_o={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),mo(e,o,"linePrefix")};function o(o){if(null===o||lo(o))return n(o);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}};function Fo(e,t,n,r,o,i,A,a,s){const l=s||Number.POSITIVE_INFINITY;let c=0;return function(t){return 60===t?(e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),u):null===t||32===t||41===t||io(t)?n(t):(e.enter(r),e.enter(A),e.enter(a),e.enter("chunkString",{contentType:"string"}),f(t))};function u(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(a),u(t)):null===t||60===t||lo(t)?n(t):(e.consume(t),92===t?p:d)}function p(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function f(o){return c||null!==o&&41!==o&&!co(o)?c<l&&40===o?(e.consume(o),c++,f):41===o?(e.consume(o),c--,f):null===o||32===o||40===o||io(o)?n(o):(e.consume(o),92===o?h:f):(e.exit("chunkString"),e.exit(a),e.exit(A),e.exit(r),t(o))}function h(t){return 40===t||41===t||92===t?(e.consume(t),f):f(t)}}function Uo(e,t,n,r,o,i){const A=this;let a,s=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(i),l};function l(u){return s>999||null===u||91===u||93===u&&!a||94===u&&!s&&"_hiddenFootnoteSupport"in A.parser.constructs?n(u):93===u?(e.exit(i),e.enter(o),e.consume(u),e.exit(o),e.exit(r),t):lo(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l):(e.enter("chunkString",{contentType:"string"}),c(u))}function c(t){return null===t||91===t||93===t||lo(t)||s++>999?(e.exit("chunkString"),l(t)):(e.consume(t),a||(a=!uo(t)),92===t?u:c)}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function zo(e,t,n,r,o,i){let A;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(o),e.consume(t),e.exit(o),A=40===t?41:t,a):n(t)};function a(n){return n===A?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),s(n))}function s(t){return t===A?(e.exit(i),a(A)):null===t?n(t):lo(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),mo(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),l(t))}function l(t){return t===A||null===t||lo(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?c:l)}function c(t){return t===A||92===t?(e.consume(t),l):l(t)}}function Go(e,t){let n;return function r(o){return lo(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):uo(o)?mo(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}const Yo={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return Uo.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=to(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),A):n(t)}function A(t){return co(t)?Go(e,a)(t):a(t)}function a(t){return Fo(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(qo,l,l)(t)}function l(t){return uo(t)?mo(e,c,"whitespace")(t):c(t)}function c(i){return null===i||lo(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},qo={partial:!0,tokenize:function(e,t,n){return function(t){return co(t)?Go(e,r)(t):n(t)};function r(t){return zo(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return uo(t)?mo(e,i,"whitespace")(t):i(t)}function i(e){return null===e||lo(e)?t(e):n(e)}}};const Wo={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return lo(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const Xo={name:"headingAtx",resolve:function(e,t){let n,r,o=e.length-2,i=3;return"whitespace"===e[i][1].type&&(i+=2),o-2>i&&"whitespace"===e[o][1].type&&(o-=2),"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4),o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},Xr(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||co(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),A(n)):null===n||lo(n)?(e.exit("atxHeading"),t(n)):uo(n)?mo(e,i,"whitespace")(n):(e.enter("atxHeadingText"),a(n))}function A(t){return 35===t?(e.consume(t),A):(e.exit("atxHeadingSequence"),i(t))}function a(t){return null===t||35===t||co(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),a)}}};const Vo=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Ko=["pre","script","style","textarea"],Jo={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){const r=this;let o,i,A,a,s;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),l}(t)};function l(a){return 33===a?(e.consume(a),c):47===a?(e.consume(a),i=!0,p):63===a?(e.consume(a),o=3,r.interrupt?t:O):no(a)?(e.consume(a),A=String.fromCharCode(a),f):n(a)}function c(i){return 45===i?(e.consume(i),o=2,u):91===i?(e.consume(i),o=5,a=0,d):no(i)?(e.consume(i),o=4,r.interrupt?t:O):n(i)}function u(o){return 45===o?(e.consume(o),r.interrupt?t:O):n(o)}function d(o){const i="CDATA[";return o===i.charCodeAt(a++)?(e.consume(o),6===a?r.interrupt?t:C:d):n(o)}function p(t){return no(t)?(e.consume(t),A=String.fromCharCode(t),f):n(t)}function f(a){if(null===a||47===a||62===a||co(a)){const s=47===a,l=A.toLowerCase();return s||i||!Ko.includes(l)?Vo.includes(A.toLowerCase())?(o=6,s?(e.consume(a),h):r.interrupt?t(a):C(a)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(a):i?g(a):m(a)):(o=1,r.interrupt?t(a):C(a))}return 45===a||ro(a)?(e.consume(a),A+=String.fromCharCode(a),f):n(a)}function h(o){return 62===o?(e.consume(o),r.interrupt?t:C):n(o)}function g(t){return uo(t)?(e.consume(t),g):k(t)}function m(t){return 47===t?(e.consume(t),k):58===t||95===t||no(t)?(e.consume(t),b):uo(t)?(e.consume(t),m):k(t)}function b(t){return 45===t||46===t||58===t||95===t||ro(t)?(e.consume(t),b):y(t)}function y(t){return 61===t?(e.consume(t),v):uo(t)?(e.consume(t),y):m(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,w):uo(t)?(e.consume(t),v):x(t)}function w(t){return t===s?(e.consume(t),s=null,E):null===t||lo(t)?n(t):(e.consume(t),w)}function x(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||co(t)?y(t):(e.consume(t),x)}function E(e){return 47===e||62===e||uo(e)?m(e):n(e)}function k(t){return 62===t?(e.consume(t),P):n(t)}function P(t){return null===t||lo(t)?C(t):uo(t)?(e.consume(t),P):n(t)}function C(t){return 45===t&&2===o?(e.consume(t),I):60===t&&1===o?(e.consume(t),T):62===t&&4===o?(e.consume(t),N):63===t&&3===o?(e.consume(t),O):93===t&&5===o?(e.consume(t),M):!lo(t)||6!==o&&7!==o?null===t||lo(t)?(e.exit("htmlFlowData"),B(t)):(e.consume(t),C):(e.exit("htmlFlowData"),e.check(Zo,L,B)(t))}function B(t){return e.check($o,D,L)(t)}function D(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),S}function S(t){return null===t||lo(t)?B(t):(e.enter("htmlFlowData"),C(t))}function I(t){return 45===t?(e.consume(t),O):C(t)}function T(t){return 47===t?(e.consume(t),A="",Q):C(t)}function Q(t){if(62===t){const n=A.toLowerCase();return Ko.includes(n)?(e.consume(t),N):C(t)}return no(t)&&A.length<8?(e.consume(t),A+=String.fromCharCode(t),Q):C(t)}function M(t){return 93===t?(e.consume(t),O):C(t)}function O(t){return 62===t?(e.consume(t),N):45===t&&2===o?(e.consume(t),O):C(t)}function N(t){return null===t||lo(t)?(e.exit("htmlFlowData"),L(t)):(e.consume(t),N)}function L(n){return e.exit("htmlFlow"),t(n)}}},Zo={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Co,t,n)}}},$o={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return lo(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const ei={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,A;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),v):63===t?(e.consume(t),b):no(t)?(e.consume(t),E):n(t)}function s(t){return 45===t?(e.consume(t),l):91===t?(e.consume(t),i=0,p):no(t)?(e.consume(t),m):n(t)}function l(t){return 45===t?(e.consume(t),d):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),u):lo(t)?(A=c,Q(t)):(e.consume(t),c)}function u(t){return 45===t?(e.consume(t),d):c(t)}function d(e){return 62===e?T(e):45===e?u(e):c(e)}function p(t){const r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),6===i?f:p):n(t)}function f(t){return null===t?n(t):93===t?(e.consume(t),h):lo(t)?(A=f,Q(t)):(e.consume(t),f)}function h(t){return 93===t?(e.consume(t),g):f(t)}function g(t){return 62===t?T(t):93===t?(e.consume(t),g):f(t)}function m(t){return null===t||62===t?T(t):lo(t)?(A=m,Q(t)):(e.consume(t),m)}function b(t){return null===t?n(t):63===t?(e.consume(t),y):lo(t)?(A=b,Q(t)):(e.consume(t),b)}function y(e){return 62===e?T(e):b(e)}function v(t){return no(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||ro(t)?(e.consume(t),w):x(t)}function x(t){return lo(t)?(A=x,Q(t)):uo(t)?(e.consume(t),x):T(t)}function E(t){return 45===t||ro(t)?(e.consume(t),E):47===t||62===t||co(t)?k(t):n(t)}function k(t){return 47===t?(e.consume(t),T):58===t||95===t||no(t)?(e.consume(t),P):lo(t)?(A=k,Q(t)):uo(t)?(e.consume(t),k):T(t)}function P(t){return 45===t||46===t||58===t||95===t||ro(t)?(e.consume(t),P):C(t)}function C(t){return 61===t?(e.consume(t),B):lo(t)?(A=C,Q(t)):uo(t)?(e.consume(t),C):k(t)}function B(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,D):lo(t)?(A=B,Q(t)):uo(t)?(e.consume(t),B):(e.consume(t),S)}function D(t){return t===o?(e.consume(t),o=void 0,I):null===t?n(t):lo(t)?(A=D,Q(t)):(e.consume(t),D)}function S(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||co(t)?k(t):(e.consume(t),S)}function I(e){return 47===e||62===e||co(e)?k(e):n(e)}function T(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function Q(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),M}function M(t){return uo(t)?mo(e,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):O(t)}function O(t){return e.enter("htmlTextData"),A(t)}}};const ti={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&Xr(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,o,i,A=e.length,a=0;for(;A--;)if(n=e[A][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[A][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[A][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=A,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(o=A);const s={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},l={type:"label",start:{...e[r][1].start},end:{...e[o][1].end}},c={type:"labelText",start:{...e[r+a+2][1].end},end:{...e[o-2][1].start}};return i=[["enter",s,t],["enter",l,t]],i=Vr(i,e.slice(r+1,r+a+3)),i=Vr(i,[["enter",c,t]]),i=Vr(i,xo(t.parser.constructs.insideSpan.null,e.slice(r+a+4,o-3),t)),i=Vr(i,[["exit",c,t],e[o-2],e[o-1],["exit",l,t]]),i=Vr(i,e.slice(o+1)),i=Vr(i,[["exit",s,t]]),Xr(e,r,e.length,i),e},tokenize:function(e,t,n){const r=this;let o,i,A=r.events.length;for(;A--;)if(("labelImage"===r.events[A][1].type||"labelLink"===r.events[A][1].type)&&!r.events[A][1]._balanced){o=r.events[A][1];break}return function(t){return o?o._inactive?c(t):(i=r.parser.defined.includes(to(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a):n(t)};function a(t){return 40===t?e.attempt(ni,l,i?l:c)(t):91===t?e.attempt(ri,l,i?s:c)(t):i?l(t):c(t)}function s(t){return e.attempt(oi,l,c)(t)}function l(e){return t(e)}function c(e){return o._balanced=!0,n(e)}}},ni={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return co(t)?Go(e,o)(t):o(t)}function o(t){return 41===t?l(t):Fo(e,i,A,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return co(t)?Go(e,a)(t):l(t)}function A(e){return n(e)}function a(t){return 34===t||39===t||40===t?zo(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):l(t)}function s(t){return co(t)?Go(e,l)(t):l(t)}function l(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},ri={tokenize:function(e,t,n){const r=this;return function(t){return Uo.call(r,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(to(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},oi={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const ii={name:"labelStartImage",resolveAll:ti.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const Ai={name:"labelStartLink",resolveAll:ti.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const ai={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),mo(e,t,"linePrefix")}}};const si={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,i(e)}(t)};function i(i){return i===r?(e.enter("thematicBreakSequence"),A(i)):o>=3&&(null===i||lo(i))?(e.exit("thematicBreak"),t(i)):n(i)}function A(t){return t===r?(e.consume(t),o++,A):(e.exit("thematicBreakSequence"),uo(t)?mo(e,i,"whitespace")(t):i(t))}}};const li={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Co,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,mo(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){return r.containerState.furtherBlankLines||!uo(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ui,t,o)(n))}));function o(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,mo(e,e.attempt(li,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,A=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:Ao(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(si,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(t)}return n(t)};function a(t){return Ao(t)&&++A<10?(e.consume(t),a):(!r.interrupt||A<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),s(t)):n(t)}function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(Co,r.interrupt?n:l,e.attempt(ci,u,c))}function l(e){return r.containerState.initialBlankLine=!0,i++,u(e)}function c(t){return uo(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),u):n(t)}function u(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},ci={partial:!0,tokenize:function(e,t,n){const r=this;return mo(e,(function(e){const o=r.events[r.events.length-1];return!uo(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},ui={partial:!0,tokenize:function(e,t,n){const r=this;return mo(e,(function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)}};const di={name:"setextUnderline",resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),!o&&"definition"===e[i][1].type&&(o=i);const A={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",A,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=A,e.push(["exit",A,t]),e},tokenize:function(e,t,n){const r=this;let o;return function(t){let A,a=r.events.length;for(;a--;)if("lineEnding"!==r.events[a][1].type&&"linePrefix"!==r.events[a][1].type&&"content"!==r.events[a][1].type){A="paragraph"===r.events[a][1].type;break}return r.parser.lazy[r.now().line]||!r.interrupt&&!A?n(t):(e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t))};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),uo(t)?mo(e,A,"lineSuffix")(t):A(t))}function A(r){return null===r||lo(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const pi={tokenize:function(e){const t=this,n=e.attempt(Co,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,mo(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Ho,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const fi={resolveAll:bi()},hi=mi("string"),gi=mi("text");function mi(e){return{resolveAll:bi("text"===e?yi:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,A);return i;function i(e){return s(e)?o(e):A(e)}function A(e){if(null!==e)return t.enter("data"),t.consume(e),a;t.consume(e)}function a(e){return s(e)?(t.exit("data"),o(e)):(t.consume(e),a)}function s(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function bi(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):(!t[o]||"data"!==t[o][1].type)&&(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function yi(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],o=t.sliceStream(r);let i,A=o.length,a=-1,s=0;for(;A--;){const e=o[A];if("string"==typeof e){for(a=e.length;32===e.charCodeAt(a-1);)s++,a--;if(a)break;a=-1}else if(-2===e)i=!0,s++;else if(-1!==e){A++;break}}if(s){const o={type:n===e.length||i||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:A?a:r.start._bufferIndex+a,_index:r.start._index+A,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...o.start},r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}const vi={42:li,43:li,45:li,48:li,49:li,50:li,51:li,52:li,53:li,54:li,55:li,56:li,57:li,62:Bo},wi={91:Yo},xi={[-2]:Qo,[-1]:Qo,32:Qo},Ei={35:Xo,42:si,45:[di,si],60:Jo,61:di,95:si,96:To,126:To},ki={38:So,92:Do},Pi={[-5]:ai,[-4]:ai,[-3]:ai,33:ii,38:So,42:Eo,60:[Po,ei],91:Ai,92:[Wo,Do],93:ti,95:Eo,96:Oo},Ci={null:[Eo,fi]},Bi=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:wi,disable:{null:[]},document:vi,flow:Ei,flowInitial:xi,insideSpan:Ci,string:ki,text:Pi},Symbol.toStringTag,{value:"Module"}));function Di(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},i=[];let A=[],a=[];const s={attempt:h((function(e,t){g(e,t.from)})),check:h(f),consume:function(e){lo(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,m()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===A[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=d(),l.events.push(["enter",n,l]),a.push(n),n},exit:function(e){const t=a.pop();return t.end=d(),l.events.push(["exit",t,l]),t},interrupt:h(f,{interrupt:!0})},l={code:null,containerState:{},defineSkip:function(e){o[e.line]=e.column,m()},events:[],now:d,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let A;if("string"==typeof i)A=i;else switch(i){case-5:A="\r";break;case-4:A="\n";break;case-3:A="\r\n";break;case-2:A=t?" ":"\t";break;case-1:if(!t&&o)continue;A=" ";break;default:A=String.fromCharCode(i)}o=-2===i,r.push(A)}return r.join("")}(u(e),t)},sliceStream:u,write:function(e){return A=Vr(A,e),function(){let e;for(;r._index<A.length;){const t=A[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)p(t.charCodeAt(r._bufferIndex));else p(t)}}(),null!==A[A.length-1]?[]:(g(t,0),l.events=xo(i,l.events,l),l.events)}};let c=t.tokenize.call(l,s);return t.resolveAll&&i.push(t),l;function u(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let A;if(n===o)A=[e[n].slice(r,i)];else{if(A=e.slice(n,o),r>-1){const e=A[0];"string"==typeof e?A[0]=e.slice(r):A.shift()}i>0&&A.push(e[o].slice(0,i))}return A}(A,e)}function d(){const{_bufferIndex:e,_index:t,line:n,column:o,offset:i}=r;return{_bufferIndex:e,_index:t,line:n,column:o,offset:i}}function p(e){c=c(e)}function f(e,t){t.restore()}function h(e,t){return function(n,o,i){let A,c,u,p;return Array.isArray(n)?f(n):"tokenize"in n?f([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function f(e){return A=e,c=0,0===e.length?i:h(e[c])}function h(e){return function(n){return p=function(){const e=d(),t=l.previous,n=l.currentConstruct,o=l.events.length,i=Array.from(a);return{from:o,restore:A};function A(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=o,a=i,m()}}(),u=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?b():e.tokenize.call(t?Object.assign(Object.create(l),t):l,s,g,b)(n)}}function g(t){return e(u,p),o}function b(e){return p.restore(),++c<A.length?h(A[c]):i}}}function g(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&Xr(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function m(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const Si=/[\0\t\n\r]/g;const Ii=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ti(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return eo(n.slice(t?2:1),t?16:10)}return Wr(n)||e}const Qi={}.hasOwnProperty;function Mi(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(te),autolinkProtocol:P,autolinkEmail:P,atxHeading:i(J),blockQuote:i(q),characterEscape:P,characterReference:P,codeFenced:i(W),codeFencedFenceInfo:A,codeFencedFenceMeta:A,codeIndented:i(W,A),codeText:i(X,A),codeTextData:P,data:P,codeFlowValue:P,definition:i(V),definitionDestinationString:A,definitionLabelString:A,definitionTitleString:A,emphasis:i(K),hardBreakEscape:i(Z),hardBreakTrailing:i(Z),htmlFlow:i($,A),htmlFlowData:P,htmlText:i($,A),htmlTextData:P,image:i(ee),label:A,link:i(te),listItem:i(re),listItemValue:d,listOrdered:i(ne,u),listUnordered:i(ne),paragraph:i(oe),reference:H,referenceString:A,resourceDestinationString:A,resourceTitleString:A,setextHeading:i(J),strong:i(ie),thematicBreak:i(ae)},exit:{atxHeading:s(),atxHeadingSequence:w,autolink:s(),autolinkEmail:Y,autolinkProtocol:G,blockQuote:s(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:F,characterReferenceMarkerNumeric:F,characterReferenceValue:U,characterReference:z,codeFenced:s(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:f,codeFlowValue:C,codeIndented:s(m),codeText:s(T),codeTextData:C,data:C,definition:s(),definitionDestinationString:v,definitionLabelString:b,definitionTitleString:y,emphasis:s(),hardBreakEscape:s(D),hardBreakTrailing:s(D),htmlFlow:s(S),htmlFlowData:C,htmlText:s(I),htmlTextData:C,image:s(M),label:N,labelText:O,lineEnding:B,link:s(Q),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:_,resourceDestinationString:L,resourceTitleString:R,resource:j,setextHeading:s(k),setextHeadingLineSequence:E,setextHeadingText:x,strong:s(),thematicBreak:s()}};Ni(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const i={stack:[r],tokenStack:[],config:t,enter:a,exit:l,buffer:A,resume:c,data:n},s=[];let u=-1;for(;++u<e.length;)if("listOrdered"===e[u][1].type||"listUnordered"===e[u][1].type)if("enter"===e[u][0])s.push(u);else{u=o(e,s.pop(),u)}for(u=-1;++u<e.length;){const n=t[e[u][0]];Qi.call(n,e[u][1].type)&&n[e[u][1].type].call(Object.assign({sliceSerialize:e[u][2].sliceSerialize},i),e[u][1])}if(i.tokenStack.length>0){const e=i.tokenStack[i.tokenStack.length-1];(e[1]||Ri).call(i,void 0,e[0])}for(r.position={start:Oi(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Oi(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u<t.transforms.length;)r=t.transforms[u](r)||r;return r}function o(e,t,n){let r,o,i,A,a=t-1,s=-1,l=!1;for(;++a<=n;){const t=e[a];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?s++:s--,A=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(r&&!A&&!s&&!i&&(i=a),A=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:A=void 0}if(!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let A=a;for(o=void 0;A--;){const t=e[A];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",l=!0),t[1].type="lineEnding",o=A}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}i&&(!o||i<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||a,0,["exit",r,t[2]]),a++,n++}if("listItemPrefix"===t[1].type){const o={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=o,e.splice(a,0,["enter",o,t[2]]),a++,n++,i=void 0,A=!0}}}return e[t][1]._spread=l,n}function i(e,t){return n;function n(n){a.call(this,e(n),n),t&&t.call(this,n)}}function A(){this.stack.push({type:"fragment",children:[]})}function a(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:Oi(t.start),end:void 0}}function s(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+yr({start:e.start,end:e.end})+"): it’s not open");r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Ri).call(this,e,r[0])),n.position.end=Oi(e.end)}function c(){return function(e){const t=zr;return Gr(e,"boolean"!=typeof t.includeImageAlt||t.includeImageAlt,"boolean"!=typeof t.includeHtml||t.includeHtml)}(this.stack.pop())}function u(){this.data.expectingFirstListItemValue=!0}function d(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function f(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function b(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=to(this.sliceSerialize(e)).toLowerCase()}function y(){const e=this.resume();this.stack[this.stack.length-1].title=e}function v(){const e=this.resume();this.stack[this.stack.length-1].url=e}function w(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function x(){this.data.setextHeadingSlurpLineEnding=!0}function E(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function k(){this.data.setextHeadingSlurpLineEnding=void 0}function P(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];(!n||"text"!==n.type)&&(n=Ae(),n.position={start:Oi(e.start),end:void 0},t.push(n)),this.stack.push(n)}function C(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Oi(e.end)}function B(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=Oi(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(P.call(this,e),C.call(this,e))}function D(){this.data.atHardBreak=!0}function S(){const e=this.resume();this.stack[this.stack.length-1].value=e}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function T(){const e=this.resume();this.stack[this.stack.length-1].value=e}function Q(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function M(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function O(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(Ii,Ti)}(t),n.identifier=to(t).toLowerCase()}function N(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function L(){const e=this.resume();this.stack[this.stack.length-1].url=e}function R(){const e=this.resume();this.stack[this.stack.length-1].title=e}function j(){this.data.inReference=void 0}function H(){this.data.referenceType="collapsed"}function _(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=to(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function F(e){this.data.characterReferenceType=e.type}function U(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;n?(r=eo(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0):r=Wr(t);this.stack[this.stack.length-1].value+=r}function z(e){this.stack.pop().position.end=Oi(e.end)}function G(e){C.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function Y(e){C.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function q(){return{type:"blockquote",children:[]}}function W(){return{type:"code",lang:null,meta:null,value:""}}function X(){return{type:"inlineCode",value:""}}function V(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function K(){return{type:"emphasis",children:[]}}function J(){return{type:"heading",depth:0,children:[]}}function Z(){return{type:"break"}}function $(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function oe(){return{type:"paragraph",children:[]}}function ie(){return{type:"strong",children:[]}}function Ae(){return{type:"text",value:""}}function ae(){return{type:"thematicBreak"}}}(n)(function(e){for(;!Ro(e););return e}(function(e){const t={constructs:Jr([Bi,...(e||{}).extensions||[]]),content:n(bo),defined:[],document:n(yo),flow:n(pi),lazy:{},string:n(hi),text:n(gi)};return t;function n(e){return function(n){return Di(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(o,i,A){const a=[];let s,l,c,u,d;for(o=n+("string"==typeof o?o.toString():new TextDecoder(i||void 0).decode(o)),c=0,n="",r&&(65279===o.charCodeAt(0)&&c++,r=void 0);c<o.length;){if(Si.lastIndex=c,s=Si.exec(o),u=s&&void 0!==s.index?s.index:o.length,d=o.charCodeAt(u),!s){n=o.slice(c);break}if(10===d&&c===u&&e)a.push(-3),e=void 0;else switch(e&&(a.push(-5),e=void 0),c<u&&(a.push(o.slice(c,u)),t+=u-c),d){case 0:a.push(65533),t++;break;case 9:for(l=4*Math.ceil(t/4),a.push(-2);t++<l;)a.push(-1);break;case 10:a.push(-4),t=1;break;default:e=!0,t=1}c=u+1}return A&&(e&&a.push(-5),n&&a.push(n),a.push(null)),a}}()(e,t,!0))))}function Oi(e){return{line:e.line,column:e.column,offset:e.offset}}function Ni(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Ni(e,r):Li(e,r)}}function Li(e,t){let n;for(n in t)if(Qi.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Ri(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+yr({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+yr({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+yr({start:t.start,end:t.end})+") is still open")}function ji(e){const t=this;t.parser=function(n){return Mi(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Hi(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({type:"text",value:"["});const A=o[o.length-1];return A&&"text"===A.type?A.value+=r:o.push({type:"text",value:r}),o}function _i(e){return e.spread??e.children.length>1}const Fi=9,Ui=32;function zi(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(Gi(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(Gi(t.slice(o),o>0,!1)),i.join("")}function Gi(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;t===Fi||t===Ui;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;t===Fi||t===Ui;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const Yi={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=go(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let A,a=e.footnoteCounts.get(r);void 0===a?(a=0,e.footnoteOrder.push(r),A=e.footnoteOrder.length):A=i+1,a+=1,e.footnoteCounts.set(r,a);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(A)}]};e.patch(t,s);const l={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,l),e.applyData(t,l)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Hi(e,t);const o={src:go(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:go(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Hi(e,t);const o={href:go(r.url||"")};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:go(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=_i(n[r])}return t}(n):_i(t),i={},A=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const e=r[a];(o||0!==a||"element"!==e.type||"p"!==e.tagName)&&A.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?A.push(e):A.push(...e.children)}const s=r[r.length-1];s&&(o||"element"!==s.type||"p"!==s.tagName)&&A.push({type:"text",value:"\n"});const l={type:"element",tagName:"li",properties:i,children:A};return e.patch(t,l),e.applyData(t,l)},list:function(e,t){const n={},r=e.all(t);let o=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){const e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=mr(t.children[1]),A=gr(t.children[t.children.length-1]);i&&A&&(r.position={start:i,end:A}),o.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,A=i?i.length:t.children.length;let a=-1;const s=[];for(;++a<A;){const n=t.children[a],r={},A=i?i[a]:void 0;A&&(r.align=A);let l={type:"element",tagName:o,properties:r,children:[]};n&&(l.children=e.all(n),e.patch(n,l),l=e.applyData(n,l)),s.push(l)}const l={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,l),e.applyData(t,l)},text:function(e,t){const n={type:"text",value:zi(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:qi,yaml:qi,definition:qi,footnoteDefinition:qi};function qi(){}const Wi="object"==typeof self?self:globalThis,Xi=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[i,A]=t[o];switch(i){case 0:case-1:return n(A,o);case 1:{const e=n([],o);for(const t of A)e.push(r(t));return e}case 2:{const e=n({},o);for(const[t,n]of A)e[r(t)]=r(n);return e}case 3:return n(new Date(A),o);case 4:{const{source:e,flags:t}=A;return n(new RegExp(e,t),o)}case 5:{const e=n(new Map,o);for(const[t,n]of A)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,o);for(const t of A)e.add(r(t));return e}case 7:{const{name:e,message:t}=A;return n(new Wi[e](t),o)}case 8:return n(BigInt(A),o);case"BigInt":return n(Object(BigInt(A)),o);case"ArrayBuffer":return n(new Uint8Array(A).buffer,A);case"DataView":{const{buffer:e}=new Uint8Array(A);return n(new DataView(e),A)}}return n(new Wi[i](A),o)};return r})(new Map,e)(0),Vi="",{toString:Ki}={},{keys:Ji}=Object,Zi=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=Ki.call(e).slice(8,-1);switch(n){case"Array":return[1,Vi];case"Object":return[2,Vi];case"Date":return[3,Vi];case"RegExp":return[4,Vi];case"Map":return[5,Vi];case"Set":return[6,Vi];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},$i=([e,t])=>0===e&&("function"===t||"symbol"===t),eA=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const o=(e,t)=>{const o=r.push(e)-1;return n.set(t,o),o},i=r=>{if(n.has(r))return n.get(r);let[A,a]=Zi(r);switch(A){case 0:{let t=r;switch(a){case"bigint":A=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);t=null;break;case"undefined":return o([-1],r)}return o([A,t],r)}case 1:{if(a){let e=r;return"DataView"===a?e=new Uint8Array(r.buffer):"ArrayBuffer"===a&&(e=new Uint8Array(r)),o([a,[...e]],r)}const e=[],t=o([A,e],r);for(const t of r)e.push(i(t));return t}case 2:{if(a)switch(a){case"BigInt":return o([a,r.toString()],r);case"Boolean":case"Number":case"String":return o([a,r.valueOf()],r)}if(t&&"toJSON"in r)return i(r.toJSON());const n=[],s=o([A,n],r);for(const t of Ji(r))(e||!$i(Zi(r[t])))&&n.push([i(t),i(r[t])]);return s}case 3:return o([A,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return o([A,{source:e,flags:t}],r)}case 5:{const t=[],n=o([A,t],r);for(const[n,o]of r)(e||!$i(Zi(n))&&!$i(Zi(o)))&&t.push([i(n),i(o)]);return n}case 6:{const t=[],n=o([A,t],r);for(const n of r)(e||!$i(Zi(n)))&&t.push(i(n));return n}}const{message:s}=r;return o([A,{name:a,message:s}],r)};return i})(!(t||n),!!t,new Map,r)(e),r},tA="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Xi(eA(e,t)):structuredClone(e):(e,t)=>Xi(eA(e,t));function nA(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function rA(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const oA=function(e){if(null==e)return AA;if("function"==typeof e)return iA(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=oA(e[n]);return iA(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return iA(n);function n(n){const r=n;let o;for(o in e)if(r[o]!==t[o])return!1;return!0}}(e);if("string"==typeof e)return function(e){return iA(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function iA(e){return function(t,n,r){return!(!function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)||!e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function AA(){return!0}const aA=[],sA=!0,lA=!1,cA="skip";function uA(e,t,n,r){let o;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;const i=oA(o),A=r?-1:1;!function e(o,a,s){const l=o&&"object"==typeof o?o:{};if("string"==typeof l.type){const e="string"==typeof l.tagName?l.tagName:"string"==typeof l.name?l.name:void 0;Object.defineProperty(c,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return c;function c(){let l,c,u,d=aA;if((!t||i(o,a,s[s.length-1]||void 0))&&(d=function(e){return Array.isArray(e)?e:"number"==typeof e?[sA,e]:null==e?aA:[e]}(n(o,s)),d[0]===lA))return d;if("children"in o&&o.children){const t=o;if(t.children&&d[0]!==cA)for(c=(r?t.children.length:-1)+A,u=s.concat(t);c>-1&&c<t.children.length;){const n=t.children[c];if(l=e(n,c,u)(),l[0]===lA)return l;c="number"==typeof l[1]?l[1]:c+A}}return d}}(e,void 0,[])()}function dA(e,t,n,r){let o,i,A;"function"==typeof t?(i=void 0,A=t,o=n):(i=t,A=n,o=r),uA(e,i,(function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return A(e,r,n)}),o)}const pA={}.hasOwnProperty,fA={};function hA(e,t){const n=t||fA,r=new Map,o=new Map,i=new Map,A={...Yi,...n.handlers},a={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const o=a.one(n[r],e);if(o){if(r&&"break"===n[r-1].type&&(!Array.isArray(o)&&"text"===o.type&&(o.value=vA(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=vA(e.value))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:mA,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:A,one:function(e,t){const n=e.type,r=a.handlers[n];if(pA.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=tA(n);return r.children=a.all(e),r}return tA(e)}return(a.options.unknownHandler||bA)(a,e,t)},options:n,patch:gA,wrap:yA};return dA(e,(function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:o,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}})),a}function gA(e,t){e.position&&(t.position=function(e){const t=mr(e),n=gr(e);if(t&&n)return{start:t,end:n}}(e))}function mA(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;if("string"==typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&o&&Object.assign(n.properties,tA(o)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function bA(e,t){const n=t.data||{},r=!("value"in t)||pA.call(n,"hProperties")||pA.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function yA(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function vA(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function wA(e,t){const n=hA(e,t),r=n.one(e,void 0),o=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||nA,r=e.options.footnoteBackLabel||rA,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",A=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let s=-1;for(;++s<e.footnoteOrder.length;){const o=e.footnoteById.get(e.footnoteOrder[s]);if(!o)continue;const i=e.all(o),A=String(o.identifier).toUpperCase(),l=go(A.toLowerCase());let c=0;const u=[],d=e.footnoteCounts.get(A);for(;void 0!==d&&++c<=d;){u.length>0&&u.push({type:"text",value:" "});let e="string"==typeof n?n:n(s,c);"string"==typeof e&&(e={type:"text",value:e}),u.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+l+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(s,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const p=i[i.length-1];if(p&&"element"===p.type&&"p"===p.tagName){const e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...u)}else i.push(...u);const f={type:"element",tagName:"li",properties:{id:t+"fn-"+l},children:e.wrap(i,!0)};e.patch(o,f),a.push(f)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...tA(A),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:"\n"},o),i}function xA(e,t){return e&&"run"in e?async function(n,r){const o=wA(n,{file:r,...t});await e.run(o,r)}:function(n,r){return wA(n,{file:r,...e||t})}}function EA(e){if(e)throw e}var kA,PA;var CA=function(){if(PA)return kA;PA=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return typeof r>"u"||e.call(n,r)},A=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},a=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return kA=function e(){var t,n,r,s,l,c,u=arguments[0],d=1,p=arguments.length,f=!1;for("boolean"==typeof u&&(f=u,u=arguments[1]||{},d=2),(null==u||"object"!=typeof u&&"function"!=typeof u)&&(u={});d<p;++d)if(null!=(t=arguments[d]))for(n in t)r=a(u,n),u!==(s=a(t,n))&&(f&&s&&(i(s)||(l=o(s)))?(l?(l=!1,c=r&&o(r)?r:[]):c=r&&i(r)?r:{},A(u,{name:n,newValue:e(f,c,s)})):typeof s<"u"&&A(u,{name:n,newValue:s}));return u},kA}();const BA=sr(CA);function DA(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function SA(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(i,...A){const a=e[++n];let s=-1;if(i)r(i);else{for(;++s<t.length;)(null===A[s]||void 0===A[s])&&(A[s]=t[s]);t=A,a?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let A;r&&t.push(o);try{A=e.apply(this,t)}catch(e){if(r&&n)throw e;return o(e)}r||(A&&A.then&&"function"==typeof A.then?A.then(i,o):A instanceof Error?o(A):i(A))}function o(e,...r){n||(n=!0,t(e,...r))}function i(e){o(null,e)}}(a,o)(...A):r(null,...A)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const IA={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');TA(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let A=-1,a=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else A<0&&(n=!0,A=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(o=i):(a=-1,o=A));return r===o?o=A:o<0&&(o=e.length),e.slice(r,o)},dirname:function(e){if(TA(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){TA(e);let t,n=e.length,r=-1,o=0,i=-1,A=0;for(;n--;){const a=e.codePointAt(n);if(47!==a)r<0&&(t=!0,r=n+1),46===a?i<0?i=n:1!==A&&(A=1):i>-1&&(A=-1);else if(t){o=n+1;break}}return i<0||r<0||0===A||1===A&&i===r-1&&i===o+1?"":e.slice(i,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)TA(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){TA(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",i=0,A=-1,a=0,s=-1;for(;++s<=e.length;){if(s<e.length)n=e.codePointAt(s);else{if(47===n)break;n=47}if(47===n){if(A!==s-1&&1!==a)if(A!==s-1&&2===a){if(o.length<2||2!==i||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),A=s,a=0;continue}}else if(o.length>0){o="",i=0,A=s,a=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(A+1,s):o=e.slice(A+1,s),i=s-A-1;A=s,a=0}else 46===n&&a>-1?a++:a=-1}return o}(e,!t);return 0===n.length&&!t&&(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function TA(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const QA={cwd:function(){return"/"}};function MA(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function OA(e){if("string"==typeof e)e=new URL(e);else if(!MA(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const NA=["history","path","basename","stem","extname","dirname"];class LA{constructor(e){let t;var n;t=e?MA(e)?{path:e}:"string"==typeof e||(n=e)&&"object"==typeof n&&"byteLength"in n&&"byteOffset"in n?{value:e}:e:{},this.cwd="cwd"in t?"":QA.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r,o=-1;for(;++o<NA.length;){const e=NA[o];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(r in t)NA.includes(r)||(this[r]=t[r])}get basename(){return"string"==typeof this.path?IA.basename(this.path):void 0}set basename(e){jA(e,"basename"),RA(e,"basename"),this.path=IA.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?IA.dirname(this.path):void 0}set dirname(e){HA(this.basename,"dirname"),this.path=IA.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?IA.extname(this.path):void 0}set extname(e){if(RA(e,"extname"),HA(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=IA.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){MA(e)&&(e=OA(e)),jA(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?IA.basename(this.path,this.extname):void 0}set stem(e){jA(e,"stem"),RA(e,"stem"),this.path=IA.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new Er(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function RA(e,t){if(e&&e.includes(IA.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+IA.sep+"`")}function jA(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function HA(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const _A=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},FA={}.hasOwnProperty;class UA extends _A{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=SA()}copy(){const e=new UA;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(BA(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(qA("data",this.frozen),this.namespace[e]=t,this):FA.call(this.namespace,e)&&this.namespace[e]||void 0:e?(qA("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=VA(e),n=this.parser||this.Parser;return GA("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),GA("process",this.parser||this.Parser),YA("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const i=VA(e),A=n.parse(i);function a(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(A,i,(function(e,t,r){if(e||!t||!r)return a(e);const o=t,i=n.stringify(o,r);var A;"string"==typeof(A=i)||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(A)?r.value=i:r.result=i,a(e,r)}))}}processSync(e){let t,n=!1;return this.freeze(),GA("processSync",this.parser||this.Parser),YA("processSync",this.compiler||this.Compiler),this.process(e,(function(e,r){n=!0,EA(e),t=r})),XA("processSync","process",n),t}run(e,t,n){WA(e),this.freeze();const r=this.transformers;return!n&&"function"==typeof t&&(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,i){const A=VA(t);r.run(e,A,(function(t,r,A){const a=r||e;t?i(t):o?o(a):n(void 0,a,A)}))}}runSync(e,t){let n,r=!1;return this.run(e,t,(function(e,t){EA(e),n=t,r=!0})),XA("runSync","run",r),n}stringify(e,t){this.freeze();const n=VA(t),r=this.compiler||this.Compiler;return YA("stringify",r),WA(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(qA("use",this.frozen),null!=e)if("function"==typeof e)a(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?A(e):i(e)}return this;function o(e){if("function"==typeof e)a(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;a(t,n)}else i(e)}}function i(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");A(e.plugins),e.settings&&(r.settings=BA(!0,r.settings,e.settings))}function A(e){let t=-1;if(null!=e){if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){o(e[t])}}}function a(e,t){let r=-1,o=-1;for(;++r<n.length;)if(n[r][0]===e){o=r;break}if(-1===o)n.push([e,...t]);else if(t.length>0){let[r,...i]=t;const A=n[o][1];DA(A)&&DA(r)&&(r=BA(!0,A,r)),n[o]=[e,r,...i]}}}}const zA=(new UA).freeze();function GA(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function YA(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function qA(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function WA(e){if(!DA(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function XA(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function VA(e){return function(e){return!!(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new LA(e)}const KA=[],JA={allowDangerousHtml:!0},ZA=/^(https?|ircs?|mailto|xmpp)$/i,$A=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function ea(e){const t=e.allowedElements,r=e.allowElement,o=e.children||"",i=e.className,A=e.components,a=e.disallowedElements,s=e.rehypePlugins||KA,l=e.remarkPlugins||KA,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...JA}:JA,u=e.skipHtml,d=e.unwrapDisallowed,p=e.urlTransform||ta,f=zA().use(ji).use(l).use(xA,c).use(s),h=new LA;"string"==typeof o&&(h.value=o);for(const t of $A)Object.hasOwn(e,t.from)&&(t.from,t.to&&t.to,t.id);const g=f.parse(h);let m=f.runSync(g,h);return i&&(m={type:"element",tagName:"div",properties:{className:i},children:"root"===m.type?m.children:[m]}),dA(m,(function(e,n,o){if("raw"===e.type&&o&&"number"==typeof n)return u?o.children.splice(n,1):o.children[n]={type:"text",value:e.value},n;if("element"===e.type){let t;for(t in Ur)if(Object.hasOwn(Ur,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=Ur[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=p(String(n||""),t,e))}}if("element"===e.type){let i=t?!t.includes(e.tagName):!!a&&a.includes(e.tagName);if(!i&&r&&"number"==typeof n&&(i=!r(e,n,o)),i&&o&&"number"==typeof n)return d&&e.children?o.children.splice(n,1,...e.children):o.children.splice(n,1),n}})),Tr(m,{Fragment:n.Fragment,components:A,ignoreInvalidStyle:!0,jsx:n.jsx,jsxs:n.jsxs,passKeys:!0,passNode:!0})}function ta(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return-1===t||-1!==o&&t>o||-1!==n&&t>n||-1!==r&&t>r||ZA.test(e.slice(0,t))?e:""}const na=({children:e})=>n.jsx("div",{style:{whiteSpace:"normal"},children:n.jsx(ea,{components:{p:({...e})=>n.jsx("p",{style:{margin:0,marginBottom:"0.5em",lineHeight:1.4,textAlign:"left"},children:e.children}),ul:({...e})=>n.jsx("ul",{style:{paddingLeft:"clamp(8px, 3.5vw, 16px)",margin:0,listStylePosition:"inside"},children:e.children}),ol:({...e})=>n.jsx("ol",{style:{paddingLeft:"clamp(8px, 3.5vw, 16px)",margin:0,listStylePosition:"inside"},children:e.children}),li:({...e})=>n.jsx("li",{style:{marginBottom:"1px",lineHeight:1.4},children:e.children}),code:({inline:e,children:t})=>e?n.jsx("code",{style:{backgroundColor:"rgba(0, 0, 0, 0.3)",padding:"2px 4px",borderRadius:"4px",fontFamily:"inherit",fontSize:"0.95em"},children:t}):n.jsx("pre",{style:{backgroundColor:"rgba(0, 0, 0, 0.3)",padding:"8px",borderRadius:"4px",overflowX:"auto",margin:"0.5em 0",whiteSpace:"pre-wrap"},children:n.jsx("code",{children:t})}),blockquote:({...e})=>n.jsx("blockquote",{style:{margin:0,paddingLeft:"10px",borderLeft:"2px solid #ccc",color:"#666",fontStyle:"italic"},children:e.children})},children:"string"==typeof e?e:""})}),ra={autoConfig:!0},oa=t=>()=>(t=>{const{getFlow:n}=_t(),{messages:r,replaceMessages:o}=Ft(),{settings:i}=zt(),{hasChatHistoryLoaded:A}=Gt(),a={...t,...ra},s=a.markdownComponent?a.markdownComponent:na;e.useEffect((()=>{var e,t;if(A){const n=[...r];for(let r=0;r<n.length&&r<((null==(e=i.chatHistory)?void 0:e.maxEntries)??30);r++){const e=n[r];null!=(t=e.tags)&&t.includes("rcb-markdown-renderer-plugin:parsed")&&(e.contentWrapper=s)}o(n)}}),[A]);const l=async e=>{var t;const r=null==(t=e.data.message)?void 0:t.sender.toUpperCase();((e,t,n)=>{var r;if("string"!=typeof e.data.message.content||!e.detail.currPath)return!1;const o=t[e.detail.currPath];return!!o&&((null==(r=o.renderMarkdown)?void 0:r.map((e=>e.toUpperCase())).includes(n))??!1)})(e,n(),r)&&(e.data.message.contentWrapper=s,e.data.message.tags||(e.data.message.tags=[]),e.data.message.tags.push("rcb-markdown-renderer-plugin:parsed"))};Ut(R.PRE_INJECT_MESSAGE,l),Ut(R.CHUNK_STREAM_MESSAGE,l),Ut(R.START_STREAM_MESSAGE,l),Ut(R.START_SIMULATE_STREAM_MESSAGE,l);const c={name:"@rcb-plugins/markdown-renderer"};return null!=a&&a.autoConfig&&(c.settings={event:{rcbPreInjectMessage:!0,rcbChunkStreamMessage:!0,rcbStartSimulateStreamMessage:!0,rcbStartStreamMessage:!0}}),c})(t),ia={autoConfig:!0,promptBaseColors:{info:"#007bff",warning:"#ffc107",error:"#dc3545",success:"#28a745"},promptHoveredColors:{info:"#0056b3",warning:"#d39e00",error:"#c82333",success:"#218838"},textAreaHighlightColors:{info:"#007bff",warning:"#ffc107",error:"#dc3545",success:"#28a745"}},Aa=(e,t,n="validateTextInput")=>{var r;if(null==(r=e.detail)||!r.currPath)return;const o=t[e.detail.currPath];if(!o)return;const i=o[n];return"function"==typeof i?i:void 0},aa=t=>{const{showToast:n}=(()=>{const{showToast:e,dismissToast:t,toasts:n,replaceToasts:r}=Je();return{showToast:e,dismissToast:t,toasts:n,replaceToasts:r}})(),{getFlow:r}=_t(),{styles:o,updateStyles:i,replaceStyles:A}=(()=>{const{styles:e,replaceStyles:t,updateStyles:n}=It();return{styles:e,replaceStyles:t,updateStyles:n}})(),a=(e=>({...ia,...e,promptBaseColors:{...ia.promptBaseColors},promptHoveredColors:{...ia.promptHoveredColors},textAreaHighlightColors:{...ia.textAreaHighlightColors}}))(t),[s,l]=e.useState(0),c=e.useRef({});Ut(R.USER_SUBMIT_TEXT,(e=>{const t=e,A=Aa(t,r(),"validateTextInput");if(!A)return;const u=A(t.data.inputText);if(null!=u&&u.success||e.preventDefault(),!u.promptContent)return;0===s&&(c.current=structuredClone(o));const d=((e,t)=>{const n=e.promptType??"info";let r={};return t.advancedStyles&&(r=t.advancedStyles[n]),t.promptBaseColors&&(r.toastPromptStyle={color:t.promptBaseColors[n],borderColor:t.promptBaseColors[n]}),t.promptHoveredColors&&(r.toastPromptHoveredStyle={color:t.promptHoveredColors[n],borderColor:t.promptHoveredColors[n]}),t.textAreaHighlightColors&&(e.highlightTextArea??!0)&&(r.chatInputAreaStyle={boxShadow:`${t.textAreaHighlightColors[n]} 0px 0px 5px`}),r})(u,a);i(d),n(u.promptContent,u.promptDuration??3e3),l((e=>e+1))})),Ut(R.USER_UPLOAD_FILE,(e=>{var t,o;const i=e,A=null==(o=null==(t=i.data)?void 0:t.files)?void 0:o[0];if(!A)return console.error("No file uploaded."),void e.preventDefault();const a=Aa(i,r(),"validateFileInput");if(!a)return void console.error("Validator not found for file input.");const s=a(A);if(!s.success)return console.error("Validation failed:",s),s.promptContent&&n(s.promptContent,s.promptDuration??3e3),void e.preventDefault();console.log("Validation successful:",s)})),Ut(R.DISMISS_TOAST,(()=>{l((e=>e-1))})),e.useEffect((()=>{0===s&&setTimeout((()=>{A(c.current)}))}),[s,A]);const u={name:"@rcb-plugins/input-validator"};return a.autoConfig&&(u.settings={event:{rcbUserSubmitText:!0,rcbUserUploadFile:!0,rcbDismissToast:!0}}),u},sa=[];for(let e=0;e<256;++e)sa.push((e+256).toString(16).slice(1));let la;const ca=new Uint8Array(16);var ua={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function da(e,t,n){if(ua.randomUUID&&!e)return ua.randomUUID();const r=(e=e||{}).random??e.rng?.()??function(){if(!la){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");la=crypto.getRandomValues.bind(crypto)}return la(ca)}();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=15&r[6]|64,r[8]=63&r[8]|128,function(e,t=0){return(sa[e[t+0]]+sa[e[t+1]]+sa[e[t+2]]+sa[e[t+3]]+"-"+sa[e[t+4]]+sa[e[t+5]]+"-"+sa[e[t+6]]+sa[e[t+7]]+"-"+sa[e[t+8]]+sa[e[t+9]]+"-"+sa[e[t+10]]+sa[e[t+11]]+sa[e[t+12]]+sa[e[t+13]]+sa[e[t+14]]+sa[e[t+15]]).toLowerCase()}(r)}const pa={LOGIN_URL:"/login",WELCOME_MESSAGE:"Hello! What can I help you with?",WELCOME_MESSAGE_LOGIN_TRANSITION:"Welcome! You are now logged in. What can I help you with?",WELCOME_MESSAGE_LOGOUT_TRANSITION:"You have been logged out.",API_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/chat/api/",RATING_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/chat/rating/",METRICS_API_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/xdmod/chat/api/",METRICS_RATING_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/xdmod/chat/rating/",METRICS_QUESTIONS_URL:"https://metrics.access-ci.org/qa_bot_faq",netlifyBaseUrl:"undefined"!=typeof process&&process.env?process.env.REACT_APP_NETLIFY_BASE_URL:"https://access-jsm-api.netlify.app",ERRORS:{API_UNAVAILABLE:"Unable to contact the Q&A Bot. Please try again later."},THEME:{PRIMARY_COLOR:"#1a5b6e",SECONDARY_COLOR:"#107180",FONT_FAMILY:"Arial, sans-serif"},CHATBOT:{TITLE:"ACCESS Q&A",AVATAR_URL:"https://support.access-ci.org/themes/contrib/asp-theme/images/icons/ACCESS-arrrow.svg",TOOLTIP_TEXT:"Ask me about ACCESS! 😊"}},fa=(e,t)=>t||pa.WELCOME_MESSAGE,ha=e.forwardRef((({embedded:t,isBotLoggedIn:n,currentOpen:r},o)=>{const i=Ft(),A=(()=>{const{isChatWindowOpen:e,toggleChatWindow:t,toggleIsBotTyping:n,scrollToBottom:r,getIsChatBotVisible:o}=G();return{isChatWindowOpen:e,toggleChatWindow:t,toggleIsBotTyping:n,scrollToBottom:r,getIsChatBotVisible:o}})(),a=e.useRef(null),s=e.useRef(!1);return(t=>{const n=e.useRef(t),{injectMessage:r}=Ft();e.useEffect((()=>{const e=n.current!==t,o=!n.current&&t;e&&r(o?pa.WELCOME_MESSAGE_LOGIN_TRANSITION:pa.WELCOME_MESSAGE_LOGOUT_TRANSITION,"bot"),n.current=t}),[t,r])})(n),e.useEffect((()=>{!t&&A&&A.toggleChatWindow&&(a.current===r||s.current||(setTimeout((()=>{A&&A.toggleChatWindow&&A.toggleChatWindow(r)}),0),a.current=r),s.current=!1)}),[r,t,A]),e.useEffect((()=>{const e=()=>{s.current=!0};o&&(o.current||(o.current={}),o.current._markAsUserInteraction=e)})),e.useImperativeHandle(o,(()=>({addMessage:e=>{i&&i.injectMessage&&i.injectMessage(e)}})),[i]),null}));ha.displayName="BotController";const ga=e.createContext(),ma=({children:t})=>{const[n,r]=e.useState({}),[o,i]=e.useState({}),A={ticketForm:n,feedbackForm:o,updateTicketForm:e=>{r((t=>({...t,...e})))},updateFeedbackForm:e=>{i((t=>({...t,...e})))},resetTicketForm:()=>{r({})},resetFeedbackForm:()=>{i({})},setTicketForm:r,setFeedbackForm:i};return e.createElement(ga.Provider,{value:A},t)},ba=()=>{const t=e.useContext(ga);if(!t)throw new Error("useFormContext must be used within a FormProvider");return t},ya=({width:t=24,height:n=24,color:r="currentColor",children:o,...i})=>e.createElement("svg",A({xmlns:"http://www.w3.org/2000/svg",width:t,height:n,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},i),o),va=t=>e.createElement(ya,t,e.createElement("path",{d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})),wa=()=>{const{restartFlow:t}=_t(),{resetTicketForm:n,resetFeedbackForm:r}=ba();return e.createElement("button",{onClick:()=>{n(),r(),t()},tabIndex:0,"aria-label":"New chat conversation",style:{backgroundColor:"#107180",border:"none",color:"#ffffff",fontSize:"14px",cursor:"pointer",padding:"8px 12px",borderRadius:"4px",transition:"all 0.2s ease",display:"flex",alignItems:"center",gap:"6px",fontWeight:"500"},onMouseEnter:e=>{e.target.style.backgroundColor="#0d5f6b"},onMouseLeave:e=>{e.target.style.backgroundColor="#107180"}},e.createElement(va,{width:16,height:16}),"New Chat")},xa=()=>e.createElement("div",{className:"user-login-icon",style:{alignItems:"center",justifyContent:"center",width:"30px",height:"30px",borderRadius:"50%",backgroundColor:"#1a5b6e",marginRight:"5px"},role:"img","aria-label":"User logged in",title:"User logged in"},e.createElement("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},e.createElement("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),e.createElement("circle",{cx:"12",cy:"7",r:"4"}))),Ea=({loginUrl:t,className:n="",style:r,isHeaderButton:o=!1})=>{const i=o?{display:"inline-block",padding:"6px 12px",backgroundColor:"transparent",border:"1px solid #ccc",color:"white",textDecoration:"none",borderRadius:"4px",fontWeight:"normal",textAlign:"center",margin:"8px",fontSize:"12px",opacity:"0.8",transition:"all 0.2s ease"}:{display:"inline-block",padding:"10px 20px",backgroundColor:"white",border:"1px solid #107180",color:"#107180",textDecoration:"none",borderRadius:"4px",fontWeight:"bold",textAlign:"center",margin:"18px",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.2)"};return e.createElement(e.Fragment,null,o&&e.createElement("style",null,"\n .rcb-chat-header-container .qa-bot-header-login-button:hover {\n background-color: #0000001a !important;\n opacity: 1 !important;\n }\n "),e.createElement("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:`qa-bot-login-button ${o?"qa-bot-header-login-button":""} ${n}`,style:{...i,...r}},"Log In"))},ka=()=>(e.useEffect((()=>{const e=e=>{if(!["ArrowDown","ArrowUp","ArrowLeft","ArrowRight","Enter"," ","Home","End"].includes(e.key))return;const n=document.activeElement;if(n&&("INPUT"===n.tagName||"TEXTAREA"===n.tagName||"true"===n.contentEditable||n.classList.contains("rcb-chat-input-textarea")))return;const r=document.querySelector(".rcb-chat-window");if(!r)return;const o=Array.from(r.querySelectorAll(".rcb-message-container, .rcb-bot-message-container, .rcb-user-message-container")).filter((e=>null!==e.offsetParent));if(o.length>0){const t=o[o.length-1].querySelector(".rcb-checkbox-container");if(t&&null!==t.offsetParent){const n=Array.from(t.querySelectorAll(".rcb-checkbox-row-container")),r=t.querySelector(".rcb-checkbox-next-button");if(n.length>0){const t=[...n];return r&&t.push(r),void((e,t)=>{e.preventDefault();let n=-1;for(let e=0;e<t.length;e++)if(t[e]===document.activeElement||t[e].contains(document.activeElement)){n=e;break}-1===n&&(n=0);let r=n;switch(e.key){case"ArrowDown":case"ArrowRight":r=n<t.length-1?n+1:0;break;case"ArrowUp":case"ArrowLeft":r=n>0?n-1:t.length-1;break;case"Home":r=0;break;case"End":r=t.length-1;break;case"Enter":case" ":{const e=t[n],r=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});return void e.dispatchEvent(r)}default:return}t[r].focus(),t[r].setAttribute("tabindex","0"),t[r].classList.add("keyboard-focused"),t.forEach(((e,t)=>{t!==r&&(e.setAttribute("tabindex","-1"),e.classList.remove("keyboard-focused"))}))})(e,t)}}}let i=[];if(o.length>0){const e=o[o.length-1],t=Array.from(e.querySelectorAll(".rcb-options-container")).filter((e=>null!==e.offsetParent));if(t.length>0){const e=t[t.length-1];i=Array.from(e.querySelectorAll(".rcb-options"))}}if(0===i.length)return;const A=i.findIndex((e=>e===document.activeElement));switch(e.key){case"ArrowDown":case"ArrowRight":{let t;e.preventDefault(),t=A<i.length-1?A+1:0,i[t].setAttribute("tabindex","0"),i.forEach(((e,n)=>{n!==t&&(e.setAttribute("tabindex","-1"),e.classList.remove("keyboard-focused"))})),i[t].classList.add("keyboard-focused"),i[t].focus();break}case"ArrowUp":case"ArrowLeft":{let t;e.preventDefault(),t=A>0?A-1:i.length-1,i[t].setAttribute("tabindex","0"),i.forEach(((e,n)=>{n!==t&&(e.setAttribute("tabindex","-1"),e.classList.remove("keyboard-focused"))})),i[t].classList.add("keyboard-focused"),i[t].focus();break}case"Enter":case" ":if(e.preventDefault(),document.activeElement&&i.includes(document.activeElement)){const e=document.activeElement;if(e.classList.contains("rcb-checkbox-row-container")||e.closest(".rcb-checkbox-row-container")){const n=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});e.dispatchEvent(n);const r=e.querySelector(".rcb-checkbox-label"),o=r?r.textContent:e.textContent||"checkbox",i=e.querySelector(".rcb-checkbox-mark"),A=i&&i.style.backgroundColor?"checked":"unchecked";t(`${o} ${A}`)}else{const n=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});e.dispatchEvent(n);const r=e.textContent||e.innerText;t(`Selected: ${r}`)}}break;case"Home":e.preventDefault(),i.length>0&&(i[0].setAttribute("tabindex","0"),i.forEach(((e,t)=>{0!==t&&(e.setAttribute("tabindex","-1"),e.classList.remove("keyboard-focused"))})),i[0].classList.add("keyboard-focused"),i[0].focus());break;case"End":if(e.preventDefault(),i.length>0){const e=i.length-1;i[e].setAttribute("tabindex","0"),i.forEach(((t,n)=>{n!==e&&(t.setAttribute("tabindex","-1"),t.classList.remove("keyboard-focused"))})),i[e].classList.add("keyboard-focused"),i[e].focus()}}},t=e=>{const t=document.createElement("div");t.setAttribute("aria-live","assertive"),t.setAttribute("aria-atomic","true"),t.className="sr-only",t.textContent=e,document.body.appendChild(t),setTimeout((()=>{document.body.contains(t)&&document.body.removeChild(t)}),1e3)},n=(e=null)=>{let n=e;if(n||(n=document.querySelector(".rcb-chat-window"),n||(n=document.querySelector('[class*="rcb-chat"]')),n||(n=document.querySelector(".qa-bot"))),!n)return;const r=null!==n.closest(".embedded-qa-bot"),o=Array.from(n.querySelectorAll(".rcb-message-container, .rcb-bot-message-container, .rcb-user-message-container")).filter((e=>null!==e.offsetParent));if(0===o.length)return;const i=o[o.length-1],A=Array.from(i.querySelectorAll(".rcb-options-container")).filter((e=>null!==e.offsetParent));let a=[];if(A.length>0){const e=A[A.length-1];a=Array.from(e.querySelectorAll(".rcb-options"))}if(0===a.length){let e=i.querySelector(".rcb-checkbox-container");if(!e&&n&&(e=n.querySelector(".rcb-checkbox-container")),e&&null!==e.offsetParent){const t=Array.from(e.querySelectorAll(".rcb-checkbox-row-container")).filter((e=>null!==e.offsetParent&&"none"!==e.style.display));if(t.length>0){const n=e.querySelector(".rcb-checkbox-next-button"),o=[...t];if(n&&null!==n.offsetParent&&o.push(n),o.forEach(((e,t)=>{e.setAttribute("tabindex",0===t?"0":"-1"),0===t?e.classList.add("keyboard-focused"):e.classList.remove("keyboard-focused")})),t.length>1){e.querySelectorAll(".keyboard-nav-hint").forEach((e=>e.remove()));const t=document.createElement("div");t.className="keyboard-nav-hint",t.textContent="Use arrow keys ↕ to navigate, Enter to select/deselect, or click any option",t.style.cssText="font-size: 12px !important; color: #666 !important; margin-bottom: 8px !important; font-style: italic !important; display: block !important;",e.insertBefore(t,e.firstChild)}return void setTimeout((()=>{o[0]&&null!==o[0].offsetParent&&!r&&o[0].focus()}),150)}}}if(a.length>0){if(a.forEach(((e,t)=>{const n=0===t?"0":"-1";e.setAttribute("tabindex",n),e.setAttribute("role","option"),e.setAttribute("aria-posinset",t+1),e.setAttribute("aria-setsize",a.length),0===t?e.classList.add("keyboard-focused"):e.classList.remove("keyboard-focused")})),a.length>1){const e=A.length>0?A[A.length-1]:null;if(e){e.querySelectorAll(".keyboard-nav-hint").forEach((e=>e.remove()));const t=document.createElement("div");t.className="keyboard-nav-hint",t.textContent="Use arrow keys ↕ to navigate, Enter to select, or click any option",t.style.cssText="font-size: 12px !important; color: #666 !important; margin-bottom: 8px !important; font-style: italic !important; display: block !important;",e.insertBefore(t,e.firstChild)}}else{const e=A.length>0?A[A.length-1]:null;if(e){e.querySelectorAll(".keyboard-nav-hint").forEach((e=>e.remove()))}}setTimeout((()=>{a[0]&&null!==a[0].offsetParent&&!r&&(a[0].focus(),a.length>1&&t(`${a.length} options available. Use arrow keys to navigate.`))}),200)}},r=new MutationObserver((e=>{e.forEach((e=>{if("childList"===e.type){const t=Array.from(e.addedNodes),r=t.some((e=>e.nodeType===Node.ELEMENT_NODE&&(e.classList?.contains("rcb-options-container")||e.classList?.contains("rcb-options")||e.querySelector?.(".rcb-options-container")||e.querySelector?.(".rcb-options")))),o=t.some((e=>e.nodeType===Node.ELEMENT_NODE&&(e.classList?.contains("rcb-checkbox-container")||e.querySelector?.(".rcb-checkbox-container"))));if(r||o){let t=e.target;for(;t&&!t.classList?.contains("qa-bot")&&!t.classList?.contains("rcb-chat-window");)t=t.parentElement;(t||document).querySelectorAll(".rcb-options[tabindex], .rcb-checkbox-row-container[tabindex], .rcb-checkbox-next-button[tabindex]").forEach((e=>{e.setAttribute("tabindex","-1"),e.classList.remove("keyboard-focused")})),setTimeout((()=>n(t)),100)}}}))}));r.observe(document.body,{childList:!0,subtree:!0}),document.addEventListener("keydown",e),n();const o=setInterval((()=>{document.querySelectorAll(".qa-bot").forEach((e=>{const t=e.querySelectorAll(".rcb-options-container .rcb-options").length>0,r=e.querySelectorAll(".rcb-checkbox-row-container").length>0;if(t){const t=e.querySelectorAll(".rcb-options[tabindex]").length;e.querySelectorAll(".rcb-options").length>t&&n(e)}if(r){const t=e.querySelectorAll(".rcb-checkbox-row-container[tabindex]").length;e.querySelectorAll(".rcb-checkbox-row-container").length>t&&n(e)}}))}),1e3);return()=>{document.removeEventListener("keydown",e),r.disconnect(),clearInterval(o)}}),[]),null),Pa=e=>(console.error("Bot error:",e),e&&e.error||Error,pa.ERRORS.API_UNAVAILABLE),Ca=e=>{if(!e||"string"!=typeof e)return e;let t=e.replace(/\[(https?:\/\/[^\s]+?)\]/gi,"[$1]($1)");return t=t.replace(/(?<!\]\(|href=["']|\[)https?:\/\/[^\s[\]()]+/gi,(e=>{let t=e,n="";const r=t.match(/([.,;:!?]+)$/);return r&&(n=r[1],t=t.slice(0,-n.length)),`[${t}](${t})${n}`})),t},Ba=({sessionId:e,apiKey:t})=>{let n=null;return{go_ahead_and_ask:{message:"Please type your question about ACCESS below.",path:"qa_loop"},qa_loop:{message:async r=>{const{userInput:o}=r;if("👍 Helpful"===o||"👎 Not helpful"===o){if(t&&e&&n){const r={"Content-Type":"application/json","X-Origin":"access","X-API-KEY":t,"X-Session-ID":e,"X-Query-ID":n,"X-Feedback":"👍 Helpful"===o?1:0},i="undefined"!=typeof process&&process.env?.REACT_APP_RATING_ENDPOINT?process.env.REACT_APP_RATING_ENDPOINT:pa.RATING_ENDPOINT;try{await fetch(i,{method:"POST",headers:r})}catch(e){console.error("Error sending feedback:",e)}}return"Thanks for the feedback! Ask another question about ACCESS or start a new chat."}try{const i=da();n=i;const A={"Content-Type":"application/json","X-Origin":"access","X-API-KEY":t,"X-Session-ID":e,"X-Query-ID":i},a=await fetch("undefined"!=typeof process&&process.env?.REACT_APP_API_ENDPOINT?process.env.REACT_APP_API_ENDPOINT:pa.API_ENDPOINT,{method:"POST",headers:A,body:JSON.stringify({query:o})}),s=(await a.json()).response,l=Ca(s);return await r.injectMessage(l),setTimeout((async()=>{await r.injectMessage("Ask another question about ACCESS or start a new chat.")}),100),null}catch(e){return console.error("Error in bot flow:",e),Pa(e)}},renderMarkdown:["BOT"],options:e=>"👍 Helpful"===e.userInput||"👎 Not helpful"===e.userInput?[]:["👍 Helpful","👎 Not helpful"],chatDisabled:!1,path:"qa_loop"}}},Da=({sessionId:e,apiKey:t})=>{let n=null;return{metrics_intro:{message:`Please type your question about usage and performance metrics (XDMoD) below. You can see some <a target="_blank" href="${pa.METRICS_QUESTIONS_URL}">examples here</a>.`,renderHtml:["BOT"],path:"metrics_loop"},metrics_loop:{message:async r=>{const{userInput:o}=r;if("👍 Helpful"===o||"👎 Not helpful"===o){if(t&&e&&n){const r={"Content-Type":"application/json","X-Origin":"metrics","X-API-KEY":t,"X-Session-ID":e,"X-Query-ID":n,"X-Feedback":"👍 Helpful"===o?1:0},i="undefined"!=typeof process&&process.env?.REACT_APP_METRICS_RATING_ENDPOINT?process.env.REACT_APP_METRICS_RATING_ENDPOINT:pa.METRICS_RATING_ENDPOINT;try{await fetch(i,{method:"POST",headers:r})}catch(e){console.error("Error sending metrics feedback:",e)}}return"Thanks for the feedback! Ask another question about usage and performance metrics (XDMoD) or start a new chat."}try{const i=da();n=i;const A={"Content-Type":"application/json","X-Origin":"metrics","X-API-KEY":t,"X-Session-ID":e,"X-Query-ID":i},a=await fetch("undefined"!=typeof process&&process.env?.REACT_APP_METRICS_API_ENDPOINT?process.env.REACT_APP_METRICS_API_ENDPOINT:pa.METRICS_API_ENDPOINT,{method:"POST",headers:A,body:JSON.stringify({query:o})}),s=(await a.json()).response,l=Ca(s);return await r.injectMessage(l),setTimeout((async()=>{await r.injectMessage("Ask another question about usage and performance metrics (XDMoD) or start a new chat.")}),100),null}catch(e){return console.error("Error in metrics flow:",e),Pa(e)}},renderMarkdown:["BOT"],options:e=>"👍 Helpful"===e.userInput||"👎 Not helpful"===e.userInput?[]:["👍 Helpful","👎 Not helpful"],chatDisabled:!1,path:"metrics_loop"}}},Sa=t=>e.createElement(ya,t,e.createElement("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),e.createElement("polyline",{points:"17 8 12 3 7 8"}),e.createElement("line",{x1:"12",y1:"3",x2:"12",y2:"15"})),Ia=({onFileUpload:t})=>{const[n,r]=e.useState(!1),[o,i]=e.useState([]),[A,a]=e.useState(null),s=e.useRef(null),{captureScreenshot:l,isCapturing:c,isScreenCaptureAvailable:u}=(()=>{const[t,n]=e.useState(!1),r=()=>"undefined"!=typeof navigator&&navigator.mediaDevices&&"function"==typeof navigator.mediaDevices.getDisplayMedia;return{captureScreenshot:async()=>{if(!r())throw new Error("Screen capture is not available in this environment");try{n(!0);const e=await navigator.mediaDevices.getDisplayMedia({video:{displaySurface:"browser",cursor:"always",logicalSurface:!0,width:{ideal:1920},height:{ideal:1080}},audio:!1}),t=document.createElement("video");t.srcObject=e,await new Promise((e=>{t.onloadedmetadata=()=>{t.play(),e()}}));const r=document.createElement("canvas");r.width=t.videoWidth,r.height=t.videoHeight,r.getContext("2d").drawImage(t,0,0,r.width,r.height);const o=await new Promise((e=>r.toBlob(e,"image/png"))),i=(new Date).toISOString().replace(/[:.]/g,"-"),A=new File([o],`screenshot-${i}.png`,{type:"image/png"});return e.getTracks().forEach((e=>e.stop())),n(!1),A}catch(e){throw console.error("Error capturing screenshot:",e),n(!1),e}},isCapturing:t,isScreenCaptureAvailable:r()}})(),d=e=>{const t=document.createElement("div");t.setAttribute("aria-live","assertive"),t.setAttribute("aria-atomic","true"),t.className="sr-only",t.textContent=e,document.body.appendChild(t),setTimeout((()=>document.body.removeChild(t)),1e3)},p=e=>{if(!e||!e.length||0===e.length)return void console.warn("FileUploadComponent: No valid files provided to handleFiles");let n;try{n=Array.from(e)}catch(e){return console.error("FileUploadComponent: Error converting files to array:",e),void d("Error processing selected files. Please try again.")}const r=[...o,...n];i(r);const A=n.length,a=n.map((e=>e.name)).join(", ");d(`${A} file${A>1?"s":""} selected: ${a}`),setTimeout((()=>{const e=document.querySelector(".rcb-chat-content");e&&(e.scrollTop=e.scrollHeight)}),100),t&&t(r)},f=e=>{e.preventDefault(),e.stopPropagation(),"dragenter"===e.type||"dragover"===e.type?r(!0):"dragleave"===e.type&&r(!1)},h=()=>{try{s.current&&s.current.click()}catch(e){console.error("FileUploadComponent: Error in handleButtonClick:",e),d("Error opening file selection dialog. Please try again.")}},g=()=>{a(null)};return e.createElement("div",{className:"file-upload-container",style:{padding:"16px",margin:"8px 0"}},u&&e.createElement("div",{style:{display:"flex",justifyContent:"center",marginBottom:"10px"}},e.createElement("button",{onClick:e=>{e.preventDefault(),(async()=>{try{const e=await l();p([e]),d("Screenshot captured successfully")}catch(e){d("Error capturing screenshot. Please try again.")}})()},disabled:c,"aria-describedby":"screenshot-help","aria-label":c?"Taking screenshot, please wait":"Take a screenshot to attach",style:{display:"flex",alignItems:"center",gap:"8px",backgroundColor:"#107180",color:"white",border:"none",borderRadius:"5px",padding:"8px 12px",cursor:c?"not-allowed":"pointer",fontSize:"14px",fontWeight:"500",boxShadow:"0 1px 3px rgba(0,0,0,0.2)"}},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},e.createElement("path",{d:"M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"}),e.createElement("circle",{cx:"12",cy:"13",r:"4"})),c?"Taking screenshot...":"Take screenshot..."),e.createElement("span",{id:"screenshot-help",className:"sr-only"},"Captures the current screen and adds it as an attachment")),e.createElement("div",{className:"file-upload-dropzone "+(n?"active":""),onDragEnter:f,onDragLeave:f,onDragOver:f,onDrop:e=>{e.preventDefault(),e.stopPropagation(),r(!1);try{e.dataTransfer&&e.dataTransfer.files&&e.dataTransfer.files.length>0&&p(e.dataTransfer.files)}catch(e){console.error("FileUploadComponent: Error in handleDrop:",e),d("Error processing dropped files. Please try again.")}},role:"button",tabIndex:0,"aria-label":"File upload area. Click to select files or drag and drop files here.","aria-describedby":"upload-instructions",onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),h())},style:{padding:"20px",border:"2px dashed #ccc",borderRadius:"8px",backgroundColor:n?"#f0f8ff":"#fafafa",transition:"all 0.3s ease"}},e.createElement("input",{ref:s,type:"file",className:"file-input",onChange:e=>{try{e.target&&e.target.files&&e.target.files.length>0&&p(e.target.files)}catch(e){console.error("FileUploadComponent: Error in handleFileSelect:",e),d("Error processing selected files. Please try again.")}},multiple:!0,style:{display:"none"},"aria-label":"Select files to upload",accept:"image/*,application/pdf,text/*,.doc,.docx"}),e.createElement("div",{className:"upload-content",onClick:h,style:{cursor:"pointer",flexDirection:"column",alignItems:"center",display:"flex",textAlign:"center",padding:"12px"}},e.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px"}},e.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"10px"}},e.createElement(Sa,null),e.createElement("p",{style:{margin:0,fontWeight:"bold"}},"Upload Files")),e.createElement("p",{id:"upload-instructions",style:{margin:0,fontSize:"14px",color:"#666"}},"Drag and drop files here or click to select. Accepted: Images, PDFs, Text files (Max 10MB each)")),o.length>0&&e.createElement("div",{className:"selected-files",style:{display:"flex",flexWrap:"wrap",gap:"8px",marginTop:"12px",alignItems:"center"}},e.createElement("span",{style:{fontWeight:400,color:"#888",fontSize:"13px",marginRight:"8px",alignSelf:"center"}},"Selected files:"),o.map(((n,r)=>e.createElement("span",{key:r,style:{background:"#fff",color:"#107180",borderRadius:"5px",padding:"4px 12px",fontSize:"14px",marginRight:"4px",marginBottom:"4px",border:"1px solid #ccc",display:"flex",alignItems:"center",gap:"6px",cursor:"pointer"},onClick:e=>{e.stopPropagation(),(e=>{a(e)})(n)}},e.createElement("span",{onClick:e=>{e.stopPropagation(),(e=>{const n=o.filter(((t,n)=>n!==e));i(n),t&&t(n)})(r)},style:{cursor:"pointer",color:"#888",fontWeight:"bold",fontSize:"15px",marginRight:"4px",userSelect:"none",lineHeight:1},title:"Remove file","aria-label":`Remove ${n.name}`},"×"),n.name," (",(n.size/1024).toFixed(1)," KB)")))))),(()=>{if(!A)return null;const t=A.type.startsWith("image/"),n=A.type.startsWith("text/"),r="application/pdf"===A.type;return e.createElement("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.7)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3},onClick:g},e.createElement("div",{style:{backgroundColor:"white",padding:"20px",borderRadius:"8px",maxWidth:"90%",maxHeight:"90%",overflow:"auto",position:"relative"},onClick:e=>e.stopPropagation()},e.createElement("button",{onClick:g,style:{position:"absolute",top:"10px",right:"10px",background:"none",border:"none",fontSize:"24px",cursor:"pointer",color:"#666"}},"×"),e.createElement("h3",{style:{marginTop:0,marginBottom:"16px"}},A.name),t&&e.createElement("img",{src:URL.createObjectURL(A),alt:A.name,style:{maxWidth:"100%",maxHeight:"70vh"}}),n&&e.createElement("pre",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word",maxHeight:"70vh",overflow:"auto",padding:"16px",backgroundColor:"#f5f5f5",borderRadius:"4px"}},URL.createObjectURL(A)),r&&e.createElement("iframe",{src:URL.createObjectURL(A),style:{width:"100%",height:"70vh",border:"none"},title:A.name}),!t&&!n&&!r&&e.createElement("div",{style:{padding:"20px",textAlign:"center"}},"Preview not available for this file type")))})())},Ta=async(e,t="support",n=[])=>{const r=17,o={support:r,general_help:r,feedback:r,loginAccess:30,loginProvider:31,security:26},i={serviceDeskId:"security"===t?3:2,requestTypeId:o[t]||o.support,requestFieldValues:{...e}};if(n&&n.length>0){const e=await Promise.all(n.map((async e=>new Promise(((t,n)=>{const r=new FileReader;r.onload=()=>{const n=r.result.split(",")[1];t({fileName:e.name,contentType:e.type,size:e.size,fileData:n})},r.onerror=()=>n(new Error(`Failed to read file ${e.name}`)),r.readAsDataURL(e)})))));i.attachments=e}return i},Qa=async(e,t)=>{const n=pa.netlifyBaseUrl.replace("/.netlify/functions/","").replace("/.netlify/functions","");let r;r="create-support-ticket"===t?`${n}/api/v1/tickets`:"create-security-incident"===t?`${n}/api/v1/security-incidents`:`${pa.netlifyBaseUrl}/${t}`;try{const t=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok){let e="";try{const n=await t.text();console.error("| ❌ Post data to proxy failed:",t.status,n);try{const t=JSON.parse(n);e=t.message||t.error||n}catch{e=n}}catch{e=`HTTP ${t.status} ${t.statusText}`}return 403===t.status?e="The ticket service is temporarily unavailable. Please try again later or contact support directly.":404===t.status?e="Ticket service not found. Please try again later.":500===t.status?e="Server error. Please try again later.":401===t.status&&(e="Authentication error with the ticket service. Please contact support."),{success:!1,status:t.status,error:e}}return{success:!0,data:await t.json()}}catch(e){return console.error("| ❌ Post data to proxy exception:",e),{success:!1,error:e.message}}},Ma=(t,n)=>e.createElement(Ia,{onFileUpload:e=>t({...n||{},uploadedFiles:e})}),Oa=e=>{let t=null;return{submitTicket:async(n,r,o=[])=>{try{const i=await Ta(n,r,o),A=await Qa(i,"create-support-ticket");A.success?(t={success:!0,ticketKey:A.data.data.ticketKey,ticketUrl:A.data.data.ticketUrl},e((e=>({...e,ticketKey:A.data.data.ticketKey,ticketUrl:A.data.data.ticketUrl})))):(console.error(`| ❌ ${r} ticket creation failed:`,A),t={success:!1,error:A.error||"Unknown error"},e((e=>({...e,submissionError:A.error||"Unknown error"}))))}catch(n){console.error(`| ❌ Error sending ${r} data to proxy:`,n),t={success:!1,error:n.message},e((e=>({...e,submissionError:n.message})))}},getSubmissionResult:()=>t}},Na=(e,t="ticket")=>e?e.success?e.ticketUrl&&e.ticketKey?`Your ${t} has been submitted successfully.\n\nTicket: <a href="${e.ticketUrl}" target="_blank">${e.ticketKey}</a>\n\nOur support team will review your request and respond accordingly. Thank you for contacting ACCESS.`:`Your ${t} has been submitted successfully.\n\nOur support team will review your request and respond accordingly. Thank you for contacting ACCESS.`:`We apologize, but there was an error submitting your ${t}: ${e.error||"Unknown error"}\n\nPlease try again or contact our support team directly.`:`We apologize, but there was an error submitting your ${t}.\n\nPlease try again or contact our support team directly.`,La=e=>e&&e.length>0?`\nAttachments: ${e.length} file(s) attached`:"";let Ra=null;const ja=()=>{if(!Ra)return console.warn("Form context not available, returning empty form"),{};const e=Ra.ticketForm;return e&&"object"==typeof e?e:{}},Ha=(e={})=>{const t=ja()||{},n=e&&"object"==typeof e?e:{};return{...t,email:n.email||t.email,name:n.name||t.name,accessId:n.accessId||t.accessId}},_a=()=>e=>(e&&""!==e.trim()||setTimeout((()=>{const e=document.querySelector(".rcb-chat-input-textarea");if(e){e.value="Not provided";const t=new Event("input",{bubbles:!0});e.dispatchEvent(t),setTimeout((()=>{const e=document.querySelector('.rcb-send-button, .rcb-chat-send-button, [aria-label*="send"], button[type="submit"]');if(e){const t=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});e.dispatchEvent(t)}}),200)}}),100),{success:!0}),Fa=e=>e&&""!==e.trim()?e:"Not provided",Ua=e=>{const t=e?.trim()||"";return t?(e=>!(!e||"string"!=typeof e)&&/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(e.trim()))(t)?{success:!0}:{success:!1,promptContent:"Please enter a valid email address (e.g., user@example.com).",promptDuration:3e3,promptType:"error",highlightTextArea:!0}:{success:!1,promptContent:"Please enter an email address.",promptDuration:3e3,promptType:"error",highlightTextArea:!0}},za=({ticketForm:e={},setTicketForm:t=()=>{},userInfo:n={}})=>{const r=(({ticketForm:e={},setTicketForm:t=()=>{},userInfo:n={}})=>{const{submitTicket:r,getSubmissionResult:o}=Oa(t);return{access_help:{message:"If you're having trouble logging into the ACCESS website, here are some common issues:\n\n• Make sure you're using a supported browser (Chrome, Firefox, Safari)\n• Clear your browser cookies and cache\n• Check if you're using the correct identity provider\n\nWould you like to submit a help ticket for ACCESS login issues?",options:["Yes, let's create a ticket","Back to Main Menu"],chatDisabled:!0,path:e=>"Yes, let's create a ticket"===e.userInput?"access_login_description":"start"},access_login_description:{message:"Describe your login issue.",function:e=>{const r=ja(),o={...r,description:e.userInput,email:n.email||r.email,name:n.name||r.name,accessId:n.accessId||r.accessId};t(o)},path:"access_login_identity"},access_login_identity:{message:"Which identity provider were you using?",options:["ACCESS","Github","Google","Institution","Microsoft","ORCID","Other"],chatDisabled:!0,function:e=>{const n=ja();t({...n,identityProvider:e.userInput})},path:"access_login_browser"},access_login_browser:{message:"Which browser were you using?",options:["Chrome","Firefox","Edge","Safari","Other"],chatDisabled:!0,function:e=>{const n=ja();t({...n,browser:e.userInput})},path:"access_login_attachment"},access_login_attachment:{message:"Would you like to attach a screenshot?",options:["Yes","No"],chatDisabled:!0,function:e=>{const n=ja();t({...n,wantsAttachment:e.userInput})},path:e=>"Yes"===e.userInput?"access_login_upload":(()=>{const e=Ha(n);return e.email?e.name?e.accessId?"access_login_summary":"access_login_accessid":"access_login_name":"access_login_email"})()},access_login_upload:{message:"Please upload your screenshot.",component:Ma(t,e),options:["Continue"],chatDisabled:!0,function:()=>{const e=ja();t({...e,uploadConfirmed:!0})},path:()=>{const e=Ha(n);return e.email?e.name?e.accessId?"access_login_summary":"access_login_accessid":"access_login_name":"access_login_email"}},access_login_email:{message:"What is your email?",validateTextInput:e=>Ua(e),function:e=>{const n=ja();t({...n,email:e.userInput})},path:()=>{const e=Ha(n);return e.name?e.accessId?"access_login_summary":"access_login_accessid":"access_login_name"}},access_login_name:{message:"What is your name?",function:e=>{const n=ja();t({...n,name:e.userInput})},path:()=>Ha(n).accessId?"access_login_summary":"access_login_accessid"},access_login_accessid:{message:"What is your ACCESS ID? (Optional - press Enter to skip)",validateTextInput:_a(),function:e=>{const n=ja();t({...n,accessId:Fa(e.userInput)})},path:"access_login_summary"},access_login_summary:{message:e=>{const t=ja(),r=Ha(n),o=La(t.uploadedFiles);let i=r.accessId;return"access_login_accessid"===e.prevPath&&e.userInput?i=e.userInput:i||"access_login_accessid"!==e.prevPath||(i=e.userInput),`Thank you for providing your ACCESS login issue details. Here's a summary:\n\nName: ${r.name||"Not provided"}\nEmail: ${r.email||"Not provided"}\nACCESS ID: ${i||"Not provided"}\nIdentity Provider: ${t.identityProvider||"Not provided"}\nBrowser: ${t.browser||"Not provided"}\nIssue Description: ${t.description||"Not provided"}${o}\n\nWould you like to submit this ticket?`},options:["Submit Ticket","Back to Main Menu"],chatDisabled:!0,renderHtml:["BOT","USER"],function:async e=>{if("Submit Ticket"===e.userInput){const e=ja(),t=Ha(n),o={email:t.email||"",name:t.name||"",accessId:t.accessId||"",description:e.description||"",identityProvider:e.identityProvider||"",browser:e.browser||""};await r(o,"loginAccess",e.uploadedFiles||[])}},path:e=>"Submit Ticket"===e.userInput?"access_login_success":"start"},access_login_success:{message:()=>Na(o(),"ACCESS login ticket"),options:["Back to Main Menu"],chatDisabled:!0,renderHtml:["BOT"],path:"start"}}})({ticketForm:e,setTicketForm:t,userInfo:n}),o=(({ticketForm:e={},setTicketForm:t=()=>{},userInfo:n={}})=>{const{submitTicket:r,getSubmissionResult:o}=Oa(t);return{affiliated_help:{message:'If you\'re having trouble logging into an affiliated infrastructure or resource provider, here are some common issues:\n\n• Ensure your allocation is active\n• Confirm you have the correct username for that resource\n• Check <a href="https://operations.access-ci.org/infrastructure_news_view">System Status News</a> to see if the resource is undergoing maintenance\n\nWould you like to submit a help ticket for resource provider login issues?',options:["Yes, let's create a ticket","Back to Main Menu"],chatDisabled:!0,renderHtml:["BOT"],path:e=>"Yes, let's create a ticket"===e.userInput?"affiliated_login_resource":"start"},affiliated_login_resource:{message:"Which ACCESS Resource are you trying to access?",options:["ACES","Anvil","Bridges-2","DARWIN","Delta","DeltaAI","Derecho","Expanse","FASTER","Granite","Jetstream2","KyRIC","Launch","Neocortex","Ookami","Open Science Grid","Open Storage Network","Ranch","Stampede3"],chatDisabled:!0,function:e=>{const n=ja();t({...n,resource:e.userInput})},path:"affiliated_login_userid"},affiliated_login_userid:{message:"What is your user ID at the resource?",function:e=>{const n=ja();t({...n,userIdResource:e.userInput})},path:"affiliated_login_description"},affiliated_login_description:{message:"Please describe the issue you're having logging in.",function:e=>{const r=ja(),o={...r,description:e.userInput,email:n.email||r.email,name:n.name||r.name,accessId:n.accessId||r.accessId};t(o)},path:"affiliated_login_attachment"},affiliated_login_attachment:{message:"Would you like to attach a screenshot?",options:["Yes","No"],chatDisabled:!0,function:e=>{const n=ja();t({...n,wantsAttachment:e.userInput})},path:e=>"Yes"===e.userInput?"affiliated_login_upload":(()=>{const e=Ha(n);return e.email?e.name?e.accessId?"affiliated_login_summary":"affiliated_login_accessid":"affiliated_login_name":"affiliated_login_email"})()},affiliated_login_upload:{message:"Please upload your screenshot.",component:Ma(t,e),options:["Continue"],chatDisabled:!0,function:()=>{const e=ja();t({...e,uploadConfirmed:!0})},path:()=>{const e=Ha(n);return e.email?e.name?e.accessId?"affiliated_login_summary":"affiliated_login_accessid":"affiliated_login_name":"affiliated_login_email"}},affiliated_login_email:{message:"What is your email?",validateTextInput:e=>Ua(e),function:e=>{const n=ja();t({...n,email:e.userInput})},path:()=>{const e=Ha(n);return e.name?e.accessId?"affiliated_login_summary":"affiliated_login_accessid":"affiliated_login_name"}},affiliated_login_name:{message:"What is your name?",function:e=>{const n=ja();t({...n,name:e.userInput})},path:()=>Ha(n).accessId?"affiliated_login_summary":"affiliated_login_accessid"},affiliated_login_accessid:{message:"What is your ACCESS ID? (Optional - press Enter to skip)",validateTextInput:_a(),function:e=>{const n=ja();t({...n,accessId:Fa(e.userInput)})},path:"affiliated_login_summary"},affiliated_login_summary:{message:e=>{const t=ja(),r=Ha(n),o=La(t.uploadedFiles);let i=r.accessId;return"affiliated_login_accessid"===e.prevPath&&e.userInput?i=e.userInput:i||"affiliated_login_accessid"!==e.prevPath||(i=e.userInput),`Thank you for providing your resource login issue details. Here's a summary:\n\nName: ${r.name||"Not provided"}\nEmail: ${r.email||"Not provided"}\nACCESS ID: ${i||"Not provided"}\nResource: ${t.resource||"Not provided"}\nResource User ID: ${t.userIdResource||"Not provided"}\nIssue Description: ${t.description||"Not provided"}${o}\n\nWould you like to submit this ticket?`},options:["Submit Ticket","Back to Main Menu"],chatDisabled:!0,function:async e=>{if("Submit Ticket"===e.userInput){const e=ja(),t=Ha(n),o={email:t.email||"",name:t.name||"",accessId:t.accessId||"",accessResource:e.resource||"",description:e.description||"",userIdAtResource:e.userIdResource||""};await r(o,"loginProvider",e.uploadedFiles||[])}},path:e=>"Submit Ticket"===e.userInput?"affiliated_login_success":"start"},affiliated_login_success:{message:()=>Na(o(),"resource login ticket"),options:["Back to Main Menu"],chatDisabled:!0,renderHtml:["BOT"],path:"start"}}})({ticketForm:e,setTicketForm:t,userInfo:n}),i=(({ticketForm:e={},setTicketForm:t=()=>{},userInfo:n={}})=>{const{submitTicket:r,getSubmissionResult:o}=Oa(t);return{general_help_summary_subject:{message:"Provide a short title for your ticket.",function:e=>{const r=ja(),o={...r,summary:e.userInput,email:n.email||r.email,name:n.name||r.name,accessId:n.accessId||r.accessId};t(o)},path:"general_help_category"},general_help_category:{message:"What type of issue are you experiencing?",options:["User Account Question","Allocation Question","User Support Question","CSSN/CCEP Question","Training Question","Metrics Question","OnDemand Question","Pegasus Question","XDMoD Question","Some Other Question"],chatDisabled:!0,function:e=>{const n=ja();t({...n,category:e.userInput})},path:"general_help_description"},general_help_description:{message:"Please describe your issue.",function:e=>{const n=ja();t({...n,description:e.userInput})},path:"general_help_attachment"},general_help_attachment:{message:"Would you like to attach a file to your ticket?",options:["Yes","No"],chatDisabled:!0,function:e=>{const n=ja();t({...n,wantsAttachment:e.userInput})},path:e=>"Yes"===e.userInput?"general_help_upload":"general_help_resource"},general_help_upload:{message:"Please upload your file.",component:Ma(t,e),options:["Continue"],chatDisabled:!0,function:()=>{const e=ja();t({...e,uploadConfirmed:!0})},path:"general_help_resource"},general_help_resource:{message:"Does your problem involve an ACCESS Resource?",options:["Yes","No"],chatDisabled:!0,function:e=>{const n=ja();t({...n,involvesResource:e.userInput.toLowerCase()})},path:e=>"Yes"===e.userInput?"general_help_resource_details":"general_help_keywords"},general_help_resource_details:{message:"Please select the ACCESS Resource involved with your issue:",options:["ACES","Anvil","Bridges-2","DARWIN","Delta","DeltaAI","Derecho","Expanse","FASTER","Granite","Jetstream2","KyRIC","Launch","Neocortex","Ookami","Open Science Grid","Open Storage Network","Ranch","Stampede3"],chatDisabled:!0,function:e=>{const n=ja();t({...n,resourceDetails:e.userInput})},path:"general_help_user_id_at_resource"},general_help_user_id_at_resource:{message:"What is your User ID at the selected resource(s)? (Optional - press Enter to skip)",validateTextInput:_a(),function:e=>{const n=ja();t({...n,userIdAtResource:Fa(e.userInput)})},path:"general_help_keywords"},general_help_keywords:{message:"Please add up to 5 keywords to help route your ticket.",checkboxes:{items:[" C, C++","Abaqus","ACCESS","ACCESS-credits","ACCESS-website","Accounts","ACLS","Adding users","Affiliations","Affinity Groups","AI","Algorithms","Allocation extension","Allocation Management","Allocation proposal","Allocation Time","Allocation users","AMBER","AMIE","Anaconda","Analysis","API","Application Status","ARCGIS","Architecture","Archiving","Astrophysics","ATLAS","Authentication","AWS","AZURE","Backup","BASH","Batch Jobs","Benchmarking","Big Data","Bioinformatics","Biology","Ceph","CFD","cgroups","CHARMM","Checkpoint","cilogon","citation","Cloud","Cloud Computing","Cloud Lab","Cloud Storage","Cluster Management","Cluster Support","CMMC","Community Outreach","Compiling","Composible Systems","Computataional Chemistry","COMSOL","Conda","Condo","Containers","Core dump","Core hours","CP2K","CPU architecture","CPU bound","CUDA","Cybersecurity","CYVERSE","Data","Data Storage","Data-access-protocols","Data-analysis","Data-compliance","Data-lifecycle","Data-management","Data-management-software","Data-provenance","Data-reproducibility","Data-retention","Data-science","Data-sharing","Data-transfer","Data-wrangling","Database-update","Debugging","Debugging, Optimizatio and Profiling","Deep-learning","Dependencies","Deployment","DFT","Distributed-computing","DNS","Docker","Documentation","DOI","DTN","Easybuild","Email","Encryption","Environment-modules","Errors","Extension","FastX","Federated-authentication","File transfers","File-formats","File-limits","File-systems","File-transfer","Finite-element-analysis","Firewall","Fortran","Frameworks and IDE's","GAMESS","Gateways","GATK","Gaussian","GCC","Genomics","GIS","Git","Globus","GPFS","GPU","Gravitational-waves","Gridengine","GROMACS","Hadoop","Hardware","Image-processing","Infiniband","Interactive-mode","Interconnect","IO-Issue","ISILON","Java","Jekyll","Jetstream","Job-accounting","Job-array","Job-charging","Job-failure","Job-sizing","Job-submission","Julia","Jupyterhub","Key-management","Kubernetes","KyRIC","LAMMPS","Library-paths","License","Linear-programming","Linux","LMOD","login","LSF","Lustre","Machine-learning","Management","Materials-science","Mathematica","MATLAB","Memory","Metadata","Modules","Molecular-dynamics","Monte-carlo","MPI","NAMD","NetCDF","Networking","Neural-networks","NFS","NLP","NoMachine","Nvidia","Oceanography","OnDemnad","Open-science-grid","Open-storage-network","OpenCV","Openfoam","OpenMP","OpenMPI","OpenSHIFT","Openstack","Optimization","OS","OSG","Parallelization","Parameter-sweeps","Paraview","Particle-physics","password","PBS","Pegasus","Pending-jobs","Performance-tuning","Permissions","Physiology","PIP","PODMAN","Portals","Pre-emption","Professional and Workforce Development","Professional-development","Profile","Profiling","Programming","Programming Languages","Programming-best-practices","Project-management","Project-renewal","Provisioning","Pthreads","Publication-database","Putty","Python","Pytorch","Quantum-computing","Quantum-mechanics","Quota","R","RDP","React","Reporting","Research-facilitation","Research-grants","Resources","Rstudio-server","S3","Samba","SAS","Scaling","Schedulers","Scheduling","Science DMZ","Science Gateways","Scikit-learn","Scratch","screen","scripting","SDN","Secure Computing and Data","Secure-data-architecture","Serverless-hpc","setup","sftp","SGE","Shell Scripting","Shifter","Singularity","SLURM","SMB","Smrtanalysis","Software Installations","Software-carpentry","SPACK","SPARK","Spectrum-scale","SPSS","SQL","SSH","Stampede2","STATA","Storage","Supplement","Support","TCP","Technical-training-for-hpc","Tensorflow","Terminal-emulation-and-window-management","Tickets","Timing-issue","TMUX","Tools","Training","Transfer SUs","Trinity","Tuning","Unix-environment","Upgrading","Vectorization","Version-control","vim","VNC","VPN","Workflow","Workforce-development","X11","Xalt","XDMoD","XML","XSEDE","I don't see a relevant keyword"],min:0,max:5},chatDisabled:!0,function:e=>{const n=ja();t({...n,keywords:e.userInput})},path:e=>e.userInput&&e.userInput.includes("I don't see a relevant keyword")?"general_help_additional_keywords":"general_help_priority"},general_help_additional_keywords:{message:"Please enter additional keywords, separated by commas:",function:e=>{const n=ja(),r=n.keywords||[],o=e.userInput,i=Array.isArray(r)?[...r]:r.split(",").map((e=>e.trim())),A=i.filter((e=>"I don't see a relevant keyword"!==e)),a=Array.isArray(A)&&A.length>0?[...A,o].join(", "):o;t({...n,keywords:a,suggestedKeyword:o})},path:"general_help_priority"},general_help_priority:{message:"Please select a priority for your issue:",options:["Lowest","Low","Medium","High","Highest"],chatDisabled:!0,function:e=>{const n=ja();t({...n,priority:e.userInput.toLowerCase()})},path:()=>n.email?n.name?n.accessId?"general_help_ticket_summary":"general_help_accessid":"general_help_name":"general_help_email"},general_help_email:{message:"What is your email address?",validateTextInput:e=>Ua(e),function:e=>{const n=ja();t({...n,email:e.userInput})},path:()=>n.name?n.accessId?"general_help_ticket_summary":"general_help_accessid":"general_help_name"},general_help_name:{message:"What is your name?",function:e=>{const n=ja();t({...n,name:e.userInput})},path:()=>n.accessId?"general_help_ticket_summary":"general_help_accessid"},general_help_accessid:{message:"What is your ACCESS ID? (Optional - press Enter to skip)",required:!1,function:e=>{const n=ja();t({...n,accessId:e.userInput||""})},path:"general_help_ticket_summary"},general_help_ticket_summary:{message:e=>{const t=ja(),r=Ha(n),o=La(t.uploadedFiles);let i=r.accessId;"general_help_accessid"===e.prevPath&&e.userInput?i=e.userInput:i||"general_help_accessid"!==e.prevPath||(i=e.userInput);let A="";return"yes"===t.involvesResource&&(A=`\nResource: ${t.resourceDetails||"Not specified"}`,t.userIdAtResource&&(A+=`\nUser ID at Resource: ${t.userIdAtResource}`)),`Thank you for providing your issue details. Here's a summary:\n\nName: ${r.name||"Not provided"}\nEmail: ${r.email||"Not provided"}\nACCESS ID: ${i||"Not provided"}\nIssue Summary: ${t.summary||"Not provided"}\nCategory: ${t.category||"Not provided"}\nPriority: ${t.priority||"Not provided"}\nKeywords: ${t.keywords||"Not provided"}\nIssue Description: ${t.description||"Not provided"}${A}${o}\n\nWould you like to submit this ticket?`},options:["Submit Ticket","Back to Main Menu"],chatDisabled:!0,function:async e=>{if("Submit Ticket"===e.userInput){const e=ja(),t=Ha(n),o={email:t.email||"",summary:e.summary||"General Support Ticket",description:e.description||"",priority:e.priority||"medium",accessId:t.accessId||"",name:t.name||"",issueType:e.category||"",hasResourceProblem:"yes"===e.involvesResource?"Yes":"No",userIdAtResource:e.userIdAtResource||"",resourceName:e.resourceDetails||"",keywords:e.keywords||"",noRelevantKeyword:e.suggestedKeyword?"checked":"",suggestedKeyword:e.suggestedKeyword||""};await r(o,"support",e.uploadedFiles||[])}},path:e=>"Submit Ticket"===e.userInput?"general_help_success":"start"},general_help_success:{message:()=>Na(o(),"support ticket"),options:["Back to Main Menu"],chatDisabled:!0,renderHtml:["BOT"],path:"start"}}})({ticketForm:e,setTicketForm:t,userInfo:n});return{help_ticket:{message:"What is your help ticket related to?",options:["Logging into ACCESS website","Logging into a resource","Another question"],chatDisabled:!0,function:n=>{t({...e||{},ticketType:n.userInput})},path:e=>"Logging into ACCESS website"===e.userInput?"access_help":"Logging into a resource"===e.userInput?"affiliated_help":"Another question"===e.userInput?"general_help_summary_subject":"help_ticket"},...r,...o,...i}},Ga=({setTicketForm:t=()=>{},userInfo:n={}})=>{let r=null,o=null;return{security_incident:{message:"You're reporting a security incident. Please provide a brief summary of the security concern.",function:e=>{const r=ja()||{},o={...r,summary:e.userInput,email:n.email||r.email,name:n.name||r.name,accessId:n.accessId||r.accessId};t(o)},path:"security_priority"},security_priority:{message:"What is the priority level of this security incident?",options:["Critical","High","Medium","Low"],chatDisabled:!0,function:e=>{const n=ja()||{};t({...n,priority:e.userInput})},path:"security_description"},security_description:{message:"Please provide a detailed description of the security incident or concern.",function:e=>{const n=ja()||{};t({...n,description:e.userInput})},path:"security_attachment"},security_attachment:{message:"Do you have any files (screenshots, logs, etc.) that would help with this security incident?",options:["Yes","No"],chatDisabled:!0,function:e=>{const n=ja()||{};t({...n,wantsAttachment:e.userInput})},path:e=>"Yes"===e.userInput?"security_upload":"security_contact_info"},security_upload:{message:"Please upload your files.",component:e.createElement(Ia,{onFileUpload:e=>{const n=ja()||{};t({...n,uploadedFiles:e})}}),options:["Continue"],chatDisabled:!0,function:()=>{const e=ja()||{};t({...e,uploadConfirmed:!0})},path:"security_contact_info"},security_contact_info:{message:()=>{const e=Ha(n);return e.name&&e.email&&e.accessId?`I have your contact information:\n\nName: ${e.name}\nEmail: ${e.email}\nACCESS ID: ${e.accessId}\n\nIs this correct?`:"I need your contact information. What is your name?"},options:e=>{if(!e)return[];const t=Ha(n);return t.name&&t.email&&t.accessId?["Yes, that's correct","Let me update it"]:[]},chatDisabled:e=>{if(!e)return!1;const t=Ha(n);return t.name&&t.email&&t.accessId},function:e=>{if(!e)return;const n=ja()||{};if(!n.name){const r={...n,name:e.userInput};t(r)}},path:e=>{if(!e)return"security_summary";const t=Ha(n);return"Yes, that's correct"===e.userInput?"security_summary":"Let me update it"===e.userInput?"security_name":t.name&&t.email?t.accessId?"security_summary":"security_accessid":"security_email"}},security_name:{message:"What is your name?",function:e=>{const n=ja()||{};t({...n,name:e.userInput})},path:"security_email"},security_email:{message:"What is your email address?",function:e=>{const n=ja()||{};t({...n,email:e.userInput})},path:"security_accessid"},security_accessid:{message:"What is your ACCESS ID? (Optional - press Enter to skip)",validateTextInput:_a(),function:e=>{const n=Fa(e.userInput);r=n;const o=ja()||{};t({...o,accessId:n})},path:"security_summary"},security_summary:{message:()=>{const e=ja()||{},t=Ha(n),o={...e,name:t.name||e.name,email:t.email||e.email,accessId:r||t.accessId||e.accessId};let i="";e.uploadedFiles&&e.uploadedFiles.length>0&&(i=`\nAttachments: ${e.uploadedFiles.length} file(s) attached`);const A=o.accessId||"Not provided";return`Here's a summary of your security incident report:\n\nSummary: ${o.summary||"Not provided"}\nPriority: ${o.priority||"Not provided"}\nName: ${o.name||"Not provided"}\nEmail: ${o.email||"Not provided"}\nACCESS ID: ${A}\nDescription: ${o.description||"Not provided"}${i}\n\nWould you like to submit this security incident report?`},options:["Submit Security Report","Back to Main Menu"],chatDisabled:!0,function:async e=>{if("Submit Security Report"===e.userInput){const e=ja()||{},i=Ha(n),A={...e,name:i.name||e.name,email:i.email||e.email,accessId:r||i.accessId||e.accessId},a={summary:A.summary||"",priority:A.priority||"",description:A.description||"",name:A.name||"",email:A.email||"",accessId:A.accessId||""};try{const n=await(async(e,t=[])=>{try{const n=await Ta(e,"security",t);return await Qa(n,"create-security-incident")}catch(e){return console.error("| ❌ Security incident submission failed:",e),{success:!1,error:e.message}}})(a,e.uploadedFiles||[]);n.success?(o={success:!0,ticketKey:n.data?.data?.ticketKey,ticketUrl:n.data?.data?.ticketUrl},t((e=>({...e,ticketKey:n.data?.data?.ticketKey,ticketUrl:n.data?.data?.ticketUrl,submissionResult:o})))):(o={success:!1,error:n.error},t((e=>({...e,submissionError:n.error}))))}catch(e){o={success:!1,error:e.message},t((t=>({...t,submissionError:e.message})))}}},path:e=>"Submit Security Report"===e.userInput?"security_success":"start"},security_success:{message:()=>(e=>e&&!e.success?`We apologize, but there was an error submitting your security incident report: ${e.error}\n\nPlease try again or contact our cybersecurity team directly.`:e&&e.success&&e.ticketUrl&&e.ticketKey?`Your security incident report has been submitted successfully.\n\nTicket: <a href="${e.ticketUrl}" target="_blank">${e.ticketKey}</a>\n\nOur cybersecurity team will review your report and respond accordingly. Thank you for helping keep ACCESS secure.`:(e&&e.success,"Your security incident report has been submitted successfully.\n\nOur cybersecurity team will review your report and respond accordingly. Thank you for helping keep ACCESS secure."))((ja()||{}).submissionResult||o),options:["Back to Main Menu"],chatDisabled:!0,renderHtml:["BOT"],path:"start"}}};function Ya({welcomeMessage:t,isBotLoggedIn:n,loginUrl:r,sessionId:o,ticketForm:i={},setTicketForm:A=()=>{},formContext:a,apiKey:s,userInfo:l={}}){a&&(e=>{Ra=e})(a);const c=(({welcome:e,setTicketForm:t=()=>{},setFeedbackForm:n=()=>{}})=>({start:{message:e,options:["Ask a question about ACCESS","Open a Help Ticket","Usage and performance of ACCESS resources (XDMoD)","Report a security issue"],chatDisabled:!0,path:e=>"Ask a question about ACCESS"===e.userInput?"go_ahead_and_ask":"Open a Help Ticket"===e.userInput?(t({}),"help_ticket"):"Usage and performance of ACCESS resources (XDMoD)"===e.userInput?"metrics_intro":"Report a security issue"===e.userInput?(t({}),"security_incident"):"start"}}))({welcome:fa(0,t),setTicketForm:A});return{...c||{},...(n?Ba({sessionId:o,apiKey:s}):{go_ahead_and_ask:{message:"To ask questions, you need to log in first.",component:e.createElement(Ea,{loginUrl:r}),options:["Back to Main Menu"],chatDisabled:!0,path:e=>"Back to Main Menu"===e.userInput?"start":"go_ahead_and_ask"}})||{},...(n?Da({sessionId:o,apiKey:s}):{metrics_intro:{message:"To investigate metrics, you need to log in first.",component:e.createElement(Ea,{loginUrl:r}),options:["Back to Main Menu"],chatDisabled:!0,path:e=>"Back to Main Menu"===e.userInput?"start":"metrics_intro"}})||{},...za({ticketForm:i,setTicketForm:A,userInfo:l})||{},...Ga({ticketForm:i,setTicketForm:A,userInfo:l})||{}}}var qa="2.7.3";"true"===localStorage.getItem("QaBotDebug")&&console.info(`%c🤖 ACCESS QA Bot | v${qa} | react-chatbotify v2.2.0 [${(new Date).toISOString().slice(0,10)}]`,"background: #107180; color: white; padding: 8px; border-radius: 3px; font-weight: bold;");const Wa=()=>{for(let e=0;e<localStorage.length;e++){const t=localStorage.key(e);if(t&&t.startsWith("qa_bot_session_")){const e=localStorage.getItem(t);if(e)return e}}const e=`qa_bot_session_${da()}`;return localStorage.setItem(e,e),e},Xa=e.forwardRef(((t,n)=>{const{apiKey:r,open:o=!1,onOpenChange:i,embedded:A=!1,isLoggedIn:a,loginUrl:l=pa.LOGIN_URL,ringEffect:c=!1,welcome:u,userEmail:d,userName:p,accessId:f}=t,h=r||process.env.REACT_APP_API_KEY||null,[g,m]=e.useState(void 0!==a&&a),b=e.useRef(Wa()).current,{ticketForm:y,feedbackForm:v,updateTicketForm:w,updateFeedbackForm:x,resetTicketForm:E,resetFeedbackForm:k}=ba();e.useEffect((()=>{void 0!==a&&m(a)}),[a]),e.useEffect((()=>{if(!A&&i){const e=e=>{n&&n.current&&n.current._markAsUserInteraction&&n.current._markAsUserInteraction();const t=e.data.newState;i(t)};return window.addEventListener("rcb-toggle-chat-window",e),()=>{window.removeEventListener("rcb-toggle-chat-window",e)}}}),[A,i,n]);const P=fa(0,u),C=e.useRef(null),B=((t,n={})=>e.useMemo((()=>{const e=(e,n)=>{if(t.current){const n=getComputedStyle(t.current).getPropertyValue(e);if(n&&""!==n.trim())return n.trim();if(t.current.parentElement){const n=getComputedStyle(t.current.parentElement).getPropertyValue(e);if(n&&""!==n.trim())return n.trim()}}return n};return{primaryColor:e("--primary-color",n.primaryColor||pa.THEME.PRIMARY_COLOR),secondaryColor:e("--secondary-color",n.secondaryColor||pa.THEME.SECONDARY_COLOR),fontFamily:e("--font-family",n.fontFamily||pa.THEME.FONT_FAMILY)}}),[t,n]))(C),D=(({themeColors:t,embedded:n,defaultOpen:r,isLoggedIn:o,loginUrl:i})=>{const A=o,a=sessionStorage.getItem("qa_bot_tooltip_shown")?"NEVER":"START";return e.useMemo((()=>({general:{...t,embedded:n,primaryColor:t.primaryColor,fontFamily:"Arial, sans-serif",secondaryColor:t.secondaryColor},header:{title:e.createElement("div",{key:"header-title"},e.createElement("h1",{className:"sr-only"},pa.CHATBOT.TITLE),e.createElement("span",{"aria-hidden":"true"},pa.CHATBOT.TITLE)),avatar:pa.CHATBOT.AVATAR_URL,buttons:[A?e.createElement(xa,{key:"user-icon"}):e.createElement(Ea,{key:"login-button",loginUrl:i,isHeaderButton:!0}),s.CLOSE_CHAT_BUTTON]},chatWindow:{defaultOpen:!!n},device:{desktopEnabled:!0,mobileEnabled:!0,applyMobileOptimizations:!1},chatInput:{enabledPlaceholderText:"Type your question here...",disabledPlaceholderText:"",disabled:!1,allowNewline:!0,sendButtonStyle:{display:"flex"},characterLimit:1e3,sendButtonAriaLabel:"Send message",showCharacterCount:!1,ariaLabel:"Chat input area",ariaDescribedBy:"chat-input-help"},chatHistory:{disabled:!1},botBubble:{simulateStream:!0,streamSpeed:10,allowNewline:!0,dangerouslySetInnerHTML:!0,renderHtml:!0,ariaLabel:"Bot response",role:"log"},chatButton:{icon:pa.CHATBOT.AVATAR_URL},tooltip:{text:pa.CHATBOT.TOOLTIP_TEXT,mode:a},audio:{disabled:!0},emoji:{disabled:!0},fileAttachment:{disabled:!0},notification:{disabled:!0},footer:{text:e.createElement("div",{key:"footer-text"},e.createElement("a",{href:"https://support.access-ci.org/tools/access-qa-tool"},"About this tool"),"."),buttons:[e.createElement(wa,{key:"new-chat-button"})]},event:{rcbToggleChatWindow:!0}})),[t,n,r,A,a,i])})({themeColors:B,embedded:A,defaultOpen:!1,isLoggedIn:g,loginUrl:l}),S=e.useMemo((()=>({ticketForm:y||{},feedbackForm:v||{},updateTicketForm:w,updateFeedbackForm:x,resetTicketForm:E,resetFeedbackForm:k})),[y,v,w,x,E,k]),I=[()=>vn(Q),oa(),()=>aa(T)];var T,Q;const M=e.useMemo((()=>Ya({welcomeMessage:P,isBotLoggedIn:g,loginUrl:l,sessionId:b,ticketForm:y,setTicketForm:w,formContext:S,apiKey:h,userInfo:{email:d||null,name:p||null,accessId:f||null}})),[P,g,l,b,y,v,w,x,S,h,d,p,f]);return((t,n)=>{e.useEffect((()=>{n.current&&(t?n.current.classList.add("bot-logged-in"):n.current.classList.remove("bot-logged-in"))}),[t,n])})(g,C),((t,n)=>{e.useEffect((()=>{if(!t||!n.current)return;const e=setTimeout((()=>{const e=n.current?.querySelector(".rcb-tooltip-show");e&&e.classList.add("phone-ring")}),500);return()=>{clearTimeout(e)}}),[t,n])})(c,C),e.useEffect((()=>{const e=()=>{const e=document.querySelector(".rcb-chat-window");if(!e)return;const t=e.querySelector(".rcb-send-button");t&&(t.hasAttribute("tabindex")||t.setAttribute("tabindex","0"),t.hasAttribute("data-keyboard-enabled")||(t.setAttribute("data-keyboard-enabled","true"),t.addEventListener("keydown",(e=>{if("Enter"===e.key||" "===e.key){e.preventDefault();const n=t&&Object.keys(t).find((e=>e.startsWith("__reactProps")));if(n){const r=t[n],o=r?.onMouseDown;if(o&&"function"==typeof o)return void o(e)}const r=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});t.dispatchEvent(r)}}))))},t=setInterval(e,1e3);return e(),()=>clearInterval(t)}),[]),ka(),e.useEffect((()=>{const e=()=>{sessionStorage.setItem("qa_bot_tooltip_shown","true")};return window.addEventListener("rcb-toggle-chat-window",e),()=>{window.removeEventListener("rcb-toggle-chat-window",e)}}),[]),e.createElement("div",{className:"qa-bot "+(A?"embedded-qa-bot":""),ref:C,role:"application","aria-label":A?"Ask ACCESS - Embedded Chat Application":"Ask ACCESS - Chat Assistant Application"},e.createElement(Ot,null,e.createElement(ha,{ref:n,embedded:A,isBotLoggedIn:g,currentOpen:o}),e.createElement(jt,{key:`chatbot-${b}-${g}`,settings:D,flow:M,plugins:I}),e.createElement("div",{"aria-live":"polite",role:"status",className:"sr-only",id:"bot-live-region"}),e.createElement("div",{id:"chat-input-help",className:"sr-only"},"Type your message and press Enter to send. Use arrow keys to navigate through response options. Press Enter or Space to select an option."),e.createElement("div",{id:"keyboard-help",className:"sr-only"},"Available keyboard shortcuts: Arrow keys to navigate options, Enter or Space to select, Tab to move between interactive elements, Escape to close dialogs.")))}));Xa.displayName="QABotInternal";const Va=e.forwardRef(((t,n)=>e.createElement(ma,null,e.createElement(Xa,A({},t,{ref:n})))));Va.displayName="QABot";a('.rcb-toggle-icon{background-color:initial!important;background-position:calc(50% - 1px) calc(50% + 2px);background-repeat:no-repeat;background-size:62%!important}.rcb-chat-window{height:800px!important;max-height:80vh!important;max-width:100%;width:550px!important}.rcb-chat-window .rcb-bot-avatar{background-position:50%;background-repeat:no-repeat;background-size:contain;border-radius:0}.rcb-chat-window .rcb-chat-header{align-items:center;display:flex;flex-direction:row;font-weight:700}.rcb-chat-window a{color:#000;font-weight:700;text-decoration:underline}.rcb-chat-window a:hover{color:#107180}.rcb-chat-window .rcb-bot-message a{color:#fff;text-decoration:none}.rcb-chat-window .rcb-bot-message a:hover{text-decoration:underline}.rcb-chat-window .rcb-chat-input-textarea{overflow-y:auto}.rcb-chat-window .rcb-chat-footer-container{font-size:10px}.qa-bot .user-login-icon{display:none!important}.qa-bot.bot-logged-in .user-login-icon{display:flex!important;transform:scale(1.3) translateY(-2px)}.embedded-qa-bot .rcb-chat-window{max-width:100%;width:100%!important}.qa-bot.hidden{display:none}.embedded-qa-bot .rcb-bot-message,.embedded-qa-bot .rcb-user-message{max-width:90%!important;word-break:break-word}.embedded-qa-bot .rcb-chat-input-textarea{width:100%!important}.qa-bot-container{max-width:100%;width:100%}.rcb-tooltip-show.phone-ring{animation:phone-ring 3s ease-out!important;z-index:10000!important}@keyframes phone-ring{0%{transform:translateX(0) translateY(0) rotate(0deg)}2%{transform:translateX(0) translateY(-8px) rotate(-2deg)}4%{transform:translateX(0) translateY(-6px) rotate(2deg)}6%{transform:translateX(0) translateY(-8px) rotate(-1deg)}8%{transform:translateX(0) translateY(-6px) rotate(1deg)}10%{transform:translateX(0) translateY(-8px) rotate(-2deg)}12%{transform:translateX(0) translateY(-6px) rotate(2deg)}20%{transform:translateX(0) translateY(0) rotate(0deg)}30%{transform:translateX(0) translateY(0) rotate(0deg)}40%{transform:translateX(0) translateY(0) rotate(0deg)}49%{transform:translateX(0) translateY(0) rotate(0deg)}50%{transform:translateX(0) translateY(-8px) rotate(-2deg)}52%{transform:translateX(0) translateY(-6px) rotate(2deg)}54%{transform:translateX(0) translateY(-8px) rotate(-1deg)}56%{transform:translateX(0) translateY(-6px) rotate(1deg)}58%{transform:translateX(0) translateY(-8px) rotate(-2deg)}60%{transform:translateX(0) translateY(-6px) rotate(2deg)}70%{transform:translateX(0) translateY(0) rotate(0deg)}to{transform:translateX(0) translateY(0) rotate(0deg)}}@media (max-width:768px){.rcb-chat-window{max-height:calc(100vh - 100px)!important;max-width:calc(100vw - 40px)!important;width:550px!important}.embedded-chat-container.open{height:400px}.embedded-chat-closed{font-size:14px;height:40px}.embedded-chat-open-btn{font-size:12px;padding:3px 10px}.rcb-bot-message,.rcb-user-message{max-width:85%!important}.rcb-chat-input-textarea{font-size:16px!important;min-height:44px!important}.rcb-chat-header{padding:12px 16px!important}}@media (max-width:480px){.rcb-chat-window{bottom:10px!important;left:10px!important;max-height:calc(100vh - 80px)!important;max-width:calc(100vw - 20px)!important;right:10px!important;width:calc(100vw - 20px)!important}.embedded-chat-container.open{height:350px}.rcb-bot-message,.rcb-user-message{margin-bottom:8px!important;max-width:90%!important}.rcb-chat-header{font-size:14px!important;padding:8px 12px!important}.rcb-chat-button{bottom:20px!important;height:50px!important;right:20px!important;width:50px!important}.rcb-chat-footer-container{font-size:9px!important;padding:8px 12px!important}}@media (max-width:360px){.rcb-chat-window{left:5px!important;max-width:calc(100vw - 10px)!important;right:5px!important;width:calc(100vw - 10px)!important}.rcb-chat-header{font-size:13px!important;padding:6px 8px!important}}.rcb-checkbox-container{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin-left:16px!important;max-width:100%!important;padding-top:12px!important}.rcb-checkbox-row-container{align-items:center!important;background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:#107180!important;cursor:pointer!important;display:flex!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;margin:0!important;max-height:auto!important;min-height:auto!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-checkbox-row-container:hover{background-color:#e8f4f8!important;border-color:#107180!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.rcb-checkbox-row-container[data-checked=true]{background-color:#107180!important;border-color:#107180!important;color:#fff!important}.rcb-checkbox-row{margin-left:0!important}.rcb-checkbox-mark{height:14px!important;margin-right:6px!important;width:14px!important}.rcb-checkbox-label{font-size:13px!important;margin:0!important;white-space:nowrap!important}.rcb-checkbox-next-button{align-items:center!important;background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:#107180!important;cursor:pointer!important;display:flex!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;justify-content:center!important;line-height:24px!important;margin:0!important;max-height:auto!important;min-height:auto!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-checkbox-next-button:hover{background-color:#e8f4f8!important;border-color:#107180!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.sr-only{clip:rect(0,0,0,0)!important;border:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}.rcb-chat-input-send-button:focus,.rcb-chat-input-textarea:focus{outline:2px solid #107180!important;outline-offset:2px!important}.rcb-user-message{word-wrap:break-word!important;overflow:hidden!important;word-break:break-word!important}:focus-visible{outline:2px solid #107180!important;outline-offset:2px!important}.rcb-options-container{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:8px!important;margin:16px!important;padding:0!important}.rcb-options{background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:#107180!important;cursor:pointer!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;outline:none!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-options:hover{background-color:#e8f4f8!important;border-color:#107180!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.rcb-checkbox-next-button.keyboard-focused,.rcb-checkbox-next-button:focus,.rcb-checkbox-next-button:focus-visible,.rcb-checkbox-row-container.keyboard-focused,.rcb-checkbox-row-container:focus,.rcb-checkbox-row-container:focus-visible,.rcb-options.keyboard-focused,.rcb-options:focus,.rcb-options:focus-visible{background-color:#e8f4f8!important;border-color:#107180!important;outline:none!important}.rcb-options:active{background-color:#107180!important;border-color:#107180!important;color:#fff!important;transform:translateY(0)!important}.keyboard-nav-hint{color:#666!important;font-size:12px!important;font-style:italic!important;margin-bottom:8px!important}@media (prefers-reduced-motion:reduce){.keyboard-nav-hint{display:none!important}}.rcb-options-container [role=button][tabindex="0"],.rcb-options-container button[tabindex="0"]{position:relative!important}.rcb-options-container [role=button][tabindex="0"]:after,.rcb-options-container button[tabindex="0"]:after{color:#107180!important;content:"←"!important;font-size:16px!important;opacity:0!important;position:absolute!important;right:12px!important;top:50%!important;transform:translateY(-50%)!important;transition:opacity .2s ease!important}.rcb-options-container [role=button][tabindex="0"]:focus:after,.rcb-options-container button[tabindex="0"]:focus:after{opacity:1!important}.rcb-chat-input-send-button{cursor:pointer!important;opacity:1!important;pointer-events:auto!important;visibility:visible!important}.rcb-chat-input-send-button:not([tabindex]){-webkit-user-select:none;-moz-user-select:none;user-select:none}.rcb-chat-input-container [onclick],.rcb-chat-input-container [role=button],.rcb-chat-input-container div[style*=cursor],.rcb-chat-input-container svg:last-child,.rcb-chat-input-container>div:last-child{tabindex:0!important;cursor:pointer!important}.rcb-chat-footer{margin-top:4px!important;padding-top:0!important}.rcb-chat-footer-container{align-items:center!important;display:flex!important;margin-top:4px!important;padding-top:4px!important}.rcb-chat-footer-container button{order:1!important}.rcb-chat-footer-container a[href*=access-qa-tool]{tab-index:0!important;order:2!important}.rcb-chat-footer-container a[href*=feedback]{tab-index:0!important;order:3!important}@media (prefers-contrast:high){.rcb-chat-window a{background-color:#fff!important;border:1px solid #000!important;color:#000!important}}@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.rcb-chat-input-textarea{user-select:text!important}.rcb-chat-body-container,.rcb-chat-input-textarea,.rcb-chat-window{touch-action:pan-y!important}.embedded-qa-bot,.rcb-chat-window{-webkit-overflow-scrolling:touch!important}.embedded-qa-bot .rcb-chat-input-textarea{touch-action:pan-y!important;user-select:text!important}.embedded-qa-bot .rcb-chat-body-container,.embedded-qa-bot .rcb-chat-window{touch-action:pan-y!important}',{insertAt:"top"});const Ka=e.forwardRef(((t,n)=>{const[r,o]=e.useState(t.isLoggedIn||!1),[i,A]=e.useState(t.defaultOpen||!1),a=e.useRef();return e.useImperativeHandle(n,(()=>({addMessage:e=>{a.current&&a.current.addMessage(e)},setBotIsLoggedIn:e=>{o(e)},openChat:()=>{!t.embedded&&a.current&&A(!0)},closeChat:()=>{!t.embedded&&a.current&&A(!1)},toggleChat:()=>{!t.embedded&&a.current&&A((e=>!e))}})),[t.embedded]),e.createElement(Va,{ref:a,apiKey:t.apiKey,embedded:t.embedded,isLoggedIn:r,open:!!t.embedded||i,onOpenChange:t.embedded?void 0:A,loginUrl:t.loginUrl,ringEffect:t.ringEffect,welcome:t.welcome,userEmail:t.userEmail,userName:t.userName,accessId:t.accessId})}));function Ja(n){if(!(n.target&&n.target instanceof HTMLElement))return void console.error("QA Bot: A valid target DOM element is required");const r=t.createRoot(n.target),o={current:null};return r.render(e.createElement(e.StrictMode,null,e.createElement(Ka,{ref:e=>{o.current=e},apiKey:n.apiKey,defaultOpen:n.defaultOpen,embedded:n.embedded,isLoggedIn:n.isLoggedIn,loginUrl:n.loginUrl,ringEffect:n.ringEffect,welcome:n.welcome,userEmail:n.userEmail,userName:n.userName,accessId:n.accessId}))),{addMessage:e=>{var t;return null===(t=o.current)||void 0===t?void 0:t.addMessage(e)},setBotIsLoggedIn:e=>{var t;return null===(t=o.current)||void 0===t?void 0:t.setBotIsLoggedIn(e)},openChat:()=>{var e;return null===(e=o.current)||void 0===e?void 0:e.openChat()},closeChat:()=>{var e;return null===(e=o.current)||void 0===e?void 0:e.closeChat()},toggleChat:()=>{var e;return null===(e=o.current)||void 0===e?void 0:e.toggleChat()},destroy:()=>{o.current=null,r.unmount()}}}Ka.displayName="ProgrammaticQABot",exports.QABot=Va,exports.default=Ja,exports.qaBot=Ja;
120
+ */var EA,kA;const Pp=Cp(function(){if(kA)return EA;kA=1;var e=/["'&<>]/;return EA=function(n){var a=""+n,i=e.exec(a);if(!i)return a;var o,c="",u=0,d=0;for(u=i.index;u<a.length;u++){switch(a.charCodeAt(u)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 39:o="&#39;";break;case 60:o="&lt;";break;case 62:o="&gt;";break;default:continue}d!==u&&(c+=a.substring(d,u)),d=u+1,c+=o}return d!==u?c+a.substring(d,u):c}}());function Tr(e,n,a){return n in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,e}const Tp=/(url|image|image-set)\(/i;class Dp extends kp{attribute(n,a){return n==="style"&&Object.keys(a).forEach(i=>{String(a[i]).match(Tp)&&delete a[i]}),a}}const Ip=/^<(!doctype|(html|head|body)(\s|>))/i,Bp=/^(aria-|data-|\w+:)/iu,Mp=/{{{(\w+)\/?}}}/;function Rp(){if(!(typeof window>"u"||typeof document>"u"))return document.implementation.createHTMLDocument("Interweave")}let CA=class{constructor(e,n={},a=[],i=[]){var o;if(Tr(this,"allowed",void 0),Tr(this,"banned",void 0),Tr(this,"blocked",void 0),Tr(this,"container",void 0),Tr(this,"content",[]),Tr(this,"props",void 0),Tr(this,"matchers",void 0),Tr(this,"filters",void 0),Tr(this,"keyIndex",void 0),process.env.NODE_ENV!=="production"&&e&&typeof e!="string")throw new TypeError("Interweave parser requires a valid string.");this.props=n,this.matchers=a,this.filters=[...i,new Dp],this.keyIndex=-1,this.container=this.createContainer(e||""),this.allowed=new Set((o=n.allowList)!==null&&o!==void 0?o:Sp),this.banned=new Set(xp),this.blocked=new Set(n.blockList)}applyAttributeFilters(e,n){return this.filters.reduce((a,i)=>a!==null&&typeof i.attribute=="function"?i.attribute(e,a):a,n)}applyNodeFilters(e,n){return this.filters.reduce((a,i)=>a!==null&&typeof i.node=="function"?i.node(e,a):a,n)}applyMatchers(e,n){const a={},{props:i}=this;let o=e,c=0,u=null;return this.matchers.forEach(d=>{const A=d.asTag().toLowerCase(),p=this.getTagConfig(A);if(i[d.inverseName]||!this.isTagAllowed(A)||!this.canRenderChild(n,p))return;let h="";for(;o&&(u=d.match(o));){const{index:m,length:y,match:C,valid:D,void:Q,...E}=u,I=d.propName+String(c);m>0&&(h+=o.slice(0,m)),D?(h+=Q?`{{{${I}/}}}`:`{{{${I}}}}${C}{{{/${I}}}}`,this.keyIndex+=1,c+=1,a[I]={children:C,matcher:d,props:{...i,...E,key:this.keyIndex}}):h+=C,d.greedy?(o=h+o.slice(m+y),h=""):o=o.slice(m+(y||C.length))}d.greedy||(o=h+o)}),c===0?e:this.replaceTokens(o,a)}canRenderChild(e,n){return!(!e.tagName||!n.tagName||e.void)&&(e.children.length>0?e.children.includes(n.tagName):!(e.invalid.length>0&&e.invalid.includes(n.tagName))&&(n.parent.length>0?n.parent.includes(e.tagName):!(!e.self&&e.tagName===n.tagName)&&!!(e&&e.content&n.type)))}convertLineBreaks(e){const{noHtml:n,disableLineBreaks:a}=this.props;if(n||a||e.match(/<((?:\/[ a-z]+)|(?:[ a-z]+\/))>/gi))return e;let i=e.replace(/\r\n/g,`
121
+ `);return i=i.replace(/\n{3,}/g,`
122
+
123
+
124
+ `),i=i.replace(/\n/g,"<br/>"),i}createContainer(e){var n;const a=(typeof global<"u"&&global.INTERWEAVE_SSR_POLYFILL||Rp)();if(!a)return;const i=(n=this.props.containerTagName)!==null&&n!==void 0?n:"body",o=i==="body"||i==="fragment"?a.body:a.createElement(i);if(e.match(Ip)){if(process.env.NODE_ENV!=="production")throw new Error("HTML documents as Interweave content are not supported.")}else o.innerHTML=this.convertLineBreaks(this.props.escapeHtml?Pp(e):e);return o}extractAttributes(e){const{allowAttributes:n}=this.props,a={};let i=0;return e.nodeType===1&&e.attributes&&([...e.attributes].forEach(o=>{const{name:c,value:u}=o,d=c.toLowerCase(),A=xA[d]||xA[c];if(!this.isSafe(e)||!d.match(Bp)&&(!n&&(!A||A===2)||d.startsWith("on")||u.replace(/(\s|\0|&#x0([9AD]);)/,"").match(/(javascript|vbscript|livescript|xss):/i)))return;let p=d==="style"?this.extractStyleAttribute(e):u;A===4?p=!0:A===3?p=Number.parseFloat(String(p)):A!==5&&(p=String(p)),a[Ep[d]||d]=this.applyAttributeFilters(d,p),i+=1}),i!==0)?a:null}extractStyleAttribute(e){const n={};return Array.from(e.style).forEach(a=>{const i=e.style[a];(typeof i=="string"||typeof i=="number")&&(n[a.replace(/-([a-z])/g,(o,c)=>String(c).toUpperCase())]=i)}),n}getTagConfig(e){const n={children:[],content:0,invalid:[],parent:[],self:!0,tagName:"",type:0,void:!1};return tc[e]?{...n,...tc[e],tagName:e}:n}isSafe(e){if(typeof HTMLAnchorElement<"u"&&e instanceof HTMLAnchorElement){const n=e.getAttribute("href");if(n!=null&&n.startsWith("#"))return!0;const a=e.protocol.toLowerCase();return a===":"||a==="http:"||a==="https:"||a==="mailto:"||a==="tel:"}return!0}isTagAllowed(e){return!this.banned.has(e)&&!this.blocked.has(e)&&(this.props.allowElements||this.allowed.has(e))}parse(){return this.container?this.parseNode(this.container,this.getTagConfig(this.container.nodeName.toLowerCase())):[]}parseNode(e,n){const{noHtml:a,noHtmlExceptMatchers:i,allowElements:o,transform:c,transformOnlyAllowList:u}=this.props;let d=[],A="";return[...e.childNodes].forEach(p=>{if(p.nodeType===1){const m=p.nodeName.toLowerCase(),y=this.getTagConfig(m);A&&(d.push(A),A="");const C=this.applyNodeFilters(m,p);if(!C)return;let D;if(c&&(!u||this.isTagAllowed(m))){this.keyIndex+=1;const Q=this.keyIndex;D=this.parseNode(C,y);const E=c(C,D,y);if(E===null)return;if(typeof E<"u")return void d.push(R.cloneElement(E,{key:Q}));this.keyIndex=Q-1}if(this.banned.has(m))return;if(a||i&&m!=="br"||!this.isTagAllowed(m)||!o&&!this.canRenderChild(n,y))d=[...d,...this.parseNode(C,y.tagName?y:n)];else{var h;this.keyIndex+=1;const Q=this.extractAttributes(C),E={tagName:m};Q&&(E.attributes=Q),y.void&&(E.selfClose=y.void),d.push(R.createElement(SA,{...E,key:this.keyIndex},(h=D)!==null&&h!==void 0?h:this.parseNode(C,y)))}}else if(p.nodeType===3){const m=a&&!i?p.textContent:this.applyMatchers(p.textContent||"",n);Array.isArray(m)?d=[...d,...m]:A+=m}}),A&&d.push(A),d}replaceTokens(e,n){if(!e.includes("{{{"))return e;const a=[];let i=e,o=null;for(;o=i.match(Mp);){const[c,u]=o,d=o.index,A=c.includes("/");if(process.env.NODE_ENV!=="production"&&!n[u])throw new Error(`Token "${u}" found but no matching element to replace with.`);d>0&&(a.push(i.slice(0,d)),i=i.slice(d));const{children:p,matcher:h,props:m}=n[u];let y;if(A)y=c.length,a.push(h.createElement(p,m));else{const C=i.match(new RegExp(`{{{/${u}}}}`));if(process.env.NODE_ENV!=="production"&&!C)throw new Error(`Closing token missing for interpolated element "${u}".`);y=C.index+C[0].length,a.push(h.createElement(this.replaceTokens(i.slice(c.length,C.index),n),m))}i=i.slice(y)}return i.length>0&&a.push(i),a.length===0?"":a.length===1&&typeof a[0]=="string"?a[0]:a}};function Op(e){var n;const{attributes:a,className:i,containerTagName:o,content:c,emptyContent:u,parsedContent:d,tagName:A,noWrap:p}=e,h=(n=o??A)!==null&&n!==void 0?n:"span",m=h==="fragment"||p;let y;if(d)y=d;else{const C=new CA(c??"",e).parse();C.length>0&&(y=C)}return y||(y=u),m?R.createElement(R.Fragment,null,y):R.createElement(SA,{attributes:a,className:i,tagName:h},y)}function Fp(e){const{attributes:n,className:a,content:i="",disableFilters:o=!1,disableMatchers:c=!1,emptyContent:u=null,filters:d=[],matchers:A=[],onAfterParse:p=null,onBeforeParse:h=null,tagName:m="span",noWrap:y=!1,...C}=e,D=c?[]:A,Q=o?[]:d,E=h?[h]:[],I=p?[p]:[];D.forEach(j=>{j.onBeforeParse&&E.push(j.onBeforeParse.bind(j)),j.onAfterParse&&I.push(j.onAfterParse.bind(j))});const _=E.reduce((j,z)=>{const W=z(j,e);if(process.env.NODE_ENV!=="production"&&typeof W!="string")throw new TypeError("Interweave `onBeforeParse` must return a valid HTML string.");return W},i??""),B=new CA(_,C,D,Q),U=I.reduce((j,z)=>{const W=z(j,e);if(process.env.NODE_ENV!=="production"&&!Array.isArray(W))throw new TypeError("Interweave `onAfterParse` must return an array of strings and React elements.");return W},B.parse());return R.createElement(Op,{attributes:n,className:a,containerTagName:e.containerTagName,emptyContent:u,noWrap:y,parsedContent:U.length===0?void 0:U,tagName:m})}const Lp=({children:e})=>N.jsx("div",{style:{whiteSpace:"normal"},children:N.jsx(Fp,{content:typeof e=="string"?e:""})}),Qp={autoConfig:!0},PA=(e,n,a)=>{var i;if(!e.detail.currPath)return!1;const o=n[e.detail.currPath];return!!o&&(((i=o.renderHtml)==null?void 0:i.map(c=>c.toUpperCase()).includes(a))??!1)},_p=e=>{const n=[];let a="",i=!1;for(let o=0;o<e.length;o++){const c=e[o];c==="<"?i?(n.push(a),a=c):(i=!0,a=c):c===">"?(a+=c,n.push(a),a="",i=!1):i?a+=c:n.push(c)}return a!==""&&n.push(a),n},Hp=e=>{const{getFlow:n}=Qs(),{messages:a,replaceMessages:i}=ql(),{settings:o}=bA(),{hasChatHistoryLoaded:c}=wA(),u={...e,...Qp},d=u.htmlComponent?u.htmlComponent:Lp;R.useEffect(()=>{var h,m;if(c){const y=[...a];for(let C=0;C<y.length&&C<(((h=o.chatHistory)==null?void 0:h.maxEntries)??30);C++){const D=y[C];(m=D.tags)!=null&&m.includes("rcb-html-renderer-plugin:parsed")&&(D.contentWrapper=d)}i(y)}},[c]);const A=async h=>{var m;const y=(m=h.data.message)==null?void 0:m.sender.toUpperCase();typeof h.data.message.content=="string"&&PA(h,n(),y)&&(h.type==="rcb-start-simulate-stream-message"&&(h.data.simulateStreamChunker=_p),h.data.message.contentWrapper=d,h.data.message.tags||(h.data.message.tags=[]),h.data.message.tags.push("rcb-html-renderer-plugin:parsed"))};Bn(ye.PRE_INJECT_MESSAGE,A),Bn(ye.CHUNK_STREAM_MESSAGE,A),Bn(ye.START_STREAM_MESSAGE,A),Bn(ye.START_SIMULATE_STREAM_MESSAGE,A),Bn(ye.START_SPEAK_AUDIO,async h=>{PA(h,n(),"BOT")&&(h.data.textToRead=(m=>typeof window.DOMParser<"u"?new DOMParser().parseFromString(m,"text/html").body.textContent||"":m.replace(/<\/?[^>]+(>|$)/g,""))(h.data.textToRead))});const p={name:"@rcb-plugins/html-renderer"};return u!=null&&u.autoConfig&&(p.settings={event:{rcbPreInjectMessage:!0,rcbChunkStreamMessage:!0,rcbStartSimulateStreamMessage:!0,rcbStartStreamMessage:!0,rcbStartSpeakAudio:!0}}),p},Np=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Up=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,zp={};function TA(e,n){return(zp.jsx?Up:Np).test(e)}const jp=/[ \t\n\f\r]/g;function DA(e){return e.replace(jp,"")===""}class Ti{constructor(n,a,i){this.property=n,this.normal=a,i&&(this.space=i)}}function IA(e,n){const a={},i={};let o=-1;for(;++o<e.length;)Object.assign(a,e[o].property),Object.assign(i,e[o].normal);return new Ti(a,i,n)}function nc(e){return e.toLowerCase()}Ti.prototype.property={},Ti.prototype.normal={},Ti.prototype.space=null;class Mn{constructor(n,a){this.property=n,this.attribute=a}}Mn.prototype.space=null,Mn.prototype.boolean=!1,Mn.prototype.booleanish=!1,Mn.prototype.overloadedBoolean=!1,Mn.prototype.number=!1,Mn.prototype.commaSeparated=!1,Mn.prototype.spaceSeparated=!1,Mn.prototype.commaOrSpaceSeparated=!1,Mn.prototype.mustUseProperty=!1,Mn.prototype.defined=!1;let Wp=0;const Oe=Qo(),St=Qo(),BA=Qo(),Ae=Qo(),rt=Qo(),wa=Qo(),xn=Qo();function Qo(){return 2**++Wp}const rc=Object.freeze(Object.defineProperty({__proto__:null,boolean:Oe,booleanish:St,commaOrSpaceSeparated:xn,commaSeparated:wa,number:Ae,overloadedBoolean:BA,spaceSeparated:rt},Symbol.toStringTag,{value:"Module"})),oc=Object.keys(rc);class ac extends Mn{constructor(n,a,i,o){let c=-1;if(super(n,a),MA(this,"space",o),typeof i=="number")for(;++c<oc.length;){const u=oc[c];MA(this,oc[c],(i&rc[u])===rc[u])}}}function MA(e,n,a){a&&(e[n]=a)}ac.prototype.defined=!0;const Yp={}.hasOwnProperty;function xa(e){const n={},a={};let i;for(i in e.properties)if(Yp.call(e.properties,i)){const o=e.properties[i],c=new ac(i,e.transform(e.attributes||{},i),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(c.mustUseProperty=!0),n[i]=c,a[nc(i)]=i,a[nc(c.attribute)]=i}return new Ti(n,a,e.space)}const RA=xa({space:"xlink",transform:(e,n)=>"xlink:"+n.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),OA=xa({space:"xml",transform:(e,n)=>"xml:"+n.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function FA(e,n){return n in e?e[n]:n}function LA(e,n){return FA(e,n.toLowerCase())}const QA=xa({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:LA,properties:{xmlns:null,xmlnsXLink:null}}),_A=xa({transform:(e,n)=>n==="role"?n:"aria-"+n.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:St,ariaAutoComplete:null,ariaBusy:St,ariaChecked:St,ariaColCount:Ae,ariaColIndex:Ae,ariaColSpan:Ae,ariaControls:rt,ariaCurrent:null,ariaDescribedBy:rt,ariaDetails:null,ariaDisabled:St,ariaDropEffect:rt,ariaErrorMessage:null,ariaExpanded:St,ariaFlowTo:rt,ariaGrabbed:St,ariaHasPopup:null,ariaHidden:St,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:rt,ariaLevel:Ae,ariaLive:null,ariaModal:St,ariaMultiLine:St,ariaMultiSelectable:St,ariaOrientation:null,ariaOwns:rt,ariaPlaceholder:null,ariaPosInSet:Ae,ariaPressed:St,ariaReadOnly:St,ariaRelevant:null,ariaRequired:St,ariaRoleDescription:rt,ariaRowCount:Ae,ariaRowIndex:Ae,ariaRowSpan:Ae,ariaSelected:St,ariaSetSize:Ae,ariaSort:null,ariaValueMax:Ae,ariaValueMin:Ae,ariaValueNow:Ae,ariaValueText:null,role:null}}),Gp=xa({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:LA,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:wa,acceptCharset:rt,accessKey:rt,action:null,allow:null,allowFullScreen:Oe,allowPaymentRequest:Oe,allowUserMedia:Oe,alt:null,as:null,async:Oe,autoCapitalize:null,autoComplete:rt,autoFocus:Oe,autoPlay:Oe,blocking:rt,capture:null,charSet:null,checked:Oe,cite:null,className:rt,cols:Ae,colSpan:null,content:null,contentEditable:St,controls:Oe,controlsList:rt,coords:Ae|wa,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Oe,defer:Oe,dir:null,dirName:null,disabled:Oe,download:BA,draggable:St,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Oe,formTarget:null,headers:rt,height:Ae,hidden:Oe,high:Ae,href:null,hrefLang:null,htmlFor:rt,httpEquiv:rt,id:null,imageSizes:null,imageSrcSet:null,inert:Oe,inputMode:null,integrity:null,is:null,isMap:Oe,itemId:null,itemProp:rt,itemRef:rt,itemScope:Oe,itemType:rt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Oe,low:Ae,manifest:null,max:null,maxLength:Ae,media:null,method:null,min:null,minLength:Ae,multiple:Oe,muted:Oe,name:null,nonce:null,noModule:Oe,noValidate:Oe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Oe,optimum:Ae,pattern:null,ping:rt,placeholder:null,playsInline:Oe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Oe,referrerPolicy:null,rel:rt,required:Oe,reversed:Oe,rows:Ae,rowSpan:Ae,sandbox:rt,scope:null,scoped:Oe,seamless:Oe,selected:Oe,shadowRootClonable:Oe,shadowRootDelegatesFocus:Oe,shadowRootMode:null,shape:null,size:Ae,sizes:null,slot:null,span:Ae,spellCheck:St,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ae,step:null,style:null,tabIndex:Ae,target:null,title:null,translate:null,type:null,typeMustMatch:Oe,useMap:null,value:St,width:Ae,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:rt,axis:null,background:null,bgColor:null,border:Ae,borderColor:null,bottomMargin:Ae,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Oe,declare:Oe,event:null,face:null,frame:null,frameBorder:null,hSpace:Ae,leftMargin:Ae,link:null,longDesc:null,lowSrc:null,marginHeight:Ae,marginWidth:Ae,noResize:Oe,noHref:Oe,noShade:Oe,noWrap:Oe,object:null,profile:null,prompt:null,rev:null,rightMargin:Ae,rules:null,scheme:null,scrolling:St,standby:null,summary:null,text:null,topMargin:Ae,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ae,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Oe,disableRemotePlayback:Oe,prefix:null,property:null,results:Ae,security:null,unselectable:null}}),Vp=xa({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:FA,properties:{about:xn,accentHeight:Ae,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ae,amplitude:Ae,arabicForm:null,ascent:Ae,attributeName:null,attributeType:null,azimuth:Ae,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ae,by:null,calcMode:null,capHeight:Ae,className:rt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Ae,diffuseConstant:Ae,direction:null,display:null,dur:null,divisor:Ae,dominantBaseline:null,download:Oe,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ae,enableBackground:null,end:null,event:null,exponent:Ae,externalResourcesRequired:null,fill:null,fillOpacity:Ae,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:wa,g2:wa,glyphName:wa,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ae,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ae,horizOriginX:Ae,horizOriginY:Ae,id:null,ideographic:Ae,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ae,k:Ae,k1:Ae,k2:Ae,k3:Ae,k4:Ae,kernelMatrix:xn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ae,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ae,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Ae,overlineThickness:Ae,paintOrder:null,panose1:null,path:null,pathLength:Ae,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:rt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ae,pointsAtY:Ae,pointsAtZ:Ae,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:xn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:xn,rev:xn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:xn,requiredFeatures:xn,requiredFonts:xn,requiredFormats:xn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Ae,specularExponent:Ae,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ae,strikethroughThickness:Ae,string:null,stroke:null,strokeDashArray:xn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ae,strokeOpacity:Ae,strokeWidth:null,style:null,surfaceScale:Ae,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:xn,tabIndex:Ae,tableValues:null,target:null,targetX:Ae,targetY:Ae,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:xn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ae,underlineThickness:Ae,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ae,values:null,vAlphabetic:Ae,vMathematical:Ae,vectorEffect:null,vHanging:Ae,vIdeographic:Ae,version:null,vertAdvY:Ae,vertOriginX:Ae,vertOriginY:Ae,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ae,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Xp=/^data[-\w.:]+$/i,HA=/-[a-z]/g,Jp=/[A-Z]/g;function Kp(e){return"-"+e.toLowerCase()}function $p(e){return e.charAt(1).toUpperCase()}const Zp={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},qp=IA([OA,RA,QA,_A,Gp],"html"),ic=IA([OA,RA,QA,_A,Vp],"svg");function NA(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var sc,UA,zA,Sa={},eh=function(){if(zA)return Sa;zA=1;var e=Sa&&Sa.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Sa,"__esModule",{value:!0}),Sa.default=function(a,i){var o=null;if(!a||typeof a!="string")return o;var c=(0,n.default)(a),u=typeof i=="function";return c.forEach(function(d){if(d.type==="declaration"){var A=d.property,p=d.value;u?i(A,p,d):p&&((o=o||{})[A]=p)}}),o};var n=e(function(){if(UA)return sc;UA=1;var a=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,i=/\n/g,o=/^\s*/,c=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,u=/^:\s*/,d=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,A=/^[;\s]*/,p=/^\s+|\s+$/g,h="";function m(y){return y?y.replace(p,h):h}return sc=function(y,C){if(typeof y!="string")throw new TypeError("First argument must be a string");if(!y)return[];C=C||{};var D=1,Q=1;function E(J){var Y=J.match(i);Y&&(D+=Y.length);var ee=J.lastIndexOf(`
125
+ `);Q=~ee?J.length-ee:Q+J.length}function I(){var J={line:D,column:Q};return function(Y){return Y.position=new _(J),j(),Y}}function _(J){this.start=J,this.end={line:D,column:Q},this.source=C.source}function B(J){var Y=new Error(C.source+":"+D+":"+Q+": "+J);if(Y.reason=J,Y.filename=C.source,Y.line=D,Y.column=Q,Y.source=y,!C.silent)throw Y}function U(J){var Y=J.exec(y);if(Y){var ee=Y[0];return E(ee),y=y.slice(ee.length),Y}}function j(){U(o)}function z(J){var Y;for(J=J||[];Y=W();)Y!==!1&&J.push(Y);return J}function W(){var J=I();if(y.charAt(0)=="/"&&y.charAt(1)=="*"){for(var Y=2;h!=y.charAt(Y)&&(y.charAt(Y)!="*"||y.charAt(Y+1)!="/");)++Y;if(Y+=2,h===y.charAt(Y-1))return B("End of comment missing");var ee=y.slice(2,Y-2);return Q+=2,E(ee),y=y.slice(Y),Q+=2,J({type:"comment",comment:ee})}}function te(){var J=I(),Y=U(c);if(Y){if(W(),!U(u))return B("property missing ':'");var ee=U(d),Z=J({type:"declaration",property:m(Y[0].replace(a,h)),value:ee?m(ee[0].replace(a,h)):h});return U(A),Z}}return _.prototype.content=y,j(),function(){var J,Y=[];for(z(Y);J=te();)J!==!1&&(Y.push(J),z(Y));return Y}()},sc}());return Sa}();const jA=NA(eh),th=jA.default||jA,WA=YA("end"),lc=YA("start");function YA(e){return function(n){const a=n&&n.position&&n.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function Di(e){return e&&typeof e=="object"?"position"in e||"type"in e?GA(e.position):"start"in e||"end"in e?GA(e):"line"in e||"column"in e?cc(e):"":""}function cc(e){return VA(e&&e.line)+":"+VA(e&&e.column)}function GA(e){return cc(e&&e.start)+"-"+cc(e&&e.end)}function VA(e){return e&&typeof e=="number"?e:1}class zt extends Error{constructor(n,a,i){super(),typeof a=="string"&&(i=a,a=void 0);let o="",c={},u=!1;if(a&&(c="line"in a&&"column"in a||"start"in a&&"end"in a?{place:a}:"type"in a?{ancestors:[a],place:a.position}:{...a}),typeof n=="string"?o=n:!c.cause&&n&&(u=!0,o=n.message,c.cause=n),!c.ruleId&&!c.source&&typeof i=="string"){const A=i.indexOf(":");A===-1?c.ruleId=i:(c.source=i.slice(0,A),c.ruleId=i.slice(A+1))}if(!c.place&&c.ancestors&&c.ancestors){const A=c.ancestors[c.ancestors.length-1];A&&(c.place=A.position)}const d=c.place&&"start"in c.place?c.place.start:c.place;this.ancestors=c.ancestors||void 0,this.cause=c.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=d?d.line:void 0,this.name=Di(c.place)||"1:1",this.place=c.place||void 0,this.reason=this.message,this.ruleId=c.ruleId||void 0,this.source=c.source||void 0,this.stack=u&&c.cause&&typeof c.cause.stack=="string"?c.cause.stack:"",this.actual,this.expected,this.note,this.url}}zt.prototype.file="",zt.prototype.name="",zt.prototype.reason="",zt.prototype.message="",zt.prototype.stack="",zt.prototype.column=void 0,zt.prototype.line=void 0,zt.prototype.ancestors=void 0,zt.prototype.cause=void 0,zt.prototype.fatal=void 0,zt.prototype.place=void 0,zt.prototype.ruleId=void 0,zt.prototype.source=void 0;const uc={}.hasOwnProperty,nh=new Map,rh=/[A-Z]/g,oh=/-([a-z])/g,ah=new Set(["table","tbody","thead","tfoot","tr"]),ih=new Set(["td","th"]),XA="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function sh(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const a=n.filePath||void 0;let i;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=function(u,d){return A;function A(p,h,m,y){const C=Array.isArray(m.children),D=lc(p);return d(h,m,y,C,{columnNumber:D?D.column-1:void 0,fileName:u,lineNumber:D?D.line:void 0},void 0)}}(a,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=function(u,d,A){return p;function p(h,m,y,C){const D=Array.isArray(y.children)?A:d;return C?D(m,y,C):D(m,y)}}(0,n.jsx,n.jsxs)}const o={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:i,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?ic:qp,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},c=JA(o,e,void 0);return c&&typeof c!="string"?c:o.create(e,o.Fragment,{children:c||void 0},void 0)}function JA(e,n,a){return n.type==="element"?function(i,o,c){const u=i.schema;let d=u;o.tagName.toLowerCase()==="svg"&&u.space==="html"&&(d=ic,i.schema=d),i.ancestors.push(o);const A=$A(i,o.tagName,!1),p=function(m,y){const C={};let D,Q;for(Q in y.properties)if(Q!=="children"&&uc.call(y.properties,Q)){const E=lh(m,Q,y.properties[Q]);if(E){const[I,_]=E;m.tableCellAlignToStyle&&I==="align"&&typeof _=="string"&&ih.has(y.tagName)?D=_:C[I]=_}}return D&&((C.style||(C.style={}))[m.stylePropertyNameCase==="css"?"text-align":"textAlign"]=D),C}(i,o);let h=dc(i,o);return ah.has(o.tagName)&&(h=h.filter(function(m){return typeof m!="string"||!function(y){return typeof y=="object"?y.type==="text"&&DA(y.value):DA(y)}(m)})),KA(i,p,A,o),Ac(p,h),i.ancestors.pop(),i.schema=u,i.create(o,A,p,c)}(e,n,a):n.type==="mdxFlowExpression"||n.type==="mdxTextExpression"?function(i,o){if(o.data&&o.data.estree&&i.evaluater){const c=o.data.estree.body[0];return c.type,i.evaluater.evaluateExpression(c.expression)}Ii(i,o.position)}(e,n):n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement"?function(i,o,c){const u=i.schema;let d=u;o.name==="svg"&&u.space==="html"&&(d=ic,i.schema=d),i.ancestors.push(o);const A=o.name===null?i.Fragment:$A(i,o.name,!0),p=function(m,y){const C={};for(const D of y.attributes)if(D.type==="mdxJsxExpressionAttribute")if(D.data&&D.data.estree&&m.evaluater){const Q=D.data.estree.body[0];Q.type;const E=Q.expression;E.type;const I=E.properties[0];I.type,Object.assign(C,m.evaluater.evaluateExpression(I.argument))}else Ii(m,y.position);else{const Q=D.name;let E;if(D.value&&typeof D.value=="object")if(D.value.data&&D.value.data.estree&&m.evaluater){const I=D.value.data.estree.body[0];I.type,E=m.evaluater.evaluateExpression(I.expression)}else Ii(m,y.position);else E=D.value===null||D.value;C[Q]=E}return C}(i,o),h=dc(i,o);return KA(i,p,A,o),Ac(p,h),i.ancestors.pop(),i.schema=u,i.create(o,A,p,c)}(e,n,a):n.type==="mdxjsEsm"?function(i,o){if(o.data&&o.data.estree&&i.evaluater)return i.evaluater.evaluateProgram(o.data.estree);Ii(i,o.position)}(e,n):n.type==="root"?function(i,o,c){const u={};return Ac(u,dc(i,o)),i.create(o,i.Fragment,u,c)}(e,n,a):n.type==="text"?function(i,o){return o.value}(0,n):void 0}function KA(e,n,a,i){typeof a!="string"&&a!==e.Fragment&&e.passNode&&(n.node=i)}function Ac(e,n){if(n.length>0){const a=n.length>1?n:n[0];a&&(e.children=a)}}function dc(e,n){const a=[];let i=-1;const o=e.passKeys?new Map:nh;for(;++i<n.children.length;){const c=n.children[i];let u;if(e.passKeys){const A=c.type==="element"?c.tagName:c.type==="mdxJsxFlowElement"||c.type==="mdxJsxTextElement"?c.name:void 0;if(A){const p=o.get(A)||0;u=A+"-"+p,o.set(A,p+1)}}const d=JA(e,c,u);d!==void 0&&a.push(d)}return a}function lh(e,n,a){const i=function(o,c){const u=nc(c);let d=c,A=Mn;if(u in o.normal)return o.property[o.normal[u]];if(u.length>4&&u.slice(0,4)==="data"&&Xp.test(c)){if(c.charAt(4)==="-"){const p=c.slice(5).replace(HA,$p);d="data"+p.charAt(0).toUpperCase()+p.slice(1)}else{const p=c.slice(4);if(!HA.test(p)){let h=p.replace(Jp,Kp);h.charAt(0)!=="-"&&(h="-"+h),c="data"+h}}A=ac}return new A(d,c)}(e.schema,n);if(!(a==null||typeof a=="number"&&Number.isNaN(a))){if(Array.isArray(a)&&(a=i.commaSeparated?function(o){const c={};return(o[o.length-1]===""?[...o,""]:o).join((c.padRight?" ":"")+","+(c.padLeft===!1?"":" ")).trim()}(a):function(o){return o.join(" ").trim()}(a)),i.property==="style"){let o=typeof a=="object"?a:function(c,u){const d={};try{th(u,A)}catch(p){if(!c.ignoreInvalidStyle){const h=p,m=new zt("Cannot parse `style` attribute",{ancestors:c.ancestors,cause:h,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw m.file=c.filePath||void 0,m.url=XA+"#cannot-parse-style-attribute",m}}return d;function A(p,h){let m=p;m.slice(0,2)!=="--"&&(m.slice(0,4)==="-ms-"&&(m="ms-"+m.slice(4)),m=m.replace(oh,uh)),d[m]=h}}(e,String(a));return e.stylePropertyNameCase==="css"&&(o=function(c){const u={};let d;for(d in c)uc.call(c,d)&&(u[ch(d)]=c[d]);return u}(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&i.space?Zp[i.property]||i.property:i.attribute,a]}}function $A(e,n,a){let i;if(a)if(n.includes(".")){const o=n.split(".");let c,u=-1;for(;++u<o.length;){const d=TA(o[u])?{type:"Identifier",name:o[u]}:{type:"Literal",value:o[u]};c=c?{type:"MemberExpression",object:c,property:d,computed:!(!u||d.type!=="Literal"),optional:!1}:d}i=c}else i=TA(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};else i={type:"Literal",value:n};if(i.type==="Literal"){const o=i.value;return uc.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(i);Ii(e)}function Ii(e,n){const a=new zt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=XA+"#cannot-handle-mdx-estrees-without-createevaluater",a}function ch(e){let n=e.replace(rh,Ah);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function uh(e,n){return n.toUpperCase()}function Ah(e){return"-"+e.toLowerCase()}const fc={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Hs={};function ZA(e,n,a){if(function(i){return!(!i||typeof i!="object")}(e)){if("value"in e)return e.type!=="html"||a?e.value:"";if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return qA(e.children,n,a)}return Array.isArray(e)?qA(e,n,a):""}function qA(e,n,a){const i=[];let o=-1;for(;++o<e.length;)i[o]=ZA(e[o],n,a);return i.join("")}const ed=document.createElement("i");function pc(e){const n="&"+e+";";ed.innerHTML=n;const a=ed.textContent;return(a.charCodeAt(a.length-1)!==59||e==="semi")&&a!==n&&a}function ur(e,n,a,i){const o=e.length;let c,u=0;if(n=n<0?-n>o?0:o+n:n>o?o:n,a=a>0?a:0,i.length<1e4)c=Array.from(i),c.unshift(n,a),e.splice(...c);else for(a&&e.splice(n,a);u<i.length;)c=i.slice(u,u+1e4),c.unshift(n,0),e.splice(...c),u+=1e4,n+=1e4}function Rn(e,n){return e.length>0?(ur(e,e.length,0,n),e):n}const td={}.hasOwnProperty;function dh(e){const n={};let a=-1;for(;++a<e.length;)fh(n,e[a]);return n}function fh(e,n){let a;for(a in n){const i=(td.call(e,a)?e[a]:void 0)||(e[a]={}),o=n[a];let c;if(o)for(c in o){td.call(i,c)||(i[c]=[]);const u=o[c];ph(i[c],Array.isArray(u)?u:u?[u]:[])}}}function ph(e,n){let a=-1;const i=[];for(;++a<n.length;)(n[a].add==="after"?e:i).push(n[a]);ur(e,0,0,i)}function nd(e,n){const a=Number.parseInt(e,n);return a<9||a===11||a>13&&a<32||a>126&&a<160||a>55295&&a<57344||a>64975&&a<65008||!(65535&~a)||(65535&a)==65534||a>1114111?"�":String.fromCodePoint(a)}function Ea(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ar=Zr(/[A-Za-z]/),Sn=Zr(/[\dA-Za-z]/),hh=Zr(/[#-'*+\--9=?A-Z^-~]/);function hc(e){return e!==null&&(e<32||e===127)}const gc=Zr(/\d/),gh=Zr(/[\dA-Fa-f]/),mh=Zr(/[!-/:-@[-`{-~]/);function Be(e){return e!==null&&e<-2}function an(e){return e!==null&&(e<0||e===32)}function Ve(e){return e===-2||e===-1||e===32}const vh=Zr(new RegExp("\\p{P}|\\p{S}","u")),yh=Zr(/\s/);function Zr(e){return function(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function ka(e){const n=[];let a=-1,i=0,o=0;for(;++a<e.length;){const c=e.charCodeAt(a);let u="";if(c===37&&Sn(e.charCodeAt(a+1))&&Sn(e.charCodeAt(a+2)))o=2;else if(c<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(c))||(u=String.fromCharCode(c));else if(c>55295&&c<57344){const d=e.charCodeAt(a+1);c<56320&&d>56319&&d<57344?(u=String.fromCharCode(c,d),o=1):u="�"}else u=String.fromCharCode(c);u&&(n.push(e.slice(i,a),encodeURIComponent(u)),i=a+o+1,u=""),o&&(a+=o,o=0)}return n.join("")+e.slice(i)}function ot(e,n,a,i){const o=i?i-1:Number.POSITIVE_INFINITY;let c=0;return function(d){return Ve(d)?(e.enter(a),u(d)):n(d)};function u(d){return Ve(d)&&c++<o?(e.consume(d),u):(e.exit(a),n(d))}}const bh={tokenize:function(e){const n=e.attempt(this.parser.constructs.contentInitial,function(c){return c===null?void e.consume(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),ot(e,n,"linePrefix"))},function(c){return e.enter("paragraph"),i(c)});let a;return n;function i(c){const u=e.enter("chunkText",{contentType:"text",previous:a});return a&&(a.next=u),a=u,o(c)}function o(c){return c===null?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(c)):Be(c)?(e.consume(c),e.exit("chunkText"),i):(e.consume(c),o)}}},wh={tokenize:function(e){const n=this,a=[];let i,o,c,u=0;return d;function d(B){if(u<a.length){const U=a[u];return n.containerState=U[1],e.attempt(U[0].continuation,A,p)(B)}return p(B)}function A(B){if(u++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&_();const U=n.events.length;let j,z=U;for(;z--;)if(n.events[z][0]==="exit"&&n.events[z][1].type==="chunkFlow"){j=n.events[z][1].end;break}I(u);let W=U;for(;W<n.events.length;)n.events[W][1].end={...j},W++;return ur(n.events,z+1,0,n.events.slice(U)),n.events.length=W,p(B)}return d(B)}function p(B){if(u===a.length){if(!i)return y(B);if(i.currentConstruct&&i.currentConstruct.concrete)return D(B);n.interrupt=!(!i.currentConstruct||i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(rd,h,m)(B)}function h(B){return i&&_(),I(u),y(B)}function m(B){return n.parser.lazy[n.now().line]=u!==a.length,c=n.now().offset,D(B)}function y(B){return n.containerState={},e.attempt(rd,C,D)(B)}function C(B){return u++,a.push([n.currentConstruct,n.containerState]),y(B)}function D(B){return B===null?(i&&_(),I(0),void e.consume(B)):(i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),Q(B))}function Q(B){return B===null?(E(e.exit("chunkFlow"),!0),I(0),void e.consume(B)):Be(B)?(e.consume(B),E(e.exit("chunkFlow")),u=0,n.interrupt=void 0,d):(e.consume(B),Q)}function E(B,U){const j=n.sliceStream(B);if(U&&j.push(null),B.previous=o,o&&(o.next=B),o=B,i.defineSkip(B.start),i.write(j),n.parser.lazy[B.start.line]){let z=i.events.length;for(;z--;)if(i.events[z][1].start.offset<c&&(!i.events[z][1].end||i.events[z][1].end.offset>c))return;const W=n.events.length;let te,J,Y=W;for(;Y--;)if(n.events[Y][0]==="exit"&&n.events[Y][1].type==="chunkFlow"){if(te){J=n.events[Y][1].end;break}te=!0}for(I(u),z=W;z<n.events.length;)n.events[z][1].end={...J},z++;ur(n.events,Y+1,0,n.events.slice(W)),n.events.length=z}}function I(B){let U=a.length;for(;U-- >B;){const j=a[U];n.containerState=j[1],j[0].exit.call(n,e)}a.length=B}function _(){i.write([null]),o=void 0,i=void 0,n.containerState._closeFlow=void 0}}},rd={tokenize:function(e,n,a){return ot(e,e.attempt(this.parser.constructs.document,n,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function od(e){return e===null||an(e)||yh(e)?1:vh(e)?2:void 0}function mc(e,n,a){const i=[];let o=-1;for(;++o<e.length;){const c=e[o].resolveAll;c&&!i.includes(c)&&(n=c(n,a),i.push(c))}return n}const vc={name:"attention",resolveAll:function(e,n){let a,i,o,c,u,d,A,p,h=-1;for(;++h<e.length;)if(e[h][0]==="enter"&&e[h][1].type==="attentionSequence"&&e[h][1]._close){for(a=h;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&n.sliceSerialize(e[a][1]).charCodeAt(0)===n.sliceSerialize(e[h][1]).charCodeAt(0)){if((e[a][1]._close||e[h][1]._open)&&(e[h][1].end.offset-e[h][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[h][1].end.offset-e[h][1].start.offset)%3))continue;d=e[a][1].end.offset-e[a][1].start.offset>1&&e[h][1].end.offset-e[h][1].start.offset>1?2:1;const m={...e[a][1].end},y={...e[h][1].start};ad(m,-d),ad(y,d),c={type:d>1?"strongSequence":"emphasisSequence",start:m,end:{...e[a][1].end}},u={type:d>1?"strongSequence":"emphasisSequence",start:{...e[h][1].start},end:y},o={type:d>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[h][1].start}},i={type:d>1?"strong":"emphasis",start:{...c.start},end:{...u.end}},e[a][1].end={...c.start},e[h][1].start={...u.end},A=[],e[a][1].end.offset-e[a][1].start.offset&&(A=Rn(A,[["enter",e[a][1],n],["exit",e[a][1],n]])),A=Rn(A,[["enter",i,n],["enter",c,n],["exit",c,n],["enter",o,n]]),A=Rn(A,mc(n.parser.constructs.insideSpan.null,e.slice(a+1,h),n)),A=Rn(A,[["exit",o,n],["enter",u,n],["exit",u,n],["exit",i,n]]),e[h][1].end.offset-e[h][1].start.offset?(p=2,A=Rn(A,[["enter",e[h][1],n],["exit",e[h][1],n]])):p=0,ur(e,a-1,h-a+3,A),h=a+A.length-p-2;break}}for(h=-1;++h<e.length;)e[h][1].type==="attentionSequence"&&(e[h][1].type="data");return e},tokenize:function(e,n){const a=this.parser.constructs.attentionMarkers.null,i=this.previous,o=od(i);let c;return function(d){return c=d,e.enter("attentionSequence"),u(d)};function u(d){if(d===c)return e.consume(d),u;const A=e.exit("attentionSequence"),p=od(d),h=!p||p===2&&o||a.includes(d),m=!o||o===2&&p||a.includes(i);return A._open=!!(c===42?h:h&&(o||!m)),A._close=!!(c===42?m:m&&(p||!h)),n(d)}}};function ad(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const xh={name:"autolink",tokenize:function(e,n,a){let i=0;return function(y){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(y){return Ar(y)?(e.consume(y),c):y===64?a(y):A(y)}function c(y){return y===43||y===45||y===46||Sn(y)?(i=1,u(y)):A(y)}function u(y){return y===58?(e.consume(y),i=0,d):(y===43||y===45||y===46||Sn(y))&&i++<32?(e.consume(y),u):(i=0,A(y))}function d(y){return y===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),n):y===null||y===32||y===60||hc(y)?a(y):(e.consume(y),d)}function A(y){return y===64?(e.consume(y),p):hh(y)?(e.consume(y),A):a(y)}function p(y){return Sn(y)?h(y):a(y)}function h(y){return y===46?(e.consume(y),i=0,p):y===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),n):m(y)}function m(y){if((y===45||Sn(y))&&i++<63){const C=y===45?m:h;return e.consume(y),C}return a(y)}}},Ns={partial:!0,tokenize:function(e,n,a){return function(o){return Ve(o)?ot(e,i,"linePrefix")(o):i(o)};function i(o){return o===null||Be(o)?n(o):a(o)}}},id={continuation:{tokenize:function(e,n,a){const i=this;return function(c){return Ve(c)?ot(e,o,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):o(c)};function o(c){return e.attempt(id,n,a)(c)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,n,a){const i=this;return function(c){if(c===62){const u=i.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),o}return a(c)};function o(c){return Ve(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(c))}}},sd={name:"characterEscape",tokenize:function(e,n,a){return function(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i};function i(o){return mh(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):a(o)}}},ld={name:"characterReference",tokenize:function(e,n,a){const i=this;let o,c,u=0;return function(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),d};function d(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),A):(e.enter("characterReferenceValue"),o=31,c=Sn,p(h))}function A(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,c=gh,p):(e.enter("characterReferenceValue"),o=7,c=gc,p(h))}function p(h){if(h===59&&u){const m=e.exit("characterReferenceValue");return c!==Sn||pc(i.sliceSerialize(m))?(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),n):a(h)}return c(h)&&u++<o?(e.consume(h),p):a(h)}}},cd={partial:!0,tokenize:function(e,n,a){const i=this;return function(c){return c===null?a(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o)};function o(c){return i.parser.lazy[i.now().line]?a(c):n(c)}}},ud={concrete:!0,name:"codeFenced",tokenize:function(e,n,a){const i=this,o={partial:!0,tokenize:function(B,U,j){let z=0;return W;function W(Z){return B.enter("lineEnding"),B.consume(Z),B.exit("lineEnding"),te}function te(Z){return B.enter("codeFencedFence"),Ve(Z)?ot(B,J,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Z):J(Z)}function J(Z){return Z===c?(B.enter("codeFencedFenceSequence"),Y(Z)):j(Z)}function Y(Z){return Z===c?(z++,B.consume(Z),Y):z>=d?(B.exit("codeFencedFenceSequence"),Ve(Z)?ot(B,ee,"whitespace")(Z):ee(Z)):j(Z)}function ee(Z){return Z===null||Be(Z)?(B.exit("codeFencedFence"),U(Z)):j(Z)}}};let c,u=0,d=0;return function(B){return function(U){const j=i.events[i.events.length-1];return u=j&&j[1].type==="linePrefix"?j[2].sliceSerialize(j[1],!0).length:0,c=U,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),A(U)}(B)};function A(B){return B===c?(d++,e.consume(B),A):d<3?a(B):(e.exit("codeFencedFenceSequence"),Ve(B)?ot(e,p,"whitespace")(B):p(B))}function p(B){return B===null||Be(B)?(e.exit("codeFencedFence"),i.interrupt?n(B):e.check(cd,C,_)(B)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(B))}function h(B){return B===null||Be(B)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(B)):Ve(B)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ot(e,m,"whitespace")(B)):B===96&&B===c?a(B):(e.consume(B),h)}function m(B){return B===null||Be(B)?p(B):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(B))}function y(B){return B===null||Be(B)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(B)):B===96&&B===c?a(B):(e.consume(B),y)}function C(B){return e.attempt(o,_,D)(B)}function D(B){return e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),Q}function Q(B){return u>0&&Ve(B)?ot(e,E,"linePrefix",u+1)(B):E(B)}function E(B){return B===null||Be(B)?e.check(cd,C,_)(B):(e.enter("codeFlowValue"),I(B))}function I(B){return B===null||Be(B)?(e.exit("codeFlowValue"),E(B)):(e.consume(B),I)}function _(B){return e.exit("codeFenced"),n(B)}}},yc={name:"codeIndented",tokenize:function(e,n,a){const i=this;return function(A){return e.enter("codeIndented"),ot(e,o,"linePrefix",5)(A)};function o(A){const p=i.events[i.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?c(A):a(A)}function c(A){return A===null?d(A):Be(A)?e.attempt(Sh,c,d)(A):(e.enter("codeFlowValue"),u(A))}function u(A){return A===null||Be(A)?(e.exit("codeFlowValue"),c(A)):(e.consume(A),u)}function d(A){return e.exit("codeIndented"),n(A)}}},Sh={partial:!0,tokenize:function(e,n,a){const i=this;return o;function o(u){return i.parser.lazy[i.now().line]?a(u):Be(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o):ot(e,c,"linePrefix",5)(u)}function c(u){const d=i.events[i.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?n(u):Be(u)?o(u):a(u)}}},Eh={name:"codeText",previous:function(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"},resolve:function(e){let n,a,i=e.length-4,o=3;if(!(e[o][1].type!=="lineEnding"&&e[o][1].type!=="space"||e[i][1].type!=="lineEnding"&&e[i][1].type!=="space")){for(n=o;++n<i;)if(e[n][1].type==="codeTextData"){e[o][1].type="codeTextPadding",e[i][1].type="codeTextPadding",o+=2,i-=2;break}}for(n=o-1,i++;++n<=i;)a===void 0?n!==i&&e[n][1].type!=="lineEnding"&&(a=n):(n===i||e[n][1].type==="lineEnding")&&(e[a][1].type="codeTextData",n!==a+2&&(e[a][1].end=e[n-1][1].end,e.splice(a+2,n-a-2),i-=n-a-2,n=a+2),a=void 0);return e},tokenize:function(e,n,a){let i,o,c=0;return function(h){return e.enter("codeText"),e.enter("codeTextSequence"),u(h)};function u(h){return h===96?(e.consume(h),c++,u):(e.exit("codeTextSequence"),d(h))}function d(h){return h===null?a(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),d):h===96?(o=e.enter("codeTextSequence"),i=0,p(h)):Be(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),d):(e.enter("codeTextData"),A(h))}function A(h){return h===null||h===32||h===96||Be(h)?(e.exit("codeTextData"),d(h)):(e.consume(h),A)}function p(h){return h===96?(e.consume(h),i++,p):i===c?(e.exit("codeTextSequence"),e.exit("codeText"),n(h)):(o.type="codeTextData",A(h))}}};class kh{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,a){const i=a??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(n,i):n>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(n,a,i){const o=a||0;this.setCursor(Math.trunc(n));const c=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return i&&Bi(this.left,i),c.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Bi(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Bi(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const a=this.left.splice(n,Number.POSITIVE_INFINITY);Bi(this.right,a.reverse())}else{const a=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Bi(this.left,a.reverse())}}}function Bi(e,n){let a=0;if(n.length<1e4)e.push(...n);else for(;a<n.length;)e.push(...n.slice(a,a+1e4)),a+=1e4}function Ad(e){const n={};let a,i,o,c,u,d,A,p=-1;const h=new kh(e);for(;++p<h.length;){for(;p in n;)p=n[p];if(a=h.get(p),p&&a[1].type==="chunkFlow"&&h.get(p-1)[1].type==="listItemPrefix"&&(d=a[1]._tokenizer.events,o=0,o<d.length&&d[o][1].type==="lineEndingBlank"&&(o+=2),o<d.length&&d[o][1].type==="content"))for(;++o<d.length&&d[o][1].type!=="content";)d[o][1].type==="chunkText"&&(d[o][1]._isInFirstContentOfListItem=!0,o++);if(a[0]==="enter")a[1].contentType&&(Object.assign(n,Ch(h,p)),p=n[p],A=!0);else if(a[1]._container){for(o=p,i=void 0;o--;)if(c=h.get(o),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(i&&(h.get(i)[1].type="lineEndingBlank"),c[1].type="lineEnding",i=o);else if(c[1].type!=="linePrefix")break;i&&(a[1].end={...h.get(i)[1].start},u=h.slice(i,p),u.unshift(a),h.splice(i,p-i+1,u))}}return ur(e,0,Number.POSITIVE_INFINITY,h.slice(0)),!A}function Ch(e,n){const a=e.get(n)[1],i=e.get(n)[2];let o=n-1;const c=[],u=a._tokenizer||i.parser[a.contentType](a.start),d=u.events,A=[],p={};let h,m,y=-1,C=a,D=0,Q=0;const E=[Q];for(;C;){for(;e.get(++o)[1]!==C;);c.push(o),C._tokenizer||(h=i.sliceStream(C),C.next||h.push(null),m&&u.defineSkip(C.start),C._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(h),C._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),m=C,C=C.next}for(C=a;++y<d.length;)d[y][0]==="exit"&&d[y-1][0]==="enter"&&d[y][1].type===d[y-1][1].type&&d[y][1].start.line!==d[y][1].end.line&&(Q=y+1,E.push(Q),C._tokenizer=void 0,C.previous=void 0,C=C.next);for(u.events=[],C?(C._tokenizer=void 0,C.previous=void 0):E.pop(),y=E.length;y--;){const I=d.slice(E[y],E[y+1]),_=c.pop();A.push([_,_+I.length-1]),e.splice(_,2,I)}for(A.reverse(),y=-1;++y<A.length;)p[D+A[y][0]]=D+A[y][1],D+=A[y][1]-A[y][0]-1;return p}const Ph={resolve:function(e){return Ad(e),e},tokenize:function(e,n){let a;return function(u){return e.enter("content"),a=e.enter("chunkContent",{contentType:"content"}),i(u)};function i(u){return u===null?o(u):Be(u)?e.check(Th,c,o)(u):(e.consume(u),i)}function o(u){return e.exit("chunkContent"),e.exit("content"),n(u)}function c(u){return e.consume(u),e.exit("chunkContent"),a.next=e.enter("chunkContent",{contentType:"content",previous:a}),a=a.next,i}}},Th={partial:!0,tokenize:function(e,n,a){const i=this;return function(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),ot(e,o,"linePrefix")};function o(c){if(c===null||Be(c))return a(c);const u=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?n(c):e.interrupt(i.parser.constructs.flow,a,n)(c)}}};function dd(e,n,a,i,o,c,u,d,A){const p=A||Number.POSITIVE_INFINITY;let h=0;return function(E){return E===60?(e.enter(i),e.enter(o),e.enter(c),e.consume(E),e.exit(c),m):E===null||E===32||E===41||hc(E)?a(E):(e.enter(i),e.enter(u),e.enter(d),e.enter("chunkString",{contentType:"string"}),D(E))};function m(E){return E===62?(e.enter(c),e.consume(E),e.exit(c),e.exit(o),e.exit(i),n):(e.enter(d),e.enter("chunkString",{contentType:"string"}),y(E))}function y(E){return E===62?(e.exit("chunkString"),e.exit(d),m(E)):E===null||E===60||Be(E)?a(E):(e.consume(E),E===92?C:y)}function C(E){return E===60||E===62||E===92?(e.consume(E),y):y(E)}function D(E){return h||E!==null&&E!==41&&!an(E)?h<p&&E===40?(e.consume(E),h++,D):E===41?(e.consume(E),h--,D):E===null||E===32||E===40||hc(E)?a(E):(e.consume(E),E===92?Q:D):(e.exit("chunkString"),e.exit(d),e.exit(u),e.exit(i),n(E))}function Q(E){return E===40||E===41||E===92?(e.consume(E),D):D(E)}}function fd(e,n,a,i,o,c){const u=this;let d,A=0;return function(y){return e.enter(i),e.enter(o),e.consume(y),e.exit(o),e.enter(c),p};function p(y){return A>999||y===null||y===91||y===93&&!d||y===94&&!A&&"_hiddenFootnoteSupport"in u.parser.constructs?a(y):y===93?(e.exit(c),e.enter(o),e.consume(y),e.exit(o),e.exit(i),n):Be(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===null||y===91||y===93||Be(y)||A++>999?(e.exit("chunkString"),p(y)):(e.consume(y),d||(d=!Ve(y)),y===92?m:h)}function m(y){return y===91||y===92||y===93?(e.consume(y),A++,h):h(y)}}function pd(e,n,a,i,o,c){let u;return function(m){return m===34||m===39||m===40?(e.enter(i),e.enter(o),e.consume(m),e.exit(o),u=m===40?41:m,d):a(m)};function d(m){return m===u?(e.enter(o),e.consume(m),e.exit(o),e.exit(i),n):(e.enter(c),A(m))}function A(m){return m===u?(e.exit(c),d(u)):m===null?a(m):Be(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),ot(e,A,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(m))}function p(m){return m===u||m===null||Be(m)?(e.exit("chunkString"),A(m)):(e.consume(m),m===92?h:p)}function h(m){return m===u||m===92?(e.consume(m),p):p(m)}}function Mi(e,n){let a;return function i(o){return Be(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a=!0,i):Ve(o)?ot(e,i,a?"linePrefix":"lineSuffix")(o):n(o)}}const Dh={name:"definition",tokenize:function(e,n,a){const i=this;let o;return function(m){return e.enter("definition"),function(y){return fd.call(i,e,c,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}(m)};function c(m){return o=Ea(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),u):a(m)}function u(m){return an(m)?Mi(e,d)(m):d(m)}function d(m){return dd(e,A,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function A(m){return e.attempt(Ih,p,p)(m)}function p(m){return Ve(m)?ot(e,h,"whitespace")(m):h(m)}function h(m){return m===null||Be(m)?(e.exit("definition"),i.parser.defined.push(o),n(m)):a(m)}}},Ih={partial:!0,tokenize:function(e,n,a){return function(u){return an(u)?Mi(e,i)(u):a(u)};function i(u){return pd(e,o,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function o(u){return Ve(u)?ot(e,c,"whitespace")(u):c(u)}function c(u){return u===null||Be(u)?n(u):a(u)}}},Bh={name:"hardBreakEscape",tokenize:function(e,n,a){return function(o){return e.enter("hardBreakEscape"),e.consume(o),i};function i(o){return Be(o)?(e.exit("hardBreakEscape"),n(o)):a(o)}}},Mh={name:"headingAtx",resolve:function(e,n){let a,i,o=e.length-2,c=3;return e[c][1].type==="whitespace"&&(c+=2),o-2>c&&e[o][1].type==="whitespace"&&(o-=2),e[o][1].type==="atxHeadingSequence"&&(c===o-1||o-4>c&&e[o-2][1].type==="whitespace")&&(o-=c+1===o?2:4),o>c&&(a={type:"atxHeadingText",start:e[c][1].start,end:e[o][1].end},i={type:"chunkText",start:e[c][1].start,end:e[o][1].end,contentType:"text"},ur(e,c,o-c+1,[["enter",a,n],["enter",i,n],["exit",i,n],["exit",a,n]])),e},tokenize:function(e,n,a){let i=0;return function(A){return e.enter("atxHeading"),function(p){return e.enter("atxHeadingSequence"),o(p)}(A)};function o(A){return A===35&&i++<6?(e.consume(A),o):A===null||an(A)?(e.exit("atxHeadingSequence"),c(A)):a(A)}function c(A){return A===35?(e.enter("atxHeadingSequence"),u(A)):A===null||Be(A)?(e.exit("atxHeading"),n(A)):Ve(A)?ot(e,c,"whitespace")(A):(e.enter("atxHeadingText"),d(A))}function u(A){return A===35?(e.consume(A),u):(e.exit("atxHeadingSequence"),c(A))}function d(A){return A===null||A===35||an(A)?(e.exit("atxHeadingText"),c(A)):(e.consume(A),d)}}},Rh=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],hd=["pre","script","style","textarea"],Oh={concrete:!0,name:"htmlFlow",resolveTo:function(e){let n=e.length;for(;n--&&(e[n][0]!=="enter"||e[n][1].type!=="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e},tokenize:function(e,n,a){const i=this;let o,c,u,d,A;return function(O){return function(de){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(de),p}(O)};function p(O){return O===33?(e.consume(O),h):O===47?(e.consume(O),c=!0,C):O===63?(e.consume(O),o=3,i.interrupt?n:me):Ar(O)?(e.consume(O),u=String.fromCharCode(O),D):a(O)}function h(O){return O===45?(e.consume(O),o=2,m):O===91?(e.consume(O),o=5,d=0,y):Ar(O)?(e.consume(O),o=4,i.interrupt?n:me):a(O)}function m(O){return O===45?(e.consume(O),i.interrupt?n:me):a(O)}function y(O){return O==="CDATA[".charCodeAt(d++)?(e.consume(O),d===6?i.interrupt?n:Y:y):a(O)}function C(O){return Ar(O)?(e.consume(O),u=String.fromCharCode(O),D):a(O)}function D(O){if(O===null||O===47||O===62||an(O)){const de=O===47,Ee=u.toLowerCase();return de||c||!hd.includes(Ee)?Rh.includes(u.toLowerCase())?(o=6,de?(e.consume(O),Q):i.interrupt?n(O):Y(O)):(o=7,i.interrupt&&!i.parser.lazy[i.now().line]?a(O):c?E(O):I(O)):(o=1,i.interrupt?n(O):Y(O))}return O===45||Sn(O)?(e.consume(O),u+=String.fromCharCode(O),D):a(O)}function Q(O){return O===62?(e.consume(O),i.interrupt?n:Y):a(O)}function E(O){return Ve(O)?(e.consume(O),E):te(O)}function I(O){return O===47?(e.consume(O),te):O===58||O===95||Ar(O)?(e.consume(O),_):Ve(O)?(e.consume(O),I):te(O)}function _(O){return O===45||O===46||O===58||O===95||Sn(O)?(e.consume(O),_):B(O)}function B(O){return O===61?(e.consume(O),U):Ve(O)?(e.consume(O),B):I(O)}function U(O){return O===null||O===60||O===61||O===62||O===96?a(O):O===34||O===39?(e.consume(O),A=O,j):Ve(O)?(e.consume(O),U):z(O)}function j(O){return O===A?(e.consume(O),A=null,W):O===null||Be(O)?a(O):(e.consume(O),j)}function z(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||an(O)?B(O):(e.consume(O),z)}function W(O){return O===47||O===62||Ve(O)?I(O):a(O)}function te(O){return O===62?(e.consume(O),J):a(O)}function J(O){return O===null||Be(O)?Y(O):Ve(O)?(e.consume(O),J):a(O)}function Y(O){return O===45&&o===2?(e.consume(O),ue):O===60&&o===1?(e.consume(O),se):O===62&&o===4?(e.consume(O),M):O===63&&o===3?(e.consume(O),me):O===93&&o===5?(e.consume(O),ge):!Be(O)||o!==6&&o!==7?O===null||Be(O)?(e.exit("htmlFlowData"),ee(O)):(e.consume(O),Y):(e.exit("htmlFlowData"),e.check(Fh,fe,ee)(O))}function ee(O){return e.check(Lh,Z,fe)(O)}function Z(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),ie}function ie(O){return O===null||Be(O)?ee(O):(e.enter("htmlFlowData"),Y(O))}function ue(O){return O===45?(e.consume(O),me):Y(O)}function se(O){return O===47?(e.consume(O),u="",xe):Y(O)}function xe(O){if(O===62){const de=u.toLowerCase();return hd.includes(de)?(e.consume(O),M):Y(O)}return Ar(O)&&u.length<8?(e.consume(O),u+=String.fromCharCode(O),xe):Y(O)}function ge(O){return O===93?(e.consume(O),me):Y(O)}function me(O){return O===62?(e.consume(O),M):O===45&&o===2?(e.consume(O),me):Y(O)}function M(O){return O===null||Be(O)?(e.exit("htmlFlowData"),fe(O)):(e.consume(O),M)}function fe(O){return e.exit("htmlFlow"),n(O)}}},Fh={partial:!0,tokenize:function(e,n,a){return function(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ns,n,a)}}},Lh={partial:!0,tokenize:function(e,n,a){const i=this;return function(c){return Be(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o):a(c)};function o(c){return i.parser.lazy[i.now().line]?a(c):n(c)}}},Qh={name:"htmlText",tokenize:function(e,n,a){const i=this;let o,c,u;return function(M){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(M),d};function d(M){return M===33?(e.consume(M),A):M===47?(e.consume(M),U):M===63?(e.consume(M),_):Ar(M)?(e.consume(M),W):a(M)}function A(M){return M===45?(e.consume(M),p):M===91?(e.consume(M),c=0,C):Ar(M)?(e.consume(M),I):a(M)}function p(M){return M===45?(e.consume(M),y):a(M)}function h(M){return M===null?a(M):M===45?(e.consume(M),m):Be(M)?(u=h,xe(M)):(e.consume(M),h)}function m(M){return M===45?(e.consume(M),y):h(M)}function y(M){return M===62?se(M):M===45?m(M):h(M)}function C(M){return M==="CDATA[".charCodeAt(c++)?(e.consume(M),c===6?D:C):a(M)}function D(M){return M===null?a(M):M===93?(e.consume(M),Q):Be(M)?(u=D,xe(M)):(e.consume(M),D)}function Q(M){return M===93?(e.consume(M),E):D(M)}function E(M){return M===62?se(M):M===93?(e.consume(M),E):D(M)}function I(M){return M===null||M===62?se(M):Be(M)?(u=I,xe(M)):(e.consume(M),I)}function _(M){return M===null?a(M):M===63?(e.consume(M),B):Be(M)?(u=_,xe(M)):(e.consume(M),_)}function B(M){return M===62?se(M):_(M)}function U(M){return Ar(M)?(e.consume(M),j):a(M)}function j(M){return M===45||Sn(M)?(e.consume(M),j):z(M)}function z(M){return Be(M)?(u=z,xe(M)):Ve(M)?(e.consume(M),z):se(M)}function W(M){return M===45||Sn(M)?(e.consume(M),W):M===47||M===62||an(M)?te(M):a(M)}function te(M){return M===47?(e.consume(M),se):M===58||M===95||Ar(M)?(e.consume(M),J):Be(M)?(u=te,xe(M)):Ve(M)?(e.consume(M),te):se(M)}function J(M){return M===45||M===46||M===58||M===95||Sn(M)?(e.consume(M),J):Y(M)}function Y(M){return M===61?(e.consume(M),ee):Be(M)?(u=Y,xe(M)):Ve(M)?(e.consume(M),Y):te(M)}function ee(M){return M===null||M===60||M===61||M===62||M===96?a(M):M===34||M===39?(e.consume(M),o=M,Z):Be(M)?(u=ee,xe(M)):Ve(M)?(e.consume(M),ee):(e.consume(M),ie)}function Z(M){return M===o?(e.consume(M),o=void 0,ue):M===null?a(M):Be(M)?(u=Z,xe(M)):(e.consume(M),Z)}function ie(M){return M===null||M===34||M===39||M===60||M===61||M===96?a(M):M===47||M===62||an(M)?te(M):(e.consume(M),ie)}function ue(M){return M===47||M===62||an(M)?te(M):a(M)}function se(M){return M===62?(e.consume(M),e.exit("htmlTextData"),e.exit("htmlText"),n):a(M)}function xe(M){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),ge}function ge(M){return Ve(M)?ot(e,me,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):me(M)}function me(M){return e.enter("htmlTextData"),u(M)}}},bc={name:"labelEnd",resolveAll:function(e){let n=-1;const a=[];for(;++n<e.length;){const i=e[n][1];if(a.push(e[n]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const o=i.type==="labelImage"?4:2;i.type="data",n+=o}}return e.length!==a.length&&ur(e,0,e.length,a),e},resolveTo:function(e,n){let a,i,o,c,u=e.length,d=0;for(;u--;)if(a=e[u][1],i){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[u][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(o){if(e[u][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(i=u,a.type!=="labelLink")){d=2;break}}else a.type==="labelEnd"&&(o=u);const A={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},p={type:"label",start:{...e[i][1].start},end:{...e[o][1].end}},h={type:"labelText",start:{...e[i+d+2][1].end},end:{...e[o-2][1].start}};return c=[["enter",A,n],["enter",p,n]],c=Rn(c,e.slice(i+1,i+d+3)),c=Rn(c,[["enter",h,n]]),c=Rn(c,mc(n.parser.constructs.insideSpan.null,e.slice(i+d+4,o-3),n)),c=Rn(c,[["exit",h,n],e[o-2],e[o-1],["exit",p,n]]),c=Rn(c,e.slice(o+1)),c=Rn(c,[["exit",A,n]]),ur(e,i,e.length,c),e},tokenize:function(e,n,a){const i=this;let o,c,u=i.events.length;for(;u--;)if((i.events[u][1].type==="labelImage"||i.events[u][1].type==="labelLink")&&!i.events[u][1]._balanced){o=i.events[u][1];break}return function(m){return o?o._inactive?h(m):(c=i.parser.defined.includes(Ea(i.sliceSerialize({start:o.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),d):a(m)};function d(m){return m===40?e.attempt(_h,p,c?p:h)(m):m===91?e.attempt(Hh,p,c?A:h)(m):c?p(m):h(m)}function A(m){return e.attempt(Nh,p,h)(m)}function p(m){return n(m)}function h(m){return o._balanced=!0,a(m)}}},_h={tokenize:function(e,n,a){return function(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),i};function i(h){return an(h)?Mi(e,o)(h):o(h)}function o(h){return h===41?p(h):dd(e,c,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function c(h){return an(h)?Mi(e,d)(h):p(h)}function u(h){return a(h)}function d(h){return h===34||h===39||h===40?pd(e,A,a,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):p(h)}function A(h){return an(h)?Mi(e,p)(h):p(h)}function p(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),n):a(h)}}},Hh={tokenize:function(e,n,a){const i=this;return function(u){return fd.call(i,e,o,c,"reference","referenceMarker","referenceString")(u)};function o(u){return i.parser.defined.includes(Ea(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?n(u):a(u)}function c(u){return a(u)}}},Nh={tokenize:function(e,n,a){return function(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i};function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),n):a(o)}}},Uh={name:"labelStartImage",resolveAll:bc.resolveAll,tokenize:function(e,n,a){const i=this;return function(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),o};function o(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),c):a(u)}function c(u){return u===94&&"_hiddenFootnoteSupport"in i.parser.constructs?a(u):n(u)}}},zh={name:"labelStartLink",resolveAll:bc.resolveAll,tokenize:function(e,n,a){const i=this;return function(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),o};function o(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?a(c):n(c)}}},wc={name:"lineEnding",tokenize:function(e,n){return function(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),ot(e,n,"linePrefix")}}},Us={name:"thematicBreak",tokenize:function(e,n,a){let i,o=0;return function(d){return e.enter("thematicBreak"),function(A){return i=A,c(A)}(d)};function c(d){return d===i?(e.enter("thematicBreakSequence"),u(d)):o>=3&&(d===null||Be(d))?(e.exit("thematicBreak"),n(d)):a(d)}function u(d){return d===i?(e.consume(d),o++,u):(e.exit("thematicBreakSequence"),Ve(d)?ot(e,c,"whitespace")(d):c(d))}}},sn={continuation:{tokenize:function(e,n,a){const i=this;return i.containerState._closeFlow=void 0,e.check(Ns,function(c){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,ot(e,n,"listItemIndent",i.containerState.size+1)(c)},function(c){return i.containerState.furtherBlankLines||!Ve(c)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,o(c)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(Wh,n,o)(c))});function o(c){return i.containerState._closeFlow=!0,i.interrupt=void 0,ot(e,e.attempt(sn,n,a),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,n,a){const i=this,o=i.events[i.events.length-1];let c=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,u=0;return function(y){const C=i.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(C==="listUnordered"?!i.containerState.marker||y===i.containerState.marker:gc(y)){if(i.containerState.type||(i.containerState.type=C,e.enter(C,{_container:!0})),C==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(Us,a,A)(y):A(y);if(!i.interrupt||y===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(y)}return a(y)};function d(y){return gc(y)&&++u<10?(e.consume(y),d):(!i.interrupt||u<2)&&(i.containerState.marker?y===i.containerState.marker:y===41||y===46)?(e.exit("listItemValue"),A(y)):a(y)}function A(y){return e.enter("listItemMarker"),e.consume(y),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||y,e.check(Ns,i.interrupt?a:p,e.attempt(jh,m,h))}function p(y){return i.containerState.initialBlankLine=!0,c++,m(y)}function h(y){return Ve(y)?(e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),m):a(y)}function m(y){return i.containerState.size=c+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(y)}}},jh={partial:!0,tokenize:function(e,n,a){const i=this;return ot(e,function(o){const c=i.events[i.events.length-1];return!Ve(o)&&c&&c[1].type==="listItemPrefixWhitespace"?n(o):a(o)},"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},Wh={partial:!0,tokenize:function(e,n,a){const i=this;return ot(e,function(o){const c=i.events[i.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===i.containerState.size?n(o):a(o)},"listItemIndent",i.containerState.size+1)}},gd={name:"setextUnderline",resolveTo:function(e,n){let a,i,o,c=e.length;for(;c--;)if(e[c][0]==="enter"){if(e[c][1].type==="content"){a=c;break}e[c][1].type==="paragraph"&&(i=c)}else e[c][1].type==="content"&&e.splice(c,1),!o&&e[c][1].type==="definition"&&(o=c);const u={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",u,n]),e.splice(o+1,0,["exit",e[a][1],n]),e[a][1].end={...e[o][1].end}):e[a][1]=u,e.push(["exit",u,n]),e},tokenize:function(e,n,a){const i=this;let o;return function(d){let A,p=i.events.length;for(;p--;)if(i.events[p][1].type!=="lineEnding"&&i.events[p][1].type!=="linePrefix"&&i.events[p][1].type!=="content"){A=i.events[p][1].type==="paragraph";break}return i.parser.lazy[i.now().line]||!i.interrupt&&!A?a(d):(e.enter("setextHeadingLine"),o=d,function(h){return e.enter("setextHeadingLineSequence"),c(h)}(d))};function c(d){return d===o?(e.consume(d),c):(e.exit("setextHeadingLineSequence"),Ve(d)?ot(e,u,"lineSuffix")(d):u(d))}function u(d){return d===null||Be(d)?(e.exit("setextHeadingLine"),n(d)):a(d)}}},Yh={tokenize:function(e){const n=this,a=e.attempt(Ns,function(o){return o===null?void e.consume(o):(e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),n.currentConstruct=void 0,a)},e.attempt(this.parser.constructs.flowInitial,i,ot(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Ph,i)),"linePrefix")));return a;function i(o){if(o!==null)return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n.currentConstruct=void 0,a;e.consume(o)}}},Gh={resolveAll:vd()},Vh=md("string"),Xh=md("text");function md(e){return{resolveAll:vd(e==="text"?Jh:void 0),tokenize:function(n){const a=this,i=this.parser.constructs[e],o=n.attempt(i,c,u);return c;function c(p){return A(p)?o(p):u(p)}function u(p){if(p!==null)return n.enter("data"),n.consume(p),d;n.consume(p)}function d(p){return A(p)?(n.exit("data"),o(p)):(n.consume(p),d)}function A(p){if(p===null)return!0;const h=i[p];let m=-1;if(h)for(;++m<h.length;){const y=h[m];if(!y.previous||y.previous.call(a,a.previous))return!0}return!1}}}}function vd(e){return function(n,a){let i,o=-1;for(;++o<=n.length;)i===void 0?n[o]&&n[o][1].type==="data"&&(i=o,o++):(!n[o]||n[o][1].type!=="data")&&(o!==i+2&&(n[i][1].end=n[o-1][1].end,n.splice(i+2,o-i-2),o=i+2),i=void 0);return e?e(n,a):n}}function Jh(e,n){let a=0;for(;++a<=e.length;)if((a===e.length||e[a][1].type==="lineEnding")&&e[a-1][1].type==="data"){const i=e[a-1][1],o=n.sliceStream(i);let c,u=o.length,d=-1,A=0;for(;u--;){const p=o[u];if(typeof p=="string"){for(d=p.length;p.charCodeAt(d-1)===32;)A++,d--;if(d)break;d=-1}else if(p===-2)c=!0,A++;else if(p!==-1){u++;break}}if(A){const p={type:a===e.length||c||A<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?d:i.start._bufferIndex+d,_index:i.start._index+u,line:i.end.line,column:i.end.column-A,offset:i.end.offset-A},end:{...i.end}};i.end={...p.start},i.start.offset===i.end.offset?Object.assign(i,p):(e.splice(a,0,["enter",p,n],["exit",p,n]),a+=2)}a++}return e}const Kh={42:sn,43:sn,45:sn,48:sn,49:sn,50:sn,51:sn,52:sn,53:sn,54:sn,55:sn,56:sn,57:sn,62:id},$h={91:Dh},Zh={[-2]:yc,[-1]:yc,32:yc},qh={35:Mh,42:Us,45:[gd,Us],60:Oh,61:gd,95:Us,96:ud,126:ud},eg={38:ld,92:sd},tg={[-5]:wc,[-4]:wc,[-3]:wc,33:Uh,38:ld,42:vc,60:[xh,Qh],91:zh,92:[Bh,sd],93:bc,95:vc,96:Eh},ng={null:[vc,Gh]},rg=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:$h,disable:{null:[]},document:Kh,flow:qh,flowInitial:Zh,insideSpan:ng,string:eg,text:tg},Symbol.toStringTag,{value:"Module"}));function og(e,n,a){let i={_bufferIndex:-1,_index:0,line:a&&a.line||1,column:a&&a.column||1,offset:a&&a.offset||0};const o={},c=[];let u=[],d=[];const A={attempt:Q(function(_,B){E(_,B.from)}),check:Q(D),consume:function(_){Be(_)?(i.line++,i.column=1,i.offset+=_===-3?2:1,I()):_!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===u[i._index].length&&(i._bufferIndex=-1,i._index++)),p.previous=_},enter:function(_,B){const U=B||{};return U.type=_,U.start=y(),p.events.push(["enter",U,p]),d.push(U),U},exit:function(_){const B=d.pop();return B.end=y(),p.events.push(["exit",B,p]),B},interrupt:Q(D,{interrupt:!0})},p={code:null,containerState:{},defineSkip:function(_){o[_.line]=_.column,I()},events:[],now:y,parser:e,previous:null,sliceSerialize:function(_,B){return function(U,j){let z=-1;const W=[];let te;for(;++z<U.length;){const J=U[z];let Y;if(typeof J=="string")Y=J;else switch(J){case-5:Y="\r";break;case-4:Y=`
126
+ `;break;case-3:Y=`\r
127
+ `;break;case-2:Y=j?" ":" ";break;case-1:if(!j&&te)continue;Y=" ";break;default:Y=String.fromCharCode(J)}te=J===-2,W.push(Y)}return W.join("")}(m(_),B)},sliceStream:m,write:function(_){return u=Rn(u,_),function(){let B;for(;i._index<u.length;){const U=u[i._index];if(typeof U=="string")for(B=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===B&&i._bufferIndex<U.length;)C(U.charCodeAt(i._bufferIndex));else C(U)}}(),u[u.length-1]!==null?[]:(E(n,0),p.events=mc(c,p.events,p),p.events)}};let h=n.tokenize.call(p,A);return n.resolveAll&&c.push(n),p;function m(_){return function(B,U){const j=U.start._index,z=U.start._bufferIndex,W=U.end._index,te=U.end._bufferIndex;let J;if(j===W)J=[B[j].slice(z,te)];else{if(J=B.slice(j,W),z>-1){const Y=J[0];typeof Y=="string"?J[0]=Y.slice(z):J.shift()}te>0&&J.push(B[W].slice(0,te))}return J}(u,_)}function y(){const{_bufferIndex:_,_index:B,line:U,column:j,offset:z}=i;return{_bufferIndex:_,_index:B,line:U,column:j,offset:z}}function C(_){h=h(_)}function D(_,B){B.restore()}function Q(_,B){return function(U,j,z){let W,te,J,Y;return Array.isArray(U)?ee(U):"tokenize"in U?ee([U]):function(se){return xe;function xe(ge){const me=ge!==null&&se[ge],M=ge!==null&&se.null;return ee([...Array.isArray(me)?me:me?[me]:[],...Array.isArray(M)?M:M?[M]:[]])(ge)}}(U);function ee(se){return W=se,te=0,se.length===0?z:Z(se[te])}function Z(se){return function(xe){return Y=function(){const ge=y(),me=p.previous,M=p.currentConstruct,fe=p.events.length,O=Array.from(d);return{from:fe,restore:de};function de(){i=ge,p.previous=me,p.currentConstruct=M,p.events.length=fe,d=O,I()}}(),J=se,se.partial||(p.currentConstruct=se),se.name&&p.parser.constructs.disable.null.includes(se.name)?ue():se.tokenize.call(B?Object.assign(Object.create(p),B):p,A,ie,ue)(xe)}}function ie(se){return _(J,Y),j}function ue(se){return Y.restore(),++te<W.length?Z(W[te]):z}}}function E(_,B){_.resolveAll&&!c.includes(_)&&c.push(_),_.resolve&&ur(p.events,B,p.events.length-B,_.resolve(p.events.slice(B),p)),_.resolveTo&&(p.events=_.resolveTo(p.events,p))}function I(){i.line in o&&i.column<2&&(i.column=o[i.line],i.offset+=o[i.line]-1)}}const yd=/[\0\t\n\r]/g,ag=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ig(e,n,a){if(n)return n;if(a.charCodeAt(0)===35){const i=a.charCodeAt(1),o=i===120||i===88;return nd(a.slice(o?2:1),o?16:10)}return pc(a)||e}const bd={}.hasOwnProperty;function sg(e,n,a){return typeof n!="string"&&(a=n,n=void 0),function(i){const o={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:A(gt),autolinkProtocol:Z,autolinkEmail:Z,atxHeading:A(pt),blockQuote:A(Ne),characterEscape:Z,characterReference:Z,codeFenced:A(We),codeFencedFenceInfo:p,codeFencedFenceMeta:p,codeIndented:A(We,p),codeText:A(ct,p),codeTextData:Z,data:Z,codeFlowValue:Z,definition:A(ht),definitionDestinationString:p,definitionLabelString:p,definitionTitleString:p,emphasis:A(ln),hardBreakEscape:A(Ft),hardBreakTrailing:A(Ft),htmlFlow:A(jt,p),htmlFlowData:Z,htmlText:A(jt,p),htmlTextData:Z,image:A(Gt),label:p,link:A(gt),listItem:A(Xe),listItemValue:Q,listOrdered:A(st,D),listUnordered:A(st),paragraph:A(Vt),reference:Te,referenceString:p,resourceDestinationString:p,resourceTitleString:p,setextHeading:A(pt),strong:A(cn),thematicBreak:A(at)},exit:{atxHeading:m(),atxHeadingSequence:te,autolink:m(),autolinkEmail:ft,autolinkProtocol:qe,blockQuote:m(),characterEscapeValue:ie,characterReferenceMarkerHexadecimal:tt,characterReferenceMarkerNumeric:tt,characterReferenceValue:Le,characterReference:Je,codeFenced:m(B),codeFencedFence:_,codeFencedFenceInfo:E,codeFencedFenceMeta:I,codeFlowValue:ie,codeIndented:m(U),codeText:m(me),codeTextData:ie,data:ie,definition:m(),definitionDestinationString:W,definitionLabelString:j,definitionTitleString:z,emphasis:m(),hardBreakEscape:m(se),hardBreakTrailing:m(se),htmlFlow:m(xe),htmlFlowData:ie,htmlText:m(ge),htmlTextData:ie,image:m(fe),label:de,labelText:O,lineEnding:ue,link:m(M),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:Qe,resourceDestinationString:Ee,resourceTitleString:he,resource:ve,setextHeading:m(ee),setextHeadingLineSequence:Y,setextHeadingText:J,strong:m(),thematicBreak:m()}};wd(o,(i||{}).mdastExtensions||[]);const c={};return u;function u(ne){let we={type:"root",children:[]};const ke={stack:[we],tokenStack:[],config:o,enter:h,exit:y,buffer:p,resume:C,data:c},He=[];let _e=-1;for(;++_e<ne.length;)(ne[_e][1].type==="listOrdered"||ne[_e][1].type==="listUnordered")&&(ne[_e][0]==="enter"?He.push(_e):_e=d(ne,He.pop(),_e));for(_e=-1;++_e<ne.length;){const kt=o[ne[_e][0]];bd.call(kt,ne[_e][1].type)&&kt[ne[_e][1].type].call(Object.assign({sliceSerialize:ne[_e][2].sliceSerialize},ke),ne[_e][1])}if(ke.tokenStack.length>0){const kt=ke.tokenStack[ke.tokenStack.length-1];(kt[1]||xd).call(ke,void 0,kt[0])}for(we.position={start:qr(ne.length>0?ne[0][1].start:{line:1,column:1,offset:0}),end:qr(ne.length>0?ne[ne.length-2][1].end:{line:1,column:1,offset:0})},_e=-1;++_e<o.transforms.length;)we=o.transforms[_e](we)||we;return we}function d(ne,we,ke){let He,_e,kt,Xt,yt=we-1,Jt=-1,Jn=!1;for(;++yt<=ke;){const Ge=ne[yt];switch(Ge[1].type){case"listUnordered":case"listOrdered":case"blockQuote":Ge[0]==="enter"?Jt++:Jt--,Xt=void 0;break;case"lineEndingBlank":Ge[0]==="enter"&&(He&&!Xt&&!Jt&&!kt&&(kt=yt),Xt=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Xt=void 0}if(!Jt&&Ge[0]==="enter"&&Ge[1].type==="listItemPrefix"||Jt===-1&&Ge[0]==="exit"&&(Ge[1].type==="listUnordered"||Ge[1].type==="listOrdered")){if(He){let bt=yt;for(_e=void 0;bt--;){const mt=ne[bt];if(mt[1].type==="lineEnding"||mt[1].type==="lineEndingBlank"){if(mt[0]==="exit")continue;_e&&(ne[_e][1].type="lineEndingBlank",Jn=!0),mt[1].type="lineEnding",_e=bt}else if(mt[1].type!=="linePrefix"&&mt[1].type!=="blockQuotePrefix"&&mt[1].type!=="blockQuotePrefixWhitespace"&&mt[1].type!=="blockQuoteMarker"&&mt[1].type!=="listItemIndent")break}kt&&(!_e||kt<_e)&&(He._spread=!0),He.end=Object.assign({},_e?ne[_e][1].start:Ge[1].end),ne.splice(_e||yt,0,["exit",He,Ge[2]]),yt++,ke++}if(Ge[1].type==="listItemPrefix"){const bt={type:"listItem",_spread:!1,start:Object.assign({},Ge[1].start),end:void 0};He=bt,ne.splice(yt,0,["enter",bt,Ge[2]]),yt++,ke++,kt=void 0,Xt=!0}}}return ne[we][1]._spread=Jn,ke}function A(ne,we){return ke;function ke(He){h.call(this,ne(He),He),we&&we.call(this,He)}}function p(){this.stack.push({type:"fragment",children:[]})}function h(ne,we,ke){this.stack[this.stack.length-1].children.push(ne),this.stack.push(ne),this.tokenStack.push([we,ke||void 0]),ne.position={start:qr(we.start),end:void 0}}function m(ne){return we;function we(ke){ne&&ne.call(this,ke),y.call(this,ke)}}function y(ne,we){const ke=this.stack.pop(),He=this.tokenStack.pop();if(!He)throw new Error("Cannot close `"+ne.type+"` ("+Di({start:ne.start,end:ne.end})+"): it’s not open");He[0].type!==ne.type&&(we?we.call(this,ne,He[0]):(He[1]||xd).call(this,ne,He[0])),ke.position.end=qr(ne.end)}function C(){return function(ne){return ZA(ne,typeof Hs.includeImageAlt!="boolean"||Hs.includeImageAlt,typeof Hs.includeHtml!="boolean"||Hs.includeHtml)}(this.stack.pop())}function D(){this.data.expectingFirstListItemValue=!0}function Q(ne){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(ne),10),this.data.expectingFirstListItemValue=void 0)}function E(){const ne=this.resume();this.stack[this.stack.length-1].lang=ne}function I(){const ne=this.resume();this.stack[this.stack.length-1].meta=ne}function _(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function B(){const ne=this.resume();this.stack[this.stack.length-1].value=ne.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function U(){const ne=this.resume();this.stack[this.stack.length-1].value=ne.replace(/(\r?\n|\r)$/g,"")}function j(ne){const we=this.resume(),ke=this.stack[this.stack.length-1];ke.label=we,ke.identifier=Ea(this.sliceSerialize(ne)).toLowerCase()}function z(){const ne=this.resume();this.stack[this.stack.length-1].title=ne}function W(){const ne=this.resume();this.stack[this.stack.length-1].url=ne}function te(ne){const we=this.stack[this.stack.length-1];if(!we.depth){const ke=this.sliceSerialize(ne).length;we.depth=ke}}function J(){this.data.setextHeadingSlurpLineEnding=!0}function Y(ne){this.stack[this.stack.length-1].depth=this.sliceSerialize(ne).codePointAt(0)===61?1:2}function ee(){this.data.setextHeadingSlurpLineEnding=void 0}function Z(ne){const we=this.stack[this.stack.length-1].children;let ke=we[we.length-1];(!ke||ke.type!=="text")&&(ke=Xn(),ke.position={start:qr(ne.start),end:void 0},we.push(ke)),this.stack.push(ke)}function ie(ne){const we=this.stack.pop();we.value+=this.sliceSerialize(ne),we.position.end=qr(ne.end)}function ue(ne){const we=this.stack[this.stack.length-1];if(this.data.atHardBreak)return we.children[we.children.length-1].position.end=qr(ne.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&o.canContainEols.includes(we.type)&&(Z.call(this,ne),ie.call(this,ne))}function se(){this.data.atHardBreak=!0}function xe(){const ne=this.resume();this.stack[this.stack.length-1].value=ne}function ge(){const ne=this.resume();this.stack[this.stack.length-1].value=ne}function me(){const ne=this.resume();this.stack[this.stack.length-1].value=ne}function M(){const ne=this.stack[this.stack.length-1];if(this.data.inReference){const we=this.data.referenceType||"shortcut";ne.type+="Reference",ne.referenceType=we,delete ne.url,delete ne.title}else delete ne.identifier,delete ne.label;this.data.referenceType=void 0}function fe(){const ne=this.stack[this.stack.length-1];if(this.data.inReference){const we=this.data.referenceType||"shortcut";ne.type+="Reference",ne.referenceType=we,delete ne.url,delete ne.title}else delete ne.identifier,delete ne.label;this.data.referenceType=void 0}function O(ne){const we=this.sliceSerialize(ne),ke=this.stack[this.stack.length-2];ke.label=function(He){return He.replace(ag,ig)}(we),ke.identifier=Ea(we).toLowerCase()}function de(){const ne=this.stack[this.stack.length-1],we=this.resume(),ke=this.stack[this.stack.length-1];if(this.data.inReference=!0,ke.type==="link"){const He=ne.children;ke.children=He}else ke.alt=we}function Ee(){const ne=this.resume();this.stack[this.stack.length-1].url=ne}function he(){const ne=this.resume();this.stack[this.stack.length-1].title=ne}function ve(){this.data.inReference=void 0}function Te(){this.data.referenceType="collapsed"}function Qe(ne){const we=this.resume(),ke=this.stack[this.stack.length-1];ke.label=we,ke.identifier=Ea(this.sliceSerialize(ne)).toLowerCase(),this.data.referenceType="full"}function tt(ne){this.data.characterReferenceType=ne.type}function Le(ne){const we=this.sliceSerialize(ne),ke=this.data.characterReferenceType;let He;ke?(He=nd(we,ke==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):He=pc(we),this.stack[this.stack.length-1].value+=He}function Je(ne){this.stack.pop().position.end=qr(ne.end)}function qe(ne){ie.call(this,ne),this.stack[this.stack.length-1].url=this.sliceSerialize(ne)}function ft(ne){ie.call(this,ne),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(ne)}function Ne(){return{type:"blockquote",children:[]}}function We(){return{type:"code",lang:null,meta:null,value:""}}function ct(){return{type:"inlineCode",value:""}}function ht(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ln(){return{type:"emphasis",children:[]}}function pt(){return{type:"heading",depth:0,children:[]}}function Ft(){return{type:"break"}}function jt(){return{type:"html",value:""}}function Gt(){return{type:"image",title:null,url:"",alt:null}}function gt(){return{type:"link",title:null,url:"",children:[]}}function st(ne){return{type:"list",ordered:ne.type==="listOrdered",start:null,spread:ne._spread,children:[]}}function Xe(ne){return{type:"listItem",spread:ne._spread,checked:null,children:[]}}function Vt(){return{type:"paragraph",children:[]}}function cn(){return{type:"strong",children:[]}}function Xn(){return{type:"text",value:""}}function at(){return{type:"thematicBreak"}}}(a)(function(i){for(;!Ad(i););return i}(function(i){const o={constructs:dh([rg,...(i||{}).extensions||[]]),content:c(bh),defined:[],document:c(wh),flow:c(Yh),lazy:{},string:c(Vh),text:c(Xh)};return o;function c(u){return function(d){return og(o,u,d)}}}(a).document().write(function(){let i,o=1,c="",u=!0;return function(d,A,p){const h=[];let m,y,C,D,Q;for(d=c+(typeof d=="string"?d.toString():new TextDecoder(A||void 0).decode(d)),C=0,c="",u&&(d.charCodeAt(0)===65279&&C++,u=void 0);C<d.length;){if(yd.lastIndex=C,m=yd.exec(d),D=m&&m.index!==void 0?m.index:d.length,Q=d.charCodeAt(D),!m){c=d.slice(C);break}if(Q===10&&C===D&&i)h.push(-3),i=void 0;else switch(i&&(h.push(-5),i=void 0),C<D&&(h.push(d.slice(C,D)),o+=D-C),Q){case 0:h.push(65533),o++;break;case 9:for(y=4*Math.ceil(o/4),h.push(-2);o++<y;)h.push(-1);break;case 10:h.push(-4),o=1;break;default:i=!0,o=1}C=D+1}return p&&(i&&h.push(-5),c&&h.push(c),h.push(null)),h}}()(e,n,!0))))}function qr(e){return{line:e.line,column:e.column,offset:e.offset}}function wd(e,n){let a=-1;for(;++a<n.length;){const i=n[a];Array.isArray(i)?wd(e,i):lg(e,i)}}function lg(e,n){let a;for(a in n)if(bd.call(n,a))switch(a){case"canContainEols":{const i=n[a];i&&e[a].push(...i);break}case"transforms":{const i=n[a];i&&e[a].push(...i);break}case"enter":case"exit":{const i=n[a];i&&Object.assign(e[a],i);break}}}function xd(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Di({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Di({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Di({start:n.start,end:n.end})+") is still open")}function cg(e){const n=this;n.parser=function(a){return sg(a,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Sd(e,n){const a=n.referenceType;let i="]";if(a==="collapsed"?i+="[]":a==="full"&&(i+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+i}];const o=e.all(n),c=o[0];c&&c.type==="text"?c.value="["+c.value:o.unshift({type:"text",value:"["});const u=o[o.length-1];return u&&u.type==="text"?u.value+=i:o.push({type:"text",value:i}),o}function Ed(e){return e.spread??e.children.length>1}function ug(e){const n=String(e),a=/\r?\n|\r/g;let i=a.exec(n),o=0;const c=[];for(;i;)c.push(kd(n.slice(o,i.index),o>0,!0),i[0]),o=i.index+i[0].length,i=a.exec(n);return c.push(kd(n.slice(o),o>0,!1)),c.join("")}function kd(e,n,a){let i=0,o=e.length;if(n){let c=e.codePointAt(i);for(;c===9||c===32;)i++,c=e.codePointAt(i)}if(a){let c=e.codePointAt(o-1);for(;c===9||c===32;)o--,c=e.codePointAt(o-1)}return o>i?e.slice(i,o):""}const Ag={blockquote:function(e,n){const a={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,a),e.applyData(n,a)},break:function(e,n){const a={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,a),[e.applyData(n,a),{type:"text",value:`
128
+ `}]},code:function(e,n){const a=n.value?n.value+`
129
+ `:"",i={};n.lang&&(i.className=["language-"+n.lang]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:a}]};return n.meta&&(o.data={meta:n.meta}),e.patch(n,o),o=e.applyData(n,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(n,o),o},delete:function(e,n){const a={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)},emphasis:function(e,n){const a={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)},footnoteReference:function(e,n){const a=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(n.identifier).toUpperCase(),o=ka(i.toLowerCase()),c=e.footnoteOrder.indexOf(i);let u,d=e.footnoteCounts.get(i);d===void 0?(d=0,e.footnoteOrder.push(i),u=e.footnoteOrder.length):u=c+1,d+=1,e.footnoteCounts.set(i,d);const A={type:"element",tagName:"a",properties:{href:"#"+a+"fn-"+o,id:a+"fnref-"+o+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(n,A);const p={type:"element",tagName:"sup",properties:{},children:[A]};return e.patch(n,p),e.applyData(n,p)},heading:function(e,n){const a={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)},html:function(e,n){if(e.options.allowDangerousHtml){const a={type:"raw",value:n.value};return e.patch(n,a),e.applyData(n,a)}},imageReference:function(e,n){const a=String(n.identifier).toUpperCase(),i=e.definitionById.get(a);if(!i)return Sd(e,n);const o={src:ka(i.url||""),alt:n.alt};i.title!==null&&i.title!==void 0&&(o.title=i.title);const c={type:"element",tagName:"img",properties:o,children:[]};return e.patch(n,c),e.applyData(n,c)},image:function(e,n){const a={src:ka(n.url)};n.alt!==null&&n.alt!==void 0&&(a.alt=n.alt),n.title!==null&&n.title!==void 0&&(a.title=n.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(n,i),e.applyData(n,i)},inlineCode:function(e,n){const a={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,a);const i={type:"element",tagName:"code",properties:{},children:[a]};return e.patch(n,i),e.applyData(n,i)},linkReference:function(e,n){const a=String(n.identifier).toUpperCase(),i=e.definitionById.get(a);if(!i)return Sd(e,n);const o={href:ka(i.url||"")};i.title!==null&&i.title!==void 0&&(o.title=i.title);const c={type:"element",tagName:"a",properties:o,children:e.all(n)};return e.patch(n,c),e.applyData(n,c)},link:function(e,n){const a={href:ka(n.url)};n.title!==null&&n.title!==void 0&&(a.title=n.title);const i={type:"element",tagName:"a",properties:a,children:e.all(n)};return e.patch(n,i),e.applyData(n,i)},listItem:function(e,n,a){const i=e.all(n),o=a?function(h){let m=!1;if(h.type==="list"){m=h.spread||!1;const y=h.children;let C=-1;for(;!m&&++C<y.length;)m=Ed(y[C])}return m}(a):Ed(n),c={},u=[];if(typeof n.checked=="boolean"){const h=i[0];let m;h&&h.type==="element"&&h.tagName==="p"?m=h:(m={type:"element",tagName:"p",properties:{},children:[]},i.unshift(m)),m.children.length>0&&m.children.unshift({type:"text",value:" "}),m.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),c.className=["task-list-item"]}let d=-1;for(;++d<i.length;){const h=i[d];(o||d!==0||h.type!=="element"||h.tagName!=="p")&&u.push({type:"text",value:`
130
+ `}),h.type!=="element"||h.tagName!=="p"||o?u.push(h):u.push(...h.children)}const A=i[i.length-1];A&&(o||A.type!=="element"||A.tagName!=="p")&&u.push({type:"text",value:`
131
+ `});const p={type:"element",tagName:"li",properties:c,children:u};return e.patch(n,p),e.applyData(n,p)},list:function(e,n){const a={},i=e.all(n);let o=-1;for(typeof n.start=="number"&&n.start!==1&&(a.start=n.start);++o<i.length;){const u=i[o];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){a.className=["contains-task-list"];break}}const c={type:"element",tagName:n.ordered?"ol":"ul",properties:a,children:e.wrap(i,!0)};return e.patch(n,c),e.applyData(n,c)},paragraph:function(e,n){const a={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)},root:function(e,n){const a={type:"root",children:e.wrap(e.all(n))};return e.patch(n,a),e.applyData(n,a)},strong:function(e,n){const a={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)},table:function(e,n){const a=e.all(n),i=a.shift(),o=[];if(i){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(n.children[0],u),o.push(u)}if(a.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(a,!0)},d=lc(n.children[1]),A=WA(n.children[n.children.length-1]);d&&A&&(u.position={start:d,end:A}),o.push(u)}const c={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(n,c),e.applyData(n,c)},tableCell:function(e,n){const a={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)},tableRow:function(e,n,a){const i=a?a.children:void 0,o=(i?i.indexOf(n):1)===0?"th":"td",c=a&&a.type==="table"?a.align:void 0,u=c?c.length:n.children.length;let d=-1;const A=[];for(;++d<u;){const h=n.children[d],m={},y=c?c[d]:void 0;y&&(m.align=y);let C={type:"element",tagName:o,properties:m,children:[]};h&&(C.children=e.all(h),e.patch(h,C),C=e.applyData(h,C)),A.push(C)}const p={type:"element",tagName:"tr",properties:{},children:e.wrap(A,!0)};return e.patch(n,p),e.applyData(n,p)},text:function(e,n){const a={type:"text",value:ug(String(n.value))};return e.patch(n,a),e.applyData(n,a)},thematicBreak:function(e,n){const a={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,a),e.applyData(n,a)},toml:zs,yaml:zs,definition:zs,footnoteDefinition:zs};function zs(){}const Cd=typeof self=="object"?self:globalThis,Pd=e=>((n,a)=>{const i=(c,u)=>(n.set(u,c),c),o=c=>{if(n.has(c))return n.get(c);const[u,d]=a[c];switch(u){case 0:case-1:return i(d,c);case 1:{const A=i([],c);for(const p of d)A.push(o(p));return A}case 2:{const A=i({},c);for(const[p,h]of d)A[o(p)]=o(h);return A}case 3:return i(new Date(d),c);case 4:{const{source:A,flags:p}=d;return i(new RegExp(A,p),c)}case 5:{const A=i(new Map,c);for(const[p,h]of d)A.set(o(p),o(h));return A}case 6:{const A=i(new Set,c);for(const p of d)A.add(o(p));return A}case 7:{const{name:A,message:p}=d;return i(new Cd[A](p),c)}case 8:return i(BigInt(d),c);case"BigInt":return i(Object(BigInt(d)),c);case"ArrayBuffer":return i(new Uint8Array(d).buffer,d);case"DataView":{const{buffer:A}=new Uint8Array(d);return i(new DataView(A),d)}}return i(new Cd[u](d),c)};return o})(new Map,e)(0),Ca="",{toString:dg}={},{keys:fg}=Object,Ri=e=>{const n=typeof e;if(n!=="object"||!e)return[0,n];const a=dg.call(e).slice(8,-1);switch(a){case"Array":return[1,Ca];case"Object":return[2,Ca];case"Date":return[3,Ca];case"RegExp":return[4,Ca];case"Map":return[5,Ca];case"Set":return[6,Ca];case"DataView":return[1,a]}return a.includes("Array")?[1,a]:a.includes("Error")?[7,a]:[2,a]},js=([e,n])=>e===0&&(n==="function"||n==="symbol"),Td=(e,{json:n,lossy:a}={})=>{const i=[];return((o,c,u,d)=>{const A=(h,m)=>{const y=d.push(h)-1;return u.set(m,y),y},p=h=>{if(u.has(h))return u.get(h);let[m,y]=Ri(h);switch(m){case 0:{let D=h;switch(y){case"bigint":m=8,D=h.toString();break;case"function":case"symbol":if(o)throw new TypeError("unable to serialize "+y);D=null;break;case"undefined":return A([-1],h)}return A([m,D],h)}case 1:{if(y){let E=h;return y==="DataView"?E=new Uint8Array(h.buffer):y==="ArrayBuffer"&&(E=new Uint8Array(h)),A([y,[...E]],h)}const D=[],Q=A([m,D],h);for(const E of h)D.push(p(E));return Q}case 2:{if(y)switch(y){case"BigInt":return A([y,h.toString()],h);case"Boolean":case"Number":case"String":return A([y,h.valueOf()],h)}if(c&&"toJSON"in h)return p(h.toJSON());const D=[],Q=A([m,D],h);for(const E of fg(h))(o||!js(Ri(h[E])))&&D.push([p(E),p(h[E])]);return Q}case 3:return A([m,h.toISOString()],h);case 4:{const{source:D,flags:Q}=h;return A([m,{source:D,flags:Q}],h)}case 5:{const D=[],Q=A([m,D],h);for(const[E,I]of h)(o||!js(Ri(E))&&!js(Ri(I)))&&D.push([p(E),p(I)]);return Q}case 6:{const D=[],Q=A([m,D],h);for(const E of h)(o||!js(Ri(E)))&&D.push(p(E));return Q}}const{message:C}=h;return A([m,{name:y,message:C}],h)};return p})(!(n||a),!!n,new Map,i)(e),i},Ws=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?Pd(Td(e,n)):structuredClone(e):(e,n)=>Pd(Td(e,n));function pg(e,n){const a=[{type:"text",value:"↩"}];return n>1&&a.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),a}function hg(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}const Dd=function(e){if(e==null)return gg;if(typeof e=="function")return Ys(e);if(typeof e=="object")return Array.isArray(e)?function(n){const a=[];let i=-1;for(;++i<n.length;)a[i]=Dd(n[i]);return Ys(o);function o(...c){let u=-1;for(;++u<a.length;)if(a[u].apply(this,c))return!0;return!1}}(e):function(n){const a=n;return Ys(i);function i(o){const c=o;let u;for(u in n)if(c[u]!==a[u])return!1;return!0}}(e);if(typeof e=="string")return function(n){return Ys(a);function a(i){return i&&i.type===n}}(e);throw new Error("Expected function, string, or object as test")};function Ys(e){return function(n,a,i){return!(!function(o){return o!==null&&typeof o=="object"&&"type"in o}(n)||!e.call(this,n,typeof a=="number"?a:void 0,i||void 0))}}function gg(){return!0}const Id=[],mg=!0,Bd=!1;function vg(e,n,a,i){let o;typeof n=="function"&&typeof a!="function"?(i=a,a=n):o=n;const c=Dd(o),u=i?-1:1;(function d(A,p,h){const m=A&&typeof A=="object"?A:{};if(typeof m.type=="string"){const C=typeof m.tagName=="string"?m.tagName:typeof m.name=="string"?m.name:void 0;Object.defineProperty(y,"name",{value:"node ("+A.type+(C?"<"+C+">":"")+")"})}return y;function y(){let C,D,Q,E=Id;if((!n||c(A,p,h[h.length-1]||void 0))&&(E=function(I){return Array.isArray(I)?I:typeof I=="number"?[mg,I]:I==null?Id:[I]}(a(A,h)),E[0]===Bd))return E;if("children"in A&&A.children){const I=A;if(I.children&&E[0]!=="skip")for(D=(i?I.children.length:-1)+u,Q=h.concat(I);D>-1&&D<I.children.length;){const _=I.children[D];if(C=d(_,D,Q)(),C[0]===Bd)return C;D=typeof C[1]=="number"?C[1]:D+u}}return E}})(e,void 0,[])()}function Md(e,n,a,i){let o,c,u;typeof n=="function"?(c=void 0,u=n,o=a):(c=n,u=a,o=i),vg(e,c,function(d,A){const p=A[A.length-1],h=p?p.children.indexOf(d):void 0;return u(d,h,p)},o)}const xc={}.hasOwnProperty,yg={};function bg(e,n){const a=n||yg,i=new Map,o=new Map,c=new Map,u={...Ag,...a.handlers},d={all:function(A){const p=[];if("children"in A){const h=A.children;let m=-1;for(;++m<h.length;){const y=d.one(h[m],A);if(y){if(m&&h[m-1].type==="break"&&(!Array.isArray(y)&&y.type==="text"&&(y.value=Rd(y.value)),!Array.isArray(y)&&y.type==="element")){const C=y.children[0];C&&C.type==="text"&&(C.value=Rd(C.value))}Array.isArray(y)?p.push(...y):p.push(y)}}}return p},applyData:xg,definitionById:i,footnoteById:o,footnoteCounts:c,footnoteOrder:[],handlers:u,one:function(A,p){const h=A.type,m=d.handlers[h];if(xc.call(d.handlers,h)&&m)return m(d,A,p);if(d.options.passThrough&&d.options.passThrough.includes(h)){if("children"in A){const{children:y,...C}=A,D=Ws(C);return D.children=d.all(A),D}return Ws(A)}return(d.options.unknownHandler||Sg)(d,A,p)},options:a,patch:wg,wrap:Eg};return Md(e,function(A){if(A.type==="definition"||A.type==="footnoteDefinition"){const p=A.type==="definition"?i:o,h=String(A.identifier).toUpperCase();p.has(h)||p.set(h,A)}}),d}function wg(e,n){e.position&&(n.position=function(a){const i=lc(a),o=WA(a);if(i&&o)return{start:i,end:o}}(e))}function xg(e,n){let a=n;if(e&&e.data){const i=e.data.hName,o=e.data.hChildren,c=e.data.hProperties;typeof i=="string"&&(a.type==="element"?a.tagName=i:a={type:"element",tagName:i,properties:{},children:"children"in a?a.children:[a]}),a.type==="element"&&c&&Object.assign(a.properties,Ws(c)),"children"in a&&a.children&&o!=null&&(a.children=o)}return a}function Sg(e,n){const a=n.data||{},i=!("value"in n)||xc.call(a,"hProperties")||xc.call(a,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(n)}:{type:"text",value:n.value};return e.patch(n,i),e.applyData(n,i)}function Eg(e,n){const a=[];let i=-1;for(n&&a.push({type:"text",value:`
132
+ `});++i<e.length;)i&&a.push({type:"text",value:`
133
+ `}),a.push(e[i]);return n&&e.length>0&&a.push({type:"text",value:`
134
+ `}),a}function Rd(e){let n=0,a=e.charCodeAt(n);for(;a===9||a===32;)n++,a=e.charCodeAt(n);return e.slice(n)}function Od(e,n){const a=bg(e,n),i=a.one(e,void 0),o=function(u){const d=typeof u.options.clobberPrefix=="string"?u.options.clobberPrefix:"user-content-",A=u.options.footnoteBackContent||pg,p=u.options.footnoteBackLabel||hg,h=u.options.footnoteLabel||"Footnotes",m=u.options.footnoteLabelTagName||"h2",y=u.options.footnoteLabelProperties||{className:["sr-only"]},C=[];let D=-1;for(;++D<u.footnoteOrder.length;){const Q=u.footnoteById.get(u.footnoteOrder[D]);if(!Q)continue;const E=u.all(Q),I=String(Q.identifier).toUpperCase(),_=ka(I.toLowerCase());let B=0;const U=[],j=u.footnoteCounts.get(I);for(;j!==void 0&&++B<=j;){U.length>0&&U.push({type:"text",value:" "});let te=typeof A=="string"?A:A(D,B);typeof te=="string"&&(te={type:"text",value:te}),U.push({type:"element",tagName:"a",properties:{href:"#"+d+"fnref-"+_+(B>1?"-"+B:""),dataFootnoteBackref:"",ariaLabel:typeof p=="string"?p:p(D,B),className:["data-footnote-backref"]},children:Array.isArray(te)?te:[te]})}const z=E[E.length-1];if(z&&z.type==="element"&&z.tagName==="p"){const te=z.children[z.children.length-1];te&&te.type==="text"?te.value+=" ":z.children.push({type:"text",value:" "}),z.children.push(...U)}else E.push(...U);const W={type:"element",tagName:"li",properties:{id:d+"fn-"+_},children:u.wrap(E,!0)};u.patch(Q,W),C.push(W)}if(C.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:m,properties:{...Ws(y),id:"footnote-label"},children:[{type:"text",value:h}]},{type:"text",value:`
135
+ `},{type:"element",tagName:"ol",properties:{},children:u.wrap(C,!0)},{type:"text",value:`
136
+ `}]}}(a),c=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return o&&c.children.push({type:"text",value:`
137
+ `},o),c}function kg(e,n){return e&&"run"in e?async function(a,i){const o=Od(a,{file:i,...n});await e.run(o,i)}:function(a,i){return Od(a,{file:i,...e||n})}}function Fd(e){if(e)throw e}var Sc,Ld,Cg=function(){if(Ld)return Sc;Ld=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,a=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(A){return typeof Array.isArray=="function"?Array.isArray(A):n.call(A)==="[object Array]"},c=function(A){if(!A||n.call(A)!=="[object Object]")return!1;var p,h=e.call(A,"constructor"),m=A.constructor&&A.constructor.prototype&&e.call(A.constructor.prototype,"isPrototypeOf");if(A.constructor&&!h&&!m)return!1;for(p in A);return typeof p>"u"||e.call(A,p)},u=function(A,p){a&&p.name==="__proto__"?a(A,p.name,{enumerable:!0,configurable:!0,value:p.newValue,writable:!0}):A[p.name]=p.newValue},d=function(A,p){if(p==="__proto__"){if(!e.call(A,p))return;if(i)return i(A,p).value}return A[p]};return Sc=function A(){var p,h,m,y,C,D,Q=arguments[0],E=1,I=arguments.length,_=!1;for(typeof Q=="boolean"&&(_=Q,Q=arguments[1]||{},E=2),(Q==null||typeof Q!="object"&&typeof Q!="function")&&(Q={});E<I;++E)if((p=arguments[E])!=null)for(h in p)m=d(Q,h),Q!==(y=d(p,h))&&(_&&y&&(c(y)||(C=o(y)))?(C?(C=!1,D=m&&o(m)?m:[]):D=m&&c(m)?m:{},u(Q,{name:h,newValue:A(_,D,y)})):typeof y<"u"&&u(Q,{name:h,newValue:y}));return Q},Sc}();const Ec=NA(Cg);function kc(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return!(n!==null&&n!==Object.prototype&&Object.getPrototypeOf(n)!==null||Symbol.toStringTag in e||Symbol.iterator in e)}function Pg(){const e=[],n={run:function(...a){let i=-1;const o=a.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);(function c(u,...d){const A=e[++i];let p=-1;if(u)o(u);else{for(;++p<a.length;)(d[p]===null||d[p]===void 0)&&(d[p]=a[p]);a=d,A?function(h,m){let y;return C;function C(...E){const I=h.length>E.length;let _;I&&E.push(D);try{_=h.apply(this,E)}catch(B){if(I&&y)throw B;return D(B)}I||(_&&_.then&&typeof _.then=="function"?_.then(Q,D):_ instanceof Error?D(_):Q(_))}function D(E,...I){y||(y=!0,m(E,...I))}function Q(E){D(null,E)}}(A,c)(...d):o(null,...d)}})(null,...a)},use:function(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),n}};return n}const dr={basename:function(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Oi(e);let a,i=0,o=-1,c=e.length;if(n===void 0||n.length===0||n.length>e.length){for(;c--;)if(e.codePointAt(c)===47){if(a){i=c+1;break}}else o<0&&(a=!0,o=c+1);return o<0?"":e.slice(i,o)}if(n===e)return"";let u=-1,d=n.length-1;for(;c--;)if(e.codePointAt(c)===47){if(a){i=c+1;break}}else u<0&&(a=!0,u=c+1),d>-1&&(e.codePointAt(c)===n.codePointAt(d--)?d<0&&(o=c):(d=-1,o=u));return i===o?o=u:o<0&&(o=e.length),e.slice(i,o)},dirname:function(e){if(Oi(e),e.length===0)return".";let n,a=-1,i=e.length;for(;--i;)if(e.codePointAt(i)===47){if(n){a=i;break}}else n||(n=!0);return a<0?e.codePointAt(0)===47?"/":".":a===1&&e.codePointAt(0)===47?"//":e.slice(0,a)},extname:function(e){Oi(e);let n,a=e.length,i=-1,o=0,c=-1,u=0;for(;a--;){const d=e.codePointAt(a);if(d!==47)i<0&&(n=!0,i=a+1),d===46?c<0?c=a:u!==1&&(u=1):c>-1&&(u=-1);else if(n){o=a+1;break}}return c<0||i<0||u===0||u===1&&c===i-1&&c===o+1?"":e.slice(c,i)},join:function(...e){let n,a=-1;for(;++a<e.length;)Oi(e[a]),e[a]&&(n=n===void 0?e[a]:n+"/"+e[a]);return n===void 0?".":function(i){Oi(i);const o=i.codePointAt(0)===47;let c=function(u,d){let A,p,h="",m=0,y=-1,C=0,D=-1;for(;++D<=u.length;){if(D<u.length)A=u.codePointAt(D);else{if(A===47)break;A=47}if(A===47){if(y!==D-1&&C!==1)if(y!==D-1&&C===2){if(h.length<2||m!==2||h.codePointAt(h.length-1)!==46||h.codePointAt(h.length-2)!==46){if(h.length>2){if(p=h.lastIndexOf("/"),p!==h.length-1){p<0?(h="",m=0):(h=h.slice(0,p),m=h.length-1-h.lastIndexOf("/")),y=D,C=0;continue}}else if(h.length>0){h="",m=0,y=D,C=0;continue}}d&&(h=h.length>0?h+"/..":"..",m=2)}else h.length>0?h+="/"+u.slice(y+1,D):h=u.slice(y+1,D),m=D-y-1;y=D,C=0}else A===46&&C>-1?C++:C=-1}return h}(i,!o);return c.length===0&&!o&&(c="."),c.length>0&&i.codePointAt(i.length-1)===47&&(c+="/"),o?"/"+c:c}(n)},sep:"/"};function Oi(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Tg={cwd:function(){return"/"}};function Cc(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Dg(e){if(typeof e=="string")e=new URL(e);else if(!Cc(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return function(n){if(n.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const a=n.pathname;let i=-1;for(;++i<a.length;)if(a.codePointAt(i)===37&&a.codePointAt(i+1)===50){const o=a.codePointAt(i+2);if(o===70||o===102){const c=new TypeError("File URL path must not include encoded / characters");throw c.code="ERR_INVALID_FILE_URL_PATH",c}}return decodeURIComponent(a)}(e)}const Pc=["history","path","basename","stem","extname","dirname"];class Qd{constructor(n){let a;var i;a=n?Cc(n)?{path:n}:typeof n=="string"||(i=n)&&typeof i=="object"&&"byteLength"in i&&"byteOffset"in i?{value:n}:n:{},this.cwd="cwd"in a?"":Tg.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o,c=-1;for(;++c<Pc.length;){const u=Pc[c];u in a&&a[u]!==void 0&&a[u]!==null&&(this[u]=u==="history"?[...a[u]]:a[u])}for(o in a)Pc.includes(o)||(this[o]=a[o])}get basename(){return typeof this.path=="string"?dr.basename(this.path):void 0}set basename(n){Dc(n,"basename"),Tc(n,"basename"),this.path=dr.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?dr.dirname(this.path):void 0}set dirname(n){_d(this.basename,"dirname"),this.path=dr.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?dr.extname(this.path):void 0}set extname(n){if(Tc(n,"extname"),_d(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=dr.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Cc(n)&&(n=Dg(n)),Dc(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?dr.basename(this.path,this.extname):void 0}set stem(n){Dc(n,"stem"),Tc(n,"stem"),this.path=dr.join(this.dirname||"",n+(this.extname||""))}fail(n,a,i){const o=this.message(n,a,i);throw o.fatal=!0,o}info(n,a,i){const o=this.message(n,a,i);return o.fatal=void 0,o}message(n,a,i){const o=new zt(n,a,i);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function Tc(e,n){if(e&&e.includes(dr.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+dr.sep+"`")}function Dc(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function _d(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}const Ig=function(e){const n=this.constructor.prototype,a=n[e],i=function(){return a.apply(i,arguments)};return Object.setPrototypeOf(i,n),i},Bg={}.hasOwnProperty;class Ic extends Ig{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Pg()}copy(){const n=new Ic;let a=-1;for(;++a<this.attachers.length;){const i=this.attachers[a];n.use(...i)}return n.data(Ec(!0,{},this.namespace)),n}data(n,a){return typeof n=="string"?arguments.length===2?(Rc("data",this.frozen),this.namespace[n]=a,this):Bg.call(this.namespace,n)&&this.namespace[n]||void 0:n?(Rc("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[a,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const o=a.call(n,...i);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const a=Gs(n),i=this.parser||this.Parser;return Bc("parse",i),i(String(a),a)}process(n,a){const i=this;return this.freeze(),Bc("process",this.parser||this.Parser),Mc("process",this.compiler||this.Compiler),a?o(void 0,a):new Promise(o);function o(c,u){const d=Gs(n),A=i.parse(d);function p(h,m){h||!m?u(h):c?c(m):a(void 0,m)}i.run(A,d,function(h,m,y){if(h||!m||!y)return p(h);const C=m,D=i.stringify(C,y);var Q;typeof(Q=D)=="string"||function(E){return!!(E&&typeof E=="object"&&"byteLength"in E&&"byteOffset"in E)}(Q)?y.value=D:y.result=D,p(h,y)})}}processSync(n){let a,i=!1;return this.freeze(),Bc("processSync",this.parser||this.Parser),Mc("processSync",this.compiler||this.Compiler),this.process(n,function(o,c){i=!0,Fd(o),a=c}),Nd("processSync","process",i),a}run(n,a,i){Hd(n),this.freeze();const o=this.transformers;return!i&&typeof a=="function"&&(i=a,a=void 0),i?c(void 0,i):new Promise(c);function c(u,d){const A=Gs(a);o.run(n,A,function(p,h,m){const y=h||n;p?d(p):u?u(y):i(void 0,y,m)})}}runSync(n,a){let i,o=!1;return this.run(n,a,function(c,u){Fd(c),i=u,o=!0}),Nd("runSync","run",o),i}stringify(n,a){this.freeze();const i=Gs(a),o=this.compiler||this.Compiler;return Mc("stringify",o),Hd(n),o(n,i)}use(n,...a){const i=this.attachers,o=this.namespace;if(Rc("use",this.frozen),n!=null)if(typeof n=="function")A(n,a);else{if(typeof n!="object")throw new TypeError("Expected usable value, not `"+n+"`");Array.isArray(n)?d(n):u(n)}return this;function c(p){if(typeof p=="function")A(p,[]);else{if(typeof p!="object")throw new TypeError("Expected usable value, not `"+p+"`");if(Array.isArray(p)){const[h,...m]=p;A(h,m)}else u(p)}}function u(p){if(!("plugins"in p)&&!("settings"in p))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(p.plugins),p.settings&&(o.settings=Ec(!0,o.settings,p.settings))}function d(p){let h=-1;if(p!=null){if(!Array.isArray(p))throw new TypeError("Expected a list of plugins, not `"+p+"`");for(;++h<p.length;)c(p[h])}}function A(p,h){let m=-1,y=-1;for(;++m<i.length;)if(i[m][0]===p){y=m;break}if(y===-1)i.push([p,...h]);else if(h.length>0){let[C,...D]=h;const Q=i[y][1];kc(Q)&&kc(C)&&(C=Ec(!0,Q,C)),i[y]=[p,C,...D]}}}}const Mg=new Ic().freeze();function Bc(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Mc(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Rc(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Hd(e){if(!kc(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Nd(e,n,a){if(!a)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Gs(e){return function(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}(e)?e:new Qd(e)}const Ud=[],zd={allowDangerousHtml:!0},Rg=/^(https?|ircs?|mailto|xmpp)$/i,Og=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Fg(e){const n=e.allowedElements,a=e.allowElement,i=e.children||"",o=e.className,c=e.components,u=e.disallowedElements,d=e.rehypePlugins||Ud,A=e.remarkPlugins||Ud,p=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...zd}:zd,h=e.skipHtml,m=e.unwrapDisallowed,y=e.urlTransform||Lg,C=Mg().use(cg).use(A).use(kg,p).use(d),D=new Qd;typeof i=="string"&&(D.value=i);for(const I of Og)Object.hasOwn(e,I.from)&&(I.from,I.to&&I.to,I.id);const Q=C.parse(D);let E=C.runSync(Q,D);return o&&(E={type:"element",tagName:"div",properties:{className:o},children:E.type==="root"?E.children:[E]}),Md(E,function(I,_,B){if(I.type==="raw"&&B&&typeof _=="number")return h?B.children.splice(_,1):B.children[_]={type:"text",value:I.value},_;if(I.type==="element"){let U;for(U in fc)if(Object.hasOwn(fc,U)&&Object.hasOwn(I.properties,U)){const j=I.properties[U],z=fc[U];(z===null||z.includes(I.tagName))&&(I.properties[U]=y(String(j||""),U,I))}}if(I.type==="element"){let U=n?!n.includes(I.tagName):!!u&&u.includes(I.tagName);if(!U&&a&&typeof _=="number"&&(U=!a(I,_,B)),U&&B&&typeof _=="number")return m&&I.children?B.children.splice(_,1,...I.children):B.children.splice(_,1),_}}),sh(E,{Fragment:N.Fragment,components:c,ignoreInvalidStyle:!0,jsx:N.jsx,jsxs:N.jsxs,passKeys:!0,passNode:!0})}function Lg(e){const n=e.indexOf(":"),a=e.indexOf("?"),i=e.indexOf("#"),o=e.indexOf("/");return n===-1||o!==-1&&n>o||a!==-1&&n>a||i!==-1&&n>i||Rg.test(e.slice(0,n))?e:""}const Qg=({children:e})=>N.jsx("div",{style:{whiteSpace:"normal"},children:N.jsx(Fg,{components:{p:({...n})=>N.jsx("p",{style:{margin:0,marginBottom:"0.5em",lineHeight:1.4,textAlign:"left"},children:n.children}),ul:({...n})=>N.jsx("ul",{style:{paddingLeft:"clamp(8px, 3.5vw, 16px)",margin:0,listStylePosition:"inside"},children:n.children}),ol:({...n})=>N.jsx("ol",{style:{paddingLeft:"clamp(8px, 3.5vw, 16px)",margin:0,listStylePosition:"inside"},children:n.children}),li:({...n})=>N.jsx("li",{style:{marginBottom:"1px",lineHeight:1.4},children:n.children}),code:({inline:n,children:a})=>n?N.jsx("code",{style:{backgroundColor:"rgba(0, 0, 0, 0.3)",padding:"2px 4px",borderRadius:"4px",fontFamily:"inherit",fontSize:"0.95em"},children:a}):N.jsx("pre",{style:{backgroundColor:"rgba(0, 0, 0, 0.3)",padding:"8px",borderRadius:"4px",overflowX:"auto",margin:"0.5em 0",whiteSpace:"pre-wrap"},children:N.jsx("code",{children:a})}),blockquote:({...n})=>N.jsx("blockquote",{style:{margin:0,paddingLeft:"10px",borderLeft:"2px solid #ccc",color:"#666",fontStyle:"italic"},children:n.children})},children:typeof e=="string"?e:""})}),_g={autoConfig:!0},Hg=e=>()=>(n=>{const{getFlow:a}=Qs(),{messages:i,replaceMessages:o}=ql(),{settings:c}=bA(),{hasChatHistoryLoaded:u}=wA(),d={...n,..._g},A=d.markdownComponent?d.markdownComponent:Qg;R.useEffect(()=>{var m,y;if(u){const C=[...i];for(let D=0;D<C.length&&D<(((m=c.chatHistory)==null?void 0:m.maxEntries)??30);D++){const Q=C[D];(y=Q.tags)!=null&&y.includes("rcb-markdown-renderer-plugin:parsed")&&(Q.contentWrapper=A)}o(C)}},[u]);const p=async m=>{var y;const C=(y=m.data.message)==null?void 0:y.sender.toUpperCase();((D,Q,E)=>{var I;if(typeof D.data.message.content!="string"||!D.detail.currPath)return!1;const _=Q[D.detail.currPath];return!!_&&(((I=_.renderMarkdown)==null?void 0:I.map(B=>B.toUpperCase()).includes(E))??!1)})(m,a(),C)&&(m.data.message.contentWrapper=A,m.data.message.tags||(m.data.message.tags=[]),m.data.message.tags.push("rcb-markdown-renderer-plugin:parsed"))};Bn(ye.PRE_INJECT_MESSAGE,p),Bn(ye.CHUNK_STREAM_MESSAGE,p),Bn(ye.START_STREAM_MESSAGE,p),Bn(ye.START_SIMULATE_STREAM_MESSAGE,p);const h={name:"@rcb-plugins/markdown-renderer"};return d!=null&&d.autoConfig&&(h.settings={event:{rcbPreInjectMessage:!0,rcbChunkStreamMessage:!0,rcbStartSimulateStreamMessage:!0,rcbStartStreamMessage:!0}}),h})(e),Vs={autoConfig:!0,promptBaseColors:{info:"#007bff",warning:"#ffc107",error:"#dc3545",success:"#28a745"},promptHoveredColors:{info:"#0056b3",warning:"#d39e00",error:"#c82333",success:"#218838"},textAreaHighlightColors:{info:"#007bff",warning:"#ffc107",error:"#dc3545",success:"#28a745"}},jd=(e,n,a="validateTextInput")=>{var i;if((i=e.detail)==null||!i.currPath)return;const o=n[e.detail.currPath];if(!o)return;const c=o[a];return typeof c=="function"?c:void 0},Ng=e=>{const{showToast:n}=(()=>{const{showToast:m,dismissToast:y,toasts:C,replaceToasts:D}=ya();return{showToast:m,dismissToast:y,toasts:C,replaceToasts:D}})(),{getFlow:a}=Qs(),{styles:i,updateStyles:o,replaceStyles:c}=(()=>{const{styles:m,replaceStyles:y,updateStyles:C}=gA();return{styles:m,replaceStyles:y,updateStyles:C}})(),u=(m=>({...Vs,...m,promptBaseColors:{...Vs.promptBaseColors},promptHoveredColors:{...Vs.promptHoveredColors},textAreaHighlightColors:{...Vs.textAreaHighlightColors}}))(e),[d,A]=R.useState(0),p=R.useRef({});Bn(ye.USER_SUBMIT_TEXT,m=>{const y=m,C=jd(y,a(),"validateTextInput");if(!C)return;const D=C(y.data.inputText);if(D!=null&&D.success||m.preventDefault(),!D.promptContent)return;d===0&&(p.current=structuredClone(i));const Q=((E,I)=>{const _=E.promptType??"info";let B={};return I.advancedStyles&&(B=I.advancedStyles[_]),I.promptBaseColors&&(B.toastPromptStyle={color:I.promptBaseColors[_],borderColor:I.promptBaseColors[_]}),I.promptHoveredColors&&(B.toastPromptHoveredStyle={color:I.promptHoveredColors[_],borderColor:I.promptHoveredColors[_]}),I.textAreaHighlightColors&&(E.highlightTextArea??!0)&&(B.chatInputAreaStyle={boxShadow:`${I.textAreaHighlightColors[_]} 0px 0px 5px`}),B})(D,u);o(Q),n(D.promptContent,D.promptDuration??3e3),A(E=>E+1)}),Bn(ye.USER_UPLOAD_FILE,m=>{var y,C;const D=m,Q=(C=(y=D.data)==null?void 0:y.files)==null?void 0:C[0];if(!Q)return console.error("No file uploaded."),void m.preventDefault();const E=jd(D,a(),"validateFileInput");if(!E)return void console.error("Validator not found for file input.");const I=E(Q);if(!I.success)return console.error("Validation failed:",I),I.promptContent&&n(I.promptContent,I.promptDuration??3e3),void m.preventDefault();console.log("Validation successful:",I)}),Bn(ye.DISMISS_TOAST,()=>{A(m=>m-1)}),R.useEffect(()=>{d===0&&setTimeout(()=>{c(p.current)})},[d,c]);const h={name:"@rcb-plugins/input-validator"};return u.autoConfig&&(h.settings={event:{rcbUserSubmitText:!0,rcbUserUploadFile:!0,rcbDismissToast:!0}}),h},Wd=R.forwardRef((e,n)=>{let{embedded:a,currentOpen:i,enabled:o,onSetEnabled:c}=e;const u=ql(),d=(()=>{const{isChatWindowOpen:h,toggleChatWindow:m,toggleIsBotTyping:y,scrollToBottom:C,getIsChatBotVisible:D}=wn();return{isChatWindowOpen:h,toggleChatWindow:m,toggleIsBotTyping:y,scrollToBottom:C,getIsChatBotVisible:D}})(),A=R.useRef(null),p=R.useRef(!1);return R.useEffect(()=>{!a&&d&&d.toggleChatWindow&&(A.current===i||p.current||(setTimeout(()=>{d&&d.toggleChatWindow&&d.toggleChatWindow(i)},0),A.current=i),p.current=!1)},[i,a,d]),R.useEffect(()=>{const h=()=>{p.current=!0};return window.addEventListener("rcb-toggle-chat-window",h),()=>window.removeEventListener("rcb-toggle-chat-window",h)}),R.useImperativeHandle(n,()=>({addMessage:h=>{u&&u.injectMessage&&u.injectMessage(h)},openChat:()=>{!a&&d&&d.toggleChatWindow&&d.toggleChatWindow(!0)},closeChat:()=>{!a&&d&&d.toggleChatWindow&&d.toggleChatWindow(!1)},toggleChat:()=>{!a&&d&&d.toggleChatWindow&&d.toggleChatWindow()},setBotEnabled:h=>{c&&c(h)}}),[u,d,a,c]),null});Wd.displayName="BotController";const Yd=e=>{let{loginUrl:n,className:a="",style:i,isHeaderButton:o=!1}=e;const c=o?{display:"inline-block",padding:"6px 12px",backgroundColor:"transparent",border:"1px solid #ccc",color:"white",textDecoration:"none",borderRadius:"4px",fontWeight:"normal",textAlign:"center",margin:"8px",fontSize:"12px",opacity:.8,transition:"all 0.2s ease"}:{display:"inline-block",padding:"10px 20px",backgroundColor:"white",border:"1px solid var(--primaryColor, #107180)",color:"var(--primaryColor, #107180)",textDecoration:"none",borderRadius:"4px",fontWeight:"bold",textAlign:"center",margin:"18px",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.2)"};return R.createElement(R.Fragment,null,o&&R.createElement("style",null,`
138
+ .rcb-chat-header-container .qa-bot-header-login-button:hover {
139
+ background-color: #0000001a !important;
140
+ opacity: 1 !important;
141
+ }
142
+ `),R.createElement("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"qa-bot-login-button ".concat(o?"qa-bot-header-login-button":""," ").concat(a),style:Object.assign(Object.assign({},c),i)},"Log In"))},Ug=()=>R.createElement("div",{className:"user-login-icon",style:{alignItems:"center",justifyContent:"center",width:"30px",height:"30px",borderRadius:"50%",backgroundColor:"var(--primaryColor, #1a5b6e)",marginRight:"5px",display:"flex"},role:"img","aria-label":"User logged in",title:"User logged in"},R.createElement("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},R.createElement("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),R.createElement("circle",{cx:"12",cy:"7",r:"4"})));function Oc(){return Oc=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},Oc.apply(null,arguments)}const Gd=({width:e=24,height:n=24,color:a="currentColor",children:i,...o})=>R.createElement("svg",Oc({xmlns:"http://www.w3.org/2000/svg",width:e,height:n,viewBox:"0 0 24 24",fill:"none",stroke:a,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},o),i),zg=e=>R.createElement(Gd,e,R.createElement("path",{d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})),Vd=R.createContext(void 0),jg=e=>{let{children:n,resetSession:a,clearResettingFlag:i}=e;return R.createElement(Vd.Provider,{value:{resetSession:a,clearResettingFlag:i}},n)},Wg=()=>{const{restartFlow:e}=Qs(),{setTextAreaValue:n}=(()=>{const{textAreaDisabled:o,toggleTextAreaDisabled:c,textAreaSensitiveMode:u,toggleTextAreaSensitiveMode:d,getTextAreaValue:A,setTextAreaValue:p,focusTextArea:h,blurTextArea:m}=Fo();return{textAreaDisabled:o,toggleTextAreaDisabled:c,textAreaSensitiveMode:u,toggleTextAreaSensitiveMode:d,getTextAreaValue:A,setTextAreaValue:p,focusTextArea:h,blurTextArea:m}})(),{resetSession:a,clearResettingFlag:i}=(()=>{const o=R.useContext(Vd);if(!o)throw new Error("useSession must be used within a SessionProvider");return o})();return R.createElement("button",{onClick:async()=>{a(),await n(""),await e(),setTimeout(()=>{i()},100)},tabIndex:0,"aria-label":"New chat conversation",style:{backgroundColor:"var(--primaryColor, #107180)",border:"none",color:"#ffffff",fontSize:"14px",cursor:"pointer",padding:"8px 12px",borderRadius:"4px",transition:"all 0.2s ease",display:"flex",alignItems:"center",gap:"6px",fontWeight:"500"},onMouseEnter:o=>{o.target.style.backgroundColor="var(--secondaryColor, #0d5f6b)"},onMouseLeave:o=>{o.target.style.backgroundColor="var(--primaryColor, #107180)"}},R.createElement(zg,{width:16,height:16}),"New Chat")},Yg=()=>(R.useEffect(()=>{const e=c=>{if(!["ArrowDown","ArrowUp","ArrowLeft","ArrowRight","Enter"," ","Home","End"].includes(c.key))return;const u=document.activeElement;if(u&&(u.tagName==="INPUT"||u.tagName==="TEXTAREA"||u.contentEditable==="true"||u.classList.contains("rcb-chat-input-textarea")))return;const d=document.querySelector(".rcb-chat-window");if(!d)return;const A=Array.from(d.querySelectorAll(".rcb-message-container, .rcb-bot-message-container, .rcb-user-message-container")).filter(m=>m.offsetParent!==null);if(A.length>0){const m=A[A.length-1].querySelector(".rcb-checkbox-container");if(m&&m.offsetParent!==null){const y=Array.from(m.querySelectorAll(".rcb-checkbox-row-container")),C=m.querySelector(".rcb-checkbox-next-button");if(y.length>0){const D=[...y];return C&&D.push(C),void((Q,E)=>{Q.preventDefault();let I=-1;for(let B=0;B<E.length;B++)if(E[B]===document.activeElement||E[B].contains(document.activeElement)){I=B;break}I===-1&&(I=0);let _=I;switch(Q.key){case"ArrowDown":case"ArrowRight":_=I<E.length-1?I+1:0;break;case"ArrowUp":case"ArrowLeft":_=I>0?I-1:E.length-1;break;case"Home":_=0;break;case"End":_=E.length-1;break;case"Enter":case" ":{const B=E[I],U=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});return void B.dispatchEvent(U)}default:return}E[_].focus(),E[_].setAttribute("tabindex","0"),E[_].classList.add("keyboard-focused"),E.forEach((B,U)=>{U!==_&&(B.setAttribute("tabindex","-1"),B.classList.remove("keyboard-focused"))})})(c,D)}}}let p=[];if(A.length>0){const m=A[A.length-1],y=Array.from(m.querySelectorAll(".rcb-options-container")).filter(C=>C.offsetParent!==null);if(y.length>0){const C=y[y.length-1];p=Array.from(C.querySelectorAll(".rcb-options"))}}if(p.length===0)return;const h=p.findIndex(m=>m===document.activeElement);switch(c.key){case"ArrowDown":case"ArrowRight":{let m;c.preventDefault(),m=h<p.length-1?h+1:0,p[m].setAttribute("tabindex","0"),p.forEach((y,C)=>{C!==m&&(y.setAttribute("tabindex","-1"),y.classList.remove("keyboard-focused"))}),p[m].classList.add("keyboard-focused"),p[m].focus();break}case"ArrowUp":case"ArrowLeft":{let m;c.preventDefault(),m=h>0?h-1:p.length-1,p[m].setAttribute("tabindex","0"),p.forEach((y,C)=>{C!==m&&(y.setAttribute("tabindex","-1"),y.classList.remove("keyboard-focused"))}),p[m].classList.add("keyboard-focused"),p[m].focus();break}case"Enter":case" ":if(c.preventDefault(),document.activeElement&&p.includes(document.activeElement)){const m=document.activeElement;if(m.classList.contains("rcb-checkbox-row-container")||m.closest(".rcb-checkbox-row-container")){const y=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});m.dispatchEvent(y);const C=m.querySelector(".rcb-checkbox-label"),D=C?C.textContent:m.textContent||"checkbox",Q=m.querySelector(".rcb-checkbox-mark"),E=Q&&Q.style.backgroundColor?"checked":"unchecked";n(`${D} ${E}`)}else{const y=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});m.dispatchEvent(y);const C=m.textContent||m.innerText;n(`Selected: ${C}`)}}break;case"Home":c.preventDefault(),p.length>0&&(p[0].setAttribute("tabindex","0"),p.forEach((m,y)=>{y!==0&&(m.setAttribute("tabindex","-1"),m.classList.remove("keyboard-focused"))}),p[0].classList.add("keyboard-focused"),p[0].focus());break;case"End":if(c.preventDefault(),p.length>0){const m=p.length-1;p[m].setAttribute("tabindex","0"),p.forEach((y,C)=>{C!==m&&(y.setAttribute("tabindex","-1"),y.classList.remove("keyboard-focused"))}),p[m].classList.add("keyboard-focused"),p[m].focus()}}},n=c=>{const u=document.createElement("div");u.setAttribute("aria-live","assertive"),u.setAttribute("aria-atomic","true"),u.className="sr-only",u.textContent=c,document.body.appendChild(u),setTimeout(()=>{document.body.contains(u)&&document.body.removeChild(u)},1e3)},a=(c=null)=>{let u=c;if(u||(u=document.querySelector(".rcb-chat-window"),u||(u=document.querySelector('[class*="rcb-chat"]')),u||(u=document.querySelector(".qa-bot"))),!u)return;const d=u.closest(".embedded-qa-bot")!==null,A=Array.from(u.querySelectorAll(".rcb-message-container, .rcb-bot-message-container, .rcb-user-message-container")).filter(y=>y.offsetParent!==null);if(A.length===0)return;const p=A[A.length-1],h=Array.from(p.querySelectorAll(".rcb-options-container")).filter(y=>y.offsetParent!==null);let m=[];if(h.length>0){const y=h[h.length-1];m=Array.from(y.querySelectorAll(".rcb-options"))}if(m.length===0){let y=p.querySelector(".rcb-checkbox-container");if(!y&&u&&(y=u.querySelector(".rcb-checkbox-container")),y&&y.offsetParent!==null){const C=Array.from(y.querySelectorAll(".rcb-checkbox-row-container")).filter(D=>D.offsetParent!==null&&D.style.display!=="none");if(C.length>0){const D=y.querySelector(".rcb-checkbox-next-button"),Q=[...C];if(D&&D.offsetParent!==null&&Q.push(D),Q.forEach((E,I)=>{E.setAttribute("tabindex",I===0?"0":"-1"),I===0?E.classList.add("keyboard-focused"):E.classList.remove("keyboard-focused")}),C.length>1){y.querySelectorAll(".keyboard-nav-hint").forEach(I=>I.remove());const E=document.createElement("div");E.className="keyboard-nav-hint",E.textContent="Use arrow keys ↕ to navigate, Enter to select/deselect, or click any option",E.style.cssText="font-size: 12px !important; color: #666 !important; margin-bottom: 8px !important; font-style: italic !important; display: block !important;",y.insertBefore(E,y.firstChild)}return void setTimeout(()=>{Q[0]&&Q[0].offsetParent!==null&&!d&&Q[0].focus()},150)}}}if(m.length>0){if(m.forEach((y,C)=>{const D=C===0?"0":"-1";y.setAttribute("tabindex",D),y.setAttribute("role","option"),y.setAttribute("aria-posinset",C+1),y.setAttribute("aria-setsize",m.length),C===0?y.classList.add("keyboard-focused"):y.classList.remove("keyboard-focused")}),m.length>1){const y=h.length>0?h[h.length-1]:null;if(y){y.querySelectorAll(".keyboard-nav-hint").forEach(D=>D.remove());const C=document.createElement("div");C.className="keyboard-nav-hint",C.textContent="Use arrow keys ↕ to navigate, Enter to select, or click any option",C.style.cssText="font-size: 12px !important; color: #666 !important; margin-bottom: 8px !important; font-style: italic !important; display: block !important;",y.insertBefore(C,y.firstChild)}}else{const y=h.length>0?h[h.length-1]:null;y&&y.querySelectorAll(".keyboard-nav-hint").forEach(C=>C.remove())}setTimeout(()=>{m[0]&&m[0].offsetParent!==null&&!d&&(m[0].focus(),m.length>1&&n(`${m.length} options available. Use arrow keys to navigate.`))},200)}},i=new MutationObserver(c=>{c.forEach(u=>{var d,A;if(u.type==="childList"){const p=Array.from(u.addedNodes),h=p.some(y=>{var C,D,Q,E;return y.nodeType===Node.ELEMENT_NODE&&(((C=y.classList)==null?void 0:C.contains("rcb-options-container"))||((D=y.classList)==null?void 0:D.contains("rcb-options"))||((Q=y.querySelector)==null?void 0:Q.call(y,".rcb-options-container"))||((E=y.querySelector)==null?void 0:E.call(y,".rcb-options")))}),m=p.some(y=>{var C,D;return y.nodeType===Node.ELEMENT_NODE&&(((C=y.classList)==null?void 0:C.contains("rcb-checkbox-container"))||((D=y.querySelector)==null?void 0:D.call(y,".rcb-checkbox-container")))});if(h||m){let y=u.target;for(;y&&!((d=y.classList)!=null&&d.contains("qa-bot"))&&!((A=y.classList)!=null&&A.contains("rcb-chat-window"));)y=y.parentElement;(y||document).querySelectorAll(".rcb-options[tabindex], .rcb-checkbox-row-container[tabindex], .rcb-checkbox-next-button[tabindex]").forEach(C=>{C.setAttribute("tabindex","-1"),C.classList.remove("keyboard-focused")}),setTimeout(()=>a(y),100)}}})});i.observe(document.body,{childList:!0,subtree:!0}),document.addEventListener("keydown",e),a();const o=setInterval(()=>{document.querySelectorAll(".qa-bot").forEach(c=>{const u=c.querySelectorAll(".rcb-options-container .rcb-options").length>0,d=c.querySelectorAll(".rcb-checkbox-row-container").length>0;if(u){const A=c.querySelectorAll(".rcb-options[tabindex]").length;c.querySelectorAll(".rcb-options").length>A&&a(c)}if(d){const A=c.querySelectorAll(".rcb-checkbox-row-container[tabindex]").length;c.querySelectorAll(".rcb-checkbox-row-container").length>A&&a(c)}})},1e3);return()=>{document.removeEventListener("keydown",e),i.disconnect(),clearInterval(o)}},[]),null),Mt=[];for(let e=0;e<256;++e)Mt.push((e+256).toString(16).slice(1));let Fc;const Gg=new Uint8Array(16);var Xd={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Jd(e,n,a){var o;if(Xd.randomUUID&&!e)return Xd.randomUUID();const i=(e=e||{}).random??((o=e.rng)==null?void 0:o.call(e))??function(){if(!Fc){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Fc=crypto.getRandomValues.bind(crypto)}return Fc(Gg)}();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=15&i[6]|64,i[8]=63&i[8]|128,function(c,u=0){return(Mt[c[u+0]]+Mt[c[u+1]]+Mt[c[u+2]]+Mt[c[u+3]]+"-"+Mt[c[u+4]]+Mt[c[u+5]]+"-"+Mt[c[u+6]]+Mt[c[u+7]]+"-"+Mt[c[u+8]]+Mt[c[u+9]]+"-"+Mt[c[u+10]]+Mt[c[u+11]]+Mt[c[u+12]]+Mt[c[u+13]]+Mt[c[u+14]]+Mt[c[u+15]]).toLowerCase()}(i)}const Kd=()=>"qa_bot_session_".concat(Jd()),Vg="#1a5b6e",Xg="#107180",Jg="Arial, sans-serif",$d="Q&A Bot",Kg="/chat-icon.svg",$g="Type your question here...",Zg="Select an option to continue",qg=!1,em="Ask me a question!",Zd="/login",tm={general:{showHeader:!0,showFooter:!0},tooltip:{mode:"CLOSE"},chatInput:{disabled:!1,characterLimit:1e3,showCharacterCount:!1,allowNewline:!0,blockSpam:!1},chatWindow:{defaultOpen:!1,showScrollbar:!1},botBubble:{simulateStream:!0,streamSpeed:10,showAvatar:!1},userBubble:{showAvatar:!1},notification:{disabled:!0,showCount:!1},audio:{disabled:!0},emoji:{disabled:!0},fileAttachment:{disabled:!0}},Lc=R.forwardRef((e,n)=>{var a,i;const{apiKey:o,qaEndpoint:c,ratingEndpoint:u,welcomeMessage:d,open:A,onOpenChange:p,isLoggedIn:h,allowAnonAccess:m=!1,primaryColor:y,secondaryColor:C,botName:D,logo:Q,placeholder:E,errorMessage:I,embedded:_,footerText:B,footerLink:U,tooltipText:j,loginUrl:z,customFlow:W}=e,te=R.useRef("bot_".concat(Math.random().toString(36).substr(2,9))),J=R.useRef(Kd()),Y=R.useRef(!1),ee=R.useRef({getSessionId:()=>J.current,isResetting:()=>Y.current}),[Z,ie]=R.useState(h);R.useEffect(()=>{ie(h)},[h]);const ue=R.useMemo(()=>{const M=Object.assign({},tm);M.general=Object.assign(Object.assign({},M.general),{primaryColor:y||Vg,secondaryColor:C||Xg,fontFamily:Jg,embedded:_!==void 0?_:qg});const fe=Z===!1?R.createElement(Yd,{key:"login-button",loginUrl:z||Zd,isHeaderButton:!0}):R.createElement(Ug,{key:"user-icon"});M.header={title:D||$d,showAvatar:!0,avatar:Q||Kg,buttons:[fe,dt.CLOSE_CHAT_BUTTON]},M.chatInput=Object.assign(Object.assign({},M.chatInput),{disabled:!1,enabledPlaceholderText:E||$g,disabledPlaceholderText:I||Zg}),M.tooltip=Object.assign(Object.assign({},M.tooltip),{text:j||em});const O=B?U?R.createElement("a",{href:U,target:"_blank",rel:"noopener noreferrer",key:"footer-link"},B):R.createElement("span",{key:"footer-text"},B):null;return M.footer={text:O,buttons:[R.createElement(Wg,{key:"new-chat-button"})]},M},[y,C,D,Q,E,I,_,j,Z,z,B,U]),se=R.useRef(null),xe=function(M){let fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return R.useMemo(()=>{const O=(de,Ee)=>{if(M.current){const he=getComputedStyle(M.current).getPropertyValue(de);if(he&&he.trim()!=="")return he.trim();if(M.current.parentElement){const ve=getComputedStyle(M.current.parentElement).getPropertyValue(de);if(ve&&ve.trim()!=="")return ve.trim()}}return Ee};return{primaryColor:O("--primaryColor",fe.primaryColor),secondaryColor:O("--secondaryColor",fe.secondaryColor),fontFamily:O("--fontFamily",fe.fontFamily)}},[M,fe])}(se,ue.general);((M,fe)=>{R.useEffect(()=>{fe.current&&(M?fe.current.classList.add("bot-logged-in"):fe.current.classList.remove("bot-logged-in"))},[M,fe])})(Z!==!1,se),(M=>{let{settings:fe,themeColors:O}=M;R.useEffect(()=>{O&&(Object.entries(O).forEach(de=>{let[Ee,he]=de;he&&document.documentElement.style.setProperty("--".concat(Ee),he)}),O.primaryColor&&document.documentElement.style.setProperty("--rcb-header-background",O.primaryColor),O.secondaryColor&&document.documentElement.style.setProperty("--rcb-header-background-hover",O.secondaryColor))},[O]),R.useEffect(()=>{var de,Ee,he;!((de=fe.header)===null||de===void 0)&&de.title&&typeof fe.header.title=="string"&&(fe.header.title=R.createElement("div",{key:"header-title"},R.createElement("h1",{className:"sr-only"},fe.header.title),R.createElement("span",{"aria-hidden":"true"},fe.header.title))),!((Ee=fe.general)===null||Ee===void 0)&&Ee.embedded&&fe.chatWindow&&(fe.chatWindow.defaultOpen=!0),fe.device={desktopEnabled:!0,mobileEnabled:!0,applyMobileOptimizations:!1},fe.chatHistory={disabled:!1},fe.chatButton=Object.assign(Object.assign({},fe.chatButton),{icon:(he=fe.header)===null||he===void 0?void 0:he.avatar}),fe.event={rcbToggleChatWindow:!0}},[fe])})({settings:ue,themeColors:xe});const ge=R.useMemo(()=>{const M=(O=>{let{endpoint:de,ratingEndpoint:Ee,apiKey:he,sessionId:ve,isResetting:Te=()=>!1,isLoggedIn:Qe,allowAnonAccess:tt=!1,loginUrl:Le="/login"}=O;if(Qe===!1&&!tt)return{qa_loop:{message:"To ask questions, please log in first.",component:R.createElement(Yd,{loginUrl:Le}),chatDisabled:!0,path:"qa_loop"}};let Je=null,qe=!1;if(!de)throw new Error("Q&A endpoint is required");return{qa_loop:{message:async ft=>{const{userInput:Ne}=ft;if(Te&&Te()||!Ne||Ne.trim()==="")return null;if(Ne==="👍 Helpful"||Ne==="👎 Not helpful"){if(Ee&&Je)try{const We=Ne==="👍 Helpful",ct={"Content-Type":"application/json"};he&&(ct["X-API-KEY"]=he);const ht=ve();ht&&(ct["X-Session-ID"]=ht,ct["X-Query-ID"]=Je),await fetch(Ee,{method:"POST",headers:ct,body:JSON.stringify({sessionId:ht,queryId:Je,rating:We?1:0})})}catch(We){console.error("Error sending feedback:",We)}return"Thanks for the feedback! Feel free to ask another question."}try{const We=Jd();Je=We;const ct={"Content-Type":"application/json"};he&&(ct["X-API-KEY"]=he);const ht=ve();ht&&(ct["X-Session-ID"]=ht,ct["X-Query-ID"]=We);const ln=await fetch(de,{method:"POST",headers:ct,body:JSON.stringify({query:Ne})});if(!ln.ok)throw new Error("API returned ".concat(ln.status));const pt=await ln.json(),Ft=pt.response||pt.answer||pt.text||pt.message;if(!Ft)throw new Error("Invalid response format from API");const jt=(Gt=>{if(!Gt||typeof Gt!="string")return Gt;let gt=Gt.replace(/\[(https?:\/\/[^\s]+?)\]/gi,"[$1]($1)");return gt=gt.replace(new RegExp(`(?<!\\]\\(|href=["']|\\[)https?:\\/\\/[^\\s[\\]()]+`,"gi"),st=>{let Xe=st,Vt="";const cn=Xe.match(/([.,;:!?]+)$/);return cn&&(Vt=cn[1],Xe=Xe.slice(0,-Vt.length)),"[".concat(Xe,"](").concat(Xe,")").concat(Vt)}),gt})(Ft);return await ft.injectMessage(jt),qe=!0,setTimeout(async()=>{await ft.injectMessage("Feel free to ask another question.")},100),null}catch(We){return console.error("Error in Q&A flow:",We),"I apologize, but I'm having trouble processing your question. Please try again later."}},options:ft=>Te&&Te()||ft.userInput==="👍 Helpful"||ft.userInput==="👎 Not helpful"?[]:Ee&&qe?["👍 Helpful","👎 Not helpful"]:[],renderMarkdown:["BOT"],chatDisabled:!1,path:"qa_loop"}}})({endpoint:c,ratingEndpoint:u,apiKey:o,sessionId:ee.current.getSessionId,isResetting:ee.current.isResetting,isLoggedIn:Z,allowAnonAccess:m,loginUrl:z||Zd});return Object.assign(Object.assign({start:{message:d,transition:{duration:0},path:"qa_loop"}},M),W||{})},[o,c,u,d,Z,m,z,W]),me=R.useMemo(()=>{return[()=>Hp(fe),Hg(),()=>Ng(M)];var M,fe},[]);return R.useEffect(()=>{const M=()=>{const O=document.querySelector(".rcb-chat-window");if(!O)return;const de=O.querySelector(".rcb-send-button");de&&(de.hasAttribute("tabindex")||de.setAttribute("tabindex","0"),de.hasAttribute("data-keyboard-enabled")||(de.setAttribute("data-keyboard-enabled","true"),de.addEventListener("keydown",Ee=>{if(Ee.key==="Enter"||Ee.key===" "){Ee.preventDefault();const he=de&&Object.keys(de).find(Te=>Te.startsWith("__reactProps"));if(he){const Te=de[he],Qe=Te==null?void 0:Te.onMouseDown;if(Qe&&typeof Qe=="function")return void Qe(Ee)}const ve=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});de.dispatchEvent(ve)}})))},fe=setInterval(M,1e3);return M(),()=>clearInterval(fe)},[]),Yg(),R.useEffect(()=>{if(!_&&p){const M=fe=>{const O=fe.data.newState;p(O)};return window.addEventListener("rcb-toggle-chat-window",M),()=>{window.removeEventListener("rcb-toggle-chat-window",M)}}},[_,p]),R.createElement("div",{className:"qa-bot ".concat(!((a=ue.general)===null||a===void 0)&&a.embedded?"embedded-qa-bot":""),ref:se,role:"region","aria-label":D||$d},R.createElement(jg,{resetSession:()=>{Y.current=!0,J.current=Kd()},clearResettingFlag:()=>{Y.current=!1}},R.createElement(yA,null,R.createElement("div",null,R.createElement(Wd,{ref:n,embedded:((i=ue.general)===null||i===void 0?void 0:i.embedded)||!1,currentOpen:A||!1,enabled:Z!==!1,onSetEnabled:M=>ie(!!M&&void 0)}),R.createElement(bp,{key:"chatbot-".concat(te.current,"-").concat(Z),settings:ue,flow:ge,plugins:me}),R.createElement("div",{role:"status","aria-live":"polite","aria-label":"Bot response updates",className:"sr-only",id:"bot-live-region"}),R.createElement("div",{id:"chat-input-help",className:"sr-only"},"Type your message and press Enter to send. Use arrow keys to navigate through response options.")))))});Lc.displayName="QABot",zu('.rcb-chat-window{height:800px!important;max-height:80vh!important;max-width:100%;width:550px!important}.rcb-chat-window .rcb-chat-header{align-items:center;display:flex;flex-direction:row;font-weight:700}.rcb-chat-window a{color:#000;font-weight:700;text-decoration:underline}.rcb-chat-window a:hover{color:var(--primaryColor,#107180)}.rcb-chat-window .rcb-bot-message a{color:#fff;text-decoration:none}.rcb-chat-window .rcb-bot-message a:hover{text-decoration:underline}.rcb-chat-window .rcb-chat-input-textarea{overflow-y:auto}.rcb-chat-window .rcb-chat-footer-container{font-size:10px}.qa-bot .user-login-icon{display:none!important}.qa-bot.bot-logged-in .user-login-icon{display:flex!important;transform:scale(1.3) translateY(-2px)}.embedded-qa-bot .rcb-chat-window{max-width:100%;width:100%!important}.qa-bot.hidden{display:none}.embedded-qa-bot .rcb-bot-message,.embedded-qa-bot .rcb-user-message{max-width:90%!important;word-break:break-word}.embedded-qa-bot .rcb-chat-input-textarea{width:100%!important}.qa-bot-container{max-width:100%;width:100%}@keyframes phone-ring{0%{transform:translateX(0) translateY(0) rotate(0deg)}2%{transform:translateX(0) translateY(-8px) rotate(-2deg)}4%{transform:translateX(0) translateY(-6px) rotate(2deg)}6%{transform:translateX(0) translateY(-8px) rotate(-1deg)}8%{transform:translateX(0) translateY(-6px) rotate(1deg)}10%{transform:translateX(0) translateY(-8px) rotate(-2deg)}12%{transform:translateX(0) translateY(-6px) rotate(2deg)}20%{transform:translateX(0) translateY(0) rotate(0deg)}30%{transform:translateX(0) translateY(0) rotate(0deg)}40%{transform:translateX(0) translateY(0) rotate(0deg)}49%{transform:translateX(0) translateY(0) rotate(0deg)}50%{transform:translateX(0) translateY(-8px) rotate(-2deg)}52%{transform:translateX(0) translateY(-6px) rotate(2deg)}54%{transform:translateX(0) translateY(-8px) rotate(-1deg)}56%{transform:translateX(0) translateY(-6px) rotate(1deg)}58%{transform:translateX(0) translateY(-8px) rotate(-2deg)}60%{transform:translateX(0) translateY(-6px) rotate(2deg)}70%{transform:translateX(0) translateY(0) rotate(0deg)}to{transform:translateX(0) translateY(0) rotate(0deg)}}@media (max-width:768px){.rcb-chat-window{max-height:calc(100vh - 100px)!important;max-width:calc(100vw - 40px)!important;width:550px!important}.embedded-chat-container.open{height:400px}.embedded-chat-closed{font-size:14px;height:40px}.embedded-chat-open-btn{font-size:12px;padding:3px 10px}.rcb-bot-message,.rcb-user-message{max-width:85%!important}.rcb-chat-input-textarea{font-size:16px!important;min-height:44px!important}.rcb-chat-header{padding:12px 16px!important}}@media (max-width:480px){.rcb-chat-window{bottom:10px!important;left:10px!important;max-height:calc(100vh - 80px)!important;max-width:calc(100vw - 20px)!important;right:10px!important;width:calc(100vw - 20px)!important}.embedded-chat-container.open{height:350px}.rcb-bot-message,.rcb-user-message{margin-bottom:8px!important;max-width:90%!important}.rcb-chat-header{font-size:14px!important;padding:8px 12px!important}.rcb-chat-button{bottom:20px!important;height:50px!important;right:20px!important;width:50px!important}.rcb-chat-footer-container{font-size:9px!important;padding:8px 12px!important}}@media (max-width:360px){.rcb-chat-window{left:5px!important;max-width:calc(100vw - 10px)!important;right:5px!important;width:calc(100vw - 10px)!important}.rcb-chat-header{font-size:13px!important;padding:6px 8px!important}}.rcb-checkbox-container{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin-left:16px!important;max-width:100%!important;padding-top:12px!important}.rcb-checkbox-row-container{align-items:center!important;background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--primaryColor,#107180)!important;cursor:pointer!important;display:flex!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;margin:0!important;max-height:auto!important;min-height:auto!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-checkbox-row-container:hover{background-color:#e8f4f8!important;border-color:var(--primaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.rcb-checkbox-row-container[data-checked=true]{background-color:var(--primaryColor,#107180)!important;border-color:var(--primaryColor,#107180)!important;color:#fff!important}.rcb-checkbox-row{margin-left:0!important}.rcb-checkbox-mark{height:14px!important;margin-right:6px!important;width:14px!important}.rcb-checkbox-label{font-size:13px!important;margin:0!important;white-space:nowrap!important}.rcb-checkbox-next-button{align-items:center!important;background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--secondaryColor,#107180)!important;cursor:pointer!important;display:flex!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;justify-content:center!important;line-height:24px!important;margin:0!important;max-height:auto!important;min-height:auto!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-checkbox-next-button:hover{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.sr-only{clip:rect(0,0,0,0)!important;border:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}.rcb-chat-input-send-button:focus,.rcb-chat-input-textarea:focus{outline:2px solid var(--primaryColor,#107180)!important;outline-offset:2px!important}.rcb-user-message{word-wrap:break-word!important;overflow:hidden!important;word-break:break-word!important}:focus-visible{outline:2px solid var(--primaryColor,#107180)!important;outline-offset:2px!important}.rcb-options-container{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:8px!important;margin:16px!important;padding:0!important}.rcb-options{background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--secondaryColor,#107180)!important;cursor:pointer!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;outline:none!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-options:hover{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.rcb-checkbox-next-button.keyboard-focused,.rcb-checkbox-next-button:focus,.rcb-checkbox-next-button:focus-visible,.rcb-checkbox-row-container.keyboard-focused,.rcb-checkbox-row-container:focus,.rcb-checkbox-row-container:focus-visible,.rcb-options.keyboard-focused,.rcb-options:focus,.rcb-options:focus-visible{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;outline:none!important}.rcb-options:active{background-color:var(--secondaryColor,#107180)!important;border-color:var(--secondaryColor,#107180)!important;color:#fff!important;transform:translateY(0)!important}.keyboard-nav-hint{color:#666!important;font-size:12px!important;font-style:italic!important;margin-bottom:8px!important}@media (prefers-reduced-motion:reduce){.keyboard-nav-hint{display:none!important}}.rcb-options-container [role=button][tabindex="0"],.rcb-options-container button[tabindex="0"]{position:relative!important}.rcb-options-container [role=button][tabindex="0"]:after,.rcb-options-container button[tabindex="0"]:after{color:var(--secondaryColor,#107180)!important;content:"←"!important;font-size:16px!important;opacity:0!important;position:absolute!important;right:12px!important;top:50%!important;transform:translateY(-50%)!important;transition:opacity .2s ease!important}.rcb-options-container [role=button][tabindex="0"]:focus:after,.rcb-options-container button[tabindex="0"]:focus:after{opacity:1!important}.rcb-chat-input-send-button{cursor:pointer!important;opacity:1!important;pointer-events:auto!important;visibility:visible!important}.rcb-chat-input-send-button:not([tabindex]){-webkit-user-select:none;-moz-user-select:none;user-select:none}.rcb-chat-input-container [onclick],.rcb-chat-input-container [role=button],.rcb-chat-input-container div[style*=cursor],.rcb-chat-input-container svg:last-child,.rcb-chat-input-container>div:last-child{tabindex:0!important;cursor:pointer!important}.rcb-chat-footer{margin-top:4px!important;padding-top:0!important}.rcb-chat-footer-container{align-items:center!important;display:flex!important;margin-top:4px!important;padding-top:4px!important}.rcb-chat-footer-container button{order:1!important}.rcb-chat-footer-container a[href*=qa-bot-core]{tab-index:0!important;order:2!important}.rcb-chat-footer-container a[href*=feedback]{tab-index:0!important;order:3!important}@media (prefers-contrast:high){.rcb-chat-window a{background-color:#fff!important;border:1px solid #000!important;color:#000!important}}@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.rcb-chat-input-textarea{user-select:text!important}.rcb-chat-body-container,.rcb-chat-input-textarea,.rcb-chat-window{touch-action:pan-y!important}.embedded-qa-bot,.rcb-chat-window{-webkit-overflow-scrolling:touch!important}.embedded-qa-bot .rcb-chat-input-textarea{touch-action:pan-y!important;user-select:text!important}.embedded-qa-bot .rcb-chat-body-container,.embedded-qa-bot .rcb-chat-window{touch-action:pan-y!important}.rcb-chat-header-container{background:var(--primaryColor,#1a5b6e)!important;background:linear-gradient(135deg,var(--primaryColor,#1a5b6e) 0,var(--secondaryColor,#107180) 100%)!important}.rcb-toggle-button{align-items:center!important;background:var(--primaryColor,#1a5b6e)!important;display:flex!important;justify-content:center!important}.rcb-toggle-button svg{stroke:#fff!important;color:#fff!important}.rcb-toggle-button *,.rcb-toggle-button img,.rcb-toggle-button svg,.rcb-toggle-button>*{box-sizing:border-box!important;height:50px!important;left:0!important;margin:0 auto!important;max-height:50px!important;max-width:50px!important;min-height:50px!important;min-width:50px!important;padding:2px!important;position:relative!important;top:0!important;width:50px!important}.rcb-send-button{background-color:var(--primaryColor,#1a5b6e)!important}',{insertAt:"top"});const nm=()=>{const[e,n]=R.useState(!1),a=()=>typeof navigator<"u"&&navigator.mediaDevices!==void 0&&typeof navigator.mediaDevices.getDisplayMedia=="function";return{captureScreenshot:async()=>{if(!a())throw new Error("Screen capture is not available in this environment");try{n(!0);const i=await navigator.mediaDevices.getDisplayMedia({video:{displaySurface:"browser",cursor:"always",width:{ideal:1920},height:{ideal:1080}},audio:!1}),o=document.createElement("video");o.srcObject=i,await new Promise(h=>{o.onloadedmetadata=()=>{o.play(),h()}});const c=document.createElement("canvas");c.width=o.videoWidth,c.height=o.videoHeight;const u=c.getContext("2d");if(!u)throw new Error("Could not get canvas context");u.drawImage(o,0,0,c.width,c.height);const d=await new Promise(h=>c.toBlob(h,"image/png"));if(!d)throw new Error("Could not create image blob");const A=new Date().toISOString().replace(/[:.]/g,"-"),p=new File([d],"screenshot-".concat(A,".png"),{type:"image/png"});return i.getTracks().forEach(h=>h.stop()),n(!1),p}catch(i){throw console.error("Error capturing screenshot:",i),n(!1),i}},isCapturing:e,isScreenCaptureAvailable:a()}},rm=e=>R.createElement(Gd,e,R.createElement("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),R.createElement("polyline",{points:"17 8 12 3 7 8"}),R.createElement("line",{x1:"12",y1:"3",x2:"12",y2:"15"})),om=e=>new Promise((n,a)=>{const i=new FileReader;i.onload=()=>{if(typeof i.result!="string")return void a(new Error("Failed to read file ".concat(e.name)));const o=i.result.split(",")[1];n({fileName:e.name,contentType:e.type,size:e.size,fileData:o})},i.onerror=()=>a(new Error("Failed to read file ".concat(e.name))),i.readAsDataURL(e)}),am=e=>Promise.all(e.map(om)),im=e=>e<1024?"".concat(e," B"):e<1048576?"".concat((e/1024).toFixed(1)," KB"):"".concat((e/1048576).toFixed(1)," MB"),Xs=e=>{let{onFileUpload:n,maxSizeMB:a=10,acceptedTypes:i="image/*,application/pdf,text/*,.doc,.docx",enableScreenshot:o=!1,className:c}=e;const[u,d]=R.useState(!1),[A,p]=R.useState([]),[h,m]=R.useState(null),y=R.useRef(null),{captureScreenshot:C,isCapturing:D,isScreenCaptureAvailable:Q}=nm(),E=z=>{const W=document.createElement("div");W.setAttribute("aria-live","assertive"),W.setAttribute("aria-atomic","true"),W.className="sr-only",W.textContent=z,document.body.appendChild(W),setTimeout(()=>document.body.removeChild(W),1e3)},I=z=>{if(!z||z.length===0)return void console.warn("FileUploadComponent: No valid files provided to handleFiles");let W;try{W=Array.from(z)}catch(ee){return console.error("FileUploadComponent: Error converting files to array:",ee),void E("Error processing selected files. Please try again.")}const te=[...A,...W];p(te);const J=W.length,Y=W.map(ee=>ee.name).join(", ");E("".concat(J," file").concat(J>1?"s":""," selected: ").concat(Y)),setTimeout(()=>{const ee=document.querySelector(".rcb-chat-content");ee&&(ee.scrollTop=ee.scrollHeight)},100),n&&n(te)},_=z=>{z.preventDefault(),z.stopPropagation(),z.type==="dragenter"||z.type==="dragover"?d(!0):z.type==="dragleave"&&d(!1)},B=()=>{try{y.current&&y.current.click()}catch(z){console.error("FileUploadComponent: Error in handleButtonClick:",z),E("Error opening file selection dialog. Please try again.")}},U=()=>{m(null)},j=o&&Q;return R.createElement("div",{className:"file-upload-container ".concat(c||""),style:{padding:"16px",margin:"8px 0"}},j&&R.createElement("div",{style:{display:"flex",justifyContent:"center",marginBottom:"10px"}},R.createElement("button",{onClick:z=>{z.preventDefault(),(async()=>{try{const W=await C();I([W]),E("Screenshot captured successfully")}catch{E("Error capturing screenshot. Please try again.")}})()},disabled:D,"aria-describedby":"screenshot-help","aria-label":D?"Taking screenshot, please wait":"Take a screenshot to attach",style:{display:"flex",alignItems:"center",gap:"8px",backgroundColor:"#107180",color:"white",border:"none",borderRadius:"5px",padding:"8px 12px",cursor:D?"not-allowed":"pointer",fontSize:"14px",fontWeight:"500",boxShadow:"0 1px 3px rgba(0,0,0,0.2)"}},R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},R.createElement("path",{d:"M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"}),R.createElement("circle",{cx:"12",cy:"13",r:"4"})),D?"Taking screenshot...":"Take screenshot..."),R.createElement("span",{id:"screenshot-help",className:"sr-only"},"Captures the current screen and adds it as an attachment")),R.createElement("div",{className:"file-upload-dropzone ".concat(u?"active":""),onDragEnter:_,onDragLeave:_,onDragOver:_,onDrop:z=>{var W;z.preventDefault(),z.stopPropagation(),d(!1);try{!((W=z.dataTransfer)===null||W===void 0)&&W.files&&z.dataTransfer.files.length>0&&I(z.dataTransfer.files)}catch(te){console.error("FileUploadComponent: Error in handleDrop:",te),E("Error processing dropped files. Please try again.")}},role:"button",tabIndex:0,"aria-label":"File upload area. Click to select files or drag and drop files here.","aria-describedby":"upload-instructions",onKeyDown:z=>{z.key!=="Enter"&&z.key!==" "||(z.preventDefault(),B())},style:{padding:"20px",border:"2px dashed #ccc",borderRadius:"8px",backgroundColor:u?"#f0f8ff":"#fafafa",transition:"all 0.3s ease"}},R.createElement("input",{ref:y,type:"file",className:"file-input",onChange:z=>{var W;try{!((W=z.target)===null||W===void 0)&&W.files&&z.target.files.length>0&&I(z.target.files)}catch(te){console.error("FileUploadComponent: Error in handleFileSelect:",te),E("Error processing selected files. Please try again.")}},multiple:!0,style:{display:"none"},"aria-label":"Select files to upload",accept:i}),R.createElement("div",{className:"upload-content",onClick:B,style:{cursor:"pointer",flexDirection:"column",alignItems:"center",display:"flex",textAlign:"center",padding:"12px"}},R.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px"}},R.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"10px"}},R.createElement(rm,null),R.createElement("p",{style:{margin:0,fontWeight:"bold"}},"Upload Files")),R.createElement("p",{id:"upload-instructions",style:{margin:0,fontSize:"14px",color:"#666"}},"Drag and drop files here or click to select. (Max ",a,"MB each)")),A.length>0&&R.createElement("div",{className:"selected-files",style:{display:"flex",flexWrap:"wrap",gap:"8px",marginTop:"12px",alignItems:"center"}},R.createElement("span",{style:{fontWeight:400,color:"#888",fontSize:"13px",marginRight:"8px",alignSelf:"center"}},"Selected files:"),A.map((z,W)=>R.createElement("span",{key:W,style:{background:"#fff",color:"#107180",borderRadius:"5px",padding:"4px 12px",fontSize:"14px",marginRight:"4px",marginBottom:"4px",border:"1px solid #ccc",display:"flex",alignItems:"center",gap:"6px",cursor:"pointer"},onClick:te=>{te.stopPropagation(),(J=>{m(J)})(z)}},R.createElement("span",{onClick:te=>{te.stopPropagation(),(J=>{const Y=A.filter((ee,Z)=>Z!==J);p(Y),n&&n(Y)})(W)},style:{cursor:"pointer",color:"#888",fontWeight:"bold",fontSize:"15px",marginRight:"4px",userSelect:"none",lineHeight:1},title:"Remove file","aria-label":"Remove ".concat(z.name)},"×"),z.name," (",im(z.size),")"))))),(()=>{if(!h)return null;const z=h.type.startsWith("image/"),W=h.type.startsWith("text/"),te=h.type==="application/pdf";return R.createElement("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.7)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3},onClick:U},R.createElement("div",{style:{backgroundColor:"white",padding:"20px",borderRadius:"8px",maxWidth:"90%",maxHeight:"90%",overflow:"auto",position:"relative"},onClick:J=>J.stopPropagation()},R.createElement("button",{onClick:U,style:{position:"absolute",top:"10px",right:"10px",background:"none",border:"none",fontSize:"24px",cursor:"pointer",color:"#666"}},"×"),R.createElement("h3",{style:{marginTop:0,marginBottom:"16px"}},h.name),z&&R.createElement("img",{src:URL.createObjectURL(h),alt:h.name,style:{maxWidth:"100%",maxHeight:"70vh"}}),W&&R.createElement("pre",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word",maxHeight:"70vh",overflow:"auto",padding:"16px",backgroundColor:"#f5f5f5",borderRadius:"4px"}},URL.createObjectURL(h)),te&&R.createElement("iframe",{src:URL.createObjectURL(h),style:{width:"100%",height:"70vh",border:"none"},title:h.name}),!z&&!W&&!te&&R.createElement("div",{style:{padding:"20px",textAlign:"center"}},"Preview not available for this file type")))})())};function sm(e,n){if(!n||Object.keys(n).length===0)return e;const a={};for(const[i,o]of Object.entries(e)){let c=Object.assign({},o);if(c.chatDisabled===void 0){const u=!(!c.options&&!c.checkboxes);c.chatDisabled=u}a[i]=c}return a}const lm=R.forwardRef((e,n)=>{const[a,i]=R.useState(e.defaultOpen||!1),o=R.useRef(null);return R.useImperativeHandle(n,()=>({addMessage:c=>{var u;(u=o.current)===null||u===void 0||u.addMessage(c)},setBotEnabled:c=>{var u;(u=o.current)===null||u===void 0||u.setBotEnabled(c)},openChat:()=>{var c;i(!0),(c=o.current)===null||c===void 0||c.openChat()},closeChat:()=>{var c;i(!1),(c=o.current)===null||c===void 0||c.closeChat()},toggleChat:()=>{var c;i(u=>!u),(c=o.current)===null||c===void 0||c.toggleChat()}}),[]),R.createElement(Lc,{ref:o,apiKey:e.apiKey,qaEndpoint:e.qaEndpoint,ratingEndpoint:e.ratingEndpoint,welcomeMessage:e.welcomeMessage,primaryColor:e.primaryColor,secondaryColor:e.secondaryColor,botName:e.botName,logo:e.logo,placeholder:e.placeholder,errorMessage:e.errorMessage,embedded:e.embedded,isLoggedIn:e.isLoggedIn,allowAnonAccess:e.allowAnonAccess,open:a,onOpenChange:i,footerText:e.footerText,footerLink:e.footerLink,tooltipText:e.tooltipText})});lm.displayName="ProgrammaticQABot";const eo={QA_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/chat/api/",RATING_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/chat/rating/",METRICS_API_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/xdmod/chat/api/",METRICS_RATING_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/xdmod/chat/rating/",METRICS_QUESTIONS_URL:"https://metrics.access-ci.org/qa_bot_faq",NETLIFY_BASE_URL:"https://access-jsm-api.netlify.app",DEFAULT_API_KEY:"4nn5l4T4TnkMdzsK0AwAtnGRcheBDnjawuAT42LaOLc"},Dr={BOT_NAME:"ACCESS Q&A",LOGO:"https://support.access-ci.org/themes/contrib/asp-theme/images/icons/ACCESS-arrrow.svg",WELCOME_MESSAGE:"Hello! What can I help you with?",WELCOME_MESSAGE_LOGGED_OUT:"To ask questions, please log in.",LOGIN_URL:"/login",PRIMARY_COLOR:"#1a5b6e",SECONDARY_COLOR:"#107180",TOOLTIP:"Ask me about ACCESS! 😊"},qd={SESSION_ID:"access-qa-bot-session-id"};function cm({welcome:e,setTicketForm:n,isLoggedIn:a}){return{start:{message:e,options:["Ask a question about ACCESS","Open a Help Ticket","Usage and performance of ACCESS resources (XDMoD)","Report a security issue"],path:i=>i.userInput==="Ask a question about ACCESS"?a?"go_ahead_and_ask":"qa_loop":i.userInput==="Open a Help Ticket"?(n({}),"help_ticket"):i.userInput==="Usage and performance of ACCESS resources (XDMoD)"?"metrics_intro":i.userInput==="Report a security issue"?(n({}),"security_incident"):"start"},go_ahead_and_ask:{message:"Go ahead and ask your question! I'll do my best to help.",path:"qa_loop"}}}let Qc=null;function um(e){Qc=e}function Ie(){return Qc?Qc.ticketForm||{}:(console.warn("Form context not available, returning empty form"),{})}function Rt(e={}){const n=Ie();return{...n,email:e.email||n.email,name:e.name||n.name,accessId:e.accessId||n.accessId}}function _c(e){return e&&e.length>0?`
143
+ Attachments: ${e.length} file(s) attached`:""}const Pa={SUPPORT:17,LOGIN_ACCESS:30,LOGIN_PROVIDER:31,SECURITY:26};async function Am(e,n="support",a=[]){const o={support:Pa.SUPPORT,general_help:Pa.SUPPORT,loginAccess:Pa.LOGIN_ACCESS,loginProvider:Pa.LOGIN_PROVIDER,security:Pa.SECURITY}[n]||Pa.SUPPORT,u={serviceDeskId:n==="security"?3:2,requestTypeId:o,requestFieldValues:{...e}};return a.length>0&&(u.attachments=await am(a)),u}async function dm(e,n){var o,c;const i=`${eo.NETLIFY_BASE_URL}/api/v1/${n}`;try{const u=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!u.ok){let A="";try{const p=await u.text();try{const h=JSON.parse(p);A=h.message||h.error||p}catch{A=p}}catch{A=`HTTP ${u.status} ${u.statusText}`}return u.status===403?A="The ticket service is temporarily unavailable. Please try again later or contact support directly.":u.status===404?A="Ticket service not found. Please try again later.":u.status===500?A="Server error. Please try again later.":u.status===401&&(A="Authentication error with the ticket service. Please contact support."),{success:!1,status:u.status,error:A}}const d=await u.json();return{success:!0,ticketKey:(o=d.data)==null?void 0:o.ticketKey,ticketUrl:(c=d.data)==null?void 0:c.ticketUrl}}catch(u){return{success:!1,error:u instanceof Error?u.message:"Unknown error"}}}async function Js(e,n,a=[]){try{const i=await Am(e,n,a);return await dm(i,n==="security"?"security-incidents":"tickets")}catch(i){return{success:!1,error:i instanceof Error?i.message:"Unknown error"}}}function Hc(e,n="ticket"){return e?e.success?e.ticketUrl&&e.ticketKey?`Your ${n} has been submitted successfully.
144
+
145
+ Ticket: <a href="${e.ticketUrl}" target="_blank">${e.ticketKey}</a>
146
+
147
+ Our support team will review your request and respond accordingly. Thank you for contacting ACCESS.`:`Your ${n} has been submitted successfully.
148
+
149
+ Our support team will review your request and respond accordingly. Thank you for contacting ACCESS.`:`We apologize, but there was an error submitting your ${n}: ${e.error||"Unknown error"}
150
+
151
+ Please try again or contact our support team directly.`:`We apologize, but there was an error submitting your ${n}.
152
+
153
+ Please try again or contact our support team directly.`}function Ks(e){return!e||e.trim()===""?{success:!1,promptContent:"Email is required",promptDuration:3e3,promptType:"error"}:/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)?{success:!0}:{success:!1,promptContent:"Please enter a valid email address",promptDuration:3e3,promptType:"error"}}function Fi(){return()=>({success:!0})}function Li(e){return!e||e.trim()===""||e.trim().toLowerCase()==="skip"?"":e.trim()}function fm({ticketForm:e,setTicketForm:n,userInfo:a}){let i=null;const o=async(u,d=[])=>{i=await Js(u,"loginAccess",d),i.success?n(A=>({...A,ticketKey:i.ticketKey,ticketUrl:i.ticketUrl})):n(A=>({...A,submissionError:i.error}))};return{access_help:{message:`If you're having trouble logging into the ACCESS website, here are some common issues:
154
+
155
+ • Make sure you're using a supported browser (Chrome, Firefox, Safari)
156
+ • Clear your browser cookies and cache
157
+ • Check if you're using the correct identity provider
158
+
159
+ Would you like to submit a help ticket for ACCESS login issues?`,options:["Yes, let's create a ticket","Back to Main Menu"],path:u=>u.userInput==="Yes, let's create a ticket"?"access_login_description":"start"},access_login_description:{message:"Describe your login issue.",function:u=>{const d=Ie();n({...d,description:u.userInput,email:a.email||d.email,name:a.name||d.name,accessId:a.accessId||d.accessId})},path:"access_login_identity"},access_login_identity:{message:"Which identity provider were you using?",options:["ACCESS","Github","Google","Institution","Microsoft","ORCID","Other"],function:u=>{const d=Ie();n({...d,identityProvider:u.userInput})},path:"access_login_browser"},access_login_browser:{message:"Which browser were you using?",options:["Chrome","Firefox","Edge","Safari","Other"],function:u=>{const d=Ie();n({...d,browser:u.userInput})},path:"access_login_attachment"},access_login_attachment:{message:"Would you like to attach a screenshot?",options:["Yes","No"],function:u=>{const d=Ie();n({...d,wantsAttachment:u.userInput})},path:u=>{if(u.userInput==="Yes")return"access_login_upload";const d=Rt(a);return d.email?d.name?d.accessId?"access_login_summary":"access_login_accessid":"access_login_name":"access_login_email"}},access_login_upload:{message:"Please upload your screenshot.",component:N.jsx(Xs,{onFileUpload:u=>{n(d=>({...d,uploadedFiles:u}))},enableScreenshot:!0,maxSizeMB:10}),options:["Continue"],function:()=>{const u=Ie();n({...u,uploadConfirmed:!0})},path:()=>{const u=Rt(a);return u.email?u.name?u.accessId?"access_login_summary":"access_login_accessid":"access_login_name":"access_login_email"}},access_login_email:{message:"What is your email?",validateTextInput:Ks,function:u=>{const d=Ie();n({...d,email:u.userInput})},path:()=>{const u=Rt(a);return u.name?u.accessId?"access_login_summary":"access_login_accessid":"access_login_name"}},access_login_name:{message:"What is your name?",function:u=>{const d=Ie();n({...d,name:u.userInput})},path:()=>Rt(a).accessId?"access_login_summary":"access_login_accessid"},access_login_accessid:{message:"What is your ACCESS ID? (Optional - press Enter to skip)",validateTextInput:Fi(),function:u=>{const d=Ie();n({...d,accessId:Li(u.userInput)})},path:"access_login_summary"},access_login_summary:{message:u=>{const d=Ie(),A=Rt(a),p=_c(d.uploadedFiles);let h=A.accessId;return u.prevPath==="access_login_accessid"&&u.userInput&&(h=u.userInput),`Thank you for providing your ACCESS login issue details. Here's a summary:
160
+
161
+ Name: ${A.name||"Not provided"}
162
+ Email: ${A.email||"Not provided"}
163
+ ACCESS ID: ${h||"Not provided"}
164
+ Identity Provider: ${d.identityProvider||"Not provided"}
165
+ Browser: ${d.browser||"Not provided"}
166
+ Issue Description: ${d.description||"Not provided"}${p}
167
+
168
+ Would you like to submit this ticket?`},options:["Submit Ticket","Back to Main Menu"],renderHtml:["BOT","USER"],function:async u=>{if(u.userInput==="Submit Ticket"){const d=Ie(),A=Rt(a),p={email:A.email||"",name:A.name||"",accessId:A.accessId||"",description:d.description||"",identityProvider:d.identityProvider||"",browser:d.browser||""};await o(p,d.uploadedFiles||[])}},path:u=>u.userInput==="Submit Ticket"?"access_login_success":"start"},access_login_success:{message:()=>Hc(i,"ACCESS login ticket"),options:["Back to Main Menu"],renderHtml:["BOT"],path:"start"}}}function pm({ticketForm:e,setTicketForm:n,userInfo:a}){let i=null;const o=async(u,d=[])=>{i=await Js(u,"loginProvider",d),i.success?n(A=>({...A,ticketKey:i.ticketKey,ticketUrl:i.ticketUrl})):n(A=>({...A,submissionError:i.error}))};return{resource_help:{message:`If you're having trouble logging into an affiliated infrastructure or resource provider, here are some common issues:
169
+
170
+ • Ensure your allocation is active
171
+ • Confirm you have the correct username for that resource
172
+ • Check <a href="https://operations.access-ci.org/infrastructure_news_view">System Status News</a> to see if the resource is undergoing maintenance
173
+
174
+ Would you like to submit a help ticket for resource provider login issues?`,options:["Yes, let's create a ticket","Back to Main Menu"],renderHtml:["BOT"],path:u=>u.userInput==="Yes, let's create a ticket"?"resource_login_resource":"start"},resource_login_resource:{message:"Which ACCESS Resource are you trying to access?",options:["ACES","Anvil","Bridges-2","DARWIN","Delta","DeltaAI","Derecho","Expanse","FASTER","Granite","Jetstream2","KyRIC","Launch","Neocortex","Ookami","Open Science Grid","Open Storage Network","Ranch","Stampede3"],function:u=>{const d=Ie();n({...d,resource:u.userInput})},path:"resource_login_userid"},resource_login_userid:{message:"What is your user ID at the resource?",function:u=>{const d=Ie();n({...d,userIdResource:u.userInput})},path:"resource_login_description"},resource_login_description:{message:"Please describe the issue you're having logging in.",function:u=>{const d=Ie();n({...d,description:u.userInput,email:a.email||d.email,name:a.name||d.name,accessId:a.accessId||d.accessId})},path:"resource_login_attachment"},resource_login_attachment:{message:"Would you like to attach a screenshot?",options:["Yes","No"],function:u=>{const d=Ie();n({...d,wantsAttachment:u.userInput})},path:u=>{if(u.userInput==="Yes")return"resource_login_upload";const d=Rt(a);return d.email?d.name?d.accessId?"resource_login_summary":"resource_login_accessid":"resource_login_name":"resource_login_email"}},resource_login_upload:{message:"Please upload your screenshot.",component:N.jsx(Xs,{onFileUpload:u=>{n(d=>({...d,uploadedFiles:u}))},enableScreenshot:!0,maxSizeMB:10}),options:["Continue"],function:()=>{const u=Ie();n({...u,uploadConfirmed:!0})},path:()=>{const u=Rt(a);return u.email?u.name?u.accessId?"resource_login_summary":"resource_login_accessid":"resource_login_name":"resource_login_email"}},resource_login_email:{message:"What is your email?",validateTextInput:Ks,function:u=>{const d=Ie();n({...d,email:u.userInput})},path:()=>{const u=Rt(a);return u.name?u.accessId?"resource_login_summary":"resource_login_accessid":"resource_login_name"}},resource_login_name:{message:"What is your name?",function:u=>{const d=Ie();n({...d,name:u.userInput})},path:()=>Rt(a).accessId?"resource_login_summary":"resource_login_accessid"},resource_login_accessid:{message:"What is your ACCESS ID? (Optional - press Enter to skip)",validateTextInput:Fi(),function:u=>{const d=Ie();n({...d,accessId:Li(u.userInput)})},path:"resource_login_summary"},resource_login_summary:{message:u=>{const d=Ie(),A=Rt(a),p=_c(d.uploadedFiles);let h=A.accessId;return u.prevPath==="resource_login_accessid"&&u.userInput&&(h=u.userInput),`Thank you for providing your resource login issue details. Here's a summary:
175
+
176
+ Name: ${A.name||"Not provided"}
177
+ Email: ${A.email||"Not provided"}
178
+ ACCESS ID: ${h||"Not provided"}
179
+ Resource: ${d.resource||"Not provided"}
180
+ Resource User ID: ${d.userIdResource||"Not provided"}
181
+ Issue Description: ${d.description||"Not provided"}${p}
182
+
183
+ Would you like to submit this ticket?`},options:["Submit Ticket","Back to Main Menu"],function:async u=>{if(u.userInput==="Submit Ticket"){const d=Ie(),A=Rt(a),p={email:A.email||"",name:A.name||"",accessId:A.accessId||"",accessResource:d.resource||"",description:d.description||"",userIdAtResource:d.userIdResource||""};await o(p,d.uploadedFiles||[])}},path:u=>u.userInput==="Submit Ticket"?"resource_login_success":"start"},resource_login_success:{message:()=>Hc(i,"resource login ticket"),options:["Back to Main Menu"],renderHtml:["BOT"],path:"start"}}}const hm=[" C, C++","Abaqus","ACCESS","ACCESS-credits","ACCESS-website","Accounts","ACLS","Adding users","Affiliations","Affinity Groups","AI","Algorithms","Allocation extension","Allocation Management","Allocation proposal","Allocation Time","Allocation users","AMBER","AMIE","Anaconda","Analysis","API","Application Status","ARCGIS","Architecture","Archiving","Astrophysics","ATLAS","Authentication","AWS","AZURE","Backup","BASH","Batch Jobs","Benchmarking","Big Data","Bioinformatics","Biology","Ceph","CFD","cgroups","CHARMM","Checkpoint","cilogon","citation","Cloud","Cloud Computing","Cloud Lab","Cloud Storage","Cluster Management","Cluster Support","CMMC","Community Outreach","Compiling","Composible Systems","Computataional Chemistry","COMSOL","Conda","Condo","Containers","Core dump","Core hours","CP2K","CPU architecture","CPU bound","CUDA","Cybersecurity","CYVERSE","Data","Data Storage","Data-access-protocols","Data-analysis","Data-compliance","Data-lifecycle","Data-management","Data-management-software","Data-provenance","Data-reproducibility","Data-retention","Data-science","Data-sharing","Data-transfer","Data-wrangling","Database-update","Debugging","Debugging, Optimizatio and Profiling","Deep-learning","Dependencies","Deployment","DFT","Distributed-computing","DNS","Docker","Documentation","DOI","DTN","Easybuild","Email","Encryption","Environment-modules","Errors","Extension","FastX","Federated-authentication","File transfers","File-formats","File-limits","File-systems","File-transfer","Finite-element-analysis","Firewall","Fortran","Frameworks and IDE's","GAMESS","Gateways","GATK","Gaussian","GCC","Genomics","GIS","Git","Globus","GPFS","GPU","Gravitational-waves","Gridengine","GROMACS","Hadoop","Hardware","Image-processing","Infiniband","Interactive-mode","Interconnect","IO-Issue","ISILON","Java","Jekyll","Jetstream","Job-accounting","Job-array","Job-charging","Job-failure","Job-sizing","Job-submission","Julia","Jupyterhub","Key-management","Kubernetes","KyRIC","LAMMPS","Library-paths","License","Linear-programming","Linux","LMOD","login","LSF","Lustre","Machine-learning","Management","Materials-science","Mathematica","MATLAB","Memory","Metadata","Modules","Molecular-dynamics","Monte-carlo","MPI","NAMD","NetCDF","Networking","Neural-networks","NFS","NLP","NoMachine","Nvidia","Oceanography","OnDemnad","Open-science-grid","Open-storage-network","OpenCV","Openfoam","OpenMP","OpenMPI","OpenSHIFT","Openstack","Optimization","OS","OSG","Parallelization","Parameter-sweeps","Paraview","Particle-physics","password","PBS","Pegasus","Pending-jobs","Performance-tuning","Permissions","Physiology","PIP","PODMAN","Portals","Pre-emption","Professional and Workforce Development","Professional-development","Profile","Profiling","Programming","Programming Languages","Programming-best-practices","Project-management","Project-renewal","Provisioning","Pthreads","Publication-database","Putty","Python","Pytorch","Quantum-computing","Quantum-mechanics","Quota","R","RDP","React","Reporting","Research-facilitation","Research-grants","Resources","Rstudio-server","S3","Samba","SAS","Scaling","Schedulers","Scheduling","Science DMZ","Science Gateways","Scikit-learn","Scratch","screen","scripting","SDN","Secure Computing and Data","Secure-data-architecture","Serverless-hpc","setup","sftp","SGE","Shell Scripting","Shifter","Singularity","SLURM","SMB","Smrtanalysis","Software Installations","Software-carpentry","SPACK","SPARK","Spectrum-scale","SPSS","SQL","SSH","Stampede2","STATA","Storage","Supplement","Support","TCP","Technical-training-for-hpc","Tensorflow","Terminal-emulation-and-window-management","Tickets","Timing-issue","TMUX","Tools","Training","Transfer SUs","Trinity","Tuning","Unix-environment","Upgrading","Vectorization","Version-control","vim","VNC","VPN","Workflow","Workforce-development","X11","Xalt","XDMoD","XML","XSEDE","I don't see a relevant keyword"],gm=["ACES","Anvil","Bridges-2","DARWIN","Delta","DeltaAI","Derecho","Expanse","FASTER","Granite","Jetstream2","KyRIC","Launch","Neocortex","Ookami","Open Science Grid","Open Storage Network","Ranch","Stampede3"];function mm({ticketForm:e,setTicketForm:n,userInfo:a}){let i=null;const o=async(u,d=[])=>{i=await Js(u,"support",d),i.success?n(A=>({...A,ticketKey:i.ticketKey,ticketUrl:i.ticketUrl})):n(A=>({...A,submissionError:i.error}))};return{general_help_summary_subject:{message:"Provide a short title for your ticket.",function:u=>{const d=Ie();n({...d,summary:u.userInput,email:a.email||d.email,name:a.name||d.name,accessId:a.accessId||d.accessId})},path:"general_help_category"},general_help_category:{message:"What type of issue are you experiencing?",options:["User Account Question","Allocation Question","User Support Question","CSSN/CCEP Question","Training Question","Metrics Question","OnDemand Question","Pegasus Question","XDMoD Question","Some Other Question"],function:u=>{const d=Ie();n({...d,category:u.userInput})},path:"general_help_description"},general_help_description:{message:"Please describe your issue.",function:u=>{const d=Ie();n({...d,description:u.userInput})},path:"general_help_attachment"},general_help_attachment:{message:"Would you like to attach a file to your ticket?",options:["Yes","No"],function:u=>{const d=Ie();n({...d,wantsAttachment:u.userInput})},path:u=>u.userInput==="Yes"?"general_help_upload":"general_help_resource"},general_help_upload:{message:"Please upload your file.",component:N.jsx(Xs,{onFileUpload:u=>{n(d=>({...d,uploadedFiles:u}))},enableScreenshot:!0,maxSizeMB:10}),options:["Continue"],function:()=>{const u=Ie();n({...u,uploadConfirmed:!0})},path:"general_help_resource"},general_help_resource:{message:"Does your problem involve an ACCESS Resource?",options:["Yes","No"],function:u=>{const d=Ie();n({...d,involvesResource:u.userInput.toLowerCase()})},path:u=>u.userInput==="Yes"?"general_help_resource_details":"general_help_keywords"},general_help_resource_details:{message:"Please select the ACCESS Resource involved with your issue:",options:gm,function:u=>{const d=Ie();n({...d,resourceDetails:u.userInput})},path:"general_help_user_id_at_resource"},general_help_user_id_at_resource:{message:"What is your User ID at the selected resource(s)? (Optional - press Enter to skip)",validateTextInput:Fi(),function:u=>{const d=Ie();n({...d,userIdAtResource:Li(u.userInput)})},path:"general_help_keywords"},general_help_keywords:{message:"Please add up to 5 keywords to help route your ticket.",checkboxes:{items:hm,min:0,max:5},function:u=>{const d=Ie();n({...d,keywords:u.userInput})},path:u=>u.userInput&&u.userInput.includes("I don't see a relevant keyword")?"general_help_additional_keywords":"general_help_priority"},general_help_additional_keywords:{message:"Please enter additional keywords, separated by commas:",function:u=>{const d=Ie(),A=d.keywords||[],p=u.userInput,m=(Array.isArray(A)?[...A]:String(A).split(",").map(C=>C.trim())).filter(C=>C!=="I don't see a relevant keyword"),y=m.length>0?[...m,p].join(", "):p;n({...d,keywords:y,suggestedKeyword:p})},path:"general_help_priority"},general_help_priority:{message:"Please select a priority for your issue:",options:["Lowest","Low","Medium","High","Highest"],function:u=>{const d=Ie();n({...d,priority:u.userInput.toLowerCase()})},path:()=>{const u=Rt(a);return u.email?u.name?u.accessId?"general_help_ticket_summary":"general_help_accessid":"general_help_name":"general_help_email"}},general_help_email:{message:"What is your email address?",validateTextInput:Ks,function:u=>{const d=Ie();n({...d,email:u.userInput})},path:()=>{const u=Rt(a);return u.name?u.accessId?"general_help_ticket_summary":"general_help_accessid":"general_help_name"}},general_help_name:{message:"What is your name?",function:u=>{const d=Ie();n({...d,name:u.userInput})},path:()=>Rt(a).accessId?"general_help_ticket_summary":"general_help_accessid"},general_help_accessid:{message:"What is your ACCESS ID? (Optional - press Enter to skip)",validateTextInput:Fi(),function:u=>{const d=Ie();n({...d,accessId:Li(u.userInput)})},path:"general_help_ticket_summary"},general_help_ticket_summary:{message:u=>{const d=Ie(),A=Rt(a),p=_c(d.uploadedFiles);let h=A.accessId;u.prevPath==="general_help_accessid"&&u.userInput&&(h=u.userInput);let m="";return d.involvesResource==="yes"&&(m=`
184
+ Resource: ${d.resourceDetails||"Not specified"}`,d.userIdAtResource&&(m+=`
185
+ User ID at Resource: ${d.userIdAtResource}`)),`Thank you for providing your issue details. Here's a summary:
186
+
187
+ Name: ${A.name||"Not provided"}
188
+ Email: ${A.email||"Not provided"}
189
+ ACCESS ID: ${h||"Not provided"}
190
+ Issue Summary: ${d.summary||"Not provided"}
191
+ Category: ${d.category||"Not provided"}
192
+ Priority: ${d.priority||"Not provided"}
193
+ Keywords: ${d.keywords||"Not provided"}
194
+ Issue Description: ${d.description||"Not provided"}${m}${p}
195
+
196
+ Would you like to submit this ticket?`},options:["Submit Ticket","Back to Main Menu"],function:async u=>{if(u.userInput==="Submit Ticket"){const d=Ie(),A=Rt(a),p={email:A.email||"",summary:d.summary||"General Support Ticket",description:d.description||"",priority:d.priority||"medium",accessId:A.accessId||"",name:A.name||"",issueType:d.category||"",hasResourceProblem:d.involvesResource==="yes"?"Yes":"No",userIdAtResource:d.userIdAtResource||"",resourceName:d.resourceDetails||"",keywords:d.keywords||"",noRelevantKeyword:d.suggestedKeyword?"checked":"",suggestedKeyword:d.suggestedKeyword||""};await o(p,d.uploadedFiles||[])}},path:u=>u.userInput==="Submit Ticket"?"general_help_success":"start"},general_help_success:{message:()=>Hc(i,"support ticket"),options:["Back to Main Menu"],renderHtml:["BOT"],path:"start"}}}function vm({ticketForm:e,setTicketForm:n,userInfo:a}){const i=fm({ticketForm:e,setTicketForm:n,userInfo:a}),o=pm({ticketForm:e,setTicketForm:n,userInfo:a}),c=mm({ticketForm:e,setTicketForm:n,userInfo:a});return{help_ticket:{message:"What is your help ticket related to?",options:["Logging into ACCESS website","Logging into a resource","Another question"],function:u=>{n(d=>({...d,ticketType:u.userInput}))},path:u=>u.userInput==="Logging into ACCESS website"?"access_help":u.userInput==="Logging into a resource"?"resource_help":u.userInput==="Another question"?"general_help_summary_subject":"help_ticket"},...i,...o,...c}}function _o(e){const n=Ie();return{...n,email:e.email||n.email,name:e.name||n.name,accessId:e.accessId||n.accessId}}function ym(e){return e?e.success?e.ticketUrl&&e.ticketKey?`Your security incident report has been submitted successfully.
197
+
198
+ Ticket: <a href="${e.ticketUrl}" target="_blank">${e.ticketKey}</a>
199
+
200
+ Our cybersecurity team will review your report and respond accordingly. Thank you for helping keep ACCESS secure.`:`Your security incident report has been submitted successfully.
201
+
202
+ Our cybersecurity team will review your report and respond accordingly. Thank you for helping keep ACCESS secure.`:`We apologize, but there was an error submitting your security incident report: ${e.error}
203
+
204
+ Please try again or contact our cybersecurity team directly.`:`We apologize, but there was an error submitting your security incident report.
205
+
206
+ Please try again or contact our cybersecurity team directly.`}function bm({ticketForm:e,setTicketForm:n,userInfo:a}){let i=null,o=null;const c=async(d,A=[])=>{o=await Js(d,"security",A),o.success?n(p=>({...p,ticketKey:o.ticketKey,ticketUrl:o.ticketUrl})):n(p=>({...p,submissionError:o.error}))};return{security_incident:{message:"You're reporting a security incident. Please provide a brief summary of the security concern.",function:d=>{const A=Ie();n({...A,summary:d.userInput,email:a.email||A.email,name:a.name||A.name,accessId:a.accessId||A.accessId})},path:"security_priority"},security_priority:{message:"What is the priority level of this security incident?",options:["Critical","High","Medium","Low"],function:d=>{const A=Ie();n({...A,priority:d.userInput.toLowerCase()})},path:"security_description"},security_description:{message:"Please provide a detailed description of the security incident or concern.",function:d=>{const A=Ie();n({...A,description:d.userInput})},path:"security_attachment"},security_attachment:{message:"Do you have any files (screenshots, logs, etc.) that would help with this security incident?",options:["Yes","No"],function:d=>{const A=Ie();n({...A,wantsAttachment:d.userInput})},path:d=>d.userInput==="Yes"?"security_upload":"security_contact_check"},security_upload:{message:"Please upload your files.",component:N.jsx(Xs,{onFileUpload:d=>{n(A=>({...A,uploadedFiles:d}))},enableScreenshot:!0,maxSizeMB:10}),options:["Continue"],function:()=>{const d=Ie();n({...d,uploadConfirmed:!0})},path:"security_contact_check"},security_contact_check:{message:()=>{const d=_o(a);return d.name&&d.email&&d.accessId?`I have your contact information:
207
+
208
+ Name: ${d.name}
209
+ Email: ${d.email}
210
+ ACCESS ID: ${d.accessId}
211
+
212
+ Is this correct?`:"I need your contact information."},options:()=>{const d=_o(a);return d.name&&d.email&&d.accessId?["Yes, that's correct","Let me update it"]:[]},chatDisabled:()=>{const d=_o(a);return!!(d.name&&d.email&&d.accessId)},path:d=>d.userInput==="Yes, that's correct"?"security_summary":d.userInput==="Let me update it"?"security_name":"security_email"},security_email:{message:"What is your email address?",validateTextInput:Ks,function:d=>{const A=Ie();n({...A,email:d.userInput})},path:()=>{const d=_o(a);return d.name?d.accessId?"security_summary":"security_accessid":"security_name"}},security_name:{message:"What is your name?",function:d=>{const A=Ie();n({...A,name:d.userInput})},path:()=>{const d=_o(a);return d.email?d.accessId?"security_summary":"security_accessid":"security_email"}},security_accessid:{message:"What is your ACCESS ID? (Optional - press Enter to skip)",validateTextInput:Fi(),function:d=>{const A=Li(d.userInput);i=A;const p=Ie();n({...p,accessId:A})},path:"security_summary"},security_summary:{message:()=>{const d=Ie(),A=_o(a),p={...d,name:A.name||d.name,email:A.email||d.email,accessId:i||A.accessId||d.accessId};let h="";d.uploadedFiles&&d.uploadedFiles.length>0&&(h=`
213
+ Attachments: ${d.uploadedFiles.length} file(s) attached`);const m=p.accessId||"Not provided";return`Here's a summary of your security incident report:
214
+
215
+ Summary: ${p.summary||"Not provided"}
216
+ Priority: ${p.priority||"Not provided"}
217
+ Name: ${p.name||"Not provided"}
218
+ Email: ${p.email||"Not provided"}
219
+ ACCESS ID: ${m}
220
+ Description: ${p.description||"Not provided"}${h}
221
+
222
+ Would you like to submit this security incident report?`},options:["Submit Security Report","Back to Main Menu"],function:async d=>{if(d.userInput==="Submit Security Report"){const A=Ie(),p=_o(a),h={...A,name:p.name||A.name,email:p.email||A.email,accessId:i||p.accessId||A.accessId},m={summary:h.summary||"",priority:h.priority||"",description:h.description||"",name:h.name||"",email:h.email||"",accessId:h.accessId||""};await c(m,A.uploadedFiles||[])}},path:d=>d.userInput==="Submit Security Report"?"security_success":"start"},security_success:{message:()=>ym(o),options:["Back to Main Menu"],renderHtml:["BOT"],path:"start"}}}let $s;const wm=new Uint8Array(16);function xm(){if(!$s&&($s=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!$s))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return $s(wm)}const Ot=[];for(let e=0;e<256;++e)Ot.push((e+256).toString(16).slice(1));function Sm(e,n=0){return Ot[e[n+0]]+Ot[e[n+1]]+Ot[e[n+2]]+Ot[e[n+3]]+"-"+Ot[e[n+4]]+Ot[e[n+5]]+"-"+Ot[e[n+6]]+Ot[e[n+7]]+"-"+Ot[e[n+8]]+Ot[e[n+9]]+"-"+Ot[e[n+10]]+Ot[e[n+11]]+Ot[e[n+12]]+Ot[e[n+13]]+Ot[e[n+14]]+Ot[e[n+15]]}const ef={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Nc(e,n,a){if(ef.randomUUID&&!e)return ef.randomUUID();e=e||{};const i=e.random||(e.rng||xm)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,Sm(i)}function Tm(e){return e}function Em({sessionId:e,apiKey:n}){let a=null;return{metrics_intro:{message:`Please type your question about usage and performance metrics (XDMoD) below. You can see some <a target="_blank" href="${eo.METRICS_QUESTIONS_URL}">examples here</a>.`,renderHtml:["BOT"],path:"metrics_loop"},metrics_loop:{message:async i=>{const{userInput:o}=i;if(o==="👍 Helpful"||o==="👎 Not helpful"){if(n&&e&&a){const u={"Content-Type":"application/json","X-Origin":"metrics","X-API-KEY":n,"X-Session-ID":e,"X-Query-ID":a,"X-Feedback":o==="👍 Helpful"?"1":"0"};try{await fetch(eo.METRICS_RATING_ENDPOINT,{method:"POST",headers:u})}catch(d){console.error("Error sending metrics feedback:",d)}}return"Thanks for the feedback! Ask another question about usage and performance metrics (XDMoD) or start a new chat."}else try{const c=Nc();a=c;const u={"Content-Type":"application/json","X-Origin":"metrics","X-API-KEY":n,"X-Session-ID":e,"X-Query-ID":c},p=(await(await fetch(eo.METRICS_API_ENDPOINT,{method:"POST",headers:u,body:JSON.stringify({query:o})})).json()).response,h=p;return await i.injectMessage(h),setTimeout(async()=>{await i.injectMessage("Ask another question about usage and performance metrics (XDMoD) or start a new chat.")},100),null}catch(c){return console.error("Error in metrics flow:",c),"I'm sorry, there was an error processing your question. Please try again."}},renderMarkdown:["BOT"],options:i=>i.userInput==="👍 Helpful"||i.userInput==="👎 Not helpful"?[]:["👍 Helpful","👎 Not helpful"],chatDisabled:!1,path:"metrics_loop"}}}function km(){if(typeof window>"u")return Nc();let e=localStorage.getItem(qd.SESSION_ID);return e||(e=Nc(),localStorage.setItem(qd.SESSION_ID,e)),e}const Uc=R.forwardRef((e,n)=>{const{apiKey:a=eo.DEFAULT_API_KEY,isLoggedIn:i=!1,loginUrl:o=Dr.LOGIN_URL,userEmail:c,userName:u,accessId:d,ringEffect:A,defaultOpen:p,onClose:h,open:m,onOpenChange:y,embedded:C=!1,welcome:D}=e,Q=R.useRef(null),[E,I]=R.useState({}),_=R.useMemo(()=>({email:c,name:u,accessId:d}),[c,u,d]);R.useEffect(()=>{um({ticketForm:E,setTicketForm:I})},[E]),R.useImperativeHandle(n,()=>({addMessage:z=>{var W,te;(te=(W=Q.current)==null?void 0:W.addMessage)==null||te.call(W,z)}}));const B=D||(i?Dr.WELCOME_MESSAGE:Dr.WELCOME_MESSAGE_LOGGED_OUT),U=R.useMemo(()=>km(),[]),j=R.useMemo(()=>{const z=cm({welcome:B,setTicketForm:I,isLoggedIn:i}),W=vm({ticketForm:E,setTicketForm:I,userInfo:_}),te=bm({ticketForm:E,setTicketForm:I,userInfo:_}),J=Em({sessionId:U,apiKey:a}),Y={...z,...W,...te,...J};return sm(Y,{disableOnOptions:!0})},[B,E,_,U,a,i]);return N.jsx(Lc,{ref:Q,isLoggedIn:i,apiKey:a,qaEndpoint:eo.QA_ENDPOINT,ratingEndpoint:eo.RATING_ENDPOINT,botName:Dr.BOT_NAME,logo:Dr.LOGO,primaryColor:Dr.PRIMARY_COLOR,secondaryColor:Dr.SECONDARY_COLOR,welcomeMessage:B,tooltipText:Dr.TOOLTIP,loginUrl:o,open:m,onOpenChange:y,embedded:C,footerText:"Need more help?",footerLink:"https://support.access-ci.org",customFlow:j})});Uc.displayName="AccessQABot",In.API_CONFIG=eo,In.AccessQABot=Uc,In.BOT_CONFIG=Dr,In.QABot=Uc,Object.defineProperty(In,Symbol.toStringTag,{value:"Module"})});
9
223
  //# sourceMappingURL=access-qa-bot.umd.cjs.map