@idscan/onboarding 2.11.0 → 2.11.2

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,5 +1,5 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self)["IDVC-DVSO"]=t()}(this,function(){"use strict";var e,t,n,o,r,i,a,l,s,c,d,u,f,p,h,m,g,v,y,b,_,w,S,E,M,T,A,C,N,I,x,k,R,D,L,B,O,P,F,U,z,G,H,V,j,W,q,K,X,Y,$,Z,Q,J,ee,te,ne=Object.defineProperty,oe=e=>{throw TypeError(e)},re=(e,t,n)=>((e,t,n)=>t in e?ne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),ie=(e,t,n)=>t.has(e)||oe("Cannot "+n),ae=(e,t,n)=>(ie(e,t,"read from private field"),n?n.call(e):t.get(e)),le=(e,t,n)=>t.has(e)?oe("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),se=(e,t,n,o)=>(ie(e,t,"write to private field"),o?o.call(e,n):t.set(e,n),n),ce=(e,t,n)=>(ie(e,t,"access private method"),n),de=document.createElement("style");de.textContent=".d-none{display:none!important}.qr-code__header{width:100%}.idvc-modal-background{--color-primary: #5185F3;top:0;left:0;z-index:2000;background-color:#0006;overflow-y:auto;display:flex;flex-direction:column;align-items:center;padding:20px 0;box-sizing:border-box}.idvc-after-submit{width:100%;height:100%;position:absolute}.idvc-mount-host{min-height:520px}.idvc{min-height:520px!important}.hidden-element{visibility:hidden;position:absolute}.idvc-modal{font-family:Inter,sans-serif;box-sizing:border-box;position:relative;flex-shrink:0;margin:auto 0;background:#fff;box-shadow:0 1px 3px #0000004d;z-index:2001;display:flex;gap:20px;align-items:center;justify-content:center;flex-direction:column;padding:20px;border-radius:12px;min-height:150px}.idvc-modal *{box-sizing:border-box}.idvc-modal .color-danger{color:#cb0b00;fill:#cb0b00}.idvc-modal .color-success{color:#67c23a;fill:#67c23a}.idvc-modal .color-primary{color:#409eff;fill:#409eff}.idvc-modal .w-100{width:100%}.idvc-modal .w-45{width:45%}.idvc-modal .exclamation-sign{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE2LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPg0KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCINCgkgd2lkdGg9IjQ1LjMxMXB4IiBoZWlnaHQ9IjQ1LjMxMXB4IiB2aWV3Qm94PSIwIDAgNDUuMzExIDQ1LjMxMSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNDUuMzExIDQ1LjMxMTsiDQoJIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPGc+DQoJPHBhdGggZD0iTTIyLjY3NSwwLjAyYy0wLjAwNiwwLTAuMDE0LDAuMDAxLTAuMDIsMC4wMDFjLTAuMDA3LDAtMC4wMTMtMC4wMDEtMC4wMi0wLjAwMUMxMC4xMzUsMC4wMiwwLDEwLjE1NCwwLDIyLjY1Ng0KCQljMCwxMi41LDEwLjEzNSwyMi42MzUsMjIuNjM1LDIyLjYzNWMwLjAwNywwLDAuMDEzLDAsMC4wMiwwYzAuMDA2LDAsMC4wMTQsMCwwLjAyLDBjMTIuNSwwLDIyLjYzNS0xMC4xMzUsMjIuNjM1LTIyLjYzNQ0KCQlDNDUuMzExLDEwLjE1NCwzNS4xNzYsMC4wMiwyMi42NzUsMC4wMnogTTIyLjY3NSwzOC44MTFjLTAuMDA2LDAtMC4wMTQtMC4wMDEtMC4wMi0wLjAwMWMtMC4wMDcsMC0wLjAxMywwLjAwMS0wLjAyLDAuMDAxDQoJCWMtMi4wNDYsMC0zLjcwNS0xLjY1OC0zLjcwNS0zLjcwNWMwLTIuMDQ1LDEuNjU5LTMuNzAzLDMuNzA1LTMuNzAzYzAuMDA3LDAsMC4wMTMsMCwwLjAyLDBjMC4wMDYsMCwwLjAxNCwwLDAuMDIsMA0KCQljMi4wNDUsMCwzLjcwNiwxLjY1OCwzLjcwNiwzLjcwM0MyNi4zODEsMzcuMTUyLDI0LjcyMywzOC44MTEsMjIuNjc1LDM4LjgxMXogTTI3Ljk4OCwxMC41NzgNCgkJYy0wLjI0MiwzLjY5Ny0xLjkzMiwxNC42OTItMS45MzIsMTQuNjkyYzAsMS44NTQtMS41MTksMy4zNTYtMy4zNzMsMy4zNTZjLTAuMDEsMC0wLjAyLDAtMC4wMjksMGMtMC4wMDksMC0wLjAyLDAtMC4wMjksMA0KCQljLTEuODUzLDAtMy4zNzItMS41MDQtMy4zNzItMy4zNTZjMCwwLTEuNjg5LTEwLjk5NS0xLjkzMS0xNC42OTJDMTcuMjAyLDguNzI3LDE4LjYyLDUuMjksMjIuNjI2LDUuMjkNCgkJYzAuMDEsMCwwLjAyLDAuMDAxLDAuMDI5LDAuMDAxYzAuMDA5LDAsMC4wMTktMC4wMDEsMC4wMjktMC4wMDFDMjYuNjg5LDUuMjksMjguMTA5LDguNzI3LDI3Ljk4OCwxMC41Nzh6Ii8+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8L3N2Zz4NCg==)}.idvc-modal__close-btn{width:20px;height:20px;cursor:pointer;margin-left:auto}.idvc-modal__close-btn:hover{background-color:var(--el-color-primary)}.idvc-modal__header{display:flex;align-items:center;justify-content:center;width:100%}.idvc-modal__header__body{display:flex;column-gap:12px}.idvc-modal__header__sign{transform:translateY(2px)}.idvc-modal__header__content{line-height:24px;font-size:20px;margin:0;font-weight:500}.idvc-modal__header__content_qr-code{line-height:44px;font-size:30px;color:#303133}.idvc-modal__header.center{justify-content:center;padding:0}.idvc-modal__body{font-size:16px;word-break:break-word;color:#1c1c1c}.idvc-modal__body__list{margin-left:0;padding-left:20px;text-align:justify;margin-top:0;margin-bottom:0}.idvc-modal__body__list--no-numbers{list-style-type:none;padding-left:0}.idvc-modal__body__list__item{margin-bottom:12px;line-height:22px}.idvc-modal__body__list__item:last-child{margin-bottom:0}.idvc-modal__body_qr-code{color:#000;text-align:left;min-height:250px;position:relative;width:100%;display:flex;align-items:center;justify-content:center}.idvc-modal__body_process_ready-header{font-weight:600;font-size:15px;margin:20px auto 5px}.idvc-modal__body_process_ready-text{display:inline-block;font-style:normal;font-weight:400;font-size:14px;line-height:19px;color:#5a5b62}.idvc-modal__body_process_ready__canvas-container{margin:10px auto}.idvc-modal__body_process_ready-canvas{display:block;margin:0 auto}.idvc-modal__body_process_ready-info{margin:20px auto;padding:8px 12px;border-radius:6px}.idvc-modal__body_process_ready-info__text{margin-left:8px}.idvc-modal__body_process_validating-info__text{text-align:center}.idvc-modal__body_process_done-container{display:flex;flex-direction:column;align-items:center;justify-content:center;row-gap:20px}.idvc-modal__body_process_done__text{text-align:center;font-style:normal;font-weight:600;font-size:28px;line-height:48px}.idvc-modal__footer{display:grid;grid-template-columns:1fr 1fr;gap:25px;width:100%}.idvc-modal__footer.is-single-button{grid-template-columns:1fr}.idvc-modal__footer_qr-code{text-align:center}.idvc-modal.center{justify-content:center}.idvc-consent-form{--form-text: #1C1C1C;--form-border: #D0D5DD;--form-primary: var(--color-primary, #5185F3);--form-required: #D92D20;font-family:Inter,sans-serif;box-sizing:border-box;display:flex;flex-direction:column;width:calc(100% - 32px);max-width:480px;margin:24px auto;z-index:1010;background:#fff;border:1px solid #EAECF0;border-radius:16px;box-shadow:0 12px 32px #1018281a,0 2px 6px #1018280f;color:var(--form-text);overflow:hidden}.idvc-consent-form *{box-sizing:border-box}.idvc-consent-form__header{padding:28px 28px 0}.idvc-consent-form__header__content{margin:0;font-size:22px;line-height:30px;font-weight:600;color:var(--form-text)}.idvc-consent-form__body{display:flex;flex-direction:column;row-gap:20px;padding:16px 28px 0;font-size:15px;line-height:22px;word-break:break-word}.idvc-consent-form__body #idvc-consent-form-text{max-height:240px;overflow-y:auto;margin:0;padding:14px 16px;border-radius:10px;background:#f9fafb;border:1px solid #EAECF0;color:var(--form-text)}.idvc-consent-form__body a{color:var(--form-primary);text-decoration:underline;text-underline-offset:2px}.idvc-consent-form__body .color-red{color:var(--form-required)}.idvc-consent-form__body sup{top:0;font-size:1em;vertical-align:baseline}.idvc-consent-form__body .input-wrapper{display:flex;flex-direction:column;align-items:stretch;row-gap:6px}.idvc-consent-form__body .input-wrapper label{font-size:14px;line-height:20px;font-weight:500;color:var(--form-text)}.idvc-consent-form__body .input-wrapper input[type=text]{width:100%;height:44px;margin:0;padding:0 14px;font:inherit;font-size:16px;color:var(--form-text);background:#fff;border:1px solid var(--form-border);border-radius:10px;box-shadow:0 1px 2px #1018280d;transition:border-color .1s,box-shadow .1s}.idvc-consent-form__body .input-wrapper input[type=text]:focus{outline:none;border-color:var(--form-primary);box-shadow:0 0 0 4px color-mix(in srgb,var(--form-primary) 18%,transparent)}.idvc-consent-form__body .checkbox-wrapper{display:flex;align-items:flex-start;column-gap:4px;margin:0}.idvc-consent-form__body .checkbox-wrapper__star{order:1;flex-shrink:0;line-height:22px}.idvc-consent-form__body .checkbox-wrapper input[type=checkbox]{flex-shrink:0;width:18px;height:18px;margin:2px 8px 0 0;accent-color:var(--form-primary);cursor:pointer;transform:none;order:0}.idvc-consent-form__body .checkbox-wrapper__text{order:2;margin:0;padding:0;line-height:22px;color:var(--form-text);cursor:pointer}.idvc-consent-form__footer{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0;padding:24px 28px 28px}.idvc-consent-form__footer .btn{width:100%;min-height:44px;padding:12px 16px;font-size:15px;font-weight:600;border-radius:10px}.idvc-consent-form__footer .btn--info{color:var(--form-text);background:#fff;border-color:var(--form-border)}.idvc-consent-form__footer .btn--info:focus,.idvc-consent-form__footer .btn--info:hover{background:#f9fafb;border-color:#98a2b3}.idvc-consent-form__footer .btn--primary{background-color:var(--form-primary);border-color:var(--form-primary)}.idvc-consent-form__footer .btn--primary:focus,.idvc-consent-form__footer .btn--primary:hover{background-color:var(--form-primary);border-color:var(--form-primary);filter:brightness(1.08)}.idvc-consent-form__footer .btn--primary.btn--disabled,.idvc-consent-form__footer .btn--primary:disabled{color:#fff;background-color:var(--form-primary);border-color:var(--form-primary);opacity:.45;filter:none;cursor:not-allowed}@media(max-width:400px){.idvc-consent-form__header{padding:24px 20px 0}.idvc-consent-form__body{padding:16px 20px 0}.idvc-consent-form__footer{padding:20px}}.idvc-fixed{position:fixed}.color-red{color:red}.btn{line-height:1;white-space:nowrap;cursor:pointer;background:#fff;border:1px solid #DCDFE6;color:#606266;-webkit-appearance:none;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;outline:0;margin:0;-webkit-transition:.1s;transition:.1s;font-weight:500;padding:12px 20px;font-size:14px;border-radius:8px}.btn--default:focus,.btn--default:hover{color:#409eff;border-color:#c6e2ff;background-color:#ecf5ff}.btn--default:active{color:#3a8ee6;border-color:#3a8ee6;outline:0}.btn--primary{color:#fff;background-color:#5185f3;border-color:#5185f3}.btn--primary:focus,.btn--primary:hover{background:#66b1ff;border-color:#66b1ff;color:#fff}.btn--primary:active{background:#3a8ee6;border-color:#3a8ee6;color:#fff;outline:0}.btn--info{color:#fff;background-color:#4e5d6e;border-color:#4e5d6e}.btn--disabled{color:#fff;background-color:#a0cfff;border-color:#a0cfff}.btn--disabled:hover{cursor:not-allowed;color:#fff;background-color:#a0cfff;border-color:#a0cfff}.qr-code-wrap{z-index:1000;margin:-10px auto 40px}.qr-code-wrap__button{background:#515d6c;border-radius:4px;width:100%;display:inline-block;white-space:nowrap;cursor:pointer;border:1px solid #515D6C;color:var(--color-white);-webkit-appearance:none;text-align:center;box-sizing:border-box;outline:none;margin:0;transition:.1s;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;padding:18px 20px;font-style:normal;font-weight:500;font-size:14px;line-height:1.4}.qr-code-wrap__content{display:flex;justify-content:center;align-items:center;column-gap:13px}.qr-code-wrap__button:hover{background-color:#909399;border-color:#909399}.loading-spinner{display:flex;align-items:center;justify-content:center;width:100%;min-height:120px}.loading-spinner .circular{width:60px;height:60px;animation:loading-rotate 2s linear infinite}.loading-spinner .circular .path{stroke:#5185f3;stroke-width:2;stroke-linecap:round;stroke-dasharray:90,150;stroke-dashoffset:0;animation:loading-dash 1.5s ease-in-out infinite}.el-loading-spinner_qr-code{display:flex;align-items:center;flex-direction:column;row-gap:25px;padding:10px}.el-loading-spinner_qr-code .circular{height:100px;width:100px;stroke:#5185f3}.el-loading-spinner_qr-code .circular__background{animation:none;position:absolute}.el-loading-spinner_qr-code .circular .path{stroke-width:1}.el-loading-spinner_qr-code .circular .path__background{stroke:#c6c6c6;stroke-dasharray:none}@keyframes loading-rotate{to{transform:rotate(360deg)}}@keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40}to{stroke-dasharray:90,150;stroke-dashoffset:-120}}#idvc-wrapper-container{position:relative}.idvc-modal_validation,.idvc-modal_qr-code{--modal-text: #1C1C1C;--modal-text-secondary: #5A5B62;--modal-border: #EAECF0;--modal-primary: var(--color-primary, #5185F3);--modal-danger: #D92D20;--modal-danger-bg: #FEECEB;--modal-info: var(--color-primary, #5185F3);--modal-info-bg: #EEF3FE;--modal-success: #12B76A;--modal-success-bg: #E7F8EF;--modal-warning-text: #93370D;--modal-warning-bg: #FFFAEB;--modal-warning-border: #FEDF89;width:calc(100% - 32px);max-width:420px;gap:0;min-height:0;padding:32px 28px 28px;border-radius:16px;box-shadow:0 12px 32px #1018282e,0 2px 6px #10182814;text-align:center;color:var(--modal-text)}.idvc-modal_validation .idvc-modal__header__content,.idvc-modal_qr-code .idvc-modal__header__content{font-size:20px;line-height:28px;font-weight:600;color:var(--modal-text)}.idvc-modal_validation .idvc-modal__close-btn,.idvc-modal_qr-code .idvc-modal__close-btn{position:absolute;top:14px;right:14px;z-index:1;display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:8px;margin:0;border-radius:50%;color:var(--modal-text-secondary);transition:background-color .1s}.idvc-modal_validation .idvc-modal__close-btn:hover,.idvc-modal_validation .idvc-modal__close-btn:focus-visible,.idvc-modal_qr-code .idvc-modal__close-btn:hover,.idvc-modal_qr-code .idvc-modal__close-btn:focus-visible{background-color:#f2f4f7;outline:none}.idvc-modal_validation .idvc-modal__close-btn svg,.idvc-modal_qr-code .idvc-modal__close-btn svg{width:100%;height:100%}.idvc-modal_validation .btn,.idvc-modal_qr-code .btn{width:100%;min-height:44px;padding:12px 16px;font-size:15px;font-weight:600;border-radius:10px}.idvc-modal_validation .btn--primary,.idvc-modal_qr-code .btn--primary{background-color:var(--modal-primary);border-color:var(--modal-primary)}.idvc-modal_validation .btn--primary:focus,.idvc-modal_validation .btn--primary:hover,.idvc-modal_qr-code .btn--primary:focus,.idvc-modal_qr-code .btn--primary:hover{background-color:var(--modal-primary);border-color:var(--modal-primary);filter:brightness(1.08)}.idvc-modal_validation .btn--default,.idvc-modal_qr-code .btn--default{color:var(--modal-text);border-color:#d0d5dd}.idvc-modal_validation .btn--default:focus,.idvc-modal_validation .btn--default:hover,.idvc-modal_qr-code .btn--default:focus,.idvc-modal_qr-code .btn--default:hover{color:var(--modal-text);background-color:#f9fafb;border-color:#98a2b3}.idvc-modal_validation>.loading-spinner,.idvc-modal_qr-code>.loading-spinner{min-height:140px}.idvc-modal_validation .idvc-modal__header__body{flex-direction:column;align-items:center;row-gap:16px}.idvc-modal_validation .idvc-modal__header__sign{display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:50%;background:var(--modal-info-bg);transform:none}.idvc-modal_validation .idvc-modal__header__sign svg{display:block;width:30px;height:30px}.idvc-modal_validation .idvc-modal__header__sign--danger{background:var(--modal-danger-bg)}.idvc-modal_validation .idvc-modal__header__sign--success{background:var(--modal-success-bg)}.idvc-modal_validation .color-danger{color:var(--modal-danger);fill:var(--modal-danger)}.idvc-modal_validation .color-primary{color:var(--modal-info);fill:var(--modal-info)}.idvc-modal_validation .color-success{color:var(--modal-success);fill:var(--modal-success)}.idvc-modal_validation .idvc-modal__body{width:100%;margin-top:8px;font-size:15px;line-height:22px;color:var(--modal-text-secondary)}.idvc-modal_validation .idvc-modal__body:has(>.idvc-modal__body__list:empty){display:none}.idvc-modal_validation .idvc-modal__body__list{display:inline-block;max-width:100%;text-align:left}.idvc-modal_validation .idvc-modal__body__list--no-numbers{display:block;text-align:center}.idvc-modal_validation .idvc-modal__body__list__item{margin-bottom:8px}.idvc-modal_validation .idvc-modal__footer{gap:12px;margin-top:24px}.idvc-modal_validation.center{padding:36px 28px}.idvc-modal_qr-code{max-width:440px}.idvc-modal_qr-code .idvc-modal__header-wrap{padding:0 24px}.idvc-modal_qr-code .idvc-modal__header__content_qr-code{font-size:22px;line-height:30px}.idvc-modal_qr-code .idvc-modal__body_qr-code{min-height:180px;margin-top:4px;color:var(--modal-text);text-align:center}.idvc-modal_qr-code .idvc-modal__body_process_ready{width:100%}.idvc-modal_qr-code .idvc-modal__body_process_ready-header{max-width:300px;margin:8px auto 20px;font-size:15px;line-height:22px;font-weight:400;color:var(--modal-text-secondary)}.idvc-modal_qr-code .idvc-modal__body_process_ready__canvas-container{display:inline-block;margin:0 auto;padding:12px;border:1px solid var(--modal-border);border-radius:16px;background:#fff;box-shadow:0 1px 2px #1018280f}.idvc-modal_qr-code .idvc-modal__body_process_ready-canvas{border-radius:4px}.idvc-modal_qr-code .idvc-modal__body_process_ready-info{display:flex;align-items:flex-start;column-gap:10px;margin:20px 0 0;padding:12px 14px;border:1px solid var(--modal-warning-border);border-radius:10px;background:var(--modal-warning-bg);text-align:left}.idvc-modal_qr-code .idvc-modal__body_process_ready-info svg{flex-shrink:0;width:16px;height:16px;margin-top:2px}.idvc-modal_qr-code .idvc-modal__body_process_ready-info__text{margin-left:0;font-size:13px;line-height:19px;color:var(--modal-warning-text)}.idvc-modal_qr-code .idvc-modal__body_process_validating{width:100%}.idvc-modal_qr-code .idvc-modal__body_process_validating .el-loading-spinner_qr-code{min-height:180px;padding:0;row-gap:20px}.idvc-modal_qr-code .idvc-modal__body_process_validating .el-loading-spinner_qr-code .circular{width:72px;height:72px}.idvc-modal_qr-code .idvc-modal__body_process_validating .el-loading-spinner_qr-code .path{stroke:var(--modal-primary);stroke-width:2}.idvc-modal_qr-code .idvc-modal__body_process_validating-info__text{max-width:280px;font-size:15px;line-height:22px;color:var(--modal-text-secondary)}.idvc-modal_qr-code .idvc-modal__body_process_done{width:100%}.idvc-modal_qr-code .idvc-modal__body_process_done-container{min-height:180px;row-gap:16px}.idvc-modal_qr-code .idvc-modal__body_process_done-container svg{box-sizing:content-box;width:30px;height:30px;padding:13px;border-radius:50%;background:var(--modal-danger-bg);fill:var(--modal-danger)}.idvc-modal_qr-code .idvc-modal__body_process_done__text{font-size:20px;line-height:28px;font-weight:600;color:var(--modal-text)}.idvc-modal_qr-code .idvc-modal__footer_qr-code{width:100%}.idvc-modal_qr-code .idvc-modal__footer_qr-code:not(:empty){margin-top:20px}@media(max-width:400px){.idvc-modal_validation,.idvc-modal_qr-code{padding:28px 20px 20px}.idvc-modal_validation .idvc-modal__footer{grid-template-columns:1fr}.idvc-modal_qr-code .idvc-modal__header__content_qr-code{font-size:19px;line-height:26px}}@keyframes idvc-modal-in{0%{opacity:0;transform:translateY(8px) scale(.98)}}.idvc-modal-background:has(>.idvc-modal_validation,>.idvc-modal_qr-code){animation:idvc-fade-in .2s ease-out}.idvc-modal_validation,.idvc-modal_qr-code{animation:idvc-modal-in .28s cubic-bezier(.22,1,.36,1)}.idvc-modal_validation .idvc-modal__header__sign{animation:idvc-pop-in .42s cubic-bezier(.34,1.56,.64,1) .08s backwards}.idvc-modal_validation .idvc-modal__header__content,.idvc-modal_validation .idvc-modal__body,.idvc-modal_validation .idvc-modal__footer{animation:idvc-rise-in .32s cubic-bezier(.22,1,.36,1) .12s backwards}.idvc-modal_qr-code .idvc-modal__body_process_ready,.idvc-modal_qr-code .idvc-modal__body_process_validating,.idvc-modal_qr-code .idvc-modal__body_process_done{animation:idvc-rise-in .3s cubic-bezier(.22,1,.36,1)}.idvc-modal_qr-code .idvc-modal__body_process_done-container svg{animation:idvc-pop-in .42s cubic-bezier(.34,1.56,.64,1) .06s backwards}.idvc-modal_qr-code .idvc-modal__footer_qr-code .btn{animation:idvc-fade-in .2s ease-out}.idvc-modal_validation .btn,.idvc-modal_qr-code .btn{transition:background-color .15s,border-color .15s,filter .15s,opacity .15s,transform .1s}.idvc-modal_validation .btn:active:not(:disabled),.idvc-modal_qr-code .btn:active:not(:disabled){transform:scale(.98)}@keyframes idvc-fade-in{0%{opacity:0}}@keyframes idvc-rise-in{0%{opacity:0;transform:translateY(6px)}}@keyframes idvc-pop-in{0%{opacity:0;transform:scale(.6)}}@media(prefers-reduced-motion:reduce){.idvc-modal-background,.idvc-modal_validation,.idvc-modal_validation *,.idvc-modal_qr-code,.idvc-modal_qr-code *:not(.circular,.path){animation:none!important;transition:none!important}}\n/*$vite$:1*/",document.head.appendChild(de);const ue=!1;var fe=Array.isArray,pe=Array.prototype.indexOf,he=Array.prototype.includes,me=Array.from,ge=Object.defineProperty,ve=Object.getOwnPropertyDescriptor,ye=Object.getOwnPropertyDescriptors,be=Object.prototype,_e=Array.prototype,we=Object.getPrototypeOf,Se=Object.isExtensible;const Ee=()=>{};function Me(){var e,t;return{promise:new Promise((n,o)=>{e=n,t=o}),resolve:e,reject:t}}const Te=1<<24,Ae=16,Ce=32,Ne=64,Ie=512,xe=1024,ke=2048,Re=4096,De=8192,Le=16384,Be=32768,Oe=1<<25,Pe=65536,Fe=1<<17,Ue=1<<19,ze=1<<21,Ge=1<<23,He=Symbol("$state"),Ve=Symbol("component"),je=Symbol("legacy props"),We=Symbol("attributes"),qe=Symbol("class"),Ke=Symbol("style"),Xe=Symbol("text"),Ye=Symbol("form reset"),$e=new class extends Error{constructor(){super(...arguments),re(this,"name","StaleReactionError"),re(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},Ze=Symbol("uninitialized"),Qe="http://www.w3.org/1999/xhtml";function Je(e){return e===this.v}function et(e){return t=e,n=this.v,!(t!=t?n==n:t!==n||null!==t&&"object"==typeof t||"function"==typeof t);var t,n}function tt(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}let nt=!1;function ot(e,t,n){const o={};return[()=>(n(o)||function(){throw new Error("https://svelte.dev/e/missing_context")}(),e(o)),e=>t(o,e),()=>n(o)]}function rt(e,t){return null===e&&tt(),e.c??(e.c=new Map(function(e){let t=e.p;for(;null!==t&&null===t.c;)t=t.p;return(null==t?void 0:t.c)??null}(e)||void 0))}let it=null;function at(e){it=e}function lt(e){return rt(it).get(e)}function st(e,t){return rt(it).set(e,t),t}function ct(e){return rt(it).has(e)}function dt(e,t=!1,n){it={p:it,i:!1,c:null,e:null,s:e,x:null,r:to,l:nt&&!t?{s:null,u:null,$:[]}:null}}function ut(e){var t=it,n=t.e;if(null!==n)for(var o of(t.e=null,n))Ln(o);return void 0!==e&&(t.x=e),t.i=!0,it=t.p,ft(e)}function ft(e={}){return ge(e,Ve,{value:!0}),e}function pt(){return!nt||null!==it&&null===it.l}let ht=[];function mt(){var e=ht;ht=[],function(e){for(var t=0;t<e.length;t++)e[t]()}(e)}function gt(e){if(0===ht.length&&!Ht){var t=ht;queueMicrotask(()=>{t===ht&&mt()})}ht.push(e)}function vt(){for(;ht.length>0;)mt()}const yt=-7169;function bt(e,t){e.f=e.f&yt|t}function _t(e){0!==(e.f&Ie)||null===e.deps?bt(e,xe):bt(e,Re)}function wt(e,t,n){0!==(e.f&ke)?t.add(e):0!==(e.f&Re)&&n.add(e),bt(e,xe)}let St=!1;function Et(e){var t=Qn,n=to;eo(null),no(null);try{return e()}finally{eo(t),no(n)}}function Mt(e,t,n,o=n){e.addEventListener(t,()=>Et(n));const r=e[Ye];e[Ye]=r?()=>{r(),o(!0)}:()=>o(!0),St||(St=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const n of e.target.elements)null==(t=n[Ye])||t.call(n)})},{capture:!0}))}function Tt(e,t,n,o){const r=pt()?Nt:Rt;var i=e.filter(e=>!e.settled),a=t.map(r);if(0!==n.length||0!==i.length){var l,s,c,d,u=to,f=(l=to,s=Qn,c=it,d=Ft,function(e=!0){no(l),eo(s),at(c),e&&0===(l.f&Le)&&(null==d||d.activate(),null==d||d.apply())}),p=1===i.length?i[0].promise:i.length>1?Promise.all(i.map(e=>e.promise)):null,h=Ct();0!==n.length?p?p.then(()=>{f(),g(),At()}):g():p.then(()=>m([])).finally(h)}else o(a);function m(e){if(0===(u.f&Le)){f();try{o([...a,...e])}catch(t){In(t,u)}At()}}function g(){Promise.all(n.map(e=>xt(e))).then(m).catch(e=>In(e,u)).finally(h)}}function At(e=!0){no(null),eo(null),at(null),e&&(null==Ft||Ft.deactivate())}function Ct(){var e=to,t=e.b,n=Ft,o=!!(null==t?void 0:t.is_rendered());return null==t||t.update_pending_count(1,n),n.increment(o,e),()=>{null==t||t.update_pending_count(-1,n),n.decrement(o,e)}}function Nt(e){null!==to&&(to.f|=Ue);return{ctx:it,deps:null,effects:null,equals:Je,f:2050,fn:e,reactions:null,rv:0,v:Ze,wv:0,parent:to,ac:null}}const It=Symbol("obsolete");function xt(e,t,n){let o=to;null===o&&function(){throw new Error("https://svelte.dev/e/async_derived_orphan")}();var r=void 0,i=sn(Ze),a=!Qn,l=new Set;return function(e){kn(4718592,e)}(()=>{var t,n,s=to,c=Me();r=c.promise;try{Promise.resolve(e()).then(c.resolve,e=>{e!==$e&&c.reject(e)}).finally(At)}catch(p){c.reject(p),At()}var d=Ft;if(a){if(0!==(s.f&Be))var u=Ct();if(null==(t=o.b)?void 0:t.is_rendered())null==(n=d.async_deriveds.get(s))||n.reject(It);else for(const e of l.values())e.reject(It);l.add(c),d.async_deriveds.set(s,c)}const f=(e,t=void 0)=>{null==u||u(),l.delete(c),t!==It&&(d.activate(),t?(i.f|=Ge,vn(i,t)):(0!==(i.f&Ge)&&(i.f^=Ge),vn(i,e)),d.deactivate())};c.promise.then(f,e=>f(null,e||"unknown"))}),function(e){const t=kn(8,null);bt(t,xe),t.teardown=e}(()=>{for(const e of l)e.reject(It)}),new Promise(e=>{!function t(n){function o(){n===r?e(i):t(r)}n.then(o,o)}(r)})}function kt(e){const t=Nt(e);return ro(t),t}function Rt(e){const t=Nt(e);return t.equals=et,t}function Dt(e){var t,n=to,o=e.parent;if(!$n&&null!==o&&e.v!==Ze&&24576&o.f)return console.warn("https://svelte.dev/e/derived_inert"),e.v;no(o);try{!function(e){var t=e.effects;if(null!==t){e.effects=null;for(var n=0;n<t.length;n+=1)Gn(t[n])}}(e),t=go(e)}finally{no(n)}return t}function Lt(e){var t=Dt(e);e.equals(t)||(e.wv=po(),(null==Ft?void 0:Ft.is_fork)&&null!==e.deps||(null!==Ft?(Ft.capture(e,t,!0),null==Ut||Ut.capture(e,t,!0)):e.v=t,null!==e.deps))?$n||(null!==zt?(Rn()||(null==Ft?void 0:Ft.is_fork))&&zt.set(e,t):_t(e)):bt(e,xe)}function Bt(e){if(null!==e.effects)for(const t of e.effects)t.teardown&&null!==t.fn&&_o(t)}let Ot=null,Pt=null,Ft=null,Ut=null,zt=null,Gt=null,Ht=!1,Vt=!1,jt=null,Wt=null;var qt=0;let Kt=1;const Xt=class g{constructor(){le(this,m),re(this,"id",Kt++),le(this,e,!1),re(this,"linked",!0),le(this,t,null),le(this,n,null),re(this,"async_deriveds",new Map),re(this,"current",new Map),re(this,"previous",new Map),le(this,o,new Set),le(this,r,new Set),le(this,i,0),le(this,a,new Map),le(this,l,null),le(this,s,[]),le(this,c,[]),le(this,d,new Set),le(this,u,new Set),le(this,f,new Map),le(this,p,new Set),re(this,"is_fork",!1),le(this,h,!1),null===Pt?Ot=Pt=this:(se(Pt,n,this),se(this,t,Pt)),Pt=this}skip_effect(e){ae(this,f).has(e)||ae(this,f).set(e,{d:[],m:[]}),ae(this,p).delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=ae(this,f).get(e);if(n){for(var o of(ae(this,f).delete(e),n.d))bt(o,ke),t(o);for(o of n.m)bt(o,Re),t(o)}ae(this,p).add(e)}capture(e,t,n=!1){e.v===Ze||this.previous.has(e)||this.previous.set(e,e.v),0===(e.f&Ge)&&(this.current.set(e,[t,n]),null==zt||zt.set(e,t)),this.is_fork||(e.v=t)}activate(){Ft=this}deactivate(){Ft=null,zt=null}flush(){try{ue,Vt=!0,Ft=this,ce(this,m,y).call(this)}finally{qt=0,Gt=null,jt=null,Wt=null,Vt=!1,Ft=null,zt=null,an.clear()}}discard(){var e;for(const t of ae(this,r))t(this);ae(this,r).clear();for(const t of this.async_deriveds.values())t.reject(It);ce(this,m,E).call(this),null==(e=ae(this,l))||e.resolve()}register_created_effect(e){ae(this,c).push(e)}increment(e,t){if(se(this,i,ae(this,i)+1),e){let e=ae(this,a).get(t)??0;ae(this,a).set(t,e+1)}}decrement(e,t){if(se(this,i,ae(this,i)-1),e){let e=ae(this,a).get(t)??0;1===e?ae(this,a).delete(t):ae(this,a).set(t,e-1)}ae(this,h)||(se(this,h,!0),gt(()=>{se(this,h,!1),this.linked&&this.flush()}))}transfer_effects(e,t){for(const n of e)ae(this,d).add(n);for(const n of t)ae(this,u).add(n);e.clear(),t.clear()}oncommit(e){ae(this,o).add(e)}ondiscard(e){ae(this,r).add(e)}settled(){return(ae(this,l)??se(this,l,Me())).promise}static ensure(){if(null===Ft){const t=Ft=new g;Vt||Ht||gt(()=>{ae(t,e)||t.flush()})}return Ft}apply(){zt=null}schedule(e){var t;Gt=e,(null==(t=e.b)?void 0:t.is_pending)&&16777228&e.f&&0===(e.f&Be)?e.b.defer_effect(e):ae(this,s).push(e)}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakMap,r=new WeakMap,i=new WeakMap,a=new WeakMap,l=new WeakMap,s=new WeakMap,c=new WeakMap,d=new WeakMap,u=new WeakMap,f=new WeakMap,p=new WeakMap,h=new WeakMap,m=new WeakSet,g=function(){if(this.is_fork)return!0;for(const n of ae(this,a).keys()){for(var e=n,t=!1;null!==e.parent;){if(ae(this,f).has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1},v=function(){var e=[];for(const r of ae(this,s))if(0===(r.f&Le)&&6144&r.f){for(var t=r,n=!1;null!==t.parent;){var o=(t=t.parent).f;if(96&o){if(0===(o&xe)){n=!0;break}t.f^=xe}}n||e.push(t)}return se(this,s,[]),e},y=function(){var t,n,r,a;se(this,e,!0);for(const e of ae(this,d))ae(this,u).delete(e),bt(e,ke),this.schedule(e);for(const e of ae(this,u))bt(e,Re),this.schedule(e);this.apply();for(var c=jt=[],p=[],h=Wt=[];ae(this,s).length>0;){qt++>1e3&&(ce(this,m,E).call(this),$t());for(const e of ce(this,m,v).call(this))try{ce(this,m,b).call(this,e,c,p)}catch(C){throw on(e),ce(this,m,g).call(this)||this.discard(),C}}if(Ft=null,h.length>0){var M=Xt.ensure();for(const e of h)M.schedule(e)}if(jt=null,Wt=null,ce(this,m,g).call(this)){ce(this,m,S).call(this,p),ce(this,m,S).call(this,c);for(const[e,t]of ae(this,f))nn(e,t);return void(h.length>0&&ce(t=Ft,m,y).call(t))}const T=ce(this,m,_).call(this);if(T)return ce(this,m,S).call(this,p),ce(this,m,S).call(this,c),void ce(n=T,m,w).call(n,this);ae(this,d).clear(),ae(this,u).clear();for(const e of ae(this,o))e(this);ae(this,o).clear(),Ut=this,Qt(p),Qt(c),Ut=null,null==(r=ae(this,l))||r.resolve();var A=Ft;if(0!==ae(this,i)||0!==ae(this,s).length&&null===A||ce(this,m,E).call(this),ae(this,s).length>0)if(null!==A){for(const e of ae(this,s))ae(A,s).push(e);se(this,s,[])}else A=this;null!==A&&(an.clear(),ce(a=A,m,y).call(a))},b=function(e,t,n){e.f^=xe;for(var o=e.first;null!==o;){var r=o.f,i=!!(96&r);if(!(i&&0!==(r&xe)||0!==(r&De)||ae(this,f).has(o))&&null!==o.fn){i?o.f^=xe:4&r?t.push(o):ho(o)&&(0!==(r&Ae)&&ae(this,u).add(o),_o(o));var a=o.first;if(null!==a){o=a;continue}}for(;null!==o;){var l=o.next;if(null!==l){o=l;break}o=o.parent}}},_=function(){for(var e=ae(this,t);null!==e;){if(!e.is_fork)for(const[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e;e=ae(e,t)}return null},w=function(e){var t;for(const[o,r]of e.current)!this.previous.has(o)&&e.previous.has(o)&&this.previous.set(o,e.previous.get(o)),this.current.set(o,r);for(const[o,r]of e.async_deriveds){const e=this.async_deriveds.get(o);e&&r.promise.then(e.resolve).catch(e.reject)}e.async_deriveds.clear(),this.transfer_effects(ae(e,d),ae(e,u));const n=e=>{var t=e.reactions;if(null!==t&&(!(2&e.f)||6144&e.f))for(const i of t){var o=i.f;if(2&o)n(i);else{var r=i;4194320&o&&!this.async_deriveds.has(r)&&(ae(this,u).delete(r),bt(r,ke),this.schedule(r))}}};for(const o of this.current.keys())n(o);this.oncommit(()=>e.discard()),ce(t=e,m,E).call(t),Ft=this,ce(this,m,y).call(this)},S=function(e){for(var t=0;t<e.length;t+=1)wt(e[t],ae(this,d),ae(this,u))},E=function(){if(this.linked){var e=ae(this,t),o=ae(this,n);null===e?Ot=o:se(e,n,o),null===o?Pt=e:se(o,t,e),this.linked=!1}};let Yt=Xt;function $t(){try{!function(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}()}catch(e){In(e,Gt)}}let Zt=null;function Qt(e){var t=e.length;if(0!==t){for(var n=0;n<t;){var o=e[n++];if(!(24576&o.f)&&ho(o)&&(Zt=new Set,_o(o),null===o.deps&&null===o.first&&null===o.nodes&&null===o.teardown&&null===o.ac&&Vn(o),(null==Zt?void 0:Zt.size)>0)){an.clear();for(const e of Zt){if(24576&e.f)continue;const t=[e];let n=e.parent;for(;null!==n;)Zt.has(n)&&(Zt.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){const n=t[e];24576&n.f||_o(n)}}Zt.clear()}}Zt=null}}function Jt(e,t,n,o){if(!n.has(e)&&(n.add(e),null!==e.reactions))for(const r of e.reactions){const e=r.f;2&e?Jt(r,t,n,o):4194320&e&&0===(e&ke)&&en(r,t,o)&&(bt(r,ke),tn(r))}}function en(e,t,n){const o=n.get(e);if(void 0!==o)return o;if(null!==e.deps)for(const r of e.deps){if(he.call(t,r))return!0;if(2&r.f&&en(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function tn(e){Ft.schedule(e)}function nn(e,t){if(0===(e.f&Ce)||0===(e.f&xe)){0!==(e.f&ke)?t.d.push(e):0!==(e.f&Re)&&t.m.push(e),bt(e,xe);for(var n=e.first;null!==n;)nn(n,t),n=n.next}}function on(e){bt(e,xe);for(var t=e.first;null!==t;)on(t),t=t.next}let rn=new Set;const an=new Map;let ln=!1;function sn(e,t){return{f:0,v:e,reactions:null,equals:Je,rv:0,wv:0}}function cn(e,t){const n=sn(e);return ro(n),n}function dn(e,t,n=!1){return null===Qn||Jn&&0===(Qn.f&Fe)||!pt()||!(4325394&Qn.f)||null!==oo&&oo.has(e)||function(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}(),vn(e,n?_n(t):t,Wt)}var un,fn,pn,hn,mn=null,gn=0;function vn(e,t,n=null){if(!e.equals(t)){$n?an.set(e,t):an.has(e)||an.set(e,e.v);var o=Yt.ensure();if(o.capture(e,t),2&e.f){const t=e;0!==(e.f&ke)&&Dt(t),null===zt&&_t(t)}e.wv=po(),mn=null,gn=0,bn(e,ke,n),mn=null,!pt()||null===to||0===(to.f&xe)||96&to.f||(null===lo?function(e){lo=e}([e]):lo.push(e)),!o.is_fork&&rn.size>0&&!ln&&function(){ln=!1;for(const e of rn){let t;0!==(e.f&xe)&&bt(e,Re);try{t=ho(e)}catch{t=!0}t&&_o(e)}rn.clear()}()}return t}function yn(e){dn(e,e.v+1)}function bn(e,t,n){var o=e.reactions;if(null!==o){var r=pt(),i=o.length;if((gn+=i)>1e5&&null===mn&&(mn=new Set),null!==mn){if(mn.has(e))return;mn.add(e)}for(var a=0;a<i;a++){var l=o[a],s=l.f;if(r||l!==to){var c=0===(s&ke);if(c&&bt(l,t),0!==(s&Fe))rn.add(l);else if(2&s){var d=l;null==zt||zt.delete(d),bn(d,Re,n)}else if(c){var u=l;0!==(s&Ae)&&null!==Zt&&Zt.add(u),null!==n?n.push(u):tn(u)}}}}}function _n(e){if("object"!=typeof e||null===e||He in e||Ve in e)return e;const t=we(e);if(t!==be&&t!==_e)return e;var n=new Map,o=fe(e),r=cn(0),i=uo,a=e=>{if(uo===i)return e();var t=Qn,n=uo;eo(null),fo(i);var o=e();return eo(t),fo(n),o};return o&&n.set("length",cn(e.length)),new Proxy(e,{defineProperty(e,t,o){"value"in o&&!1!==o.configurable&&!1!==o.enumerable&&!1!==o.writable||function(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}();var r=n.get(t);return void 0===r?a(()=>{var e=cn(o.value);return n.set(t,e),e}):dn(r,o.value,!0),!0},deleteProperty(e,t){var o=n.get(t);if(void 0===o){if(t in e){const e=a(()=>cn(Ze));n.set(t,e),yn(r)}}else dn(o,Ze),yn(r);return!0},get(t,o,r){var i;if(o===He)return e;var l=n.get(o),s=o in t;if(void 0!==l||s&&!(null==(i=ve(t,o))?void 0:i.writable)||(l=a(()=>cn(_n(s?t[o]:Ze))),n.set(o,l)),void 0!==l){var c=So(l);return c===Ze?void 0:c}return Reflect.get(t,o,r)},getOwnPropertyDescriptor(e,t){var o;null==(o=this.has)||o.call(this,e,t);var r=Reflect.getOwnPropertyDescriptor(e,t),i=n.get(t);if(void 0!==i){var a=So(i);if(a===Ze)return;if(!r||!("value"in r))return{enumerable:!0,configurable:!0,value:a,writable:!0};r.value=a}return r},has(e,t){var o;if(t===He)return!0;var r=n.get(t),i=void 0!==r&&r.v!==Ze||Reflect.has(e,t);if((void 0!==r||null!==to&&(!i||(null==(o=ve(e,t))?void 0:o.writable)))&&(void 0===r&&(r=a(()=>cn(i?_n(e[t]):Ze)),n.set(t,r)),So(r)===Ze))return!1;return i},set(e,t,i,l){var s,c=n.get(t),d=t in e;if(o&&"length"===t)for(var u=i;u<c.v;u+=1){var f=n.get(u+"");void 0!==f?dn(f,Ze):u in e&&(f=a(()=>cn(Ze)),n.set(u+"",f))}void 0===c?d&&!(null==(s=ve(e,t))?void 0:s.writable)||(dn(c=a(()=>cn(void 0)),_n(i)),n.set(t,c)):(d=c.v!==Ze,dn(c,a(()=>_n(i))));var p=Reflect.getOwnPropertyDescriptor(e,t);if((null==p?void 0:p.set)&&p.set.call(l,i),!d){if(o&&"string"==typeof t){var h=n.get("length"),m=Number(t);Number.isInteger(m)&&m>=h.v&&dn(h,m+1)}yn(r)}return!0},ownKeys(e){So(r);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return void 0===t||t.v!==Ze});for(var[o,i]of n)i.v===Ze||o in e||t.push(o);return t},setPrototypeOf(){!function(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}()}})}function wn(e=""){return document.createTextNode(e)}function Sn(e){return pn.call(e)}function En(e){return hn.call(e)}function Mn(e,t){return Sn(e)}function Tn(e,t=!1){var n=Sn(e);return n instanceof Comment&&""===n.data?En(n):n}function An(e,t=!1){return Sn(e)}function Cn(e,t=1,n=!1){let o=e;for(;t--;)o=En(o);return o}function Nn(e,t,n){return null==t||t===Qe?n?document.createElement(e,{is:n}):document.createElement(e):n?document.createElementNS(t,e,{is:n}):document.createElementNS(t,e)}function In(e,t){if(null===t||0===(t.f&Le)){for(;null!==t;){if(128&t.f&&!(33570816&t.f)){if(0===(t.f&Be))throw e;try{return void t.b.error(e)}catch(n){e=n}}t=t.parent}throw e}}function xn(e){null===to&&(null===Qn&&function(){throw new Error("https://svelte.dev/e/effect_orphan")}(),function(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}()),$n&&function(){throw new Error("https://svelte.dev/e/effect_in_teardown")}()}function kn(e,t){var n=to;null!==n&&0!==(n.f&De)&&(e|=De);var o={ctx:it,deps:null,nodes:null,f:e|ke|Ie,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};null==Ft||Ft.register_created_effect(o);var r=o;if(4&e)null!==jt?jt.push(o):Yt.ensure().schedule(o);else if(null!==t){try{_o(o)}catch(a){throw Gn(o),a}null===r.deps&&null===r.teardown&&null===r.nodes&&r.first===r.last&&0===(r.f&Ue)&&(r=r.first,0!==(e&Ae)&&0!==(e&Pe)&&null!==r&&(r.f|=Pe))}if(null!==r&&(r.parent=n,null!==n&&function(e,t){var n=t.last;null===n?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}(r,n),null!==Qn&&2&Qn.f&&0===(e&Ne))){var i=Qn;(i.effects??(i.effects=[])).push(r)}return o}function Rn(){return null!==Qn&&!Jn}function Dn(e){xn();var t=to.f;if(!(!Qn&&0!==(t&Ce)&&null!==it&&!it.i))return Ln(e);var n=it;(n.e??(n.e=[])).push(e)}function Ln(e){return kn(1048580,e)}function Bn(e,t=0){return kn(8|t,e)}function On(e,t=[],n=[],o=[]){Tt(o,t,n,t=>{kn(8,()=>{e(...t.map(So))})})}function Pn(e,t=0){return kn(Ae|t,e)}function Fn(e){return kn(524320,e)}function Un(e){var t=e.teardown;if(null!==t){const o=$n,r=Qn;Zn(!0),eo(null);try{t.call(null)}catch(n){In(n,e.parent)}finally{Zn(o),eo(r)}}}function zn(e,t=!1){var n=e.first;for(e.first=e.last=null;null!==n;){const e=n.ac;null!==e&&Et(()=>{e.abort($e)});var o=n.next;0!==(n.f&Ne)?n.parent=null:Gn(n,t),n=o}}function Gn(e,t=!0){var n=!1;(t||262144&e.f)&&null!==e.nodes&&null!==e.nodes.end&&(Hn(e.nodes.start,e.nodes.end),n=!0),e.f|=Oe,zn(e,t&&!n),bo(e,0);var o=e.nodes&&e.nodes.t;if(null!==o)for(const i of o)i.stop();Un(e),e.f^=Oe,e.f|=Le;var r=e.parent;null!==r&&null!==r.first&&Vn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Hn(e,t){for(;null!==e;){var n=e===t?null:En(e);e.remove(),e=n}}function Vn(e){var t=e.parent,n=e.prev,o=e.next;null!==n&&(n.next=o),null!==o&&(o.prev=n),null!==t&&(t.first===e&&(t.first=o),t.last===e&&(t.last=n))}function jn(e,t,n=!0){var o=[];e.f|=256,Wn(e,o,!0);var r=()=>{n&&Gn(e),t&&t()},i=o.length;if(i>0){var a=()=>--i||r();for(var l of o)l.out(a)}else r()}function Wn(e,t,n){if(0===(e.f&De)){e.f^=De;var o=e.nodes&&e.nodes.t;if(null!==o)for(const e of o)(e.is_global||n)&&t.push(e);for(var r=e.first;null!==r;){var i=r.next;if(0===(r.f&Ne))Wn(r,t,!!(0!==(r.f&Pe)||0!==(r.f&Ce)&&0!==(e.f&Ae))&&n);r=i}}}function qn(e){e.f&=-257,Kn(e,!0)}function Kn(e,t){if(!(256&e.f)&&0!==(e.f&De)){e.f^=De,0===(e.f&xe)&&(bt(e,ke),Yt.ensure().schedule(e));for(var n=e.first;null!==n;){var o=n.next;Kn(n,!!(0!==(n.f&Pe)||0!==(n.f&Ce))&&t),n=o}var r=e.nodes&&e.nodes.t;if(null!==r)for(const e of r)(e.is_global||t)&&e.in()}}function Xn(e,t){if(e.nodes)for(var n=e.nodes.start,o=e.nodes.end;null!==n;){var r=n===o?null:En(n);t.append(n),n=r}}let Yn=!1,$n=!1;function Zn(e){$n=e}let Qn=null,Jn=!1;function eo(e){Qn=e}let to=null;function no(e){to=e}let oo=null;function ro(e){null!==Qn&&(0!==(Qn.f&ze)||2&Qn.f)&&(oo??(oo=new Set)).add(e)}let io=null,ao=0,lo=null;let so=1,co=0,uo=co;function fo(e){uo=e}function po(){return++so}function ho(e){var t=e.f;if(0!==(t&ke))return!0;if(0!==(t&Re)){for(var n=e.deps,o=n.length,r=0;r<o;r++){var i=n[r];if(ho(i)&&Lt(i),i.wv>e.wv)return!0}0!==(t&Ie)&&null===zt&&bt(e,xe)}return!1}function mo(e,t,n=!0){var o=e.reactions;if(null!==o&&(null===oo||!oo.has(e)))for(var r=0;r<o.length;r++){var i=o[r];2&i.f?mo(i,t,!1):t===i&&(n?bt(i,ke):0!==(i.f&xe)&&bt(i,Re),tn(i))}}function go(e){var t=io,n=ao,o=lo,r=Qn,i=oo,a=it,l=Jn,s=uo,c=e.f;io=null,ao=0,lo=null,Qn=96&c?null:e,oo=null,at(e.ctx),Jn=!1,uo=++co,null!==e.ac&&(Et(()=>{e.ac.abort($e)}),e.ac=null);try{e.f|=ze;var d=(0,e.fn)();e.f|=Be;var u=vo(e);if(pt()&&null!==lo&&!Jn&&null!==u&&!(6146&e.f))for(var f=0;f<lo.length;f++)mo(lo[f],e);if(null!==r&&r!==e){if(co++,null!==r.deps)for(let e=0;e<n;e+=1)r.deps[e].rv=co;if(null!==t)for(const e of t)e.rv=co;null!==lo&&(null===o?o=lo:o.push(...lo))}return 0!==(e.f&Ge)&&(e.f^=Ge),d}catch(p){return vo(e),function(e){var t=to;if(null===t)return Qn.f|=Ge,e;if(0===(t.f&Be)&&!(4&t.f))throw e;In(e,t)}(p)}finally{e.f^=ze,io=t,ao=n,lo=o,Qn=r,oo=i,at(a),Jn=l,uo=s}}function vo(e){var t,n=e.deps,o=null==Ft?void 0:Ft.is_fork;if(null!==io){var r;if(o||bo(e,ao),null!==n&&ao>0)for(n.length=ao+io.length,r=0;r<io.length;r++)n[ao+r]=io[r];else e.deps=n=io;if(Rn()&&0!==(e.f&Ie))for(r=ao;r<n.length;r++)((t=n[r]).reactions??(t.reactions=[])).push(e)}else!o&&null!==n&&ao<n.length&&(bo(e,ao),n.length=ao);return n}function yo(e,t){let n=t.reactions;if(null!==n){var o=pe.call(n,e);if(-1!==o){var r=n.length-1;0===r?n=t.reactions=null:(n[o]=n[r],n.pop())}}if(null===n&&2&t.f&&(null===io||!he.call(io,t))){var i=t;0!==(i.f&Ie)&&(i.f^=Ie),i.v!==Ze&&_t(i),null!==i.ac&&Et(()=>{i.ac.abort($e),i.ac=null,bt(i,ke)}),function(e){var t;if(null!==e.effects)for(const n of e.effects)(n.teardown||n.ac)&&(null==(t=n.teardown)||t.call(n),null!==n.ac&&Et(()=>{n.ac.abort($e),n.ac=null}),null!==n.fn&&(n.teardown=Ee),bo(n,0),zn(n))}(i),bo(i,0)}}function bo(e,t){var n=e.deps;if(null!==n)for(var o=t;o<n.length;o++)yo(e,n[o])}function _o(e){var t=e.f;if(0===(t&Le)){bt(e,xe);var n=to,o=Yn;to=e,Yn=!(96&t);try{16777232&t?function(e){for(var t=e.first;null!==t;){var n=t.next;0===(t.f&Ce)&&Gn(t),t=n}}(e):zn(e),Un(e);var r=go(e);e.teardown="function"==typeof r?r:null,e.wv=so}finally{Yn=o,to=n}}}async function wo(){await Promise.resolve(),function(){var e=Ht;Ht=!0;try{for(;;){if(vt(),null===Ft)return;Ft.flush()}}finally{Ht=e}}()}function So(e){var t=!!(2&e.f);if(null!==Qn&&!Jn&&!(null!==to&&0!==(to.f&Le)||null!==oo&&oo.has(e))){var n=Qn.deps;if(0!==(Qn.f&ze))e.rv<co&&(e.rv=co,null===io&&null!==n&&n[ao]===e?ao++:null===io?io=[e]:io.push(e));else{Qn.deps??(Qn.deps=[]),he.call(Qn.deps,e)||Qn.deps.push(e);var o=e.reactions;null===o?e.reactions=[Qn]:he.call(o,Qn)||o.push(Qn)}}if($n&&an.has(e))return an.get(e);if(t){var r=e;if($n){var i=r.v;return(0===(r.f&xe)&&null!==r.reactions||Mo(r))&&(i=Dt(r)),an.set(r,i),i}var a=0===(r.f&Ie)&&!Jn&&null!==Qn&&(Yn||0!==(Qn.f&Ie)),l=0===(r.f&Be);ho(r)&&(a&&(r.f|=Ie),Lt(r)),a&&!l&&(Bt(r),Eo(r))}if(null==zt?void 0:zt.has(e))return zt.get(e);if(0!==(e.f&Ge))throw e.v;return e.v}function Eo(e){if(e.f|=Ie,null!==e.deps)for(const t of e.deps)(t.reactions??(t.reactions=[])).push(e),2&t.f&&0===(t.f&Ie)&&(Bt(t),Eo(t))}function Mo(e){if(e.v===Ze)return!0;if(null===e.deps)return!1;for(const t of e.deps){if(an.has(t))return!0;if(2&t.f&&Mo(t))return!0}return!1}function To(e){var t=Jn;try{return Jn=!0,e()}finally{Jn=t}}const Ao=["touchstart","touchmove"];function Co(e){return Ao.includes(e)}const No=Symbol("events"),Io=new Set,xo=new Set;function ko(e,t,n){(t[No]??(t[No]={}))[e]=n}function Ro(e){for(var t=0;t<e.length;t++)Io.add(e[t]);for(var n of xo)n(e)}let Do=null,Lo=!1;function Bo(e){var t,n,o=this,r=o.ownerDocument,i=e.type,a=(null==(t=e.composedPath)?void 0:t.call(e))||[],l=a[0]||e.target;Do=e,Lo||(Lo=!0,setTimeout(()=>{Lo=!1,Do=null}));var s=0,c=Do===e&&e[No];if(c){var d=a.indexOf(c);if(-1!==d&&(o===document||o===window))return void(e[No]=o);var u=a.indexOf(o);if(-1===u)return;d<=u&&(s=d)}if((l=a[s]||e.target)!==o){ge(e,"currentTarget",{configurable:!0,get:()=>l||r});var f=Qn,p=to;eo(null),no(null);try{for(var h,m=[];null!==l&&l!==o;){try{var g=null==(n=l[No])?void 0:n[i];null==g||l.disabled&&e.target!==l||g.call(l,e)}catch(v){h?m.push(v):h=v}if(e.cancelBubble)break;s++,l=s<a.length?a[s]:null}if(h){for(let e of m)queueMicrotask(()=>{throw e});throw h}}finally{e[No]=o,delete e.currentTarget,eo(f),no(p)}}}const Oo=(null==(M=null==globalThis?void 0:globalThis.window)?void 0:M.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Po(e){var t=Nn("template");return t.innerHTML=function(e){return(null==Oo?void 0:Oo.createHTML(e))??e}(e.replaceAll("<!>","\x3c!----\x3e")),t.content}function Fo(e,t){var n=to;null===n.nodes&&(n.nodes={start:e,end:t,a:null,t:null})}function Uo(e,t){var n,o=!!(1&t),r=!!(2&t),i=!e.startsWith("<!>");return()=>{void 0===n&&(n=Po(i?e:"<!>"+e),o||(n=Sn(n)));var t=r||fn?document.importNode(n,!0):n.cloneNode(!0);o?Fo(Sn(t),t.lastChild):Fo(t,t);return t}}function zo(e,t,n="svg"){var o,r=`<${n}>${!e.startsWith("<!>")?e:"<!>"+e}</${n}>`;return()=>{if(!o){var e=Po(r);o=Sn(Sn(e))}var t=o.cloneNode(!0);return Fo(t,t),t}}function Go(e,t){return zo(e,0,"svg")}function Ho(){var e=document.createDocumentFragment(),t=document.createComment(""),n=wn();return e.append(t,n),Fo(t,n),e}function Vo(e,t){null!==e&&e.before(t)}class jo{constructor(e,t,n,o){var r;le(this,G),re(this,"parent"),re(this,"is_pending",!1),re(this,"transform_error"),le(this,T),le(this,A,null),le(this,C),le(this,N),le(this,I),le(this,x,null),le(this,k,null),le(this,R,null),le(this,D,null),le(this,L,0),le(this,B,0),le(this,O,!1),le(this,P,new Set),le(this,F,new Set),le(this,U,null),le(this,z,function(e){let t,n=0,o=sn(0);return()=>{Rn()&&(So(o),Bn(()=>(0===n&&(t=To(()=>e(()=>yn(o)))),n+=1,()=>{gt(()=>{n-=1,0===n&&(null==t||t(),t=void 0,yn(o))})})))}}(()=>(se(this,U,sn(ae(this,L))),()=>{se(this,U,null)}))),se(this,T,e),se(this,C,t),se(this,N,e=>{var t=to;t.b=this,t.f|=128,n(e)}),this.parent=to.b,this.transform_error=o??(null==(r=this.parent)?void 0:r.transform_error)??(e=>e),se(this,I,Pn(()=>{ce(this,G,V).call(this)},589824))}defer_effect(e){wt(e,ae(this,P),ae(this,F))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!ae(this,C).pending}update_pending_count(e,t){ce(this,G,q).call(this,e,t),se(this,L,ae(this,L)+e),ae(this,U)&&!ae(this,O)&&(se(this,O,!0),gt(()=>{se(this,O,!1),ae(this,U)&&vn(ae(this,U),ae(this,L))}))}get_effect_pending(){return ae(this,z).call(this),So(ae(this,U))}error(e){if(!ae(this,C).onerror&&!ae(this,C).failed)throw e;(null==Ft?void 0:Ft.is_fork)?(ae(this,x)&&Ft.skip_effect(ae(this,x)),ae(this,k)&&Ft.skip_effect(ae(this,k)),ae(this,R)&&Ft.skip_effect(ae(this,R)),Ft.oncommit(()=>{ce(this,G,K).call(this,e)})):ce(this,G,K).call(this,e)}}function Wo(e,t){return function(e,{target:t,anchor:n,props:o={},events:r,context:i,intro:a=!0,transformError:l}){!function(){if(void 0===un){un=window,fn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;pn=ve(t,"firstChild").get,hn=ve(t,"nextSibling").get,Se(e)&&(e[qe]=void 0,e[We]=null,e[Ke]=void 0,e.__e=void 0),Se(n)&&(n[Xe]=void 0)}}();var s=void 0,c=function(e){Yt.ensure();const t=kn(524352,e);return(e={})=>new Promise(n=>{e.outro?jn(t,()=>{Gn(t),n(void 0)}):(Gn(t),n(void 0))})}(()=>{var a=n??t.appendChild(wn());!function(e,t,n,o){new jo(e,t,n,o)}(a,{pending:()=>{}},t=>{dt({}),i&&(it.c=i),r&&(o.$$events=r),s=e(t,o)||ft(),ut()},l);var c=new Set,d=e=>{for(var n=0;n<e.length;n++){var o=e[n];if(!c.has(o)){c.add(o);var r=Co(o);for(const e of[t,document]){var i=qo.get(e);void 0===i&&(i=new Map,qo.set(e,i));var a=i.get(o);void 0===a?(e.addEventListener(o,Bo,{passive:r}),i.set(o,1)):i.set(o,a+1)}}}};return d(me(Io)),xo.add(d),()=>{var e;for(var o of c)for(const e of[t,document]){var r=qo.get(e),i=r.get(o);0==--i?(e.removeEventListener(o,Bo),r.delete(o),0===r.size&&qo.delete(e)):r.set(o,i)}xo.delete(d),a!==n&&(null==(e=a.parentNode)||e.removeChild(a))}});return Ko.set(s,c),s}(e,t)}T=new WeakMap,A=new WeakMap,C=new WeakMap,N=new WeakMap,I=new WeakMap,x=new WeakMap,k=new WeakMap,R=new WeakMap,D=new WeakMap,L=new WeakMap,B=new WeakMap,O=new WeakMap,P=new WeakMap,F=new WeakMap,U=new WeakMap,z=new WeakMap,G=new WeakSet,H=function(e){var t=!1,n=!1;const o=()=>{t?console.warn("https://svelte.dev/e/svelte_boundary_reset_noop"):(t=!0,n&&function(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}(),null!==ae(this,R)&&jn(ae(this,R),()=>{se(this,R,null)}),ce(this,G,W).call(this,()=>{ce(this,G,V).call(this)}))};return{reset:o,invoke_onerror:()=>{var t,r;try{n=!0,null==(r=(t=ae(this,C)).onerror)||r.call(t,e,o),n=!1}catch(i){In(i,ae(this,I)&&ae(this,I).parent)}}}},V=function(){try{if(this.is_pending=this.has_pending_snippet(),se(this,B,0),se(this,L,0),se(this,x,Fn(()=>{ae(this,N).call(this,ae(this,T))})),ae(this,B)>0){var e=se(this,D,document.createDocumentFragment());Xn(ae(this,x),e);const t=ae(this,C).pending;se(this,k,Fn(()=>t(ae(this,T))))}else ce(this,G,j).call(this,Ft)}catch(t){this.error(t)}},j=function(e){this.is_pending=!1,e.transfer_effects(ae(this,P),ae(this,F))},W=function(e){var t=to,n=Qn,o=it;no(ae(this,I)),eo(ae(this,I)),at(ae(this,I).ctx);try{return Yt.ensure(),e()}finally{no(t),eo(n),at(o)}},q=function(e,t){var n;this.has_pending_snippet()?(se(this,B,ae(this,B)+e),0===ae(this,B)&&(ce(this,G,j).call(this,t),ae(this,k)&&jn(ae(this,k),()=>{se(this,k,null)}),ae(this,D)&&(ae(this,T).before(ae(this,D)),se(this,D,null)))):this.parent&&ce(n=this.parent,G,q).call(n,e,t)},K=function(e){ae(this,x)&&(Gn(ae(this,x)),se(this,x,null)),ae(this,k)&&(Gn(ae(this,k)),se(this,k,null)),ae(this,R)&&(Gn(ae(this,R)),se(this,R,null));let t=ae(this,C).failed;const n=e=>{const{reset:n,invoke_onerror:o}=ce(this,G,H).call(this,e);o(),t&&se(this,R,ce(this,G,W).call(this,()=>{try{return Fn(()=>{var o=to;o.b=this,o.f|=128,t(ae(this,T),()=>e,()=>n)})}catch(o){return In(o,ae(this,I).parent),null}}))};gt(()=>{var t;try{t=this.transform_error(e)}catch(o){return void In(o,ae(this,I)&&ae(this,I).parent)}null!==t&&"object"==typeof t&&"function"==typeof t.then?t.then(n,e=>In(e,ae(this,I)&&ae(this,I).parent)):n(t)})};const qo=new Map;let Ko=new WeakMap;class Xo{constructor(e,t=!0){re(this,"anchor"),le(this,X,new Map),le(this,Y,new Map),le(this,$,new Map),le(this,Z,new Set),le(this,Q,!0),le(this,J,e=>{if(ae(this,X).has(e)){var t=ae(this,X).get(e),n=ae(this,Y).get(t);if(n)qn(n),ae(this,Z).delete(t);else{var o=ae(this,$).get(t);o&&(qn(o.effect),ae(this,Y).set(t,o.effect),ae(this,$).delete(t),o.fragment.lastChild.remove(),this.anchor.before(o.fragment),n=o.effect)}for(const[t,n]of ae(this,X)){if(ae(this,X).delete(t),t===e)break;const o=ae(this,$).get(n);o&&(Gn(o.effect),ae(this,$).delete(n))}for(const[e,o]of ae(this,Y)){if(e===t||ae(this,Z).has(e))continue;const r=()=>{if(Array.from(ae(this,X).values()).includes(e)){var t=document.createDocumentFragment();Xn(o,t),t.append(wn()),ae(this,$).set(e,{effect:o,fragment:t})}else Gn(o);ae(this,Z).delete(e),ae(this,Y).delete(e)};ae(this,Q)||!n?(ae(this,Z).add(e),jn(o,r,!1)):r()}}}),le(this,ee,e=>{ae(this,X).delete(e);const t=Array.from(ae(this,X).values());for(const[n,o]of ae(this,$))t.includes(n)||(Gn(o.effect),ae(this,$).delete(n))}),this.anchor=e,se(this,Q,t)}ensure(e,t){var n=Ft;!t||ae(this,Y).has(e)||ae(this,$).has(e)||ae(this,Y).set(e,Fn(()=>t(this.anchor)));ae(this,X).set(n,e),ae(this,J).call(this,n)}}function Yo(e,t,n=!1){var o=new Xo(e);function r(e,t){o.ensure(e,t)}Pn(()=>{var e=!1;t((t,n=0)=>{e=!0,r(n,t)}),e||r(-1,null)},n?Pe:0)}X=new WeakMap,Y=new WeakMap,$=new WeakMap,Z=new WeakMap,Q=new WeakMap,J=new WeakMap,ee=new WeakMap;const $o=Symbol("NaN");function Zo(e,t,n=!1,o=!1,r=!1,i=!1){var a=e,l="";if(n)var s=e;On(()=>{var e=to;if(l!==(l=t()??"")){if(n)return e.nodes=null,s.innerHTML=l,void(""!==l&&Fo(Sn(s),s.lastChild));if(null!==e.nodes&&(Hn(e.nodes.start,e.nodes.end),e.nodes=null),""!==l){var i=Nn(o?"svg":r?"math":"template",o?"http://www.w3.org/2000/svg":r?"http://www.w3.org/1998/Math/MathML":void 0);i.innerHTML=l;var c=o||r?i:i.content;if(Fo(Sn(c),c.lastChild),o||r)for(;Sn(c);)a.before(Sn(c));else a.before(c)}}})}function Qo(e,t,...n){var o=new Xo(e);Pn(()=>{const e=t()??null;o.ensure(e,e&&(t=>e(t,...n)))},Pe)}function Jo(e,t){var n,o=void 0;!function(e,t=0){kn(Te|t,e)}(()=>{o!==(o=t())&&(n&&(Gn(n),n=null),o&&(n=Fn(()=>{!function(e){kn(4,e)}(()=>o(e))})))})}function er(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=er(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function tr(e){return"object"==typeof e?function(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=er(e))&&(o&&(o+=" "),o+=t);return o}(e):e??""}const nr=[..." \t\n\r\f \v\ufeff"];function or(e,t,n,o,r,i){var a=e[qe];if(a!==n||void 0===a){var l=function(e,t,n){var o=null==e?"":""+e;if(t&&(o=o?o+" "+t:t),n)for(var r of Object.keys(n))if(n[r])o=o?o+" "+r:r;else if(o.length)for(var i=r.length,a=0;(a=o.indexOf(r,a))>=0;){var l=a+i;0!==a&&!nr.includes(o[a-1])||l!==o.length&&!nr.includes(o[l])?a=l:o=(0===a?"":o.substring(0,a))+o.substring(l+1)}return""===o?null:o}(n,o,i);null==l?e.removeAttribute("class"):t?e.className=l:e.setAttribute("class",l),e[qe]=n}else if(i&&r!==i)for(var s in i){var c=!!i[s];null!=r&&c===!!r[s]||e.classList.toggle(s,c)}return i}const rr=Symbol("is custom element"),ir=Symbol("is html");function ar(e,t,n,o){var r=function(e){return e[We]??(e[We]={[rr]:e.nodeName.includes("-"),[ir]:e.namespaceURI===Qe})}(e);r[t]!==(r[t]=n)&&(null==n?e.removeAttribute(t):"string"!=typeof n&&function(e){var t,n=e.getAttribute("is")||e.nodeName,o=lr.get(n);if(o)return o;lr.set(n,o=new Set);var r=e,i=Element.prototype;for(;i!==r;){for(var a in t=ye(r))t[a].set&&"innerHTML"!==a&&"textContent"!==a&&"innerText"!==a&&o.add(a);r=we(r)}return o}(e).has(t)?e[t]=n:e.setAttribute(t,n))}var lr=new Map;function sr(e){var t=e.type;return"number"===t||"range"===t}function cr(e){return""===e?null:+e}let dr=!1;function ur(e,t,n,o){var r,i=!nt||!!(2&n),a=!!(8&n),l=!!(16&n),s=o,c=!0,d=void 0,u=()=>l&&i?(d??(d=Nt(o)),So(d)):(c&&(c=!1,s=l?To(o):o),s);let f;if(a){var p=He in e||je in e;f=(null==(r=ve(e,t))?void 0:r.set)??(p&&t in e?n=>e[t]=n:void 0)}var h,m,g=!1;if(a?[h,g]=function(e){var t=dr;try{return dr=!1,[e(),dr]}finally{dr=t}}(()=>e[t]):h=e[t],void 0===h&&void 0!==o&&(h=u(),f&&(i&&function(){throw new Error("https://svelte.dev/e/props_invalid_value")}(),f(h))),m=i?()=>{var n=e[t];return void 0===n?u():(c=!0,n)}:()=>{var n=e[t];return void 0!==n&&(s=void 0),void 0===n?s:n},i&&!(4&n))return m;if(f){var v=e.$$legacy;return function(e,t){return arguments.length>0?(i&&t&&!v&&!g||f(t?m():e),e):m()}}var y=!1,b=(1&n?Nt:Rt)(()=>(y=!1,m()));a&&So(b);var _=to;return function(e,t){if(arguments.length>0){const n=t?So(b):i&&a?_n(e):e;return dn(b,n),y=!0,void 0!==s&&(s=n),e}return $n&&y||0!==(_.f&Le)?b.v:So(b)}}function fr(e){var t,n;null===it&&tt(),nt&&null!==it.l?(t=it,n=t.l,n.u??(n.u={a:[],b:[],m:[]})).m.push(e):Dn(()=>{const t=To(e);if("function"==typeof t)return t})}
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self)["IDVC-DVSO"]=t()}(this,function(){"use strict";var e,t,n,o,r,i,a,l,s,c,d,u,f,p,h,m,g,v,y,b,_,w,S,E,M,T,C,A,N,I,x,k,R,D,L,B,O,P,F,U,z,G,H,V,j,W,q,K,X,Y,$,Z,Q,J,ee,te,ne=Object.defineProperty,oe=e=>{throw TypeError(e)},re=(e,t,n)=>((e,t,n)=>t in e?ne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),ie=(e,t,n)=>t.has(e)||oe("Cannot "+n),ae=(e,t,n)=>(ie(e,t,"read from private field"),n?n.call(e):t.get(e)),le=(e,t,n)=>t.has(e)?oe("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),se=(e,t,n,o)=>(ie(e,t,"write to private field"),o?o.call(e,n):t.set(e,n),n),ce=(e,t,n)=>(ie(e,t,"access private method"),n),de=document.createElement("style");de.textContent=".d-none{display:none!important}.qr-code__header{width:100%}.idvc-modal-background{--color-primary: #5185F3;top:0;left:0;z-index:2000;background-color:#0006;overflow-y:auto;display:flex;flex-direction:column;align-items:center;padding:20px 0;box-sizing:border-box}.idvc-after-submit{width:100%;height:100%;position:absolute}.idvc-mount-host{min-height:520px}.idvc{min-height:520px!important}.hidden-element{visibility:hidden;position:absolute}.idvc-modal{font-family:Inter,sans-serif;box-sizing:border-box;position:relative;flex-shrink:0;margin:auto 0;background:#fff;box-shadow:0 1px 3px #0000004d;z-index:2001;display:flex;gap:20px;align-items:center;justify-content:center;flex-direction:column;padding:20px;border-radius:12px;min-height:150px}.idvc-modal *{box-sizing:border-box}.idvc-modal .color-danger{color:#cb0b00;fill:#cb0b00}.idvc-modal .color-success{color:#67c23a;fill:#67c23a}.idvc-modal .color-primary{color:#409eff;fill:#409eff}.idvc-modal .w-100{width:100%}.idvc-modal .w-45{width:45%}.idvc-modal .exclamation-sign{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE2LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPg0KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCINCgkgd2lkdGg9IjQ1LjMxMXB4IiBoZWlnaHQ9IjQ1LjMxMXB4IiB2aWV3Qm94PSIwIDAgNDUuMzExIDQ1LjMxMSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNDUuMzExIDQ1LjMxMTsiDQoJIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPGc+DQoJPHBhdGggZD0iTTIyLjY3NSwwLjAyYy0wLjAwNiwwLTAuMDE0LDAuMDAxLTAuMDIsMC4wMDFjLTAuMDA3LDAtMC4wMTMtMC4wMDEtMC4wMi0wLjAwMUMxMC4xMzUsMC4wMiwwLDEwLjE1NCwwLDIyLjY1Ng0KCQljMCwxMi41LDEwLjEzNSwyMi42MzUsMjIuNjM1LDIyLjYzNWMwLjAwNywwLDAuMDEzLDAsMC4wMiwwYzAuMDA2LDAsMC4wMTQsMCwwLjAyLDBjMTIuNSwwLDIyLjYzNS0xMC4xMzUsMjIuNjM1LTIyLjYzNQ0KCQlDNDUuMzExLDEwLjE1NCwzNS4xNzYsMC4wMiwyMi42NzUsMC4wMnogTTIyLjY3NSwzOC44MTFjLTAuMDA2LDAtMC4wMTQtMC4wMDEtMC4wMi0wLjAwMWMtMC4wMDcsMC0wLjAxMywwLjAwMS0wLjAyLDAuMDAxDQoJCWMtMi4wNDYsMC0zLjcwNS0xLjY1OC0zLjcwNS0zLjcwNWMwLTIuMDQ1LDEuNjU5LTMuNzAzLDMuNzA1LTMuNzAzYzAuMDA3LDAsMC4wMTMsMCwwLjAyLDBjMC4wMDYsMCwwLjAxNCwwLDAuMDIsMA0KCQljMi4wNDUsMCwzLjcwNiwxLjY1OCwzLjcwNiwzLjcwM0MyNi4zODEsMzcuMTUyLDI0LjcyMywzOC44MTEsMjIuNjc1LDM4LjgxMXogTTI3Ljk4OCwxMC41NzgNCgkJYy0wLjI0MiwzLjY5Ny0xLjkzMiwxNC42OTItMS45MzIsMTQuNjkyYzAsMS44NTQtMS41MTksMy4zNTYtMy4zNzMsMy4zNTZjLTAuMDEsMC0wLjAyLDAtMC4wMjksMGMtMC4wMDksMC0wLjAyLDAtMC4wMjksMA0KCQljLTEuODUzLDAtMy4zNzItMS41MDQtMy4zNzItMy4zNTZjMCwwLTEuNjg5LTEwLjk5NS0xLjkzMS0xNC42OTJDMTcuMjAyLDguNzI3LDE4LjYyLDUuMjksMjIuNjI2LDUuMjkNCgkJYzAuMDEsMCwwLjAyLDAuMDAxLDAuMDI5LDAuMDAxYzAuMDA5LDAsMC4wMTktMC4wMDEsMC4wMjktMC4wMDFDMjYuNjg5LDUuMjksMjguMTA5LDguNzI3LDI3Ljk4OCwxMC41Nzh6Ii8+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8L3N2Zz4NCg==)}.idvc-modal__close-btn{width:20px;height:20px;cursor:pointer;margin-left:auto}.idvc-modal__close-btn:hover{background-color:var(--el-color-primary)}.idvc-modal__header{display:flex;align-items:center;justify-content:center;width:100%}.idvc-modal__header__body{display:flex;column-gap:12px}.idvc-modal__header__sign{transform:translateY(2px)}.idvc-modal__header__content{line-height:24px;font-size:20px;margin:0;font-weight:500}.idvc-modal__header__content_qr-code{line-height:44px;font-size:30px;color:#303133}.idvc-modal__header.center{justify-content:center;padding:0}.idvc-modal__body{font-size:16px;word-break:break-word;color:#1c1c1c}.idvc-modal__body__list{margin-left:0;padding-left:20px;text-align:justify;margin-top:0;margin-bottom:0}.idvc-modal__body__list--no-numbers{list-style-type:none;padding-left:0}.idvc-modal__body__list__item{margin-bottom:12px;line-height:22px}.idvc-modal__body__list__item:last-child{margin-bottom:0}.idvc-modal__body_qr-code{color:#000;text-align:left;min-height:250px;position:relative;width:100%;display:flex;align-items:center;justify-content:center}.idvc-modal__body_process_ready-header{font-weight:600;font-size:15px;margin:20px auto 5px}.idvc-modal__body_process_ready-text{display:inline-block;font-style:normal;font-weight:400;font-size:14px;line-height:19px;color:#5a5b62}.idvc-modal__body_process_ready__canvas-container{margin:10px auto}.idvc-modal__body_process_ready-canvas{display:block;margin:0 auto}.idvc-modal__body_process_ready-info{margin:20px auto;padding:8px 12px;border-radius:6px}.idvc-modal__body_process_ready-info__text{margin-left:8px}.idvc-modal__body_process_validating-info__text{text-align:center}.idvc-modal__body_process_done-container{display:flex;flex-direction:column;align-items:center;justify-content:center;row-gap:20px}.idvc-modal__body_process_done__text{text-align:center;font-style:normal;font-weight:600;font-size:28px;line-height:48px}.idvc-modal__footer{display:grid;grid-template-columns:1fr 1fr;gap:25px;width:100%}.idvc-modal__footer.is-single-button{grid-template-columns:1fr}.idvc-modal__footer_qr-code{text-align:center}.idvc-modal.center{justify-content:center}.idvc-consent-form{--form-text: #1C1C1C;--form-border: #D0D5DD;--form-primary: var(--color-primary, #5185F3);--form-required: #D92D20;font-family:Inter,sans-serif;box-sizing:border-box;display:flex;flex-direction:column;width:calc(100% - 32px);max-width:480px;margin:24px auto;z-index:1010;background:#fff;border:1px solid #EAECF0;border-radius:16px;box-shadow:0 12px 32px #1018281a,0 2px 6px #1018280f;color:var(--form-text);overflow:hidden}.idvc-consent-form *{box-sizing:border-box}.idvc-consent-form__header{padding:28px 28px 0}.idvc-consent-form__header__content{margin:0;font-size:22px;line-height:30px;font-weight:600;color:var(--form-text)}.idvc-consent-form__body{display:flex;flex-direction:column;row-gap:20px;padding:16px 28px 0;font-size:15px;line-height:22px;word-break:break-word}.idvc-consent-form__body #idvc-consent-form-text{max-height:240px;overflow-y:auto;margin:0;padding:14px 16px;border-radius:10px;background:#f9fafb;border:1px solid #EAECF0;color:var(--form-text)}.idvc-consent-form__body a{color:var(--form-primary);text-decoration:underline;text-underline-offset:2px}.idvc-consent-form__body .color-red{color:var(--form-required)}.idvc-consent-form__body sup{top:0;font-size:1em;vertical-align:baseline}.idvc-consent-form__body .input-wrapper{display:flex;flex-direction:column;align-items:stretch;row-gap:6px}.idvc-consent-form__body .input-wrapper label{font-size:14px;line-height:20px;font-weight:500;color:var(--form-text)}.idvc-consent-form__body .input-wrapper input[type=text]{width:100%;height:44px;margin:0;padding:0 14px;font:inherit;font-size:16px;color:var(--form-text);background:#fff;border:1px solid var(--form-border);border-radius:10px;box-shadow:0 1px 2px #1018280d;transition:border-color .1s,box-shadow .1s}.idvc-consent-form__body .input-wrapper input[type=text]:focus{outline:none;border-color:var(--form-primary);box-shadow:0 0 0 4px color-mix(in srgb,var(--form-primary) 18%,transparent)}.idvc-consent-form__body .checkbox-wrapper{display:flex;align-items:flex-start;column-gap:4px;margin:0}.idvc-consent-form__body .checkbox-wrapper__star{order:1;flex-shrink:0;line-height:22px}.idvc-consent-form__body .checkbox-wrapper input[type=checkbox]{flex-shrink:0;width:18px;height:18px;margin:2px 8px 0 0;accent-color:var(--form-primary);cursor:pointer;transform:none;order:0}.idvc-consent-form__body .checkbox-wrapper__text{order:2;margin:0;padding:0;line-height:22px;color:var(--form-text);cursor:pointer}.idvc-consent-form__footer{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0;padding:24px 28px 28px}.idvc-consent-form__footer .btn{width:100%;min-height:44px;padding:12px 16px;font-size:15px;font-weight:600;border-radius:10px}.idvc-consent-form__footer .btn--info{color:var(--form-text);background:#fff;border-color:var(--form-border)}.idvc-consent-form__footer .btn--info:focus,.idvc-consent-form__footer .btn--info:hover{background:#f9fafb;border-color:#98a2b3}.idvc-consent-form__footer .btn--primary{background-color:var(--form-primary);border-color:var(--form-primary)}.idvc-consent-form__footer .btn--primary:focus,.idvc-consent-form__footer .btn--primary:hover{background-color:var(--form-primary);border-color:var(--form-primary);filter:brightness(1.08)}.idvc-consent-form__footer .btn--primary.btn--disabled,.idvc-consent-form__footer .btn--primary:disabled{color:#fff;background-color:var(--form-primary);border-color:var(--form-primary);opacity:.45;filter:none;cursor:not-allowed}@media(max-width:400px){.idvc-consent-form__header{padding:24px 20px 0}.idvc-consent-form__body{padding:16px 20px 0}.idvc-consent-form__footer{padding:20px}}.idvc-fixed{position:fixed}.color-red{color:red}.btn{line-height:1;white-space:nowrap;cursor:pointer;background:#fff;border:1px solid #DCDFE6;color:#606266;-webkit-appearance:none;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;outline:0;margin:0;-webkit-transition:.1s;transition:.1s;font-weight:500;padding:12px 20px;font-size:14px;border-radius:8px}.btn--default:focus,.btn--default:hover{color:#409eff;border-color:#c6e2ff;background-color:#ecf5ff}.btn--default:active{color:#3a8ee6;border-color:#3a8ee6;outline:0}.btn--primary{color:#fff;background-color:#5185f3;border-color:#5185f3}.btn--primary:focus,.btn--primary:hover{background:#66b1ff;border-color:#66b1ff;color:#fff}.btn--primary:active{background:#3a8ee6;border-color:#3a8ee6;color:#fff;outline:0}.btn--info{color:#fff;background-color:#4e5d6e;border-color:#4e5d6e}.btn--disabled{color:#fff;background-color:#a0cfff;border-color:#a0cfff}.btn--disabled:hover{cursor:not-allowed;color:#fff;background-color:#a0cfff;border-color:#a0cfff}.qr-code-wrap{z-index:1000;margin:-10px auto 40px}.qr-code-wrap__button{background:#515d6c;border-radius:4px;width:100%;display:inline-block;white-space:nowrap;cursor:pointer;border:1px solid #515D6C;color:var(--color-white);-webkit-appearance:none;text-align:center;box-sizing:border-box;outline:none;margin:0;transition:.1s;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;padding:18px 20px;font-style:normal;font-weight:500;font-size:14px;line-height:1.4}.qr-code-wrap__content{display:flex;justify-content:center;align-items:center;column-gap:13px}.qr-code-wrap__button:hover{background-color:#909399;border-color:#909399}.loading-spinner{display:flex;align-items:center;justify-content:center;width:100%;min-height:120px}.loading-spinner .circular{width:60px;height:60px;animation:loading-rotate 2s linear infinite}.loading-spinner .circular .path{stroke:#5185f3;stroke-width:2;stroke-linecap:round;stroke-dasharray:90,150;stroke-dashoffset:0;animation:loading-dash 1.5s ease-in-out infinite}.el-loading-spinner_qr-code{display:flex;align-items:center;flex-direction:column;row-gap:25px;padding:10px}.el-loading-spinner_qr-code .circular{height:100px;width:100px;stroke:#5185f3}.el-loading-spinner_qr-code .circular__background{animation:none;position:absolute}.el-loading-spinner_qr-code .circular .path{stroke-width:1}.el-loading-spinner_qr-code .circular .path__background{stroke:#c6c6c6;stroke-dasharray:none}@keyframes loading-rotate{to{transform:rotate(360deg)}}@keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40}to{stroke-dasharray:90,150;stroke-dashoffset:-120}}#idvc-wrapper-container{position:relative}.idvc-modal_validation,.idvc-modal_qr-code{--modal-text: #1C1C1C;--modal-text-secondary: #5A5B62;--modal-border: #EAECF0;--modal-primary: var(--color-primary, #5185F3);--modal-danger: #D92D20;--modal-danger-bg: #FEECEB;--modal-info: var(--color-primary, #5185F3);--modal-info-bg: #EEF3FE;--modal-success: #12B76A;--modal-success-bg: #E7F8EF;--modal-warning-text: #93370D;--modal-warning-bg: #FFFAEB;--modal-warning-border: #FEDF89;width:calc(100% - 32px);max-width:420px;gap:0;min-height:0;padding:32px 28px 28px;border-radius:16px;box-shadow:0 12px 32px #1018282e,0 2px 6px #10182814;text-align:center;color:var(--modal-text)}.idvc-modal_validation .idvc-modal__header__content,.idvc-modal_qr-code .idvc-modal__header__content{font-size:20px;line-height:28px;font-weight:600;color:var(--modal-text)}.idvc-modal_validation .idvc-modal__close-btn,.idvc-modal_qr-code .idvc-modal__close-btn{position:absolute;top:14px;right:14px;z-index:1;display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:8px;margin:0;border-radius:50%;color:var(--modal-text-secondary);transition:background-color .1s}.idvc-modal_validation .idvc-modal__close-btn:hover,.idvc-modal_validation .idvc-modal__close-btn:focus-visible,.idvc-modal_qr-code .idvc-modal__close-btn:hover,.idvc-modal_qr-code .idvc-modal__close-btn:focus-visible{background-color:#f2f4f7;outline:none}.idvc-modal_validation .idvc-modal__close-btn svg,.idvc-modal_qr-code .idvc-modal__close-btn svg{width:100%;height:100%}.idvc-modal_validation .btn,.idvc-modal_qr-code .btn{width:100%;min-height:44px;padding:12px 16px;font-size:15px;font-weight:600;border-radius:10px}.idvc-modal_validation .btn--primary,.idvc-modal_qr-code .btn--primary{background-color:var(--modal-primary);border-color:var(--modal-primary)}.idvc-modal_validation .btn--primary:focus,.idvc-modal_validation .btn--primary:hover,.idvc-modal_qr-code .btn--primary:focus,.idvc-modal_qr-code .btn--primary:hover{background-color:var(--modal-primary);border-color:var(--modal-primary);filter:brightness(1.08)}.idvc-modal_validation .btn--default,.idvc-modal_qr-code .btn--default{color:var(--modal-text);border-color:#d0d5dd}.idvc-modal_validation .btn--default:focus,.idvc-modal_validation .btn--default:hover,.idvc-modal_qr-code .btn--default:focus,.idvc-modal_qr-code .btn--default:hover{color:var(--modal-text);background-color:#f9fafb;border-color:#98a2b3}.idvc-modal_validation>.loading-spinner,.idvc-modal_qr-code>.loading-spinner{min-height:140px}.idvc-modal_validation .idvc-modal__header__body{flex-direction:column;align-items:center;row-gap:16px}.idvc-modal_validation .idvc-modal__header__sign{display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:50%;background:var(--modal-info-bg);transform:none}.idvc-modal_validation .idvc-modal__header__sign svg{display:block;width:30px;height:30px}.idvc-modal_validation .idvc-modal__header__sign--danger{background:var(--modal-danger-bg)}.idvc-modal_validation .idvc-modal__header__sign--success{background:var(--modal-success-bg)}.idvc-modal_validation .color-danger{color:var(--modal-danger);fill:var(--modal-danger)}.idvc-modal_validation .color-primary{color:var(--modal-info);fill:var(--modal-info)}.idvc-modal_validation .color-success{color:var(--modal-success);fill:var(--modal-success)}.idvc-modal_validation .idvc-modal__body{width:100%;margin-top:8px;font-size:15px;line-height:22px;color:var(--modal-text-secondary)}.idvc-modal_validation .idvc-modal__body:has(>.idvc-modal__body__list:empty){display:none}.idvc-modal_validation .idvc-modal__body__list{display:inline-block;max-width:100%;text-align:left}.idvc-modal_validation .idvc-modal__body__list--no-numbers{display:block;text-align:center}.idvc-modal_validation .idvc-modal__body__list__item{margin-bottom:8px}.idvc-modal_validation .idvc-modal__footer{gap:12px;margin-top:24px}.idvc-modal_validation.center{padding:36px 28px}.idvc-modal_qr-code{max-width:440px}.idvc-modal_qr-code .idvc-modal__header-wrap{padding:0 24px}.idvc-modal_qr-code .idvc-modal__header__content_qr-code{font-size:22px;line-height:30px}.idvc-modal_qr-code .idvc-modal__body_qr-code{min-height:180px;margin-top:4px;color:var(--modal-text);text-align:center}.idvc-modal_qr-code .idvc-modal__body_process_ready{width:100%}.idvc-modal_qr-code .idvc-modal__body_process_ready-header{max-width:300px;margin:8px auto 20px;font-size:15px;line-height:22px;font-weight:400;color:var(--modal-text-secondary)}.idvc-modal_qr-code .idvc-modal__body_process_ready__canvas-container{display:inline-block;margin:0 auto;padding:12px;border:1px solid var(--modal-border);border-radius:16px;background:#fff;box-shadow:0 1px 2px #1018280f}.idvc-modal_qr-code .idvc-modal__body_process_ready-canvas{border-radius:4px}.idvc-modal_qr-code .idvc-modal__body_process_ready-info{display:flex;align-items:flex-start;column-gap:10px;margin:20px 0 0;padding:12px 14px;border:1px solid var(--modal-warning-border);border-radius:10px;background:var(--modal-warning-bg);text-align:left}.idvc-modal_qr-code .idvc-modal__body_process_ready-info svg{flex-shrink:0;width:16px;height:16px;margin-top:2px}.idvc-modal_qr-code .idvc-modal__body_process_ready-info__text{margin-left:0;font-size:13px;line-height:19px;color:var(--modal-warning-text)}.idvc-modal_qr-code .idvc-modal__body_process_validating{width:100%}.idvc-modal_qr-code .idvc-modal__body_process_validating .el-loading-spinner_qr-code{min-height:180px;padding:0;row-gap:20px}.idvc-modal_qr-code .idvc-modal__body_process_validating .el-loading-spinner_qr-code .circular{width:72px;height:72px}.idvc-modal_qr-code .idvc-modal__body_process_validating .el-loading-spinner_qr-code .path{stroke:var(--modal-primary);stroke-width:2}.idvc-modal_qr-code .idvc-modal__body_process_validating-info__text{max-width:280px;font-size:15px;line-height:22px;color:var(--modal-text-secondary)}.idvc-modal_qr-code .idvc-modal__body_process_done{width:100%}.idvc-modal_qr-code .idvc-modal__body_process_done-container{min-height:180px;row-gap:16px}.idvc-modal_qr-code .idvc-modal__body_process_done-container svg{box-sizing:content-box;width:30px;height:30px;padding:13px;border-radius:50%;background:var(--modal-danger-bg);fill:var(--modal-danger)}.idvc-modal_qr-code .idvc-modal__body_process_done__text{font-size:20px;line-height:28px;font-weight:600;color:var(--modal-text)}.idvc-modal_qr-code .idvc-modal__footer_qr-code{width:100%}.idvc-modal_qr-code .idvc-modal__footer_qr-code:not(:empty){margin-top:20px}@media(max-width:400px){.idvc-modal_validation,.idvc-modal_qr-code{padding:28px 20px 20px}.idvc-modal_validation .idvc-modal__footer{grid-template-columns:1fr}.idvc-modal_qr-code .idvc-modal__header__content_qr-code{font-size:19px;line-height:26px}}@keyframes idvc-modal-in{0%{opacity:0;transform:translateY(8px) scale(.98)}}.idvc-modal-background:has(>.idvc-modal_validation,>.idvc-modal_qr-code){animation:idvc-fade-in .2s ease-out}.idvc-modal_validation,.idvc-modal_qr-code{animation:idvc-modal-in .28s cubic-bezier(.22,1,.36,1)}.idvc-modal_validation .idvc-modal__header__sign{animation:idvc-pop-in .42s cubic-bezier(.34,1.56,.64,1) .08s backwards}.idvc-modal_validation .idvc-modal__header__content,.idvc-modal_validation .idvc-modal__body,.idvc-modal_validation .idvc-modal__footer{animation:idvc-rise-in .32s cubic-bezier(.22,1,.36,1) .12s backwards}.idvc-modal_qr-code .idvc-modal__body_process_ready,.idvc-modal_qr-code .idvc-modal__body_process_validating,.idvc-modal_qr-code .idvc-modal__body_process_done{animation:idvc-rise-in .3s cubic-bezier(.22,1,.36,1)}.idvc-modal_qr-code .idvc-modal__body_process_done-container svg{animation:idvc-pop-in .42s cubic-bezier(.34,1.56,.64,1) .06s backwards}.idvc-modal_qr-code .idvc-modal__footer_qr-code .btn{animation:idvc-fade-in .2s ease-out}.idvc-modal_validation .btn,.idvc-modal_qr-code .btn{transition:background-color .15s,border-color .15s,filter .15s,opacity .15s,transform .1s}.idvc-modal_validation .btn:active:not(:disabled),.idvc-modal_qr-code .btn:active:not(:disabled){transform:scale(.98)}@keyframes idvc-fade-in{0%{opacity:0}}@keyframes idvc-rise-in{0%{opacity:0;transform:translateY(6px)}}@keyframes idvc-pop-in{0%{opacity:0;transform:scale(.6)}}@media(prefers-reduced-motion:reduce){.idvc-modal-background,.idvc-modal_validation,.idvc-modal_validation *,.idvc-modal_qr-code,.idvc-modal_qr-code *:not(.circular,.path){animation:none!important;transition:none!important}}\n/*$vite$:1*/",document.head.appendChild(de);const ue=!1;var fe=Array.isArray,pe=Array.prototype.indexOf,he=Array.prototype.includes,me=Array.from,ge=Object.defineProperty,ve=Object.getOwnPropertyDescriptor,ye=Object.getOwnPropertyDescriptors,be=Object.prototype,_e=Array.prototype,we=Object.getPrototypeOf,Se=Object.isExtensible;const Ee=()=>{};function Me(){var e,t;return{promise:new Promise((n,o)=>{e=n,t=o}),resolve:e,reject:t}}const Te=1<<24,Ce=16,Ae=32,Ne=64,Ie=512,xe=1024,ke=2048,Re=4096,De=8192,Le=16384,Be=32768,Oe=1<<25,Pe=65536,Fe=1<<17,Ue=1<<19,ze=1<<21,Ge=1<<23,He=Symbol("$state"),Ve=Symbol("component"),je=Symbol("legacy props"),We=Symbol("attributes"),qe=Symbol("class"),Ke=Symbol("style"),Xe=Symbol("text"),Ye=Symbol("form reset"),$e=new class extends Error{constructor(){super(...arguments),re(this,"name","StaleReactionError"),re(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},Ze=Symbol("uninitialized"),Qe="http://www.w3.org/1999/xhtml";function Je(e){return e===this.v}function et(e){return t=e,n=this.v,!(t!=t?n==n:t!==n||null!==t&&"object"==typeof t||"function"==typeof t);var t,n}function tt(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}let nt=!1;function ot(e,t,n){const o={};return[()=>(n(o)||function(){throw new Error("https://svelte.dev/e/missing_context")}(),e(o)),e=>t(o,e),()=>n(o)]}function rt(e,t){return null===e&&tt(),e.c??(e.c=new Map(function(e){let t=e.p;for(;null!==t&&null===t.c;)t=t.p;return(null==t?void 0:t.c)??null}(e)||void 0))}let it=null;function at(e){it=e}function lt(e){return rt(it).get(e)}function st(e,t){return rt(it).set(e,t),t}function ct(e){return rt(it).has(e)}function dt(e,t=!1,n){it={p:it,i:!1,c:null,e:null,s:e,x:null,r:to,l:nt&&!t?{s:null,u:null,$:[]}:null}}function ut(e){var t=it,n=t.e;if(null!==n)for(var o of(t.e=null,n))Ln(o);return void 0!==e&&(t.x=e),t.i=!0,it=t.p,ft(e)}function ft(e={}){return ge(e,Ve,{value:!0}),e}function pt(){return!nt||null!==it&&null===it.l}let ht=[];function mt(){var e=ht;ht=[],function(e){for(var t=0;t<e.length;t++)e[t]()}(e)}function gt(e){if(0===ht.length&&!Ht){var t=ht;queueMicrotask(()=>{t===ht&&mt()})}ht.push(e)}function vt(){for(;ht.length>0;)mt()}const yt=-7169;function bt(e,t){e.f=e.f&yt|t}function _t(e){0!==(e.f&Ie)||null===e.deps?bt(e,xe):bt(e,Re)}function wt(e,t,n){0!==(e.f&ke)?t.add(e):0!==(e.f&Re)&&n.add(e),bt(e,xe)}let St=!1;function Et(e){var t=Qn,n=to;eo(null),no(null);try{return e()}finally{eo(t),no(n)}}function Mt(e,t,n,o=n){e.addEventListener(t,()=>Et(n));const r=e[Ye];e[Ye]=r?()=>{r(),o(!0)}:()=>o(!0),St||(St=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const n of e.target.elements)null==(t=n[Ye])||t.call(n)})},{capture:!0}))}function Tt(e,t,n,o){const r=pt()?Nt:Rt;var i=e.filter(e=>!e.settled),a=t.map(r);if(0!==n.length||0!==i.length){var l,s,c,d,u=to,f=(l=to,s=Qn,c=it,d=Ft,function(e=!0){no(l),eo(s),at(c),e&&0===(l.f&Le)&&(null==d||d.activate(),null==d||d.apply())}),p=1===i.length?i[0].promise:i.length>1?Promise.all(i.map(e=>e.promise)):null,h=At();0!==n.length?p?p.then(()=>{f(),g(),Ct()}):g():p.then(()=>m([])).finally(h)}else o(a);function m(e){if(0===(u.f&Le)){f();try{o([...a,...e])}catch(t){In(t,u)}Ct()}}function g(){Promise.all(n.map(e=>xt(e))).then(m).catch(e=>In(e,u)).finally(h)}}function Ct(e=!0){no(null),eo(null),at(null),e&&(null==Ft||Ft.deactivate())}function At(){var e=to,t=e.b,n=Ft,o=!!(null==t?void 0:t.is_rendered());return null==t||t.update_pending_count(1,n),n.increment(o,e),()=>{null==t||t.update_pending_count(-1,n),n.decrement(o,e)}}function Nt(e){null!==to&&(to.f|=Ue);return{ctx:it,deps:null,effects:null,equals:Je,f:2050,fn:e,reactions:null,rv:0,v:Ze,wv:0,parent:to,ac:null}}const It=Symbol("obsolete");function xt(e,t,n){let o=to;null===o&&function(){throw new Error("https://svelte.dev/e/async_derived_orphan")}();var r=void 0,i=sn(Ze),a=!Qn,l=new Set;return function(e){kn(4718592,e)}(()=>{var t,n,s=to,c=Me();r=c.promise;try{Promise.resolve(e()).then(c.resolve,e=>{e!==$e&&c.reject(e)}).finally(Ct)}catch(p){c.reject(p),Ct()}var d=Ft;if(a){if(0!==(s.f&Be))var u=At();if(null==(t=o.b)?void 0:t.is_rendered())null==(n=d.async_deriveds.get(s))||n.reject(It);else for(const e of l.values())e.reject(It);l.add(c),d.async_deriveds.set(s,c)}const f=(e,t=void 0)=>{null==u||u(),l.delete(c),t!==It&&(d.activate(),t?(i.f|=Ge,vn(i,t)):(0!==(i.f&Ge)&&(i.f^=Ge),vn(i,e)),d.deactivate())};c.promise.then(f,e=>f(null,e||"unknown"))}),function(e){const t=kn(8,null);bt(t,xe),t.teardown=e}(()=>{for(const e of l)e.reject(It)}),new Promise(e=>{!function t(n){function o(){n===r?e(i):t(r)}n.then(o,o)}(r)})}function kt(e){const t=Nt(e);return ro(t),t}function Rt(e){const t=Nt(e);return t.equals=et,t}function Dt(e){var t,n=to,o=e.parent;if(!$n&&null!==o&&e.v!==Ze&&24576&o.f)return console.warn("https://svelte.dev/e/derived_inert"),e.v;no(o);try{!function(e){var t=e.effects;if(null!==t){e.effects=null;for(var n=0;n<t.length;n+=1)Gn(t[n])}}(e),t=go(e)}finally{no(n)}return t}function Lt(e){var t=Dt(e);e.equals(t)||(e.wv=po(),(null==Ft?void 0:Ft.is_fork)&&null!==e.deps||(null!==Ft?(Ft.capture(e,t,!0),null==Ut||Ut.capture(e,t,!0)):e.v=t,null!==e.deps))?$n||(null!==zt?(Rn()||(null==Ft?void 0:Ft.is_fork))&&zt.set(e,t):_t(e)):bt(e,xe)}function Bt(e){if(null!==e.effects)for(const t of e.effects)t.teardown&&null!==t.fn&&_o(t)}let Ot=null,Pt=null,Ft=null,Ut=null,zt=null,Gt=null,Ht=!1,Vt=!1,jt=null,Wt=null;var qt=0;let Kt=1;const Xt=class g{constructor(){le(this,m),re(this,"id",Kt++),le(this,e,!1),re(this,"linked",!0),le(this,t,null),le(this,n,null),re(this,"async_deriveds",new Map),re(this,"current",new Map),re(this,"previous",new Map),le(this,o,new Set),le(this,r,new Set),le(this,i,0),le(this,a,new Map),le(this,l,null),le(this,s,[]),le(this,c,[]),le(this,d,new Set),le(this,u,new Set),le(this,f,new Map),le(this,p,new Set),re(this,"is_fork",!1),le(this,h,!1),null===Pt?Ot=Pt=this:(se(Pt,n,this),se(this,t,Pt)),Pt=this}skip_effect(e){ae(this,f).has(e)||ae(this,f).set(e,{d:[],m:[]}),ae(this,p).delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=ae(this,f).get(e);if(n){for(var o of(ae(this,f).delete(e),n.d))bt(o,ke),t(o);for(o of n.m)bt(o,Re),t(o)}ae(this,p).add(e)}capture(e,t,n=!1){e.v===Ze||this.previous.has(e)||this.previous.set(e,e.v),0===(e.f&Ge)&&(this.current.set(e,[t,n]),null==zt||zt.set(e,t)),this.is_fork||(e.v=t)}activate(){Ft=this}deactivate(){Ft=null,zt=null}flush(){try{ue,Vt=!0,Ft=this,ce(this,m,y).call(this)}finally{qt=0,Gt=null,jt=null,Wt=null,Vt=!1,Ft=null,zt=null,an.clear()}}discard(){var e;for(const t of ae(this,r))t(this);ae(this,r).clear();for(const t of this.async_deriveds.values())t.reject(It);ce(this,m,E).call(this),null==(e=ae(this,l))||e.resolve()}register_created_effect(e){ae(this,c).push(e)}increment(e,t){if(se(this,i,ae(this,i)+1),e){let e=ae(this,a).get(t)??0;ae(this,a).set(t,e+1)}}decrement(e,t){if(se(this,i,ae(this,i)-1),e){let e=ae(this,a).get(t)??0;1===e?ae(this,a).delete(t):ae(this,a).set(t,e-1)}ae(this,h)||(se(this,h,!0),gt(()=>{se(this,h,!1),this.linked&&this.flush()}))}transfer_effects(e,t){for(const n of e)ae(this,d).add(n);for(const n of t)ae(this,u).add(n);e.clear(),t.clear()}oncommit(e){ae(this,o).add(e)}ondiscard(e){ae(this,r).add(e)}settled(){return(ae(this,l)??se(this,l,Me())).promise}static ensure(){if(null===Ft){const t=Ft=new g;Vt||Ht||gt(()=>{ae(t,e)||t.flush()})}return Ft}apply(){zt=null}schedule(e){var t;Gt=e,(null==(t=e.b)?void 0:t.is_pending)&&16777228&e.f&&0===(e.f&Be)?e.b.defer_effect(e):ae(this,s).push(e)}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakMap,r=new WeakMap,i=new WeakMap,a=new WeakMap,l=new WeakMap,s=new WeakMap,c=new WeakMap,d=new WeakMap,u=new WeakMap,f=new WeakMap,p=new WeakMap,h=new WeakMap,m=new WeakSet,g=function(){if(this.is_fork)return!0;for(const n of ae(this,a).keys()){for(var e=n,t=!1;null!==e.parent;){if(ae(this,f).has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1},v=function(){var e=[];for(const r of ae(this,s))if(0===(r.f&Le)&&6144&r.f){for(var t=r,n=!1;null!==t.parent;){var o=(t=t.parent).f;if(96&o){if(0===(o&xe)){n=!0;break}t.f^=xe}}n||e.push(t)}return se(this,s,[]),e},y=function(){var t,n,r,a;se(this,e,!0);for(const e of ae(this,d))ae(this,u).delete(e),bt(e,ke),this.schedule(e);for(const e of ae(this,u))bt(e,Re),this.schedule(e);this.apply();for(var c=jt=[],p=[],h=Wt=[];ae(this,s).length>0;){qt++>1e3&&(ce(this,m,E).call(this),$t());for(const e of ce(this,m,v).call(this))try{ce(this,m,b).call(this,e,c,p)}catch(A){throw on(e),ce(this,m,g).call(this)||this.discard(),A}}if(Ft=null,h.length>0){var M=Xt.ensure();for(const e of h)M.schedule(e)}if(jt=null,Wt=null,ce(this,m,g).call(this)){ce(this,m,S).call(this,p),ce(this,m,S).call(this,c);for(const[e,t]of ae(this,f))nn(e,t);return void(h.length>0&&ce(t=Ft,m,y).call(t))}const T=ce(this,m,_).call(this);if(T)return ce(this,m,S).call(this,p),ce(this,m,S).call(this,c),void ce(n=T,m,w).call(n,this);ae(this,d).clear(),ae(this,u).clear();for(const e of ae(this,o))e(this);ae(this,o).clear(),Ut=this,Qt(p),Qt(c),Ut=null,null==(r=ae(this,l))||r.resolve();var C=Ft;if(0!==ae(this,i)||0!==ae(this,s).length&&null===C||ce(this,m,E).call(this),ae(this,s).length>0)if(null!==C){for(const e of ae(this,s))ae(C,s).push(e);se(this,s,[])}else C=this;null!==C&&(an.clear(),ce(a=C,m,y).call(a))},b=function(e,t,n){e.f^=xe;for(var o=e.first;null!==o;){var r=o.f,i=!!(96&r);if(!(i&&0!==(r&xe)||0!==(r&De)||ae(this,f).has(o))&&null!==o.fn){i?o.f^=xe:4&r?t.push(o):ho(o)&&(0!==(r&Ce)&&ae(this,u).add(o),_o(o));var a=o.first;if(null!==a){o=a;continue}}for(;null!==o;){var l=o.next;if(null!==l){o=l;break}o=o.parent}}},_=function(){for(var e=ae(this,t);null!==e;){if(!e.is_fork)for(const[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e;e=ae(e,t)}return null},w=function(e){var t;for(const[o,r]of e.current)!this.previous.has(o)&&e.previous.has(o)&&this.previous.set(o,e.previous.get(o)),this.current.set(o,r);for(const[o,r]of e.async_deriveds){const e=this.async_deriveds.get(o);e&&r.promise.then(e.resolve).catch(e.reject)}e.async_deriveds.clear(),this.transfer_effects(ae(e,d),ae(e,u));const n=e=>{var t=e.reactions;if(null!==t&&(!(2&e.f)||6144&e.f))for(const i of t){var o=i.f;if(2&o)n(i);else{var r=i;4194320&o&&!this.async_deriveds.has(r)&&(ae(this,u).delete(r),bt(r,ke),this.schedule(r))}}};for(const o of this.current.keys())n(o);this.oncommit(()=>e.discard()),ce(t=e,m,E).call(t),Ft=this,ce(this,m,y).call(this)},S=function(e){for(var t=0;t<e.length;t+=1)wt(e[t],ae(this,d),ae(this,u))},E=function(){if(this.linked){var e=ae(this,t),o=ae(this,n);null===e?Ot=o:se(e,n,o),null===o?Pt=e:se(o,t,e),this.linked=!1}};let Yt=Xt;function $t(){try{!function(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}()}catch(e){In(e,Gt)}}let Zt=null;function Qt(e){var t=e.length;if(0!==t){for(var n=0;n<t;){var o=e[n++];if(!(24576&o.f)&&ho(o)&&(Zt=new Set,_o(o),null===o.deps&&null===o.first&&null===o.nodes&&null===o.teardown&&null===o.ac&&Vn(o),(null==Zt?void 0:Zt.size)>0)){an.clear();for(const e of Zt){if(24576&e.f)continue;const t=[e];let n=e.parent;for(;null!==n;)Zt.has(n)&&(Zt.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){const n=t[e];24576&n.f||_o(n)}}Zt.clear()}}Zt=null}}function Jt(e,t,n,o){if(!n.has(e)&&(n.add(e),null!==e.reactions))for(const r of e.reactions){const e=r.f;2&e?Jt(r,t,n,o):4194320&e&&0===(e&ke)&&en(r,t,o)&&(bt(r,ke),tn(r))}}function en(e,t,n){const o=n.get(e);if(void 0!==o)return o;if(null!==e.deps)for(const r of e.deps){if(he.call(t,r))return!0;if(2&r.f&&en(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function tn(e){Ft.schedule(e)}function nn(e,t){if(0===(e.f&Ae)||0===(e.f&xe)){0!==(e.f&ke)?t.d.push(e):0!==(e.f&Re)&&t.m.push(e),bt(e,xe);for(var n=e.first;null!==n;)nn(n,t),n=n.next}}function on(e){bt(e,xe);for(var t=e.first;null!==t;)on(t),t=t.next}let rn=new Set;const an=new Map;let ln=!1;function sn(e,t){return{f:0,v:e,reactions:null,equals:Je,rv:0,wv:0}}function cn(e,t){const n=sn(e);return ro(n),n}function dn(e,t,n=!1){return null===Qn||Jn&&0===(Qn.f&Fe)||!pt()||!(4325394&Qn.f)||null!==oo&&oo.has(e)||function(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}(),vn(e,n?_n(t):t,Wt)}var un,fn,pn,hn,mn=null,gn=0;function vn(e,t,n=null){if(!e.equals(t)){$n?an.set(e,t):an.has(e)||an.set(e,e.v);var o=Yt.ensure();if(o.capture(e,t),2&e.f){const t=e;0!==(e.f&ke)&&Dt(t),null===zt&&_t(t)}e.wv=po(),mn=null,gn=0,bn(e,ke,n),mn=null,!pt()||null===to||0===(to.f&xe)||96&to.f||(null===lo?function(e){lo=e}([e]):lo.push(e)),!o.is_fork&&rn.size>0&&!ln&&function(){ln=!1;for(const e of rn){let t;0!==(e.f&xe)&&bt(e,Re);try{t=ho(e)}catch{t=!0}t&&_o(e)}rn.clear()}()}return t}function yn(e){dn(e,e.v+1)}function bn(e,t,n){var o=e.reactions;if(null!==o){var r=pt(),i=o.length;if((gn+=i)>1e5&&null===mn&&(mn=new Set),null!==mn){if(mn.has(e))return;mn.add(e)}for(var a=0;a<i;a++){var l=o[a],s=l.f;if(r||l!==to){var c=0===(s&ke);if(c&&bt(l,t),0!==(s&Fe))rn.add(l);else if(2&s){var d=l;null==zt||zt.delete(d),bn(d,Re,n)}else if(c){var u=l;0!==(s&Ce)&&null!==Zt&&Zt.add(u),null!==n?n.push(u):tn(u)}}}}}function _n(e){if("object"!=typeof e||null===e||He in e||Ve in e)return e;const t=we(e);if(t!==be&&t!==_e)return e;var n=new Map,o=fe(e),r=cn(0),i=uo,a=e=>{if(uo===i)return e();var t=Qn,n=uo;eo(null),fo(i);var o=e();return eo(t),fo(n),o};return o&&n.set("length",cn(e.length)),new Proxy(e,{defineProperty(e,t,o){"value"in o&&!1!==o.configurable&&!1!==o.enumerable&&!1!==o.writable||function(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}();var r=n.get(t);return void 0===r?a(()=>{var e=cn(o.value);return n.set(t,e),e}):dn(r,o.value,!0),!0},deleteProperty(e,t){var o=n.get(t);if(void 0===o){if(t in e){const e=a(()=>cn(Ze));n.set(t,e),yn(r)}}else dn(o,Ze),yn(r);return!0},get(t,o,r){var i;if(o===He)return e;var l=n.get(o),s=o in t;if(void 0!==l||s&&!(null==(i=ve(t,o))?void 0:i.writable)||(l=a(()=>cn(_n(s?t[o]:Ze))),n.set(o,l)),void 0!==l){var c=So(l);return c===Ze?void 0:c}return Reflect.get(t,o,r)},getOwnPropertyDescriptor(e,t){var o;null==(o=this.has)||o.call(this,e,t);var r=Reflect.getOwnPropertyDescriptor(e,t),i=n.get(t);if(void 0!==i){var a=So(i);if(a===Ze)return;if(!r||!("value"in r))return{enumerable:!0,configurable:!0,value:a,writable:!0};r.value=a}return r},has(e,t){var o;if(t===He)return!0;var r=n.get(t),i=void 0!==r&&r.v!==Ze||Reflect.has(e,t);if((void 0!==r||null!==to&&(!i||(null==(o=ve(e,t))?void 0:o.writable)))&&(void 0===r&&(r=a(()=>cn(i?_n(e[t]):Ze)),n.set(t,r)),So(r)===Ze))return!1;return i},set(e,t,i,l){var s,c=n.get(t),d=t in e;if(o&&"length"===t)for(var u=i;u<c.v;u+=1){var f=n.get(u+"");void 0!==f?dn(f,Ze):u in e&&(f=a(()=>cn(Ze)),n.set(u+"",f))}void 0===c?d&&!(null==(s=ve(e,t))?void 0:s.writable)||(dn(c=a(()=>cn(void 0)),_n(i)),n.set(t,c)):(d=c.v!==Ze,dn(c,a(()=>_n(i))));var p=Reflect.getOwnPropertyDescriptor(e,t);if((null==p?void 0:p.set)&&p.set.call(l,i),!d){if(o&&"string"==typeof t){var h=n.get("length"),m=Number(t);Number.isInteger(m)&&m>=h.v&&dn(h,m+1)}yn(r)}return!0},ownKeys(e){So(r);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return void 0===t||t.v!==Ze});for(var[o,i]of n)i.v===Ze||o in e||t.push(o);return t},setPrototypeOf(){!function(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}()}})}function wn(e=""){return document.createTextNode(e)}function Sn(e){return pn.call(e)}function En(e){return hn.call(e)}function Mn(e,t){return Sn(e)}function Tn(e,t=!1){var n=Sn(e);return n instanceof Comment&&""===n.data?En(n):n}function Cn(e,t=!1){return Sn(e)}function An(e,t=1,n=!1){let o=e;for(;t--;)o=En(o);return o}function Nn(e,t,n){return null==t||t===Qe?n?document.createElement(e,{is:n}):document.createElement(e):n?document.createElementNS(t,e,{is:n}):document.createElementNS(t,e)}function In(e,t){if(null===t||0===(t.f&Le)){for(;null!==t;){if(128&t.f&&!(33570816&t.f)){if(0===(t.f&Be))throw e;try{return void t.b.error(e)}catch(n){e=n}}t=t.parent}throw e}}function xn(e){null===to&&(null===Qn&&function(){throw new Error("https://svelte.dev/e/effect_orphan")}(),function(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}()),$n&&function(){throw new Error("https://svelte.dev/e/effect_in_teardown")}()}function kn(e,t){var n=to;null!==n&&0!==(n.f&De)&&(e|=De);var o={ctx:it,deps:null,nodes:null,f:e|ke|Ie,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};null==Ft||Ft.register_created_effect(o);var r=o;if(4&e)null!==jt?jt.push(o):Yt.ensure().schedule(o);else if(null!==t){try{_o(o)}catch(a){throw Gn(o),a}null===r.deps&&null===r.teardown&&null===r.nodes&&r.first===r.last&&0===(r.f&Ue)&&(r=r.first,0!==(e&Ce)&&0!==(e&Pe)&&null!==r&&(r.f|=Pe))}if(null!==r&&(r.parent=n,null!==n&&function(e,t){var n=t.last;null===n?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}(r,n),null!==Qn&&2&Qn.f&&0===(e&Ne))){var i=Qn;(i.effects??(i.effects=[])).push(r)}return o}function Rn(){return null!==Qn&&!Jn}function Dn(e){xn();var t=to.f;if(!(!Qn&&0!==(t&Ae)&&null!==it&&!it.i))return Ln(e);var n=it;(n.e??(n.e=[])).push(e)}function Ln(e){return kn(1048580,e)}function Bn(e,t=0){return kn(8|t,e)}function On(e,t=[],n=[],o=[]){Tt(o,t,n,t=>{kn(8,()=>{e(...t.map(So))})})}function Pn(e,t=0){return kn(Ce|t,e)}function Fn(e){return kn(524320,e)}function Un(e){var t=e.teardown;if(null!==t){const o=$n,r=Qn;Zn(!0),eo(null);try{t.call(null)}catch(n){In(n,e.parent)}finally{Zn(o),eo(r)}}}function zn(e,t=!1){var n=e.first;for(e.first=e.last=null;null!==n;){const e=n.ac;null!==e&&Et(()=>{e.abort($e)});var o=n.next;0!==(n.f&Ne)?n.parent=null:Gn(n,t),n=o}}function Gn(e,t=!0){var n=!1;(t||262144&e.f)&&null!==e.nodes&&null!==e.nodes.end&&(Hn(e.nodes.start,e.nodes.end),n=!0),e.f|=Oe,zn(e,t&&!n),bo(e,0);var o=e.nodes&&e.nodes.t;if(null!==o)for(const i of o)i.stop();Un(e),e.f^=Oe,e.f|=Le;var r=e.parent;null!==r&&null!==r.first&&Vn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Hn(e,t){for(;null!==e;){var n=e===t?null:En(e);e.remove(),e=n}}function Vn(e){var t=e.parent,n=e.prev,o=e.next;null!==n&&(n.next=o),null!==o&&(o.prev=n),null!==t&&(t.first===e&&(t.first=o),t.last===e&&(t.last=n))}function jn(e,t,n=!0){var o=[];e.f|=256,Wn(e,o,!0);var r=()=>{n&&Gn(e),t&&t()},i=o.length;if(i>0){var a=()=>--i||r();for(var l of o)l.out(a)}else r()}function Wn(e,t,n){if(0===(e.f&De)){e.f^=De;var o=e.nodes&&e.nodes.t;if(null!==o)for(const e of o)(e.is_global||n)&&t.push(e);for(var r=e.first;null!==r;){var i=r.next;if(0===(r.f&Ne))Wn(r,t,!!(0!==(r.f&Pe)||0!==(r.f&Ae)&&0!==(e.f&Ce))&&n);r=i}}}function qn(e){e.f&=-257,Kn(e,!0)}function Kn(e,t){if(!(256&e.f)&&0!==(e.f&De)){e.f^=De,0===(e.f&xe)&&(bt(e,ke),Yt.ensure().schedule(e));for(var n=e.first;null!==n;){var o=n.next;Kn(n,!!(0!==(n.f&Pe)||0!==(n.f&Ae))&&t),n=o}var r=e.nodes&&e.nodes.t;if(null!==r)for(const e of r)(e.is_global||t)&&e.in()}}function Xn(e,t){if(e.nodes)for(var n=e.nodes.start,o=e.nodes.end;null!==n;){var r=n===o?null:En(n);t.append(n),n=r}}let Yn=!1,$n=!1;function Zn(e){$n=e}let Qn=null,Jn=!1;function eo(e){Qn=e}let to=null;function no(e){to=e}let oo=null;function ro(e){null!==Qn&&(0!==(Qn.f&ze)||2&Qn.f)&&(oo??(oo=new Set)).add(e)}let io=null,ao=0,lo=null;let so=1,co=0,uo=co;function fo(e){uo=e}function po(){return++so}function ho(e){var t=e.f;if(0!==(t&ke))return!0;if(0!==(t&Re)){for(var n=e.deps,o=n.length,r=0;r<o;r++){var i=n[r];if(ho(i)&&Lt(i),i.wv>e.wv)return!0}0!==(t&Ie)&&null===zt&&bt(e,xe)}return!1}function mo(e,t,n=!0){var o=e.reactions;if(null!==o&&(null===oo||!oo.has(e)))for(var r=0;r<o.length;r++){var i=o[r];2&i.f?mo(i,t,!1):t===i&&(n?bt(i,ke):0!==(i.f&xe)&&bt(i,Re),tn(i))}}function go(e){var t=io,n=ao,o=lo,r=Qn,i=oo,a=it,l=Jn,s=uo,c=e.f;io=null,ao=0,lo=null,Qn=96&c?null:e,oo=null,at(e.ctx),Jn=!1,uo=++co,null!==e.ac&&(Et(()=>{e.ac.abort($e)}),e.ac=null);try{e.f|=ze;var d=(0,e.fn)();e.f|=Be;var u=vo(e);if(pt()&&null!==lo&&!Jn&&null!==u&&!(6146&e.f))for(var f=0;f<lo.length;f++)mo(lo[f],e);if(null!==r&&r!==e){if(co++,null!==r.deps)for(let e=0;e<n;e+=1)r.deps[e].rv=co;if(null!==t)for(const e of t)e.rv=co;null!==lo&&(null===o?o=lo:o.push(...lo))}return 0!==(e.f&Ge)&&(e.f^=Ge),d}catch(p){return vo(e),function(e){var t=to;if(null===t)return Qn.f|=Ge,e;if(0===(t.f&Be)&&!(4&t.f))throw e;In(e,t)}(p)}finally{e.f^=ze,io=t,ao=n,lo=o,Qn=r,oo=i,at(a),Jn=l,uo=s}}function vo(e){var t,n=e.deps,o=null==Ft?void 0:Ft.is_fork;if(null!==io){var r;if(o||bo(e,ao),null!==n&&ao>0)for(n.length=ao+io.length,r=0;r<io.length;r++)n[ao+r]=io[r];else e.deps=n=io;if(Rn()&&0!==(e.f&Ie))for(r=ao;r<n.length;r++)((t=n[r]).reactions??(t.reactions=[])).push(e)}else!o&&null!==n&&ao<n.length&&(bo(e,ao),n.length=ao);return n}function yo(e,t){let n=t.reactions;if(null!==n){var o=pe.call(n,e);if(-1!==o){var r=n.length-1;0===r?n=t.reactions=null:(n[o]=n[r],n.pop())}}if(null===n&&2&t.f&&(null===io||!he.call(io,t))){var i=t;0!==(i.f&Ie)&&(i.f^=Ie),i.v!==Ze&&_t(i),null!==i.ac&&Et(()=>{i.ac.abort($e),i.ac=null,bt(i,ke)}),function(e){var t;if(null!==e.effects)for(const n of e.effects)(n.teardown||n.ac)&&(null==(t=n.teardown)||t.call(n),null!==n.ac&&Et(()=>{n.ac.abort($e),n.ac=null}),null!==n.fn&&(n.teardown=Ee),bo(n,0),zn(n))}(i),bo(i,0)}}function bo(e,t){var n=e.deps;if(null!==n)for(var o=t;o<n.length;o++)yo(e,n[o])}function _o(e){var t=e.f;if(0===(t&Le)){bt(e,xe);var n=to,o=Yn;to=e,Yn=!(96&t);try{16777232&t?function(e){for(var t=e.first;null!==t;){var n=t.next;0===(t.f&Ae)&&Gn(t),t=n}}(e):zn(e),Un(e);var r=go(e);e.teardown="function"==typeof r?r:null,e.wv=so}finally{Yn=o,to=n}}}async function wo(){await Promise.resolve(),function(){var e=Ht;Ht=!0;try{for(;;){if(vt(),null===Ft)return;Ft.flush()}}finally{Ht=e}}()}function So(e){var t=!!(2&e.f);if(null!==Qn&&!Jn&&!(null!==to&&0!==(to.f&Le)||null!==oo&&oo.has(e))){var n=Qn.deps;if(0!==(Qn.f&ze))e.rv<co&&(e.rv=co,null===io&&null!==n&&n[ao]===e?ao++:null===io?io=[e]:io.push(e));else{Qn.deps??(Qn.deps=[]),he.call(Qn.deps,e)||Qn.deps.push(e);var o=e.reactions;null===o?e.reactions=[Qn]:he.call(o,Qn)||o.push(Qn)}}if($n&&an.has(e))return an.get(e);if(t){var r=e;if($n){var i=r.v;return(0===(r.f&xe)&&null!==r.reactions||Mo(r))&&(i=Dt(r)),an.set(r,i),i}var a=0===(r.f&Ie)&&!Jn&&null!==Qn&&(Yn||0!==(Qn.f&Ie)),l=0===(r.f&Be);ho(r)&&(a&&(r.f|=Ie),Lt(r)),a&&!l&&(Bt(r),Eo(r))}if(null==zt?void 0:zt.has(e))return zt.get(e);if(0!==(e.f&Ge))throw e.v;return e.v}function Eo(e){if(e.f|=Ie,null!==e.deps)for(const t of e.deps)(t.reactions??(t.reactions=[])).push(e),2&t.f&&0===(t.f&Ie)&&(Bt(t),Eo(t))}function Mo(e){if(e.v===Ze)return!0;if(null===e.deps)return!1;for(const t of e.deps){if(an.has(t))return!0;if(2&t.f&&Mo(t))return!0}return!1}function To(e){var t=Jn;try{return Jn=!0,e()}finally{Jn=t}}const Co=["touchstart","touchmove"];function Ao(e){return Co.includes(e)}const No=Symbol("events"),Io=new Set,xo=new Set;function ko(e,t,n){(t[No]??(t[No]={}))[e]=n}function Ro(e){for(var t=0;t<e.length;t++)Io.add(e[t]);for(var n of xo)n(e)}let Do=null,Lo=!1;function Bo(e){var t,n,o=this,r=o.ownerDocument,i=e.type,a=(null==(t=e.composedPath)?void 0:t.call(e))||[],l=a[0]||e.target;Do=e,Lo||(Lo=!0,setTimeout(()=>{Lo=!1,Do=null}));var s=0,c=Do===e&&e[No];if(c){var d=a.indexOf(c);if(-1!==d&&(o===document||o===window))return void(e[No]=o);var u=a.indexOf(o);if(-1===u)return;d<=u&&(s=d)}if((l=a[s]||e.target)!==o){ge(e,"currentTarget",{configurable:!0,get:()=>l||r});var f=Qn,p=to;eo(null),no(null);try{for(var h,m=[];null!==l&&l!==o;){try{var g=null==(n=l[No])?void 0:n[i];null==g||l.disabled&&e.target!==l||g.call(l,e)}catch(v){h?m.push(v):h=v}if(e.cancelBubble)break;s++,l=s<a.length?a[s]:null}if(h){for(let e of m)queueMicrotask(()=>{throw e});throw h}}finally{e[No]=o,delete e.currentTarget,eo(f),no(p)}}}const Oo=(null==(M=null==globalThis?void 0:globalThis.window)?void 0:M.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Po(e){var t=Nn("template");return t.innerHTML=function(e){return(null==Oo?void 0:Oo.createHTML(e))??e}(e.replaceAll("<!>","\x3c!----\x3e")),t.content}function Fo(e,t){var n=to;null===n.nodes&&(n.nodes={start:e,end:t,a:null,t:null})}function Uo(e,t){var n,o=!!(1&t),r=!!(2&t),i=!e.startsWith("<!>");return()=>{void 0===n&&(n=Po(i?e:"<!>"+e),o||(n=Sn(n)));var t=r||fn?document.importNode(n,!0):n.cloneNode(!0);o?Fo(Sn(t),t.lastChild):Fo(t,t);return t}}function zo(e,t,n="svg"){var o,r=`<${n}>${!e.startsWith("<!>")?e:"<!>"+e}</${n}>`;return()=>{if(!o){var e=Po(r);o=Sn(Sn(e))}var t=o.cloneNode(!0);return Fo(t,t),t}}function Go(e,t){return zo(e,0,"svg")}function Ho(){var e=document.createDocumentFragment(),t=document.createComment(""),n=wn();return e.append(t,n),Fo(t,n),e}function Vo(e,t){null!==e&&e.before(t)}class jo{constructor(e,t,n,o){var r;le(this,G),re(this,"parent"),re(this,"is_pending",!1),re(this,"transform_error"),le(this,T),le(this,C,null),le(this,A),le(this,N),le(this,I),le(this,x,null),le(this,k,null),le(this,R,null),le(this,D,null),le(this,L,0),le(this,B,0),le(this,O,!1),le(this,P,new Set),le(this,F,new Set),le(this,U,null),le(this,z,function(e){let t,n=0,o=sn(0);return()=>{Rn()&&(So(o),Bn(()=>(0===n&&(t=To(()=>e(()=>yn(o)))),n+=1,()=>{gt(()=>{n-=1,0===n&&(null==t||t(),t=void 0,yn(o))})})))}}(()=>(se(this,U,sn(ae(this,L))),()=>{se(this,U,null)}))),se(this,T,e),se(this,A,t),se(this,N,e=>{var t=to;t.b=this,t.f|=128,n(e)}),this.parent=to.b,this.transform_error=o??(null==(r=this.parent)?void 0:r.transform_error)??(e=>e),se(this,I,Pn(()=>{ce(this,G,V).call(this)},589824))}defer_effect(e){wt(e,ae(this,P),ae(this,F))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!ae(this,A).pending}update_pending_count(e,t){ce(this,G,q).call(this,e,t),se(this,L,ae(this,L)+e),ae(this,U)&&!ae(this,O)&&(se(this,O,!0),gt(()=>{se(this,O,!1),ae(this,U)&&vn(ae(this,U),ae(this,L))}))}get_effect_pending(){return ae(this,z).call(this),So(ae(this,U))}error(e){if(!ae(this,A).onerror&&!ae(this,A).failed)throw e;(null==Ft?void 0:Ft.is_fork)?(ae(this,x)&&Ft.skip_effect(ae(this,x)),ae(this,k)&&Ft.skip_effect(ae(this,k)),ae(this,R)&&Ft.skip_effect(ae(this,R)),Ft.oncommit(()=>{ce(this,G,K).call(this,e)})):ce(this,G,K).call(this,e)}}function Wo(e,t){return function(e,{target:t,anchor:n,props:o={},events:r,context:i,intro:a=!0,transformError:l}){!function(){if(void 0===un){un=window,fn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;pn=ve(t,"firstChild").get,hn=ve(t,"nextSibling").get,Se(e)&&(e[qe]=void 0,e[We]=null,e[Ke]=void 0,e.__e=void 0),Se(n)&&(n[Xe]=void 0)}}();var s=void 0,c=function(e){Yt.ensure();const t=kn(524352,e);return(e={})=>new Promise(n=>{e.outro?jn(t,()=>{Gn(t),n(void 0)}):(Gn(t),n(void 0))})}(()=>{var a=n??t.appendChild(wn());!function(e,t,n,o){new jo(e,t,n,o)}(a,{pending:()=>{}},t=>{dt({}),i&&(it.c=i),r&&(o.$$events=r),s=e(t,o)||ft(),ut()},l);var c=new Set,d=e=>{for(var n=0;n<e.length;n++){var o=e[n];if(!c.has(o)){c.add(o);var r=Ao(o);for(const e of[t,document]){var i=qo.get(e);void 0===i&&(i=new Map,qo.set(e,i));var a=i.get(o);void 0===a?(e.addEventListener(o,Bo,{passive:r}),i.set(o,1)):i.set(o,a+1)}}}};return d(me(Io)),xo.add(d),()=>{var e;for(var o of c)for(const e of[t,document]){var r=qo.get(e),i=r.get(o);0==--i?(e.removeEventListener(o,Bo),r.delete(o),0===r.size&&qo.delete(e)):r.set(o,i)}xo.delete(d),a!==n&&(null==(e=a.parentNode)||e.removeChild(a))}});return Ko.set(s,c),s}(e,t)}T=new WeakMap,C=new WeakMap,A=new WeakMap,N=new WeakMap,I=new WeakMap,x=new WeakMap,k=new WeakMap,R=new WeakMap,D=new WeakMap,L=new WeakMap,B=new WeakMap,O=new WeakMap,P=new WeakMap,F=new WeakMap,U=new WeakMap,z=new WeakMap,G=new WeakSet,H=function(e){var t=!1,n=!1;const o=()=>{t?console.warn("https://svelte.dev/e/svelte_boundary_reset_noop"):(t=!0,n&&function(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}(),null!==ae(this,R)&&jn(ae(this,R),()=>{se(this,R,null)}),ce(this,G,W).call(this,()=>{ce(this,G,V).call(this)}))};return{reset:o,invoke_onerror:()=>{var t,r;try{n=!0,null==(r=(t=ae(this,A)).onerror)||r.call(t,e,o),n=!1}catch(i){In(i,ae(this,I)&&ae(this,I).parent)}}}},V=function(){try{if(this.is_pending=this.has_pending_snippet(),se(this,B,0),se(this,L,0),se(this,x,Fn(()=>{ae(this,N).call(this,ae(this,T))})),ae(this,B)>0){var e=se(this,D,document.createDocumentFragment());Xn(ae(this,x),e);const t=ae(this,A).pending;se(this,k,Fn(()=>t(ae(this,T))))}else ce(this,G,j).call(this,Ft)}catch(t){this.error(t)}},j=function(e){this.is_pending=!1,e.transfer_effects(ae(this,P),ae(this,F))},W=function(e){var t=to,n=Qn,o=it;no(ae(this,I)),eo(ae(this,I)),at(ae(this,I).ctx);try{return Yt.ensure(),e()}finally{no(t),eo(n),at(o)}},q=function(e,t){var n;this.has_pending_snippet()?(se(this,B,ae(this,B)+e),0===ae(this,B)&&(ce(this,G,j).call(this,t),ae(this,k)&&jn(ae(this,k),()=>{se(this,k,null)}),ae(this,D)&&(ae(this,T).before(ae(this,D)),se(this,D,null)))):this.parent&&ce(n=this.parent,G,q).call(n,e,t)},K=function(e){ae(this,x)&&(Gn(ae(this,x)),se(this,x,null)),ae(this,k)&&(Gn(ae(this,k)),se(this,k,null)),ae(this,R)&&(Gn(ae(this,R)),se(this,R,null));let t=ae(this,A).failed;const n=e=>{const{reset:n,invoke_onerror:o}=ce(this,G,H).call(this,e);o(),t&&se(this,R,ce(this,G,W).call(this,()=>{try{return Fn(()=>{var o=to;o.b=this,o.f|=128,t(ae(this,T),()=>e,()=>n)})}catch(o){return In(o,ae(this,I).parent),null}}))};gt(()=>{var t;try{t=this.transform_error(e)}catch(o){return void In(o,ae(this,I)&&ae(this,I).parent)}null!==t&&"object"==typeof t&&"function"==typeof t.then?t.then(n,e=>In(e,ae(this,I)&&ae(this,I).parent)):n(t)})};const qo=new Map;let Ko=new WeakMap;class Xo{constructor(e,t=!0){re(this,"anchor"),le(this,X,new Map),le(this,Y,new Map),le(this,$,new Map),le(this,Z,new Set),le(this,Q,!0),le(this,J,e=>{if(ae(this,X).has(e)){var t=ae(this,X).get(e),n=ae(this,Y).get(t);if(n)qn(n),ae(this,Z).delete(t);else{var o=ae(this,$).get(t);o&&(qn(o.effect),ae(this,Y).set(t,o.effect),ae(this,$).delete(t),o.fragment.lastChild.remove(),this.anchor.before(o.fragment),n=o.effect)}for(const[t,n]of ae(this,X)){if(ae(this,X).delete(t),t===e)break;const o=ae(this,$).get(n);o&&(Gn(o.effect),ae(this,$).delete(n))}for(const[e,o]of ae(this,Y)){if(e===t||ae(this,Z).has(e))continue;const r=()=>{if(Array.from(ae(this,X).values()).includes(e)){var t=document.createDocumentFragment();Xn(o,t),t.append(wn()),ae(this,$).set(e,{effect:o,fragment:t})}else Gn(o);ae(this,Z).delete(e),ae(this,Y).delete(e)};ae(this,Q)||!n?(ae(this,Z).add(e),jn(o,r,!1)):r()}}}),le(this,ee,e=>{ae(this,X).delete(e);const t=Array.from(ae(this,X).values());for(const[n,o]of ae(this,$))t.includes(n)||(Gn(o.effect),ae(this,$).delete(n))}),this.anchor=e,se(this,Q,t)}ensure(e,t){var n=Ft;!t||ae(this,Y).has(e)||ae(this,$).has(e)||ae(this,Y).set(e,Fn(()=>t(this.anchor)));ae(this,X).set(n,e),ae(this,J).call(this,n)}}function Yo(e,t,n=!1){var o=new Xo(e);function r(e,t){o.ensure(e,t)}Pn(()=>{var e=!1;t((t,n=0)=>{e=!0,r(n,t)}),e||r(-1,null)},n?Pe:0)}X=new WeakMap,Y=new WeakMap,$=new WeakMap,Z=new WeakMap,Q=new WeakMap,J=new WeakMap,ee=new WeakMap;const $o=Symbol("NaN");function Zo(e,t,n=!1,o=!1,r=!1,i=!1){var a=e,l="";if(n)var s=e;On(()=>{var e=to;if(l!==(l=t()??"")){if(n)return e.nodes=null,s.innerHTML=l,void(""!==l&&Fo(Sn(s),s.lastChild));if(null!==e.nodes&&(Hn(e.nodes.start,e.nodes.end),e.nodes=null),""!==l){var i=Nn(o?"svg":r?"math":"template",o?"http://www.w3.org/2000/svg":r?"http://www.w3.org/1998/Math/MathML":void 0);i.innerHTML=l;var c=o||r?i:i.content;if(Fo(Sn(c),c.lastChild),o||r)for(;Sn(c);)a.before(Sn(c));else a.before(c)}}})}function Qo(e,t,...n){var o=new Xo(e);Pn(()=>{const e=t()??null;o.ensure(e,e&&(t=>e(t,...n)))},Pe)}function Jo(e,t){var n,o=void 0;!function(e,t=0){kn(Te|t,e)}(()=>{o!==(o=t())&&(n&&(Gn(n),n=null),o&&(n=Fn(()=>{!function(e){kn(4,e)}(()=>o(e))})))})}function er(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=er(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function tr(e){return"object"==typeof e?function(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=er(e))&&(o&&(o+=" "),o+=t);return o}(e):e??""}const nr=[..." \t\n\r\f \v\ufeff"];function or(e,t,n,o,r,i){var a=e[qe];if(a!==n||void 0===a){var l=function(e,t,n){var o=null==e?"":""+e;if(t&&(o=o?o+" "+t:t),n)for(var r of Object.keys(n))if(n[r])o=o?o+" "+r:r;else if(o.length)for(var i=r.length,a=0;(a=o.indexOf(r,a))>=0;){var l=a+i;0!==a&&!nr.includes(o[a-1])||l!==o.length&&!nr.includes(o[l])?a=l:o=(0===a?"":o.substring(0,a))+o.substring(l+1)}return""===o?null:o}(n,o,i);null==l?e.removeAttribute("class"):t?e.className=l:e.setAttribute("class",l),e[qe]=n}else if(i&&r!==i)for(var s in i){var c=!!i[s];null!=r&&c===!!r[s]||e.classList.toggle(s,c)}return i}const rr=Symbol("is custom element"),ir=Symbol("is html");function ar(e,t,n,o){var r=function(e){return e[We]??(e[We]={[rr]:e.nodeName.includes("-"),[ir]:e.namespaceURI===Qe})}(e);r[t]!==(r[t]=n)&&(null==n?e.removeAttribute(t):"string"!=typeof n&&function(e){var t,n=e.getAttribute("is")||e.nodeName,o=lr.get(n);if(o)return o;lr.set(n,o=new Set);var r=e,i=Element.prototype;for(;i!==r;){for(var a in t=ye(r))t[a].set&&"innerHTML"!==a&&"textContent"!==a&&"innerText"!==a&&o.add(a);r=we(r)}return o}(e).has(t)?e[t]=n:e.setAttribute(t,n))}var lr=new Map;function sr(e){var t=e.type;return"number"===t||"range"===t}function cr(e){return""===e?null:+e}let dr=!1;function ur(e,t,n,o){var r,i=!nt||!!(2&n),a=!!(8&n),l=!!(16&n),s=o,c=!0,d=void 0,u=()=>l&&i?(d??(d=Nt(o)),So(d)):(c&&(c=!1,s=l?To(o):o),s);let f;if(a){var p=He in e||je in e;f=(null==(r=ve(e,t))?void 0:r.set)??(p&&t in e?n=>e[t]=n:void 0)}var h,m,g=!1;if(a?[h,g]=function(e){var t=dr;try{return dr=!1,[e(),dr]}finally{dr=t}}(()=>e[t]):h=e[t],void 0===h&&void 0!==o&&(h=u(),f&&(i&&function(){throw new Error("https://svelte.dev/e/props_invalid_value")}(),f(h))),m=i?()=>{var n=e[t];return void 0===n?u():(c=!0,n)}:()=>{var n=e[t];return void 0!==n&&(s=void 0),void 0===n?s:n},i&&!(4&n))return m;if(f){var v=e.$$legacy;return function(e,t){return arguments.length>0?(i&&t&&!v&&!g||f(t?m():e),e):m()}}var y=!1,b=(1&n?Nt:Rt)(()=>(y=!1,m()));a&&So(b);var _=to;return function(e,t){if(arguments.length>0){const n=t?So(b):i&&a?_n(e):e;return dn(b,n),y=!0,void 0!==s&&(s=n),e}return $n&&y||0!==(_.f&Le)?b.v:So(b)}}function fr(e){var t,n;null===it&&tt(),nt&&null!==it.l?(t=it,n=t.l,n.u??(n.u={a:[],b:[],m:[]})).m.push(e):Dn(()=>{const t=To(e);if("function"==typeof t)return t})}
2
2
  /*! @license DOMPurify 3.4.16 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.16/LICENSE */
3
3
  function pr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}
4
4
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
5
- function hr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(d){c=!0,r=d}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return pr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}"undefined"!=typeof window&&((te=window.__svelte??(window.__svelte={})).v??(te.v=new Set)).add("5");const mr=Object.entries,gr=Object.setPrototypeOf,vr=Object.isFrozen,yr=Object.getPrototypeOf,br=Object.getOwnPropertyDescriptor;let _r=Object.freeze,wr=Object.seal,Sr=Object.create,Er="undefined"!=typeof Reflect&&Reflect,Mr=Er.apply,Tr=Er.construct;_r||(_r=function(e){return e}),wr||(wr=function(e){return e}),Mr||(Mr=function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];return e.apply(t,o)}),Tr||(Tr=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return new e(...n)});const Ar=Kr(Array.prototype.forEach),Cr=Kr(Array.prototype.lastIndexOf),Nr=Kr(Array.prototype.pop),Ir=Kr(Array.prototype.push),xr=Kr(Array.prototype.splice),kr=Array.isArray,Rr=Kr(String.prototype.toLowerCase),Dr=Kr(String.prototype.toString),Lr=Kr(String.prototype.match),Br=Kr(String.prototype.replace),Or=Kr(String.prototype.indexOf),Pr=Kr(String.prototype.trim),Fr=Kr(Number.prototype.toString),Ur=Kr(Boolean.prototype.toString),zr="undefined"==typeof BigInt?null:Kr(BigInt.prototype.toString),Gr="undefined"==typeof Symbol?null:Kr(Symbol.prototype.toString),Hr=Kr(Object.prototype.hasOwnProperty),Vr=Kr(Object.prototype.toString),jr=Kr(RegExp.prototype.test),Wr=(qr=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Tr(qr,t)});var qr;function Kr(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return Mr(e,t,o)}}function Xr(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Rr;if(gr&&gr(e,null),!kr(t))return e;let o=t.length;for(;o--;){let r=t[o];if("string"==typeof r){const e=n(r);e!==r&&(vr(t)||(t[o]=e),r=e)}e[r]=!0}return e}function Yr(e){for(let t=0;t<e.length;t++)Hr(e,t)||(e[t]=null);return e}function $r(e){const t=Sr(null);for(const o of mr(e)){var n=hr(o,2);const r=n[0],i=n[1];Hr(e,r)&&(kr(i)?t[r]=Yr(i):i&&"object"==typeof i&&i.constructor===Object?t[r]=$r(i):t[r]=i)}return t}function Zr(e,t){for(;null!==e;){const n=br(e,t);if(n){if(n.get)return Kr(n.get);if("function"==typeof n.value)return Kr(n.value)}e=yr(e)}return function(){return null}}const Qr=_r(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Jr=_r(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ei=_r(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ti=_r(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ni=_r(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),oi=_r(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ri=_r(["#text"]),ii=_r(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),ai=_r(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),li=_r(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),si=_r(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ci=wr(/{{[\w\W]*|^[\w\W]*}}/g),di=wr(/<%[\w\W]*|^[\w\W]*%>/g),ui=wr(/\${[\w\W]*/g),fi=wr(/^data-[\-\w.\u00B7-\uFFFF]+$/),pi=wr(/^aria-[\-\w]+$/),hi=wr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),mi=wr(/^(?:\w+script|data):/i),gi=wr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),vi=wr(/^html$/i),yi=wr(/^[a-z][.\w]*(-[.\w]+)+$/i),bi=wr(/<[/\w!]/g),_i=wr(/<[/\w]/g),wi=wr(/<\/no(script|embed|frames)/i),Si=wr(/\/>/i),Ei=1,Mi=3,Ti=7,Ai=8,Ci=9,Ni=11,Ii=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],xi=_r(Xr({},Ii)),ki=function(){const e={};return Ar(Ii,t=>{e[t]=wr(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),_r(e)}(),Ri=function(e,t,n,o){return Hr(e,t)&&kr(e[t])?Xr(o.base?$r(o.base):{},e[t],o.transform):n},Di=function(e,t,n){const o=Hr(e,t)?e[t]:void 0;return o&&"object"==typeof o?$r(o):n()};var Li=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const n=t=>e(t);if(n.version="3.4.16",n.removed=[],!t||!t.document||t.document.nodeType!==Ci||!t.Element)return n.isSupported=!1,n;let o=t.document;const r=o,i=r.currentScript;t.DocumentFragment;const a=t.HTMLTemplateElement,l=t.Node,s=t.Element,c=t.NodeFilter;void 0===t.NamedNodeMap&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const d=t.DOMParser,u=t.trustedTypes,f=s.prototype,p=Zr(f,"cloneNode"),h=Zr(f,"remove"),m=Zr(f,"removeAttributeNode"),g=Zr(f,"nextSibling"),v=Zr(f,"childNodes"),y=Zr(f,"parentNode"),b=Zr(f,"shadowRoot"),_=Zr(f,"attributes"),w=l&&l.prototype?Zr(l.prototype,"nodeType"):null,S=l&&l.prototype?Zr(l.prototype,"nodeName"):null,E=l&&l.prototype?Zr(l.prototype,"ownerDocument"):null,M=function(e){return w?w(e):e.nodeType},T=function(e){return S?S(e):e.nodeName};if("function"==typeof a){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let A,C,N="",I=!1,x=0;const k=function(){if(x>0)throw Wr('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},R=function(e){k(),x++;try{return A.createHTML(e)}finally{x--}},D=function(){return I||(C=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(i){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(u,i),I=!0),C},L=o,B=L.implementation,O=L.createNodeIterator,P=L.createDocumentFragment,F=L.getElementsByTagName,U=r.importNode;let z={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof mr&&"function"==typeof y&&B&&void 0!==B.createHTMLDocument;const G=ci,H=di,V=ui,j=fi,W=pi,q=mi,K=gi,X=yi;let Y=hi,$=null;const Z=Xr({},[...Qr,...Jr,...ei,...ni,...ri]);let Q=null;const J=Xr({},[...ii,...ai,...li,...si]);let ee=Object.seal(Sr(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),te=null,ne=null;const oe=Object.seal(Sr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let re=!0,ie=!0,ae=!1,le=!0,se=!1,ce=!0,de=!1,ue=!1,fe=null,pe=null,he=!1,me=!1,ge=!1,ve=!1,ye=!0,be=!1;const _e="user-content-";let we=!0,Se=!1,Ee={},Me=null;const Te=Xr({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Ae=null;const Ce=Xr({},["audio","video","img","source","image","track"]);let Ne=null;const Ie=Xr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),xe="http://www.w3.org/1998/Math/MathML",ke="http://www.w3.org/2000/svg",Re="http://www.w3.org/1999/xhtml";let De=Re,Le=!1,Be=null;const Oe=Xr({},[xe,ke,Re],Dr),Pe=_r(["mi","mo","mn","ms","mtext"]);let Fe=Xr({},Pe);const Ue=_r(["annotation-xml"]);let ze=Xr({},Ue);const Ge=Xr({},["title","style","font","a","script"]);let He=null;const Ve=["application/xhtml+xml","text/html"];let je=null,We=null;const qe=o.createElement("form"),Ke=function(e){return e instanceof RegExp||e instanceof Function},Xe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(We&&We===e)return;e&&"object"==typeof e||(e={}),e=$r(e),He=-1===Ve.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,je="application/xhtml+xml"===He?Dr:Rr,$=Ri(e,"ALLOWED_TAGS",Z,{transform:je}),Q=Ri(e,"ALLOWED_ATTR",J,{transform:je}),Be=Ri(e,"ALLOWED_NAMESPACES",Oe,{transform:Dr}),Ne=Ri(e,"ADD_URI_SAFE_ATTR",Ie,{transform:je,base:Ie}),Ae=Ri(e,"ADD_DATA_URI_TAGS",Ce,{transform:je,base:Ce}),Me=Ri(e,"FORBID_CONTENTS",Te,{transform:je}),te=Ri(e,"FORBID_TAGS",$r({}),{transform:je}),ne=Ri(e,"FORBID_ATTR",$r({}),{transform:je}),Ee=!!Hr(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?$r(e.USE_PROFILES):e.USE_PROFILES),re=!1!==e.ALLOW_ARIA_ATTR,ie=!1!==e.ALLOW_DATA_ATTR,ae=e.ALLOW_UNKNOWN_PROTOCOLS||!1,le=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,se=e.SAFE_FOR_TEMPLATES||!1,ce=!1!==e.SAFE_FOR_XML,de=e.WHOLE_DOCUMENT||!1,me=e.RETURN_DOM||!1,ge=e.RETURN_DOM_FRAGMENT||!1,ve=e.RETURN_TRUSTED_TYPE||!1,he=e.FORCE_BODY||!1,ye=!1!==e.SANITIZE_DOM,be=e.SANITIZE_NAMED_PROPS||!1,we=!1!==e.KEEP_CONTENT,Se=e.IN_PLACE||!1,Y=function(e){try{return jr(e,""),!0}catch(t){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:hi,De="string"==typeof e.NAMESPACE?e.NAMESPACE:Re,Fe=Di(e,"MATHML_TEXT_INTEGRATION_POINTS",()=>Xr({},Pe)),ze=Di(e,"HTML_INTEGRATION_POINTS",()=>Xr({},Ue));const t=Di(e,"CUSTOM_ELEMENT_HANDLING",()=>Sr(null));if(ee=Sr(null),Hr(t,"tagNameCheck")&&Ke(t.tagNameCheck)&&(ee.tagNameCheck=t.tagNameCheck),Hr(t,"attributeNameCheck")&&Ke(t.attributeNameCheck)&&(ee.attributeNameCheck=t.attributeNameCheck),Hr(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(ee.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),wr(ee),se&&(ie=!1),ge&&(me=!0),Ee&&($=Xr({},ri),Q=Sr(null),!0===Ee.html&&(Xr($,Qr),Xr(Q,ii)),!0===Ee.svg&&(Xr($,Jr),Xr(Q,ai),Xr(Q,si)),!0===Ee.svgFilters&&(Xr($,ei),Xr(Q,ai),Xr(Q,si)),!0===Ee.mathMl&&(Xr($,ni),Xr(Q,li),Xr(Q,si))),oe.tagCheck=null,oe.attributeCheck=null,Hr(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?oe.tagCheck=e.ADD_TAGS:kr(e.ADD_TAGS)&&($===Z&&($=$r($)),Xr($,e.ADD_TAGS,je))),Hr(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?oe.attributeCheck=e.ADD_ATTR:kr(e.ADD_ATTR)&&(Q===J&&(Q=$r(Q)),Xr(Q,e.ADD_ATTR,je))),Hr(e,"ADD_FORBID_CONTENTS")&&kr(e.ADD_FORBID_CONTENTS)&&(Me===Te&&(Me=$r(Me)),Xr(Me,e.ADD_FORBID_CONTENTS,je)),we&&($["#text"]=!0),de&&Xr($,["html","head","body"]),$.table&&(Xr($,["tbody"]),delete te.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw Wr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw Wr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=A;A=e.TRUSTED_TYPES_POLICY;try{N=R("")}catch(n){throw A=t,n}}else null===e.TRUSTED_TYPES_POLICY?(A=void 0,N=""):(void 0===A&&(A=D()),A&&"string"==typeof N&&(N=R("")));_r&&_r(e),We=e},Ye=Xr({},[...Jr,...ei,...ti]),$e=Xr({},[...ni,...oi]),Ze=function(e){let t=y(e);t&&t.tagName||(t={namespaceURI:De,tagName:"template"});const n=Rr(e.tagName),o=Rr(t.tagName);return!!Be[e.namespaceURI]&&(e.namespaceURI===ke?function(e,t,n){return t.namespaceURI===Re?"svg"===e:t.namespaceURI===xe?"svg"===e&&("annotation-xml"===n||Fe[n]):Boolean(Ye[e])}(n,t,o):e.namespaceURI===xe?function(e,t,n){return t.namespaceURI===Re?"math"===e:t.namespaceURI===ke?"math"===e&&ze[n]:Boolean($e[e])}(n,t,o):e.namespaceURI===Re?function(e,t,n){return!(t.namespaceURI===ke&&!ze[n])&&!(t.namespaceURI===xe&&!Fe[n])&&!$e[e]&&(Ge[e]||!Ye[e])}(n,t,o):!("application/xhtml+xml"!==He||!Be[e.namespaceURI]))},Qe=function(e){Ir(n.removed,{element:e});try{y(e).removeChild(e)}catch(t){if(h(e),!y(e))throw Wr("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Je=function(e,t,n){try{m(e,t)}catch(o){try{e.removeAttribute(n)}catch(r){}}},et=function(e){ot(e);const t=v(e);if(t){const e=[];Ar(t,t=>{Ir(e,t)}),Ar(e,e=>{try{h(e)}catch(t){}})}const n=_(e);if(n)for(let o=n.length-1;o>=0;--o){const t=n[o],r=t&&t.name;"string"==typeof r&&Je(e,t,r)}},tt=function(e,t,o){if(!o)try{o=t.getAttributeNode(e)}catch(r){o=null}Ir(n.removed,{attribute:o||null,from:t});try{o?m(t,o):t.removeAttribute(e)}catch(r){try{t.removeAttribute(e)}catch(i){}}if("is"===e)if(me||ge)try{Qe(t)}catch(r){}else try{t.setAttribute(e,"")}catch(r){}},nt=function(e){const t=_(e);if(t)for(let n=t.length-1;n>=0;--n){const o=t[n],r=o&&o.name;"string"!=typeof r||Q[je(r)]||Je(e,o,r)}},ot=function(e){const t=[e];for(;t.length>0;){const e=t.pop();M(e)===Ei&&nt(e);const n=v(e);if(n)for(let o=n.length-1;o>=0;--o)t.push(n[o])}},rt=function(e,t){return!!ce&&("patchsrc"===e||"for"===e&&"label"!==t&&"output"!==t)},it=function(e){let t=null,n=null;if(he)e="<remove></remove>"+e;else{const t=Lr(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===He&&De===Re&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=A?R(e):e;if(De===Re)try{t=(new d).parseFromString(r,He)}catch(a){}if(!t||!t.documentElement){t=B.createDocument(De,"template",null);try{t.documentElement.innerHTML=Le?N:r}catch(a){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),De===Re?F.call(t,de?"html":"body")[0]:de?t.documentElement:i},at=function(e){const t=E?E(e):e.ownerDocument;return O.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},lt=function(e){return e=Br(e,G," "),e=Br(e,H," "),e=Br(e,V," ")},st=function(e){var t;e.normalize();const n=E?E(e):e.ownerDocument,o=O.call(n||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let r=o.nextNode();for(;r;)r.data=lt(r.data),r=o.nextNode();const i=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");i&&Ar(i,e=>{dt(e.content)&&st(e.content)})},ct=function(e){const t=S?S(e):null;return"string"==typeof t&&("form"===je(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==_(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.removeAttributeNode||"function"!=typeof e.getAttributeNode||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==w(e)||e.childNodes!==v(e)))},dt=function(e){if(!w||"object"!=typeof e||null===e)return!1;try{return w(e)===Ni}catch(t){return!1}},ut=function(e){if(!w||"object"!=typeof e||null===e)return!1;try{return"number"==typeof w(e)}catch(t){return!1}};function ft(e,t,o){0!==e.length&&Ar(e,e=>{e.call(n,t,o,We)})}const pt=function(e,t){if(e instanceof RegExp)return jr(e,t);if(e instanceof Function){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];return Boolean(e(t,...o))}return!1},ht=function(e,t,n,o){return 0===e.length?t:t===n||t===o?$r(t):t},mt=function(e,t){return e!==t&&null===y(e)&&(Se&&ot(e),!0)},gt=function(e,t){if(ft(z.beforeSanitizeElements,e,null),mt(e,t))return!0;if(ct(e))return Qe(e),!0;const o=je(T(e));if($=ht(z.uponSanitizeElement,$,Z,fe),ft(z.uponSanitizeElement,e,{tagName:o,allowedTags:$}),mt(e,t))return!0;if(function(e,t){return!!(ce&&e.hasChildNodes()&&!ut(e.firstElementChild)&&jr(bi,e.textContent)&&jr(bi,e.innerHTML))||!!(ce&&e.namespaceURI===Re&&xi[t]&&(ut(e.firstElementChild)||"string"==typeof e.textContent&&jr(ki[t],e.textContent)))||e.nodeType===Ti||!(!ce||e.nodeType!==Ai||!jr(_i,e.data))}(e,o))return Qe(e),!0;if(te[o]||!(oe.tagCheck instanceof Function&&oe.tagCheck(o))&&!$[o]){const n=function(e,t,n){if(!te[t]&&bt(t)&&pt(ee.tagNameCheck,t))return!1;if(we&&!Me[t]){const t=y(e),o=v(e);if(o&&t)for(let r=o.length-1;r>=0;--r){const i=e===n?p(o[r],!0):o[r];t.insertBefore(i,g(e))}}return Qe(e),!0}(e,o,t);return!(!1!==n||(ft(z.afterSanitizeElements,e,null),!mt(e,t)))||n}if(M(e)===Ei&&!Ze(e))return Qe(e),!0;if(("noscript"===o||"noembed"===o||"noframes"===o)&&jr(wi,e.innerHTML))return Qe(e),!0;if(se&&e.nodeType===Mi){const t=lt(e.textContent);e.textContent!==t&&(Ir(n.removed,{element:e.cloneNode()}),e.textContent=t)}return ft(z.afterSanitizeElements,e,null),mt(e,t)},vt=function(e,t,n){if(ne[t])return!1;if(rt(t,e))return!1;if(ye&&("id"===t||"name"===t)&&(n in o||n in qe))return!1;const r=Q[t]||oe.attributeCheck instanceof Function&&oe.attributeCheck(t,e);return!(!ie||!jr(j,t))||(!(!re||!jr(W,t))||(r?!!Ne[t]||(!!jr(Y,Br(n,K,""))||(!("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Or(n,"data:")||!Ae[e])||(!(!ae||jr(q,Br(n,K,"")))||!n))):bt(e)&&pt(ee.tagNameCheck,e)&&pt(ee.attributeNameCheck,t,e)||"is"===t&&ee.allowCustomizedBuiltInElements&&pt(ee.tagNameCheck,n)))},yt=Xr({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),bt=function(e){return!yt[Rr(e)]&&jr(X,e)},_t=function(e,t,n,o){if(A&&"object"==typeof u&&"function"==typeof u.getAttributeType&&!n)switch(u.getAttributeType(e,t)){case"TrustedHTML":return R(o);case"TrustedScriptURL":return function(e){k(),x++;try{return A.createScriptURL(e)}finally{x--}}(o)}return o},wt=function(e,t,n,o){try{return n?e.setAttributeNS(n,t,o):e.setAttribute(t,o),!ct(e)||(Qe(e),!1)}catch(r){return tt(t,e),!1}},St=function(e,t){if(ft(z.beforeSanitizeAttributes,e,null),mt(e,t))return;const o=e.attributes;if(!o||ct(e))return;Q=ht(z.uponSanitizeAttribute,Q,J,pe);const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Q,forceKeepAttr:void 0};let i=o.length;const a=je(e.nodeName);for(;i--;){const t=o[i],l=t.name,s=t.namespaceURI,c=t.value,d=je(l),u=c;let f="value"===l?u:Pr(u),p=!1;r.attrName=d,r.attrValue=f,r.keepAttr=!0,r.forceKeepAttr=void 0,ft(z.uponSanitizeAttribute,e,r),f=r.attrValue,!be||"id"!==d&&"name"!==d||0===Or(f,_e)||(tt(l,e,t),f=_e+f,p=!0),ce&&jr(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)?tt(l,e,t):"attributename"===d&&Lr(f,"href")?tt(l,e,t):r.forceKeepAttr||(r.keepAttr&&(le||!jr(Si,f))?(se&&(f=lt(f)),vt(a,d,f)?(f=_t(a,d,s,f),f!==u&&wt(e,l,s,f)&&p&&Nr(n.removed)):tt(l,e,t)):tt(l,e,t))}ft(z.afterSanitizeAttributes,e,null),mt(e,t)},Et=function(e){let t=null;const n=at(e);for(ft(z.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(ft(z.uponSanitizeShadowNode,t,null),gt(t,e),St(t,e),dt(t.content)&&Et(t.content),M(t)===Ei){const e=b(t);dt(e)&&(Mt(e),Et(e))}ft(z.afterSanitizeShadowDOM,e,null)},Mt=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const e=t.pop();if(e.shadow){Et(e.shadow);continue}const n=e.node,o=M(n)===Ei,r=v(n);if(r)for(let i=r.length-1;i>=0;--i)t.push({node:r[i],shadow:null});if(o){const e=S?S(n):null;if("string"==typeof e&&"template"===je(e)){const e=n.content;dt(e)&&t.push({node:e,shadow:null})}}if(o){const e=b(n);dt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,i=null,a=null,l=null;if(Le=!e,Le&&(e="\x3c!--\x3e"),"string"!=typeof e&&!ut(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return Fr(e);case"boolean":return Ur(e);case"bigint":return zr?zr(e):"0";case"symbol":return Gr?Gr(e):"Symbol()";case"undefined":default:return Vr(e);case"function":case"object":{if(null===e)return Vr(e);const t=e,n=Zr(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:Vr(e)}return Vr(e)}}}(e)))throw Wr("dirty is not a string, aborting");if(!n.isSupported)return e;ue?($=fe,Q=pe):Xe(t),(z.uponSanitizeElement.length>0||z.uponSanitizeAttribute.length>0)&&($=$r($)),z.uponSanitizeAttribute.length>0&&(Q=$r(Q)),n.removed=[];const s=Se&&"string"!=typeof e&&ut(e);if(s){!function(e){if(!ce)return;const t=[e];for(;t.length>0;){const e=t.pop(),o=M(e);if(o===Ti||o===Ai&&jr(_i,e.data)){try{h(e)}catch(n){}continue}if(o===Ei){const t=e,o=je(T(e));try{t.hasAttribute&&t.hasAttribute("patchsrc")&&t.removeAttribute("patchsrc"),t.hasAttribute&&t.hasAttribute("for")&&rt("for",o)&&t.removeAttribute("for")}catch(n){}}const r=v(e);if(r)for(let n=r.length-1;n>=0;--n)t.push(r[n])}}(e);const t=T(e);if("string"==typeof t){const n=je(t);if(!$[n]||te[n])throw et(e),Wr("root node is forbidden and cannot be sanitized in-place")}if(ct(e))throw et(e),Wr("root node is clobbered and cannot be sanitized in-place");try{Mt(e)}catch(u){throw et(e),u}}else if(ut(e))o=it("\x3c!----\x3e"),i=o.ownerDocument.importNode(e,!0),i.nodeType===Ei&&"BODY"===i.nodeName||"HTML"===i.nodeName?o=i:o.appendChild(i),Mt(o);else{if(!me&&!se&&!de&&-1===e.indexOf("<"))return A&&ve?R(e):e;if(o=it(e),!o)return me?null:ve?N:""}o&&he&&Qe(o.firstChild);const c=s?e:o;try{const e=at(c);for(;a=e.nextNode();)gt(a,c),St(a,c),dt(a.content)&&Et(a.content)}catch(u){throw s&&(et(e),Ar(n.removed,e=>{e.element&&ot(e.element)})),u}if(s){let t=!1;if(Ar(n.removed,n=>{n.element&&(n.element===e&&(t=!0),ot(n.element))}),t)throw Wr("a node selected for removal could not be safely returned; refusing to sanitize in place");return se&&st(e),e}if(me){if(se&&st(o),ge)for(l=P.call(o.ownerDocument);o.firstChild;)l.appendChild(o.firstChild);else l=o;return(Q.shadowroot||Q.shadowrootmode)&&(l=U.call(r,l,!0)),l}let d=de?o.outerHTML:o.innerHTML;return de&&$["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&jr(vi,o.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+d),se&&(d=lt(d)),A&&ve?R(d):d},n.setConfig=function(){Xe(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),ue=!0,fe=$,pe=Q},n.clearConfig=function(){We=null,ue=!1,fe=null,pe=null,A=C,N=""},n.isValidAttribute=function(e,t,n){We||Xe({});const o=je(e),r=je(t);return vt(o,r,n)},n.addHook=function(e,t){"function"==typeof t&&Hr(z,e)&&Ir(z[e],t)},n.removeHook=function(e,t){if(Hr(z,e)){if(void 0!==t){const n=Cr(z[e],t);return-1===n?void 0:xr(z[e],n,1)[0]}return Nr(z[e])}},n.removeHooks=function(e){Hr(z,e)&&(z[e]=[])},n.removeAllHooks=function(){z={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();const Bi={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Oi=e=>e.replaceAll(/[&<>"']/g,e=>Bi[e]),Pi=e=>Li.sanitize(e);var Fi=Uo('<div class="idvc-consent-form" id="idvc-consent-form"><div class="idvc-consent-form__header"><h2 class="idvc-consent-form__header__content">Consent Agreement</h2></div> <div class="idvc-consent-form__body" id="idvc-consent-form-body"><p id="idvc-consent-form-text"></p> <div class="input-wrapper"><label for="idvc-full-name-input"><span><sup class="color-red">*</sup> Full Name</span></label> <input type="text" name="fullName" id="idvc-full-name-input"/></div> <div class="checkbox-wrapper"><label class="checkbox-wrapper__star" for="idvc-consent"><span><sup class="color-red">*</sup></span></label> <input type="checkbox" id="idvc-consent"/> <label class="checkbox-wrapper__text" id="checkbox-wrapper__text" for="idvc-consent"></label></div></div> <div class="idvc-consent-form__footer"><button type="button" class="btn btn--info" id="idvc-consent-form-cancel-btn"><span>Cancel</span></button> <button type="button" id="idvc-consent-form-proceed-btn"><span>Proceed</span></button></div></div>');function Ui(e,t){dt(t,!0);let n=cn(""),o=cn(!1);const r=kt(()=>{const e=So(n).trim().length;return e>=3&&e<100&&So(o)});var i=Fi(),a=Cn(Mn(i),2),l=Mn(a);Zo(l,()=>Pi(t.bodyText),!0);var s=Cn(l,2),c=Cn(Mn(s),2),d=Cn(s,2),u=Cn(Mn(d),2);Zo(Cn(u,2),()=>Pi(t.checkboxText),!0);var f=Mn(Cn(a,2)),p=Cn(f,2);let h;On(()=>{h=or(p,1,"btn btn--primary",null,h,{"btn--disabled":!So(r)}),p.disabled=!So(r)}),function(e,t,n=t){var o=new WeakSet;Mt(e,"input",async r=>{var i=r?e.defaultValue:e.value;if(i=sr(e)?cr(i):i,n(i),null!==Ft&&o.add(Ft),await wo(),i!==(i=t())){var a=e.selectionStart,l=e.selectionEnd,s=e.value.length;if(e.value=i??"",null!==l){var c=e.value.length;a===l&&l===s&&c>s?(e.selectionStart=c,e.selectionEnd=c):(e.selectionStart=a,e.selectionEnd=Math.min(l,c))}}}),null==To(t)&&e.value&&(n(sr(e)?cr(e.value):e.value),null!==Ft&&o.add(Ft)),Bn(()=>{var n=t();if(e===document.activeElement){var r=Ft;if(o.has(r))return}sr(e)&&n===cr(e.value)||("date"!==e.type||n||e.value)&&n!==e.value&&(e.value=n??"")})}(c,()=>So(n),e=>dn(n,e)),function(e,t,n=t){Mt(e,"change",t=>{var o=t?e.defaultChecked:e.checked;n(o)}),null==To(t)&&n(e.checked),Bn(()=>{var n=t();e.checked=Boolean(n)})}(u,()=>So(o),e=>dn(o,e)),ko("click",f,()=>{dn(n,""),dn(o,!1)}),ko("click",p,function(...e){var n;null==(n=t.onProceed)||n.apply(this,e)}),Vo(e,i),ut()}function zi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}Ro(["click"]);var Gi,Hi,Vi={};var ji,Wi={},qi={};function Ki(){if(ji)return qi;let e;ji=1;const t=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return qi.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},qi.getSymbolTotalCodewords=function(e){return t[e]},qi.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},qi.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');e=t},qi.isKanjiModeEnabled=function(){return void 0!==e},qi.toSJIS=function(t){return e(t)},qi}var Xi,Yi,$i,Zi,Qi,Ji={};function ea(){return Xi||(Xi=1,(e=Ji).L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},e.from=function(t,n){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(o){return n}}),Ji;var e}var ta,na={};var oa,ra={};var ia,aa={};var la,sa={};function ca(){if(la)return sa;la=1;const e=ea(),t=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],n=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return sa.getBlocksCount=function(n,o){switch(o){case e.L:return t[4*(n-1)+0];case e.M:return t[4*(n-1)+1];case e.Q:return t[4*(n-1)+2];case e.H:return t[4*(n-1)+3];default:return}},sa.getTotalCodewordsCount=function(t,o){switch(o){case e.L:return n[4*(t-1)+0];case e.M:return n[4*(t-1)+1];case e.Q:return n[4*(t-1)+2];case e.H:return n[4*(t-1)+3];default:return}},sa}var da,ua,fa,pa,ha={},ma={};function ga(){return ua||(ua=1,function(e){const t=function(){if(da)return ma;da=1;const e=new Uint8Array(512),t=new Uint8Array(256);return function(){let n=1;for(let o=0;o<255;o++)e[o]=n,t[n]=o,n<<=1,256&n&&(n^=285);for(let t=255;t<512;t++)e[t]=e[t-255]}(),ma.log=function(e){if(e<1)throw new Error("log("+e+")");return t[e]},ma.exp=function(t){return e[t]},ma.mul=function(n,o){return 0===n||0===o?0:e[t[n]+t[o]]},ma}();e.mul=function(e,n){const o=new Uint8Array(e.length+n.length-1);for(let r=0;r<e.length;r++)for(let i=0;i<n.length;i++)o[r+i]^=t.mul(e[r],n[i]);return o},e.mod=function(e,n){let o=new Uint8Array(e);for(;o.length-n.length>=0;){const e=o[0];for(let i=0;i<n.length;i++)o[i]^=t.mul(n[i],e);let r=0;for(;r<o.length&&0===o[r];)r++;o=o.slice(r)}return o},e.generateECPolynomial=function(n){let o=new Uint8Array([1]);for(let r=0;r<n;r++)o=e.mul(o,new Uint8Array([1,t.exp(r)]));return o}}(ha)),ha}var va,ya={},ba={},_a={};function wa(){return va||(va=1,_a.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}),_a}var Sa,Ea,Ma,Ta={};function Aa(){if(Sa)return Ta;Sa=1;const e="[0-9]+";let t="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";t=t.replace(/u/g,"\\u");const n="(?:(?![A-Z0-9 $%*+\\-./:]|"+t+")(?:.|[\r\n]))+";Ta.KANJI=new RegExp(t,"g"),Ta.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Ta.BYTE=new RegExp(n,"g"),Ta.NUMERIC=new RegExp(e,"g"),Ta.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const o=new RegExp("^"+t+"$"),r=new RegExp("^"+e+"$"),i=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Ta.testKanji=function(e){return o.test(e)},Ta.testNumeric=function(e){return r.test(e)},Ta.testAlphanumeric=function(e){return i.test(e)},Ta}function Ca(){return Ea||(Ea=1,function(e){const t=wa(),n=Aa();e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(e,n){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!t.isValid(n))throw new Error("Invalid version: "+n);return n>=1&&n<10?e.ccBits[0]:n<27?e.ccBits[1]:e.ccBits[2]},e.getBestModeForData=function(t){return n.testNumeric(t)?e.NUMERIC:n.testAlphanumeric(t)?e.ALPHANUMERIC:n.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},e.isValid=function(e){return e&&e.bit&&e.ccBits},e.from=function(t,n){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+t)}}(t)}catch(o){return n}}}(ba)),ba}function Na(){return Ma||(Ma=1,function(e){const t=Ki(),n=ca(),o=ea(),r=Ca(),i=wa(),a=t.getBCHDigit(7973);function l(e,t){return r.getCharCountIndicator(e,t)+4}function s(e,t){let n=0;return e.forEach(function(e){const o=l(e.mode,t);n+=o+e.getBitsLength()}),n}e.from=function(e,t){return i.isValid(e)?parseInt(e,10):t},e.getCapacity=function(e,o,a){if(!i.isValid(e))throw new Error("Invalid QR Code version");void 0===a&&(a=r.BYTE);const s=8*(t.getSymbolTotalCodewords(e)-n.getTotalCodewordsCount(e,o));if(a===r.MIXED)return s;const c=s-l(a,e);switch(a){case r.NUMERIC:return Math.floor(c/10*3);case r.ALPHANUMERIC:return Math.floor(c/11*2);case r.KANJI:return Math.floor(c/13);case r.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(t,n){let i;const a=o.from(n,o.M);if(Array.isArray(t)){if(t.length>1)return function(t,n){for(let o=1;o<=40;o++)if(s(t,o)<=e.getCapacity(o,n,r.MIXED))return o}(t,a);if(0===t.length)return 1;i=t[0]}else i=t;return function(t,n,o){for(let r=1;r<=40;r++)if(n<=e.getCapacity(r,o,t))return r}(i.mode,i.getLength(),a)},e.getEncodedBits=function(e){if(!i.isValid(e)||e<7)throw new Error("Invalid QR Code version");let n=e<<12;for(;t.getBCHDigit(n)-a>=0;)n^=7973<<t.getBCHDigit(n)-a;return e<<12|n}}(ya)),ya}var Ia,xa={};var ka,Ra,Da,La,Ba,Oa,Pa,Fa,Ua={};var za,Ga,Ha,Va={exports:{}};function ja(){return Ga||(Ga=1,function(e){const t=Ca(),n=function(){if(Ra)return ka;Ra=1;const e=Ca();function t(t){this.mode=e.NUMERIC,this.data=t.toString()}return t.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(e){let t,n,o;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),o=parseInt(n,10),e.put(o,10);const r=this.data.length-t;r>0&&(n=this.data.substr(t),o=parseInt(n,10),e.put(o,3*r+1))},ka=t}(),o=function(){if(La)return Da;La=1;const e=Ca(),t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function n(t){this.mode=e.ALPHANUMERIC,this.data=t}return n.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(e){let n;for(n=0;n+2<=this.data.length;n+=2){let o=45*t.indexOf(this.data[n]);o+=t.indexOf(this.data[n+1]),e.put(o,11)}this.data.length%2&&e.put(t.indexOf(this.data[n]),6)},Da=n}(),r=function(){if(Oa)return Ba;Oa=1;const e=Ca();function t(t){this.mode=e.BYTE,this.data="string"==typeof t?(new TextEncoder).encode(t):new Uint8Array(t)}return t.getBitsLength=function(e){return 8*e},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},Ba=t}(),i=function(){if(Fa)return Pa;Fa=1;const e=Ca(),t=Ki();function n(t){this.mode=e.KANJI,this.data=t}return n.getBitsLength=function(e){return 13*e},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(e){let n;for(n=0;n<this.data.length;n++){let o=t.toSJIS(this.data[n]);if(o>=33088&&o<=40956)o-=33088;else{if(!(o>=57408&&o<=60351))throw new Error("Invalid SJIS character: "+this.data[n]+"\nMake sure your charset is UTF-8");o-=49472}o=192*(o>>>8&255)+(255&o),e.put(o,13)}},Pa=n}(),a=Aa(),l=Ki(),s=function(){return za||(za=1,Va.exports=e={single_source_shortest_paths:function(t,n,o){var r={},i={};i[n]=0;var a,l,s,c,d,u,f,p=e.PriorityQueue.make();for(p.push(n,0);!p.empty();)for(s in l=(a=p.pop()).value,c=a.cost,d=t[l]||{})d.hasOwnProperty(s)&&(u=c+d[s],f=i[s],(void 0===i[s]||f>u)&&(i[s]=u,p.push(s,u),r[s]=l));if(void 0!==o&&void 0===i[o]){var h=["Could not find a path from ",n," to ",o,"."].join("");throw new Error(h)}return r},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],o=t;o;)n.push(o),e[o],o=e[o];return n.reverse(),n},find_path:function(t,n,o){var r=e.single_source_shortest_paths(t,n,o);return e.extract_shortest_path_from_predecessor_list(r,o)},PriorityQueue:{make:function(t){var n,o=e.PriorityQueue,r={};for(n in t=t||{},o)o.hasOwnProperty(n)&&(r[n]=o[n]);return r.queue=[],r.sorter=t.sorter||o.default_sorter,r},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}}),Va.exports;var e}();function c(e){return unescape(encodeURIComponent(e)).length}function d(e,t,n){const o=[];let r;for(;null!==(r=e.exec(n));)o.push({data:r[0],index:r.index,mode:t,length:r[0].length});return o}function u(e){const n=d(a.NUMERIC,t.NUMERIC,e),o=d(a.ALPHANUMERIC,t.ALPHANUMERIC,e);let r,i;l.isKanjiModeEnabled()?(r=d(a.BYTE,t.BYTE,e),i=d(a.KANJI,t.KANJI,e)):(r=d(a.BYTE_KANJI,t.BYTE,e),i=[]);return n.concat(o,r,i).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function f(e,a){switch(a){case t.NUMERIC:return n.getBitsLength(e);case t.ALPHANUMERIC:return o.getBitsLength(e);case t.KANJI:return i.getBitsLength(e);case t.BYTE:return r.getBitsLength(e)}}function p(e,a){let s;const c=t.getBestModeForData(e);if(s=t.from(a,c),s!==t.BYTE&&s.bit<c.bit)throw new Error('"'+e+'" cannot be encoded with mode '+t.toString(s)+".\n Suggested mode is: "+t.toString(c));switch(s!==t.KANJI||l.isKanjiModeEnabled()||(s=t.BYTE),s){case t.NUMERIC:return new n(e);case t.ALPHANUMERIC:return new o(e);case t.KANJI:return new i(e);case t.BYTE:return new r(e)}}e.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(p(t,null)):t.data&&e.push(p(t.data,t.mode)),e},[])},e.fromString=function(n,o){const r=function(e){const n=[];for(let o=0;o<e.length;o++){const r=e[o];switch(r.mode){case t.NUMERIC:n.push([r,{data:r.data,mode:t.ALPHANUMERIC,length:r.length},{data:r.data,mode:t.BYTE,length:r.length}]);break;case t.ALPHANUMERIC:n.push([r,{data:r.data,mode:t.BYTE,length:r.length}]);break;case t.KANJI:n.push([r,{data:r.data,mode:t.BYTE,length:c(r.data)}]);break;case t.BYTE:n.push([{data:r.data,mode:t.BYTE,length:c(r.data)}])}}return n}(u(n,l.isKanjiModeEnabled())),i=function(e,n){const o={},r={start:{}};let i=["start"];for(let a=0;a<e.length;a++){const l=e[a],s=[];for(let e=0;e<l.length;e++){const c=l[e],d=""+a+e;s.push(d),o[d]={node:c,lastCount:0},r[d]={};for(let e=0;e<i.length;e++){const a=i[e];o[a]&&o[a].node.mode===c.mode?(r[a][d]=f(o[a].lastCount+c.length,c.mode)-f(o[a].lastCount,c.mode),o[a].lastCount+=c.length):(o[a]&&(o[a].lastCount=c.length),r[a][d]=f(c.length,c.mode)+4+t.getCharCountIndicator(c.mode,n))}}i=s}for(let t=0;t<i.length;t++)r[i[t]].end=0;return{map:r,table:o}}(r,o),a=s.find_path(i.map,"start","end"),d=[];for(let e=1;e<a.length-1;e++)d.push(i.table[a[e]].node);return e.fromArray(function(e){return e.reduce(function(e,t){const n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}(d))},e.rawSplit=function(t){return e.fromArray(u(t,l.isKanjiModeEnabled()))}}(Ua)),Ua}function Wa(){if(Ha)return Wi;Ha=1;const e=Ki(),t=ea(),n=function(){if($i)return Yi;function e(){this.buffer=[],this.length=0}return $i=1,e.prototype={get:function(e){const t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(let n=0;n<t;n++)this.putBit(1==(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},Yi=e}(),o=function(){if(Qi)return Zi;function e(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}return Qi=1,e.prototype.set=function(e,t,n,o){const r=e*this.size+t;this.data[r]=n,o&&(this.reservedBit[r]=!0)},e.prototype.get=function(e,t){return this.data[e*this.size+t]},e.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},e.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},Zi=e}(),r=(ta||(ta=1,function(e){const t=Ki().getSymbolSize;e.getRowColCoords=function(e){if(1===e)return[];const n=Math.floor(e/7)+2,o=t(e),r=145===o?26:2*Math.ceil((o-13)/(2*n-2)),i=[o-7];for(let t=1;t<n-1;t++)i[t]=i[t-1]-r;return i.push(6),i.reverse()},e.getPositions=function(t){const n=[],o=e.getRowColCoords(t),r=o.length;for(let e=0;e<r;e++)for(let t=0;t<r;t++)0===e&&0===t||0===e&&t===r-1||e===r-1&&0===t||n.push([o[e],o[t]]);return n}}(na)),na),i=function(){if(oa)return ra;oa=1;const e=Ki().getSymbolSize;return ra.getPositions=function(t){const n=e(t);return[[0,0],[n-7,0],[0,n-7]]},ra}(),a=(ia||(ia=1,function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t=3,n=3,o=40,r=10;function i(t,n,o){switch(t){case e.Patterns.PATTERN000:return(n+o)%2==0;case e.Patterns.PATTERN001:return n%2==0;case e.Patterns.PATTERN010:return o%3==0;case e.Patterns.PATTERN011:return(n+o)%3==0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(o/3))%2==0;case e.Patterns.PATTERN101:return n*o%2+n*o%3==0;case e.Patterns.PATTERN110:return(n*o%2+n*o%3)%2==0;case e.Patterns.PATTERN111:return(n*o%3+(n+o)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}e.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(e){const n=e.size;let o=0,r=0,i=0,a=null,l=null;for(let s=0;s<n;s++){r=i=0,a=l=null;for(let c=0;c<n;c++){let n=e.get(s,c);n===a?r++:(r>=5&&(o+=t+(r-5)),a=n,r=1),n=e.get(c,s),n===l?i++:(i>=5&&(o+=t+(i-5)),l=n,i=1)}r>=5&&(o+=t+(r-5)),i>=5&&(o+=t+(i-5))}return o},e.getPenaltyN2=function(e){const t=e.size;let o=0;for(let n=0;n<t-1;n++)for(let r=0;r<t-1;r++){const t=e.get(n,r)+e.get(n,r+1)+e.get(n+1,r)+e.get(n+1,r+1);4!==t&&0!==t||o++}return o*n},e.getPenaltyN3=function(e){const t=e.size;let n=0,r=0,i=0;for(let o=0;o<t;o++){r=i=0;for(let a=0;a<t;a++)r=r<<1&2047|e.get(o,a),a>=10&&(1488===r||93===r)&&n++,i=i<<1&2047|e.get(a,o),a>=10&&(1488===i||93===i)&&n++}return n*o},e.getPenaltyN4=function(e){let t=0;const n=e.data.length;for(let o=0;o<n;o++)t+=e.data[o];return Math.abs(Math.ceil(100*t/n/5)-10)*r},e.applyMask=function(e,t){const n=t.size;for(let o=0;o<n;o++)for(let r=0;r<n;r++)t.isReserved(r,o)||t.xor(r,o,i(e,r,o))},e.getBestMask=function(t,n){const o=Object.keys(e.Patterns).length;let r=0,i=1/0;for(let a=0;a<o;a++){n(a),e.applyMask(a,t);const o=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(a,t),o<i&&(i=o,r=a)}return r}}(aa)),aa),l=ca(),s=function(){if(pa)return fa;pa=1;const e=ga();function t(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}return t.prototype.initialize=function(t){this.degree=t,this.genPoly=e.generateECPolynomial(this.degree)},t.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const n=new Uint8Array(t.length+this.degree);n.set(t);const o=e.mod(n,this.genPoly),r=this.degree-o.length;if(r>0){const e=new Uint8Array(this.degree);return e.set(o,r),e}return o},fa=t}(),c=Na(),d=function(){if(Ia)return xa;Ia=1;const e=Ki(),t=e.getBCHDigit(1335);return xa.getEncodedBits=function(n,o){const r=n.bit<<3|o;let i=r<<10;for(;e.getBCHDigit(i)-t>=0;)i^=1335<<e.getBCHDigit(i)-t;return 21522^(r<<10|i)},xa}(),u=Ca(),f=ja();function p(e,t,n){const o=e.size,r=d.getEncodedBits(t,n);let i,a;for(i=0;i<15;i++)a=1==(r>>i&1),i<6?e.set(i,8,a,!0):i<8?e.set(i+1,8,a,!0):e.set(o-15+i,8,a,!0),i<8?e.set(8,o-i-1,a,!0):i<9?e.set(8,15-i-1+1,a,!0):e.set(8,15-i-1,a,!0);e.set(o-8,8,1,!0)}function h(t,o,r){const i=new n;r.forEach(function(e){i.put(e.mode.bit,4),i.put(e.getLength(),u.getCharCountIndicator(e.mode,t)),e.write(i)});const a=8*(e.getSymbolTotalCodewords(t)-l.getTotalCodewordsCount(t,o));for(i.getLengthInBits()+4<=a&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);const c=(a-i.getLengthInBits())/8;for(let e=0;e<c;e++)i.put(e%2?17:236,8);return function(t,n,o){const r=e.getSymbolTotalCodewords(n),i=l.getTotalCodewordsCount(n,o),a=r-i,c=l.getBlocksCount(n,o),d=r%c,u=c-d,f=Math.floor(r/c),p=Math.floor(a/c),h=p+1,m=f-p,g=new s(m);let v=0;const y=new Array(c),b=new Array(c);let _=0;const w=new Uint8Array(t.buffer);for(let e=0;e<c;e++){const t=e<u?p:h;y[e]=w.slice(v,v+t),b[e]=g.encode(y[e]),v+=t,_=Math.max(_,t)}const S=new Uint8Array(r);let E,M,T=0;for(E=0;E<_;E++)for(M=0;M<c;M++)E<y[M].length&&(S[T++]=y[M][E]);for(E=0;E<m;E++)for(M=0;M<c;M++)S[T++]=b[M][E];return S}(i,t,o)}function m(t,n,l,s){let d;if(Array.isArray(t))d=f.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");{let e=n;if(!e){const n=f.rawSplit(t);e=c.getBestVersionForData(n,l)}d=f.fromString(t,e||40)}}const u=c.getBestVersionForData(d,l);if(!u)throw new Error("The amount of data is too big to be stored in a QR Code");if(n){if(n<u)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+u+".\n")}else n=u;const m=h(n,l,d),g=e.getSymbolSize(n),v=new o(g);return function(e,t){const n=e.size,o=i.getPositions(t);for(let r=0;r<o.length;r++){const t=o[r][0],i=o[r][1];for(let o=-1;o<=7;o++)if(!(t+o<=-1||n<=t+o))for(let r=-1;r<=7;r++)i+r<=-1||n<=i+r||(o>=0&&o<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===o||6===o)||o>=2&&o<=4&&r>=2&&r<=4?e.set(t+o,i+r,!0,!0):e.set(t+o,i+r,!1,!0))}}(v,n),function(e){const t=e.size;for(let n=8;n<t-8;n++){const t=n%2==0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}(v),function(e,t){const n=r.getPositions(t);for(let o=0;o<n.length;o++){const t=n[o][0],r=n[o][1];for(let n=-2;n<=2;n++)for(let o=-2;o<=2;o++)-2===n||2===n||-2===o||2===o||0===n&&0===o?e.set(t+n,r+o,!0,!0):e.set(t+n,r+o,!1,!0)}}(v,n),p(v,l,0),n>=7&&function(e,t){const n=e.size,o=c.getEncodedBits(t);let r,i,a;for(let l=0;l<18;l++)r=Math.floor(l/3),i=l%3+n-8-3,a=1==(o>>l&1),e.set(r,i,a,!0),e.set(i,r,a,!0)}(v,n),function(e,t){const n=e.size;let o=-1,r=n-1,i=7,a=0;for(let l=n-1;l>0;l-=2)for(6===l&&l--;;){for(let n=0;n<2;n++)if(!e.isReserved(r,l-n)){let o=!1;a<t.length&&(o=1==(t[a]>>>i&1)),e.set(r,l-n,o),i--,-1===i&&(a++,i=7)}if(r+=o,r<0||n<=r){r-=o,o=-o;break}}}(v,m),isNaN(s)&&(s=a.getBestMask(v,p.bind(null,v,l))),a.applyMask(s,v),p(v,l,s),{modules:v,version:n,errorCorrectionLevel:l,maskPattern:s,segments:d}}return Wi.create=function(n,o){if(void 0===n||""===n)throw new Error("No input text");let r,i,l=t.M;return void 0!==o&&(l=t.from(o.errorCorrectionLevel,t.M),r=c.from(o.version),i=a.from(o.maskPattern),o.toSJISFunc&&e.setToSJISFunction(o.toSJISFunc)),m(n,r,l,i)},Wi}var qa,Ka,Xa={},Ya={};function $a(){return qa||(qa=1,function(e){function t(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");const n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}e.getOptions=function(e){e||(e={}),e.color||(e.color={});const n=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,o=e.width&&e.width>=21?e.width:void 0,r=e.scale||4;return{width:o,scale:o?4:r,margin:n,color:{dark:t(e.color.dark||"#000000ff"),light:t(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},e.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},e.getImageWidth=function(t,n){const o=e.getScale(t,n);return Math.floor((t+2*n.margin)*o)},e.qrToImageData=function(t,n,o){const r=n.modules.size,i=n.modules.data,a=e.getScale(r,o),l=Math.floor((r+2*o.margin)*a),s=o.margin*a,c=[o.color.light,o.color.dark];for(let e=0;e<l;e++)for(let n=0;n<l;n++){let d=4*(e*l+n),u=o.color.light;if(e>=s&&n>=s&&e<l-s&&n<l-s){u=c[i[Math.floor((e-s)/a)*r+Math.floor((n-s)/a)]?1:0]}t[d++]=u.r,t[d++]=u.g,t[d++]=u.b,t[d]=u.a}}}(Ya)),Ya}function Za(){return Ka||(Ka=1,function(e){const t=$a();e.render=function(e,n,o){let r=o,i=n;void 0!==r||n&&n.getContext||(r=n,n=void 0),n||(i=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),r=t.getOptions(r);const a=t.getImageWidth(e.modules.size,r),l=i.getContext("2d"),s=l.createImageData(a,a);return t.qrToImageData(s.data,e,r),function(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}(l,i,a),l.putImageData(s,0,0),i},e.renderToDataURL=function(t,n,o){let r=o;void 0!==r||n&&n.getContext||(r=n,n=void 0),r||(r={});const i=e.render(t,n,r),a=r.type||"image/png",l=r.rendererOpts||{};return i.toDataURL(a,l.quality)}}(Xa)),Xa}var Qa,Ja,el={};function tl(){if(Qa)return el;Qa=1;const e=$a();function t(e,t){const n=e.a/255,o=t+'="'+e.hex+'"';return n<1?o+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':o}function n(e,t,n){let o=e+t;return void 0!==n&&(o+=" "+n),o}return el.render=function(o,r,i){const a=e.getOptions(r),l=o.modules.size,s=o.modules.data,c=l+2*a.margin,d=a.color.light.a?"<path "+t(a.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",u="<path "+t(a.color.dark,"stroke")+' d="'+function(e,t,o){let r="",i=0,a=!1,l=0;for(let s=0;s<e.length;s++){const c=Math.floor(s%t),d=Math.floor(s/t);c||a||(a=!0),e[s]?(l++,s>0&&c>0&&e[s-1]||(r+=a?n("M",c+o,.5+d+o):n("m",i,0),i=0,a=!1),c+1<t&&e[s+1]||(r+=n("h",l),l=0)):i++}return r}(s,l,a.margin)+'"/>',f='viewBox="0 0 '+c+" "+c+'"',p='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+f+' shape-rendering="crispEdges">'+d+u+"</svg>\n";return"function"==typeof i&&i(null,p),p},el}var nl=function(){if(Ja)return Vi;Ja=1;const e=Hi?Gi:(Hi=1,Gi=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}),t=Wa(),n=Za(),o=tl();function r(n,o,r,i,a){const l=[].slice.call(arguments,1),s=l.length,c="function"==typeof l[s-1];if(!c&&!e())throw new Error("Callback required as last argument");if(!c){if(s<1)throw new Error("Too few arguments provided");return 1===s?(r=o,o=i=void 0):2!==s||o.getContext||(i=r,r=o,o=void 0),new Promise(function(e,a){try{const a=t.create(r,i);e(n(a,o,i))}catch(l){a(l)}})}if(s<2)throw new Error("Too few arguments provided");2===s?(a=r,r=o,o=i=void 0):3===s&&(o.getContext&&void 0===a?(a=i,i=void 0):(a=i,i=r,r=o,o=void 0));try{const e=t.create(r,i);a(null,n(e,o,i))}catch(d){a(d)}}return Vi.create=t.create,Vi.toCanvas=r.bind(null,n.render),Vi.toDataURL=r.bind(null,n.renderToDataURL),Vi.toString=r.bind(null,function(e,t,n){return o.render(e,n)}),Vi}();const ol=zi(nl);var rl=Uo('<div><svg viewBox="25 25 50 50" class="circular"><circle cx="50" cy="50" r="20" fill="none" class="path"></circle></svg> <!></div>');function il(e,t){let n=ur(t,"hidden",3,!1),o=ur(t,"class",3,"");var r=rl();let i;Qo(Cn(Mn(r),2),()=>t.children??Ee),On(()=>{i=or(r,1,tr(["loading-spinner",o()]),null,i,{"d-none":n()}),ar(r,"id",t.id)}),Vo(e,r)}var al=Uo('<div id="idvc-modal-background" role="presentation"><div id="idvc-modal"><!> <!></div></div>');function ll(e,t){dt(t,!0);let n=ur(t,"open",15,!1),o=ur(t,"closable",3,!0),r=ur(t,"loading",3,!1),i=ur(t,"centered",3,!1),a=ur(t,"class",3,"");var l=al();let s;var c=Mn(l),d=Mn(c);{let e=kt(()=>!r());il(d,{id:"idvc-loading-spinner",get hidden(){return So(e)}})}var u=Cn(d,2),f=e=>{var n=Ho();Qo(Tn(n),()=>t.children??Ee),Vo(e,n)};Yo(u,e=>{r()||e(f)}),On(()=>{s=or(l,1,"idvc-modal-background idvc-after-submit",null,s,{"d-none":!n()}),or(c,1,tr(["idvc-modal",a(),{center:i()}]))}),ko("click",l,function(e){o()&&e.target===e.currentTarget&&n(!1)}),Vo(e,l),ut()}Ro(["click"]),nt=!0;var sl=Go('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path fill="currentColor" d="M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"></path></svg>');var cl=Uo('<div id="idvc-close-modal-btn" role="button" tabindex="0" aria-label="Close"><!></div>');function dl(e,t){dt(t,!0);let n=ur(t,"hidden",3,!1);var o=cl();let r;!function(e){Vo(e,sl())}(Mn(o)),On(()=>r=or(o,1,"idvc-modal__close-btn",null,r,{"d-none":n()})),ko("click",o,function(...e){var n;null==(n=t.onclick)||n.apply(this,e)}),ko("keydown",o,function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t.onclick())}),Vo(e,o),ut()}Ro(["click","keydown"]);var ul=(e=>(e.DANGER="danger",e.SUCCESS="success",e.PRIMARY="primary",e))(ul||{}),fl=(e=>(e.LEGACY="v2",e.V2="2-online",e))(fl||{}),pl=(e=>(e[e.SUCCESS=0]="SUCCESS",e[e.FAIL=1]="FAIL",e[e.INVALID_DATA=2]="INVALID_DATA",e[e.ERROR=3]="ERROR",e[e.COMPLETE=4]="COMPLETE",e))(pl||{}),hl=(e=>(e.SUCCESS="Success",e.FAIL="Fail",e.INVALID_DATA="InvalidData",e.ERROR="Error",e.COMPLETE="Complete",e))(hl||{}),ml=(e=>(e.READY="ready",e.VALIDATING="validating",e.DONE_WITH_ERROR="doneWithError",e))(ml||{}),gl=(e=>(e[e.NEVER_OPEN=0]="NEVER_OPEN",e[e.OPEN=1]="OPEN",e[e.CLOSED=2]="CLOSED",e[e.CLOSED_FOREVER=3]="CLOSED_FOREVER",e))(gl||{}),vl=(e=>(e.NEVER_OPEN="NeverOpen",e.OPEN="Open",e.CLOSED="Closed",e.CLOSED_FOREVER="ClosedForever",e))(vl||{}),yl=(e=>(e[e.WebLibStandalone=0]="WebLibStandalone",e[e.WebLibDashboard=1]="WebLibDashboard",e[e.Android=2]="Android",e[e.Ios=3]="Ios",e))(yl||{}),bl=(e=>(e[e[""]=0]="",e[e["sent via SMS"]=1]="sent via SMS",e[e["sent via email"]=2]="sent via email",e[e["sent via SMS or email"]=3]="sent via SMS or email",e))(bl||{}),_l=(e=>(e[e.DL=1]="DL",e[e.Passport=2]="Passport",e[e.PassportCard=3]="PassportCard",e[e.GreenCard=6]="GreenCard",e[e.InternationalId=7]="InternationalId",e[e.Barcode=11]="Barcode",e[e.FaceAuthorization=10]="FaceAuthorization",e[e.EmploymentAuthorization=9]="EmploymentAuthorization",e))(_l||{}),wl=(e=>(e[e.OK=200]="OK",e[e.Created=201]="Created",e[e.Accepted=202]="Accepted",e[e.NoContent=204]="NoContent",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.PaymentRequired=402]="PaymentRequired",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.Gone=410]="Gone",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.PreconditionFailed=412]="PreconditionFailed",e[e.LengthRequired=411]="LengthRequired",e[e.PayloadTooLarge=413]="PayloadTooLarge",e[e.RequestURITooLong=414]="RequestURITooLong",e[e.UnsupportedMediaType=415]="UnsupportedMediaType",e[e.RangeNotSatisfiable=416]="RangeNotSatisfiable",e[e.ExpectationFailed=417]="ExpectationFailed",e[e.Locked=423]="Locked",e[e.MisdirectedRequest=421]="MisdirectedRequest",e[e.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout",e[e.HTTPVersionNotSupported=505]="HTTPVersionNotSupported",e[e.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",e[e.InsufficientStorage=507]="InsufficientStorage",e[e.NetworkConnectTimeoutError=524]="NetworkConnectTimeoutError",e))(wl||{}),Sl=Uo('<span class="idvc-modal__body_process_validating-info__text">The verification process is currently being completed using a mobile device ...</span>'),El=Uo('<button type="button" class="btn btn--primary" id="idvc-qr-code-terminate-process-btn"><span>Stop the mobile validation process</span></button>'),Ml=Uo('<div class="idvc-modal__header-wrap qr-code__header"><!> <div class="idvc-modal__header"><h2 class="idvc-modal__header__content idvc-modal__header__content_qr-code">Verify Documents by Phone</h2></div></div> <div class="idvc-modal__body idvc-modal__body_qr-code"><div id="idvc-modal__body_process_ready"><h3 class="idvc-modal__body_process_ready-header">Scan the QR Сode below to continue on your mobile device</h3> <div class="idvc-modal__body_process_ready__canvas-container"><canvas class="idvc-modal__body_process_ready-canvas" id="idvc-modal__body_process_ready-canvas"></canvas></div> <div class="idvc-modal__body_process_ready-info qr-code__header"><svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7 0C8.97933 0.052 10.6278 0.736833 11.9455 2.0545C13.2632 3.37217 13.948 5.02067 14 7C13.948 8.97933 13.2632 10.6278 11.9455 11.9455C10.6278 13.2632 8.97933 13.948 7 14C5.02067 13.948 3.37217 13.2632 2.0545 11.9455C0.736833 10.6278 0.052 8.97933 0 7C0.052 5.02067 0.736833 3.37217 2.0545 2.0545C3.37217 0.736833 5.02067 0.052 7 0ZM7 3C6.729 3 6.505 3.099 6.328 3.297C6.151 3.495 6.07283 3.72933 6.0935 4L6.453 8C6.474 8.146 6.53383 8.26317 6.6325 8.3515C6.73117 8.43983 6.8535 8.48417 6.9995 8.4845C7.1455 8.48483 7.26783 8.4405 7.3665 8.3515C7.46517 8.2625 7.525 8.14533 7.546 8L7.9055 4C7.9265 3.729 7.84833 3.49467 7.671 3.297C7.49367 3.09933 7.26967 3.00033 6.999 3H7ZM7 11C7.22933 10.9897 7.4195 10.9115 7.5705 10.7655C7.7215 10.6195 7.797 10.432 7.797 10.203C7.797 9.974 7.7215 9.78383 7.5705 9.6325C7.4195 9.48117 7.22933 9.40567 7 9.406C6.77067 9.40633 6.5805 9.48183 6.4295 9.6325C6.2785 9.78317 6.203 9.97333 6.203 10.203C6.203 10.4327 6.2785 10.6202 6.4295 10.7655C6.5805 10.9108 6.77067 10.989 7 11Z" fill="#F7BA2A"></path></svg> <span class="idvc-modal__body_process_ready-info__text">Any images you have uploaded will be lost if you scan the QR code and continue the process on your mobile device</span></div></div> <div id="idvc-modal__body_process_validating"><!></div> <div id="result-error"><div class="idvc-modal__body_process_done-container"><svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" fill="#ff0000" viewBox="0 0 512 512"><path d="M502.876 379.713l-189.486-316.329c-6.088-9.895-14.349-17.903-24.154-23.52l-0.329-0.174c-20.048-11.267-45.677-11.292-65.788 0.022-10.123 5.785-18.372 13.786-24.282 23.381l-0.167 0.291c-0.022 0.045-0.042 0.066-0.064 0.109l-189.619 316.546c-18.512 32.098-7.501 73.127 24.596 91.642 9.476 5.56 20.852 8.88 32.997 8.972h379.12c37.046-0.406 66.736-30.765 66.347-67.804-0.137-12.231-3.526-23.642-9.34-33.446l0.171 0.31zM233.656 189.931c0.138-12.246 10.097-22.12 22.363-22.12s22.225 9.874 22.363 22.107v89.466c0 0.002 0 0.003 0 0.005 0 12.347-10.010 22.356-22.356 22.356-0.002 0-0.004 0-0.005 0h0c-0.002 0-0.005 0-0.008 0-12.345 0-22.352-10.005-22.357-22.348v-0zM278.413 368.985c0 12.368-10.026 22.394-22.394 22.394s-22.394-10.026-22.394-22.394c0-12.367 10.024-22.392 22.391-22.394v0c0.001 0 0.002 0 0.002 0 12.368 0 22.394 10.026 22.394 22.394v0z"></path></svg> <div class="idvc-modal__body_process_done__text" id="result__text-error">Validation Failed</div></div></div></div> <div class="idvc-modal__footer_qr-code"><!></div>',1);Ro(["click"]);var Tl=Uo('<div class="d-none"><div class="qr-code-wrap"><button class="qr-code-wrap__button" id="qr-code-wrap__button"><span class="qr-code-wrap__content">Verify Documents by Phone<svg class="qr-code-svg" width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 8V0H8V8H0ZM2 6H6V2H2V6ZM0 18V10H8V18H0ZM2 16H6V12H2V16ZM10 8V0H18V8H10ZM12 6H16V2H12V6ZM16 18V16H18V18H16ZM10 12V10H12V12H10ZM12 14V12H14V14H12ZM10 16V14H12V16H10ZM12 18V16H14V18H12ZM14 16V14H16V16H14ZM14 12V10H16V12H14ZM16 14V12H18V14H16Z" fill="white"></path></svg></span></button></div></div>');Ro(["click"]);const[Al,Cl]=ot(lt,st,ct),Nl=e=>"string"==typeof e,Il=e=>"object"==typeof e&&null!==e,xl=e=>e.reduce((e,[t,n])=>(e[t.toLowerCase()]=n,e),{}),kl=xl([[hl.SUCCESS,pl.SUCCESS],[hl.FAIL,pl.FAIL],[hl.INVALID_DATA,pl.INVALID_DATA],[hl.ERROR,pl.ERROR],[hl.COMPLETE,pl.COMPLETE]]),Rl=xl([[vl.NEVER_OPEN,gl.NEVER_OPEN],[vl.OPEN,gl.OPEN],[vl.CLOSED,gl.CLOSED],[vl.CLOSED_FOREVER,gl.CLOSED_FOREVER]]),Dl=xl([[hl.SUCCESS,hl.SUCCESS],[hl.FAIL,hl.FAIL],[hl.INVALID_DATA,hl.INVALID_DATA],[hl.ERROR,hl.ERROR],[hl.COMPLETE,hl.COMPLETE]]),Ll=(e,t)=>"number"==typeof e&&void 0!==t[e]?e:void 0,Bl=(e,t)=>Nl(e)?t[e.trim().toLowerCase()]:void 0,Ol=e=>Ll(e,pl),Pl=e=>Bl(e,kl),Fl=e=>{if(!Nl(e))return;const t=e.trim();return Dl[t.toLowerCase()]??t},Ul=(e,t)=>{null!=e&&console.error(`Unrecognised validation status "${String(e)}" for API version "${t}" — treating the response as an error.`)},zl=(e,t)=>{if(!Il(e))return{status:-1};const n=e;return t===fl.V2?(e=>{var t,n;const o=Pl(e.status);return void 0===o&&Ul(e.status,fl.V2),{...e,status:o??-1,documentType:(null==(t=e.verificationResult)?void 0:t.documentType)??void 0,document:(null==(n=e.verificationResult)?void 0:n.document)??void 0,validationStatus:void 0,validationStatusName:Fl(e.validationStatus),invalidDataErrors:e.invalidDataErrors??[]}})(n):(e=>{const t=Ol(e.status);return void 0===t&&Ul(e.status,fl.LEGACY),{...e,status:t??-1,validationStatus:Il(e.validationStatus)?e.validationStatus:void 0,invalidDataErrors:e.invalidDataErrors??[]}})(n)};var Gl=Uo("<!> <!>",1);function Hl(e,t){dt(t,!0);const n=Al(),{embeddedAppConnectionId:o}=n,{applicantId:r}=n.configs;let i=cn(!1),a=cn(_n(ml.READY)),l=cn(!0),s=cn(!1);const c=`${n.configs.qrCodeLinkOrigin}/embedded?requestId=${r}&embeddedAppConnectionId=${o}&qrCode=true`,d=document.getElementById("card-steps"),u=new AbortController;function f(e){n.api.longPollingRequest(`Status/${r}`,{method:"GET",signal:u.signal},t=>{m(t),null==e||e()})}function p(){n.api.longPollingRequest(`ValidationResponse/${r}/${o}`,{method:"GET",signal:u.signal},e=>function(e){const o=zl(e,n.configs.apiVersion);dn(i,!1),dn(s,!0),o.status!==pl.SUCCESS&&f(()=>{dn(s,!1)});t.onValidate(o)}(e))}function h(e){const t=e();t&&n.configs.firstStepMode&&(n.configs.firstStepMode.video=t.video,n.configs.firstStepMode.uploader=t.uploader)}function m(e){const t=n.configs.getFirstStepModeState();var o;switch(Ll(o=e,gl)??Bl(o,Rl)){case gl.NEVER_OPEN:h(t),dn(a,ml.READY,!0),dn(l,!0),dn(i,!0);break;case gl.OPEN:dn(a,ml.VALIDATING,!0),dn(l,!1),dn(i,!0),p(),n.configs.firstStepMode&&(n.configs.firstStepMode.video=!1,n.configs.firstStepMode.uploader=!0),n.lib.updateDocumentTypes(n.configs.libConfig.documentTypes);break;case gl.CLOSED:h(t),dn(a,ml.READY,!0),dn(l,!0);break;case gl.CLOSED_FOREVER:dn(a,ml.DONE_WITH_ERROR,!0),dn(l,!1);break;default:console.error(`Unrecognised embedded application status "${String(e)}".`)}}fr(()=>(f(),()=>u.abort())),Dn(()=>{if(!So(i)||So(a)!==ml.READY)return;const e=new AbortController;var t;return t=e.signal,n.api.longPollingRequest(`IsOpen/${r}`,{method:"GET",signal:t},e=>{e&&m(gl.OPEN)}),()=>e.abort()});var g=Gl(),v=Tn(g);!function(e,t){dt(t,!0);let n=ur(t,"open",15,!1),o=ur(t,"closable",3,!0),r=ur(t,"state",19,()=>ml.READY);function i(e){t.url&&ol.toCanvas(e,t.url,{width:180}).catch(e=>{console.error(`generate qr code error: ${e}`)})}ll(e,{get closable(){return o()},class:"idvc-modal_qr-code",get open(){return n()},set open(e){n(e)},children:(e,a)=>{var l=Ml(),s=Tn(l),c=Mn(s);{let e=kt(()=>!o());dl(c,{get hidden(){return So(e)},onclick:()=>n(!1)})}var d=Cn(s,2),u=Mn(d);let f;var p=Cn(Mn(u),2);Jo(Mn(p),()=>i);var h=Cn(u,2);let m;il(Mn(h),{id:"idvc-validating-spinner",class:"el-loading-spinner_qr-code",children:(e,t)=>{Vo(e,Sl())},$$slots:{default:!0}});var g=Cn(h,2);let v;var y=Mn(Cn(d,2)),b=e=>{var n=El();ko("click",n,function(...e){var n;null==(n=t.onTerminate)||n.apply(this,e)}),Vo(e,n)};Yo(y,e=>{r()===ml.VALIDATING&&e(b)}),On(()=>{f=or(u,1,"idvc-modal__body_process_ready",null,f,{"d-none":r()!==ml.READY}),m=or(h,1,"idvc-modal__body_process_validating",null,m,{"d-none":r()!==ml.VALIDATING}),v=or(g,1,"idvc-modal__body_process_done",null,v,{"d-none":r()!==ml.DONE_WITH_ERROR})}),Vo(e,l)},$$slots:{default:!0}}),ut()}(v,{get state(){return So(a)},get closable(){return So(l)},get url(){return c},onTerminate:async function(){try{await n.api.closeEmbeddedApplication(r)}catch(e){return void console.error("Failed to stop the mobile validation process",e)}dn(i,!1),dn(s,!0),f(()=>{dn(s,!1)})},get open(){return So(i)},set open(e){dn(i,e,!0)}});var y=Cn(v,2),b=e=>{!function(e,t){dt(t,!0);let n=ur(t,"disabled",3,!1);var o=Tl(),r=Mn(o),i=An(r);Jo(r,()=>{return e=t.anchor,t=>(e.after(t),()=>t.remove());var e}),On(()=>i.disabled=n()),ko("click",i,function(...e){var n;null==(n=t.onclick)||n.apply(this,e)}),Vo(e,o),ut()}(e,{get anchor(){return d},get disabled(){return So(s)},onclick:()=>dn(i,!0)})};Yo(y,e=>{d&&e(b)}),Vo(e,g),ut()}var Vl=Go('<svg width="20" height="20" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8 1C9.97933 1.052 11.6278 1.73683 12.9455 3.0545C14.2632 4.37217 14.948 6.02067 15 8C14.948 9.97933 14.2632 11.6278 12.9455 12.9455C11.6278 14.2632 9.97933 14.948 8 15C6.02067 14.948 4.37217 14.2632 3.0545 12.9455C1.73683 11.6278 1.052 9.97933 1 8C1.052 6.02067 1.73683 4.37217 3.0545 3.0545C4.37217 1.73683 6.02067 1.052 8 1ZM8 4C7.729 4 7.505 4.099 7.328 4.297C7.151 4.495 7.07283 4.72933 7.0935 5L7.453 9C7.474 9.146 7.53383 9.26317 7.6325 9.3515C7.73117 9.43983 7.8535 9.48417 7.9995 9.4845C8.1455 9.48483 8.26783 9.4405 8.3665 9.3515C8.46517 9.2625 8.525 9.14533 8.546 9L8.9055 5C8.9265 4.729 8.84833 4.49467 8.671 4.297C8.49367 4.09933 8.27067 4.00033 8 4ZM8 12C8.22933 11.9897 8.4195 11.9115 8.5705 11.7655C8.7215 11.6195 8.797 11.432 8.797 11.203C8.797 10.974 8.7215 10.7838 8.5705 10.6325C8.4195 10.4812 8.22933 10.4057 8 10.406C7.77067 10.4063 7.5805 10.4818 7.4295 10.6325C7.2785 10.7832 7.203 10.9733 7.203 11.203C7.203 11.4327 7.2785 11.6202 7.4295 11.7655C7.5805 11.9108 7.77067 11.989 8 12Z"></path></svg>');var jl=Go('<svg width="20" height="20" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path class="color-success" d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"></path></svg>');var Wl=Uo('<div id="idvc-modal-header-sign-check"><!></div>'),ql=Uo('<div id="idvc-modal-header-sign-info"><!></div>'),Kl=Uo('<div><div class="idvc-modal__header__body"><div><!></div> <h2 class="idvc-modal__header__content"> </h2></div> <!></div>'),Xl=Uo('<div class="idvc-modal__body"></div>'),Yl=Uo('<button type="button" class="btn btn--primary" id="idvc-modal-try-again-btn"><span>Try again</span></button>'),$l=Uo('<button type="button" class="btn btn--default" id="idvc-modal-complete-btn"><span>Complete</span></button>'),Zl=Uo("<div><!> <!></div>"),Ql=Uo("<!> <!> <!>",1);function Jl(e,t){dt(t,!0);let n=ur(t,"open",15,!1),o=ur(t,"closable",3,!0),r=ur(t,"loading",3,!1),i=ur(t,"type",19,()=>ul.PRIMARY),a=ur(t,"header",3,""),l=ur(t,"content",3,""),s=ur(t,"buttons",19,()=>({tryAgain:!1,complete:!1}));const c=kt(()=>i()===ul.SUCCESS),d=kt(()=>Number(s().tryAgain)+Number(s().complete));function u(){var e;n(!1),null==(e=t.onTryAgain)||e.call(t)}function f(){var e;n(!1),null==(e=t.onComplete)||e.call(t)}ll(e,{get closable(){return o()},get loading(){return r()},get centered(){return So(c)},class:"idvc-modal_validation",get open(){return n()},set open(e){n(e)},children:(e,t)=>{var r=Ql(),p=Tn(r),h=e=>{var t=Kl();let r;var l=Mn(t),s=Mn(l),d=Mn(s),u=e=>{var t=Wl();!function(e){Vo(e,jl())}(Mn(t)),Vo(e,t)},f=e=>{var t=ql(),n=Mn(t);{let e=kt(()=>`color-${i()}`);!function(e,t){let n=ur(t,"class",3,"");var o=Vl();On(()=>or(o,0,tr(n()||void 0))),Vo(e,o)}(n,{get class(){return So(e)}})}Vo(e,t)};Yo(d,e=>{So(c)?e(u):e(f,-1)});var p=An(Cn(s,2),!0),h=Cn(l,2);{let e=kt(()=>!o());dl(h,{get hidden(){return So(e)},onclick:()=>n(!1)})}On(()=>{r=or(t,1,"idvc-modal__header",null,r,{center:So(c)}),or(s,1,tr(["idvc-modal__header__sign",`idvc-modal__header__sign--${i()}`])),function(e,t){var n=null==t?"":"object"==typeof t?`${t}`:t;n!==(e[Xe]??(e[Xe]=e.nodeValue))&&(e[Xe]=n,e.nodeValue=`${n}`)}(p,a())}),Vo(e,t)};Yo(p,e=>{a()&&e(h)});var m=Cn(p,2),g=e=>{var t=Xl();Zo(t,l,!0),Vo(e,t)};Yo(m,e=>{l()&&e(g)});var v=Cn(m,2),y=e=>{var t=Zl();let n;var o=Mn(t),r=e=>{var t=Yl();ko("click",t,u),Vo(e,t)};Yo(o,e=>{s().tryAgain&&e(r)});var i=Cn(o,2),a=e=>{var t=$l();ko("click",t,f),Vo(e,t)};Yo(i,e=>{s().complete&&e(a)}),On(()=>n=or(t,1,"idvc-modal__footer",null,n,{"is-single-button":1===So(d)})),Vo(e,t)};Yo(v,e=>{So(d)>0&&e(y)}),Vo(e,r)},$$slots:{default:!0}}),ut()}Ro(["click"]);class es extends Error{}class ts extends es{constructor(e){super(e),this.message="This application is closed",this.name="NotValidApplicant",this.header="Request Closed",this.content="This application is closed"}}class ns extends es{constructor(e){const t="RequestValidationError"===e.code?e.code:"ValidationError";if(super(t),this.message=e.message||"Try again later",this.name=t,this.setHeader(e),this.content=Oi(e.message||"Try again later"),null==e?void 0:e.propertyErrors){const t=Object.values(e.propertyErrors).reduce((e,t)=>`${e}<li class="idvc-modal__body__list__item">${Oi(String(t))}</li>`,"");this.content=`<ol class="idvc-modal__body__list">${t}</ol>`}}setHeader({code:e=""}){e&&["ApiError","ValidationError","MultipleErrors","BadRequest"].includes(e)?this.header="Something Went Wrong!":this.header="Data invalid"}}class os extends es{constructor(e){const t=(null==e?void 0:e.status)??0;let n;switch(super(t.toString()),t){case 0:n="Network Error";break;case 400:n="Bad Request";break;case 401:n="Unauthorized";break;case 403:n="Forbidden";break;case 404:n="Not Found";break;case 500:n="Server Error";break;default:n="Something Went Wrong!"}this.message=t?`Status code: ${t}. ${n}`:n,this.name="HttpError",this.statusCode=t,this.header="Server Side Problems",this.content="Please try again later"}}const rs={validationResponseId:0,validationRequestId:"",documentType:0,document:null,attemptsLeft:0,attemptsCount:0,status:0,validationStatus:{expired:!1,documentIsValid:!1,faceIsValid:!1},invalidDataErrors:null,faceSuccess:null,documentSuccess:null,documentHasNotExpired:null,documentValidationTests:null,callBackUrl:null,notificationType:0,isCompleted:!1},is=(e={})=>({...rs,...e}),as=is({validationResponseId:6223,validationRequestId:"8151f48d-bab1-4491-037d-08d9b3c5cfec",documentType:1,document:{abbr3Country:"USA",abbrCountry:"US",address:"25805 VAN LEUVEN ST 136",city:"LOMA LINDA",class:"C",country:"United States of America",dob:"1961-01-07",expires:"2024-01-07",eyes:"Brown",familyName:"GILMER",firstName:"DARIENNE",fullName:"DARIENNE ELIZABETH GILMER",gender:"Female",hair:"Black",height:"064 IN",id:"C3568758",idType:"DL",issued:"2019-01-07",middleName:"ELIZABETH",postalBox:null,privateName:"ELIZABETH",state:"CA",template:"09",weight:"77",zip:"92354-0000"},validationStatus:{expired:!1,documentIsValid:!0,faceIsValid:!0},documentValidationTests:[{displayName:"DMV",name:"DMVValidation",status:0,statusString:"Failed",reason:"Internal Server Error"},{displayName:"IdentiFraud",name:"IdentiFraudValidation",status:-1,statusString:"Disabled",reason:"Integration was turned off"}]});is({validationResponseId:6224,validationRequestId:"fa33df4c-7d5c-4485-037e-08d9b3c5cfec",attemptsLeft:19,status:2,invalidDataErrors:[{code:"FaceDocNotDetectError",message:"The face has not been found on the document"},{code:"PDF417Error",message:"Unable to capture data from the back of the document"},{code:"OCRError",message:"Unable to capture data from the front of the document"}]}),is({validationResponseId:6230,validationRequestId:"eae11ae1-1c8f-40bd-0381-08d9b3c5cfec",documentType:2,document:{abbr3Country:"USA",abbrCountry:"US",address:null,city:null,class:null,country:"United States of America",dob:"1986-07-24",expires:"2030-07-13",eyes:null,familyName:"LEVELS",firstName:"DAVID HARRISON",fullName:"LEVELS DAVID HARRISON",gender:"M",hair:null,height:null,id:"659328258",idType:"PASSPORT",issued:null,middleName:null,postalBox:null,privateName:null,state:null,template:null,weight:null,zip:null},attemptsLeft:18,status:1,validationStatus:{expired:!1,documentIsValid:!0,faceIsValid:!1}}),is({applicantId:"bb165b57-e8b1-412a-b848-2e4669da58e0",attemptId:71441,documentType:1,attemptsCount:5,attemptsLeft:5,status:2,validationStatus:{expired:null,documentIsValid:null,faceIsValid:!0,antiSpoofingIsValid:null},invalidDataErrors:[{code:"QualityWarning",message:null}],hasRiskEvents:!0,documentValidationTests:[]});const ls={applicantId:"bb165b57-e8b1-412a-b848-2e4669da58e0",attemptId:3,status:hl.SUCCESS,validationStatus:hl.SUCCESS,attemptsCount:1,attemptsLeft:4,faceSuccess:null,documentSuccess:null,documentHasNotExpired:null,hasRiskEvents:!1,invalidDataErrors:[],callBackUrl:null,isCompleted:!1,reference:null,referenceId:null,verificationResult:null,requestData:null,images:null},ss=(e={})=>({...ls,...e}),cs=ss({isCompleted:!0});ss({isCompleted:!0,verificationResult:{documentType:1,reference:null,document:{type:"DL",country:"United States of America",state:"CA"},faceVerificationResult:{isMatch:!0,score:92.4},parsedData:{isOcrSuccess:!0,isPdf417Success:!0,isMrzSuccess:null}}}),ss({status:hl.INVALID_DATA,validationStatus:hl.INVALID_DATA,attemptsLeft:3,invalidDataErrors:[{code:"",message:"Unable to capture data from the back of the document"},{code:"",message:"Suspicious Activity was detected"}]}),ss({status:hl.FAIL,validationStatus:hl.FAIL,attemptsLeft:2}),ss({status:hl.FAIL,validationStatus:hl.FAIL,attemptsLeft:0,isCompleted:!0}),ss({status:hl.ERROR,validationStatus:hl.ERROR,attemptsLeft:3});class ds extends es{constructor(e){if(super("FaceAuthorizationError"),this.message=e.message||"Try again later",this.name="FaceAuthorizationError",this.setHeader(e),this.content=Oi(e.message||"Try again later"),null==e?void 0:e.propertyErrors){const t=Object.values(e.propertyErrors).reduce((e,t)=>`${e}<li class="idvc-modal__body__list__item">${Oi(String(t))}</li>`,"");this.content=`<ol class="idvc-modal__body__list">${t}</ol>`}}setHeader({code:e=""}){e&&["ApiError","ValidationError","MultipleErrors","BadRequest"].includes(e)?this.header="Something Went Wrong!":this.header="Data invalid"}}const us={[fl.LEGACY]:"api/v2",[fl.V2]:"api/2-online"},fs=new Set([wl.RequestTimeout,wl.NetworkConnectTimeoutError]),ps=(e,t)=>new Promise(n=>{const o=setTimeout(n,e);null==t||t.addEventListener("abort",()=>{clearTimeout(o),n()},{once:!0})});class hs{constructor(e,t="https://api-dvsonline.idscan.net",n=fl.LEGACY){this.idvcManifestUrl="https://neurons.cdn.idscan.net/manifest.json",this.HEADERS={"Content-Type":"application/json"},this.apiVersion=n;const o=`${t}/${us[n]}/`;this.baseUrl=`${o}public/`,this.baseEmbeddedUrl=`${o}EmbeddedApp/`,this.HEADERS.Authorization=`Bearer ${e}`}async checkApplicantIdIsNotClosed({applicantId:e="",demoMode:t=!1,faceAuth:n=!1,faceOnly:o=!1}){if(t)return!0;const r=`${this.baseUrl}Applicants/${e}/Completed`,i=await fetch(r,{method:"GET",headers:this.HEADERS});if(i.ok&&!n)throw new ts("request closed");if(i.ok&&n)return!0;if(wl.NotFound===i.status&&n)throw new ts("validation not completed");if(wl.NotFound===i.status&&(!n||o))return!0;if(wl.BadRequest===i.status){const e=await i.json();throw new ns(e)}throw new os(i)}async getCurrentIdvcVersion(){try{const e=await fetch(this.idvcManifestUrl);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);return(await e.json()).latestVersion}catch(e){throw console.error("Error fetching data:",e),e}}async getOptions(e){const t=`${this.baseUrl}Integrations/${e}/Configuration`;try{const e=await fetch(t,{method:"GET",headers:this.HEADERS});if(e.ok)return await e.json();throw new os(e)}catch(n){if(n instanceof os)throw n;throw new os}}async getOptionsByApplicant(e,t){const n=`${this.baseUrl}Integrations/${e}/${t}/ApplicantConfiguration`;try{const e=await fetch(n,{method:"GET",headers:this.HEADERS});if(e.ok)return await e.json();throw new os(e)}catch(o){if(o instanceof os)throw o;throw new os}}async getConfiguration(e,t){return this.apiVersion===fl.V2&&"00000000-0000-0000-0000-000000000000"!==e?this.getOptionsByApplicant(e,t):this.getOptions(t)}async validateApplicant(e,t=!1,n=!1){if(t){const e=this.apiVersion===fl.V2?cs:as;return zl(e,this.apiVersion)}const o=`${this.baseUrl}Validation`,r=await fetch(o,{method:"POST",headers:this.HEADERS,body:JSON.stringify(e)});if(r.ok)return zl(await r.json(),this.apiVersion);if(wl.BadRequest===r.status){const e=await r.json();if(n)throw new ds(e);throw new ns(e)}if(wl.NotFound===r.status){const e=await r.json();throw new ds(e)}throw new os(r)}async forceClose(e){const t=`${this.baseUrl}Applicants/${e}/Complete`,n=await fetch(t,{method:"POST",headers:this.HEADERS});if(n.ok)return n.json();if(wl.BadRequest===n.status){const e=await n.json();throw new ns(e)}throw new os(n)}async closeEmbeddedApplication(e){let t;try{t=await fetch(`${this.baseEmbeddedUrl}Close/${e}`,{method:"POST",headers:this.HEADERS})}catch{throw new os}if(!t.ok)throw new os(t)}async longPollingRequest(e,t,n){var o,r;const i=`${this.baseEmbeddedUrl}${e}`;let a=1e3;for(;!(null==(o=t.signal)?void 0:o.aborted);){let o;try{o=await fetch(i,t)}catch{}if(o&&fs.has(o.status))a=1e3;else{if(null==o?void 0:o.ok){const e=await o.json().catch(()=>{});return void((null==(r=t.signal)?void 0:r.aborted)||n(e))}if(o&&o.status<wl.InternalServerError)return void console.error(`Polling of ${e} stopped: request error ${o.status}`);await ps(a,t.signal),a=Math.min(2*a,3e4)}}}}const ms=e=>"string"==typeof e,gs=e=>ms(e)&&!!e,vs=e=>ms(e)&&/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e),ys=e=>ms(e)&&e.toLowerCase().startsWith("pk_")&&vs(e),bs=e=>ms(e)&&!!document.getElementById(e);class _s extends es{constructor(e){super(e),this.message=`Configuration parameter error: ${e}`,this.name="ConfigError",this.header="Configuration Error!",this.content=e||""}}const ws=[{type:"DL",steps:[{type:"front",name:"Document Front",mode:{uploader:!0,video:!0},autocaptureDelay:0,enableDesktopNotification:!1},{type:"pdf",name:"Document Back",mode:{uploader:!0,video:!0},autocaptureDelay:0,enableDesktopNotification:!1,enableFourCornerCapture:!1},{type:"face",name:"Face",mode:{uploader:!0,video:!0},autocaptureDelay:0,enableDesktopNotification:!1}]},{type:"IC",steps:[{type:"front",name:"Document Front",mode:{uploader:!0,video:!0},autocaptureDelay:0,enableDesktopNotification:!1},{type:"pdf",name:"Document Back",mode:{uploader:!0,video:!0},autocaptureDelay:0,enableDesktopNotification:!1,enableFourCornerCapture:!0},{type:"face",name:"Face",mode:{uploader:!0,video:!0},autocaptureDelay:0,enableDesktopNotification:!1}]},{type:"Passport",steps:[{type:"mrz",name:"Document Front",mode:{uploader:!0,video:!0},autocaptureDelay:0,enableDesktopNotification:!1},{type:"face",name:"Face",mode:{uploader:!0,video:!0},autocaptureDelay:0,enableDesktopNotification:!1}]},{type:"PassportCard",steps:[{type:"front",name:"Document Front",mode:{uploader:!0,video:!0},autocaptureDelay:0,enableDesktopNotification:!1},{type:"mrz",name:"Document Back",mode:{uploader:!0,video:!0},autocaptureDelay:0,enableDesktopNotification:!1},{type:"face",name:"Face",mode:{uploader:!0,video:!0},autocaptureDelay:0,enableDesktopNotification:!1}]},{type:"GreenCard",steps:[{type:"front",name:"Document Front",mode:{uploader:!0,video:!0},autocaptureDelay:0,enableDesktopNotification:!1},{type:"mrz",name:"Document Back",mode:{uploader:!0,video:!0},autocaptureDelay:0,enableDesktopNotification:!1},{type:"face",name:"Face",mode:{uploader:!0,video:!0},autocaptureDelay:0,enableDesktopNotification:!1}]},{type:"EmploymentAuthorization",steps:[{type:"front",name:"Document Front",mode:{uploader:!0,video:!0}},{type:"mrz",name:"Document Back",mode:{uploader:!0,video:!0}},{type:"face",name:"Face",mode:{uploader:!0,video:!0}}]}],Ss=e=>{let t;const n=(o=e.documentTypes)?o.map(e=>({...e,steps:e.steps.filter(e=>!e.mode||Object.values(e.mode).some(Boolean))})).filter(e=>e.steps.length).map(e=>({type:e.type,steps:e.steps})):[];var o;const r=n.find(e=>"Passport"===e.type);if(r){const e={type:"mrz",name:"Passport MRZ",mode:{uploader:!0,video:!0}},t=r.steps.findIndex(e=>"front"===e.type);-1!==t&&r.steps.splice(t,1,e)}return t=0===n.length?ws:n,t},Es=e=>new URLSearchParams(window.location.search).get(e),Ms=({name:e,value:t,validationFunctions:n})=>{if(!n.reduce((e,n)=>e&&n(t),!0))throw new _s(e)},Ts=["applicantId","callbacks","demoMode","domainApi","apiVersion","domainId","publicKey","isAuth","faceOnly","preferApiConfig","wrapperSettings","qrCodeLinkOrigin","getApplicantIdFromURL","IDVCDownloadVersion"],As=e=>{const t={...e};return Ts.forEach(e=>delete t[e]),t},Cs=["networkUrl","chunkPublicPath"],Ns=e=>{const t={};return Cs.forEach(n=>{void 0!==e[n]&&(t[n]=e[n])}),t};class Is{constructor(e){this.validate=()=>{(({demoMode:e,applicantId:t,domainId:n,domainApi:o,publicKey:r,el:i="videoCapturingEl"})=>{const a=[gs,vs];[e?null:{name:"applicantId",value:t,validationFunctions:a},{name:"domainId",value:n,validationFunctions:a},{name:"publicKey",value:r,validationFunctions:[gs,ys]},{name:"el",value:i,validationFunctions:[gs,bs]},{name:"domainApi should not be empty",value:o,validationFunctions:[gs]}].filter(Boolean).forEach(e=>Ms(e))})(this.wrapper)},this.wrapper={...e},e.getApplicantIdFromURL&&(this.wrapper.applicantId=Es("requestId")||e.applicantId)}parseFromWeb(e){const t=JSON.parse(null==e?void 0:e.jsonSettings);this.isAuth||this.faceOnly?this.libConfig=this.faceAuthorizationConfig(t):(t.documentTypes=Ss(t),this.libConfig=t),this.cssStyles=null==e?void 0:e.cssStyles,this.cssVariables=null==e?void 0:e.cssVariables,this.showQrCode=this.wrapper.preferApiConfig?t.showQrCode??!0:e.showQrCode}faceAuthorizationConfig(e){return e.isShowDocumentTypeSelect=!1,e.documentTypes=[{type:"DL",steps:[{type:"face",name:"Face",mode:{uploader:!0,video:!0}}]}],e}getFirstStepModeState(){const e=structuredClone(this.firstStepMode);return()=>e}get firstStepMode(){var e,t,n;return null==(n=null==(t=null==(e=this.libConfig)?void 0:e.documentTypes[0])?void 0:t.steps[0])?void 0:n.mode}set applicantId(e){(e=>{Ms({name:"applicantId",value:e,validationFunctions:[gs,vs]})})(e),this.wrapper.applicantId=e}get applicantId(){return this.wrapper.applicantId}get domainId(){return this.wrapper.domainId}get publicKey(){return this.wrapper.publicKey}get domainApi(){return this.wrapper.domainApi}get apiVersion(){return this.wrapper.apiVersion??fl.LEGACY}get onValidate(){var e,t;return(null==(t=null==(e=this.wrapper)?void 0:e.callbacks)?void 0:t.onValidate)?this.wrapper.callbacks.onValidate:()=>{}}get onError(){var e,t;return(null==(t=null==(e=this.wrapper)?void 0:e.callbacks)?void 0:t.onError)?this.wrapper.callbacks.onError:()=>{}}get onGetOptionsStart(){var e,t;return(null==(t=null==(e=this.wrapper)?void 0:e.callbacks)?void 0:t.onGetOptionsStart)?this.wrapper.callbacks.onGetOptionsStart:()=>{}}get onGetOptionsComplete(){var e,t;return(null==(t=null==(e=this.wrapper)?void 0:e.callbacks)?void 0:t.onGetOptionsComplete)?this.wrapper.callbacks.onGetOptionsComplete:()=>{}}set libConfig(e){var t;const n=null==(t=this.IDVCConfig)?void 0:t.licenseKey;this.wrapper.preferApiConfig?this.IDVCConfig={...this.IDVCConfig,...e,...Ns(this.wrapper),...this.wrapper.callbacks}:this.IDVCConfig={...this.IDVCConfig,...e,...As(this.wrapper),...this.wrapper.callbacks},n&&(this.IDVCConfig.licenseKey=n)}get libConfig(){return this.IDVCConfig||{}}get cssStylesConfig(){return this.cssStyles}get cssVariablesConfig(){return this.cssVariables}get showQrCodeConfig(){return this.showQrCode}get mountElement(){return this.wrapper.el||"videoCapturingEl"}get demoMode(){return this.wrapper.demoMode||!1}get isAuth(){return this.wrapper.isAuth||!1}get faceOnly(){return this.wrapper.faceOnly||!1}get qrCodeLinkOrigin(){return this.wrapper.qrCodeLinkOrigin||"https://diveonline.idscan.net"}get IDVCDownloadVersion(){return e=this.wrapper.IDVCDownloadVersion||"",ms(e)&&/^([1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$/.test(e)?this.wrapper.IDVCDownloadVersion:"latest";var e}}class xs extends es{constructor(e){super(`Failed to load IDVC from ${e}`),this.name="LibraryLoadError",this.header="Unable to Load the Verification Module",this.content="Please check your internet connection and try again"}}const ks={back:[_l.DL,_l.InternationalId],mrz:[_l.PassportCard,_l.GreenCard,_l.Passport,_l.EmploymentAuthorization],pdf:[_l.DL,_l.InternationalId]},Rs=(e,t)=>{var n;const o=t.find(e=>Object.keys(ks).includes(e.type));if(!o)return!1;return(null==(n=ks[o.type])?void 0:n.some(t=>t===e))??!1},Ds=(e,t)=>{const n=t.some(e=>"mrz"===e.type);if(e===_l.Passport&&n)return!0;return!!t.find(e=>"front"===e.type)},Ls=new WeakMap;class Bs{constructor(){this.injectedNodes=[],this.cleanBase64=e=>{if(!e||!Nl(e))return"";const t=e.split(/:image\/\w+;base64,/);return t.length>0?t.at(-1)??"":""},this.validationModel=e=>{var t;const n=e.documentType===_l.Passport,o=(()=>{const t=e.steps.find(e=>"pdf"===e.type||"mrz"===e.type||"back"===e.type),o=(null==t?void 0:t.mrzText)||(null==t?void 0:t.trackString)||"";return n?{img:"",trackString:o}:{img:(null==t?void 0:t.img)||"",trackString:o}})();return{frontImageBase64:this.cleanBase64((()=>{var t;if(n){const t=e.steps.find(e=>"mrz"===e.type);if(t)return t.img}return null==(t=e.steps.find(e=>"front"===e.type))?void 0:t.img})()),backOrSecondImageBase64:this.cleanBase64(null==o?void 0:o.img),faceImageBase64:this.cleanBase64(null==(t=e.steps.find(e=>"face"===e.type))?void 0:t.img),trackString:o.trackString,ssn:"",verifyFace:e.steps.some(e=>"face"===e.type),documentType:e.documentType,captureMethod:e.steps.reduce((e,t)=>`${e}${Number(t.isAuto??!1)}`,""),userAgent:window.navigator.userAgent,frontEndMetadata:e.metaData,isBackOrSecondImageProcessingEnabled:Rs(e.documentType,e.steps),isOcrEnabled:Ds(e.documentType,e.steps)}}}async initializeLibrary(e,t,n){if(!this.library){if(e)await this.loadFromCDN(t);else{if(!n)throw new Error("IDVCModule must be provided when not loading from CDN");this.loadFromNodeModules(n)}this.postInitialize()}}loadFromNodeModules(e){this.library=new e(this.IdvcConfig)}async loadFromCDN(e){const t=`https://neurons.cdn.idscan.net/${e}-next/idvc.js`,n=document.createElement("script");n.src=t,n.async=!0;const o=await new Promise((e,o)=>{n.addEventListener("load",()=>e(window.IDVC)),n.addEventListener("error",()=>o(new xs(t))),document.body.append(n)}).catch(e=>{throw n.remove(),e});if(!o)throw n.remove(),new xs(t);this.injectedNodes.push(n),this.library=new o(this.IdvcConfig)}get initialized(){return!!this.library}get version(){return this.library.version}set configs({IdvcConfig:e,CSSStylesConfig:t,CSSVariablesConfig:n}){this.IdvcConfig=e,this.CSSStylesConfig=t,this.CSSVariablesConfig=n}set loading(e){this.library&&this.library.showSpinner(e)}postInitialize(){const e=(e,t)=>{const n=document.createElement("style");n.id=e,n.textContent=t??"",document.head.append(n),this.injectedNodes.push(n)};e("onboarding-css-variables",this.CSSVariablesConfig),e("onboarding-css-config",this.CSSStylesConfig)}destroy(){this.injectedNodes.forEach(e=>e.remove()),this.injectedNodes=[]}reloadComponent(e){this.library.reloadComponent(e)}updateDocumentTypes(e){this.library.updateDocumentTypes(e)}restart(){this.library.resetAllSteps()}showLoader(e,t,n){var o;null==(o=this.library)||o.showLoader(e,t,n)}mixSubmit(e,t){const n=this.IdvcConfig[e],o=n&&Ls.has(n)?Ls.get(n):n,r=e=>{if(o){Promise.resolve(o(e)).then(()=>{t(this.validationModel(e))}).catch(()=>{t(this.validationModel(e))})}else t(this.validationModel(e))};Ls.set(r,o),this.IdvcConfig[e]=r}}const Os={apiKeys:["scheduling","userActivation","geolocation","webkitTemporaryStorage","webkitPersistentStorage","getGamepads","javaEnabled","sendBeacon","vibrate","clipboard","credentials","keyboard","managed","mediaDevices","storage","serviceWorker","virtualKeyboard","wakeLock","ink","hid","locks","mediaCapabilities","mediaSession","presentation","serial","usb","windowControlsOverlay","xr","userAgentData","canShare","share","clearAppBadge","getBattery","getUserMedia","requestMIDIAccess","requestMediaKeySystemAccess","setAppBadge","webkitGetUserMedia","getInstalledRelatedApps","registerProtocolHandler","unregisterProtocolHandler"]};function Ps(){const e=navigator.language;if(e&&window.Intl){const t=new Intl.DateTimeFormat(e,{dateStyle:"full",timeStyle:"long"}),{calendar:n,numberingSystem:o}=t.resolvedOptions(),{weekInfo:r,collations:i}=new Intl.Locale(e);return{locale:e,calendar:n,numberingSystem:o,weekInfo:r,collations:i}}return{}}function Fs(){const{userAgent:e,cookieEnabled:t,platform:n,hardwareConcurrency:o,languages:r}=navigator;return{userAgent:e,cookieEnabled:t,platform:n,hardwareConcurrency:o,languages:r}}async function Us(e=""){if(window.crypto){const t=(new TextEncoder).encode(e),n=crypto.subtle||crypto.webkitSubtle,o=await n.digest("SHA-256",t);return Array.from(new Uint8Array(o)).map(e=>e.toString(16).padStart(2,"0")).join("")}return e}const zs={fonts:JSON.parse('[".Aqua Kana",".Helvetica LT MM",".Times LT MM","18thCentury","8514oem","AR BERKLEY","AR JULIAN","AR PL UKai CN","AR PL UMing CN","AR PL UMing HK","AR PL UMing TW","AR PL UMing TW MBE","Aakar","Abadi MT Condensed Extra Bold","Abadi MT Condensed Light","Abyssinica SIL","AcmeFont","Adobe Arabic","Agency FB","Aharoni","Aharoni Bold","Al Bayan","Al Bayan Bold","Al Bayan Plain","Al Nile","Al Tarikh","Aldhabi","Alfredo","Algerian","Alien Encounters","Almonte Snow","American Typewriter","American Typewriter Bold","American Typewriter Condensed","American Typewriter Light","Amethyst","Andale Mono","Andale Mono Version","Andalus","Angsana New","AngsanaUPC","Ani","AnjaliOldLipi","Aparajita","Apple Braille","Apple Braille Outline 6 Dot","Apple Braille Outline 8 Dot","Apple Braille Pinpoint 6 Dot","Apple Braille Pinpoint 8 Dot","Apple Chancery","Apple Color Emoji","Apple LiGothic Medium","Apple LiSung Light","Apple SD Gothic Neo","Apple SD Gothic Neo Regular","Apple SD GothicNeo ExtraBold","Apple Symbols","AppleGothic","AppleGothic Regular","AppleMyungjo","AppleMyungjo Regular","AquaKana","Arabic Transparent","Arabic Typesetting","Arial","Arial Baltic","Arial Black","Arial Bold","Arial Bold Italic","Arial CE","Arial CYR","Arial Greek","Arial Hebrew","Arial Hebrew Bold","Arial Italic","Arial Narrow","Arial Narrow Bold","Arial Narrow Bold Italic","Arial Narrow Italic","Arial Rounded Bold","Arial Rounded MT Bold","Arial TUR","Arial Unicode MS","ArialHB","Arimo","Asimov","Autumn","Avenir","Avenir Black","Avenir Book","Avenir Next","Avenir Next Bold","Avenir Next Condensed","Avenir Next Condensed Bold","Avenir Next Demi Bold","Avenir Next Heavy","Avenir Next Regular","Avenir Roman","Ayuthaya","BN Jinx","BN Machine","BOUTON International Symbols","Baby Kruffy","Baghdad","Bahnschrift","Balthazar","Bangla MN","Bangla MN Bold","Bangla Sangam MN","Bangla Sangam MN Bold","Baskerville","Baskerville Bold","Baskerville Bold Italic","Baskerville Old Face","Baskerville SemiBold","Baskerville SemiBold Italic","Bastion","Batang","BatangChe","Bauhaus 93","Beirut","Bell MT","Bell MT Bold","Bell MT Italic","Bellerose","Berlin Sans FB","Berlin Sans FB Demi","Bernard MT Condensed","BiauKai","Big Caslon","Big Caslon Medium","Birch Std","Bitstream Charter","Bitstream Vera Sans","Blackadder ITC","Blackoak Std","Bobcat","Bodoni 72","Bodoni MT","Bodoni MT Black","Bodoni MT Poster Compressed","Bodoni Ornaments","BolsterBold","Book Antiqua","Book Antiqua Bold","Bookman Old Style","Bookman Old Style Bold","Bookshelf Symbol 7","Borealis","Bradley Hand","Bradley Hand ITC","Braggadocio","Brandish","Britannic Bold","Broadway","Browallia New","BrowalliaUPC","Brush Script","Brush Script MT","Brush Script MT Italic","Brush Script Std","Brussels","Calibri","Calibri Bold","Calibri Light","Californian FB","Calisto MT","Calisto MT Bold","Calligraphic","Calvin","Cambria","Cambria Bold","Cambria Math","Candara","Candara Bold","Candles","Carrois Gothic SC","Castellar","Centaur","Century","Century Gothic","Century Gothic Bold","Century Schoolbook","Century Schoolbook Bold","Century Schoolbook L","Chalkboard","Chalkboard Bold","Chalkboard SE","Chalkboard SE Bold","ChalkboardBold","Chalkduster","Chandas","Chaparral Pro","Chaparral Pro Light","Charlemagne Std","Charter","Chilanka","Chiller","Chinyen","Clarendon","Cochin","Cochin Bold","Colbert","Colonna MT","Comic Sans MS","Comic Sans MS Bold","Commons","Consolas","Consolas Bold","Constantia","Constantia Bold","Coolsville","Cooper Black","Cooper Std Black","Copperplate","Copperplate Bold","Copperplate Gothic Bold","Copperplate Light","Corbel","Corbel Bold","Cordia New","CordiaUPC","Corporate","Corsiva","Corsiva Hebrew","Corsiva Hebrew Bold","Courier","Courier 10 Pitch","Courier Bold","Courier New","Courier New Baltic","Courier New Bold","Courier New CE","Courier New Italic","Courier Oblique","Cracked Johnnie","Creepygirl","Curlz MT","Cursor","Cutive Mono","DFKai-SB","DIN Alternate","DIN Condensed","Damascus","Damascus Bold","Dancing Script","DaunPenh","David","Dayton","DecoType Naskh","Deja Vu","DejaVu LGC Sans","DejaVu Sans","DejaVu Sans Mono","DejaVu Serif","Deneane","Desdemona","Detente","Devanagari MT","Devanagari MT Bold","Devanagari Sangam MN","Didot","Didot Bold","Digifit","DilleniaUPC","Dingbats","Distant Galaxy","Diwan Kufi","Diwan Kufi Regular","Diwan Thuluth","Diwan Thuluth Regular","DokChampa","Dominican","Dotum","DotumChe","Droid Sans","Droid Sans Fallback","Droid Sans Mono","Dyuthi","Ebrima","Edwardian Script ITC","Elephant","Emmett","Engravers MT","Engravers MT Bold","Enliven","Eras Bold ITC","Estrangelo Edessa","Ethnocentric","EucrosiaUPC","Euphemia","Euphemia UCAS","Euphemia UCAS Bold","Eurostile","Eurostile Bold","Expressway Rg","FangSong","Farah","Farisi","Felix Titling","Fingerpop","Fixedsys","Flubber","Footlight MT Light","Forte","FrankRuehl","Frankfurter Venetian TT","Franklin Gothic Book","Franklin Gothic Book Italic","Franklin Gothic Medium","Franklin Gothic Medium Cond","Franklin Gothic Medium Italic","FreeMono","FreeSans","FreeSerif","FreesiaUPC","Freestyle Script","French Script MT","Futura","Futura Condensed ExtraBold","Futura Medium","GB18030 Bitmap","Gabriola","Gadugi","Garamond","Garamond Bold","Gargi","Garuda","Gautami","Gazzarelli","Geeza Pro","Geeza Pro Bold","Geneva","GenevaCY","Gentium","Gentium Basic","Gentium Book Basic","GentiumAlt","Georgia","Georgia Bold","Geotype TT","Giddyup Std","Gigi","Gill","Gill Sans","Gill Sans Bold","Gill Sans MT","Gill Sans MT Bold","Gill Sans MT Condensed","Gill Sans MT Ext Condensed Bold","Gill Sans MT Italic","Gill Sans Ultra Bold","Gill Sans Ultra Bold Condensed","Gisha","Glockenspiel","Gloucester MT Extra Condensed","Good Times","Goudy","Goudy Old Style","Goudy Old Style Bold","Goudy Stout","Greek Diner Inline TT","Gubbi","Gujarati MT","Gujarati MT Bold","Gujarati Sangam MN","Gujarati Sangam MN Bold","Gulim","GulimChe","GungSeo Regular","Gungseouche","Gungsuh","GungsuhChe","Gurmukhi","Gurmukhi MN","Gurmukhi MN Bold","Gurmukhi MT","Gurmukhi Sangam MN","Gurmukhi Sangam MN Bold","Haettenschweiler","Hand Me Down S (BRK)","Hansen","Harlow Solid Italic","Harrington","Harvest","HarvestItal","Haxton Logos TT","HeadLineA Regular","HeadlineA","Heavy Heap","Hei","Hei Regular","Heiti SC","Heiti SC Light","Heiti SC Medium","Heiti TC","Heiti TC Light","Heiti TC Medium","Helvetica","Helvetica Bold","Helvetica CY Bold","Helvetica CY Plain","Helvetica LT Std","Helvetica Light","Helvetica Neue","Helvetica Neue Bold","Helvetica Neue Medium","Helvetica Oblique","HelveticaCY","HelveticaNeueLT Com 107 XBlkCn","Herculanum","High Tower Text","Highboot","Hiragino Kaku Gothic Pro W3","Hiragino Kaku Gothic Pro W6","Hiragino Kaku Gothic ProN W3","Hiragino Kaku Gothic ProN W6","Hiragino Kaku Gothic Std W8","Hiragino Kaku Gothic StdN W8","Hiragino Maru Gothic Pro W4","Hiragino Maru Gothic ProN W4","Hiragino Mincho Pro W3","Hiragino Mincho Pro W6","Hiragino Mincho ProN W3","Hiragino Mincho ProN W6","Hiragino Sans GB W3","Hiragino Sans GB W6","Hiragino Sans W0","Hiragino Sans W1","Hiragino Sans W2","Hiragino Sans W3","Hiragino Sans W4","Hiragino Sans W5","Hiragino Sans W6","Hiragino Sans W7","Hiragino Sans W8","Hiragino Sans W9","Hobo Std","Hoefler Text","Hoefler Text Black","Hoefler Text Ornaments","Hollywood Hills","Hombre","Huxley Titling","ITC Stone Serif","ITF Devanagari","ITF Devanagari Marathi","ITF Devanagari Medium","Impact","Imprint MT Shadow","InaiMathi","Induction","Informal Roman","Ink Free","IrisUPC","Iskoola Pota","Italianate","Jamrul","JasmineUPC","Javanese Text","Jokerman","Juice ITC","KacstArt","KacstBook","KacstDecorative","KacstDigital","KacstFarsi","KacstLetter","KacstNaskh","KacstOffice","KacstOne","KacstPen","KacstPoster","KacstQurn","KacstScreen","KacstTitle","KacstTitleL","Kai","Kai Regular","KaiTi","Kailasa","Kailasa Regular","Kaiti SC","Kaiti SC Black","Kalapi","Kalimati","Kalinga","Kannada MN","Kannada MN Bold","Kannada Sangam MN","Kannada Sangam MN Bold","Kartika","Karumbi","Kedage","Kefa","Kefa Bold","Keraleeyam","Keyboard","Khmer MN","Khmer MN Bold","Khmer OS","Khmer OS System","Khmer Sangam MN","Khmer UI","Kinnari","Kino MT","KodchiangUPC","Kohinoor Bangla","Kohinoor Devanagari","Kohinoor Telugu","Kokila","Kokonor","Kokonor Regular","Kozuka Gothic Pr6N B","Kristen ITC","Krungthep","KufiStandardGK","KufiStandardGK Regular","Kunstler Script","Laksaman","Lao MN","Lao Sangam MN","Lao UI","LastResort","Latha","Leelawadee","Letter Gothic Std","LetterOMatic!","Levenim MT","LiHei Pro","LiSong Pro","Liberation Mono","Liberation Sans","Liberation Sans Narrow","Liberation Serif","Likhan","LilyUPC","Limousine","Lithos Pro Regular","LittleLordFontleroy","Lohit Assamese","Lohit Bengali","Lohit Devanagari","Lohit Gujarati","Lohit Gurmukhi","Lohit Hindi","Lohit Kannada","Lohit Malayalam","Lohit Odia","Lohit Punjabi","Lohit Tamil","Lohit Tamil Classical","Lohit Telugu","Loma","Lucida Blackletter","Lucida Bright","Lucida Bright Demibold","Lucida Bright Demibold Italic","Lucida Bright Italic","Lucida Calligraphy","Lucida Calligraphy Italic","Lucida Console","Lucida Fax","Lucida Fax Demibold","Lucida Fax Regular","Lucida Grande","Lucida Grande Bold","Lucida Handwriting","Lucida Handwriting Italic","Lucida Sans","Lucida Sans Demibold Italic","Lucida Sans Typewriter","Lucida Sans Typewriter Bold","Lucida Sans Unicode","Luminari","Luxi Mono","MS Gothic","MS Mincho","MS Outlook","MS PGothic","MS PMincho","MS Reference Sans Serif","MS Reference Specialty","MS Sans Serif","MS Serif","MS UI Gothic","MT Extra","MV Boli","Mael","Magneto","Maiandra GD","Malayalam MN","Malayalam MN Bold","Malayalam Sangam MN","Malayalam Sangam MN Bold","Malgun Gothic","Mallige","Mangal","Manorly","Marion","Marion Bold","Marker Felt","Marker Felt Thin","Marlett","Martina","Matura MT Script Capitals","Meera","Meiryo","Meiryo Bold","Meiryo UI","MelodBold","Menlo","Menlo Bold","Mesquite Std","Microsoft","Microsoft Himalaya","Microsoft JhengHei","Microsoft JhengHei UI","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Sans Serif","Microsoft Tai Le","Microsoft Tai Le Bold","Microsoft Uighur","Microsoft YaHei","Microsoft YaHei UI","Microsoft Yi Baiti","Minerva","MingLiU","MingLiU-ExtB","MingLiU_HKSCS","Minion Pro","Miriam","Mishafi","Mishafi Gold","Mistral","Modern","Modern No. 20","Monaco","Mongolian Baiti","Monospace","Monotype Corsiva","Monotype Sorts","MoolBoran","Moonbeam","MotoyaLMaru","Mshtakan","Mshtakan Bold","Mukti Narrow","Muna","Myanmar MN","Myanmar MN Bold","Myanmar Sangam MN","Myanmar Text","Mycalc","Myriad Arabic","Myriad Hebrew","Myriad Pro","NISC18030","NSimSun","Nadeem","Nadeem Regular","Nakula","Nanum Barun Gothic","Nanum Gothic","Nanum Myeongjo","NanumBarunGothic","NanumGothic","NanumGothic Bold","NanumGothicCoding","NanumMyeongjo","NanumMyeongjo Bold","Narkisim","Nasalization","Navilu","Neon Lights","New Peninim MT","New Peninim MT Bold","News Gothic MT","News Gothic MT Bold","Niagara Engraved","Niagara Solid","Nimbus Mono L","Nimbus Roman No9 L","Nimbus Sans L","Nimbus Sans L Condensed","Nina","Nirmala UI","Nirmala.ttf","Norasi","Noteworthy","Noteworthy Bold","Noto Color Emoji","Noto Emoji","Noto Mono","Noto Naskh Arabic","Noto Nastaliq Urdu","Noto Sans","Noto Sans Armenian","Noto Sans Bengali","Noto Sans CJK","Noto Sans Canadian Aboriginal","Noto Sans Cherokee","Noto Sans Devanagari","Noto Sans Ethiopic","Noto Sans Georgian","Noto Sans Gujarati","Noto Sans Gurmukhi","Noto Sans Hebrew","Noto Sans JP","Noto Sans KR","Noto Sans Kannada","Noto Sans Khmer","Noto Sans Lao","Noto Sans Malayalam","Noto Sans Myanmar","Noto Sans Oriya","Noto Sans SC","Noto Sans Sinhala","Noto Sans Symbols","Noto Sans TC","Noto Sans Tamil","Noto Sans Telugu","Noto Sans Thai","Noto Sans Yi","Noto Serif","Notram","November","Nueva Std","Nueva Std Cond","Nyala","OCR A Extended","OCR A Std","Old English Text MT","OldeEnglish","Onyx","OpenSymbol","OpineHeavy","Optima","Optima Bold","Optima Regular","Orator Std","Oriya MN","Oriya MN Bold","Oriya Sangam MN","Oriya Sangam MN Bold","Osaka","Osaka-Mono","OsakaMono","PCMyungjo Regular","PCmyoungjo","PMingLiU","PMingLiU-ExtB","PR Celtic Narrow","PT Mono","PT Sans","PT Sans Bold","PT Sans Caption Bold","PT Sans Narrow Bold","PT Serif","Padauk","Padauk Book","Padmaa","Pagul","Palace Script MT","Palatino","Palatino Bold","Palatino Linotype","Palatino Linotype Bold","Papyrus","Papyrus Condensed","Parchment","Parry Hotter","PenultimateLight","Perpetua","Perpetua Bold","Perpetua Titling MT","Perpetua Titling MT Bold","Phetsarath OT","Phosphate","Phosphate Inline","Phosphate Solid","PhrasticMedium","PilGi Regular","Pilgiche","PingFang HK","PingFang SC","PingFang TC","Pirate","Plantagenet Cherokee","Playbill","Poor Richard","Poplar Std","Pothana2000","Prestige Elite Std","Pristina","Purisa","QuiverItal","Raanana","Raanana Bold","Raavi","Rachana","Rage Italic","RaghuMalayalam","Ravie","Rekha","Roboto","Rockwell","Rockwell Bold","Rockwell Condensed","Rockwell Extra Bold","Rockwell Italic","Rod","Roland","Rondalo","Rosewood Std Regular","RowdyHeavy","Russel Write TT","SF Movie Poster","STFangsong","STHeiti","STIXGeneral","STIXGeneral-Bold","STIXGeneral-Regular","STIXIntegralsD","STIXIntegralsD-Bold","STIXIntegralsSm","STIXIntegralsSm-Bold","STIXIntegralsUp","STIXIntegralsUp-Bold","STIXIntegralsUp-Regular","STIXIntegralsUpD","STIXIntegralsUpD-Bold","STIXIntegralsUpD-Regular","STIXIntegralsUpSm","STIXIntegralsUpSm-Bold","STIXNonUnicode","STIXNonUnicode-Bold","STIXSizeFiveSym","STIXSizeFiveSym-Regular","STIXSizeFourSym","STIXSizeFourSym-Bold","STIXSizeOneSym","STIXSizeOneSym-Bold","STIXSizeThreeSym","STIXSizeThreeSym-Bold","STIXSizeTwoSym","STIXSizeTwoSym-Bold","STIXVariants","STIXVariants-Bold","STKaiti","STSong","STXihei","SWGamekeys MT","Saab","Sahadeva","Sakkal Majalla","Salina","Samanata","Samyak Devanagari","Samyak Gujarati","Samyak Malayalam","Samyak Tamil","Sana","Sana Regular","Sans","Sarai","Sathu","Savoye LET Plain:1.0","Sawasdee","Script","Script MT Bold","Segoe MDL2 Assets","Segoe Print","Segoe Pseudo","Segoe Script","Segoe UI","Segoe UI Emoji","Segoe UI Historic","Segoe UI Semilight","Segoe UI Symbol","Serif","Shonar Bangla","Showcard Gothic","Shree Devanagari 714","Shruti","SignPainter-HouseScript","Silom","SimHei","SimSun","SimSun-ExtB","Simplified Arabic","Simplified Arabic Fixed","Sinhala MN","Sinhala MN Bold","Sinhala Sangam MN","Sinhala Sangam MN Bold","Sitka","Skia","Skia Regular","Skinny","Small Fonts","Snap ITC","Snell Roundhand","Snowdrift","Songti SC","Songti SC Black","Songti TC","Source Code Pro","Splash","Standard Symbols L","Stencil","Stencil Std","Stephen","Sukhumvit Set","Suruma","Sylfaen","Symbol","Symbole","System","System Font","TAMu_Kadambri","TAMu_Kalyani","TAMu_Maduram","TSCu_Comic","TSCu_Paranar","TSCu_Times","Tahoma","Tahoma Negreta","TakaoExGothic","TakaoExMincho","TakaoGothic","TakaoMincho","TakaoPGothic","TakaoPMincho","Tamil MN","Tamil MN Bold","Tamil Sangam MN","Tamil Sangam MN Bold","Tarzan","Tekton Pro","Tekton Pro Cond","Tekton Pro Ext","Telugu MN","Telugu MN Bold","Telugu Sangam MN","Telugu Sangam MN Bold","Tempus Sans ITC","Terminal","Terminator Two","Thonburi","Thonburi Bold","Tibetan Machine Uni","Times","Times Bold","Times New Roman","Times New Roman Baltic","Times New Roman Bold","Times New Roman Italic","Times Roman","Tlwg Mono","Tlwg Typewriter","Tlwg Typist","Tlwg Typo","TlwgMono","TlwgTypewriter","Toledo","Traditional Arabic","Trajan Pro","Trattatello","Trebuchet MS","Trebuchet MS Bold","Tunga","Tw Cen MT","Tw Cen MT Bold","Tw Cen MT Italic","URW Bookman L","URW Chancery L","URW Gothic L","URW Palladio L","Ubuntu","Ubuntu Condensed","Ubuntu Mono","Ukai","Ume Gothic","Ume Mincho","Ume P Gothic","Ume P Mincho","Ume UI Gothic","Uming","Umpush","UnBatang","UnDinaru","UnDotum","UnGraphic","UnGungseo","UnPilgi","Untitled1","Urdu Typesetting","Uroob","Utkal","Utopia","Utsaah","Valken","Vani","Vemana2000","Verdana","Verdana Bold","Vijaya","Viner Hand ITC","Vivaldi","Vivian","Vladimir Script","Vrinda","Waree","Waseem","Waverly","Webdings","WenQuanYi Bitmap Song","WenQuanYi Micro Hei","WenQuanYi Micro Hei Mono","WenQuanYi Zen Hei","Whimsy TT","Wide Latin","Wingdings","Wingdings 2","Wingdings 3","Woodcut","X-Files","Year supply of fairy cakes","Yu Gothic","Yu Mincho","Yuppy SC","Yuppy SC Regular","Yuppy TC","Yuppy TC Regular","Zapf Dingbats","Zapfino","Zawgyi-One","gargi","lklug","mry_KacstQurn","ori1Uni"]')},Gs="40px",Hs="IDScan2023",Vs="sans-serif",js=document.body,Ws={};async function qs(){!function(){const e=document.createElement("span");e.style.fontSize=Gs,e.textContent=Hs,e.style.fontFamily=Vs,js.appendChild(e),Ws[Vs]={width:e.offsetWidth,height:e.offsetHeight},js.removeChild(e)}();const e=new Array(zs.fonts.length).fill(!1),t=new DocumentFragment,n=zs.fonts.map(async e=>{const t=document.createElement("span");return t.style.fontSize=Gs,t.textContent=Hs,t.style.fontFamily=`"${e}",${Vs}`,t});return await Promise.all(n).then(n=>{n.forEach(e=>t.appendChild(e));const o=document.createElement("div");js.appendChild(o),o.append(t),Array.from(o.children).forEach((t,n)=>{const o=t.offsetWidth!==Ws[Vs].width||t.offsetHeight!==Ws[Vs].height;e[n]=o}),o.remove()}),e}const Ks={videoCodecs:["video/mp4; codecs=avc1.42E01E","video/mp4; codecs=mp4a.40.2","video/webm; codecs=vorbis","video/webm; codecs=vp8","video/webm; codecs=vp9","video/ogg; codecs=vorbis","video/ogg; codecs=theora","video/mp4; codecs=hev1","application/vnd.apple.mpegurl; codecs=avc1.42E01E, mp4a.40.2"],audioCodecs:["audio/mpeg","audio/aac","audio/alac","audio/flac","audio/ogg; codecs=vorbis","audio/ogg; codecs=opus","audio/flac","audio/webm; codecs=vorbis","audio/webm; codecs=opus","audio/mp4"],apiKeys:["history","speechSynthesis","webkitSpeechRecognition","IntersectionObserver","ResizeObserver","PushManager","TextTrack","postMessage","structuredClone","worker","SharedWorker","ServiceWorker"],inputTypes:["color","date","datetime-local","datetime","email","month","number","password","search","tel","text","time","url","week","file","range"],inputAvailableAttributes:["accept","alt","autocomplete","autofocus","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","value","width"]};function Xs(){const e=document.createElement("audio");return Ks.audioCodecs.reduce((t,n)=>(t[n]=!!e.canPlayType(n),t),{})}function Ys(){const e=document.createElement("input");return{inputTypes:Ks.inputTypes.reduce((t,n)=>(e.setAttribute("type",n),t[n]=e.type===n,t),{}),inputAvailableAttributes:Ks.inputAvailableAttributes.reduce((t,n)=>(t[n]=n in e,t),{})}}const $s={WebGLConstants:["ALIASED_LINE_WIDTH_RANGE","ALIASED_POINT_SIZE_RANGE","ALPHA_BITS","BLUE_BITS","DEPTH_BITS","GREEN_BITS","MAX_COMBINED_TEXTURE_IMAGE_UNITS","MAX_CUBE_MAP_TEXTURE_SIZE","MAX_FRAGMENT_UNIFORM_VECTORS","MAX_RENDERBUFFER_SIZE","MAX_TEXTURE_IMAGE_UNITS","MAX_TEXTURE_SIZE","MAX_VARYING_VECTORS","MAX_VERTEX_ATTRIBS","MAX_VERTEX_TEXTURE_IMAGE_UNITS","MAX_VERTEX_UNIFORM_VECTORS","MAX_VIEWPORT_DIMS","RED_BITS","RENDERER","SHADING_LANGUAGE_VERSION","STENCIL_BITS","VERSION"],WebGL2Constants:["MAX_VARYING_COMPONENTS","MAX_VERTEX_UNIFORM_COMPONENTS","MAX_VERTEX_UNIFORM_BLOCKS","MAX_VERTEX_OUTPUT_COMPONENTS","MAX_PROGRAM_TEXEL_OFFSET","MAX_3D_TEXTURE_SIZE","MAX_ARRAY_TEXTURE_LAYERS","MAX_COLOR_ATTACHMENTS","MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS","MAX_COMBINED_UNIFORM_BLOCKS","MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS","MAX_DRAW_BUFFERS","MAX_ELEMENT_INDEX","MAX_FRAGMENT_INPUT_COMPONENTS","MAX_FRAGMENT_UNIFORM_COMPONENTS","MAX_FRAGMENT_UNIFORM_BLOCKS","MAX_SAMPLES","MAX_SERVER_WAIT_TIMEOUT","MAX_TEXTURE_LOD_BIAS","MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS","MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS","MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS","MAX_UNIFORM_BLOCK_SIZE","MAX_UNIFORM_BUFFER_BINDINGS","MIN_PROGRAM_TEXEL_OFFSET","UNIFORM_BUFFER_OFFSET_ALIGNMENT"],Categories:{uniformBuffers:["MAX_UNIFORM_BUFFER_BINDINGS","MAX_UNIFORM_BLOCK_SIZE","UNIFORM_BUFFER_OFFSET_ALIGNMENT","MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS","MAX_COMBINED_UNIFORM_BLOCKS","MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS"],debugRendererInfo:["UNMASKED_VENDOR_WEBGL","UNMASKED_RENDERER_WEBGL"],fragmentShader:["MAX_FRAGMENT_UNIFORM_VECTORS","MAX_TEXTURE_IMAGE_UNITS","MAX_FRAGMENT_INPUT_COMPONENTS","MAX_FRAGMENT_UNIFORM_COMPONENTS","MAX_FRAGMENT_UNIFORM_BLOCKS","FRAGMENT_SHADER_BEST_FLOAT_PRECISION","MIN_PROGRAM_TEXEL_OFFSET","MAX_PROGRAM_TEXEL_OFFSET"],frameBuffer:["MAX_DRAW_BUFFERS","MAX_COLOR_ATTACHMENTS","MAX_SAMPLES","RGBA_BITS","DEPTH_STENCIL_BITS","MAX_RENDERBUFFER_SIZE","MAX_VIEWPORT_DIMS"],rasterizer:["ALIASED_LINE_WIDTH_RANGE","ALIASED_POINT_SIZE_RANGE"],textures:["MAX_TEXTURE_SIZE","MAX_CUBE_MAP_TEXTURE_SIZE","MAX_COMBINED_TEXTURE_IMAGE_UNITS","MAX_TEXTURE_MAX_ANISOTROPY_EXT","MAX_3D_TEXTURE_SIZE","MAX_ARRAY_TEXTURE_LAYERS","MAX_TEXTURE_LOD_BIAS"],transformFeedback:["MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS","MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS","MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS"],vertexShader:["MAX_VARYING_VECTORS","MAX_VERTEX_ATTRIBS","MAX_VERTEX_TEXTURE_IMAGE_UNITS","MAX_VERTEX_UNIFORM_VECTORS","MAX_VERTEX_UNIFORM_COMPONENTS","MAX_VERTEX_UNIFORM_BLOCKS","MAX_VERTEX_OUTPUT_COMPONENTS","MAX_VARYING_COMPONENTS","VERTEX_SHADER_BEST_FLOAT_PRECISION"],webGLContextInfo:["CONTEXT","ANTIALIAS","DIRECT_3D","MAJOR_PERFORMANCE_CAVEAT","RENDERER","SHADING_LANGUAGE_VERSION","VERSION"]}};function Zs(e){try{const t=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic");return e.getParameter(t.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}catch(t){return void console.error(t)}}function Qs(e){try{const t=e.getExtension("WEBGL_draw_buffers")||e.getExtension("WEBKIT_WEBGL_draw_buffers")||e.getExtension("MOZ_WEBGL_draw_buffers");return e.getParameter(t.MAX_DRAW_BUFFERS_WEBGL)}catch(t){return}}function Js(e){const t={};try{return Object.keys(e).forEach(n=>{const o=e[n];t[n]={precision:o.precision,rangeMax:o.rangeMax,rangeMin:o.rangeMin}}),t}catch(n){return}}function ec(e,t){const n=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT"],o={};try{return n.forEach(n=>{o[n]=e.getShaderPrecisionFormat(e[t],e[n])}),o}catch(r){return}}function tc(e,t){try{const n=e.getExtension("WEBGL_debug_renderer_info");return e.getParameter(n[t])}catch(n){return}}function nc(e){return e?[...new Set(Object.values(e).filter(e=>e&&"string"!=typeof e).flat().map(e=>Number(e)||0))].sort((e,t)=>e-t):[]}function oc(e){var t;const n=[];let o={};const r=/^webgl$/.test(e)&&"WebGLRenderingContext"in window,i=/^webgl2$/.test(e)&&"WebGLRenderingContext"in window;if(!r&&!i)return n.push("not supported"),[o,n];let a,l,s,c;try{if(a=document.createElement("canvas"),l=a.getContext(e,{failIfMajorPerformanceCaveat:!0}),!l&&(s=!0,l=a.getContext(e),!l))throw new Error("context of type "+typeof l)}catch(h){return console.error(h),n.push("context blocked"),[o,n]}try{c=l.getSupportedExtensions()}catch(m){console.error(m),n.push("extensions blocked")}let d={};try{const n=Js(ec(l,"VERTEX_SHADER")),o=Js(ec(l,"FRAGMENT_SHADER"));d={ANTIALIAS:null==(t=null==l?void 0:l.getContextAttributes())?void 0:t.antialias,CONTEXT:e,MAJOR_PERFORMANCE_CAVEAT:s,MAX_TEXTURE_MAX_ANISOTROPY_EXT:Zs(l),MAX_DRAW_BUFFERS_WEBGL:Qs(l),VERTEX_SHADER:n,VERTEX_SHADER_BEST_FLOAT_PRECISION:Object.values(null==n?void 0:n.HIGH_FLOAT),FRAGMENT_SHADER:o,FRAGMENT_SHADER_BEST_FLOAT_PRECISION:Object.values(null==o?void 0:o.HIGH_FLOAT),UNMASKED_VENDOR_WEBGL:tc(l,"UNMASKED_VENDOR_WEBGL"),UNMASKED_RENDERER_WEBGL:tc(l,"UNMASKED_RENDERER_WEBGL")};[...$s.WebGLConstants,...i?$s.WebGL2Constants:[]].forEach(e=>{const t=null==l?void 0:l.getParameter(l[e]),n=t&&(t.constructor===Float32Array||t.constructor===Int32Array);d[e]=n?[...t]:t}),d.RGBA_BITS=[d.RED_BITS,d.GREEN_BITS,d.BLUE_BITS,d.ALPHA_BITS],d.DEPTH_STENCIL_BITS=[d.DEPTH_BITS,d.STENCIL_BITS],d.DIRECT_3D=/Direct3D|D3D(\d+)/.test(d.UNMASKED_RENDERER_WEBGL)}catch(m){console.error(m),n.push("parameters blocked")}const u=String([d.UNMASKED_VENDOR_WEBGL,d.UNMASKED_RENDERER_WEBGL]),f=function(e){if(!e)return"";const t=/(adreno|amd|apple|intel|llvm|mali|microsoft|nvidia|parallels|powervr|samsung|swiftshader|virtualbox|vmware)/i;let n;return n=/radeon/i.test(e)?"AMD":/geforce/i.test(e)?"NVIDIA":(t.exec(e)||[])[0]||"Other",n}(u),p={};return d&&Object.keys($s.Categories).forEach(e=>{const t=$s.Categories[e].reduce((e,t)=>(void 0!==d[t]&&(e[t]=d[t]),e),{});Object.keys(t).length&&(p[e]=t)}),o={gpuHash:d?[f,...nc(d)].join(":"):void 0,gpu:u,gpuBrand:f,...p,webGLExtensions:c},[o,n]}const rc={browserInfo:async function(){return{internationalizationInfo:Ps(),navigatorInfo:Fs(),availableNavigatorApiInfo:Os.apiKeys.reduce((e,t)=>(e[t]=!!window.navigator[t],e),{}),additionalApiInfo:["BatteryManager","NetworkInformation"].reduce((e,t)=>(e[t]=!!window.navigator[t],e),{})}},screenInfo:async function(){const{width:e,height:t,availWidth:n,availHeight:o,colorDepth:r,pixelDepth:i,orientation:a}=window.screen,{innerWidth:l,innerHeight:s,outerWidth:c,outerHeight:d}=window;return{width:e,height:t,availWidth:n,availHeight:o,colorDepth:r,pixelDepth:i,orientationAngle:a.angle,orientationType:a.type,innerWidth:l,innerHeight:s,outerWidth:c,outerHeight:d}},batteryInfo:async function(){if(null==navigator?void 0:navigator.getBattery){const{charging:e,chargingTime:t,dischargingTime:n,level:o}=await navigator.getBattery();return{charging:e,chargingTime:t,dischargingTime:n,level:o}}return{}},connectionInfo:async function(){if(navigator.connection){const{effectiveType:e,downlink:t,rtt:n,saveData:o,type:r,downlinkMax:i}=navigator.connection;return{effectiveType:e,downlink:t,rtt:n,saveData:o,type:r,downlinkMax:i}}return{}},canvasInfo:async function(){const e=document.createElement("canvas"),t=e.getContext("2d");t.canvas.width=500,t.fillStyle="rgb(255,0,255)",t.beginPath(),t.rect(20,20,150,100),t.fill(),t.stroke(),t.closePath(),t.beginPath(),t.fillStyle="rgb(0,255,255)",t.arc(50,50,50,0,2*Math.PI,!0),t.fill(),t.stroke(),t.closePath();const n="i9as..$#po((^@KbXrw!~cz#$%^@£éúöüà情報çõ能的Fr<🍏🍎🍐🍊🍋";return t.textBaseline="top",t.font="14px 'Arial'",t.textBaseline="alphabetic",t.fillStyle="rgb(255,5,5)",t.rotate(.03),t.fillText(n,4,17),t.fillStyle="#069",t.fillText(n,2,15),t.fillStyle="rgba(102, 204, 0, 0.7)",t.fillText(n,4,17),t.shadowBlur=8,t.shadowColor="red",t.fillRect(20,12,100,5),t.globalCompositeOperation="multiply",t.fillStyle="rgb(255,0,255)",t.beginPath(),t.arc(50,50,50,0,2*Math.PI,!0),t.closePath(),t.fill(),t.fillStyle="rgb(0,255,255)",t.beginPath(),t.arc(100,50,50,0,2*Math.PI,!0),t.closePath(),t.fill(),t.fillStyle="rgb(255,255,0)",t.beginPath(),t.arc(75,100,50,0,2*Math.PI,!0),t.closePath(),t.fill(),t.fillStyle="rgb(255,0,255)",t.arc(75,75,75,0,2*Math.PI,!0),t.arc(75,75,25,0,2*Math.PI,!0),t.fill("evenodd"),Us(e.toDataURL())},fontsInfo:async function(){return{availableFontsInfo:await qs()}},HTML5Info:async function(){return{audioInfo:Xs(),availableAPIInfo:Ks.apiKeys.reduce((e,t)=>(e[t]=!!window[t],e),{}),inputInfo:Ys()}},videoCodecsInfo:async function(){const e=document.createElement("video");return Ks.videoCodecs.reduce((t,n)=>(t[n]=e.canPlayType(n),t),{})},timeZoneInfo:async function(){var e,t;return window.Intl?null==(t=null==(e=Intl.DateTimeFormat())?void 0:e.resolvedOptions())?void 0:t.timeZone:""},webGLInfo:async function(){const e=await Promise.allSettled([oc("webgl"),oc("webgl2")]),[t,n]=e;return{webGL:{result:"rejected"!==t.status?t.value[0]:{},errors:"rejected"!==t.status?t.value[1]:[]},webGL2:{result:"rejected"!==n.status?n.value[0]:{},errors:"rejected"!==n.status?n.value[1]:[]}}},utils:{sha256:Us}},ic=async e=>(await Promise.allSettled(e)).map(e=>"fulfilled"===e.status?e.value:void 0),ac=async()=>({browserMetadata:await(async()=>{const[e,t,n,o]=await ic([rc.browserInfo(),rc.screenInfo(),rc.batteryInfo(),rc.connectionInfo()]),{sha256:r}=rc.utils,[i,a,l,s,c]=await ic([r(JSON.stringify(e)),r(JSON.stringify(await rc.canvasInfo())),r(JSON.stringify(await rc.fontsInfo())),r(JSON.stringify(await rc.HTML5Info())),r(JSON.stringify(await rc.webGLInfo()))]);return{navigatorInfo:null==e?void 0:e.navigatorInfo,screenInfo:t,batteryInfo:n,connectionInfo:o,browserInfo:i,canvasInfo:a,fontsInfo:l,html5Info:s,webGlInfo:c}})(),deviceMetadata:await(async()=>({timeZone:await rc.timeZoneInfo(),userLanguage:navigator.language}))()}),lc={[pl.SUCCESS]:"Verification complete!",[pl.FAIL]:"Validation failed!",[pl.INVALID_DATA]:"Data invalid!",[pl.ERROR]:"Something went wrong",[pl.COMPLETE]:"Request closed"},sc=({status:e})=>e===pl.SUCCESS?ul.SUCCESS:e===pl.ERROR?ul.PRIMARY:ul.DANGER,cc=({status:e})=>lc[e]||lc[pl.ERROR],dc=e=>{const{status:t,attemptsLeft:n,attemptsCount:o,invalidDataErrors:r,notificationType:i,code:a,message:l}=e;let s="";if((t===pl.FAIL&&n>0||t===pl.ERROR)&&(s="Please try again"),t===pl.INVALID_DATA&&(s=(e=>{const t=e.map(({code:e,message:t})=>"OCRError"===e?"Image may be blurry. Please try taking photo again in a different room or with different lighting.":t??"").filter(e=>!!e),n=t.map(e=>`<li class="idvc-modal__body__list__item">${Oi(e)}</li>`).join("");return`<ol class="idvc-modal__body__list ${1===t.length?"idvc-modal__body__list--no-numbers":""}">${n}</ol>`})(r)),t===pl.FAIL&&0===n&&o>0){const e=bl[i];s=`No more attempts can be made.<br>You have made all ${o}<br>of the allowed submissions.<br>Please have a new request link${e?`<br>${e}`:""}`}return a&&l&&(s=Oi(l)),s},uc=({status:e,isCompleted:t,attemptsLeft:n})=>{const o=!(e===pl.COMPLETE||e===pl.SUCCESS||t)&&n>0;return{tryAgain:o,complete:o}},fc=e=>{const t=(e=>{const{code:t="",message:n="",status:o,attemptsLeft:r=-1,attemptsCount:i=-1,invalidDataErrors:a=[],notificationType:l=0,isCompleted:s=!1}=e;return{code:t,message:n,status:(c=o,Ol(c)??Pl(c)??-1),isCompleted:s,attemptsLeft:r,attemptsCount:i,invalidDataErrors:a||[],notificationType:l};var c})(e);return{type:sc(t),header:cc(t),content:dc(t),buttons:uc(t)}},pc=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,hc=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,mc=()=>{const{userAgent:e}=navigator;return pc.test(e)||hc.test(e.slice(0,4))||["iPad Simulator","iPhone Simulator","iPad","iPhone"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document};var gc=Uo("<!> <!> <!>",1);function vc(e,t){dt(t,!0);const n=["HttpError","ValidationError","FaceAuthorizationError","LibraryLoadError"],o="Document has been submitted for processing",r="Please wait for the response",i=ac(),a=Es("embeddedAppConnectionId")||crypto.randomUUID(),l="true"===Es("qrCode");let s,c,d,u,f,p,h,m=!1;p=new Promise(e=>{h=e});let g=cn(null),v=cn(!1),y=cn(""),b=_n({open:!1,closable:!0,type:ul.PRIMARY,header:"",content:"",buttons:{tryAgain:!1,complete:!1}});Cl({get configs(){return s},get api(){return c},get lib(){return d},embeddedAppConnectionId:a}),Dn(()=>{t.idvcElement.classList.toggle("hidden-element",!!So(g))});const _=new AbortController;async function w(){await p,d.initialized?d.restart():await E()}async function S(){try{if(s=new Is(t.config),c=new hs(s.publicKey,s.domainApi,s.apiVersion),d=new Bs,s.validate(),s.onGetOptionsStart(),u=await c.getConfiguration(s.applicantId,s.domainId),s.onGetOptionsComplete(u),t.config.preferApiConfig||(u=function(e){if(!t.config.wrapperSettings)return e;const n=structuredClone(e),o=t.config.wrapperSettings;return Object.keys(o).forEach(e=>{void 0!==o[e]&&(n[e]=o[e])}),n}(u)),!(await M()))throw new Error("Applicant validation failed");u.showConsentForm&&dn(g,{bodyText:u.consentText,checkboxText:u.checkboxText},!0),await E(),b.open=!1,b.closable=!1,dn(y,s.applicantId,!0),dn(v,!(l||s.demoMode||!s.showQrCodeConfig||mc()),!0),l&&(c.longPollingRequest(`IsClosed/${s.applicantId}`,{method:"GET",signal:_.signal},()=>{var e;null==(e=document.getElementById(s.libConfig.el))||e.remove()}),c.longPollingRequest(`Open/${s.applicantId}`,{method:"POST",signal:_.signal},()=>{}))}catch(e){N(e)}}async function E(){if(s.parseFromWeb(u),d.configs={IdvcConfig:s.libConfig,CSSStylesConfig:s.cssStylesConfig,CSSVariablesConfig:s.cssVariablesConfig},d.mixSubmit("submit",T),"latest"===s.IDVCDownloadVersion&&s.libConfig.useCDN){const e=await c.getCurrentIdvcVersion();await d.initializeLibrary(s.libConfig.useCDN,e)}else await d.initializeLibrary(!!s.libConfig.useCDN,s.IDVCDownloadVersion,t.IDVCModule)}function M(){return c.checkApplicantIdIsNotClosed({applicantId:s.applicantId,demoMode:s.demoMode,faceAuth:s.isAuth,faceOnly:s.faceOnly})}async function T(e){try{d.showLoader(!0,r,o);const t={applicantId:s.applicantId,...e,documentType:s.isAuth||s.faceOnly?10:e.documentType,...await i,clientVersion:d.version,clientType:yl.WebLibStandalone};f=await c.validateApplicant({applicantId:t.applicantId,model:t,embeddedAppConnectionId:a},s.demoMode,s.isAuth),d.showLoader(!1),s.onValidate(f),b.closable=!1,C(fc(f))}catch(t){d.loading=!1,N(t)}}function A(e){f=e,s.onValidate(e),C(fc(e))}function C(e){Object.assign(b,e,{open:!0})}function N(e){if(!s)return;s.onError(e);const t=n.includes(e.name);m=t&&!(null==d?void 0:d.initialized),dn(g,null),C({type:ul.DANGER,header:e.header||"Something Went Wrong",content:e.content||"Try again later",buttons:{tryAgain:t,complete:!1}})}fr(()=>(S().then(h),()=>{_.abort(),null==d||d.destroy()}));var I={updateConfig:function(e){const t=JSON.parse(e),n=()=>{(null==d?void 0:d.initialized)&&(t.documentTypes=Ss(t),s.libConfig=t,d.reloadComponent(s.libConfig))};(null==d?void 0:d.initialized)?n():p.then(n)},setApplicant:async function(e){await p,d.loading=!0;try{if(s.applicantId=e,b.open=!1,!(await M()))throw new Error("Applicant validation failed");await w(),dn(y,e,!0)}catch(t){N(t)}finally{d.loading=!1}},restart:w,showLoader:function(e,t,n){null==d||d.showLoader(e,t,n)}},x=gc(),k=Tn(x),R=e=>{Ui(e,{get bodyText(){return So(g).bodyText},get checkboxText(){return So(g).checkboxText},onProceed:()=>dn(g,null)})};Yo(k,e=>{So(g)&&e(R)});var D=Cn(k,2),L=e=>{var t=Ho();!function(e,t,n){var o=new Xo(e),r=!pt();Pn(()=>{var e=t();e!=e&&(e=$o),r&&null!==e&&"object"==typeof e&&(e={}),o.ensure(e,n)})}(Tn(t),()=>So(y),e=>{Hl(e,{onValidate:A})}),Vo(e,t)};return Yo(D,e=>{So(v)&&e(L)}),Jl(Cn(D,2),{get closable(){return b.closable},get type(){return b.type},get header(){return b.header},get content(){return b.content},get buttons(){return b.buttons},onTryAgain:function(){m&&(m=!1,b.closable=!0,p=S())},onComplete:async function(){try{if(d.loading=!0,!(await c.forceClose(s.applicantId)))throw new Error("Force close failed");s.onValidate({...f,forceComplete:!0}),f.status=pl.COMPLETE,C(fc(f))}catch(e){N(e)}finally{d.loading=!1}},get open(){return b.open},set open(e){b.open=e}}),Vo(e,x),ut(I)}const yc="2.11.0";return class{constructor(e,t){var n,o;console.info(`%cIDVCO version: ${yc}`,"background-color:#f48020; color:#fff; padding: 4px 8px"),"localhost"===window.location.hostname&&console.info("%c You can pass DVS Online domainApi in config. Ex: {domainApi: 'https://localhost:8000'}","background: #FFCC00; color: #000");const r=document.getElementById(e.el||"videoCapturingEl");r?(this.idvcElement=r,this.container=(e=>{const t=document.createElement("div");return t.id="idvc-wrapper-container",t.classList.add("idvc-mount-host"),e.before(t),t.append(e),t})(r),this.app=Wo(vc,{target:this.container,props:{config:e,IDVCModule:t,idvcElement:r}})):null==(o=null==(n=e.callbacks)?void 0:n.onError)||o.call(n,new _s("el"))}updateConfig(e){var t;null==(t=this.app)||t.updateConfig(e)}async setApplicant(e){var t;await(null==(t=this.app)?void 0:t.setApplicant(e))}async restart(){var e;await(null==(e=this.app)?void 0:e.restart())}showLoader(e,t,n){var o;null==(o=this.app)||o.showLoader(e,t,n)}destroy(){var e;this.app&&(!function(e,t){const n=Ko.get(e);n?(Ko.delete(e),n(t)):Promise.resolve()}(this.app),this.app=void 0,null==(e=this.idvcElement)||e.classList.remove("hidden-element"),this.container&&this.idvcElement&&this.container.replaceWith(this.idvcElement))}}});
5
+ function hr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(d){c=!0,r=d}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return pr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}"undefined"!=typeof window&&((te=window.__svelte??(window.__svelte={})).v??(te.v=new Set)).add("5");const mr=Object.entries,gr=Object.setPrototypeOf,vr=Object.isFrozen,yr=Object.getPrototypeOf,br=Object.getOwnPropertyDescriptor;let _r=Object.freeze,wr=Object.seal,Sr=Object.create,Er="undefined"!=typeof Reflect&&Reflect,Mr=Er.apply,Tr=Er.construct;_r||(_r=function(e){return e}),wr||(wr=function(e){return e}),Mr||(Mr=function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];return e.apply(t,o)}),Tr||(Tr=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return new e(...n)});const Cr=Kr(Array.prototype.forEach),Ar=Kr(Array.prototype.lastIndexOf),Nr=Kr(Array.prototype.pop),Ir=Kr(Array.prototype.push),xr=Kr(Array.prototype.splice),kr=Array.isArray,Rr=Kr(String.prototype.toLowerCase),Dr=Kr(String.prototype.toString),Lr=Kr(String.prototype.match),Br=Kr(String.prototype.replace),Or=Kr(String.prototype.indexOf),Pr=Kr(String.prototype.trim),Fr=Kr(Number.prototype.toString),Ur=Kr(Boolean.prototype.toString),zr="undefined"==typeof BigInt?null:Kr(BigInt.prototype.toString),Gr="undefined"==typeof Symbol?null:Kr(Symbol.prototype.toString),Hr=Kr(Object.prototype.hasOwnProperty),Vr=Kr(Object.prototype.toString),jr=Kr(RegExp.prototype.test),Wr=(qr=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Tr(qr,t)});var qr;function Kr(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return Mr(e,t,o)}}function Xr(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Rr;if(gr&&gr(e,null),!kr(t))return e;let o=t.length;for(;o--;){let r=t[o];if("string"==typeof r){const e=n(r);e!==r&&(vr(t)||(t[o]=e),r=e)}e[r]=!0}return e}function Yr(e){for(let t=0;t<e.length;t++)Hr(e,t)||(e[t]=null);return e}function $r(e){const t=Sr(null);for(const o of mr(e)){var n=hr(o,2);const r=n[0],i=n[1];Hr(e,r)&&(kr(i)?t[r]=Yr(i):i&&"object"==typeof i&&i.constructor===Object?t[r]=$r(i):t[r]=i)}return t}function Zr(e,t){for(;null!==e;){const n=br(e,t);if(n){if(n.get)return Kr(n.get);if("function"==typeof n.value)return Kr(n.value)}e=yr(e)}return function(){return null}}const Qr=_r(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Jr=_r(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ei=_r(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ti=_r(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ni=_r(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),oi=_r(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ri=_r(["#text"]),ii=_r(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),ai=_r(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),li=_r(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),si=_r(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ci=wr(/{{[\w\W]*|^[\w\W]*}}/g),di=wr(/<%[\w\W]*|^[\w\W]*%>/g),ui=wr(/\${[\w\W]*/g),fi=wr(/^data-[\-\w.\u00B7-\uFFFF]+$/),pi=wr(/^aria-[\-\w]+$/),hi=wr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),mi=wr(/^(?:\w+script|data):/i),gi=wr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),vi=wr(/^html$/i),yi=wr(/^[a-z][.\w]*(-[.\w]+)+$/i),bi=wr(/<[/\w!]/g),_i=wr(/<[/\w]/g),wi=wr(/<\/no(script|embed|frames)/i),Si=wr(/\/>/i),Ei=1,Mi=3,Ti=7,Ci=8,Ai=9,Ni=11,Ii=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],xi=_r(Xr({},Ii)),ki=function(){const e={};return Cr(Ii,t=>{e[t]=wr(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),_r(e)}(),Ri=function(e,t,n,o){return Hr(e,t)&&kr(e[t])?Xr(o.base?$r(o.base):{},e[t],o.transform):n},Di=function(e,t,n){const o=Hr(e,t)?e[t]:void 0;return o&&"object"==typeof o?$r(o):n()};var Li=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const n=t=>e(t);if(n.version="3.4.16",n.removed=[],!t||!t.document||t.document.nodeType!==Ai||!t.Element)return n.isSupported=!1,n;let o=t.document;const r=o,i=r.currentScript;t.DocumentFragment;const a=t.HTMLTemplateElement,l=t.Node,s=t.Element,c=t.NodeFilter;void 0===t.NamedNodeMap&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const d=t.DOMParser,u=t.trustedTypes,f=s.prototype,p=Zr(f,"cloneNode"),h=Zr(f,"remove"),m=Zr(f,"removeAttributeNode"),g=Zr(f,"nextSibling"),v=Zr(f,"childNodes"),y=Zr(f,"parentNode"),b=Zr(f,"shadowRoot"),_=Zr(f,"attributes"),w=l&&l.prototype?Zr(l.prototype,"nodeType"):null,S=l&&l.prototype?Zr(l.prototype,"nodeName"):null,E=l&&l.prototype?Zr(l.prototype,"ownerDocument"):null,M=function(e){return w?w(e):e.nodeType},T=function(e){return S?S(e):e.nodeName};if("function"==typeof a){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let C,A,N="",I=!1,x=0;const k=function(){if(x>0)throw Wr('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},R=function(e){k(),x++;try{return C.createHTML(e)}finally{x--}},D=function(){return I||(A=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(i){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(u,i),I=!0),A},L=o,B=L.implementation,O=L.createNodeIterator,P=L.createDocumentFragment,F=L.getElementsByTagName,U=r.importNode;let z={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof mr&&"function"==typeof y&&B&&void 0!==B.createHTMLDocument;const G=ci,H=di,V=ui,j=fi,W=pi,q=mi,K=gi,X=yi;let Y=hi,$=null;const Z=Xr({},[...Qr,...Jr,...ei,...ni,...ri]);let Q=null;const J=Xr({},[...ii,...ai,...li,...si]);let ee=Object.seal(Sr(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),te=null,ne=null;const oe=Object.seal(Sr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let re=!0,ie=!0,ae=!1,le=!0,se=!1,ce=!0,de=!1,ue=!1,fe=null,pe=null,he=!1,me=!1,ge=!1,ve=!1,ye=!0,be=!1;const _e="user-content-";let we=!0,Se=!1,Ee={},Me=null;const Te=Xr({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Ce=null;const Ae=Xr({},["audio","video","img","source","image","track"]);let Ne=null;const Ie=Xr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),xe="http://www.w3.org/1998/Math/MathML",ke="http://www.w3.org/2000/svg",Re="http://www.w3.org/1999/xhtml";let De=Re,Le=!1,Be=null;const Oe=Xr({},[xe,ke,Re],Dr),Pe=_r(["mi","mo","mn","ms","mtext"]);let Fe=Xr({},Pe);const Ue=_r(["annotation-xml"]);let ze=Xr({},Ue);const Ge=Xr({},["title","style","font","a","script"]);let He=null;const Ve=["application/xhtml+xml","text/html"];let je=null,We=null;const qe=o.createElement("form"),Ke=function(e){return e instanceof RegExp||e instanceof Function},Xe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(We&&We===e)return;e&&"object"==typeof e||(e={}),e=$r(e),He=-1===Ve.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,je="application/xhtml+xml"===He?Dr:Rr,$=Ri(e,"ALLOWED_TAGS",Z,{transform:je}),Q=Ri(e,"ALLOWED_ATTR",J,{transform:je}),Be=Ri(e,"ALLOWED_NAMESPACES",Oe,{transform:Dr}),Ne=Ri(e,"ADD_URI_SAFE_ATTR",Ie,{transform:je,base:Ie}),Ce=Ri(e,"ADD_DATA_URI_TAGS",Ae,{transform:je,base:Ae}),Me=Ri(e,"FORBID_CONTENTS",Te,{transform:je}),te=Ri(e,"FORBID_TAGS",$r({}),{transform:je}),ne=Ri(e,"FORBID_ATTR",$r({}),{transform:je}),Ee=!!Hr(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?$r(e.USE_PROFILES):e.USE_PROFILES),re=!1!==e.ALLOW_ARIA_ATTR,ie=!1!==e.ALLOW_DATA_ATTR,ae=e.ALLOW_UNKNOWN_PROTOCOLS||!1,le=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,se=e.SAFE_FOR_TEMPLATES||!1,ce=!1!==e.SAFE_FOR_XML,de=e.WHOLE_DOCUMENT||!1,me=e.RETURN_DOM||!1,ge=e.RETURN_DOM_FRAGMENT||!1,ve=e.RETURN_TRUSTED_TYPE||!1,he=e.FORCE_BODY||!1,ye=!1!==e.SANITIZE_DOM,be=e.SANITIZE_NAMED_PROPS||!1,we=!1!==e.KEEP_CONTENT,Se=e.IN_PLACE||!1,Y=function(e){try{return jr(e,""),!0}catch(t){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:hi,De="string"==typeof e.NAMESPACE?e.NAMESPACE:Re,Fe=Di(e,"MATHML_TEXT_INTEGRATION_POINTS",()=>Xr({},Pe)),ze=Di(e,"HTML_INTEGRATION_POINTS",()=>Xr({},Ue));const t=Di(e,"CUSTOM_ELEMENT_HANDLING",()=>Sr(null));if(ee=Sr(null),Hr(t,"tagNameCheck")&&Ke(t.tagNameCheck)&&(ee.tagNameCheck=t.tagNameCheck),Hr(t,"attributeNameCheck")&&Ke(t.attributeNameCheck)&&(ee.attributeNameCheck=t.attributeNameCheck),Hr(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(ee.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),wr(ee),se&&(ie=!1),ge&&(me=!0),Ee&&($=Xr({},ri),Q=Sr(null),!0===Ee.html&&(Xr($,Qr),Xr(Q,ii)),!0===Ee.svg&&(Xr($,Jr),Xr(Q,ai),Xr(Q,si)),!0===Ee.svgFilters&&(Xr($,ei),Xr(Q,ai),Xr(Q,si)),!0===Ee.mathMl&&(Xr($,ni),Xr(Q,li),Xr(Q,si))),oe.tagCheck=null,oe.attributeCheck=null,Hr(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?oe.tagCheck=e.ADD_TAGS:kr(e.ADD_TAGS)&&($===Z&&($=$r($)),Xr($,e.ADD_TAGS,je))),Hr(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?oe.attributeCheck=e.ADD_ATTR:kr(e.ADD_ATTR)&&(Q===J&&(Q=$r(Q)),Xr(Q,e.ADD_ATTR,je))),Hr(e,"ADD_FORBID_CONTENTS")&&kr(e.ADD_FORBID_CONTENTS)&&(Me===Te&&(Me=$r(Me)),Xr(Me,e.ADD_FORBID_CONTENTS,je)),we&&($["#text"]=!0),de&&Xr($,["html","head","body"]),$.table&&(Xr($,["tbody"]),delete te.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw Wr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw Wr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=C;C=e.TRUSTED_TYPES_POLICY;try{N=R("")}catch(n){throw C=t,n}}else null===e.TRUSTED_TYPES_POLICY?(C=void 0,N=""):(void 0===C&&(C=D()),C&&"string"==typeof N&&(N=R("")));_r&&_r(e),We=e},Ye=Xr({},[...Jr,...ei,...ti]),$e=Xr({},[...ni,...oi]),Ze=function(e){let t=y(e);t&&t.tagName||(t={namespaceURI:De,tagName:"template"});const n=Rr(e.tagName),o=Rr(t.tagName);return!!Be[e.namespaceURI]&&(e.namespaceURI===ke?function(e,t,n){return t.namespaceURI===Re?"svg"===e:t.namespaceURI===xe?"svg"===e&&("annotation-xml"===n||Fe[n]):Boolean(Ye[e])}(n,t,o):e.namespaceURI===xe?function(e,t,n){return t.namespaceURI===Re?"math"===e:t.namespaceURI===ke?"math"===e&&ze[n]:Boolean($e[e])}(n,t,o):e.namespaceURI===Re?function(e,t,n){return!(t.namespaceURI===ke&&!ze[n])&&!(t.namespaceURI===xe&&!Fe[n])&&!$e[e]&&(Ge[e]||!Ye[e])}(n,t,o):!("application/xhtml+xml"!==He||!Be[e.namespaceURI]))},Qe=function(e){Ir(n.removed,{element:e});try{y(e).removeChild(e)}catch(t){if(h(e),!y(e))throw Wr("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Je=function(e,t,n){try{m(e,t)}catch(o){try{e.removeAttribute(n)}catch(r){}}},et=function(e){ot(e);const t=v(e);if(t){const e=[];Cr(t,t=>{Ir(e,t)}),Cr(e,e=>{try{h(e)}catch(t){}})}const n=_(e);if(n)for(let o=n.length-1;o>=0;--o){const t=n[o],r=t&&t.name;"string"==typeof r&&Je(e,t,r)}},tt=function(e,t,o){if(!o)try{o=t.getAttributeNode(e)}catch(r){o=null}Ir(n.removed,{attribute:o||null,from:t});try{o?m(t,o):t.removeAttribute(e)}catch(r){try{t.removeAttribute(e)}catch(i){}}if("is"===e)if(me||ge)try{Qe(t)}catch(r){}else try{t.setAttribute(e,"")}catch(r){}},nt=function(e){const t=_(e);if(t)for(let n=t.length-1;n>=0;--n){const o=t[n],r=o&&o.name;"string"!=typeof r||Q[je(r)]||Je(e,o,r)}},ot=function(e){const t=[e];for(;t.length>0;){const e=t.pop();M(e)===Ei&&nt(e);const n=v(e);if(n)for(let o=n.length-1;o>=0;--o)t.push(n[o])}},rt=function(e,t){return!!ce&&("patchsrc"===e||"for"===e&&"label"!==t&&"output"!==t)},it=function(e){let t=null,n=null;if(he)e="<remove></remove>"+e;else{const t=Lr(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===He&&De===Re&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=C?R(e):e;if(De===Re)try{t=(new d).parseFromString(r,He)}catch(a){}if(!t||!t.documentElement){t=B.createDocument(De,"template",null);try{t.documentElement.innerHTML=Le?N:r}catch(a){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),De===Re?F.call(t,de?"html":"body")[0]:de?t.documentElement:i},at=function(e){const t=E?E(e):e.ownerDocument;return O.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},lt=function(e){return e=Br(e,G," "),e=Br(e,H," "),e=Br(e,V," ")},st=function(e){var t;e.normalize();const n=E?E(e):e.ownerDocument,o=O.call(n||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let r=o.nextNode();for(;r;)r.data=lt(r.data),r=o.nextNode();const i=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");i&&Cr(i,e=>{dt(e.content)&&st(e.content)})},ct=function(e){const t=S?S(e):null;return"string"==typeof t&&("form"===je(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==_(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.removeAttributeNode||"function"!=typeof e.getAttributeNode||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==w(e)||e.childNodes!==v(e)))},dt=function(e){if(!w||"object"!=typeof e||null===e)return!1;try{return w(e)===Ni}catch(t){return!1}},ut=function(e){if(!w||"object"!=typeof e||null===e)return!1;try{return"number"==typeof w(e)}catch(t){return!1}};function ft(e,t,o){0!==e.length&&Cr(e,e=>{e.call(n,t,o,We)})}const pt=function(e,t){if(e instanceof RegExp)return jr(e,t);if(e instanceof Function){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];return Boolean(e(t,...o))}return!1},ht=function(e,t,n,o){return 0===e.length?t:t===n||t===o?$r(t):t},mt=function(e,t){return e!==t&&null===y(e)&&(Se&&ot(e),!0)},gt=function(e,t){if(ft(z.beforeSanitizeElements,e,null),mt(e,t))return!0;if(ct(e))return Qe(e),!0;const o=je(T(e));if($=ht(z.uponSanitizeElement,$,Z,fe),ft(z.uponSanitizeElement,e,{tagName:o,allowedTags:$}),mt(e,t))return!0;if(function(e,t){return!!(ce&&e.hasChildNodes()&&!ut(e.firstElementChild)&&jr(bi,e.textContent)&&jr(bi,e.innerHTML))||!!(ce&&e.namespaceURI===Re&&xi[t]&&(ut(e.firstElementChild)||"string"==typeof e.textContent&&jr(ki[t],e.textContent)))||e.nodeType===Ti||!(!ce||e.nodeType!==Ci||!jr(_i,e.data))}(e,o))return Qe(e),!0;if(te[o]||!(oe.tagCheck instanceof Function&&oe.tagCheck(o))&&!$[o]){const n=function(e,t,n){if(!te[t]&&bt(t)&&pt(ee.tagNameCheck,t))return!1;if(we&&!Me[t]){const t=y(e),o=v(e);if(o&&t)for(let r=o.length-1;r>=0;--r){const i=e===n?p(o[r],!0):o[r];t.insertBefore(i,g(e))}}return Qe(e),!0}(e,o,t);return!(!1!==n||(ft(z.afterSanitizeElements,e,null),!mt(e,t)))||n}if(M(e)===Ei&&!Ze(e))return Qe(e),!0;if(("noscript"===o||"noembed"===o||"noframes"===o)&&jr(wi,e.innerHTML))return Qe(e),!0;if(se&&e.nodeType===Mi){const t=lt(e.textContent);e.textContent!==t&&(Ir(n.removed,{element:e.cloneNode()}),e.textContent=t)}return ft(z.afterSanitizeElements,e,null),mt(e,t)},vt=function(e,t,n){if(ne[t])return!1;if(rt(t,e))return!1;if(ye&&("id"===t||"name"===t)&&(n in o||n in qe))return!1;const r=Q[t]||oe.attributeCheck instanceof Function&&oe.attributeCheck(t,e);return!(!ie||!jr(j,t))||(!(!re||!jr(W,t))||(r?!!Ne[t]||(!!jr(Y,Br(n,K,""))||(!("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Or(n,"data:")||!Ce[e])||(!(!ae||jr(q,Br(n,K,"")))||!n))):bt(e)&&pt(ee.tagNameCheck,e)&&pt(ee.attributeNameCheck,t,e)||"is"===t&&ee.allowCustomizedBuiltInElements&&pt(ee.tagNameCheck,n)))},yt=Xr({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),bt=function(e){return!yt[Rr(e)]&&jr(X,e)},_t=function(e,t,n,o){if(C&&"object"==typeof u&&"function"==typeof u.getAttributeType&&!n)switch(u.getAttributeType(e,t)){case"TrustedHTML":return R(o);case"TrustedScriptURL":return function(e){k(),x++;try{return C.createScriptURL(e)}finally{x--}}(o)}return o},wt=function(e,t,n,o){try{return n?e.setAttributeNS(n,t,o):e.setAttribute(t,o),!ct(e)||(Qe(e),!1)}catch(r){return tt(t,e),!1}},St=function(e,t){if(ft(z.beforeSanitizeAttributes,e,null),mt(e,t))return;const o=e.attributes;if(!o||ct(e))return;Q=ht(z.uponSanitizeAttribute,Q,J,pe);const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Q,forceKeepAttr:void 0};let i=o.length;const a=je(e.nodeName);for(;i--;){const t=o[i],l=t.name,s=t.namespaceURI,c=t.value,d=je(l),u=c;let f="value"===l?u:Pr(u),p=!1;r.attrName=d,r.attrValue=f,r.keepAttr=!0,r.forceKeepAttr=void 0,ft(z.uponSanitizeAttribute,e,r),f=r.attrValue,!be||"id"!==d&&"name"!==d||0===Or(f,_e)||(tt(l,e,t),f=_e+f,p=!0),ce&&jr(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)?tt(l,e,t):"attributename"===d&&Lr(f,"href")?tt(l,e,t):r.forceKeepAttr||(r.keepAttr&&(le||!jr(Si,f))?(se&&(f=lt(f)),vt(a,d,f)?(f=_t(a,d,s,f),f!==u&&wt(e,l,s,f)&&p&&Nr(n.removed)):tt(l,e,t)):tt(l,e,t))}ft(z.afterSanitizeAttributes,e,null),mt(e,t)},Et=function(e){let t=null;const n=at(e);for(ft(z.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(ft(z.uponSanitizeShadowNode,t,null),gt(t,e),St(t,e),dt(t.content)&&Et(t.content),M(t)===Ei){const e=b(t);dt(e)&&(Mt(e),Et(e))}ft(z.afterSanitizeShadowDOM,e,null)},Mt=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const e=t.pop();if(e.shadow){Et(e.shadow);continue}const n=e.node,o=M(n)===Ei,r=v(n);if(r)for(let i=r.length-1;i>=0;--i)t.push({node:r[i],shadow:null});if(o){const e=S?S(n):null;if("string"==typeof e&&"template"===je(e)){const e=n.content;dt(e)&&t.push({node:e,shadow:null})}}if(o){const e=b(n);dt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,i=null,a=null,l=null;if(Le=!e,Le&&(e="\x3c!--\x3e"),"string"!=typeof e&&!ut(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return Fr(e);case"boolean":return Ur(e);case"bigint":return zr?zr(e):"0";case"symbol":return Gr?Gr(e):"Symbol()";case"undefined":default:return Vr(e);case"function":case"object":{if(null===e)return Vr(e);const t=e,n=Zr(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:Vr(e)}return Vr(e)}}}(e)))throw Wr("dirty is not a string, aborting");if(!n.isSupported)return e;ue?($=fe,Q=pe):Xe(t),(z.uponSanitizeElement.length>0||z.uponSanitizeAttribute.length>0)&&($=$r($)),z.uponSanitizeAttribute.length>0&&(Q=$r(Q)),n.removed=[];const s=Se&&"string"!=typeof e&&ut(e);if(s){!function(e){if(!ce)return;const t=[e];for(;t.length>0;){const e=t.pop(),o=M(e);if(o===Ti||o===Ci&&jr(_i,e.data)){try{h(e)}catch(n){}continue}if(o===Ei){const t=e,o=je(T(e));try{t.hasAttribute&&t.hasAttribute("patchsrc")&&t.removeAttribute("patchsrc"),t.hasAttribute&&t.hasAttribute("for")&&rt("for",o)&&t.removeAttribute("for")}catch(n){}}const r=v(e);if(r)for(let n=r.length-1;n>=0;--n)t.push(r[n])}}(e);const t=T(e);if("string"==typeof t){const n=je(t);if(!$[n]||te[n])throw et(e),Wr("root node is forbidden and cannot be sanitized in-place")}if(ct(e))throw et(e),Wr("root node is clobbered and cannot be sanitized in-place");try{Mt(e)}catch(u){throw et(e),u}}else if(ut(e))o=it("\x3c!----\x3e"),i=o.ownerDocument.importNode(e,!0),i.nodeType===Ei&&"BODY"===i.nodeName||"HTML"===i.nodeName?o=i:o.appendChild(i),Mt(o);else{if(!me&&!se&&!de&&-1===e.indexOf("<"))return C&&ve?R(e):e;if(o=it(e),!o)return me?null:ve?N:""}o&&he&&Qe(o.firstChild);const c=s?e:o;try{const e=at(c);for(;a=e.nextNode();)gt(a,c),St(a,c),dt(a.content)&&Et(a.content)}catch(u){throw s&&(et(e),Cr(n.removed,e=>{e.element&&ot(e.element)})),u}if(s){let t=!1;if(Cr(n.removed,n=>{n.element&&(n.element===e&&(t=!0),ot(n.element))}),t)throw Wr("a node selected for removal could not be safely returned; refusing to sanitize in place");return se&&st(e),e}if(me){if(se&&st(o),ge)for(l=P.call(o.ownerDocument);o.firstChild;)l.appendChild(o.firstChild);else l=o;return(Q.shadowroot||Q.shadowrootmode)&&(l=U.call(r,l,!0)),l}let d=de?o.outerHTML:o.innerHTML;return de&&$["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&jr(vi,o.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+d),se&&(d=lt(d)),C&&ve?R(d):d},n.setConfig=function(){Xe(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),ue=!0,fe=$,pe=Q},n.clearConfig=function(){We=null,ue=!1,fe=null,pe=null,C=A,N=""},n.isValidAttribute=function(e,t,n){We||Xe({});const o=je(e),r=je(t);return vt(o,r,n)},n.addHook=function(e,t){"function"==typeof t&&Hr(z,e)&&Ir(z[e],t)},n.removeHook=function(e,t){if(Hr(z,e)){if(void 0!==t){const n=Ar(z[e],t);return-1===n?void 0:xr(z[e],n,1)[0]}return Nr(z[e])}},n.removeHooks=function(e){Hr(z,e)&&(z[e]=[])},n.removeAllHooks=function(){z={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();const Bi={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Oi=e=>e.replaceAll(/[&<>"']/g,e=>Bi[e]),Pi=e=>Li.sanitize(e);var Fi=Uo('<div class="idvc-consent-form" id="idvc-consent-form"><div class="idvc-consent-form__header"><h2 class="idvc-consent-form__header__content">Consent Agreement</h2></div> <div class="idvc-consent-form__body" id="idvc-consent-form-body"><p id="idvc-consent-form-text"></p> <div class="input-wrapper"><label for="idvc-full-name-input"><span><sup class="color-red">*</sup> Full Name</span></label> <input type="text" name="fullName" id="idvc-full-name-input"/></div> <div class="checkbox-wrapper"><label class="checkbox-wrapper__star" for="idvc-consent"><span><sup class="color-red">*</sup></span></label> <input type="checkbox" id="idvc-consent"/> <label class="checkbox-wrapper__text" id="checkbox-wrapper__text" for="idvc-consent"></label></div></div> <div class="idvc-consent-form__footer"><button type="button" class="btn btn--info" id="idvc-consent-form-cancel-btn"><span>Cancel</span></button> <button type="button" id="idvc-consent-form-proceed-btn"><span>Proceed</span></button></div></div>');function Ui(e,t){dt(t,!0);let n=cn(""),o=cn(!1);const r=kt(()=>{const e=So(n).trim().length;return e>=3&&e<100&&So(o)});var i=Fi(),a=An(Mn(i),2),l=Mn(a);Zo(l,()=>Pi(t.bodyText),!0);var s=An(l,2),c=An(Mn(s),2),d=An(s,2),u=An(Mn(d),2);Zo(An(u,2),()=>Pi(t.checkboxText),!0);var f=Mn(An(a,2)),p=An(f,2);let h;On(()=>{h=or(p,1,"btn btn--primary",null,h,{"btn--disabled":!So(r)}),p.disabled=!So(r)}),function(e,t,n=t){var o=new WeakSet;Mt(e,"input",async r=>{var i=r?e.defaultValue:e.value;if(i=sr(e)?cr(i):i,n(i),null!==Ft&&o.add(Ft),await wo(),i!==(i=t())){var a=e.selectionStart,l=e.selectionEnd,s=e.value.length;if(e.value=i??"",null!==l){var c=e.value.length;a===l&&l===s&&c>s?(e.selectionStart=c,e.selectionEnd=c):(e.selectionStart=a,e.selectionEnd=Math.min(l,c))}}}),null==To(t)&&e.value&&(n(sr(e)?cr(e.value):e.value),null!==Ft&&o.add(Ft)),Bn(()=>{var n=t();if(e===document.activeElement){var r=Ft;if(o.has(r))return}sr(e)&&n===cr(e.value)||("date"!==e.type||n||e.value)&&n!==e.value&&(e.value=n??"")})}(c,()=>So(n),e=>dn(n,e)),function(e,t,n=t){Mt(e,"change",t=>{var o=t?e.defaultChecked:e.checked;n(o)}),null==To(t)&&n(e.checked),Bn(()=>{var n=t();e.checked=Boolean(n)})}(u,()=>So(o),e=>dn(o,e)),ko("click",f,()=>{dn(n,""),dn(o,!1)}),ko("click",p,function(...e){var n;null==(n=t.onProceed)||n.apply(this,e)}),Vo(e,i),ut()}function zi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}Ro(["click"]);var Gi,Hi,Vi={};var ji,Wi={},qi={};function Ki(){if(ji)return qi;let e;ji=1;const t=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return qi.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},qi.getSymbolTotalCodewords=function(e){return t[e]},qi.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},qi.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');e=t},qi.isKanjiModeEnabled=function(){return void 0!==e},qi.toSJIS=function(t){return e(t)},qi}var Xi,Yi,$i,Zi,Qi,Ji={};function ea(){return Xi||(Xi=1,(e=Ji).L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},e.from=function(t,n){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(o){return n}}),Ji;var e}var ta,na={};var oa,ra={};var ia,aa={};var la,sa={};function ca(){if(la)return sa;la=1;const e=ea(),t=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],n=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return sa.getBlocksCount=function(n,o){switch(o){case e.L:return t[4*(n-1)+0];case e.M:return t[4*(n-1)+1];case e.Q:return t[4*(n-1)+2];case e.H:return t[4*(n-1)+3];default:return}},sa.getTotalCodewordsCount=function(t,o){switch(o){case e.L:return n[4*(t-1)+0];case e.M:return n[4*(t-1)+1];case e.Q:return n[4*(t-1)+2];case e.H:return n[4*(t-1)+3];default:return}},sa}var da,ua,fa,pa,ha={},ma={};function ga(){return ua||(ua=1,function(e){const t=function(){if(da)return ma;da=1;const e=new Uint8Array(512),t=new Uint8Array(256);return function(){let n=1;for(let o=0;o<255;o++)e[o]=n,t[n]=o,n<<=1,256&n&&(n^=285);for(let t=255;t<512;t++)e[t]=e[t-255]}(),ma.log=function(e){if(e<1)throw new Error("log("+e+")");return t[e]},ma.exp=function(t){return e[t]},ma.mul=function(n,o){return 0===n||0===o?0:e[t[n]+t[o]]},ma}();e.mul=function(e,n){const o=new Uint8Array(e.length+n.length-1);for(let r=0;r<e.length;r++)for(let i=0;i<n.length;i++)o[r+i]^=t.mul(e[r],n[i]);return o},e.mod=function(e,n){let o=new Uint8Array(e);for(;o.length-n.length>=0;){const e=o[0];for(let i=0;i<n.length;i++)o[i]^=t.mul(n[i],e);let r=0;for(;r<o.length&&0===o[r];)r++;o=o.slice(r)}return o},e.generateECPolynomial=function(n){let o=new Uint8Array([1]);for(let r=0;r<n;r++)o=e.mul(o,new Uint8Array([1,t.exp(r)]));return o}}(ha)),ha}var va,ya={},ba={},_a={};function wa(){return va||(va=1,_a.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}),_a}var Sa,Ea,Ma,Ta={};function Ca(){if(Sa)return Ta;Sa=1;const e="[0-9]+";let t="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";t=t.replace(/u/g,"\\u");const n="(?:(?![A-Z0-9 $%*+\\-./:]|"+t+")(?:.|[\r\n]))+";Ta.KANJI=new RegExp(t,"g"),Ta.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Ta.BYTE=new RegExp(n,"g"),Ta.NUMERIC=new RegExp(e,"g"),Ta.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const o=new RegExp("^"+t+"$"),r=new RegExp("^"+e+"$"),i=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Ta.testKanji=function(e){return o.test(e)},Ta.testNumeric=function(e){return r.test(e)},Ta.testAlphanumeric=function(e){return i.test(e)},Ta}function Aa(){return Ea||(Ea=1,function(e){const t=wa(),n=Ca();e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(e,n){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!t.isValid(n))throw new Error("Invalid version: "+n);return n>=1&&n<10?e.ccBits[0]:n<27?e.ccBits[1]:e.ccBits[2]},e.getBestModeForData=function(t){return n.testNumeric(t)?e.NUMERIC:n.testAlphanumeric(t)?e.ALPHANUMERIC:n.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},e.isValid=function(e){return e&&e.bit&&e.ccBits},e.from=function(t,n){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+t)}}(t)}catch(o){return n}}}(ba)),ba}function Na(){return Ma||(Ma=1,function(e){const t=Ki(),n=ca(),o=ea(),r=Aa(),i=wa(),a=t.getBCHDigit(7973);function l(e,t){return r.getCharCountIndicator(e,t)+4}function s(e,t){let n=0;return e.forEach(function(e){const o=l(e.mode,t);n+=o+e.getBitsLength()}),n}e.from=function(e,t){return i.isValid(e)?parseInt(e,10):t},e.getCapacity=function(e,o,a){if(!i.isValid(e))throw new Error("Invalid QR Code version");void 0===a&&(a=r.BYTE);const s=8*(t.getSymbolTotalCodewords(e)-n.getTotalCodewordsCount(e,o));if(a===r.MIXED)return s;const c=s-l(a,e);switch(a){case r.NUMERIC:return Math.floor(c/10*3);case r.ALPHANUMERIC:return Math.floor(c/11*2);case r.KANJI:return Math.floor(c/13);case r.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(t,n){let i;const a=o.from(n,o.M);if(Array.isArray(t)){if(t.length>1)return function(t,n){for(let o=1;o<=40;o++)if(s(t,o)<=e.getCapacity(o,n,r.MIXED))return o}(t,a);if(0===t.length)return 1;i=t[0]}else i=t;return function(t,n,o){for(let r=1;r<=40;r++)if(n<=e.getCapacity(r,o,t))return r}(i.mode,i.getLength(),a)},e.getEncodedBits=function(e){if(!i.isValid(e)||e<7)throw new Error("Invalid QR Code version");let n=e<<12;for(;t.getBCHDigit(n)-a>=0;)n^=7973<<t.getBCHDigit(n)-a;return e<<12|n}}(ya)),ya}var Ia,xa={};var ka,Ra,Da,La,Ba,Oa,Pa,Fa,Ua={};var za,Ga,Ha,Va={exports:{}};function ja(){return Ga||(Ga=1,function(e){const t=Aa(),n=function(){if(Ra)return ka;Ra=1;const e=Aa();function t(t){this.mode=e.NUMERIC,this.data=t.toString()}return t.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(e){let t,n,o;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),o=parseInt(n,10),e.put(o,10);const r=this.data.length-t;r>0&&(n=this.data.substr(t),o=parseInt(n,10),e.put(o,3*r+1))},ka=t}(),o=function(){if(La)return Da;La=1;const e=Aa(),t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function n(t){this.mode=e.ALPHANUMERIC,this.data=t}return n.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(e){let n;for(n=0;n+2<=this.data.length;n+=2){let o=45*t.indexOf(this.data[n]);o+=t.indexOf(this.data[n+1]),e.put(o,11)}this.data.length%2&&e.put(t.indexOf(this.data[n]),6)},Da=n}(),r=function(){if(Oa)return Ba;Oa=1;const e=Aa();function t(t){this.mode=e.BYTE,this.data="string"==typeof t?(new TextEncoder).encode(t):new Uint8Array(t)}return t.getBitsLength=function(e){return 8*e},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},Ba=t}(),i=function(){if(Fa)return Pa;Fa=1;const e=Aa(),t=Ki();function n(t){this.mode=e.KANJI,this.data=t}return n.getBitsLength=function(e){return 13*e},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(e){let n;for(n=0;n<this.data.length;n++){let o=t.toSJIS(this.data[n]);if(o>=33088&&o<=40956)o-=33088;else{if(!(o>=57408&&o<=60351))throw new Error("Invalid SJIS character: "+this.data[n]+"\nMake sure your charset is UTF-8");o-=49472}o=192*(o>>>8&255)+(255&o),e.put(o,13)}},Pa=n}(),a=Ca(),l=Ki(),s=function(){return za||(za=1,Va.exports=e={single_source_shortest_paths:function(t,n,o){var r={},i={};i[n]=0;var a,l,s,c,d,u,f,p=e.PriorityQueue.make();for(p.push(n,0);!p.empty();)for(s in l=(a=p.pop()).value,c=a.cost,d=t[l]||{})d.hasOwnProperty(s)&&(u=c+d[s],f=i[s],(void 0===i[s]||f>u)&&(i[s]=u,p.push(s,u),r[s]=l));if(void 0!==o&&void 0===i[o]){var h=["Could not find a path from ",n," to ",o,"."].join("");throw new Error(h)}return r},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],o=t;o;)n.push(o),e[o],o=e[o];return n.reverse(),n},find_path:function(t,n,o){var r=e.single_source_shortest_paths(t,n,o);return e.extract_shortest_path_from_predecessor_list(r,o)},PriorityQueue:{make:function(t){var n,o=e.PriorityQueue,r={};for(n in t=t||{},o)o.hasOwnProperty(n)&&(r[n]=o[n]);return r.queue=[],r.sorter=t.sorter||o.default_sorter,r},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}}),Va.exports;var e}();function c(e){return unescape(encodeURIComponent(e)).length}function d(e,t,n){const o=[];let r;for(;null!==(r=e.exec(n));)o.push({data:r[0],index:r.index,mode:t,length:r[0].length});return o}function u(e){const n=d(a.NUMERIC,t.NUMERIC,e),o=d(a.ALPHANUMERIC,t.ALPHANUMERIC,e);let r,i;l.isKanjiModeEnabled()?(r=d(a.BYTE,t.BYTE,e),i=d(a.KANJI,t.KANJI,e)):(r=d(a.BYTE_KANJI,t.BYTE,e),i=[]);return n.concat(o,r,i).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function f(e,a){switch(a){case t.NUMERIC:return n.getBitsLength(e);case t.ALPHANUMERIC:return o.getBitsLength(e);case t.KANJI:return i.getBitsLength(e);case t.BYTE:return r.getBitsLength(e)}}function p(e,a){let s;const c=t.getBestModeForData(e);if(s=t.from(a,c),s!==t.BYTE&&s.bit<c.bit)throw new Error('"'+e+'" cannot be encoded with mode '+t.toString(s)+".\n Suggested mode is: "+t.toString(c));switch(s!==t.KANJI||l.isKanjiModeEnabled()||(s=t.BYTE),s){case t.NUMERIC:return new n(e);case t.ALPHANUMERIC:return new o(e);case t.KANJI:return new i(e);case t.BYTE:return new r(e)}}e.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(p(t,null)):t.data&&e.push(p(t.data,t.mode)),e},[])},e.fromString=function(n,o){const r=function(e){const n=[];for(let o=0;o<e.length;o++){const r=e[o];switch(r.mode){case t.NUMERIC:n.push([r,{data:r.data,mode:t.ALPHANUMERIC,length:r.length},{data:r.data,mode:t.BYTE,length:r.length}]);break;case t.ALPHANUMERIC:n.push([r,{data:r.data,mode:t.BYTE,length:r.length}]);break;case t.KANJI:n.push([r,{data:r.data,mode:t.BYTE,length:c(r.data)}]);break;case t.BYTE:n.push([{data:r.data,mode:t.BYTE,length:c(r.data)}])}}return n}(u(n,l.isKanjiModeEnabled())),i=function(e,n){const o={},r={start:{}};let i=["start"];for(let a=0;a<e.length;a++){const l=e[a],s=[];for(let e=0;e<l.length;e++){const c=l[e],d=""+a+e;s.push(d),o[d]={node:c,lastCount:0},r[d]={};for(let e=0;e<i.length;e++){const a=i[e];o[a]&&o[a].node.mode===c.mode?(r[a][d]=f(o[a].lastCount+c.length,c.mode)-f(o[a].lastCount,c.mode),o[a].lastCount+=c.length):(o[a]&&(o[a].lastCount=c.length),r[a][d]=f(c.length,c.mode)+4+t.getCharCountIndicator(c.mode,n))}}i=s}for(let t=0;t<i.length;t++)r[i[t]].end=0;return{map:r,table:o}}(r,o),a=s.find_path(i.map,"start","end"),d=[];for(let e=1;e<a.length-1;e++)d.push(i.table[a[e]].node);return e.fromArray(function(e){return e.reduce(function(e,t){const n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}(d))},e.rawSplit=function(t){return e.fromArray(u(t,l.isKanjiModeEnabled()))}}(Ua)),Ua}function Wa(){if(Ha)return Wi;Ha=1;const e=Ki(),t=ea(),n=function(){if($i)return Yi;function e(){this.buffer=[],this.length=0}return $i=1,e.prototype={get:function(e){const t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(let n=0;n<t;n++)this.putBit(1==(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},Yi=e}(),o=function(){if(Qi)return Zi;function e(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}return Qi=1,e.prototype.set=function(e,t,n,o){const r=e*this.size+t;this.data[r]=n,o&&(this.reservedBit[r]=!0)},e.prototype.get=function(e,t){return this.data[e*this.size+t]},e.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},e.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},Zi=e}(),r=(ta||(ta=1,function(e){const t=Ki().getSymbolSize;e.getRowColCoords=function(e){if(1===e)return[];const n=Math.floor(e/7)+2,o=t(e),r=145===o?26:2*Math.ceil((o-13)/(2*n-2)),i=[o-7];for(let t=1;t<n-1;t++)i[t]=i[t-1]-r;return i.push(6),i.reverse()},e.getPositions=function(t){const n=[],o=e.getRowColCoords(t),r=o.length;for(let e=0;e<r;e++)for(let t=0;t<r;t++)0===e&&0===t||0===e&&t===r-1||e===r-1&&0===t||n.push([o[e],o[t]]);return n}}(na)),na),i=function(){if(oa)return ra;oa=1;const e=Ki().getSymbolSize;return ra.getPositions=function(t){const n=e(t);return[[0,0],[n-7,0],[0,n-7]]},ra}(),a=(ia||(ia=1,function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t=3,n=3,o=40,r=10;function i(t,n,o){switch(t){case e.Patterns.PATTERN000:return(n+o)%2==0;case e.Patterns.PATTERN001:return n%2==0;case e.Patterns.PATTERN010:return o%3==0;case e.Patterns.PATTERN011:return(n+o)%3==0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(o/3))%2==0;case e.Patterns.PATTERN101:return n*o%2+n*o%3==0;case e.Patterns.PATTERN110:return(n*o%2+n*o%3)%2==0;case e.Patterns.PATTERN111:return(n*o%3+(n+o)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}e.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(e){const n=e.size;let o=0,r=0,i=0,a=null,l=null;for(let s=0;s<n;s++){r=i=0,a=l=null;for(let c=0;c<n;c++){let n=e.get(s,c);n===a?r++:(r>=5&&(o+=t+(r-5)),a=n,r=1),n=e.get(c,s),n===l?i++:(i>=5&&(o+=t+(i-5)),l=n,i=1)}r>=5&&(o+=t+(r-5)),i>=5&&(o+=t+(i-5))}return o},e.getPenaltyN2=function(e){const t=e.size;let o=0;for(let n=0;n<t-1;n++)for(let r=0;r<t-1;r++){const t=e.get(n,r)+e.get(n,r+1)+e.get(n+1,r)+e.get(n+1,r+1);4!==t&&0!==t||o++}return o*n},e.getPenaltyN3=function(e){const t=e.size;let n=0,r=0,i=0;for(let o=0;o<t;o++){r=i=0;for(let a=0;a<t;a++)r=r<<1&2047|e.get(o,a),a>=10&&(1488===r||93===r)&&n++,i=i<<1&2047|e.get(a,o),a>=10&&(1488===i||93===i)&&n++}return n*o},e.getPenaltyN4=function(e){let t=0;const n=e.data.length;for(let o=0;o<n;o++)t+=e.data[o];return Math.abs(Math.ceil(100*t/n/5)-10)*r},e.applyMask=function(e,t){const n=t.size;for(let o=0;o<n;o++)for(let r=0;r<n;r++)t.isReserved(r,o)||t.xor(r,o,i(e,r,o))},e.getBestMask=function(t,n){const o=Object.keys(e.Patterns).length;let r=0,i=1/0;for(let a=0;a<o;a++){n(a),e.applyMask(a,t);const o=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(a,t),o<i&&(i=o,r=a)}return r}}(aa)),aa),l=ca(),s=function(){if(pa)return fa;pa=1;const e=ga();function t(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}return t.prototype.initialize=function(t){this.degree=t,this.genPoly=e.generateECPolynomial(this.degree)},t.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const n=new Uint8Array(t.length+this.degree);n.set(t);const o=e.mod(n,this.genPoly),r=this.degree-o.length;if(r>0){const e=new Uint8Array(this.degree);return e.set(o,r),e}return o},fa=t}(),c=Na(),d=function(){if(Ia)return xa;Ia=1;const e=Ki(),t=e.getBCHDigit(1335);return xa.getEncodedBits=function(n,o){const r=n.bit<<3|o;let i=r<<10;for(;e.getBCHDigit(i)-t>=0;)i^=1335<<e.getBCHDigit(i)-t;return 21522^(r<<10|i)},xa}(),u=Aa(),f=ja();function p(e,t,n){const o=e.size,r=d.getEncodedBits(t,n);let i,a;for(i=0;i<15;i++)a=1==(r>>i&1),i<6?e.set(i,8,a,!0):i<8?e.set(i+1,8,a,!0):e.set(o-15+i,8,a,!0),i<8?e.set(8,o-i-1,a,!0):i<9?e.set(8,15-i-1+1,a,!0):e.set(8,15-i-1,a,!0);e.set(o-8,8,1,!0)}function h(t,o,r){const i=new n;r.forEach(function(e){i.put(e.mode.bit,4),i.put(e.getLength(),u.getCharCountIndicator(e.mode,t)),e.write(i)});const a=8*(e.getSymbolTotalCodewords(t)-l.getTotalCodewordsCount(t,o));for(i.getLengthInBits()+4<=a&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);const c=(a-i.getLengthInBits())/8;for(let e=0;e<c;e++)i.put(e%2?17:236,8);return function(t,n,o){const r=e.getSymbolTotalCodewords(n),i=l.getTotalCodewordsCount(n,o),a=r-i,c=l.getBlocksCount(n,o),d=r%c,u=c-d,f=Math.floor(r/c),p=Math.floor(a/c),h=p+1,m=f-p,g=new s(m);let v=0;const y=new Array(c),b=new Array(c);let _=0;const w=new Uint8Array(t.buffer);for(let e=0;e<c;e++){const t=e<u?p:h;y[e]=w.slice(v,v+t),b[e]=g.encode(y[e]),v+=t,_=Math.max(_,t)}const S=new Uint8Array(r);let E,M,T=0;for(E=0;E<_;E++)for(M=0;M<c;M++)E<y[M].length&&(S[T++]=y[M][E]);for(E=0;E<m;E++)for(M=0;M<c;M++)S[T++]=b[M][E];return S}(i,t,o)}function m(t,n,l,s){let d;if(Array.isArray(t))d=f.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");{let e=n;if(!e){const n=f.rawSplit(t);e=c.getBestVersionForData(n,l)}d=f.fromString(t,e||40)}}const u=c.getBestVersionForData(d,l);if(!u)throw new Error("The amount of data is too big to be stored in a QR Code");if(n){if(n<u)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+u+".\n")}else n=u;const m=h(n,l,d),g=e.getSymbolSize(n),v=new o(g);return function(e,t){const n=e.size,o=i.getPositions(t);for(let r=0;r<o.length;r++){const t=o[r][0],i=o[r][1];for(let o=-1;o<=7;o++)if(!(t+o<=-1||n<=t+o))for(let r=-1;r<=7;r++)i+r<=-1||n<=i+r||(o>=0&&o<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===o||6===o)||o>=2&&o<=4&&r>=2&&r<=4?e.set(t+o,i+r,!0,!0):e.set(t+o,i+r,!1,!0))}}(v,n),function(e){const t=e.size;for(let n=8;n<t-8;n++){const t=n%2==0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}(v),function(e,t){const n=r.getPositions(t);for(let o=0;o<n.length;o++){const t=n[o][0],r=n[o][1];for(let n=-2;n<=2;n++)for(let o=-2;o<=2;o++)-2===n||2===n||-2===o||2===o||0===n&&0===o?e.set(t+n,r+o,!0,!0):e.set(t+n,r+o,!1,!0)}}(v,n),p(v,l,0),n>=7&&function(e,t){const n=e.size,o=c.getEncodedBits(t);let r,i,a;for(let l=0;l<18;l++)r=Math.floor(l/3),i=l%3+n-8-3,a=1==(o>>l&1),e.set(r,i,a,!0),e.set(i,r,a,!0)}(v,n),function(e,t){const n=e.size;let o=-1,r=n-1,i=7,a=0;for(let l=n-1;l>0;l-=2)for(6===l&&l--;;){for(let n=0;n<2;n++)if(!e.isReserved(r,l-n)){let o=!1;a<t.length&&(o=1==(t[a]>>>i&1)),e.set(r,l-n,o),i--,-1===i&&(a++,i=7)}if(r+=o,r<0||n<=r){r-=o,o=-o;break}}}(v,m),isNaN(s)&&(s=a.getBestMask(v,p.bind(null,v,l))),a.applyMask(s,v),p(v,l,s),{modules:v,version:n,errorCorrectionLevel:l,maskPattern:s,segments:d}}return Wi.create=function(n,o){if(void 0===n||""===n)throw new Error("No input text");let r,i,l=t.M;return void 0!==o&&(l=t.from(o.errorCorrectionLevel,t.M),r=c.from(o.version),i=a.from(o.maskPattern),o.toSJISFunc&&e.setToSJISFunction(o.toSJISFunc)),m(n,r,l,i)},Wi}var qa,Ka,Xa={},Ya={};function $a(){return qa||(qa=1,function(e){function t(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");const n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}e.getOptions=function(e){e||(e={}),e.color||(e.color={});const n=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,o=e.width&&e.width>=21?e.width:void 0,r=e.scale||4;return{width:o,scale:o?4:r,margin:n,color:{dark:t(e.color.dark||"#000000ff"),light:t(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},e.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},e.getImageWidth=function(t,n){const o=e.getScale(t,n);return Math.floor((t+2*n.margin)*o)},e.qrToImageData=function(t,n,o){const r=n.modules.size,i=n.modules.data,a=e.getScale(r,o),l=Math.floor((r+2*o.margin)*a),s=o.margin*a,c=[o.color.light,o.color.dark];for(let e=0;e<l;e++)for(let n=0;n<l;n++){let d=4*(e*l+n),u=o.color.light;if(e>=s&&n>=s&&e<l-s&&n<l-s){u=c[i[Math.floor((e-s)/a)*r+Math.floor((n-s)/a)]?1:0]}t[d++]=u.r,t[d++]=u.g,t[d++]=u.b,t[d]=u.a}}}(Ya)),Ya}function Za(){return Ka||(Ka=1,function(e){const t=$a();e.render=function(e,n,o){let r=o,i=n;void 0!==r||n&&n.getContext||(r=n,n=void 0),n||(i=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),r=t.getOptions(r);const a=t.getImageWidth(e.modules.size,r),l=i.getContext("2d"),s=l.createImageData(a,a);return t.qrToImageData(s.data,e,r),function(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}(l,i,a),l.putImageData(s,0,0),i},e.renderToDataURL=function(t,n,o){let r=o;void 0!==r||n&&n.getContext||(r=n,n=void 0),r||(r={});const i=e.render(t,n,r),a=r.type||"image/png",l=r.rendererOpts||{};return i.toDataURL(a,l.quality)}}(Xa)),Xa}var Qa,Ja,el={};function tl(){if(Qa)return el;Qa=1;const e=$a();function t(e,t){const n=e.a/255,o=t+'="'+e.hex+'"';return n<1?o+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':o}function n(e,t,n){let o=e+t;return void 0!==n&&(o+=" "+n),o}return el.render=function(o,r,i){const a=e.getOptions(r),l=o.modules.size,s=o.modules.data,c=l+2*a.margin,d=a.color.light.a?"<path "+t(a.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",u="<path "+t(a.color.dark,"stroke")+' d="'+function(e,t,o){let r="",i=0,a=!1,l=0;for(let s=0;s<e.length;s++){const c=Math.floor(s%t),d=Math.floor(s/t);c||a||(a=!0),e[s]?(l++,s>0&&c>0&&e[s-1]||(r+=a?n("M",c+o,.5+d+o):n("m",i,0),i=0,a=!1),c+1<t&&e[s+1]||(r+=n("h",l),l=0)):i++}return r}(s,l,a.margin)+'"/>',f='viewBox="0 0 '+c+" "+c+'"',p='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+f+' shape-rendering="crispEdges">'+d+u+"</svg>\n";return"function"==typeof i&&i(null,p),p},el}var nl=function(){if(Ja)return Vi;Ja=1;const e=Hi?Gi:(Hi=1,Gi=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}),t=Wa(),n=Za(),o=tl();function r(n,o,r,i,a){const l=[].slice.call(arguments,1),s=l.length,c="function"==typeof l[s-1];if(!c&&!e())throw new Error("Callback required as last argument");if(!c){if(s<1)throw new Error("Too few arguments provided");return 1===s?(r=o,o=i=void 0):2!==s||o.getContext||(i=r,r=o,o=void 0),new Promise(function(e,a){try{const a=t.create(r,i);e(n(a,o,i))}catch(l){a(l)}})}if(s<2)throw new Error("Too few arguments provided");2===s?(a=r,r=o,o=i=void 0):3===s&&(o.getContext&&void 0===a?(a=i,i=void 0):(a=i,i=r,r=o,o=void 0));try{const e=t.create(r,i);a(null,n(e,o,i))}catch(d){a(d)}}return Vi.create=t.create,Vi.toCanvas=r.bind(null,n.render),Vi.toDataURL=r.bind(null,n.renderToDataURL),Vi.toString=r.bind(null,function(e,t,n){return o.render(e,n)}),Vi}();const ol=zi(nl);var rl=Uo('<div><svg viewBox="25 25 50 50" class="circular"><circle cx="50" cy="50" r="20" fill="none" class="path"></circle></svg> <!></div>');function il(e,t){let n=ur(t,"hidden",3,!1),o=ur(t,"class",3,"");var r=rl();let i;Qo(An(Mn(r),2),()=>t.children??Ee),On(()=>{i=or(r,1,tr(["loading-spinner",o()]),null,i,{"d-none":n()}),ar(r,"id",t.id)}),Vo(e,r)}var al=Uo('<div id="idvc-modal-background" role="presentation"><div id="idvc-modal"><!> <!></div></div>');function ll(e,t){dt(t,!0);let n=ur(t,"open",15,!1),o=ur(t,"closable",3,!0),r=ur(t,"loading",3,!1),i=ur(t,"centered",3,!1),a=ur(t,"class",3,"");var l=al();let s;var c=Mn(l),d=Mn(c);{let e=kt(()=>!r());il(d,{id:"idvc-loading-spinner",get hidden(){return So(e)}})}var u=An(d,2),f=e=>{var n=Ho();Qo(Tn(n),()=>t.children??Ee),Vo(e,n)};Yo(u,e=>{r()||e(f)}),On(()=>{s=or(l,1,"idvc-modal-background idvc-after-submit",null,s,{"d-none":!n()}),or(c,1,tr(["idvc-modal",a(),{center:i()}]))}),ko("click",l,function(e){o()&&e.target===e.currentTarget&&n(!1)}),Vo(e,l),ut()}Ro(["click"]),nt=!0;var sl=Go('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path fill="currentColor" d="M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"></path></svg>');var cl=Uo('<div id="idvc-close-modal-btn" role="button" tabindex="0" aria-label="Close"><!></div>');function dl(e,t){dt(t,!0);let n=ur(t,"hidden",3,!1);var o=cl();let r;!function(e){Vo(e,sl())}(Mn(o)),On(()=>r=or(o,1,"idvc-modal__close-btn",null,r,{"d-none":n()})),ko("click",o,function(...e){var n;null==(n=t.onclick)||n.apply(this,e)}),ko("keydown",o,function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t.onclick())}),Vo(e,o),ut()}Ro(["click","keydown"]);var ul=(e=>(e.DANGER="danger",e.SUCCESS="success",e.PRIMARY="primary",e))(ul||{}),fl=(e=>(e.LEGACY="v2",e.V2="2-online",e))(fl||{}),pl=(e=>(e[e.SUCCESS=0]="SUCCESS",e[e.FAIL=1]="FAIL",e[e.INVALID_DATA=2]="INVALID_DATA",e[e.ERROR=3]="ERROR",e[e.COMPLETE=4]="COMPLETE",e))(pl||{}),hl=(e=>(e.SUCCESS="Success",e.FAIL="Fail",e.INVALID_DATA="InvalidData",e.ERROR="Error",e.COMPLETE="Complete",e))(hl||{}),ml=(e=>(e.READY="ready",e.VALIDATING="validating",e.DONE_WITH_ERROR="doneWithError",e))(ml||{}),gl=(e=>(e[e.NEVER_OPEN=0]="NEVER_OPEN",e[e.OPEN=1]="OPEN",e[e.CLOSED=2]="CLOSED",e[e.CLOSED_FOREVER=3]="CLOSED_FOREVER",e))(gl||{}),vl=(e=>(e.NEVER_OPEN="NeverOpen",e.OPEN="Open",e.CLOSED="Closed",e.CLOSED_FOREVER="ClosedForever",e))(vl||{}),yl=(e=>(e[e.WebLibStandalone=0]="WebLibStandalone",e[e.WebLibDashboard=1]="WebLibDashboard",e[e.Android=2]="Android",e[e.Ios=3]="Ios",e))(yl||{}),bl=(e=>(e[e[""]=0]="",e[e["sent via SMS"]=1]="sent via SMS",e[e["sent via email"]=2]="sent via email",e[e["sent via SMS or email"]=3]="sent via SMS or email",e))(bl||{}),_l=(e=>(e[e.DL=1]="DL",e[e.Passport=2]="Passport",e[e.PassportCard=3]="PassportCard",e[e.GreenCard=6]="GreenCard",e[e.InternationalId=7]="InternationalId",e[e.Barcode=11]="Barcode",e[e.FaceAuthorization=10]="FaceAuthorization",e[e.EmploymentAuthorization=9]="EmploymentAuthorization",e))(_l||{}),wl=(e=>(e[e.OK=200]="OK",e[e.Created=201]="Created",e[e.Accepted=202]="Accepted",e[e.NoContent=204]="NoContent",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.PaymentRequired=402]="PaymentRequired",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.Gone=410]="Gone",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.PreconditionFailed=412]="PreconditionFailed",e[e.LengthRequired=411]="LengthRequired",e[e.PayloadTooLarge=413]="PayloadTooLarge",e[e.RequestURITooLong=414]="RequestURITooLong",e[e.UnsupportedMediaType=415]="UnsupportedMediaType",e[e.RangeNotSatisfiable=416]="RangeNotSatisfiable",e[e.ExpectationFailed=417]="ExpectationFailed",e[e.Locked=423]="Locked",e[e.MisdirectedRequest=421]="MisdirectedRequest",e[e.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout",e[e.HTTPVersionNotSupported=505]="HTTPVersionNotSupported",e[e.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",e[e.InsufficientStorage=507]="InsufficientStorage",e[e.NetworkConnectTimeoutError=524]="NetworkConnectTimeoutError",e))(wl||{}),Sl=Uo('<span class="idvc-modal__body_process_validating-info__text">The verification process is currently being completed using a mobile device ...</span>'),El=Uo('<button type="button" class="btn btn--primary" id="idvc-qr-code-terminate-process-btn"><span>Stop the mobile validation process</span></button>'),Ml=Uo('<div class="idvc-modal__header-wrap qr-code__header"><!> <div class="idvc-modal__header"><h2 class="idvc-modal__header__content idvc-modal__header__content_qr-code">Verify Documents by Phone</h2></div></div> <div class="idvc-modal__body idvc-modal__body_qr-code"><div id="idvc-modal__body_process_ready"><h3 class="idvc-modal__body_process_ready-header">Scan the QR Сode below to continue on your mobile device</h3> <div class="idvc-modal__body_process_ready__canvas-container"><canvas class="idvc-modal__body_process_ready-canvas" id="idvc-modal__body_process_ready-canvas"></canvas></div> <div class="idvc-modal__body_process_ready-info qr-code__header"><svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7 0C8.97933 0.052 10.6278 0.736833 11.9455 2.0545C13.2632 3.37217 13.948 5.02067 14 7C13.948 8.97933 13.2632 10.6278 11.9455 11.9455C10.6278 13.2632 8.97933 13.948 7 14C5.02067 13.948 3.37217 13.2632 2.0545 11.9455C0.736833 10.6278 0.052 8.97933 0 7C0.052 5.02067 0.736833 3.37217 2.0545 2.0545C3.37217 0.736833 5.02067 0.052 7 0ZM7 3C6.729 3 6.505 3.099 6.328 3.297C6.151 3.495 6.07283 3.72933 6.0935 4L6.453 8C6.474 8.146 6.53383 8.26317 6.6325 8.3515C6.73117 8.43983 6.8535 8.48417 6.9995 8.4845C7.1455 8.48483 7.26783 8.4405 7.3665 8.3515C7.46517 8.2625 7.525 8.14533 7.546 8L7.9055 4C7.9265 3.729 7.84833 3.49467 7.671 3.297C7.49367 3.09933 7.26967 3.00033 6.999 3H7ZM7 11C7.22933 10.9897 7.4195 10.9115 7.5705 10.7655C7.7215 10.6195 7.797 10.432 7.797 10.203C7.797 9.974 7.7215 9.78383 7.5705 9.6325C7.4195 9.48117 7.22933 9.40567 7 9.406C6.77067 9.40633 6.5805 9.48183 6.4295 9.6325C6.2785 9.78317 6.203 9.97333 6.203 10.203C6.203 10.4327 6.2785 10.6202 6.4295 10.7655C6.5805 10.9108 6.77067 10.989 7 11Z" fill="#F7BA2A"></path></svg> <span class="idvc-modal__body_process_ready-info__text">Any images you have uploaded will be lost if you scan the QR code and continue the process on your mobile device</span></div></div> <div id="idvc-modal__body_process_validating"><!></div> <div id="result-error"><div class="idvc-modal__body_process_done-container"><svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" fill="#ff0000" viewBox="0 0 512 512"><path d="M502.876 379.713l-189.486-316.329c-6.088-9.895-14.349-17.903-24.154-23.52l-0.329-0.174c-20.048-11.267-45.677-11.292-65.788 0.022-10.123 5.785-18.372 13.786-24.282 23.381l-0.167 0.291c-0.022 0.045-0.042 0.066-0.064 0.109l-189.619 316.546c-18.512 32.098-7.501 73.127 24.596 91.642 9.476 5.56 20.852 8.88 32.997 8.972h379.12c37.046-0.406 66.736-30.765 66.347-67.804-0.137-12.231-3.526-23.642-9.34-33.446l0.171 0.31zM233.656 189.931c0.138-12.246 10.097-22.12 22.363-22.12s22.225 9.874 22.363 22.107v89.466c0 0.002 0 0.003 0 0.005 0 12.347-10.010 22.356-22.356 22.356-0.002 0-0.004 0-0.005 0h0c-0.002 0-0.005 0-0.008 0-12.345 0-22.352-10.005-22.357-22.348v-0zM278.413 368.985c0 12.368-10.026 22.394-22.394 22.394s-22.394-10.026-22.394-22.394c0-12.367 10.024-22.392 22.391-22.394v0c0.001 0 0.002 0 0.002 0 12.368 0 22.394 10.026 22.394 22.394v0z"></path></svg> <div class="idvc-modal__body_process_done__text" id="result__text-error">Validation Failed</div></div></div></div> <div class="idvc-modal__footer_qr-code"><!></div>',1);Ro(["click"]);var Tl=Uo('<div class="d-none"><div class="qr-code-wrap"><button class="qr-code-wrap__button" id="qr-code-wrap__button"><span class="qr-code-wrap__content">Verify Documents by Phone<svg class="qr-code-svg" width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 8V0H8V8H0ZM2 6H6V2H2V6ZM0 18V10H8V18H0ZM2 16H6V12H2V16ZM10 8V0H18V8H10ZM12 6H16V2H12V6ZM16 18V16H18V18H16ZM10 12V10H12V12H10ZM12 14V12H14V14H12ZM10 16V14H12V16H10ZM12 18V16H14V18H12ZM14 16V14H16V16H14ZM14 12V10H16V12H14ZM16 14V12H18V14H16Z" fill="white"></path></svg></span></button></div></div>');Ro(["click"]);const[Cl,Al]=ot(lt,st,ct),Nl=e=>"string"==typeof e,Il=e=>"number"==typeof e,xl=e=>"object"==typeof e&&null!==e,kl=e=>e.reduce((e,[t,n])=>(e[t.toLowerCase()]=n,e),{}),Rl=kl([[hl.SUCCESS,pl.SUCCESS],[hl.FAIL,pl.FAIL],[hl.INVALID_DATA,pl.INVALID_DATA],[hl.ERROR,pl.ERROR],[hl.COMPLETE,pl.COMPLETE]]),Dl=kl([[vl.NEVER_OPEN,gl.NEVER_OPEN],[vl.OPEN,gl.OPEN],[vl.CLOSED,gl.CLOSED],[vl.CLOSED_FOREVER,gl.CLOSED_FOREVER]]),Ll=kl([[hl.SUCCESS,hl.SUCCESS],[hl.FAIL,hl.FAIL],[hl.INVALID_DATA,hl.INVALID_DATA],[hl.ERROR,hl.ERROR],[hl.COMPLETE,hl.COMPLETE]]),Bl=(e,t)=>Il(e)&&void 0!==t[e]?e:void 0,Ol=(e,t)=>Nl(e)?t[e.trim().toLowerCase()]:void 0,Pl=e=>Bl(e,pl),Fl=e=>Pl(e)??(e=>Ol(e,Rl))(e),Ul=e=>{if(!Nl(e))return;const t=e.trim();return Ll[t.toLowerCase()]??t},zl=(e,t)=>{null!=e&&console.error(`Unrecognised validation status "${String(e)}" for API version "${t}" — treating the response as an error.`)},Gl=(e,t)=>{if(!xl(e))return{status:-1};const n=e;return t===fl.V2?(e=>{var t,n;const o=Fl(e.status);return void 0===o&&zl(e.status,fl.V2),{...e,status:o??-1,documentType:e.documentTypeInt??(Il(e.documentType)?e.documentType:void 0)??(null==(t=e.verificationResult)?void 0:t.documentType)??void 0,document:e.document??(null==(n=e.verificationResult)?void 0:n.document)??void 0,validationStatus:xl(e.validationStatus)?e.validationStatus:void 0,validationStatusName:Ul(e.validationStatus),invalidDataErrors:e.invalidDataErrors??[]}})(n):(e=>{const t=Pl(e.status);return void 0===t&&zl(e.status,fl.LEGACY),{...e,status:t??-1,documentType:Il(e.documentType)?e.documentType:void 0,validationStatus:xl(e.validationStatus)?e.validationStatus:void 0,invalidDataErrors:e.invalidDataErrors??[]}})(n)};var Hl=Uo("<!> <!>",1);function Vl(e,t){dt(t,!0);const n=Cl(),{embeddedAppConnectionId:o}=n,{applicantId:r}=n.configs;let i=cn(!1),a=cn(_n(ml.READY)),l=cn(!0),s=cn(!1);const c=`${n.configs.qrCodeLinkOrigin}/embedded?requestId=${r}&embeddedAppConnectionId=${o}&qrCode=true`,d=document.getElementById("card-steps"),u=new AbortController;function f(e){n.api.longPollingRequest(`Status/${r}`,{method:"GET",signal:u.signal},t=>{m(t),null==e||e()})}function p(){n.api.longPollingRequest(`ValidationResponse/${r}/${o}`,{method:"GET",signal:u.signal},e=>function(e){const o=Gl(e,n.configs.apiVersion);dn(i,!1),dn(s,!0),o.status!==pl.SUCCESS&&f(()=>{dn(s,!1)});t.onValidate(o)}(e))}function h(e){const t=e();t&&n.configs.firstStepMode&&(n.configs.firstStepMode.video=t.video,n.configs.firstStepMode.uploader=t.uploader)}function m(e){const t=n.configs.getFirstStepModeState();var o;switch(Bl(o=e,gl)??Ol(o,Dl)){case gl.NEVER_OPEN:h(t),dn(a,ml.READY,!0),dn(l,!0),dn(i,!0);break;case gl.OPEN:dn(a,ml.VALIDATING,!0),dn(l,!1),dn(i,!0),p(),n.configs.firstStepMode&&(n.configs.firstStepMode.video=!1,n.configs.firstStepMode.uploader=!0),n.lib.updateDocumentTypes(n.configs.libConfig.documentTypes);break;case gl.CLOSED:h(t),dn(a,ml.READY,!0),dn(l,!0);break;case gl.CLOSED_FOREVER:dn(a,ml.DONE_WITH_ERROR,!0),dn(l,!1);break;default:console.error(`Unrecognised embedded application status "${String(e)}".`)}}fr(()=>(f(),()=>u.abort())),Dn(()=>{if(!So(i)||So(a)!==ml.READY)return;const e=new AbortController;var t;return t=e.signal,n.api.longPollingRequest(`IsOpen/${r}`,{method:"GET",signal:t},e=>{e&&m(gl.OPEN)}),()=>e.abort()});var g=Hl(),v=Tn(g);!function(e,t){dt(t,!0);let n=ur(t,"open",15,!1),o=ur(t,"closable",3,!0),r=ur(t,"state",19,()=>ml.READY);function i(e){t.url&&ol.toCanvas(e,t.url,{width:180}).catch(e=>{console.error(`generate qr code error: ${e}`)})}ll(e,{get closable(){return o()},class:"idvc-modal_qr-code",get open(){return n()},set open(e){n(e)},children:(e,a)=>{var l=Ml(),s=Tn(l),c=Mn(s);{let e=kt(()=>!o());dl(c,{get hidden(){return So(e)},onclick:()=>n(!1)})}var d=An(s,2),u=Mn(d);let f;var p=An(Mn(u),2);Jo(Mn(p),()=>i);var h=An(u,2);let m;il(Mn(h),{id:"idvc-validating-spinner",class:"el-loading-spinner_qr-code",children:(e,t)=>{Vo(e,Sl())},$$slots:{default:!0}});var g=An(h,2);let v;var y=Mn(An(d,2)),b=e=>{var n=El();ko("click",n,function(...e){var n;null==(n=t.onTerminate)||n.apply(this,e)}),Vo(e,n)};Yo(y,e=>{r()===ml.VALIDATING&&e(b)}),On(()=>{f=or(u,1,"idvc-modal__body_process_ready",null,f,{"d-none":r()!==ml.READY}),m=or(h,1,"idvc-modal__body_process_validating",null,m,{"d-none":r()!==ml.VALIDATING}),v=or(g,1,"idvc-modal__body_process_done",null,v,{"d-none":r()!==ml.DONE_WITH_ERROR})}),Vo(e,l)},$$slots:{default:!0}}),ut()}(v,{get state(){return So(a)},get closable(){return So(l)},get url(){return c},onTerminate:async function(){try{await n.api.closeEmbeddedApplication(r)}catch(e){return void console.error("Failed to stop the mobile validation process",e)}dn(i,!1),dn(s,!0),f(()=>{dn(s,!1)})},get open(){return So(i)},set open(e){dn(i,e,!0)}});var y=An(v,2),b=e=>{!function(e,t){dt(t,!0);let n=ur(t,"disabled",3,!1);var o=Tl(),r=Mn(o),i=Cn(r);Jo(r,()=>{return e=t.anchor,t=>(e.after(t),()=>t.remove());var e}),On(()=>i.disabled=n()),ko("click",i,function(...e){var n;null==(n=t.onclick)||n.apply(this,e)}),Vo(e,o),ut()}(e,{get anchor(){return d},get disabled(){return So(s)},onclick:()=>dn(i,!0)})};Yo(y,e=>{d&&e(b)}),Vo(e,g),ut()}var jl=Go('<svg width="20" height="20" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8 1C9.97933 1.052 11.6278 1.73683 12.9455 3.0545C14.2632 4.37217 14.948 6.02067 15 8C14.948 9.97933 14.2632 11.6278 12.9455 12.9455C11.6278 14.2632 9.97933 14.948 8 15C6.02067 14.948 4.37217 14.2632 3.0545 12.9455C1.73683 11.6278 1.052 9.97933 1 8C1.052 6.02067 1.73683 4.37217 3.0545 3.0545C4.37217 1.73683 6.02067 1.052 8 1ZM8 4C7.729 4 7.505 4.099 7.328 4.297C7.151 4.495 7.07283 4.72933 7.0935 5L7.453 9C7.474 9.146 7.53383 9.26317 7.6325 9.3515C7.73117 9.43983 7.8535 9.48417 7.9995 9.4845C8.1455 9.48483 8.26783 9.4405 8.3665 9.3515C8.46517 9.2625 8.525 9.14533 8.546 9L8.9055 5C8.9265 4.729 8.84833 4.49467 8.671 4.297C8.49367 4.09933 8.27067 4.00033 8 4ZM8 12C8.22933 11.9897 8.4195 11.9115 8.5705 11.7655C8.7215 11.6195 8.797 11.432 8.797 11.203C8.797 10.974 8.7215 10.7838 8.5705 10.6325C8.4195 10.4812 8.22933 10.4057 8 10.406C7.77067 10.4063 7.5805 10.4818 7.4295 10.6325C7.2785 10.7832 7.203 10.9733 7.203 11.203C7.203 11.4327 7.2785 11.6202 7.4295 11.7655C7.5805 11.9108 7.77067 11.989 8 12Z"></path></svg>');var Wl=Go('<svg width="20" height="20" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path class="color-success" d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"></path></svg>');var ql=Uo('<div id="idvc-modal-header-sign-check"><!></div>'),Kl=Uo('<div id="idvc-modal-header-sign-info"><!></div>'),Xl=Uo('<div><div class="idvc-modal__header__body"><div><!></div> <h2 class="idvc-modal__header__content"> </h2></div> <!></div>'),Yl=Uo('<div class="idvc-modal__body"></div>'),$l=Uo('<button type="button" class="btn btn--primary" id="idvc-modal-try-again-btn"><span>Try again</span></button>'),Zl=Uo('<button type="button" class="btn btn--default" id="idvc-modal-complete-btn"><span>Complete</span></button>'),Ql=Uo("<div><!> <!></div>"),Jl=Uo("<!> <!> <!>",1);function es(e,t){dt(t,!0);let n=ur(t,"open",15,!1),o=ur(t,"closable",3,!0),r=ur(t,"loading",3,!1),i=ur(t,"type",19,()=>ul.PRIMARY),a=ur(t,"header",3,""),l=ur(t,"content",3,""),s=ur(t,"buttons",19,()=>({tryAgain:!1,complete:!1}));const c=kt(()=>i()===ul.SUCCESS),d=kt(()=>Number(s().tryAgain)+Number(s().complete));function u(){var e;n(!1),null==(e=t.onTryAgain)||e.call(t)}function f(){var e;n(!1),null==(e=t.onComplete)||e.call(t)}ll(e,{get closable(){return o()},get loading(){return r()},get centered(){return So(c)},class:"idvc-modal_validation",get open(){return n()},set open(e){n(e)},children:(e,t)=>{var r=Jl(),p=Tn(r),h=e=>{var t=Xl();let r;var l=Mn(t),s=Mn(l),d=Mn(s),u=e=>{var t=ql();!function(e){Vo(e,Wl())}(Mn(t)),Vo(e,t)},f=e=>{var t=Kl(),n=Mn(t);{let e=kt(()=>`color-${i()}`);!function(e,t){let n=ur(t,"class",3,"");var o=jl();On(()=>or(o,0,tr(n()||void 0))),Vo(e,o)}(n,{get class(){return So(e)}})}Vo(e,t)};Yo(d,e=>{So(c)?e(u):e(f,-1)});var p=Cn(An(s,2),!0),h=An(l,2);{let e=kt(()=>!o());dl(h,{get hidden(){return So(e)},onclick:()=>n(!1)})}On(()=>{r=or(t,1,"idvc-modal__header",null,r,{center:So(c)}),or(s,1,tr(["idvc-modal__header__sign",`idvc-modal__header__sign--${i()}`])),function(e,t){var n=null==t?"":"object"==typeof t?`${t}`:t;n!==(e[Xe]??(e[Xe]=e.nodeValue))&&(e[Xe]=n,e.nodeValue=`${n}`)}(p,a())}),Vo(e,t)};Yo(p,e=>{a()&&e(h)});var m=An(p,2),g=e=>{var t=Yl();Zo(t,l,!0),Vo(e,t)};Yo(m,e=>{l()&&e(g)});var v=An(m,2),y=e=>{var t=Ql();let n;var o=Mn(t),r=e=>{var t=$l();ko("click",t,u),Vo(e,t)};Yo(o,e=>{s().tryAgain&&e(r)});var i=An(o,2),a=e=>{var t=Zl();ko("click",t,f),Vo(e,t)};Yo(i,e=>{s().complete&&e(a)}),On(()=>n=or(t,1,"idvc-modal__footer",null,n,{"is-single-button":1===So(d)})),Vo(e,t)};Yo(v,e=>{So(d)>0&&e(y)}),Vo(e,r)},$$slots:{default:!0}}),ut()}Ro(["click"]);class ts extends Error{}class ns extends ts{constructor(e){super(e),this.message="This application is closed",this.name="NotValidApplicant",this.header="Request Closed",this.content="This application is closed"}}class os extends ts{constructor(e){const t="RequestValidationError"===e.code?e.code:"ValidationError";if(super(t),this.message=e.message||"Try again later",this.name=t,this.setHeader(e),this.content=Oi(e.message||"Try again later"),null==e?void 0:e.propertyErrors){const t=Object.values(e.propertyErrors).reduce((e,t)=>`${e}<li class="idvc-modal__body__list__item">${Oi(String(t))}</li>`,"");this.content=`<ol class="idvc-modal__body__list">${t}</ol>`}}setHeader({code:e=""}){e&&["ApiError","ValidationError","MultipleErrors","BadRequest"].includes(e)?this.header="Something Went Wrong!":this.header="Data invalid"}}class rs extends ts{constructor(e){const t=(null==e?void 0:e.status)??0;let n;switch(super(t.toString()),t){case 0:n="Network Error";break;case 400:n="Bad Request";break;case 401:n="Unauthorized";break;case 403:n="Forbidden";break;case 404:n="Not Found";break;case 500:n="Server Error";break;default:n="Something Went Wrong!"}this.message=t?`Status code: ${t}. ${n}`:n,this.name="HttpError",this.statusCode=t,this.header="Server Side Problems",this.content="Please try again later"}}const is={validationResponseId:0,validationRequestId:"",documentType:0,document:null,attemptsLeft:0,attemptsCount:0,status:0,validationStatus:{expired:!1,documentIsValid:!1,faceIsValid:!1},invalidDataErrors:null,faceSuccess:null,documentSuccess:null,documentHasNotExpired:null,documentValidationTests:null,callBackUrl:null,notificationType:0,isCompleted:!1},as=(e={})=>({...is,...e}),ls=as({validationResponseId:6223,validationRequestId:"8151f48d-bab1-4491-037d-08d9b3c5cfec",documentType:1,document:{abbr3Country:"USA",abbrCountry:"US",address:"25805 VAN LEUVEN ST 136",city:"LOMA LINDA",class:"C",country:"United States of America",dob:"1961-01-07",expires:"2024-01-07",eyes:"Brown",familyName:"GILMER",firstName:"DARIENNE",fullName:"DARIENNE ELIZABETH GILMER",gender:"Female",hair:"Black",height:"064 IN",id:"C3568758",idType:"DL",issued:"2019-01-07",middleName:"ELIZABETH",postalBox:null,privateName:"ELIZABETH",state:"CA",template:"09",weight:"77",zip:"92354-0000"},validationStatus:{expired:!1,documentIsValid:!0,faceIsValid:!0},documentValidationTests:[{displayName:"DMV",name:"DMVValidation",status:0,statusString:"Failed",reason:"Internal Server Error"},{displayName:"IdentiFraud",name:"IdentiFraudValidation",status:-1,statusString:"Disabled",reason:"Integration was turned off"}]});as({validationResponseId:6224,validationRequestId:"fa33df4c-7d5c-4485-037e-08d9b3c5cfec",attemptsLeft:19,status:2,invalidDataErrors:[{code:"FaceDocNotDetectError",message:"The face has not been found on the document"},{code:"PDF417Error",message:"Unable to capture data from the back of the document"},{code:"OCRError",message:"Unable to capture data from the front of the document"}]}),as({validationResponseId:6230,validationRequestId:"eae11ae1-1c8f-40bd-0381-08d9b3c5cfec",documentType:2,document:{abbr3Country:"USA",abbrCountry:"US",address:null,city:null,class:null,country:"United States of America",dob:"1986-07-24",expires:"2030-07-13",eyes:null,familyName:"LEVELS",firstName:"DAVID HARRISON",fullName:"LEVELS DAVID HARRISON",gender:"M",hair:null,height:null,id:"659328258",idType:"PASSPORT",issued:null,middleName:null,postalBox:null,privateName:null,state:null,template:null,weight:null,zip:null},attemptsLeft:18,status:1,validationStatus:{expired:!1,documentIsValid:!0,faceIsValid:!1}}),as({applicantId:"bb165b57-e8b1-412a-b848-2e4669da58e0",attemptId:71441,documentType:1,attemptsCount:5,attemptsLeft:5,status:2,validationStatus:{expired:null,documentIsValid:null,faceIsValid:!0,antiSpoofingIsValid:null},invalidDataErrors:[{code:"QualityWarning",message:null}],hasRiskEvents:!0,documentValidationTests:[]});const ss={applicantId:"bb165b57-e8b1-412a-b848-2e4669da58e0",attemptId:3,status:hl.SUCCESS,validationStatus:hl.SUCCESS,attemptsCount:1,attemptsLeft:4,faceSuccess:null,documentSuccess:null,documentHasNotExpired:null,hasRiskEvents:!1,invalidDataErrors:[],callBackUrl:null,isCompleted:!1,reference:null,referenceId:null,verificationResult:null,requestData:null,images:null},cs=(e={})=>({...ss,...e}),ds=cs({isCompleted:!0});cs({isCompleted:!0,verificationResult:{documentType:1,reference:null,document:{type:"DL",country:"United States of America",state:"CA"},faceVerificationResult:{isMatch:!0,score:92.4},parsedData:{isOcrSuccess:!0,isPdf417Success:!0,isMrzSuccess:null}}}),cs({status:hl.INVALID_DATA,validationStatus:hl.INVALID_DATA,attemptsLeft:3,invalidDataErrors:[{code:"",message:"Unable to capture data from the back of the document"},{code:"",message:"Suspicious Activity was detected"}]}),cs({status:hl.FAIL,validationStatus:hl.FAIL,attemptsLeft:2}),cs({status:hl.FAIL,validationStatus:hl.FAIL,attemptsLeft:0,isCompleted:!0}),cs({status:hl.ERROR,validationStatus:hl.ERROR,attemptsLeft:3});class us extends ts{constructor(e){if(super("FaceAuthorizationError"),this.message=e.message||"Try again later",this.name="FaceAuthorizationError",this.setHeader(e),this.content=Oi(e.message||"Try again later"),null==e?void 0:e.propertyErrors){const t=Object.values(e.propertyErrors).reduce((e,t)=>`${e}<li class="idvc-modal__body__list__item">${Oi(String(t))}</li>`,"");this.content=`<ol class="idvc-modal__body__list">${t}</ol>`}}setHeader({code:e=""}){e&&["ApiError","ValidationError","MultipleErrors","BadRequest"].includes(e)?this.header="Something Went Wrong!":this.header="Data invalid"}}const fs={[fl.LEGACY]:"api/v2",[fl.V2]:"api/2-online"},ps=new Set([wl.RequestTimeout,wl.NetworkConnectTimeoutError]),hs=(e,t)=>new Promise(n=>{const o=setTimeout(n,e);null==t||t.addEventListener("abort",()=>{clearTimeout(o),n()},{once:!0})});class ms{constructor(e,t="https://api-dvsonline.idscan.net",n=fl.LEGACY){this.idvcManifestUrl="https://neurons.cdn.idscan.net/manifest.json",this.HEADERS={"Content-Type":"application/json"},this.apiVersion=n;const o=`${t}/${fs[n]}/`;this.baseUrl=`${o}public/`,this.baseEmbeddedUrl=`${o}EmbeddedApp/`,this.HEADERS.Authorization=`Bearer ${e}`}async checkApplicantIdIsNotClosed({applicantId:e="",demoMode:t=!1,faceAuth:n=!1,faceOnly:o=!1}){if(t)return!0;const r=`${this.baseUrl}Applicants/${e}/Completed`,i=await fetch(r,{method:"GET",headers:this.HEADERS});if(i.ok&&!n)throw new ns("request closed");if(i.ok&&n)return!0;if(wl.NotFound===i.status&&n)throw new ns("validation not completed");if(wl.NotFound===i.status&&(!n||o))return!0;if(wl.BadRequest===i.status){const e=await i.json();throw new os(e)}throw new rs(i)}async getCurrentIdvcVersion(){try{const e=await fetch(this.idvcManifestUrl);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);return(await e.json()).latestVersion}catch(e){throw console.error("Error fetching data:",e),e}}async getOptions(e){const t=`${this.baseUrl}Integrations/${e}/Configuration`;try{const e=await fetch(t,{method:"GET",headers:this.HEADERS});if(e.ok)return await e.json();throw new rs(e)}catch(n){if(n instanceof rs)throw n;throw new rs}}async getOptionsByApplicant(e,t){const n=`${this.baseUrl}Integrations/${e}/${t}/ApplicantConfiguration`;try{const e=await fetch(n,{method:"GET",headers:this.HEADERS});if(e.ok)return await e.json();throw new rs(e)}catch(o){if(o instanceof rs)throw o;throw new rs}}async getConfiguration(e,t){return this.apiVersion===fl.V2&&"00000000-0000-0000-0000-000000000000"!==e?this.getOptionsByApplicant(e,t):this.getOptions(t)}async validateApplicant(e,t=!1,n=!1){if(t){const e=this.apiVersion===fl.V2?ds:ls;return Gl(e,this.apiVersion)}const o=`${this.baseUrl}Validation`,r=await fetch(o,{method:"POST",headers:this.HEADERS,body:JSON.stringify(e)});if(r.ok)return Gl(await r.json(),this.apiVersion);if(wl.BadRequest===r.status){const e=await r.json();if(n)throw new us(e);throw new os(e)}if(wl.NotFound===r.status){const e=await r.json();throw new us(e)}throw new rs(r)}async forceClose(e){const t=`${this.baseUrl}Applicants/${e}/Complete`,n=await fetch(t,{method:"POST",headers:this.HEADERS});if(n.ok)return n.json();if(wl.BadRequest===n.status){const e=await n.json();throw new os(e)}throw new rs(n)}async closeEmbeddedApplication(e){let t;try{t=await fetch(`${this.baseEmbeddedUrl}Close/${e}`,{method:"POST",headers:this.HEADERS})}catch{throw new rs}if(!t.ok)throw new rs(t)}async longPollingRequest(e,t,n){var o,r;const i=`${this.baseEmbeddedUrl}${e}`;let a=1e3;for(;!(null==(o=t.signal)?void 0:o.aborted);){let o;try{o=await fetch(i,t)}catch{}if(o&&ps.has(o.status))a=1e3;else{if(null==o?void 0:o.ok){const e=await o.json().catch(()=>{});return void((null==(r=t.signal)?void 0:r.aborted)||n(e))}if(o&&o.status<wl.InternalServerError)return void console.error(`Polling of ${e} stopped: request error ${o.status}`);await hs(a,t.signal),a=Math.min(2*a,3e4)}}}}const gs=e=>"string"==typeof e,vs=e=>gs(e)&&!!e,ys=e=>gs(e)&&/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e),bs=e=>gs(e)&&e.toLowerCase().startsWith("pk_")&&ys(e),_s=e=>gs(e)&&!!document.getElementById(e);class ws extends ts{constructor(e){super(e),this.message=`Configuration parameter error: ${e}`,this.name="ConfigError",this.header="Configuration Error!",this.content=e||""}}const Ss=[{type:"DL",steps:[{type:"front",name:"Document Front",mode:{uploader:!0,video:!0},autocaptureDelay:0,enableDesktopNotification:!1},{type:"pdf",name:"Document Back",mode:{uploader:!0,video:!0},autocaptureDelay:0,enableDesktopNotification:!1,enableFourCornerCapture:!1},{type:"face",name:"Face",mode:{uploader:!0,video:!0},autocaptureDelay:0,enableDesktopNotification:!1}]},{type:"IC",steps:[{type:"front",name:"Document Front",mode:{uploader:!0,video:!0},autocaptureDelay:0,enableDesktopNotification:!1},{type:"pdf",name:"Document Back",mode:{uploader:!0,video:!0},autocaptureDelay:0,enableDesktopNotification:!1,enableFourCornerCapture:!0},{type:"face",name:"Face",mode:{uploader:!0,video:!0},autocaptureDelay:0,enableDesktopNotification:!1}]},{type:"Passport",steps:[{type:"mrz",name:"Document Front",mode:{uploader:!0,video:!0},autocaptureDelay:0,enableDesktopNotification:!1},{type:"face",name:"Face",mode:{uploader:!0,video:!0},autocaptureDelay:0,enableDesktopNotification:!1}]},{type:"PassportCard",steps:[{type:"front",name:"Document Front",mode:{uploader:!0,video:!0},autocaptureDelay:0,enableDesktopNotification:!1},{type:"mrz",name:"Document Back",mode:{uploader:!0,video:!0},autocaptureDelay:0,enableDesktopNotification:!1},{type:"face",name:"Face",mode:{uploader:!0,video:!0},autocaptureDelay:0,enableDesktopNotification:!1}]},{type:"GreenCard",steps:[{type:"front",name:"Document Front",mode:{uploader:!0,video:!0},autocaptureDelay:0,enableDesktopNotification:!1},{type:"mrz",name:"Document Back",mode:{uploader:!0,video:!0},autocaptureDelay:0,enableDesktopNotification:!1},{type:"face",name:"Face",mode:{uploader:!0,video:!0},autocaptureDelay:0,enableDesktopNotification:!1}]},{type:"EmploymentAuthorization",steps:[{type:"front",name:"Document Front",mode:{uploader:!0,video:!0}},{type:"mrz",name:"Document Back",mode:{uploader:!0,video:!0}},{type:"face",name:"Face",mode:{uploader:!0,video:!0}}]}],Es=e=>{let t;const n=(o=e.documentTypes)?o.map(e=>({...e,steps:e.steps.filter(e=>!e.mode||Object.values(e.mode).some(Boolean))})).filter(e=>e.steps.length).map(e=>({type:e.type,steps:e.steps})):[];var o;const r=n.find(e=>"Passport"===e.type);if(r){const e={type:"mrz",name:"Passport MRZ",mode:{uploader:!0,video:!0}},t=r.steps.findIndex(e=>"front"===e.type);-1!==t&&r.steps.splice(t,1,e)}return t=0===n.length?Ss:n,t},Ms=e=>new URLSearchParams(window.location.search).get(e),Ts=({name:e,value:t,validationFunctions:n})=>{if(!n.reduce((e,n)=>e&&n(t),!0))throw new ws(e)},Cs=["applicantId","callbacks","demoMode","domainApi","apiVersion","domainId","publicKey","isAuth","faceOnly","preferApiConfig","wrapperSettings","qrCodeLinkOrigin","getApplicantIdFromURL","IDVCDownloadVersion"],As=e=>{const t={...e};return Cs.forEach(e=>delete t[e]),t},Ns=["networkUrl","chunkPublicPath"],Is=e=>{const t={};return Ns.forEach(n=>{void 0!==e[n]&&(t[n]=e[n])}),t};class xs{constructor(e){this.validate=()=>{(({demoMode:e,applicantId:t,domainId:n,domainApi:o,publicKey:r,el:i="videoCapturingEl"})=>{const a=[vs,ys];[e?null:{name:"applicantId",value:t,validationFunctions:a},{name:"domainId",value:n,validationFunctions:a},{name:"publicKey",value:r,validationFunctions:[vs,bs]},{name:"el",value:i,validationFunctions:[vs,_s]},{name:"domainApi should not be empty",value:o,validationFunctions:[vs]}].filter(Boolean).forEach(e=>Ts(e))})(this.wrapper)},this.wrapper={...e},e.getApplicantIdFromURL&&(this.wrapper.applicantId=Ms("requestId")||e.applicantId)}parseFromWeb(e){const t=JSON.parse(null==e?void 0:e.jsonSettings);this.isAuth||this.faceOnly?this.libConfig=this.faceAuthorizationConfig(t):(t.documentTypes=Es(t),this.libConfig=t),this.cssStyles=null==e?void 0:e.cssStyles,this.cssVariables=null==e?void 0:e.cssVariables,this.showQrCode=this.wrapper.preferApiConfig?t.showQrCode??!0:e.showQrCode}faceAuthorizationConfig(e){return e.isShowDocumentTypeSelect=!1,e.documentTypes=[{type:"DL",steps:[{type:"face",name:"Face",mode:{uploader:!0,video:!0}}]}],e}getFirstStepModeState(){const e=structuredClone(this.firstStepMode);return()=>e}get firstStepMode(){var e,t,n;return null==(n=null==(t=null==(e=this.libConfig)?void 0:e.documentTypes[0])?void 0:t.steps[0])?void 0:n.mode}set applicantId(e){(e=>{Ts({name:"applicantId",value:e,validationFunctions:[vs,ys]})})(e),this.wrapper.applicantId=e}get applicantId(){return this.wrapper.applicantId}get domainId(){return this.wrapper.domainId}get publicKey(){return this.wrapper.publicKey}get domainApi(){return this.wrapper.domainApi}get apiVersion(){return this.wrapper.apiVersion??fl.LEGACY}get onValidate(){var e,t;return(null==(t=null==(e=this.wrapper)?void 0:e.callbacks)?void 0:t.onValidate)?this.wrapper.callbacks.onValidate:()=>{}}get onError(){var e,t;return(null==(t=null==(e=this.wrapper)?void 0:e.callbacks)?void 0:t.onError)?this.wrapper.callbacks.onError:()=>{}}get onGetOptionsStart(){var e,t;return(null==(t=null==(e=this.wrapper)?void 0:e.callbacks)?void 0:t.onGetOptionsStart)?this.wrapper.callbacks.onGetOptionsStart:()=>{}}get onGetOptionsComplete(){var e,t;return(null==(t=null==(e=this.wrapper)?void 0:e.callbacks)?void 0:t.onGetOptionsComplete)?this.wrapper.callbacks.onGetOptionsComplete:()=>{}}set libConfig(e){var t;const n=null==(t=this.IDVCConfig)?void 0:t.licenseKey;this.wrapper.preferApiConfig?this.IDVCConfig={...this.IDVCConfig,...e,...Is(this.wrapper),...this.wrapper.callbacks}:this.IDVCConfig={...this.IDVCConfig,...e,...As(this.wrapper),...this.wrapper.callbacks},n&&(this.IDVCConfig.licenseKey=n)}get libConfig(){return this.IDVCConfig||{}}get cssStylesConfig(){return this.cssStyles}get cssVariablesConfig(){return this.cssVariables}get showQrCodeConfig(){return this.showQrCode}get mountElement(){return this.wrapper.el||"videoCapturingEl"}get demoMode(){return this.wrapper.demoMode||!1}get isAuth(){return this.wrapper.isAuth||!1}get faceOnly(){return this.wrapper.faceOnly||!1}get qrCodeLinkOrigin(){return this.wrapper.qrCodeLinkOrigin||"https://diveonline.idscan.net"}get IDVCDownloadVersion(){return e=this.wrapper.IDVCDownloadVersion||"",gs(e)&&/^([1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$/.test(e)?this.wrapper.IDVCDownloadVersion:"latest";var e}}class ks extends ts{constructor(e){super(`Failed to load IDVC from ${e}`),this.name="LibraryLoadError",this.header="Unable to Load the Verification Module",this.content="Please check your internet connection and try again"}}const Rs={back:[_l.DL,_l.InternationalId],mrz:[_l.PassportCard,_l.GreenCard,_l.Passport,_l.EmploymentAuthorization],pdf:[_l.DL,_l.InternationalId]},Ds=(e,t)=>{var n;const o=t.find(e=>Object.keys(Rs).includes(e.type));if(!o)return!1;return(null==(n=Rs[o.type])?void 0:n.some(t=>t===e))??!1},Ls=(e,t)=>{const n=t.some(e=>"mrz"===e.type);if(e===_l.Passport&&n)return!0;return!!t.find(e=>"front"===e.type)},Bs=new WeakMap;class Os{constructor(){this.injectedNodes=[],this.cleanBase64=e=>{if(!e||!Nl(e))return"";const t=e.split(/:image\/\w+;base64,/);return t.length>0?t.at(-1)??"":""},this.validationModel=e=>{var t;const n=e.documentType===_l.Passport,o=(()=>{const t=e.steps.find(e=>"pdf"===e.type||"mrz"===e.type||"back"===e.type),o=(null==t?void 0:t.mrzText)||(null==t?void 0:t.trackString)||"";return n?{img:"",trackString:o}:{img:(null==t?void 0:t.img)||"",trackString:o}})();return{frontImageBase64:this.cleanBase64((()=>{var t;if(n){const t=e.steps.find(e=>"mrz"===e.type);if(t)return t.img}return null==(t=e.steps.find(e=>"front"===e.type))?void 0:t.img})()),backOrSecondImageBase64:this.cleanBase64(null==o?void 0:o.img),faceImageBase64:this.cleanBase64(null==(t=e.steps.find(e=>"face"===e.type))?void 0:t.img),trackString:o.trackString,ssn:"",verifyFace:e.steps.some(e=>"face"===e.type),documentType:e.documentType,captureMethod:this.getCaptureMethod(e.metaData),userAgent:window.navigator.userAgent,frontEndMetadata:e.metaData,isBackOrSecondImageProcessingEnabled:Ds(e.documentType,e.steps),isOcrEnabled:Ls(e.documentType,e.steps)}}}async initializeLibrary(e,t,n){if(!this.library){if(e)await this.loadFromCDN(t);else{if(!n)throw new Error("IDVCModule must be provided when not loading from CDN");this.loadFromNodeModules(n)}this.postInitialize()}}loadFromNodeModules(e){this.library=new e(this.IdvcConfig)}async loadFromCDN(e){const t=`https://neurons.cdn.idscan.net/${e}-next/idvc.js`,n=document.createElement("script");n.src=t,n.async=!0;const o=await new Promise((e,o)=>{n.addEventListener("load",()=>e(window.IDVC)),n.addEventListener("error",()=>o(new ks(t))),document.body.append(n)}).catch(e=>{throw n.remove(),e});if(!o)throw n.remove(),new ks(t);this.injectedNodes.push(n),this.library=new o(this.IdvcConfig)}get initialized(){return!!this.library}get version(){return this.library.version}set configs({IdvcConfig:e,CSSStylesConfig:t,CSSVariablesConfig:n}){this.IdvcConfig=e,this.CSSStylesConfig=t,this.CSSVariablesConfig=n}set loading(e){this.library&&this.library.showSpinner(e)}postInitialize(){const e=(e,t)=>{const n=document.createElement("style");n.id=e,n.textContent=t??"",document.head.append(n),this.injectedNodes.push(n)};e("onboarding-css-variables",this.CSSVariablesConfig),e("onboarding-css-config",this.CSSStylesConfig)}destroy(){this.injectedNodes.forEach(e=>e.remove()),this.injectedNodes=[]}getCaptureMethod(e){var t;try{return(null==(t=JSON.parse(e??""))?void 0:t.capturedMethod)??""}catch{return""}}reloadComponent(e){this.library.reloadComponent(e)}updateDocumentTypes(e){this.library.updateDocumentTypes(e)}restart(){this.library.resetAllSteps()}showLoader(e,t,n){var o;null==(o=this.library)||o.showLoader(e,t,n)}mixSubmit(e,t){const n=this.IdvcConfig[e],o=n&&Bs.has(n)?Bs.get(n):n,r=e=>{if(o){Promise.resolve(o(e)).then(()=>{t(this.validationModel(e))}).catch(()=>{t(this.validationModel(e))})}else t(this.validationModel(e))};Bs.set(r,o),this.IdvcConfig[e]=r}}const Ps={apiKeys:["scheduling","userActivation","geolocation","webkitTemporaryStorage","webkitPersistentStorage","getGamepads","javaEnabled","sendBeacon","vibrate","clipboard","credentials","keyboard","managed","mediaDevices","storage","serviceWorker","virtualKeyboard","wakeLock","ink","hid","locks","mediaCapabilities","mediaSession","presentation","serial","usb","windowControlsOverlay","xr","userAgentData","canShare","share","clearAppBadge","getBattery","getUserMedia","requestMIDIAccess","requestMediaKeySystemAccess","setAppBadge","webkitGetUserMedia","getInstalledRelatedApps","registerProtocolHandler","unregisterProtocolHandler"]};function Fs(){const e=navigator.language;if(e&&window.Intl){const t=new Intl.DateTimeFormat(e,{dateStyle:"full",timeStyle:"long"}),{calendar:n,numberingSystem:o}=t.resolvedOptions(),{weekInfo:r,collations:i}=new Intl.Locale(e);return{locale:e,calendar:n,numberingSystem:o,weekInfo:r,collations:i}}return{}}function Us(){const{userAgent:e,cookieEnabled:t,platform:n,hardwareConcurrency:o,languages:r}=navigator;return{userAgent:e,cookieEnabled:t,platform:n,hardwareConcurrency:o,languages:r}}async function zs(e=""){if(window.crypto){const t=(new TextEncoder).encode(e),n=crypto.subtle||crypto.webkitSubtle,o=await n.digest("SHA-256",t);return Array.from(new Uint8Array(o)).map(e=>e.toString(16).padStart(2,"0")).join("")}return e}const Gs={fonts:JSON.parse('[".Aqua Kana",".Helvetica LT MM",".Times LT MM","18thCentury","8514oem","AR BERKLEY","AR JULIAN","AR PL UKai CN","AR PL UMing CN","AR PL UMing HK","AR PL UMing TW","AR PL UMing TW MBE","Aakar","Abadi MT Condensed Extra Bold","Abadi MT Condensed Light","Abyssinica SIL","AcmeFont","Adobe Arabic","Agency FB","Aharoni","Aharoni Bold","Al Bayan","Al Bayan Bold","Al Bayan Plain","Al Nile","Al Tarikh","Aldhabi","Alfredo","Algerian","Alien Encounters","Almonte Snow","American Typewriter","American Typewriter Bold","American Typewriter Condensed","American Typewriter Light","Amethyst","Andale Mono","Andale Mono Version","Andalus","Angsana New","AngsanaUPC","Ani","AnjaliOldLipi","Aparajita","Apple Braille","Apple Braille Outline 6 Dot","Apple Braille Outline 8 Dot","Apple Braille Pinpoint 6 Dot","Apple Braille Pinpoint 8 Dot","Apple Chancery","Apple Color Emoji","Apple LiGothic Medium","Apple LiSung Light","Apple SD Gothic Neo","Apple SD Gothic Neo Regular","Apple SD GothicNeo ExtraBold","Apple Symbols","AppleGothic","AppleGothic Regular","AppleMyungjo","AppleMyungjo Regular","AquaKana","Arabic Transparent","Arabic Typesetting","Arial","Arial Baltic","Arial Black","Arial Bold","Arial Bold Italic","Arial CE","Arial CYR","Arial Greek","Arial Hebrew","Arial Hebrew Bold","Arial Italic","Arial Narrow","Arial Narrow Bold","Arial Narrow Bold Italic","Arial Narrow Italic","Arial Rounded Bold","Arial Rounded MT Bold","Arial TUR","Arial Unicode MS","ArialHB","Arimo","Asimov","Autumn","Avenir","Avenir Black","Avenir Book","Avenir Next","Avenir Next Bold","Avenir Next Condensed","Avenir Next Condensed Bold","Avenir Next Demi Bold","Avenir Next Heavy","Avenir Next Regular","Avenir Roman","Ayuthaya","BN Jinx","BN Machine","BOUTON International Symbols","Baby Kruffy","Baghdad","Bahnschrift","Balthazar","Bangla MN","Bangla MN Bold","Bangla Sangam MN","Bangla Sangam MN Bold","Baskerville","Baskerville Bold","Baskerville Bold Italic","Baskerville Old Face","Baskerville SemiBold","Baskerville SemiBold Italic","Bastion","Batang","BatangChe","Bauhaus 93","Beirut","Bell MT","Bell MT Bold","Bell MT Italic","Bellerose","Berlin Sans FB","Berlin Sans FB Demi","Bernard MT Condensed","BiauKai","Big Caslon","Big Caslon Medium","Birch Std","Bitstream Charter","Bitstream Vera Sans","Blackadder ITC","Blackoak Std","Bobcat","Bodoni 72","Bodoni MT","Bodoni MT Black","Bodoni MT Poster Compressed","Bodoni Ornaments","BolsterBold","Book Antiqua","Book Antiqua Bold","Bookman Old Style","Bookman Old Style Bold","Bookshelf Symbol 7","Borealis","Bradley Hand","Bradley Hand ITC","Braggadocio","Brandish","Britannic Bold","Broadway","Browallia New","BrowalliaUPC","Brush Script","Brush Script MT","Brush Script MT Italic","Brush Script Std","Brussels","Calibri","Calibri Bold","Calibri Light","Californian FB","Calisto MT","Calisto MT Bold","Calligraphic","Calvin","Cambria","Cambria Bold","Cambria Math","Candara","Candara Bold","Candles","Carrois Gothic SC","Castellar","Centaur","Century","Century Gothic","Century Gothic Bold","Century Schoolbook","Century Schoolbook Bold","Century Schoolbook L","Chalkboard","Chalkboard Bold","Chalkboard SE","Chalkboard SE Bold","ChalkboardBold","Chalkduster","Chandas","Chaparral Pro","Chaparral Pro Light","Charlemagne Std","Charter","Chilanka","Chiller","Chinyen","Clarendon","Cochin","Cochin Bold","Colbert","Colonna MT","Comic Sans MS","Comic Sans MS Bold","Commons","Consolas","Consolas Bold","Constantia","Constantia Bold","Coolsville","Cooper Black","Cooper Std Black","Copperplate","Copperplate Bold","Copperplate Gothic Bold","Copperplate Light","Corbel","Corbel Bold","Cordia New","CordiaUPC","Corporate","Corsiva","Corsiva Hebrew","Corsiva Hebrew Bold","Courier","Courier 10 Pitch","Courier Bold","Courier New","Courier New Baltic","Courier New Bold","Courier New CE","Courier New Italic","Courier Oblique","Cracked Johnnie","Creepygirl","Curlz MT","Cursor","Cutive Mono","DFKai-SB","DIN Alternate","DIN Condensed","Damascus","Damascus Bold","Dancing Script","DaunPenh","David","Dayton","DecoType Naskh","Deja Vu","DejaVu LGC Sans","DejaVu Sans","DejaVu Sans Mono","DejaVu Serif","Deneane","Desdemona","Detente","Devanagari MT","Devanagari MT Bold","Devanagari Sangam MN","Didot","Didot Bold","Digifit","DilleniaUPC","Dingbats","Distant Galaxy","Diwan Kufi","Diwan Kufi Regular","Diwan Thuluth","Diwan Thuluth Regular","DokChampa","Dominican","Dotum","DotumChe","Droid Sans","Droid Sans Fallback","Droid Sans Mono","Dyuthi","Ebrima","Edwardian Script ITC","Elephant","Emmett","Engravers MT","Engravers MT Bold","Enliven","Eras Bold ITC","Estrangelo Edessa","Ethnocentric","EucrosiaUPC","Euphemia","Euphemia UCAS","Euphemia UCAS Bold","Eurostile","Eurostile Bold","Expressway Rg","FangSong","Farah","Farisi","Felix Titling","Fingerpop","Fixedsys","Flubber","Footlight MT Light","Forte","FrankRuehl","Frankfurter Venetian TT","Franklin Gothic Book","Franklin Gothic Book Italic","Franklin Gothic Medium","Franklin Gothic Medium Cond","Franklin Gothic Medium Italic","FreeMono","FreeSans","FreeSerif","FreesiaUPC","Freestyle Script","French Script MT","Futura","Futura Condensed ExtraBold","Futura Medium","GB18030 Bitmap","Gabriola","Gadugi","Garamond","Garamond Bold","Gargi","Garuda","Gautami","Gazzarelli","Geeza Pro","Geeza Pro Bold","Geneva","GenevaCY","Gentium","Gentium Basic","Gentium Book Basic","GentiumAlt","Georgia","Georgia Bold","Geotype TT","Giddyup Std","Gigi","Gill","Gill Sans","Gill Sans Bold","Gill Sans MT","Gill Sans MT Bold","Gill Sans MT Condensed","Gill Sans MT Ext Condensed Bold","Gill Sans MT Italic","Gill Sans Ultra Bold","Gill Sans Ultra Bold Condensed","Gisha","Glockenspiel","Gloucester MT Extra Condensed","Good Times","Goudy","Goudy Old Style","Goudy Old Style Bold","Goudy Stout","Greek Diner Inline TT","Gubbi","Gujarati MT","Gujarati MT Bold","Gujarati Sangam MN","Gujarati Sangam MN Bold","Gulim","GulimChe","GungSeo Regular","Gungseouche","Gungsuh","GungsuhChe","Gurmukhi","Gurmukhi MN","Gurmukhi MN Bold","Gurmukhi MT","Gurmukhi Sangam MN","Gurmukhi Sangam MN Bold","Haettenschweiler","Hand Me Down S (BRK)","Hansen","Harlow Solid Italic","Harrington","Harvest","HarvestItal","Haxton Logos TT","HeadLineA Regular","HeadlineA","Heavy Heap","Hei","Hei Regular","Heiti SC","Heiti SC Light","Heiti SC Medium","Heiti TC","Heiti TC Light","Heiti TC Medium","Helvetica","Helvetica Bold","Helvetica CY Bold","Helvetica CY Plain","Helvetica LT Std","Helvetica Light","Helvetica Neue","Helvetica Neue Bold","Helvetica Neue Medium","Helvetica Oblique","HelveticaCY","HelveticaNeueLT Com 107 XBlkCn","Herculanum","High Tower Text","Highboot","Hiragino Kaku Gothic Pro W3","Hiragino Kaku Gothic Pro W6","Hiragino Kaku Gothic ProN W3","Hiragino Kaku Gothic ProN W6","Hiragino Kaku Gothic Std W8","Hiragino Kaku Gothic StdN W8","Hiragino Maru Gothic Pro W4","Hiragino Maru Gothic ProN W4","Hiragino Mincho Pro W3","Hiragino Mincho Pro W6","Hiragino Mincho ProN W3","Hiragino Mincho ProN W6","Hiragino Sans GB W3","Hiragino Sans GB W6","Hiragino Sans W0","Hiragino Sans W1","Hiragino Sans W2","Hiragino Sans W3","Hiragino Sans W4","Hiragino Sans W5","Hiragino Sans W6","Hiragino Sans W7","Hiragino Sans W8","Hiragino Sans W9","Hobo Std","Hoefler Text","Hoefler Text Black","Hoefler Text Ornaments","Hollywood Hills","Hombre","Huxley Titling","ITC Stone Serif","ITF Devanagari","ITF Devanagari Marathi","ITF Devanagari Medium","Impact","Imprint MT Shadow","InaiMathi","Induction","Informal Roman","Ink Free","IrisUPC","Iskoola Pota","Italianate","Jamrul","JasmineUPC","Javanese Text","Jokerman","Juice ITC","KacstArt","KacstBook","KacstDecorative","KacstDigital","KacstFarsi","KacstLetter","KacstNaskh","KacstOffice","KacstOne","KacstPen","KacstPoster","KacstQurn","KacstScreen","KacstTitle","KacstTitleL","Kai","Kai Regular","KaiTi","Kailasa","Kailasa Regular","Kaiti SC","Kaiti SC Black","Kalapi","Kalimati","Kalinga","Kannada MN","Kannada MN Bold","Kannada Sangam MN","Kannada Sangam MN Bold","Kartika","Karumbi","Kedage","Kefa","Kefa Bold","Keraleeyam","Keyboard","Khmer MN","Khmer MN Bold","Khmer OS","Khmer OS System","Khmer Sangam MN","Khmer UI","Kinnari","Kino MT","KodchiangUPC","Kohinoor Bangla","Kohinoor Devanagari","Kohinoor Telugu","Kokila","Kokonor","Kokonor Regular","Kozuka Gothic Pr6N B","Kristen ITC","Krungthep","KufiStandardGK","KufiStandardGK Regular","Kunstler Script","Laksaman","Lao MN","Lao Sangam MN","Lao UI","LastResort","Latha","Leelawadee","Letter Gothic Std","LetterOMatic!","Levenim MT","LiHei Pro","LiSong Pro","Liberation Mono","Liberation Sans","Liberation Sans Narrow","Liberation Serif","Likhan","LilyUPC","Limousine","Lithos Pro Regular","LittleLordFontleroy","Lohit Assamese","Lohit Bengali","Lohit Devanagari","Lohit Gujarati","Lohit Gurmukhi","Lohit Hindi","Lohit Kannada","Lohit Malayalam","Lohit Odia","Lohit Punjabi","Lohit Tamil","Lohit Tamil Classical","Lohit Telugu","Loma","Lucida Blackletter","Lucida Bright","Lucida Bright Demibold","Lucida Bright Demibold Italic","Lucida Bright Italic","Lucida Calligraphy","Lucida Calligraphy Italic","Lucida Console","Lucida Fax","Lucida Fax Demibold","Lucida Fax Regular","Lucida Grande","Lucida Grande Bold","Lucida Handwriting","Lucida Handwriting Italic","Lucida Sans","Lucida Sans Demibold Italic","Lucida Sans Typewriter","Lucida Sans Typewriter Bold","Lucida Sans Unicode","Luminari","Luxi Mono","MS Gothic","MS Mincho","MS Outlook","MS PGothic","MS PMincho","MS Reference Sans Serif","MS Reference Specialty","MS Sans Serif","MS Serif","MS UI Gothic","MT Extra","MV Boli","Mael","Magneto","Maiandra GD","Malayalam MN","Malayalam MN Bold","Malayalam Sangam MN","Malayalam Sangam MN Bold","Malgun Gothic","Mallige","Mangal","Manorly","Marion","Marion Bold","Marker Felt","Marker Felt Thin","Marlett","Martina","Matura MT Script Capitals","Meera","Meiryo","Meiryo Bold","Meiryo UI","MelodBold","Menlo","Menlo Bold","Mesquite Std","Microsoft","Microsoft Himalaya","Microsoft JhengHei","Microsoft JhengHei UI","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Sans Serif","Microsoft Tai Le","Microsoft Tai Le Bold","Microsoft Uighur","Microsoft YaHei","Microsoft YaHei UI","Microsoft Yi Baiti","Minerva","MingLiU","MingLiU-ExtB","MingLiU_HKSCS","Minion Pro","Miriam","Mishafi","Mishafi Gold","Mistral","Modern","Modern No. 20","Monaco","Mongolian Baiti","Monospace","Monotype Corsiva","Monotype Sorts","MoolBoran","Moonbeam","MotoyaLMaru","Mshtakan","Mshtakan Bold","Mukti Narrow","Muna","Myanmar MN","Myanmar MN Bold","Myanmar Sangam MN","Myanmar Text","Mycalc","Myriad Arabic","Myriad Hebrew","Myriad Pro","NISC18030","NSimSun","Nadeem","Nadeem Regular","Nakula","Nanum Barun Gothic","Nanum Gothic","Nanum Myeongjo","NanumBarunGothic","NanumGothic","NanumGothic Bold","NanumGothicCoding","NanumMyeongjo","NanumMyeongjo Bold","Narkisim","Nasalization","Navilu","Neon Lights","New Peninim MT","New Peninim MT Bold","News Gothic MT","News Gothic MT Bold","Niagara Engraved","Niagara Solid","Nimbus Mono L","Nimbus Roman No9 L","Nimbus Sans L","Nimbus Sans L Condensed","Nina","Nirmala UI","Nirmala.ttf","Norasi","Noteworthy","Noteworthy Bold","Noto Color Emoji","Noto Emoji","Noto Mono","Noto Naskh Arabic","Noto Nastaliq Urdu","Noto Sans","Noto Sans Armenian","Noto Sans Bengali","Noto Sans CJK","Noto Sans Canadian Aboriginal","Noto Sans Cherokee","Noto Sans Devanagari","Noto Sans Ethiopic","Noto Sans Georgian","Noto Sans Gujarati","Noto Sans Gurmukhi","Noto Sans Hebrew","Noto Sans JP","Noto Sans KR","Noto Sans Kannada","Noto Sans Khmer","Noto Sans Lao","Noto Sans Malayalam","Noto Sans Myanmar","Noto Sans Oriya","Noto Sans SC","Noto Sans Sinhala","Noto Sans Symbols","Noto Sans TC","Noto Sans Tamil","Noto Sans Telugu","Noto Sans Thai","Noto Sans Yi","Noto Serif","Notram","November","Nueva Std","Nueva Std Cond","Nyala","OCR A Extended","OCR A Std","Old English Text MT","OldeEnglish","Onyx","OpenSymbol","OpineHeavy","Optima","Optima Bold","Optima Regular","Orator Std","Oriya MN","Oriya MN Bold","Oriya Sangam MN","Oriya Sangam MN Bold","Osaka","Osaka-Mono","OsakaMono","PCMyungjo Regular","PCmyoungjo","PMingLiU","PMingLiU-ExtB","PR Celtic Narrow","PT Mono","PT Sans","PT Sans Bold","PT Sans Caption Bold","PT Sans Narrow Bold","PT Serif","Padauk","Padauk Book","Padmaa","Pagul","Palace Script MT","Palatino","Palatino Bold","Palatino Linotype","Palatino Linotype Bold","Papyrus","Papyrus Condensed","Parchment","Parry Hotter","PenultimateLight","Perpetua","Perpetua Bold","Perpetua Titling MT","Perpetua Titling MT Bold","Phetsarath OT","Phosphate","Phosphate Inline","Phosphate Solid","PhrasticMedium","PilGi Regular","Pilgiche","PingFang HK","PingFang SC","PingFang TC","Pirate","Plantagenet Cherokee","Playbill","Poor Richard","Poplar Std","Pothana2000","Prestige Elite Std","Pristina","Purisa","QuiverItal","Raanana","Raanana Bold","Raavi","Rachana","Rage Italic","RaghuMalayalam","Ravie","Rekha","Roboto","Rockwell","Rockwell Bold","Rockwell Condensed","Rockwell Extra Bold","Rockwell Italic","Rod","Roland","Rondalo","Rosewood Std Regular","RowdyHeavy","Russel Write TT","SF Movie Poster","STFangsong","STHeiti","STIXGeneral","STIXGeneral-Bold","STIXGeneral-Regular","STIXIntegralsD","STIXIntegralsD-Bold","STIXIntegralsSm","STIXIntegralsSm-Bold","STIXIntegralsUp","STIXIntegralsUp-Bold","STIXIntegralsUp-Regular","STIXIntegralsUpD","STIXIntegralsUpD-Bold","STIXIntegralsUpD-Regular","STIXIntegralsUpSm","STIXIntegralsUpSm-Bold","STIXNonUnicode","STIXNonUnicode-Bold","STIXSizeFiveSym","STIXSizeFiveSym-Regular","STIXSizeFourSym","STIXSizeFourSym-Bold","STIXSizeOneSym","STIXSizeOneSym-Bold","STIXSizeThreeSym","STIXSizeThreeSym-Bold","STIXSizeTwoSym","STIXSizeTwoSym-Bold","STIXVariants","STIXVariants-Bold","STKaiti","STSong","STXihei","SWGamekeys MT","Saab","Sahadeva","Sakkal Majalla","Salina","Samanata","Samyak Devanagari","Samyak Gujarati","Samyak Malayalam","Samyak Tamil","Sana","Sana Regular","Sans","Sarai","Sathu","Savoye LET Plain:1.0","Sawasdee","Script","Script MT Bold","Segoe MDL2 Assets","Segoe Print","Segoe Pseudo","Segoe Script","Segoe UI","Segoe UI Emoji","Segoe UI Historic","Segoe UI Semilight","Segoe UI Symbol","Serif","Shonar Bangla","Showcard Gothic","Shree Devanagari 714","Shruti","SignPainter-HouseScript","Silom","SimHei","SimSun","SimSun-ExtB","Simplified Arabic","Simplified Arabic Fixed","Sinhala MN","Sinhala MN Bold","Sinhala Sangam MN","Sinhala Sangam MN Bold","Sitka","Skia","Skia Regular","Skinny","Small Fonts","Snap ITC","Snell Roundhand","Snowdrift","Songti SC","Songti SC Black","Songti TC","Source Code Pro","Splash","Standard Symbols L","Stencil","Stencil Std","Stephen","Sukhumvit Set","Suruma","Sylfaen","Symbol","Symbole","System","System Font","TAMu_Kadambri","TAMu_Kalyani","TAMu_Maduram","TSCu_Comic","TSCu_Paranar","TSCu_Times","Tahoma","Tahoma Negreta","TakaoExGothic","TakaoExMincho","TakaoGothic","TakaoMincho","TakaoPGothic","TakaoPMincho","Tamil MN","Tamil MN Bold","Tamil Sangam MN","Tamil Sangam MN Bold","Tarzan","Tekton Pro","Tekton Pro Cond","Tekton Pro Ext","Telugu MN","Telugu MN Bold","Telugu Sangam MN","Telugu Sangam MN Bold","Tempus Sans ITC","Terminal","Terminator Two","Thonburi","Thonburi Bold","Tibetan Machine Uni","Times","Times Bold","Times New Roman","Times New Roman Baltic","Times New Roman Bold","Times New Roman Italic","Times Roman","Tlwg Mono","Tlwg Typewriter","Tlwg Typist","Tlwg Typo","TlwgMono","TlwgTypewriter","Toledo","Traditional Arabic","Trajan Pro","Trattatello","Trebuchet MS","Trebuchet MS Bold","Tunga","Tw Cen MT","Tw Cen MT Bold","Tw Cen MT Italic","URW Bookman L","URW Chancery L","URW Gothic L","URW Palladio L","Ubuntu","Ubuntu Condensed","Ubuntu Mono","Ukai","Ume Gothic","Ume Mincho","Ume P Gothic","Ume P Mincho","Ume UI Gothic","Uming","Umpush","UnBatang","UnDinaru","UnDotum","UnGraphic","UnGungseo","UnPilgi","Untitled1","Urdu Typesetting","Uroob","Utkal","Utopia","Utsaah","Valken","Vani","Vemana2000","Verdana","Verdana Bold","Vijaya","Viner Hand ITC","Vivaldi","Vivian","Vladimir Script","Vrinda","Waree","Waseem","Waverly","Webdings","WenQuanYi Bitmap Song","WenQuanYi Micro Hei","WenQuanYi Micro Hei Mono","WenQuanYi Zen Hei","Whimsy TT","Wide Latin","Wingdings","Wingdings 2","Wingdings 3","Woodcut","X-Files","Year supply of fairy cakes","Yu Gothic","Yu Mincho","Yuppy SC","Yuppy SC Regular","Yuppy TC","Yuppy TC Regular","Zapf Dingbats","Zapfino","Zawgyi-One","gargi","lklug","mry_KacstQurn","ori1Uni"]')},Hs="40px",Vs="IDScan2023",js="sans-serif",Ws=document.body,qs={};async function Ks(){!function(){const e=document.createElement("span");e.style.fontSize=Hs,e.textContent=Vs,e.style.fontFamily=js,Ws.appendChild(e),qs[js]={width:e.offsetWidth,height:e.offsetHeight},Ws.removeChild(e)}();const e=new Array(Gs.fonts.length).fill(!1),t=new DocumentFragment,n=Gs.fonts.map(async e=>{const t=document.createElement("span");return t.style.fontSize=Hs,t.textContent=Vs,t.style.fontFamily=`"${e}",${js}`,t});return await Promise.all(n).then(n=>{n.forEach(e=>t.appendChild(e));const o=document.createElement("div");Ws.appendChild(o),o.append(t),Array.from(o.children).forEach((t,n)=>{const o=t.offsetWidth!==qs[js].width||t.offsetHeight!==qs[js].height;e[n]=o}),o.remove()}),e}const Xs={videoCodecs:["video/mp4; codecs=avc1.42E01E","video/mp4; codecs=mp4a.40.2","video/webm; codecs=vorbis","video/webm; codecs=vp8","video/webm; codecs=vp9","video/ogg; codecs=vorbis","video/ogg; codecs=theora","video/mp4; codecs=hev1","application/vnd.apple.mpegurl; codecs=avc1.42E01E, mp4a.40.2"],audioCodecs:["audio/mpeg","audio/aac","audio/alac","audio/flac","audio/ogg; codecs=vorbis","audio/ogg; codecs=opus","audio/flac","audio/webm; codecs=vorbis","audio/webm; codecs=opus","audio/mp4"],apiKeys:["history","speechSynthesis","webkitSpeechRecognition","IntersectionObserver","ResizeObserver","PushManager","TextTrack","postMessage","structuredClone","worker","SharedWorker","ServiceWorker"],inputTypes:["color","date","datetime-local","datetime","email","month","number","password","search","tel","text","time","url","week","file","range"],inputAvailableAttributes:["accept","alt","autocomplete","autofocus","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","value","width"]};function Ys(){const e=document.createElement("audio");return Xs.audioCodecs.reduce((t,n)=>(t[n]=!!e.canPlayType(n),t),{})}function $s(){const e=document.createElement("input");return{inputTypes:Xs.inputTypes.reduce((t,n)=>(e.setAttribute("type",n),t[n]=e.type===n,t),{}),inputAvailableAttributes:Xs.inputAvailableAttributes.reduce((t,n)=>(t[n]=n in e,t),{})}}const Zs={WebGLConstants:["ALIASED_LINE_WIDTH_RANGE","ALIASED_POINT_SIZE_RANGE","ALPHA_BITS","BLUE_BITS","DEPTH_BITS","GREEN_BITS","MAX_COMBINED_TEXTURE_IMAGE_UNITS","MAX_CUBE_MAP_TEXTURE_SIZE","MAX_FRAGMENT_UNIFORM_VECTORS","MAX_RENDERBUFFER_SIZE","MAX_TEXTURE_IMAGE_UNITS","MAX_TEXTURE_SIZE","MAX_VARYING_VECTORS","MAX_VERTEX_ATTRIBS","MAX_VERTEX_TEXTURE_IMAGE_UNITS","MAX_VERTEX_UNIFORM_VECTORS","MAX_VIEWPORT_DIMS","RED_BITS","RENDERER","SHADING_LANGUAGE_VERSION","STENCIL_BITS","VERSION"],WebGL2Constants:["MAX_VARYING_COMPONENTS","MAX_VERTEX_UNIFORM_COMPONENTS","MAX_VERTEX_UNIFORM_BLOCKS","MAX_VERTEX_OUTPUT_COMPONENTS","MAX_PROGRAM_TEXEL_OFFSET","MAX_3D_TEXTURE_SIZE","MAX_ARRAY_TEXTURE_LAYERS","MAX_COLOR_ATTACHMENTS","MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS","MAX_COMBINED_UNIFORM_BLOCKS","MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS","MAX_DRAW_BUFFERS","MAX_ELEMENT_INDEX","MAX_FRAGMENT_INPUT_COMPONENTS","MAX_FRAGMENT_UNIFORM_COMPONENTS","MAX_FRAGMENT_UNIFORM_BLOCKS","MAX_SAMPLES","MAX_SERVER_WAIT_TIMEOUT","MAX_TEXTURE_LOD_BIAS","MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS","MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS","MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS","MAX_UNIFORM_BLOCK_SIZE","MAX_UNIFORM_BUFFER_BINDINGS","MIN_PROGRAM_TEXEL_OFFSET","UNIFORM_BUFFER_OFFSET_ALIGNMENT"],Categories:{uniformBuffers:["MAX_UNIFORM_BUFFER_BINDINGS","MAX_UNIFORM_BLOCK_SIZE","UNIFORM_BUFFER_OFFSET_ALIGNMENT","MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS","MAX_COMBINED_UNIFORM_BLOCKS","MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS"],debugRendererInfo:["UNMASKED_VENDOR_WEBGL","UNMASKED_RENDERER_WEBGL"],fragmentShader:["MAX_FRAGMENT_UNIFORM_VECTORS","MAX_TEXTURE_IMAGE_UNITS","MAX_FRAGMENT_INPUT_COMPONENTS","MAX_FRAGMENT_UNIFORM_COMPONENTS","MAX_FRAGMENT_UNIFORM_BLOCKS","FRAGMENT_SHADER_BEST_FLOAT_PRECISION","MIN_PROGRAM_TEXEL_OFFSET","MAX_PROGRAM_TEXEL_OFFSET"],frameBuffer:["MAX_DRAW_BUFFERS","MAX_COLOR_ATTACHMENTS","MAX_SAMPLES","RGBA_BITS","DEPTH_STENCIL_BITS","MAX_RENDERBUFFER_SIZE","MAX_VIEWPORT_DIMS"],rasterizer:["ALIASED_LINE_WIDTH_RANGE","ALIASED_POINT_SIZE_RANGE"],textures:["MAX_TEXTURE_SIZE","MAX_CUBE_MAP_TEXTURE_SIZE","MAX_COMBINED_TEXTURE_IMAGE_UNITS","MAX_TEXTURE_MAX_ANISOTROPY_EXT","MAX_3D_TEXTURE_SIZE","MAX_ARRAY_TEXTURE_LAYERS","MAX_TEXTURE_LOD_BIAS"],transformFeedback:["MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS","MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS","MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS"],vertexShader:["MAX_VARYING_VECTORS","MAX_VERTEX_ATTRIBS","MAX_VERTEX_TEXTURE_IMAGE_UNITS","MAX_VERTEX_UNIFORM_VECTORS","MAX_VERTEX_UNIFORM_COMPONENTS","MAX_VERTEX_UNIFORM_BLOCKS","MAX_VERTEX_OUTPUT_COMPONENTS","MAX_VARYING_COMPONENTS","VERTEX_SHADER_BEST_FLOAT_PRECISION"],webGLContextInfo:["CONTEXT","ANTIALIAS","DIRECT_3D","MAJOR_PERFORMANCE_CAVEAT","RENDERER","SHADING_LANGUAGE_VERSION","VERSION"]}};function Qs(e){try{const t=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic");return e.getParameter(t.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}catch(t){return void console.error(t)}}function Js(e){try{const t=e.getExtension("WEBGL_draw_buffers")||e.getExtension("WEBKIT_WEBGL_draw_buffers")||e.getExtension("MOZ_WEBGL_draw_buffers");return e.getParameter(t.MAX_DRAW_BUFFERS_WEBGL)}catch(t){return}}function ec(e){const t={};try{return Object.keys(e).forEach(n=>{const o=e[n];t[n]={precision:o.precision,rangeMax:o.rangeMax,rangeMin:o.rangeMin}}),t}catch(n){return}}function tc(e,t){const n=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT"],o={};try{return n.forEach(n=>{o[n]=e.getShaderPrecisionFormat(e[t],e[n])}),o}catch(r){return}}function nc(e,t){try{const n=e.getExtension("WEBGL_debug_renderer_info");return e.getParameter(n[t])}catch(n){return}}function oc(e){return e?[...new Set(Object.values(e).filter(e=>e&&"string"!=typeof e).flat().map(e=>Number(e)||0))].sort((e,t)=>e-t):[]}function rc(e){var t;const n=[];let o={};const r=/^webgl$/.test(e)&&"WebGLRenderingContext"in window,i=/^webgl2$/.test(e)&&"WebGLRenderingContext"in window;if(!r&&!i)return n.push("not supported"),[o,n];let a,l,s,c;try{if(a=document.createElement("canvas"),l=a.getContext(e,{failIfMajorPerformanceCaveat:!0}),!l&&(s=!0,l=a.getContext(e),!l))throw new Error("context of type "+typeof l)}catch(h){return console.error(h),n.push("context blocked"),[o,n]}try{c=l.getSupportedExtensions()}catch(m){console.error(m),n.push("extensions blocked")}let d={};try{const n=ec(tc(l,"VERTEX_SHADER")),o=ec(tc(l,"FRAGMENT_SHADER"));d={ANTIALIAS:null==(t=null==l?void 0:l.getContextAttributes())?void 0:t.antialias,CONTEXT:e,MAJOR_PERFORMANCE_CAVEAT:s,MAX_TEXTURE_MAX_ANISOTROPY_EXT:Qs(l),MAX_DRAW_BUFFERS_WEBGL:Js(l),VERTEX_SHADER:n,VERTEX_SHADER_BEST_FLOAT_PRECISION:Object.values(null==n?void 0:n.HIGH_FLOAT),FRAGMENT_SHADER:o,FRAGMENT_SHADER_BEST_FLOAT_PRECISION:Object.values(null==o?void 0:o.HIGH_FLOAT),UNMASKED_VENDOR_WEBGL:nc(l,"UNMASKED_VENDOR_WEBGL"),UNMASKED_RENDERER_WEBGL:nc(l,"UNMASKED_RENDERER_WEBGL")};[...Zs.WebGLConstants,...i?Zs.WebGL2Constants:[]].forEach(e=>{const t=null==l?void 0:l.getParameter(l[e]),n=t&&(t.constructor===Float32Array||t.constructor===Int32Array);d[e]=n?[...t]:t}),d.RGBA_BITS=[d.RED_BITS,d.GREEN_BITS,d.BLUE_BITS,d.ALPHA_BITS],d.DEPTH_STENCIL_BITS=[d.DEPTH_BITS,d.STENCIL_BITS],d.DIRECT_3D=/Direct3D|D3D(\d+)/.test(d.UNMASKED_RENDERER_WEBGL)}catch(m){console.error(m),n.push("parameters blocked")}const u=String([d.UNMASKED_VENDOR_WEBGL,d.UNMASKED_RENDERER_WEBGL]),f=function(e){if(!e)return"";const t=/(adreno|amd|apple|intel|llvm|mali|microsoft|nvidia|parallels|powervr|samsung|swiftshader|virtualbox|vmware)/i;let n;return n=/radeon/i.test(e)?"AMD":/geforce/i.test(e)?"NVIDIA":(t.exec(e)||[])[0]||"Other",n}(u),p={};return d&&Object.keys(Zs.Categories).forEach(e=>{const t=Zs.Categories[e].reduce((e,t)=>(void 0!==d[t]&&(e[t]=d[t]),e),{});Object.keys(t).length&&(p[e]=t)}),o={gpuHash:d?[f,...oc(d)].join(":"):void 0,gpu:u,gpuBrand:f,...p,webGLExtensions:c},[o,n]}const ic={browserInfo:async function(){return{internationalizationInfo:Fs(),navigatorInfo:Us(),availableNavigatorApiInfo:Ps.apiKeys.reduce((e,t)=>(e[t]=!!window.navigator[t],e),{}),additionalApiInfo:["BatteryManager","NetworkInformation"].reduce((e,t)=>(e[t]=!!window.navigator[t],e),{})}},screenInfo:async function(){const{width:e,height:t,availWidth:n,availHeight:o,colorDepth:r,pixelDepth:i,orientation:a}=window.screen,{innerWidth:l,innerHeight:s,outerWidth:c,outerHeight:d}=window;return{width:e,height:t,availWidth:n,availHeight:o,colorDepth:r,pixelDepth:i,orientationAngle:a.angle,orientationType:a.type,innerWidth:l,innerHeight:s,outerWidth:c,outerHeight:d}},batteryInfo:async function(){if(null==navigator?void 0:navigator.getBattery){const{charging:e,chargingTime:t,dischargingTime:n,level:o}=await navigator.getBattery();return{charging:e,chargingTime:t,dischargingTime:n,level:o}}return{}},connectionInfo:async function(){if(navigator.connection){const{effectiveType:e,downlink:t,rtt:n,saveData:o,type:r,downlinkMax:i}=navigator.connection;return{effectiveType:e,downlink:t,rtt:n,saveData:o,type:r,downlinkMax:i}}return{}},canvasInfo:async function(){const e=document.createElement("canvas"),t=e.getContext("2d");t.canvas.width=500,t.fillStyle="rgb(255,0,255)",t.beginPath(),t.rect(20,20,150,100),t.fill(),t.stroke(),t.closePath(),t.beginPath(),t.fillStyle="rgb(0,255,255)",t.arc(50,50,50,0,2*Math.PI,!0),t.fill(),t.stroke(),t.closePath();const n="i9as..$#po((^@KbXrw!~cz#$%^@£éúöüà情報çõ能的Fr<🍏🍎🍐🍊🍋";return t.textBaseline="top",t.font="14px 'Arial'",t.textBaseline="alphabetic",t.fillStyle="rgb(255,5,5)",t.rotate(.03),t.fillText(n,4,17),t.fillStyle="#069",t.fillText(n,2,15),t.fillStyle="rgba(102, 204, 0, 0.7)",t.fillText(n,4,17),t.shadowBlur=8,t.shadowColor="red",t.fillRect(20,12,100,5),t.globalCompositeOperation="multiply",t.fillStyle="rgb(255,0,255)",t.beginPath(),t.arc(50,50,50,0,2*Math.PI,!0),t.closePath(),t.fill(),t.fillStyle="rgb(0,255,255)",t.beginPath(),t.arc(100,50,50,0,2*Math.PI,!0),t.closePath(),t.fill(),t.fillStyle="rgb(255,255,0)",t.beginPath(),t.arc(75,100,50,0,2*Math.PI,!0),t.closePath(),t.fill(),t.fillStyle="rgb(255,0,255)",t.arc(75,75,75,0,2*Math.PI,!0),t.arc(75,75,25,0,2*Math.PI,!0),t.fill("evenodd"),zs(e.toDataURL())},fontsInfo:async function(){return{availableFontsInfo:await Ks()}},HTML5Info:async function(){return{audioInfo:Ys(),availableAPIInfo:Xs.apiKeys.reduce((e,t)=>(e[t]=!!window[t],e),{}),inputInfo:$s()}},videoCodecsInfo:async function(){const e=document.createElement("video");return Xs.videoCodecs.reduce((t,n)=>(t[n]=e.canPlayType(n),t),{})},timeZoneInfo:async function(){var e,t;return window.Intl?null==(t=null==(e=Intl.DateTimeFormat())?void 0:e.resolvedOptions())?void 0:t.timeZone:""},webGLInfo:async function(){const e=await Promise.allSettled([rc("webgl"),rc("webgl2")]),[t,n]=e;return{webGL:{result:"rejected"!==t.status?t.value[0]:{},errors:"rejected"!==t.status?t.value[1]:[]},webGL2:{result:"rejected"!==n.status?n.value[0]:{},errors:"rejected"!==n.status?n.value[1]:[]}}},utils:{sha256:zs}},ac=async e=>(await Promise.allSettled(e)).map(e=>"fulfilled"===e.status?e.value:void 0),lc=async()=>({browserMetadata:await(async()=>{const[e,t,n,o]=await ac([ic.browserInfo(),ic.screenInfo(),ic.batteryInfo(),ic.connectionInfo()]),{sha256:r}=ic.utils,[i,a,l,s,c]=await ac([r(JSON.stringify(e)),r(JSON.stringify(await ic.canvasInfo())),r(JSON.stringify(await ic.fontsInfo())),r(JSON.stringify(await ic.HTML5Info())),r(JSON.stringify(await ic.webGLInfo()))]);return{navigatorInfo:null==e?void 0:e.navigatorInfo,screenInfo:t,batteryInfo:n,connectionInfo:o,browserInfo:i,canvasInfo:a,fontsInfo:l,html5Info:s,webGlInfo:c}})(),deviceMetadata:await(async()=>({timeZone:await ic.timeZoneInfo(),userLanguage:navigator.language}))()}),sc={[pl.SUCCESS]:"Verification complete!",[pl.FAIL]:"Validation failed!",[pl.INVALID_DATA]:"Data invalid!",[pl.ERROR]:"Something went wrong",[pl.COMPLETE]:"Request closed"},cc=({status:e})=>e===pl.SUCCESS?ul.SUCCESS:e===pl.ERROR?ul.PRIMARY:ul.DANGER,dc=({status:e})=>sc[e]||sc[pl.ERROR],uc=e=>{const{status:t,attemptsLeft:n,attemptsCount:o,invalidDataErrors:r,notificationType:i,code:a,message:l}=e;let s="";if((t===pl.FAIL&&n>0||t===pl.ERROR)&&(s="Please try again"),t===pl.INVALID_DATA&&(s=(e=>{const t=e.map(({code:e,message:t})=>"OCRError"===e?"Image may be blurry. Please try taking photo again in a different room or with different lighting.":t??"").filter(e=>!!e),n=t.map(e=>`<li class="idvc-modal__body__list__item">${Oi(e)}</li>`).join("");return`<ol class="idvc-modal__body__list ${1===t.length?"idvc-modal__body__list--no-numbers":""}">${n}</ol>`})(r)),t===pl.FAIL&&0===n&&o>0){const e=bl[i];s=`No more attempts can be made.<br>You have made all ${o}<br>of the allowed submissions.<br>Please have a new request link${e?`<br>${e}`:""}`}return a&&l&&(s=Oi(l)),s},fc=({status:e,isCompleted:t,attemptsLeft:n})=>{const o=!(e===pl.COMPLETE||e===pl.SUCCESS||t)&&n>0;return{tryAgain:o,complete:o}},pc=e=>{const t=(e=>{const{code:t="",message:n="",status:o,attemptsLeft:r=-1,attemptsCount:i=-1,invalidDataErrors:a=[],notificationType:l=0,isCompleted:s=!1}=e;return{code:t,message:n,status:Fl(o)??-1,isCompleted:s,attemptsLeft:r,attemptsCount:i,invalidDataErrors:a||[],notificationType:l}})(e);return{type:cc(t),header:dc(t),content:uc(t),buttons:fc(t)}},hc=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,mc=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,gc=()=>{const{userAgent:e}=navigator;return hc.test(e)||mc.test(e.slice(0,4))||["iPad Simulator","iPhone Simulator","iPad","iPhone"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document};var vc=Uo("<!> <!> <!>",1);function yc(e,t){dt(t,!0);const n=["HttpError","ValidationError","FaceAuthorizationError","LibraryLoadError"],o="Document has been submitted for processing",r="Please wait for the response",i=lc(),a=Ms("embeddedAppConnectionId")||crypto.randomUUID(),l="true"===Ms("qrCode");let s,c,d,u,f,p,h,m=!1;p=new Promise(e=>{h=e});let g=cn(null),v=cn(!1),y=cn(""),b=_n({open:!1,closable:!0,type:ul.PRIMARY,header:"",content:"",buttons:{tryAgain:!1,complete:!1}});Al({get configs(){return s},get api(){return c},get lib(){return d},embeddedAppConnectionId:a}),Dn(()=>{t.idvcElement.classList.toggle("hidden-element",!!So(g))});const _=new AbortController;async function w(){await p,d.initialized?d.restart():await E()}async function S(){try{if(s=new xs(t.config),c=new ms(s.publicKey,s.domainApi,s.apiVersion),d=new Os,s.validate(),s.onGetOptionsStart(),u=await c.getConfiguration(s.applicantId,s.domainId),s.onGetOptionsComplete(u),t.config.preferApiConfig||(u=function(e){if(!t.config.wrapperSettings)return e;const n=structuredClone(e),o=t.config.wrapperSettings;return Object.keys(o).forEach(e=>{void 0!==o[e]&&(n[e]=o[e])}),n}(u)),!(await M()))throw new Error("Applicant validation failed");u.showConsentForm&&dn(g,{bodyText:u.consentText,checkboxText:u.checkboxText},!0),await E(),b.open=!1,b.closable=!1,dn(y,s.applicantId,!0),dn(v,!(l||s.demoMode||!s.showQrCodeConfig||gc()),!0),l&&(c.longPollingRequest(`IsClosed/${s.applicantId}`,{method:"GET",signal:_.signal},()=>{var e;null==(e=document.getElementById(s.libConfig.el))||e.remove()}),c.longPollingRequest(`Open/${s.applicantId}`,{method:"POST",signal:_.signal},()=>{}))}catch(e){N(e)}}async function E(){if(s.parseFromWeb(u),d.configs={IdvcConfig:s.libConfig,CSSStylesConfig:s.cssStylesConfig,CSSVariablesConfig:s.cssVariablesConfig},d.mixSubmit("submit",T),"latest"===s.IDVCDownloadVersion&&s.libConfig.useCDN){const e=await c.getCurrentIdvcVersion();await d.initializeLibrary(s.libConfig.useCDN,e)}else await d.initializeLibrary(!!s.libConfig.useCDN,s.IDVCDownloadVersion,t.IDVCModule)}function M(){return c.checkApplicantIdIsNotClosed({applicantId:s.applicantId,demoMode:s.demoMode,faceAuth:s.isAuth,faceOnly:s.faceOnly})}async function T(e){try{d.showLoader(!0,r,o);const t={applicantId:s.applicantId,...e,documentType:s.isAuth||s.faceOnly?10:e.documentType,...await i,clientVersion:d.version,clientType:yl.WebLibStandalone};f=await c.validateApplicant({applicantId:t.applicantId,model:t,embeddedAppConnectionId:a},s.demoMode,s.isAuth),d.showLoader(!1),s.onValidate(f),b.closable=!1,A(pc(f))}catch(t){d.loading=!1,N(t)}}function C(e){f=e,s.onValidate(e),A(pc(e))}function A(e){Object.assign(b,e,{open:!0})}function N(e){if(!s)return;s.onError(e);const t=n.includes(e.name);m=t&&!(null==d?void 0:d.initialized),dn(g,null),A({type:ul.DANGER,header:e.header||"Something Went Wrong",content:e.content||"Try again later",buttons:{tryAgain:t,complete:!1}})}fr(()=>(S().then(h),()=>{_.abort(),null==d||d.destroy()}));var I={updateConfig:function(e){const t=JSON.parse(e),n=()=>{(null==d?void 0:d.initialized)&&(t.documentTypes=Es(t),s.libConfig=t,d.reloadComponent(s.libConfig))};(null==d?void 0:d.initialized)?n():p.then(n)},setApplicant:async function(e){await p,d.loading=!0;try{if(s.applicantId=e,b.open=!1,!(await M()))throw new Error("Applicant validation failed");await w(),dn(y,e,!0)}catch(t){N(t)}finally{d.loading=!1}},restart:w,showLoader:function(e,t,n){null==d||d.showLoader(e,t,n)}},x=vc(),k=Tn(x),R=e=>{Ui(e,{get bodyText(){return So(g).bodyText},get checkboxText(){return So(g).checkboxText},onProceed:()=>dn(g,null)})};Yo(k,e=>{So(g)&&e(R)});var D=An(k,2),L=e=>{var t=Ho();!function(e,t,n){var o=new Xo(e),r=!pt();Pn(()=>{var e=t();e!=e&&(e=$o),r&&null!==e&&"object"==typeof e&&(e={}),o.ensure(e,n)})}(Tn(t),()=>So(y),e=>{Vl(e,{onValidate:C})}),Vo(e,t)};return Yo(D,e=>{So(v)&&e(L)}),es(An(D,2),{get closable(){return b.closable},get type(){return b.type},get header(){return b.header},get content(){return b.content},get buttons(){return b.buttons},onTryAgain:function(){m&&(m=!1,b.closable=!0,p=S())},onComplete:async function(){try{if(d.loading=!0,!(await c.forceClose(s.applicantId)))throw new Error("Force close failed");s.onValidate({...f,forceComplete:!0}),f.status=pl.COMPLETE,A(pc(f))}catch(e){N(e)}finally{d.loading=!1}},get open(){return b.open},set open(e){b.open=e}}),Vo(e,x),ut(I)}const bc="2.11.2";return class{constructor(e,t){var n,o;console.info(`%cIDVCO version: ${bc}`,"background-color:#f48020; color:#fff; padding: 4px 8px"),"localhost"===window.location.hostname&&console.info("%c You can pass DVS Online domainApi in config. Ex: {domainApi: 'https://localhost:8000'}","background: #FFCC00; color: #000");const r=document.getElementById(e.el||"videoCapturingEl");r?(this.idvcElement=r,this.container=(e=>{const t=document.createElement("div");return t.id="idvc-wrapper-container",t.classList.add("idvc-mount-host"),e.before(t),t.append(e),t})(r),this.app=Wo(yc,{target:this.container,props:{config:e,IDVCModule:t,idvcElement:r}})):null==(o=null==(n=e.callbacks)?void 0:n.onError)||o.call(n,new ws("el"))}updateConfig(e){var t;null==(t=this.app)||t.updateConfig(e)}async setApplicant(e){var t;await(null==(t=this.app)?void 0:t.setApplicant(e))}async restart(){var e;await(null==(e=this.app)?void 0:e.restart())}showLoader(e,t,n){var o;null==(o=this.app)||o.showLoader(e,t,n)}destroy(){var e;this.app&&(!function(e,t){const n=Ko.get(e);n?(Ko.delete(e),n(t)):Promise.resolve()}(this.app),this.app=void 0,null==(e=this.idvcElement)||e.classList.remove("hidden-element"),this.container&&this.idvcElement&&this.container.replaceWith(this.idvcElement))}}});