From 9bc087d824b852884508405c032108c068ef5b95 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Tue, 26 Mar 2024 22:44:47 -0400 Subject: [PATCH] [webpages] Add annotation JS --- .../apps/webpages/static/css/recogito.min.css | 5 +++++ vrobbler/apps/webpages/static/js/recogito.min.js | 3 +++ vrobbler/templates/webpages/webpage_detail.html | 15 +++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 vrobbler/apps/webpages/static/css/recogito.min.css create mode 100644 vrobbler/apps/webpages/static/js/recogito.min.js diff --git a/vrobbler/apps/webpages/static/css/recogito.min.css b/vrobbler/apps/webpages/static/css/recogito.min.css new file mode 100644 index 0000000..de9931a --- /dev/null +++ b/vrobbler/apps/webpages/static/css/recogito.min.css @@ -0,0 +1,5 @@ +.r6o-drawing{cursor:none}.r6o-relations-layer.readonly .handle rect{pointer-events:none}.r6o-relations-layer{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.r6o-relations-layer circle{stroke:#515151;stroke-width:.4;fill:#3f3f3f}.r6o-relations-layer path{stroke:#595959;stroke-linecap:round;stroke-linejoin:round;fill:transparent}.r6o-relations-layer path.connection{stroke-width:1.6;stroke-dasharray:2,3}.r6o-relations-layer path.r6o-arrow{stroke-width:1.8;fill:#7f7f7f}.r6o-relations-layer .handle rect{stroke-width:1;stroke:#595959;fill:#fff;pointer-events:auto;cursor:pointer}.r6o-relations-layer .handle text{font-size:10px}.r6o-relations-layer .hover{stroke:rgba(63,63,63,.9);stroke-width:1.4;fill:transparent} +.r6o-btn{background-color:#4483c4;border:1px solid #4483c4;box-sizing:border-box;color:#fff;cursor:pointer;display:inline-block;font-size:14px;margin:0;outline:none;text-decoration:none;white-space:nowrap;padding:6px 18px;min-width:70px;vertical-align:middle;-webkit-border-radius:2px;-khtml-border-radius:2px;-moz-border-radius:2px;border-radius:2px}.r6o-btn *{vertical-align:middle;cursor:pointer}.r6o-btn .r6o-icon{margin-right:4px}.r6o-btn:disabled{border-color:#a3c2e2 !important;background-color:#a3c2e2 !important}.r6o-btn:hover{background-color:#4f92d7;border-color:#4f92d7}.r6o-btn.outline{border:1px solid #4483c4;color:#4483c4;background-color:transparent;text-shadow:none}.r6o-autocomplete{display:inline;position:relative}.r6o-autocomplete div[role=combobox]{display:inline}.r6o-autocomplete input{outline:none;border:none;width:80px;height:100%;line-height:14px;white-space:pre;box-sizing:border-box;background-color:transparent;font-size:14px;color:#3f3f3f}.r6o-autocomplete ul{position:absolute;margin:0;padding:0;list-style-type:none;background-color:#fff;border-radius:3px;border:1px solid #d6d7d9;box-sizing:border-box;box-shadow:0 0 20px rgba(0,0,0,.25)}.r6o-autocomplete ul:empty{display:none}.r6o-autocomplete li{box-sizing:border-box;padding:2px 12px;width:100%;cursor:pointer}.r6o-editable-text{max-height:120px;overflow:auto;outline:none;min-height:2em;font-size:14px;font-family:"Lato",sans-serif}.r6o-editable-text:empty:not(:focus):before{content:attr(data-placeholder);color:#c2c2c2}.r6o-widget.comment{font-size:14px;min-height:3em;background-color:#fff;position:relative}.r6o-widget.comment .r6o-editable-text,.r6o-widget.comment .r6o-readonly-comment{padding:10px;width:100%;box-sizing:border-box;outline:none;border:none;background-color:transparent;resize:none}.r6o-widget.comment .r6o-readonly-comment{white-space:pre-line}.r6o-widget.comment .r6o-editable-text::-webkit-input-placeholder{color:#c2c2c2}.r6o-widget.comment .r6o-editable-text::-moz-placeholder{color:#c2c2c2}.r6o-widget.comment .r6o-editable-text:-moz-placeholder{color:#c2c2c2}.r6o-widget.comment .r6o-editable-text:-ms-input-placeholder{color:#c2c2c2}.r6o-widget.comment .r6o-lastmodified{border:1px solid #e5e5e5;display:inline-block;border-radius:2px;margin:0 10px 8px 10px;padding:4px 5px;line-height:100%;font-size:12px}.r6o-widget.comment .r6o-lastmodified .r6o-lastmodified-at{color:#757575;padding-left:3px}.r6o-widget.comment .r6o-arrow-down{position:absolute;height:20px;width:20px;top:9px;right:9px;line-height:22px;background-color:#fff;text-align:center;-webkit-font-smoothing:antialiased;border:1px solid #e5e5e5;cursor:pointer;-webkit-border-radius:1px;-khtml-border-radius:1px;-moz-border-radius:1px;border-radius:1px}.r6o-widget.comment .r6o-arrow-down.r6o-menu-open{border-color:#4483c4}.r6o-widget.comment .r6o-comment-dropdown-menu{position:absolute;top:32px;right:8px;background-color:#fff;border:1px solid #e5e5e5;list-style-type:none;margin:0;padding:5px 0;z-index:9999;-webkit-box-shadow:0 2px 4px rgba(0,0,0,.2);-moz-box-shadow:0 2px 4px rgba(0,0,0,.2);box-shadow:0 2px 4px rgba(0,0,0,.2)}.r6o-widget.comment .r6o-comment-dropdown-menu li{padding:0 15px;cursor:pointer}.r6o-widget.comment .r6o-comment-dropdown-menu li:hover{background-color:#ecf0f1}.r6o-widget.comment .r6o-purposedropdown{position:relative;z-index:2}.r6o-widget.comment.editable{background-color:#ecf0f1}.r6o-widget.r6o-tag:empty{display:none}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.r6o-widget.tag .r6o-taglist li{height:27px}.r6o-widget.tag .r6o-taglist li .r6o-delete-wrapper .r6o-delete{position:relative;top:-4px}}.r6o-widget.r6o-tag{background-color:#ecf0f1;border-bottom:1px solid #e5e5e5;padding:1px 3px;display:flex}.r6o-widget.r6o-tag ul{margin:0;padding:0;list-style-type:none;z-index:1}.r6o-widget.r6o-tag ul.r6o-taglist{flex:0;white-space:nowrap}.r6o-widget.r6o-tag ul.r6o-taglist li{margin:0;display:inline-block;margin:1px 1px 1px 0;padding:0;vertical-align:middle;overflow:hidden;font-size:12px;background-color:#fff;border:1px solid #d6d7d9;cursor:pointer;position:relative;line-height:180%;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-border-radius:2px;-khtml-border-radius:2px;-moz-border-radius:2px;border-radius:2px;-webkit-box-shadow:0 0 4px rgba(0,0,0,.1);-moz-box-shadow:0 0 4px rgba(0,0,0,.1);box-shadow:0 0 4px rgba(0,0,0,.1)}.r6o-widget.r6o-tag ul.r6o-taglist li .r6o-label{padding:2px 8px;display:inline-block}.r6o-widget.r6o-tag ul.r6o-taglist li .r6o-delete-wrapper{display:inline-block;padding:2px 0;color:#fff;width:0;height:100%;background-color:#4483c4;-webkit-border-top-right-radius:2px;-webkit-border-bottom-right-radius:2px;-khtml-border-radius-topright:2px;-khtml-border-radius-bottomright:2px;-moz-border-radius-topright:2px;-moz-border-radius-bottomright:2px;border-top-right-radius:2px;border-bottom-right-radius:2px}.r6o-widget.r6o-tag ul.r6o-taglist li .r6o-delete-wrapper .r6o-delete{padding:2px 6px}.r6o-widget.r6o-tag ul.r6o-taglist li .r6o-delete-wrapper svg{vertical-align:text-top}.r6o-widget.r6o-tag ul.r6o-taglist li .r6o-delete-enter-active{width:24px;transition:width 200ms}.r6o-widget.r6o-tag ul.r6o-taglist li .r6o-delete-enter-done{width:24px}.r6o-widget.r6o-tag ul.r6o-taglist li .r6o-delete-exit{width:24px}.r6o-widget.r6o-tag ul.r6o-taglist li .r6o-delete-exit-active{width:0;transition:width 200ms}.r6o-widget.r6o-tag .r6o-autocomplete{flex:1;position:relative}.r6o-widget.r6o-tag .r6o-autocomplete li{font-size:14px}.r6o-widget.r6o-tag input{width:100%;padding:0 3px;min-width:80px;outline:none;border:none;line-height:170%;background-color:transparent;color:#3f3f3f}.r6o-widget.r6o-tag input::-webkit-input-placeholder{color:#c2c2c2}.r6o-widget.r6o-tag input::-moz-placeholder{color:#c2c2c2}.r6o-widget.r6o-tag input:-moz-placeholder{color:#c2c2c2}.r6o-widget.r6o-tag input:-ms-input-placeholder{color:#c2c2c2}.r6o-editor{position:absolute;z-index:99999;width:400px;color:#3f3f3f;opacity:0;font-family:"Lato",sans-serif;font-size:17px;line-height:27px;-webkit-transition:opacity .2s ease-in;-moz-transition:opacity .2s ease-in;transition:opacity .2s ease-in}.r6o-editor .r6o-arrow{position:absolute;overflow:hidden;top:-12px;left:12px;width:28px;height:12px;display:none}.r6o-editor .r6o-arrow:after{content:"";position:absolute;top:5px;left:5px;width:18px;height:18px;background-color:#fff;-webkit-backface-visibility:hidden;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);transform:rotate(45deg)}.r6o-editor .r6o-editor-inner{background-color:#fff;-webkit-border-radius:2px;-khtml-border-radius:2px;-moz-border-radius:2px;border-radius:2px;-webkit-box-shadow:2px 2px 42px rgba(0,0,0,.4);-moz-box-shadow:2px 2px 42px rgba(0,0,0,.4);box-shadow:2px 2px 42px rgba(0,0,0,.4)}.r6o-editor .r6o-editor-inner .r6o-widget:first-child{-webkit-border-top-left-radius:2px;-webkit-border-top-right-radius:2px;-khtml-border-radius-topleft:2px;-khtml-border-radius-topright:2px;-moz-border-radius-topleft:2px;-moz-border-radius-topright:2px;border-top-left-radius:2px;border-top-right-radius:2px}.r6o-editor .r6o-editor-inner .r6o-widget{border-bottom:1px solid #e5e5e5}.r6o-editor .r6o-footer{position:relative;text-align:right;padding:8px 0}.r6o-editor .r6o-footer .r6o-btn{margin-right:8px}.r6o-editor .r6o-footer .r6o-btn.delete-annotation{position:absolute;top:7px;left:7px;background-color:transparent;border:none;color:#4483c4;width:32px;height:32px;min-width:0;border-radius:100%;padding:0;display:flex;justify-content:center;align-items:center;-webkit-transition:all .1s ease-in;-moz-transition:all .1s ease-in;-o-transition:all .1s ease-in;transition:all .1s ease-in}.r6o-editor .r6o-footer .r6o-btn.delete-annotation:hover{color:#fff;background-color:#ef352c}@media(max-width: 640px){.r6o-editor{width:260px}}.r6o-editor.r6o-arrow-top .r6o-arrow{display:block}.r6o-editor.r6o-arrow-right{margin-left:8px}.r6o-editor.r6o-arrow-right .r6o-arrow{left:auto;right:12px}.r6o-editor.r6o-arrow-bottom .r6o-arrow{display:block;top:auto;bottom:-12px}.r6o-editor.r6o-arrow-bottom .r6o-arrow::after{top:-11px;box-shadow:none}.r6o-editor.pushed .r6o-arrow,.r6o-editor.dragged .r6o-arrow{display:none}.r6o-editor .r6o-draggable{cursor:move}.r6o-purposedropdown{width:150px;display:inline-block}.r6o-noselect{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.r6o-editor{margin-left:-12px}.r6o-annotation{background-color:rgba(255,165,0,.2);border-bottom:2px solid orange;cursor:pointer}.r6o-selection{background-color:rgba(207,207,255,.63);cursor:pointer}.r6o-hide-selection::selection,.r6o-hide-selection ::selection{background:transparent}.r6o-hide-selection::-moz-selection .r6o-hide-selection ::-moz-selection{background:transparent}.r6o-relation-editor{position:absolute;font-family:"Lato",sans-serif;font-size:17px;line-height:27px;-webkit-box-shadow:0 1px 14px rgba(0,0,0,.4);-moz-box-shadow:0 1px 14px rgba(0,0,0,.4);box-shadow:0 1px 14px rgba(0,0,0,.4);-webkit-border-radius:3px;-khtml-border-radius:3px;-moz-border-radius:3px;border-radius:3px;transform:translate(-50%, -50%);background-color:#fff}.r6o-relation-editor svg{vertical-align:middle;shape-rendering:geometricPrecision}.r6o-relation-editor *{box-sizing:border-box}.r6o-relation-editor .input-wrapper{height:34px;padding:0 6px;margin-right:68px;font-size:14px;background-color:#ecf0f1;cursor:text;-webkit-border-top-left-radius:3px;-webkit-border-bottom-left-radius:3px;-khtml-border-radius-topleft:3px;-khtml-border-radius-bottomleft:3px;-moz-border-radius-topleft:3px;-moz-border-radius-bottomleft:3px;border-top-left-radius:3px;border-bottom-left-radius:3px}.r6o-relation-editor .input-wrapper .r6o-autocomplete ul{position:relative;left:-6px}.r6o-relation-editor .buttons{position:absolute;display:inline-flex;top:0;right:0}.r6o-relation-editor .buttons span{height:34px;display:inline-block;width:34px;text-align:center;font-size:14px;cursor:pointer;padding:1px 0}.r6o-relation-editor .buttons .delete{background-color:#fff;color:#9ca4b1;border-left:1px solid #e5e5e5}.r6o-relation-editor .buttons .delete:hover{background-color:#f6f6f6}.r6o-relation-editor .buttons .ok{background-color:#4483c4;color:#fff;-webkit-border-top-right-radius:3px;-webkit-border-bottom-right-radius:3px;-khtml-border-radius-topright:3px;-khtml-border-radius-bottomright:3px;-moz-border-radius-topright:3px;-moz-border-radius-bottomright:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.r6o-relation-editor .buttons .ok:hover{background-color:#4f92d7} +.r6o-btn{background-color:#4483c4;border:1px solid #4483c4;box-sizing:border-box;color:#fff;cursor:pointer;display:inline-block;font-size:14px;margin:0;outline:none;text-decoration:none;white-space:nowrap;padding:6px 18px;min-width:70px;vertical-align:middle;-webkit-border-radius:2px;-khtml-border-radius:2px;-moz-border-radius:2px;border-radius:2px}.r6o-btn *{vertical-align:middle;cursor:pointer}.r6o-btn .r6o-icon{margin-right:4px}.r6o-btn:disabled{border-color:#a3c2e2 !important;background-color:#a3c2e2 !important}.r6o-btn:hover{background-color:#4f92d7;border-color:#4f92d7}.r6o-btn.outline{border:1px solid #4483c4;color:#4483c4;background-color:transparent;text-shadow:none}.r6o-autocomplete{display:inline;position:relative}.r6o-autocomplete div[role=combobox]{display:inline}.r6o-autocomplete input{outline:none;border:none;width:80px;height:100%;line-height:14px;white-space:pre;box-sizing:border-box;background-color:transparent;font-size:14px;color:#3f3f3f}.r6o-autocomplete ul{position:absolute;margin:0;padding:0;list-style-type:none;background-color:#fff;border-radius:3px;border:1px solid #d6d7d9;box-sizing:border-box;box-shadow:0 0 20px rgba(0,0,0,.25)}.r6o-autocomplete ul:empty{display:none}.r6o-autocomplete li{box-sizing:border-box;padding:2px 12px;width:100%;cursor:pointer}.r6o-editable-text{max-height:120px;overflow:auto;outline:none;min-height:2em;font-size:14px;font-family:"Lato",sans-serif}.r6o-editable-text:empty:not(:focus):before{content:attr(data-placeholder);color:#c2c2c2}.r6o-widget.comment{font-size:14px;min-height:3em;background-color:#fff;position:relative}.r6o-widget.comment .r6o-editable-text,.r6o-widget.comment .r6o-readonly-comment{padding:10px;width:100%;box-sizing:border-box;outline:none;border:none;background-color:transparent;resize:none}.r6o-widget.comment .r6o-readonly-comment{white-space:pre-line}.r6o-widget.comment .r6o-editable-text::-webkit-input-placeholder{color:#c2c2c2}.r6o-widget.comment .r6o-editable-text::-moz-placeholder{color:#c2c2c2}.r6o-widget.comment .r6o-editable-text:-moz-placeholder{color:#c2c2c2}.r6o-widget.comment .r6o-editable-text:-ms-input-placeholder{color:#c2c2c2}.r6o-widget.comment .r6o-lastmodified{border:1px solid #e5e5e5;display:inline-block;border-radius:2px;margin:0 10px 8px 10px;padding:4px 5px;line-height:100%;font-size:12px}.r6o-widget.comment .r6o-lastmodified .r6o-lastmodified-at{color:#757575;padding-left:3px}.r6o-widget.comment .r6o-arrow-down{position:absolute;height:20px;width:20px;top:9px;right:9px;line-height:22px;background-color:#fff;text-align:center;-webkit-font-smoothing:antialiased;border:1px solid #e5e5e5;cursor:pointer;-webkit-border-radius:1px;-khtml-border-radius:1px;-moz-border-radius:1px;border-radius:1px}.r6o-widget.comment .r6o-arrow-down.r6o-menu-open{border-color:#4483c4}.r6o-widget.comment .r6o-comment-dropdown-menu{position:absolute;top:32px;right:8px;background-color:#fff;border:1px solid #e5e5e5;list-style-type:none;margin:0;padding:5px 0;z-index:9999;-webkit-box-shadow:0 2px 4px rgba(0,0,0,.2);-moz-box-shadow:0 2px 4px rgba(0,0,0,.2);box-shadow:0 2px 4px rgba(0,0,0,.2)}.r6o-widget.comment .r6o-comment-dropdown-menu li{padding:0 15px;cursor:pointer}.r6o-widget.comment .r6o-comment-dropdown-menu li:hover{background-color:#ecf0f1}.r6o-widget.comment .r6o-purposedropdown{position:relative;z-index:2}.r6o-widget.comment.editable{background-color:#ecf0f1}.r6o-widget.r6o-tag:empty{display:none}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.r6o-widget.tag .r6o-taglist li{height:27px}.r6o-widget.tag .r6o-taglist li .r6o-delete-wrapper .r6o-delete{position:relative;top:-4px}}.r6o-widget.r6o-tag{background-color:#ecf0f1;border-bottom:1px solid #e5e5e5;padding:1px 3px;display:flex}.r6o-widget.r6o-tag ul{margin:0;padding:0;list-style-type:none;z-index:1}.r6o-widget.r6o-tag ul.r6o-taglist{flex:0;white-space:nowrap}.r6o-widget.r6o-tag ul.r6o-taglist li{margin:0;display:inline-block;margin:1px 1px 1px 0;padding:0;vertical-align:middle;overflow:hidden;font-size:12px;background-color:#fff;border:1px solid #d6d7d9;cursor:pointer;position:relative;line-height:180%;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-border-radius:2px;-khtml-border-radius:2px;-moz-border-radius:2px;border-radius:2px;-webkit-box-shadow:0 0 4px rgba(0,0,0,.1);-moz-box-shadow:0 0 4px rgba(0,0,0,.1);box-shadow:0 0 4px rgba(0,0,0,.1)}.r6o-widget.r6o-tag ul.r6o-taglist li .r6o-label{padding:2px 8px;display:inline-block}.r6o-widget.r6o-tag ul.r6o-taglist li .r6o-delete-wrapper{display:inline-block;padding:2px 0;color:#fff;width:0;height:100%;background-color:#4483c4;-webkit-border-top-right-radius:2px;-webkit-border-bottom-right-radius:2px;-khtml-border-radius-topright:2px;-khtml-border-radius-bottomright:2px;-moz-border-radius-topright:2px;-moz-border-radius-bottomright:2px;border-top-right-radius:2px;border-bottom-right-radius:2px}.r6o-widget.r6o-tag ul.r6o-taglist li .r6o-delete-wrapper .r6o-delete{padding:2px 6px}.r6o-widget.r6o-tag ul.r6o-taglist li .r6o-delete-wrapper svg{vertical-align:text-top}.r6o-widget.r6o-tag ul.r6o-taglist li .r6o-delete-enter-active{width:24px;transition:width 200ms}.r6o-widget.r6o-tag ul.r6o-taglist li .r6o-delete-enter-done{width:24px}.r6o-widget.r6o-tag ul.r6o-taglist li .r6o-delete-exit{width:24px}.r6o-widget.r6o-tag ul.r6o-taglist li .r6o-delete-exit-active{width:0;transition:width 200ms}.r6o-widget.r6o-tag .r6o-autocomplete{flex:1;position:relative}.r6o-widget.r6o-tag .r6o-autocomplete li{font-size:14px}.r6o-widget.r6o-tag input{width:100%;padding:0 3px;min-width:80px;outline:none;border:none;line-height:170%;background-color:transparent;color:#3f3f3f}.r6o-widget.r6o-tag input::-webkit-input-placeholder{color:#c2c2c2}.r6o-widget.r6o-tag input::-moz-placeholder{color:#c2c2c2}.r6o-widget.r6o-tag input:-moz-placeholder{color:#c2c2c2}.r6o-widget.r6o-tag input:-ms-input-placeholder{color:#c2c2c2}.r6o-editor{position:absolute;z-index:99999;width:400px;color:#3f3f3f;opacity:0;font-family:"Lato",sans-serif;font-size:17px;line-height:27px;-webkit-transition:opacity .2s ease-in;-moz-transition:opacity .2s ease-in;transition:opacity .2s ease-in}.r6o-editor .r6o-arrow{position:absolute;overflow:hidden;top:-12px;left:12px;width:28px;height:12px;display:none}.r6o-editor .r6o-arrow:after{content:"";position:absolute;top:5px;left:5px;width:18px;height:18px;background-color:#fff;-webkit-backface-visibility:hidden;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);transform:rotate(45deg)}.r6o-editor .r6o-editor-inner{background-color:#fff;-webkit-border-radius:2px;-khtml-border-radius:2px;-moz-border-radius:2px;border-radius:2px;-webkit-box-shadow:2px 2px 42px rgba(0,0,0,.4);-moz-box-shadow:2px 2px 42px rgba(0,0,0,.4);box-shadow:2px 2px 42px rgba(0,0,0,.4)}.r6o-editor .r6o-editor-inner .r6o-widget:first-child{-webkit-border-top-left-radius:2px;-webkit-border-top-right-radius:2px;-khtml-border-radius-topleft:2px;-khtml-border-radius-topright:2px;-moz-border-radius-topleft:2px;-moz-border-radius-topright:2px;border-top-left-radius:2px;border-top-right-radius:2px}.r6o-editor .r6o-editor-inner .r6o-widget{border-bottom:1px solid #e5e5e5}.r6o-editor .r6o-footer{position:relative;text-align:right;padding:8px 0}.r6o-editor .r6o-footer .r6o-btn{margin-right:8px}.r6o-editor .r6o-footer .r6o-btn.delete-annotation{position:absolute;top:7px;left:7px;background-color:transparent;border:none;color:#4483c4;width:32px;height:32px;min-width:0;border-radius:100%;padding:0;display:flex;justify-content:center;align-items:center;-webkit-transition:all .1s ease-in;-moz-transition:all .1s ease-in;-o-transition:all .1s ease-in;transition:all .1s ease-in}.r6o-editor .r6o-footer .r6o-btn.delete-annotation:hover{color:#fff;background-color:#ef352c}@media(max-width: 640px){.r6o-editor{width:260px}}.r6o-editor.r6o-arrow-top .r6o-arrow{display:block}.r6o-editor.r6o-arrow-right{margin-left:8px}.r6o-editor.r6o-arrow-right .r6o-arrow{left:auto;right:12px}.r6o-editor.r6o-arrow-bottom .r6o-arrow{display:block;top:auto;bottom:-12px}.r6o-editor.r6o-arrow-bottom .r6o-arrow::after{top:-11px;box-shadow:none}.r6o-editor.pushed .r6o-arrow,.r6o-editor.dragged .r6o-arrow{display:none}.r6o-editor .r6o-draggable{cursor:move}.r6o-purposedropdown{width:150px;display:inline-block}.r6o-noselect{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none} + +/*# sourceMappingURL=recogito.min.css.map*/ \ No newline at end of file diff --git a/vrobbler/apps/webpages/static/js/recogito.min.js b/vrobbler/apps/webpages/static/js/recogito.min.js new file mode 100644 index 0000000..3442d36 --- /dev/null +++ b/vrobbler/apps/webpages/static/js/recogito.min.js @@ -0,0 +1,3 @@ +/*! For license information please see recogito.min.js.LICENSE.txt */ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Recogito",[],t):"object"==typeof exports?exports.Recogito=t():e.Recogito=t()}(self,(()=>(()=>{var e={2768:(e,t,n)=>{"use strict";var r=n(7701),o=n(593),i=r("%TypeError%"),a=n(5589),u=n(7473),s=n(1564),l=n(4293),c=n(9946),f=n(9541),p=n(4597),d=n(1753),y=o("String.prototype.split"),h=Object("a"),m="a"!==h[0]||!(0 in h);e.exports=function(e){var t,n=f(this),r=m&&d(this)?y(this,""):n,o=c(r);if(!l(e))throw new i("Array.prototype.forEach callback must be a function");arguments.length>1&&(t=arguments[1]);for(var h=0;h{"use strict";var r=n(4347),o=n(4373),i=n(593),a=n(8866),u=n(2768),s=n(683),l=s(),c=n(4635),f=i("Array.prototype.slice"),p=o.apply(l),d=function(e,t){return a(e),p(e,f(arguments,1))};r(d,{getPolyfill:s,implementation:u,shim:c}),e.exports=d},683:(e,t,n)=>{"use strict";var r=n(3206),o=n(2768);e.exports=function(){var e=Array.prototype.forEach;return r(e)?e:o}},4635:(e,t,n)=>{"use strict";var r=n(4347),o=n(683);e.exports=function(){var e=o();return r(Array.prototype,{forEach:e},{forEach:function(){return Array.prototype.forEach!==e}}),e}},9584:function(e,t){var n,r;n=function(e,t){"use strict";var n,r,o="function"==typeof Map?new Map:(n=[],r=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return r[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r.splice(t,1))}}),i=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){i=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function a(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t=null,n=null,r=null,a=function(){e.clientWidth!==n&&f()},u=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",f,!1),e.removeEventListener("keyup",f,!1),e.removeEventListener("autosize:destroy",u,!1),e.removeEventListener("autosize:update",f,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),o.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",u,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",f,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",f,!1),e.addEventListener("autosize:update",f,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:u,update:f}),"vertical"===(s=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===s.resize&&(e.style.resize="horizontal"),t="content-box"===s.boxSizing?-(parseFloat(s.paddingTop)+parseFloat(s.paddingBottom)):parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth),isNaN(t)&&(t=0),f()}var s;function l(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function c(){if(0!==e.scrollHeight){var r=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+t+"px",n=e.clientWidth,r.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)}}function f(){c();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),o="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(o{"use strict";var r=n(7701),o=n(4373),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},4373:(e,t,n)=>{"use strict";var r=n(3767),o=n(7701),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),u=o("%Reflect.apply%",!0)||r.call(a,i),s=o("%Object.getOwnPropertyDescriptor%",!0),l=o("%Object.defineProperty%",!0),c=o("%Math.max%");if(l)try{l({},"a",{value:1})}catch(e){l=null}e.exports=function(e){var t=u(r,a,arguments);return s&&l&&s(t,"length").configurable&&l(t,"length",{value:1+c(0,e.length-(arguments.length-1))}),t};var f=function(){return u(r,i,arguments)};l?l(e.exports,"apply",{value:f}):e.exports.apply=f},8344:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"===r(e))if(Array.isArray(e))for(t=0;ti})},6286:e=>{e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}},4347:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n(8204),i="function"==typeof Symbol&&"symbol"===r(Symbol("foo")),a=Object.prototype.toString,u=Array.prototype.concat,s=Object.defineProperty,l=s&&function(){var e={};try{for(var t in s(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),c=function(e,t,n,r){var o;(!(t in e)||"function"==typeof(o=r)&&"[object Function]"===a.call(o)&&r())&&(l?s(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},f=function(e,t){var n=arguments.length>2?arguments[2]:{},r=o(t);i&&(r=u.call(r,Object.getOwnPropertySymbols(t)));for(var a=0;a{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){var n=!0,r=!0,o=!1;if("function"==typeof e){try{e.call("f",(function(e,r,o){"object"!==t(o)&&(n=!1)})),e.call([null],(function(){"use strict";r="string"==typeof this}),"x")}catch(e){o=!0}return!o&&n&&r}return!1}},2358:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator),i=n(9739),a=n(1493),u=n(3258),s=n(8247);e.exports=function(e){if(i(e))return e;var t,n="default";if(arguments.length>1&&(arguments[1]===String?n="string":arguments[1]===Number&&(n="number")),o&&(Symbol.toPrimitive?t=function(e,t){var n=e[t];if(null!=n){if(!a(n))throw new TypeError(n+" returned for property "+t+" of object "+e+" is not a function");return n}}(e,Symbol.toPrimitive):s(e)&&(t=Symbol.prototype.valueOf)),void 0!==t){var r=t.call(e,n);if(i(r))return r;throw new TypeError("unable to convert exotic object to primitive")}return"default"===n&&(u(e)||s(e))&&(n="string"),function(e,t){if(null==e)throw new TypeError("Cannot call method on "+e);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var n,r,o,u="string"===t?["toString","valueOf"]:["valueOf","toString"];for(o=0;o{"use strict";var r=Object.prototype.toString,o=n(9739),i=n(1493),a=function(e){var t;if((t=arguments.length>1?arguments[1]:"[object Date]"===r.call(e)?String:Number)===String||t===Number){var n,a,u=t===String?["toString","valueOf"]:["valueOf","toString"];for(a=0;a1?a(e,arguments[1]):a(e)}},9739:e=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){return null===e||"function"!=typeof e&&"object"!==t(e)}},3094:e=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function e(n,r){if(n===r)return!0;if(n&&r&&"object"==t(n)&&"object"==t(r)){if(n.constructor!==r.constructor)return!1;var o,i,a;if(Array.isArray(n)){if((o=n.length)!=r.length)return!1;for(i=o;0!=i--;)if(!e(n[i],r[i]))return!1;return!0}if(n.constructor===RegExp)return n.source===r.source&&n.flags===r.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===r.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===r.toString();if((o=(a=Object.keys(n)).length)!==Object.keys(r).length)return!1;for(i=o;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,a[i]))return!1;for(i=o;0!=i--;){var u=a[i];if(!e(n[u],r[u]))return!1}return!0}return n!=n&&r!=r}},3161:e=>{"use strict";var t=Array.prototype.slice,n=Object.prototype.toString;e.exports=function(e){var r=this;if("function"!=typeof r||"[object Function]"!==n.call(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var o,i=t.call(arguments,1),a=Math.max(0,r.length-i.length),u=[],s=0;s{"use strict";var r=n(3161);e.exports=Function.prototype.bind||r},7701:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o,i=SyntaxError,a=Function,u=TypeError,s=function(e){try{return a('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var c=function(){throw new u},f=l?function(){try{return c}catch(e){try{return l(arguments,"callee").get}catch(e){return c}}}():c,p=n(8489)(),d=Object.getPrototypeOf||function(e){return e.__proto__},y={},h="undefined"==typeof Uint8Array?o:d(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":p?d([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":y,"%AsyncGenerator%":y,"%AsyncGeneratorFunction%":y,"%AsyncIteratorPrototype%":y,"%Atomics%":"undefined"==typeof Atomics?o:Atomics,"%BigInt%":"undefined"==typeof BigInt?o:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?o:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?o:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?o:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":y,"%Int8Array%":"undefined"==typeof Int8Array?o:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?o:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?d(d([][Symbol.iterator]())):o,"%JSON%":"object"===("undefined"==typeof JSON?"undefined":r(JSON))?JSON:o,"%Map%":"undefined"==typeof Map?o:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p?d((new Map)[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?o:Promise,"%Proxy%":"undefined"==typeof Proxy?o:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?o:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?o:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p?d((new Set)[Symbol.iterator]()):o,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?d(""[Symbol.iterator]()):o,"%Symbol%":p?Symbol:o,"%SyntaxError%":i,"%ThrowTypeError%":f,"%TypedArray%":h,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?o:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?o:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?o:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?o:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?o:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?o:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?o:WeakSet},v=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(n=d(o.prototype))}return m[t]=n,n},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=n(3767),S=n(1888),O=g.call(Function.call,Array.prototype.concat),w=g.call(Function.apply,Array.prototype.splice),_=g.call(Function.call,String.prototype.replace),E=g.call(Function.call,String.prototype.slice),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,x=/\\(\\)?/g,C=function(e,t){var n,r=e;if(S(b,r)&&(r="%"+(n=b[r])[0]+"%"),S(m,r)){var o=m[r];if(o===y&&(o=v(r)),void 0===o&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');var n=function(e){var t=E(e,0,1),n=E(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return _(e,A,(function(e,t,n,o){r[r.length]=n?_(o,x,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=C("%"+r+"%",t),a=o.name,s=o.value,c=!1,f=o.alias;f&&(r=f[0],w(n,O([0,1],f)));for(var p=1,d=!0;p=n.length){var b=l(s,y);s=(d=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:s[y]}else d=S(s,y),s=s[y];d&&!c&&(m[a]=s)}}return s}},8489:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o="undefined"!=typeof Symbol&&Symbol,i=n(7027);e.exports=function(){return"function"==typeof o&&"function"==typeof Symbol&&"symbol"===r(o("foo"))&&"symbol"===r(Symbol("bar"))&&i()}},7027:e=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"===t(Symbol.iterator))return!0;var e={},n=Symbol("test"),r=Object(n);if("string"==typeof n)return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(n in e[n]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==n)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,n);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},1191:(e,t,n)=>{"use strict";var r=n(7027);e.exports=function(){return r()&&!!Symbol.toStringTag}},1888:(e,t,n)=>{"use strict";var r=n(3767);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},7480:(e,t,n)=>{"use strict";var r=n(1069),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function s(e){return r.isMemo(e)?a:u[e.$$typeof]||o}u[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[r.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,y=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(y){var o=d(n);o&&o!==y&&e(t,o,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var u=s(t),h=s(n),m=0;m{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,u=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,y=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,S=r?Symbol.for("react.responder"):60118,O=r?Symbol.for("react.scope"):60119;function w(e){if("object"===n(e)&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case p:case a:case s:case u:case y:return e;default:switch(e=e&&e.$$typeof){case c:case d:case v:case m:case l:return e;default:return t}}case i:return t}}}function _(e){return w(e)===p}t.AsyncMode=f,t.ConcurrentMode=p,t.ContextConsumer=c,t.ContextProvider=l,t.Element=o,t.ForwardRef=d,t.Fragment=a,t.Lazy=v,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=u,t.Suspense=y,t.isAsyncMode=function(e){return _(e)||w(e)===f},t.isConcurrentMode=_,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"===n(e)&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===u},t.isSuspense=function(e){return w(e)===y},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===s||e===u||e===y||e===h||"object"===n(e)&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===g||e.$$typeof===S||e.$$typeof===O||e.$$typeof===b)},t.typeOf=w},1069:(e,t,n)=>{"use strict";e.exports=n(7995)},1493:e=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}var n,r,o=Function.prototype.toString,i="object"===("undefined"==typeof Reflect?"undefined":t(Reflect))&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{n=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i((function(){throw 42}),null,n)}catch(e){e!==r&&(i=null)}else i=null;var a=/^\s*class\b/,u=function(e){try{var t=o.call(e);return a.test(t)}catch(e){return!1}},s=Object.prototype.toString,l="function"==typeof Symbol&&!!Symbol.toStringTag,c="object"===("undefined"==typeof document?"undefined":t(document))&&void 0===document.all&&void 0!==document.all?document.all:{};e.exports=i?function(e){if(e===c)return!0;if(!e)return!1;if("function"!=typeof e&&"object"!==t(e))return!1;if("function"==typeof e&&!e.prototype)return!0;try{i(e,null,n)}catch(e){if(e!==r)return!1}return!u(e)}:function(e){if(e===c)return!0;if(!e)return!1;if("function"!=typeof e&&"object"!==t(e))return!1;if("function"==typeof e&&!e.prototype)return!0;if(l)return function(e){try{return!u(e)&&(o.call(e),!0)}catch(e){return!1}}(e);if(u(e))return!1;var n=s.call(e);return"[object Function]"===n||"[object GeneratorFunction]"===n}},3258:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=Date.prototype.getDay,i=Object.prototype.toString,a=n(1191)();e.exports=function(e){return"object"===r(e)&&null!==e&&(a?function(e){try{return o.call(e),!0}catch(e){return!1}}(e):"[object Date]"===i.call(e))}},1753:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=String.prototype.valueOf,i=Object.prototype.toString,a=n(1191)();e.exports=function(e){return"string"==typeof e||"object"===r(e)&&(a?function(e){try{return o.call(e),!0}catch(e){return!1}}(e):"[object String]"===i.call(e))}},8247:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=Object.prototype.toString;if(n(8489)()){var i=Symbol.prototype.toString,a=/^Symbol\(.*\)$/;e.exports=function(e){if("symbol"===r(e))return!0;if("[object Symbol]"!==o.call(e))return!1;try{return function(e){return"symbol"===r(e.valueOf())&&a.test(i.call(e))}(e)}catch(e){return!1}}}else e.exports=function(e){return!1}},7e3:(e,t,n)=>{var r=n(6286);e.exports=function(e){var t=r(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var o=e.style.lineHeight;e.style.lineHeight=t+"em",t=r(e,"line-height"),n=parseFloat(t,10),o?e.style.lineHeight=o:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(n*=4,n/=3):-1!==t.indexOf("mm")?(n*=96,n/=25.4):-1!==t.indexOf("cm")?(n*=96,n/=2.54):-1!==t.indexOf("in")?n*=96:-1!==t.indexOf("pc")&&(n*=16),n=Math.round(n),"normal"===t){var i=e.nodeName,a=document.createElement(i);a.innerHTML=" ","TEXTAREA"===i.toUpperCase()&&a.setAttribute("rows","1");var u=r(e,"font-size");a.style.fontSize=u,a.style.padding="0px",a.style.border="0px";var s=document.body;s.appendChild(a),n=a.offsetHeight,s.removeChild(a)}return n}},8436:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n(2867),i=n(2940),a=n(2459),u=n(1888),s=n(2293),l=function(e){a(!1,e)},c=String.prototype.replace,f=String.prototype.split,p="||||",d=function(e){var t=e%100,n=t%10;return 11!==t&&1===n?0:2<=n&&n<=4&&!(t>=12&&t<=14)?1:2},y={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:d,chinese:function(){return 0},croatian:d,french:function(e){return e>=2?1:0},german:function(e){return 1!==e?1:0},russian:d,lithuanian:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return 1===e?0:e>=2&&e<=4?1:2},polish:function(e){if(1===e)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!=1||e%100==11?1:0},slovenian:function(e){var t=e%100;return 1===t?0:2===t?1:3===t||4===t?2:3}},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is"],slovenian:["sl-SL"]}};function h(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var m,v=(m={},function(e,t){var n=m[t];return n&&!e.pluralTypes[n]&&(n=null,m[t]=n),n||(n=function(e,t){var n,r,a=(n=e.pluralTypeToLanguages,r={},o(i(n),(function(e){var t=e[0],n=e[1];o(n,(function(e){r[e]=t}))})),r);return a[t]||a[f.call(t,/-/,1)[0]]||a.en}(e,t))&&(m[t]=n),n}),b=/%\{(.*?)\}/g;function g(e,t,n,r,o){if("string"!=typeof e)throw new TypeError("Polyglot.transformPhrase expects argument #1 to be string");if(null==t)return e;var i=e,a=r||b,l="number"==typeof t?{smart_count:t}:t;if(null!=l.smart_count&&e){var d=o||y,h=f.call(e,p),m=function(e,t,n){return e.pluralTypes[t](n)}(d,v(d,n||"en"),l.smart_count);i=s(h[m]||h[0])}return c.call(i,a,(function(e,t){return u(l,t)&&null!=l[t]?l[t]:e}))}function S(e){var t=e||{};this.phrases={},this.extend(t.phrases||{}),this.currentLocale=t.locale||"en";var n=t.allowMissing?g:null;this.onMissingKey="function"==typeof t.onMissingKey?t.onMissingKey:n,this.warn=t.warn||l,this.tokenRegex=function(e){var t=e&&e.prefix||"%{",n=e&&e.suffix||"}";if(t===p||n===p)throw new RangeError('"'+p+'" token is reserved for pluralization');return new RegExp(h(t)+"(.*?)"+h(n),"g")}(t.interpolation),this.pluralRules=t.pluralRules||y}S.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale},S.prototype.extend=function(e,t){o(i(e||{}),(function(e){var n=e[0],o=e[1],i=t?t+"."+n:n;"object"===r(o)?this.extend(o,i):this.phrases[i]=o}),this)},S.prototype.unset=function(e,t){"string"==typeof e?delete this.phrases[e]:o(i(e||{}),(function(e){var n=e[0],o=e[1],i=t?t+"."+n:n;"object"===r(o)?this.unset(o,i):delete this.phrases[i]}),this)},S.prototype.clear=function(){this.phrases={}},S.prototype.replace=function(e){this.clear(),this.extend(e)},S.prototype.t=function(e,t){var n,r,o=null==t?{}:t;return"string"==typeof this.phrases[e]?n=this.phrases[e]:"string"==typeof o._?n=o._:this.onMissingKey?r=(0,this.onMissingKey)(e,o,this.currentLocale,this.tokenRegex,this.pluralRules):(this.warn('Missing translation for key: "'+e+'"'),r=e),"string"==typeof n&&(r=g(n,o,this.currentLocale,this.tokenRegex,this.pluralRules)),r},S.prototype.has=function(e){return u(this.phrases,e)},S.transformPhrase=function(e,t,n){return g(e,t,n)},e.exports=S},7594:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=o&&i&&"function"==typeof i.get?i.get:null,u=o&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"==typeof l.get?l.get:null,f=s&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,v=Function.prototype.toString,b=String.prototype.match,g="function"==typeof BigInt?BigInt.prototype.valueOf:null,S=Object.getOwnPropertySymbols,O="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?Symbol.prototype.toString:null,w="function"==typeof Symbol&&"object"===r(Symbol.iterator),_=Object.prototype.propertyIsEnumerable,E=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null),A=n(4654).custom,x=A&&D(A)?A:null,C="function"==typeof Symbol&&void 0!==Symbol.toStringTag?Symbol.toStringTag:null;function P(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function j(e){return String(e).replace(/"/g,""")}function k(e){return!("[object Array]"!==T(e)||C&&"object"===r(e)&&C in e)}function D(e){if(w)return e&&"object"===r(e)&&e instanceof Symbol;if("symbol"===r(e))return!0;if(!e||"object"!==r(e)||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,o,i){var s=n||{};if(R(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(R(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=!R(s,"customInspect")||s.customInspect;if("boolean"!=typeof l&&"symbol"!==l)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(R(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return I(t,s);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var m=void 0===s.depth?5:s.depth;if(void 0===o&&(o=0),o>=m&&m>0&&"object"===r(t))return k(t)?"[Array]":"[Object]";var S,_=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=Array(e.indent+1).join(" ")}return{base:n,prev:Array(t+1).join(n)}}(s,o);if(void 0===i)i=[];else if(N(i,t)>=0)return"[Circular]";function A(t,n,r){if(n&&(i=i.slice()).push(n),r){var a={depth:s.depth};return R(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),e(t,a,o+1,i)}return e(t,s,o+1,i)}if("function"==typeof t){var M=function(e){if(e.name)return e.name;var t=b.call(v.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),L=H(t,A);return"[Function"+(M?": "+M:" (anonymous)")+"]"+(L.length>0?" { "+L.join(", ")+" }":"")}if(D(t)){var z=w?String(t).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):O.call(t);return"object"!==r(t)||w?z:F(z)}if((S=t)&&"object"===r(S)&&("undefined"!=typeof HTMLElement&&S instanceof HTMLElement||"string"==typeof S.nodeName&&"function"==typeof S.getAttribute)){for(var W="<"+String(t.nodeName).toLowerCase(),$=t.attributes||[],Y=0;Y<$.length;Y++)W+=" "+$[Y].name+"="+P(j($[Y].value),"double",s);return W+=">",t.childNodes&&t.childNodes.length&&(W+="..."),W+""}if(k(t)){if(0===t.length)return"[]";var X=H(t,A);return _&&!function(e){for(var t=0;t=0)return!1;return!0}(X)?"["+V(X,_)+"]":"[ "+X.join(", ")+" ]"}if(function(e){return!("[object Error]"!==T(e)||C&&"object"===r(e)&&C in e)}(t)){var Z=H(t,A);return 0===Z.length?"["+String(t)+"]":"{ ["+String(t)+"] "+Z.join(", ")+" }"}if("object"===r(t)&&l){if(x&&"function"==typeof t[x])return t[x]();if("symbol"!==l&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!a||!e||"object"!==r(e))return!1;try{a.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var q=[];return u.call(t,(function(e,n){q.push(A(n,t,!0)+" => "+A(e,t))})),B("Map",a.call(t),q,_)}if(function(e){if(!c||!e||"object"!==r(e))return!1;try{c.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var G=[];return f.call(t,(function(e){G.push(A(e,t))})),B("Set",c.call(t),G,_)}if(function(e){if(!p||!e||"object"!==r(e))return!1;try{p.call(e,p);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return U("WeakMap");if(function(e){if(!d||!e||"object"!==r(e))return!1;try{d.call(e,d);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return U("WeakSet");if(function(e){if(!y||!e||"object"!==r(e))return!1;try{return y.call(e),!0}catch(e){}return!1}(t))return U("WeakRef");if(function(e){return!("[object Number]"!==T(e)||C&&"object"===r(e)&&C in e)}(t))return F(A(Number(t)));if(function(e){if(!e||"object"!==r(e)||!g)return!1;try{return g.call(e),!0}catch(e){}return!1}(t))return F(A(g.call(t)));if(function(e){return!("[object Boolean]"!==T(e)||C&&"object"===r(e)&&C in e)}(t))return F(h.call(t));if(function(e){return!("[object String]"!==T(e)||C&&"object"===r(e)&&C in e)}(t))return F(A(String(t)));if(!function(e){return!("[object Date]"!==T(e)||C&&"object"===r(e)&&C in e)}(t)&&!function(e){return!("[object RegExp]"!==T(e)||C&&"object"===r(e)&&C in e)}(t)){var J=H(t,A),K=E?E(t)===Object.prototype:t instanceof Object||t.constructor===Object,Q=t instanceof Object?"":"null prototype",ee=!K&&C&&Object(t)===t&&C in t?T(t).slice(8,-1):Q?"Object":"",te=(K||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(ee||Q?"["+[].concat(ee||[],Q||[]).join(": ")+"] ":"");return 0===J.length?te+"{}":_?te+"{"+V(J,_)+"}":te+"{ "+J.join(", ")+" }"}return String(t)};var M=Object.prototype.hasOwnProperty||function(e){return e in this};function R(e,t){return M.call(e,t)}function T(e){return m.call(e)}function N(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return I(e.slice(0,t.maxStringLength),t)+r}return P(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,L),"single",t)}function L(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+t.toString(16).toUpperCase()}function F(e){return"Object("+e+")"}function U(e){return e+" { ? }"}function B(e,t,n,r){return e+" ("+t+") {"+(r?V(n,r):n.join(", "))+"}"}function V(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+e.join(","+n)+"\n"+t.prev}function H(e,t){var n=k(e),r=[];if(n){r.length=e.length;for(var o=0;o{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o;if(!Object.keys){var i=Object.prototype.hasOwnProperty,a=Object.prototype.toString,u=n(8013),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),c=s.call((function(){}),"prototype"),f=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},y=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"===r(window[e]))try{p(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();o=function(e){var t=null!==e&&"object"===r(e),n="[object Function]"===a.call(e),o=u(e),s=t&&"[object String]"===a.call(e),d=[];if(!t&&!n&&!o)throw new TypeError("Object.keys called on a non-object");var h=c&&n;if(s&&e.length>0&&!i.call(e,0))for(var m=0;m0)for(var v=0;v{"use strict";var r=Array.prototype.slice,o=n(8013),i=Object.keys,a=i?function(e){return i(e)}:n(1561),u=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return o(e)?u(r.call(e)):u(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},8013:e=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}var n=Object.prototype.toString;e.exports=function(e){var r=n.call(e),o="[object Arguments]"===r;return o||(o="[object Array]"!==r&&null!==e&&"object"===t(e)&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===n.call(e.callee)),o}},3167:(e,t,n)=>{"use strict";var r=n(8866),o=n(593),i=o("Object.prototype.propertyIsEnumerable"),a=o("Array.prototype.push");e.exports=function(e){var t=r(e),n=[];for(var o in t)i(t,o)&&a(n,[o,t[o]]);return n}},2940:(e,t,n)=>{"use strict";var r=n(4347),o=n(4373),i=n(3167),a=n(3365),u=n(463),s=o(a(),Object);r(s,{getPolyfill:a,implementation:i,shim:u}),e.exports=s},3365:(e,t,n)=>{"use strict";var r=n(3167);e.exports=function(){return"function"==typeof Object.entries?Object.entries:r}},463:(e,t,n)=>{"use strict";var r=n(3365),o=n(4347);e.exports=function(){var e=r();return o(Object,{entries:e},{entries:function(){return Object.entries!==e}}),e}},4741:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Children:()=>Ae,Component:()=>g,Fragment:()=>b,PureComponent:()=>ge,StrictMode:()=>ot,Suspense:()=>Pe,SuspenseList:()=>De,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>qe,cloneElement:()=>Qe,createContext:()=>V,createElement:()=>h,createFactory:()=>Je,createPortal:()=>Ne,createRef:()=>v,default:()=>it,findDOMNode:()=>tt,flushSync:()=>rt,forwardRef:()=>_e,hydrate:()=>Be,isValidElement:()=>Ke,lazy:()=>ke,memo:()=>Se,render:()=>Ue,unmountComponentAtNode:()=>et,unstable_batchedUpdates:()=>nt,useCallback:()=>ae,useContext:()=>ue,useDebugValue:()=>se,useEffect:()=>te,useErrorBoundary:()=>le,useImperativeHandle:()=>oe,useLayoutEffect:()=>ne,useMemo:()=>ie,useReducer:()=>ee,useRef:()=>re,useState:()=>Q,version:()=>Ge});var r,o,i,a,u,s,l,c={},f=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(e,t){for(var n in t)e[n]=t[n];return e}function y(e){var t=e.parentNode;t&&t.removeChild(e)}function h(e,t,n){var o,i,a,u={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];if(arguments.length>2&&(u.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===u[a]&&(u[a]=e.defaultProps[a]);return m(e,u,o,i,null)}function m(e,t,n,r,a){var u={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++i:a};return null!=o.vnode&&o.vnode(u),u}function v(){return{current:null}}function b(e){return e.children}function g(e,t){this.props=e,this.context=t}function S(e,t){if(null==t)return e.__?S(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?m(h.type,h.props,h.key,null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(y=w[p])||y&&h.key==y.key&&h.type===y.type)w[p]=void 0;else for(d=0;d<_;d++){if((y=w[d])&&h.key==y.key&&h.type===y.type){w[d]=void 0;break}y=null}M(e,h,y=y||c,o,i,a,u,s,l),v=h.__e,(d=h.ref)&&y.ref!=d&&(O||(O=[]),y.ref&&O.push(y.ref,null,h),O.push(d,h.__c||v,h)),null!=v?(null==g&&(g=v),"function"==typeof h.type&&null!=h.__k&&h.__k===y.__k?h.__d=s=A(h,s,e):s=C(e,h,y,w,v,s),l||"option"!==n.type?"function"==typeof n.type&&(n.__d=s):e.value=""):s&&y.__e==s&&s.parentNode!=e&&(s=S(y))}for(n.__e=g,p=_;p--;)null!=w[p]&&("function"==typeof n.type&&null!=w[p].__e&&w[p].__e==n.__d&&(n.__d=S(r,p+1)),I(w[p],w[p]));if(O)for(p=0;p2&&(u.children=arguments.length>3?r.call(arguments,2):n),m(e.type,u,o||e.key,i||e.ref,null)}function V(e,t){var n={__c:t="__cC"+l++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(w)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=f.slice,o={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e}},i=0,g.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof e&&(e=e(d({},n),this.props)),e&&d(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),w(this))},g.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),w(this))},g.prototype.render=b,a=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,_.__r=0,l=0;var H,z,W,$=0,Y=[],X=o.__b,Z=o.__r,q=o.diffed,G=o.__c,J=o.unmount;function K(e,t){o.__h&&o.__h(z,e,$||t),$=0;var n=z.__H||(z.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Q(e){return $=1,ee(he,e)}function ee(e,t,n){var r=K(H++,2);return r.t=e,r.__c||(r.__=[n?n(t):he(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=z),r.__}function te(e,t){var n=K(H++,3);!o.__s&&ye(n.__H,t)&&(n.__=e,n.__H=t,z.__H.__h.push(n))}function ne(e,t){var n=K(H++,4);!o.__s&&ye(n.__H,t)&&(n.__=e,n.__H=t,z.__h.push(n))}function re(e){return $=5,ie((function(){return{current:e}}),[])}function oe(e,t,n){$=6,ne((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==n?n:n.concat(e))}function ie(e,t){var n=K(H++,7);return ye(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function ae(e,t){return $=8,ie((function(){return e}),t)}function ue(e){var t=z.context[e.__c],n=K(H++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(z)),t.props.value):e.__}function se(e,t){o.useDebugValue&&o.useDebugValue(t?t(e):e)}function le(e){var t=K(H++,10),n=Q();return t.__=e,z.componentDidCatch||(z.componentDidCatch=function(e){t.__&&t.__(e),n[1](e)}),[n[0],function(){n[1](void 0)}]}function ce(){Y.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(pe),e.__H.__h.forEach(de),e.__H.__h=[]}catch(t){e.__H.__h=[],o.__e(t,e.__v)}})),Y=[]}o.__b=function(e){z=null,X&&X(e)},o.__r=function(e){Z&&Z(e),H=0;var t=(z=e.__c).__H;t&&(t.__h.forEach(pe),t.__h.forEach(de),t.__h=[])},o.diffed=function(e){q&&q(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==Y.push(t)&&W===o.requestAnimationFrame||((W=o.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),fe&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);fe&&(t=requestAnimationFrame(n))})(ce)),z=void 0},o.__c=function(e,t){t.some((function(e){try{e.__h.forEach(pe),e.__h=e.__h.filter((function(e){return!e.__||de(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],o.__e(n,e.__v)}})),G&&G(e,t)},o.unmount=function(e){J&&J(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(pe)}catch(e){o.__e(e,t.__v)}};var fe="function"==typeof requestAnimationFrame;function pe(e){var t=z;"function"==typeof e.__c&&e.__c(),z=t}function de(e){var t=z;e.__c=e.__(),z=t}function ye(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function he(e,t){return"function"==typeof t?t(e):t}function me(e){return me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},me(e)}function ve(e,t){for(var n in t)e[n]=t[n];return e}function be(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function ge(e){this.props=e}function Se(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:be(this.props,e)}function r(t){return this.shouldComponentUpdate=n,h(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(ge.prototype=new g).isPureReactComponent=!0,ge.prototype.shouldComponentUpdate=function(e,t){return be(this.props,e)||be(this.state,t)};var Oe=o.__b;o.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Oe&&Oe(e)};var we="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function _e(e){function t(t,n){var r=ve({},t);return delete r.ref,e(r,(n=t.ref||n)&&("object"!=me(n)||"current"in n)?n:null)}return t.$$typeof=we,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Ee=function(e,t){return null==e?null:x(x(e).map(t))},Ae={map:Ee,forEach:Ee,count:function(e){return e?x(e).length:0},only:function(e){var t=x(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:x},xe=o.__e;o.__e=function(e,t,n){if(e.then)for(var r,o=t;o=o.__;)if((r=o.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t);xe(e,t,n)};var Ce=o.unmount;function Pe(){this.__u=0,this.t=null,this.__b=null}function je(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function ke(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return h(n,o)}return o.displayName="Lazy",o.__f=!0,o}function De(){this.u=null,this.o=null}o.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Ce&&Ce(e)},(Pe.prototype=new g).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=je(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(u):u())};n.__R=a;var u=function(){if(! --r.__u){if(r.state.__e){var e=r.state.__e;r.__v.__k[0]=function e(t,n,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__e:r.__b=null});t=r.t.pop();)t.forceUpdate()}},s=!0===t.__h;r.__u++||s||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(a,a)},Pe.prototype.componentWillUnmount=function(){this.t=[]},Pe.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=ve({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)}))),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__e&&h(b,null,e.fallback);return o&&(o.__h=null),[h(b,null,t.__e?null:e.children),o]};var Me=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(e)}}),F(h(Re,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function Ne(e,t){return h(Te,{__v:e,i:t})}(De.prototype=new g).__e=function(e){var t=this,n=je(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Me(t,e,r)):o()};n?n(i):i()}},De.prototype.render=function(e){this.u=null,this.o=new Map;var t=x(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},De.prototype.componentDidUpdate=De.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Me(e,n,t)}))};var Ie="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Le=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Fe=function(e){return("undefined"!=typeof Symbol&&"symbol"==me(Symbol())?/fil|che|rad/i:/fil|che|ra/i).test(e)};function Ue(e,t,n){return null==t.__k&&(t.textContent=""),F(e,t),"function"==typeof n&&n(),e?e.__c:null}function Be(e,t,n){return U(e,t),"function"==typeof n&&n(),e?e.__c:null}g.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(g.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Ve=o.event;function He(){}function ze(){return this.cancelBubble}function We(){return this.defaultPrevented}o.event=function(e){return Ve&&(e=Ve(e)),e.persist=He,e.isPropagationStopped=ze,e.isDefaultPrevented=We,e.nativeEvent=e};var $e,Ye={configurable:!0,get:function(){return this.class}},Xe=o.vnode;o.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){for(var o in r={},n){var i=n[o];"value"===o&&"defaultValue"in n&&null==i||("defaultValue"===o&&"value"in n&&null==n.value?o="value":"download"===o&&!0===i?i="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!Fe(n.type)?o="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():Le.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===i&&(i=void 0),r[o]=i)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=x(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=x(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r}t&&n.class!=n.className&&(Ye.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",Ye)),e.$$typeof=Ie,Xe&&Xe(e)};var Ze=o.__r;o.__r=function(e){Ze&&Ze(e),$e=e.__c};var qe={ReactCurrentDispatcher:{current:{readContext:function(e){return $e.__n[e.__c].props.value}}}},Ge="17.0.2";function Je(e){return h.bind(null,e)}function Ke(e){return!!e&&e.$$typeof===Ie}function Qe(e){return Ke(e)?B.apply(null,arguments):e}function et(e){return!!e.__k&&(F(null,e),!0)}function tt(e){return e&&(e.base||1===e.nodeType&&e)||null}var nt=function(e,t){return e(t)},rt=function(e,t){return e(t)},ot=b;const it={useState:Q,useReducer:ee,useEffect:te,useLayoutEffect:ne,useRef:re,useImperativeHandle:oe,useMemo:ie,useCallback:ae,useContext:ue,useDebugValue:se,version:"17.0.2",Children:Ae,render:Ue,hydrate:Be,unmountComponentAtNode:et,createPortal:Ne,createElement:h,createContext:V,createFactory:Je,cloneElement:Qe,createRef:v,Fragment:b,isValidElement:Ke,findDOMNode:tt,Component:g,PureComponent:ge,memo:Se,forwardRef:_e,flushSync:rt,unstable_batchedUpdates:nt,StrictMode:b,Suspense:Pe,SuspenseList:De,lazy:ke,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:qe}},9428:(e,t,n)=>{"use strict";var r=n(2134);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},6526:(e,t,n)=>{e.exports=n(9428)()},2134:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},8744:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";var r=n(8744);t.Z=r.TextareaAutosize},7199:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraggableCore",{enumerable:!0,get:function(){return f.default}}),t.default=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(n(4741)),i=y(n(6526)),a=y(n(4741)),u=y(n(8344)),s=n(5676),l=n(6102),c=n(6339),f=y(n(9466)),p=y(n(7165)),d=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function y(e){return e&&e.__esModule?e:{default:e}}function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(h=function(e){return e?n:t})(e)}function m(){return m=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),t}return t=v,i=[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.position,r=t.prevPropsPosition;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,p.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:b({},n)})}}],(n=[{key:"componentDidMount",value:function(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){var e,t,n;return null!==(e=null===(t=this.props)||void 0===t||null===(n=t.nodeRef)||void 0===n?void 0:n.current)&&void 0!==e?e:a.default.findDOMNode(this)}},{key:"render",value:function(){var e,t=this.props,n=(t.axis,t.bounds,t.children),r=t.defaultPosition,i=t.defaultClassName,a=t.defaultClassNameDragging,c=t.defaultClassNameDragged,p=t.position,y=t.positionOffset,h=(t.scale,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,d)),v={},g=null,S=!Boolean(p)||this.state.dragging,O=p||r,w={x:(0,l.canDragX)(this)&&S?this.state.x:O.x,y:(0,l.canDragY)(this)&&S?this.state.y:O.y};this.state.isElementSVG?g=(0,s.createSVGTransform)(w,y):v=(0,s.createCSSTransform)(w,y);var _=(0,u.default)(n.props.className||"",i,(E(e={},a,this.state.dragging),E(e,c,this.state.dragged),e));return o.createElement(f.default,m({},h,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),o.cloneElement(o.Children.only(n),{className:_,style:b(b({},n.props.style),v),transform:g}))}}])&&S(t.prototype,n),i&&S(t,i),v}(o.Component);t.default=A,E(A,"displayName","Draggable"),E(A,"propTypes",b(b({},f.default.propTypes),{},{axis:i.default.oneOf(["both","x","y","none"]),bounds:i.default.oneOfType([i.default.shape({left:i.default.number,right:i.default.number,top:i.default.number,bottom:i.default.number}),i.default.string,i.default.oneOf([!1])]),defaultClassName:i.default.string,defaultClassNameDragging:i.default.string,defaultClassNameDragged:i.default.string,defaultPosition:i.default.shape({x:i.default.number,y:i.default.number}),positionOffset:i.default.shape({x:i.default.oneOfType([i.default.number,i.default.string]),y:i.default.oneOfType([i.default.number,i.default.string])}),position:i.default.shape({x:i.default.number,y:i.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe})),E(A,"defaultProps",b(b({},f.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},9466:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(n(4741)),i=f(n(6526)),a=f(n(4741)),u=n(5676),s=n(6102),l=n(6339),c=f(n(7165));function f(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n not mounted on DragStart!");var r=n.ownerDocument;if(!(e.props.disabled||!(t.target instanceof r.defaultView.Node)||e.props.handle&&!(0,u.matchesSelectorAndParentsTo)(t.target,e.props.handle,n)||e.props.cancel&&(0,u.matchesSelectorAndParentsTo)(t.target,e.props.cancel,n))){"touchstart"===t.type&&t.preventDefault();var o=(0,u.getTouchIdentifier)(t);e.setState({touchIdentifier:o});var i=(0,s.getControlPosition)(t,o,m(e));if(null!=i){var a=i.x,l=i.y,f=(0,s.createCoreData)(m(e),a,l);(0,c.default)("DraggableCore: handleDragStart: %j",f),(0,c.default)("calling",e.props.onStart),!1!==e.props.onStart(t,f)&&!1!==e.mounted&&(e.props.enableUserSelectHack&&(0,u.addUserSelectStyles)(r),e.setState({dragging:!0,lastX:a,lastY:l}),(0,u.addEvent)(r,O.move,e.handleDrag),(0,u.addEvent)(r,O.stop,e.handleDragStop))}}})),b(m(e),"handleDrag",(function(t){var n,r,o=(0,s.getControlPosition)(t,e.state.touchIdentifier,m(e));if(null!=o){var i=o.x,a=o.y;if(Array.isArray(e.props.grid)){var u=i-e.state.lastX,l=a-e.state.lastY,f=(n=(0,s.snapToGrid)(e.props.grid,u,l),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(n,r)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.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)?d(e,t):void 0}}(n,r)||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.")}());if(u=f[0],l=f[1],!u&&!l)return;i=e.state.lastX+u,a=e.state.lastY+l}var p=(0,s.createCoreData)(m(e),i,a);if((0,c.default)("DraggableCore: handleDrag: %j",p),!1!==e.props.onDrag(t,p)&&!1!==e.mounted)e.setState({lastX:i,lastY:a});else try{e.handleDragStop(new MouseEvent("mouseup"))}catch(t){var y=document.createEvent("MouseEvents");y.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e.handleDragStop(y)}}})),b(m(e),"handleDragStop",(function(t){if(e.state.dragging){var n=(0,s.getControlPosition)(t,e.state.touchIdentifier,m(e));if(null!=n){var r=n.x,o=n.y,i=(0,s.createCoreData)(m(e),r,o);if(!1===e.props.onStop(t,i)||!1===e.mounted)return!1;var a=e.findDOMNode();a&&e.props.enableUserSelectHack&&(0,u.removeUserSelectStyles)(a.ownerDocument),(0,c.default)("DraggableCore: handleDragStop: %j",i),e.setState({dragging:!1,lastX:NaN,lastY:NaN}),a&&((0,c.default)("DraggableCore: Removing handlers"),(0,u.removeEvent)(a.ownerDocument,O.move,e.handleDrag),(0,u.removeEvent)(a.ownerDocument,O.stop,e.handleDragStop))}}})),b(m(e),"onMouseDown",(function(t){return O=S,e.handleDragStart(t)})),b(m(e),"onMouseUp",(function(t){return O=S,e.handleDragStop(t)})),b(m(e),"onTouchStart",(function(t){return O=g,e.handleDragStart(t)})),b(m(e),"onTouchEnd",(function(t){return O=g,e.handleDragStop(t)})),e}return t=p,(n=[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.findDOMNode();e&&(0,u.addEvent)(e,g.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.findDOMNode();if(e){var t=e.ownerDocument;(0,u.removeEvent)(t,S.move,this.handleDrag),(0,u.removeEvent)(t,g.move,this.handleDrag),(0,u.removeEvent)(t,S.stop,this.handleDragStop),(0,u.removeEvent)(t,g.stop,this.handleDragStop),(0,u.removeEvent)(e,g.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,u.removeUserSelectStyles)(t)}}},{key:"findDOMNode",value:function(){var e,t,n;return null!==(e=null===(t=this.props)||void 0===t||null===(n=t.nodeRef)||void 0===n?void 0:n.current)&&void 0!==e?e:a.default.findDOMNode(this)}},{key:"render",value:function(){return o.cloneElement(o.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}])&&y(t.prototype,n),p}(o.Component);t.default=w,b(w,"displayName","DraggableCore"),b(w,"propTypes",{allowAnyClick:i.default.bool,disabled:i.default.bool,enableUserSelectHack:i.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:i.default.arrayOf(i.default.number),handle:i.default.string,cancel:i.default.string,nodeRef:i.default.object,onStart:i.default.func,onDrag:i.default.func,onStop:i.default.func,onMouseDown:i.default.func,scale:i.default.number,className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),b(w,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},40:(e,t,n)=>{"use strict";var r=n(7199),o=r.default,i=r.DraggableCore;e.exports=o,e.exports.default=o,e.exports.DraggableCore=i},5676:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.matchesSelector=f,t.matchesSelectorAndParentsTo=function(e,t,n){var r=e;do{if(f(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},t.addEvent=function(e,t,n,r){if(e){var o=s({capture:!0},r);e.addEventListener?e.addEventListener(t,n,o):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}},t.removeEvent=function(e,t,n,r){if(e){var o=s({capture:!0},r);e.removeEventListener?e.removeEventListener(t,n,o):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null}},t.outerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return(t+=(0,o.int)(n.borderTopWidth))+(0,o.int)(n.borderBottomWidth)},t.outerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return(t+=(0,o.int)(n.borderLeftWidth))+(0,o.int)(n.borderRightWidth)},t.innerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return(t-=(0,o.int)(n.paddingTop))-(0,o.int)(n.paddingBottom)},t.innerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return(t-=(0,o.int)(n.paddingLeft))-(0,o.int)(n.paddingRight)},t.offsetXYFromParent=function(e,t,n){var r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect();return{x:(e.clientX+t.scrollLeft-r.left)/n,y:(e.clientY+t.scrollTop-r.top)/n}},t.createCSSTransform=function(e,t){var n=p(e,t,"px");return l({},(0,i.browserPrefixToKey)("transform",i.default),n)},t.createSVGTransform=function(e,t){return p(e,t,"")},t.getTranslation=p,t.getTouch=function(e,t){return e.targetTouches&&(0,o.findInArray)(e.targetTouches,(function(e){return t===e.identifier}))||e.changedTouches&&(0,o.findInArray)(e.changedTouches,(function(e){return t===e.identifier}))},t.getTouchIdentifier=function(e){return e.targetTouches&&e.targetTouches[0]?e.targetTouches[0].identifier:e.changedTouches&&e.changedTouches[0]?e.changedTouches[0].identifier:void 0},t.addUserSelectStyles=function(e){if(e){var t=e.getElementById("react-draggable-style-el");t||((t=e.createElement("style")).type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t)),e.body&&d(e.body,"react-draggable-transparent-selection")}},t.removeUserSelectStyles=function(e){if(e)try{if(e.body&&y(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{var t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}},t.addClassName=d,t.removeClassName=y;var o=n(6339),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var s=i?Object.getOwnPropertyDescriptor(e,u):null;s&&(s.get||s.set)?Object.defineProperty(o,u,s):o[u]=e[u]}return o.default=e,n&&n.set(e,o),o}(n(3561));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPrefix=r,t.browserPrefixToKey=o,t.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},t.default=void 0;var n=["Moz","Webkit","O","ms"];function r(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";var i=null===(e=window.document)||void 0===e||null===(t=e.documentElement)||void 0===t?void 0:t.style;if(!i)return"";if(r in i)return"";for(var a=0;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){}},6102:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBoundPosition=function(e,t,n){if(!e.props.bounds)return[t,n];var a=e.props.bounds;a="string"==typeof a?a:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(a);var u=i(e);if("string"==typeof a){var s,l=u.ownerDocument,c=l.defaultView;if(!((s="parent"===a?u.parentNode:l.querySelector(a))instanceof c.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');var f=s,p=c.getComputedStyle(u),d=c.getComputedStyle(f);a={left:-u.offsetLeft+(0,r.int)(d.paddingLeft)+(0,r.int)(p.marginLeft),top:-u.offsetTop+(0,r.int)(d.paddingTop)+(0,r.int)(p.marginTop),right:(0,o.innerWidth)(f)-(0,o.outerWidth)(u)-u.offsetLeft+(0,r.int)(d.paddingRight)-(0,r.int)(p.marginRight),bottom:(0,o.innerHeight)(f)-(0,o.outerHeight)(u)-u.offsetTop+(0,r.int)(d.paddingBottom)-(0,r.int)(p.marginBottom)}}return(0,r.isNum)(a.right)&&(t=Math.min(t,a.right)),(0,r.isNum)(a.bottom)&&(n=Math.min(n,a.bottom)),(0,r.isNum)(a.left)&&(t=Math.max(t,a.left)),(0,r.isNum)(a.top)&&(n=Math.max(n,a.top)),[t,n]},t.snapToGrid=function(e,t,n){return[Math.round(t/e[0])*e[0],Math.round(n/e[1])*e[1]]},t.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},t.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},t.getControlPosition=function(e,t,n){var r="number"==typeof t?(0,o.getTouch)(e,t):null;if("number"==typeof t&&!r)return null;var a=i(n),u=n.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,o.offsetXYFromParent)(r||e,u,n.props.scale)},t.createCoreData=function(e,t,n){var o=e.state,a=!(0,r.isNum)(o.lastX),u=i(e);return a?{node:u,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:u,deltaX:t-o.lastX,deltaY:n-o.lastY,lastX:o.lastX,lastY:o.lastY,x:t,y:n}},t.createDraggableData=function(e,t){var n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}};var r=n(6339),o=n(5676);function i(e){var t=e.findDOMNode();if(!t)throw new Error(": Unmounted during event!");return t}},6339:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findInArray=function(e,t){for(var n=0,r=e.length;n{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){f.forEach((function(t){return delete e[t]}))}(r),r.className=this.props.inputClassName,r.id=this.state.inputId,r.style=n,u.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),u.default.createElement("input",o({},r,{ref:this.inputRef})),u.default.createElement("div",{ref:this.sizerRef,style:c},e),this.props.placeholder?u.default.createElement("div",{ref:this.placeHolderSizerRef,style:c},this.props.placeholder):null)}}]),t}(a.Component);h.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},h.defaultProps={minWidth:1,injectStyles:!0},t.Z=h},7212:(e,t,n)=>{"use strict";var r=n(8866),o=n(4597),i=n(593)("String.prototype.replace"),a=/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,u=/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;e.exports=function(){var e=o(r(this));return i(i(e,a,""),u,"")}},2293:(e,t,n)=>{"use strict";var r=n(4373),o=n(4347),i=n(7212),a=n(9937),u=n(9183),s=r(a());o(s,{getPolyfill:a,implementation:i,shim:u}),e.exports=s},9937:(e,t,n)=>{"use strict";var r=n(7212);e.exports=function(){return String.prototype.trim&&"​"==="​".trim()?String.prototype.trim:r}},9183:(e,t,n)=>{"use strict";var r=n(4347),o=n(9937);e.exports=function(){var e=o();return r(String.prototype,{trim:e},{trim:function(){return String.prototype.trim!==e}}),e}},8841:(e,t)=>{"use strict";var n=[["ثانية","ثانيتين","%s ثوان","%s ثانية"],["دقيقة","دقيقتين","%s دقائق","%s دقيقة"],["ساعة","ساعتين","%s ساعات","%s ساعة"],["يوم","يومين","%s أيام","%s يوماً"],["أسبوع","أسبوعين","%s أسابيع","%s أسبوعاً"],["شهر","شهرين","%s أشهر","%s شهراً"],["عام","عامين","%s أعوام","%s عاماً"]];t.Z=function(e,t){if(0===t)return["منذ لحظات","بعد لحظات"];var r,o,i=(r=Math.floor(t/2),(o=e)<3?n[r][o-1]:o>=3&&o<=10?n[r][2]:n[r][3]);return["منذ "+i,"بعد "+i]}},2463:(e,t)=>{"use strict";t.Z=function(e,t){var n=0;return(1==t||3==t||5==t||7==t||9==t||11==t||13==t)&&e>=5&&(n=1),[[["právě teď","právě teď"]],[["před %s vteřinami","za %s vteřiny"],["před %s vteřinami","za %s vteřin"]],[["před minutou","za minutu"]],[["před %s minutami","za %s minuty"],["před %s minutami","za %s minut"]],[["před hodinou","za hodinu"]],[["před %s hodinami","za %s hodiny"],["před %s hodinami","za %s hodin"]],[["včera","zítra"]],[["před %s dny","za %s dny"],["před %s dny","za %s dnů"]],[["minulý týden","příští týden"]],[["před %s týdny","za %s týdny"],["před %s týdny","za %s týdnů"]],[["minulý měsíc","přístí měsíc"]],[["před %s měsíci","za %s měsíce"],["před %s měsíci","za %s měsíců"]],[["před rokem","přístí rok"]],[["před %s lety","za %s roky"],["před %s lety","za %s let"]]][t][n]}},3506:(e,t)=>{"use strict";t.Z=function(e,t){return[["gerade eben","vor einer Weile"],["vor %s Sekunden","in %s Sekunden"],["vor 1 Minute","in 1 Minute"],["vor %s Minuten","in %s Minuten"],["vor 1 Stunde","in 1 Stunde"],["vor %s Stunden","in %s Stunden"],["vor 1 Tag","in 1 Tag"],["vor %s Tagen","in %s Tagen"],["vor 1 Woche","in 1 Woche"],["vor %s Wochen","in %s Wochen"],["vor 1 Monat","in 1 Monat"],["vor %s Monaten","in %s Monaten"],["vor 1 Jahr","in 1 Jahr"],["vor %s Jahren","in %s Jahren"]][t]}},1975:(e,t)=>{"use strict";t.Z=function(e,t){return[["μόλις τώρα","σε λίγο"],["%s δευτερόλεπτα πριν","σε %s δευτερόλεπτα"],["1 λεπτό πριν","σε 1 λεπτό"],["%s λεπτά πριν","σε %s λεπτά"],["1 ώρα πριν","σε 1 ώρα"],["%s ώρες πριν","σε %s ώρες"],["1 μέρα πριν","σε 1 μέρα"],["%s μέρες πριν","σε %s μέρες"],["1 εβδομάδα πριν","σε 1 εβδομάδα"],["%s εβδομάδες πριν","σε %s εβδομάδες"],["1 μήνα πριν","σε 1 μήνα"],["%s μήνες πριν","σε %s μήνες"],["1 χρόνο πριν","σε 1 χρόνο"],["%s χρόνια πριν","σε %s χρόνια"]][t]}},7813:(e,t)=>{"use strict";t.Z=function(e,t){return[["justo ahora","en un rato"],["hace %s segundos","en %s segundos"],["hace 1 minuto","en 1 minuto"],["hace %s minutos","en %s minutos"],["hace 1 hora","en 1 hora"],["hace %s horas","en %s horas"],["hace 1 día","en 1 día"],["hace %s días","en %s días"],["hace 1 semana","en 1 semana"],["hace %s semanas","en %s semanas"],["hace 1 mes","en 1 mes"],["hace %s meses","en %s meses"],["hace 1 año","en 1 año"],["hace %s años","en %s años"]][t]}},5194:(e,t)=>{"use strict";t.Z=function(e,t){return[["juuri äsken","juuri nyt"],["%s sekuntia sitten","%s sekunnin päästä"],["minuutti sitten","minuutin päästä"],["%s minuuttia sitten","%s minuutin päästä"],["tunti sitten","tunnin päästä"],["%s tuntia sitten","%s tunnin päästä"],["päivä sitten","päivän päästä"],["%s päivää sitten","%s päivän päästä"],["viikko sitten","viikon päästä"],["%s viikkoa sitten","%s viikon päästä"],["kuukausi sitten","kuukauden päästä"],["%s kuukautta sitten","%s kuukauden päästä"],["vuosi sitten","vuoden päästä"],["%s vuotta sitten","%s vuoden päästä"]][t]}},3971:(e,t)=>{"use strict";t.Z=function(e,t){return[["à l'instant","dans un instant"],["il y a %s secondes","dans %s secondes"],["il y a 1 minute","dans 1 minute"],["il y a %s minutes","dans %s minutes"],["il y a 1 heure","dans 1 heure"],["il y a %s heures","dans %s heures"],["il y a 1 jour","dans 1 jour"],["il y a %s jours","dans %s jours"],["il y a 1 semaine","dans 1 semaine"],["il y a %s semaines","dans %s semaines"],["il y a 1 mois","dans 1 mois"],["il y a %s mois","dans %s mois"],["il y a 1 an","dans 1 an"],["il y a %s ans","dans %s ans"]][t]}},5211:(e,t)=>{"use strict";t.Z=function(e,t){return[["xusto agora","daquí a un pouco"],["hai %s segundos","en %s segundos"],["hai 1 minuto","nun minuto"],["hai %s minutos","en %s minutos"],["hai 1 hora","nunha hora"],["hai %s horas","en %s horas"],["hai 1 día","nun día"],["hai %s días","en %s días"],["hai 1 semana","nunha semana"],["hai %s semanas","en %s semanas"],["hai 1 mes","nun mes"],["hai %s meses","en %s meses"],["hai 1 ano","nun ano"],["hai %s anos","en %s anos"]][t]}},3335:(e,t)=>{"use strict";t.Z=function(e,t){return[["अभी","कुछ समय"],["%s सेकंड पहले","%s सेकंड में"],["1 मिनट पहले","1 मिनट में"],["%s मिनट पहले","%s मिनट में"],["1 घंटे पहले","1 घंटे में"],["%s घंटे पहले","%s घंटे में"],["1 दिन पहले","1 दिन में"],["%s दिन पहले","%s दिनों में"],["1 सप्ताह पहले","1 सप्ताह में"],["%s हफ्ते पहले","%s हफ्तों में"],["1 महीने पहले","1 महीने में"],["%s महीने पहले","%s महीनों में"],["1 साल पहले","1 साल में"],["%s साल पहले","%s साल में"]][t]}},6509:(e,t)=>{"use strict";t.Z=function(e,t){return[["poco fa","fra poco"],["%s secondi fa","fra %s secondi"],["un minuto fa","fra un minuto"],["%s minuti fa","fra %s minuti"],["un'ora fa","fra un'ora"],["%s ore fa","fra %s ore"],["un giorno fa","fra un giorno"],["%s giorni fa","fra %s giorni"],["una settimana fa","fra una settimana"],["%s settimane fa","fra %s settimane"],["un mese fa","fra un mese"],["%s mesi fa","fra %s mesi"],["un anno fa","fra un anno"],["%s anni fa","fra %s anni"]][t]}},6244:(e,t)=>{"use strict";t.Z=function(e,t){return[["すこし前","すぐに"],["%s秒前","%s秒以内"],["1分前","1分以内"],["%s分前","%s分以内"],["1時間前","1時間以内"],["%s時間前","%s時間以内"],["1日前","1日以内"],["%s日前","%s日以内"],["1週間前","1週間以内"],["%s週間前","%s週間以内"],["1ヶ月前","1ヶ月以内"],["%sヶ月前","%sヶ月以内"],["1年前","1年以内"],["%s年前","%s年以内"]][t]}},5626:(e,t)=>{"use strict";t.Z=function(e,t){return[["방금","곧"],["%s초 전","%s초 후"],["1분 전","1분 후"],["%s분 전","%s분 후"],["1시간 전","1시간 후"],["%s시간 전","%s시간 후"],["1일 전","1일 후"],["%s일 전","%s일 후"],["1주일 전","1주일 후"],["%s주일 전","%s주일 후"],["1개월 전","1개월 후"],["%s개월 전","%s개월 후"],["1년 전","1년 후"],["%s년 전","%s년 후"]][t]}},4178:(e,t)=>{"use strict";t.Z=function(e,t){return[["recent","binnenkort"],["%s seconden geleden","binnen %s seconden"],["1 minuut geleden","binnen 1 minuut"],["%s minuten geleden","binnen %s minuten"],["1 uur geleden","binnen 1 uur"],["%s uur geleden","binnen %s uur"],["1 dag geleden","binnen 1 dag"],["%s dagen geleden","binnen %s dagen"],["1 week geleden","binnen 1 week"],["%s weken geleden","binnen %s weken"],["1 maand geleden","binnen 1 maand"],["%s maanden geleden","binnen %s maanden"],["1 jaar geleden","binnen 1 jaar"],["%s jaar geleden","binnen %s jaar"]][t]}},3099:(e,t)=>{"use strict";t.Z=function(e,t){return[["agora mesmo","agora"],["há %s segundos","em %s segundos"],["há um minuto","em um minuto"],["há %s minutos","em %s minutos"],["há uma hora","em uma hora"],["há %s horas","em %s horas"],["há um dia","em um dia"],["há %s dias","em %s dias"],["há uma semana","em uma semana"],["há %s semanas","em %s semanas"],["há um mês","em um mês"],["há %s meses","em %s meses"],["há um ano","em um ano"],["há %s anos","em %s anos"]][t]}},2404:(e,t)=>{"use strict";function n(e,t,n,r,o){var i=o%10,a=r;return 1===o?a=e:1===i&&o>20?a=t:i>1&&i<5&&(o>20||o<10)&&(a=n),a}var r=n.bind(null,"секунду","%s секунду","%s секунды","%s секунд"),o=n.bind(null,"минуту","%s минуту","%s минуты","%s минут"),i=n.bind(null,"час","%s час","%s часа","%s часов"),a=n.bind(null,"день","%s день","%s дня","%s дней"),u=n.bind(null,"неделю","%s неделю","%s недели","%s недель"),s=n.bind(null,"месяц","%s месяц","%s месяца","%s месяцев"),l=n.bind(null,"год","%s год","%s года","%s лет");t.Z=function(e,t){switch(t){case 0:return["только что","через несколько секунд"];case 1:return[r(e)+" назад","через "+r(e)];case 2:case 3:return[o(e)+" назад","через "+o(e)];case 4:case 5:return[i(e)+" назад","через "+i(e)];case 6:return["вчера","завтра"];case 7:return[a(e)+" назад","через "+a(e)];case 8:case 9:return[u(e)+" назад","через "+u(e)];case 10:case 11:return[s(e)+" назад","через "+s(e)];case 12:case 13:return[l(e)+" назад","через "+l(e)];default:return["",""]}}},8248:(e,t)=>{"use strict";t.Z=function(e,t){return[["just nu","om en stund"],["%s sekunder sedan","om %s sekunder"],["1 minut sedan","om 1 minut"],["%s minuter sedan","om %s minuter"],["1 timme sedan","om 1 timme"],["%s timmar sedan","om %s timmar"],["1 dag sedan","om 1 dag"],["%s dagar sedan","om %s dagar"],["1 vecka sedan","om 1 vecka"],["%s veckor sedan","om %s veckor"],["1 månad sedan","om 1 månad"],["%s månader sedan","om %s månader"],["1 år sedan","om 1 år"],["%s år sedan","om %s år"]][t]}},4475:(e,t)=>{"use strict";t.Z=function(e,t){return[["เมื่อสักครู่นี้","อีกสักครู่"],["%s วินาทีที่แล้ว","ใน %s วินาที"],["1 นาทีที่แล้ว","ใน 1 นาที"],["%s นาทีที่แล้ว","ใน %s นาที"],["1 ชั่วโมงที่แล้ว","ใน 1 ชั่วโมง"],["%s ชั่วโมงที่แล้ว","ใน %s ชั่วโมง"],["1 วันที่แล้ว","ใน 1 วัน"],["%s วันที่แล้ว","ใน %s วัน"],["1 อาทิตย์ที่แล้ว","ใน 1 อาทิตย์"],["%s อาทิตย์ที่แล้ว","ใน %s อาทิตย์"],["1 เดือนที่แล้ว","ใน 1 เดือน"],["%s เดือนที่แล้ว","ใน %s เดือน"],["1 ปีที่แล้ว","ใน 1 ปี"],["%s ปีที่แล้ว","ใน %s ปี"]][t]}},1311:(e,t)=>{"use strict";t.Z=function(e,t){return[["az önce","şimdi"],["%s saniye önce","%s saniye içinde"],["1 dakika önce","1 dakika içinde"],["%s dakika önce","%s dakika içinde"],["1 saat önce","1 saat içinde"],["%s saat önce","%s saat içinde"],["1 gün önce","1 gün içinde"],["%s gün önce","%s gün içinde"],["1 hafta önce","1 hafta içinde"],["%s hafta önce","%s hafta içinde"],["1 ay önce","1 ay içinde"],["%s ay önce","%s ay içinde"],["1 yıl önce","1 yıl içinde"],["%s yıl önce","%s yıl içinde"]][t]}},3211:(e,t)=>{"use strict";var n=["秒","分钟","小时","天","周","个月","年"];t.Z=function(e,t){if(0===t)return["刚刚","片刻后"];var r=n[~~(t/2)];return[e+" "+r+"前",e+" "+r+"后"]}},7883:(e,t)=>{"use strict";t.Z=function(e,t){return[["剛剛","片刻後"],["%s 秒前","%s 秒後"],["1 分鐘前","1 分鐘後"],["%s 分鐘前","%s 分鐘後"],["1 小時前","1 小時後"],["%s 小時前","%s 小時後"],["1 天前","1 天後"],["%s 天前","%s 天後"],["1 週前","1 週後"],["%s 週前","%s 週後"],["1 個月前","1 個月後"],["%s 個月前","%s 個月後"],["1 年前","1 年後"],["%s 年前","%s 年後"]][t]}},8773:e=>{function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function o(){r.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;r{"use strict";e.exports=function(){}},4654:()=>{},5589:(e,t,n)=>{"use strict";var r=n(7701),o=n(593),i=r("%TypeError%"),a=n(2163),u=r("%Reflect.apply%",!0)||o("%Function.prototype.apply%");e.exports=function(e,t){var n=arguments.length>2?arguments[2]:[];if(!a(n))throw new i("Assertion failed: optional `argumentsList`, if provided, must be a List");return u(e,t,n)}},7473:(e,t,n)=>{"use strict";var r=n(7701)("%TypeError%"),o=n(7594),i=n(8154),a=n(7233);e.exports=function(e,t){if("Object"!==a(e))throw new r("Assertion failed: Type(O) is not Object");if(!i(t))throw new r("Assertion failed: IsPropertyKey(P) is not true, got "+o(t));return e[t]}},1564:(e,t,n)=>{"use strict";var r=n(7701)("%TypeError%"),o=n(8154),i=n(7233);e.exports=function(e,t){if("Object"!==i(e))throw new r("Assertion failed: `O` must be an Object");if(!o(t))throw new r("Assertion failed: `P` must be a Property Key");return t in e}},2163:(e,t,n)=>{"use strict";var r=n(7701)("%Array%"),o=!r.isArray&&n(593)("Object.prototype.toString");e.exports=r.isArray||function(e){return"[object Array]"===o(e)}},4293:(e,t,n)=>{"use strict";e.exports=n(1493)},8154:e=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){return"string"==typeof e||"symbol"===t(e)}},9946:(e,t,n)=>{"use strict";var r=n(7701)("%TypeError%"),o=n(7473),i=n(338),a=n(7233);e.exports=function(e){if("Object"!==a(e))throw new r("Assertion failed: `obj` must be an Object");return i(o(e,"length"))}},8866:(e,t,n)=>{"use strict";e.exports=n(5152)},9340:(e,t,n)=>{"use strict";var r=n(4448),o=n(486);e.exports=function(e){var t=o(e);return 0!==t&&(t=r(t)),0===t?0:t}},338:(e,t,n)=>{"use strict";var r=n(7622),o=n(9340);e.exports=function(e){var t=o(e);return t<=0?0:t>r?r:t}},486:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n(7701),i=o("%TypeError%"),a=o("%Number%"),u=o("%RegExp%"),s=o("%parseInt%"),l=n(593),c=n(31),f=n(7544),p=l("String.prototype.slice"),d=c(/^0b[01]+$/i),y=c(/^0o[0-7]+$/i),h=c(/^[-+]0x[0-9a-f]+$/i),m=c(new u("["+["…","​","￾"].join("")+"]","g")),v=["\t\n\v\f\r   ᠎    ","          \u2028","\u2029\ufeff"].join(""),b=new RegExp("(^["+v+"]+)|(["+v+"]+$)","g"),g=l("String.prototype.replace"),S=n(2520);e.exports=function e(t){var n=f(t)?t:S(t,a);if("symbol"===r(n))throw new i("Cannot convert a Symbol value to a number");if("bigint"==typeof n)throw new i("Conversion from 'BigInt' to 'number' is not allowed.");if("string"==typeof n){if(d(n))return e(s(p(n,2),2));if(y(n))return e(s(p(n,2),8));if(m(n)||h(n))return NaN;var o=function(e){return g(e,b,"")}(n);if(o!==n)return e(o)}return a(n)}},9541:(e,t,n)=>{"use strict";var r=n(7701)("%Object%"),o=n(8866);e.exports=function(e){return o(e),r(e)}},2520:(e,t,n)=>{"use strict";var r=n(2358);e.exports=function(e){return arguments.length>1?r(e,arguments[1]):r(e)}},4597:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n(7701),i=o("%String%"),a=o("%TypeError%");e.exports=function(e){if("symbol"===r(e))throw new a("Cannot convert a Symbol value to a string");return i(e)}},7233:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n(3986);e.exports=function(e){return"symbol"===r(e)?"Symbol":"bigint"==typeof e?"BigInt":o(e)}},5152:(e,t,n)=>{"use strict";var r=n(7701)("%TypeError%");e.exports=function(e,t){if(null==e)throw new r(t||"Cannot call method on "+e);return e}},4448:(e,t,n)=>{"use strict";var r=n(8198),o=n(8724),i=n(3827),a=n(1256),u=n(367),s=n(6188);e.exports=function(e){var t=i(e);return a(t)?0:0!==t&&u(t)?s(t)*o(r(t)):t}},3827:(e,t,n)=>{"use strict";var r=n(9276);e.exports=function(e){var t=r(e,Number);if("string"!=typeof t)return+t;var n=t.replace(/^[ \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u0085]+|[ \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u0085]+$/g,"");return/^0[ob]|^[+-]0x/.test(n)?NaN:+n}},9276:(e,t,n)=>{"use strict";e.exports=n(6391)},3986:e=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"===t(e)?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0}},8198:(e,t,n)=>{"use strict";var r=n(7701)("%Math.abs%");e.exports=function(e){return r(e)}},8724:e=>{"use strict";var t=Math.floor;e.exports=function(e){return t(e)}},367:e=>{"use strict";var t=Number.isNaN||function(e){return e!=e};e.exports=Number.isFinite||function(e){return"number"==typeof e&&!t(e)&&e!==1/0&&e!==-1/0}},1256:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},7544:e=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){return null===e||"function"!=typeof e&&"object"!==t(e)}},7622:(e,t,n)=>{"use strict";var r=n(7701),o=r("%Math%"),i=r("%Number%");e.exports=i.MAX_SAFE_INTEGER||o.pow(2,53)-1},31:(e,t,n)=>{"use strict";var r=n(7701)("RegExp.prototype.test"),o=n(4373);e.exports=function(e){return o(r,e)}},6188:e=>{"use strict";e.exports=function(e){return e>=0?1:-1}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{Recogito:()=>_u,init:()=>Eu});var e,t=n(4741),o=n(8773),i=n.n(o),a=new Uint8Array(16);function u(){if(!e&&!(e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(a)}const s=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var l=[],c=0;c<256;++c)l.push((c+256).toString(16).substr(1));const f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(l[e[t+0]]+l[e[t+1]]+l[e[t+2]]+l[e[t+3]]+"-"+l[e[t+4]]+l[e[t+5]]+"-"+l[e[t+6]]+l[e[t+7]]+"-"+l[e[t+8]]+l[e[t+9]]+"-"+l[e[t+10]]+l[e[t+11]]+l[e[t+12]]+l[e[t+13]]+l[e[t+14]]+l[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&s.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},p=function(e,t,n){var r=(e=e||{}).random||(e.rng||u)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return f(r)};var d=n(3094),y=n.n(d);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t=P[o]&&o(0==(o*=2)?9:1)&&(o+=1),t(e,o,r)[n].replace("%s",e.toString())}function D(e,t){return(+(t?j(t):new Date)-+j(e))/1e3}var M="timeago-id";function R(e){return parseInt(e.getAttribute(M))}var T={},N=function(e){clearTimeout(e),delete T[e]};function I(e,t,n,r){N(R(e));var o=r.relativeDate,i=r.minInterval,a=D(t,o);e.innerText=k(a,n);var u=setTimeout((function(){I(e,t,n,r)}),Math.min(1e3*Math.max(function(e){for(var t=1,n=0,r=Math.abs(e);e>=P[n]&&n1&&(n+="s"),[e+" "+n+" ago","in "+e+" "+n]})),x("zh_CN",(function(e,t){if(0===t)return["刚刚","片刻后"];var n=E[~~(t/2)];return[e+" "+n+"前",e+" "+n+"后"]}));var F,U=(F=function(e,t){return F=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},F(e,t)},function(e,t){function n(){this.constructor=e}F(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),B=function(){return B=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?nt(pt,--ct):0,st--,10===ft&&(st=1,ut--),ft}function mt(){return ft=ct2||St(ft)>3?"":" "}function At(e,t){for(;--t&&mt()&&!(ft<48||ft>102||ft>57&&ft<65||ft>70&&ft<97););return gt(e,bt()+(t<6&&32==vt()&&32==mt()))}function xt(e){for(;mt();)switch(ft){case e:return ct;case 34:case 39:return xt(34===e||39===e?e:ft);case 40:41===e&&xt(e);break;case 92:mt()}return ct}function Ct(e,t){for(;mt()&&e+ft!==57&&(e+ft!==84||47!==vt()););return"/*"+gt(t,ct-1)+"*"+Ke(47===e?e:mt())}function Pt(e){for(;!St(vt());)mt();return gt(e,ct)}var jt="-ms-",kt="-moz-",Dt="-webkit-",Mt="comm",Rt="rule",Tt="decl";function Nt(e,t){for(var n="",r=it(e),o=0;o6)switch(nt(e,t+1)){case 109:if(45!==nt(e,t+4))break;case 102:return et(e,/(.+:)(.+)-([^]+)/,"$1"+Dt+"$2-$3$1"+kt+(108==nt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~tt(e,"stretch")?Lt(et(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==nt(e,t+1))break;case 6444:switch(nt(e,ot(e)-3-(~tt(e,"!important")&&10))){case 107:return et(e,":",":"+Dt)+e;case 101:return et(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Dt+(45===nt(e,14)?"inline-":"")+"box$3$1"+Dt+"$2$3$1"+jt+"$2box$3")+e}break;case 5936:switch(nt(e,t+11)){case 114:return Dt+e+jt+et(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Dt+e+jt+et(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Dt+e+jt+et(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Dt+e+jt+e+e}return e}function Ft(e){return wt(Ut("",null,null,null,[""],e=Ot(e),0,[0],e))}function Ut(e,t,n,r,o,i,a,u,s){for(var l=0,c=0,f=a,p=0,d=0,y=0,h=1,m=1,v=1,b=0,g="",S=o,O=i,w=r,_=g;m;)switch(y=b,b=mt()){case 34:case 39:case 91:case 40:_+=_t(b);break;case 9:case 10:case 13:case 32:_+=Et(y);break;case 92:_+=At(bt()-1,7);continue;case 47:switch(vt()){case 42:case 47:at(Vt(Ct(mt(),bt()),t,n),s);break;default:_+="/"}break;case 123*h:u[l++]=ot(_)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+c:d>0&&ot(_)-f&&at(d>32?Ht(_+";",r,n,f-1):Ht(et(_," ","")+";",r,n,f-2),s);break;case 59:_+=";";default:if(at(w=Bt(_,t,n,l,c,o,u,g,S=[],O=[],f),i),123===b)if(0===c)Ut(_,t,w,w,S,i,f,u,O);else switch(p){case 100:case 109:case 115:Ut(e,w,w,r&&at(Bt(e,w,w,0,0,o,u,g,o,S=[],f),O),o,O,f,u,r?S:O);break;default:Ut(_,w,w,w,[""],O,f,u,O)}}l=c=d=0,h=v=1,g=_="",f=a;break;case 58:f=1+ot(_),d=y;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==ht())continue;switch(_+=Ke(b),b*h){case 38:v=c>0?1:(_+="\f",-1);break;case 44:u[l++]=(ot(_)-1)*v,v=1;break;case 64:45===vt()&&(_+=_t(mt())),p=vt(),c=ot(g=_+=Pt(bt())),b++;break;case 45:45===y&&2==ot(_)&&(h=0)}}return i}function Bt(e,t,n,r,o,i,a,u,s,l,c){for(var f=o-1,p=0===o?i:[""],d=it(p),y=0,h=0,m=0;y0?p[v]+" "+b:et(b,/&\f/g,p[v])))&&(s[m++]=g);return dt(e,t,n,0===o?Rt:u,s,l,c)}function Vt(e,t,n){return dt(e,t,n,Mt,Ke(ft),rt(e,2,-2),0)}function Ht(e,t,n,r){return dt(e,t,n,Tt,rt(e,0,r),rt(e,r+1,-1),r)}var zt=new WeakMap,Wt=function(e){if("rule"===e.type&&e.parent&&e.length){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||zt.get(n))&&!r){zt.set(e,!0);for(var o=[],i=function(e,t){return wt(function(e,t){var n=-1,r=44;do{switch(St(r)){case 0:38===r&&12===vt()&&(t[n]=1),e[n]+=Pt(ct-1);break;case 2:e[n]+=_t(r);break;case 4:if(44===r){e[++n]=58===vt()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Ke(r)}}while(r=mt());return e}(Ot(e),t))}(t,o),a=n.props,u=0,s=0;u=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},Jt={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Kt(e){return Kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kt(e)}var Qt=/[A-Z]|^ms/g,en=/_EMO_([^_]+?)_([^]*?)_EMO_/g,tn=function(e){return 45===e.charCodeAt(1)},nn=function(e){return null!=e&&"boolean"!=typeof e},rn=function(e){var t=Object.create(null);return function(e){return void 0===t[e]&&(t[e]=tn(n=e)?n:n.replace(Qt,"-$&").toLowerCase()),t[e];var n}}(),on=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(en,(function(e,t,n){return un={name:t,styles:n,next:un},t}))}return 1===Jt[e]||tn(e)||"number"!=typeof t||0===t?t:t+"px"};function an(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(Kt(n)){case"boolean":return"";case"object":if(1===n.anim)return un={name:n.name,styles:n.styles,next:un},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)un={name:r.name,styles:r.styles,next:un},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o=0||(o[n]=e[n]);return o}function wn(e,t){if(null==e)return{};var n,r,o=On(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _n(e){return _n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_n(e)}var En=n(2718);function An(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xn(e,t){for(var n=0;n-1}function zn(e){return Hn(e)?window.pageYOffset:e.scrollTop}function Wn(e,t){Hn(e)?window.scrollTo(0,t):e.scrollTop=t}function $n(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ln,o=zn(e),i=t-o,a=0;!function t(){var u,s=i*((u=(u=a+=10)/n-1)*u*u+1)+o;Wn(e,s),a=d)return{placement:"bottom",maxHeight:t};if(_>=d&&!a)return i&&$n(s,E,x),{placement:"bottom",maxHeight:t};if(!a&&_>=r||a&&O>=r)return i&&$n(s,E,x),{placement:"bottom",maxHeight:a?O-b:_-b};if("auto"===o||a){var C=t,P=a?S:w;return P>=r&&(C=Math.min(P-b-u.controlHeight,t)),{placement:"top",maxHeight:C}}if("bottom"===o)return i&&Wn(s,E),{placement:"bottom",maxHeight:t};break;case"top":if(S>=d)return{placement:"top",maxHeight:t};if(w>=d&&!a)return i&&$n(s,A,x),{placement:"top",maxHeight:t};if(!a&&w>=r||a&&S>=r){var j=t;return(!a&&w>=r||a&&S>=r)&&(j=a?S-g:w-g),i&&$n(s,A,x),{placement:"top",maxHeight:j}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return l}({maxHeight:o,menuEl:t,minHeight:r,placement:i,shouldScroll:u&&!l,isFixedPosition:l,theme:s}),f=e.context.getPortalPlacement;f&&f(c),e.setState(c)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||Jn(t);return Tn(Tn({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return Cn(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(t.Component);Qn.contextType=Kn;var er=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},tr=er,nr=er,rr=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return vn("div",qe({css:o("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},i),t)};rr.defaultProps={children:"No options"};var or=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return vn("div",qe({css:o("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},i),t)};or.defaultProps={children:"Loading..."};var ir,ar,ur,sr=function(e){jn(r,e);var n=In(r);function r(){var e;An(this,r);for(var t=arguments.length,o=new Array(t),i=0;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n0,h=f-p-l,m=!1;h>t&&u.current&&(o&&o(e),u.current=!1),y&&s.current&&(a&&a(e),s.current=!1),y&&t>h?(r&&!u.current&&r(e),d.scrollTop=f,m=!0,u.current=!0):!y&&-t>l&&(i&&!s.current&&i(e),d.scrollTop=0,m=!0,s.current=!0),m&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[]),p=(0,t.useCallback)((function(e){f(e,e.deltaY)}),[f]),d=(0,t.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),y=(0,t.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;f(e,t)}),[f]),h=(0,t.useCallback)((function(e){if(e){var t=!!Gn&&{passive:!1};"function"==typeof e.addEventListener&&e.addEventListener("wheel",p,t),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",d,t),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",y,t)}}),[y,d,p]),m=(0,t.useCallback)((function(e){e&&("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",p,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",d,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",y,!1))}),[y,d,p]);return(0,t.useEffect)((function(){if(n){var e=c.current;return h(e),function(){m(e)}}}),[n,h,m]),function(e){c.current=e}}({isEnabled:void 0===o||o,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var n=e.isEnabled,r=e.accountForScrollbars,o=void 0===r||r,i=(0,t.useRef)({}),a=(0,t.useRef)(null),u=(0,t.useCallback)((function(e){if(Gr){var t=document.body,n=t&&t.style;if(o&&Wr.forEach((function(e){var t=n&&n[e];i.current[e]=t})),o&&Jr<1){var r=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,u=window.innerWidth-a+r||0;Object.keys($r).forEach((function(e){var t=$r[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(u,"px"))}t&&qr()&&(t.addEventListener("touchmove",Yr,Kr),e&&(e.addEventListener("touchstart",Zr,Kr),e.addEventListener("touchmove",Xr,Kr))),Jr+=1}}),[]),s=(0,t.useCallback)((function(e){if(Gr){var t=document.body,n=t&&t.style;Jr=Math.max(Jr-1,0),o&&Jr<1&&Wr.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&qr()&&(t.removeEventListener("touchmove",Yr,Kr),e&&(e.removeEventListener("touchstart",Zr,Kr),e.removeEventListener("touchmove",Xr,Kr)))}}),[]);return(0,t.useEffect)((function(){if(n){var e=a.current;return u(e),function(){s(e)}}}),[n,u,s]),function(e){a.current=e}}({isEnabled:r});return vn(t.default.Fragment,null,r&&vn("div",{onClick:Qr,css:eo}),n((function(e){i(e),a(e)})))}var no={clearIndicator:hr,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,i=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:yr,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,i=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*i,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:nr,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,i=r.spacing,a=r.colors;return kn(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),kn(t,"backgroundColor",a.neutral0),kn(t,"borderRadius",o),kn(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),kn(t,"marginBottom",i.menuGutter),kn(t,"marginTop",i.menuGutter),kn(t,"position","absolute"),kn(t,"width","100%"),kn(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:tr,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,i=o.spacing,a=o.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?a.primary:a.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}},ro={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},oo={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Yn(),captureMenuScroll:!Yn(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=Tn({ignoreCase:!0,ignoreAccents:!0,stringify:Hr,trim:!0,matchFrom:"any"},void 0),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,u=n.matchFrom,s=a?Vr(t):t,l=a?Vr(i(e)):i(e);return r&&(s=s.toLowerCase(),l=l.toLowerCase()),o&&(s=Br(s),l=Ur(l)),"start"===u?l.substr(0,s.length)===s:l.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0};function io(e,t,n,r){return{type:"option",data:t,isDisabled:fo(e,t,n),isSelected:po(e,t,n),label:lo(e,t),value:co(e,t),index:r}}function ao(e,t){return e.options.map((function(n,r){if(n.options){var o=n.options.map((function(n,r){return io(e,n,t,r)})).filter((function(t){return so(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=io(e,n,t,r);return so(e,i)?i:void 0})).filter((function(e){return!!e}))}function uo(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,xr(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function so(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,u=t.value;return(!ho(e)||!i)&&yo(e,{label:a,value:u,data:o},r)}var lo=function(e,t){return e.getOptionLabel(t)},co=function(e,t){return e.getOptionValue(t)};function fo(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function po(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=co(e,t);return n.some((function(t){return co(e,t)===r}))}function yo(e,t,n){return!e.filterOption||e.filterOption(t,n)}var ho=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},mo=1,vo=function(e){jn(r,e);var n=In(r);function r(e){var t;return An(this,r),(t=n.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,i=r.name;n.name=i,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",r=arguments.length>2?arguments[2]:void 0,o=t.props,i=o.closeMenuOnSelect,a=o.isMulti;t.onInputChange("",{action:"set-value"}),i&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,i=n.name,a=t.state.selectValue,u=o&&t.isOptionSelected(e,a),s=t.isOptionDisabled(e,a);if(u){var l=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==l})),"deselect-option",e)}else{if(s)return void t.ariaOnChange(e,{action:"select-option",name:i});o?t.setValue([].concat(xr(a),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),i=r.filter((function(e){return t.getOptionValue(e)!==o})),a=n?i:i[0]||null;t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(t.props.isMulti?[]:null,{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),i=e?o:o[0]||null;t.onChange(i,{action:"pop-value",removedValue:r})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(n,{action:"input-change"}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur"}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return ho(t.props)},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,i=n.escapeClearsValue,a=n.inputValue,u=n.isClearable,s=n.isDisabled,l=n.menuIsOpen,c=n.onKeyDown,f=n.tabSelectsValue,p=n.openMenuOnFocus,d=t.state,y=d.focusedOption,h=d.focusedValue,m=d.selectValue;if(!(s||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(h)t.removeValue(h);else{if(!o)return;r?t.popValue():u&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!l||!f||!y||p&&t.isOptionSelected(y,m))return;t.selectOption(y);break;case"Enter":if(229===e.keyCode)break;if(l){if(!y)return;if(t.isComposing)return;t.selectOption(y);break}return;case"Escape":l?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close"}),t.onMenuClose()):u&&i&&t.clearValue();break;case" ":if(a)return;if(!l){t.openMenu("first");break}if(!y)return;t.selectOption(y);break;case"ArrowUp":l?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":l?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!l)return;t.focusOption("pageup");break;case"PageDown":if(!l)return;t.focusOption("pagedown");break;case"Home":if(!l)return;t.focusOption("first");break;case"End":if(!l)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++mo),t.state.selectValue=Bn(e.value),t}return Cn(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(e){var t,n,r,o,i,a=this.props,u=a.isDisabled,s=a.menuIsOpen,l=this.state.isFocused;(l&&!u&&e.isDisabled||l&&s&&!e.menuIsOpen)&&this.focusInput(),l&&u&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),i=n.offsetHeight/3,o.bottom+i>r.bottom?Wn(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+i,t.scrollHeight)):o.top-i-1&&(a=u)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(ro):Tn(Tn({},ro),this.props.theme):ro}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,o=this.selectOption,i=this.setValue,a=this.props,u=a.isMulti,s=a.isRtl,l=a.options;return{clearValue:e,cx:t,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:u,isRtl:s,options:l,selectOption:o,selectProps:a,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return fo(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return po(this.props,e,t)}},{key:"filterOption",value:function(e,t){return yo(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,n=e.isDisabled,r=e.isSearchable,o=e.inputId,i=e.inputValue,a=e.tabIndex,u=e.form,s=this.getComponents().Input,l=this.state.inputIsHidden,c=this.commonProps,f=o||this.getElementId("input"),p={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};return r?t.default.createElement(s,qe({},c,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:f,innerRef:this.getInputRef,isDisabled:n,isHidden:l,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:u,type:"text",value:i},p)):t.default.createElement(zr,qe({id:f,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ln,onFocus:this.onInputFocus,readOnly:!0,disabled:n,tabIndex:a,form:u,value:""},p))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,n=this.getComponents(),r=n.MultiValue,o=n.MultiValueContainer,i=n.MultiValueLabel,a=n.MultiValueRemove,u=n.SingleValue,s=n.Placeholder,l=this.commonProps,c=this.props,f=c.controlShouldRenderValue,p=c.isDisabled,d=c.isMulti,y=c.inputValue,h=c.placeholder,m=this.state,v=m.selectValue,b=m.focusedValue,g=m.isFocused;if(!this.hasValue()||!f)return y?null:t.default.createElement(s,qe({},l,{key:"placeholder",isDisabled:p,isFocused:g}),h);if(d){var S=v.map((function(n,u){var s=n===b;return t.default.createElement(r,qe({},l,{components:{Container:o,Label:i,Remove:a},isFocused:s,isDisabled:p,key:"".concat(e.getOptionValue(n)).concat(u),index:u,removeProps:{onClick:function(){return e.removeValue(n)},onTouchEnd:function(){return e.removeValue(n)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:n}),e.formatOptionLabel(n,"value"))}));return S}if(y)return null;var O=v[0];return t.default.createElement(u,qe({},l,{data:O,isDisabled:p}),this.formatOptionLabel(O,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,n=this.commonProps,r=this.props,o=r.isDisabled,i=r.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||i)return null;var u={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return t.default.createElement(e,qe({},n,{innerProps:u,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,n=this.commonProps,r=this.props,o=r.isDisabled,i=r.isLoading,a=this.state.isFocused;return e&&i?t.default.createElement(e,qe({},n,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),n=e.DropdownIndicator,r=e.IndicatorSeparator;if(!n||!r)return null;var o=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return t.default.createElement(r,qe({},o,{isDisabled:i,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var n=this.commonProps,r=this.props.isDisabled,o=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return t.default.createElement(e,qe({},n,{innerProps:i,isDisabled:r,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,n=this.getComponents(),r=n.Group,o=n.GroupHeading,i=n.Menu,a=n.MenuList,u=n.MenuPortal,s=n.LoadingMessage,l=n.NoOptionsMessage,c=n.Option,f=this.commonProps,p=this.state.focusedOption,d=this.props,y=d.captureMenuScroll,h=d.inputValue,m=d.isLoading,v=d.loadingMessage,b=d.minMenuHeight,g=d.maxMenuHeight,S=d.menuIsOpen,O=d.menuPlacement,w=d.menuPosition,_=d.menuPortalTarget,E=d.menuShouldBlockScroll,A=d.menuShouldScrollIntoView,x=d.noOptionsMessage,C=d.onMenuScrollToTop,P=d.onMenuScrollToBottom;if(!S)return null;var j,k=function(n,r){var o=n.type,i=n.data,a=n.isDisabled,u=n.isSelected,s=n.label,l=n.value,d=p===i,y=a?void 0:function(){return e.onOptionHover(i)},h=a?void 0:function(){return e.selectOption(i)},m="".concat(e.getElementId("option"),"-").concat(r),v={id:m,onClick:h,onMouseMove:y,onMouseOver:y,tabIndex:-1};return t.default.createElement(c,qe({},f,{innerProps:v,data:i,isDisabled:a,isSelected:u,key:m,label:s,type:o,value:l,isFocused:d,innerRef:d?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(n.data,"menu"))};if(this.hasOptions())j=this.getCategorizedOptions().map((function(n){if("group"===n.type){var i=n.data,a=n.options,u=n.index,s="".concat(e.getElementId("group"),"-").concat(u),l="".concat(s,"-heading");return t.default.createElement(r,qe({},f,{key:s,data:i,options:a,Heading:o,headingProps:{id:l,data:n.data},label:e.formatGroupLabel(n.data)}),n.options.map((function(e){return k(e,"".concat(u,"-").concat(e.index))})))}if("option"===n.type)return k(n,"".concat(n.index))}));else if(m){var D=v({inputValue:h});if(null===D)return null;j=t.default.createElement(s,f,D)}else{var M=x({inputValue:h});if(null===M)return null;j=t.default.createElement(l,f,M)}var R={minMenuHeight:b,maxMenuHeight:g,menuPlacement:O,menuPosition:w,menuShouldScrollIntoView:A},T=t.default.createElement(Qn,qe({},f,R),(function(n){var r=n.ref,o=n.placerProps,u=o.placement,s=o.maxHeight;return t.default.createElement(i,qe({},f,R,{innerRef:r,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:m,placement:u}),t.default.createElement(to,{captureEnabled:y,onTopArrive:C,onBottomArrive:P,lockEnabled:E},(function(n){return t.default.createElement(a,qe({},f,{innerRef:function(t){e.getMenuListRef(t),n(t)},isLoading:m,maxHeight:s,focusedOption:p}),j)})))}));return _||"fixed"===w?t.default.createElement(u,qe({},f,{appendTo:_,controlElement:this.controlRef,menuPlacement:O,menuPosition:w}),T):T}},{key:"renderFormField",value:function(){var e=this,n=this.props,r=n.delimiter,o=n.isDisabled,i=n.isMulti,a=n.name,u=this.state.selectValue;if(a&&!o){if(i){if(r){var s=u.map((function(t){return e.getOptionValue(t)})).join(r);return t.default.createElement("input",{name:a,type:"hidden",value:s})}var l=u.length>0?u.map((function(n,r){return t.default.createElement("input",{key:"i-".concat(r),name:a,type:"hidden",value:e.getOptionValue(n)})})):t.default.createElement("input",{name:a,type:"hidden"});return t.default.createElement("div",null,l)}var c=u[0]?this.getOptionValue(u[0]):"";return t.default.createElement("input",{name:a,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,n=this.state,r=n.ariaSelection,o=n.focusedOption,i=n.focusedValue,a=n.isFocused,u=n.selectValue,s=this.getFocusableOptions();return t.default.createElement(Mr,qe({},e,{ariaSelection:r,focusedOption:o,focusedValue:i,isFocused:a,selectValue:u,focusableOptions:s}))}},{key:"render",value:function(){var e=this.getComponents(),n=e.Control,r=e.IndicatorsContainer,o=e.SelectContainer,i=e.ValueContainer,a=this.props,u=a.className,s=a.id,l=a.isDisabled,c=a.menuIsOpen,f=this.state.isFocused,p=this.commonProps=this.getCommonProps();return t.default.createElement(o,qe({},p,{className:u,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:f}),this.renderLiveRegion(),t.default.createElement(n,qe({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:f,menuIsOpen:c}),t.default.createElement(i,qe({},p,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),t.default.createElement(r,qe({},p,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=e.options,a=e.value,u=e.menuIsOpen,s=e.inputValue,l={};if(n&&(a!==n.value||i!==n.options||u!==n.menuIsOpen||s!==n.inputValue)){var c=Bn(a),f=u?function(e,t){return uo(ao(e,t))}(e,c):[],p=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r-1?n:t[0]}(t,f);l={selectValue:c,focusedOption:d,focusedValue:p,clearFocusValueOnUpdate:!1}}var y=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{};return Tn(Tn(Tn({},l),y),{},{prevProps:e})}}]),r}(t.Component);vo.defaultProps=oo;var bo,go,So,Oo=(bo=vo,So=go=function(e){jn(r,e);var n=In(r);function r(){var e;An(this,r);for(var t=arguments.length,o=new Array(t),i=0;i1?n-1:0),o=1;oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1:"commenting"==e.purpose||"replying"==e.purpose;return"TextualBody"===e.type&&(!Object.prototype.hasOwnProperty.call(e,"purpose")||n)},Bo=function(e,t){if(!0===t.editable)return!1;if(!1===t.editable)return!0;if("MINE_ONLY"===t.editable){var n,r,o=null===(n=e.creator)||void 0===n?void 0:n.id;return(null===(r=t.env.user)||void 0===r?void 0:r.id)!==o}return t.readOnly},Vo=function(e){var n,r,o=e.annotation?e.annotation.bodies.filter((function(t){return Uo(t,e.purposeSelector)})):[],i=(n=o.find((function(e){return 1==e.draft})),r=o.length>1,n||{type:"TextualBody",value:"",purpose:r?"replying":"commenting",draft:!0}),a=o.filter((function(e){return e!=i})),u=!e.readOnly&&e.annotation,s=0===a.length||!e.disableReply;return t.default.createElement(t.default.Fragment,null,a.map((function(n,r){return t.default.createElement(To,{key:r,env:e.env,purposeSelector:e.purposeSelector,readOnly:Bo(n,e),body:n,onUpdate:e.onUpdateBody,onDelete:e.onRemoveBody,onSaveAndClose:e.onSaveAndClose})})),u&&s&&t.default.createElement("div",{className:"r6o-widget comment editable"},t.default.createElement(Ze,{focus:e.focus,content:i.value,editable:!0,placeholder:a.length>0?Le.t("Add a reply..."):e.textPlaceHolder||Le.t("Add a comment..."),onChange:function(t){var n=i.value,r=t.target.value;0===n.length&&r.length>0?e.onAppendBody(Io(Io({},i),{},{value:r})):n.length>0&&0===r.length?e.onRemoveBody(i):e.onUpdateBody(i,Io(Io({},i),{},{value:r}))},onSaveAndClose:function(){return e.onSaveAndClose()}}),e.purposeSelector&&i.value.length>0&&t.default.createElement(Eo,{editable:!0,content:i.purpose,onChange:function(t){return e.onUpdateBody(i,Io(Io({},i),{},{purpose:t.value}))},onSaveAndClose:function(){return e.onSaveAndClose()}})))};Vo.disableDelete=function(e,t){return e.bodies.filter((function(e){return Uo(e,t.purposeSelector)})).some((function(e){return Bo(e,t)}))};const Ho=Vo;function zo(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Pn(e,t)}function Wo(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}n(6526);const $o=t.default.createContext(null);var Yo="unmounted",Xo="exited",Zo="entering",qo="entered",Go="exiting",Jo=function(e){function n(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Xo,r.appearStatus=Zo):o=qo:o=t.unmountOnExit||t.mountOnEnter?Yo:Xo,r.state={status:o},r.nextCallback=null,r}zo(n,e),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Yo?{status:Xo}:null};var r=n.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Zo&&n!==qo&&(t=Zo):n!==Zo&&n!==qo||(t=Go)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===Zo?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===Xo&&this.setState({status:Yo})},r.performEnter=function(e){var n=this,r=this.props.enter,o=this.context?this.context.isMounting:e,i=this.props.nodeRef?[o]:[t.default.findDOMNode(this),o],a=i[0],u=i[1],s=this.getTimeouts(),l=o?s.appear:s.enter;e||r?(this.props.onEnter(a,u),this.safeSetState({status:Zo},(function(){n.props.onEntering(a,u),n.onTransitionEnd(l,(function(){n.safeSetState({status:qo},(function(){n.props.onEntered(a,u)}))}))}))):this.safeSetState({status:qo},(function(){n.props.onEntered(a)}))},r.performExit=function(){var e=this,n=this.props.exit,r=this.getTimeouts(),o=this.props.nodeRef?void 0:t.default.findDOMNode(this);n?(this.props.onExit(o),this.safeSetState({status:Go},(function(){e.props.onExiting(o),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Xo},(function(){e.props.onExited(o)}))}))}))):this.safeSetState({status:Xo},(function(){e.props.onExited(o)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(e,n){this.setNextCallback(n);var r=this.props.nodeRef?this.props.nodeRef.current:t.default.findDOMNode(this),o=null==e&&!this.props.addEndListener;if(r&&!o){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],a=i[0],u=i[1];this.props.addEndListener(a,u)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===Yo)return null;var n=this.props,r=n.children,o=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,On(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return t.default.createElement($o.Provider,{value:null},"function"==typeof r?r(e,o):t.default.cloneElement(t.default.Children.only(r),o))},n}(t.default.Component);function Ko(){}Jo.contextType=$o,Jo.propTypes={},Jo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ko,onEntering:Ko,onEntered:Ko,onExit:Ko,onExiting:Ko,onExited:Ko},Jo.UNMOUNTED=Yo,Jo.EXITED=Xo,Jo.ENTERING=Zo,Jo.ENTERED=qo,Jo.EXITING=Go;const Qo=Jo;var ei=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=Wo(n.className,r):n.setAttribute("class",Wo(n.className&&n.className.baseVal||"",r)));var n,r}))},ti=function(e){function n(){for(var t,n=arguments.length,r=new Array(n),o=0;oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n0){if(38===t.which)if(null===c)f(0);else{var n=Math.max(0,c-1);f(n)}else if(40===t.which)if(null===c)f(0);else{var r=Math.min(u.length-1,c+1);f(r)}}else 40===t.which&&Array.isArray(e.vocabulary)&&s(e.vocabulary)},onChange:function(t){var n=t.target.value;i(n),f(null),n?function(t){if("function"==typeof e.vocabulary){var n=(o=t,(0,e.vocabulary)(o));n.then?n.then(s):s(n)}else{var r=function(e,t){return t.filter((function(t){return(t.label?t.label:t).toLowerCase().startsWith(e.toLowerCase())}))}(t,e.vocabulary);s(r)}var o}(n):s([])},value:o,placeholder:e.placeholder})),t.default.createElement("ul",null,u.length>0&&u.map((function(e,n){return t.default.createElement("li",{key:"".concat(e.label?e.label:e).concat(n),onClick:p,onMouseEnter:function(){return f(n)},style:c===n?{backgroundColor:"#bde4ff"}:{}},e.label?e.label:e)}))))};function ai(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ui(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&t.default.createElement("ul",{className:"r6o-taglist"},o.map((function(n){return t.default.createElement("li",{key:c(n),onClick:s(n)},t.default.createElement("span",{className:"r6o-label"},c(n)),!e.readOnly&&t.default.createElement(ni,{in:a===n,timeout:200,classNames:"r6o-delete"},t.default.createElement("span",{className:"r6o-delete-wrapper",onClick:l(n)},t.default.createElement("span",{className:"r6o-delete"},t.default.createElement(xo,{width:12})))))}))),!e.readOnly&&t.default.createElement(ii,{focus:e.focus,placeholder:e.textPlaceHolder||Le.t("Add tag..."),vocabulary:e.vocabulary||[],onChange:function(t){var n=r.value.trim(),o=t.trim();0===n.length&&o.length>0?e.onAppendBody(ui(ui({},r),{},{value:o})):n.length>0&&0===o.length?e.onRemoveBody(r):n!==o&&e.onUpdateBody(r,ui(ui({},r),{},{value:o}))},onSubmit:function(t){var n=t.uri?{type:"SpecificResource",purpose:"tagging",source:{id:t.uri,label:t.label}}:{type:"TextualBody",purpose:"tagging",value:t.label||t};0===r.value.trim().length?e.onAppendBody(n):e.onUpdateBody(r,n)}}))};function fi(e){return fi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fi(e)}function pi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function di(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,gi),o)}return n(e)};const _i=function(e,t,n,r){var o=e.getBoundingClientRect();t.className="r6o-editor r6o-arrow-top r6o-arrow-left";var i=n.getBoundingClientRect(),a=i.left,u=i.top,s=i.right,l=i.bottom;if(t.style.top="".concat(l-o.top+14,"px"),t.style.left="".concat(a-o.left,"px"),r){var c=t.children[1].getBoundingClientRect(),f=e.ownerDocument.defaultView,p=f.innerWidth,d=f.innerHeight;if(c.right>p&&(t.classList.remove("r6o-arrow-left"),t.classList.add("r6o-arrow-right"),t.style.left="".concat(s-c.width-o.left,"px")),c.bottom>d){t.classList.remove("r6o-arrow-top"),t.classList.add("r6o-arrow-bottom");var y=t.children[1].getBoundingClientRect().height;t.style.top="".concat(u-o.top-y-14,"px")}var h=t.children[1].getBoundingClientRect();if(h.top<0){t.classList.add("pushed","down"),t.style.top="".concat(-o.top,"px");var m=l-o.top;h.height-o.top>m&&t.classList.remove("r6o-arrow-bottom")}h.left<0&&(t.classList.add("pushed","right"),t.style.left="".concat(-o.left,"px")),requestAnimationFrame((function(){return t.style.opacity=1}))}};function Ei(e){return Ei="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ei(e)}var Ai=["draft"];function xi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ci(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Ai)}))})},t=n.state.currentAnnotation;0!==t.bodies.length||n.props.allowEmpty?t.isSelection?n.props.onAnnotationCreated(e(t).toAnnotation()):n.props.onAnnotationUpdated(e(t),n.props.annotation):t.isSelection?n.onCancel():n.props.onAnnotationDeleted(n.props.annotation)})),Ti(Mi(n),"onDelete",(function(){return n.props.onAnnotationDeleted(n.props.annotation)})),n.element=t.default.createRef(),n.state={currentAnnotation:e.annotation,dragged:!1,selectionBounds:Ni(e.selectedElement)},n}return n=u,r=[{key:"componentWillReceiveProps",value:function(e){var t,n=this.state.selectionBounds,r=Ni(e.selectedElement);null!==(t=this.props.annotation)&&void 0!==t&&t.isEqual(e.annotation)?this.setState({selectionBounds:r}):this.setState({currentAnnotation:e.annotation,selectionBounds:r}),this.props.modifiedTarget!=e.modifiedTarget&&this.state.currentAnnotation&&this.updateCurrentAnnotation({target:this.props.modifiedTarget}),n!=r&&this.element.current&&(this.removeObserver&&this.removeObserver(),this.removeObserver=this.initResizeObserver())}},{key:"componentDidMount",value:function(){var e=this;this.removeObserver=this.initResizeObserver(),new MutationObserver((function(){e.element.current&&(e.removeObserver&&e.removeObserver(),e.removeObserver=e.initResizeObserver())})).observe(this.element.current,{childList:!0,subtree:!0})}},{key:"componentWillUnmount",value:function(){this.removeObserver&&this.removeObserver()}},{key:"render",value:function(){var e=this,n=this.state.currentAnnotation,r=this.props.widgets?this.props.widgets.map(wi):Oi,o=n&&(n.bodies.length>0||this.props.allowEmpty)&&!this.props.readOnly&&!n.isSelection&&!r.some((function(t){return!!t.type.disableDelete&&t.type.disableDelete(n,Ci(Ci({},t.props),{},{readOnly:e.props.readOnly,env:e.props.env}))}));return t.default.createElement(Ue(),{disabled:!this.props.detachable,handle:".r6o-draggable",cancel:".r6o-btn, .r6o-btn *",onDrag:function(){return e.setState({dragged:!0})}},t.default.createElement("div",{ref:this.element,className:this.state.dragged?"r6o-editor dragged":"r6o-editor"},t.default.createElement("div",{className:"r6o-arrow"}),t.default.createElement("div",{className:"r6o-editor-inner"},r.map((function(r,o){return t.default.cloneElement(r,{key:"".concat(o),focus:0===o,annotation:n,readOnly:e.props.readOnly,env:e.props.env,onAppendBody:e.onAppendBody,onUpdateBody:e.onUpdateBody,onRemoveBody:e.onRemoveBody,onUpsertBody:e.onUpsertBody,onBatchModify:e.onBatchModify,onSetProperty:e.onSetProperty,onAddContext:e.onAddContext,onSaveAndClose:e.onOk})})),this.props.readOnly?t.default.createElement("div",{className:"r6o-footer"},t.default.createElement("button",{className:"r6o-btn",onClick:this.onCancel},Le.t("Close"))):t.default.createElement("div",{className:this.props.detachable?"r6o-footer r6o-draggable":"r6o-footer"},o&&t.default.createElement("button",{className:"r6o-btn left delete-annotation",title:Le.t("Delete"),onClick:this.onDelete},t.default.createElement(Po,{width:12})),t.default.createElement("button",{className:"r6o-btn outline",onClick:this.onCancel},Le.t("Cancel")),t.default.createElement("button",{className:"r6o-btn ",onClick:this.onOk},Le.t("Ok"))))))}}],r&&ki(n.prototype,r),u}(t.Component);function Li(e,t){if(e){if("string"==typeof e)return Fi(e,t);var n=Object.prototype.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)?Fi(e,t):void 0}}function Fi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?e(u):(console.log("Rendered ".concat(i.length,", took ").concat(performance.now()-o,"ms")),t())}))}(i)}))})),Bi(this,"_addAnnotation",(function(e){try{var t=function(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 r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||Li(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.")}()}(r.charOffsetsToDOMPosition([e.start,e.end]),2),n=t[0],o=t[1],i=document.createRange();i.setStart(n.node,n.offset),i.setEnd(o.node,o.offset);var a=r.wrapRange(i);r.applyStyles(e,a),r.bindAnnotation(e,a)}catch(t){console.warn("Could not render annotation"),console.warn(t),console.warn(e.underlying)}})),Bi(this,"findAnnotationSpans",(function(e){var t=e.id||e;return Array.from(document.querySelectorAll('.r6o-annotation[data-id="'.concat(t,'"]')))})),Bi(this,"getAllAnnotations",(function(){var e,t=r.el.querySelectorAll(".r6o-annotation"),n=Array.from(t).map((function(e){return e.annotation}));return function(e){if(Array.isArray(e))return Fi(e)}(e=new Set(n))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Li(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()})),Bi(this,"addOrUpdateAnnotation",(function(e,t){var n,o=r.findAnnotationSpans(e),i=t?r.findAnnotationSpans(t):[],a=(n=o.concat(i),Array.from(new Set(n)));a.length>0?(r._unwrapHighlightings(a),r.el.normalize(),r._addAnnotation(e)):r._addAnnotation(e)})),Bi(this,"removeAnnotation",(function(e){var t=r.findAnnotationSpans(e);t&&(r._unwrapHighlightings(t),r.el.normalize())})),Bi(this,"clear",(function(){var e=Array.from(r.el.querySelectorAll(".r6o-annotation"));r._unwrapHighlightings(e),r.el.normalize()})),Bi(this,"overrideId",(function(e,t){var n=document.querySelectorAll('.r6o-annotation[data-id="'.concat(e,'"]')),o=n[0].annotation.clone({id:t});return r.bindAnnotation(o,n),o})),Bi(this,"applyStyles",(function(e,t){var n="";r.formatter&&r.formatter(e)&&function(){var o=r.formatter(e);if("string"==typeof o||o instanceof String)n=o;else{var i=o.className,a=o.style;i&&(n=i),a&&t.forEach((function(e){e.setAttribute("style","".concat(e.style.cssText," ").concat(a).trim())}))}var u=function(e){o.hasOwnProperty(e)&&e.startsWith("data-")&&t.forEach((function(t){return t.setAttribute(e,o[e])}))};for(var s in o)u(s)}(),t.forEach((function(e){return e.className="r6o-annotation ".concat(n).trim()}))})),Bi(this,"bindAnnotation",(function(e,t){t.forEach((function(t){t.annotation=e,t.dataset.id=e.id}))})),Bi(this,"walkTextNodes",(function(e,t){for(var n=[],r=document.createNodeIterator(e,NodeFilter.SHOW_TEXT),o=0,i=r.nextNode();null!=i&&(o+=i.textContent.length,n.push(i),!(o>t));)i=r.nextNode();return n})),Bi(this,"charOffsetsToDOMPosition",(function(e){var t,n=Math.max.apply(null,e),o=(t=0,r.walkTextNodes(r.el,n).map((function(e){var n=e.textContent.length,r={node:e,start:t,end:t+n};return t+=n,r})));return r.calculateDomPositionWithin(o,e)})),Bi(this,"textNodesBetween",(function(e,t,n){for(var r=document.createNodeIterator(n,NodeFilter.SHOW_TEXT),o=r.nextNode(),i=!1,a=[];null!=o;)o===t&&(i=!1),i&&a.push(o),o===e&&(i=!0),o=r.nextNode();return a})),Bi(this,"calculateDomPositionWithin",(function(e,t){var n=[];return e.forEach((function(e,r){return t.forEach((function(t,r){t>=e.start&&t<=e.end&&(n.length>0&&n[n.length-1].charOffset)!==t&&n.push({charOffset:t,node:e.node,offset:t-e.start})})),n.length=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}(e);try{for(n.s();!(t=n.n()).done;){var r=t.value,o=r.parentNode,i=r.childNodes;if((null==i?void 0:i.length)>0)for(var a=i.length,u=0;u0,ta=null===(Yi=navigator)||void 0===Yi?void 0:Yi.userAgent.match(/(MSIE|Trident)/),na=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Gi(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Ki(r);if(o){var n=Ki(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Zi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ji(e)}(this,e)});function a(e,t,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Qi(Ji(r=i.call(this)),"_onMouseDown",(function(e){0===e.button&&r.clearSelection()})),Qi(Ji(r),"_onMouseUp",(function(e){if(r.isEnabled){var t=r.document.getSelection();if(t.isCollapsed){var n=e.target.closest(".r6o-annotation");n?r.emit("select",{selection:r.highlighter.getAnnotationsAt(n)[0],element:n}):r.emit("select",{})}else if(!r.readOnly){var o=function(e){for(var t=e.toString(),n=0,r=0;" "===t.substring(0,1);)n+=1,t=t.substring(1);for(;" "===t.substring(t.length-1);)r+=1,t=t.substring(0,t.length-1);if(n>0&&e.setStart(e.startContainer,e.startOffset+n),r>0){var o=e.endOffset-r;if(o<0){var i=e.endContainer.previousSibling||e.endContainer.parentNode,a=Array.from(i.childNodes).filter((function(e){return e.nodeType===Node.TEXT_NODE})).pop();e.setEnd(a,a.textContent.length+o)}else e.setEnd(e.endContainer,o)}return e}(t.getRangeAt(0)),i=o.commonAncestorContainer;if(c=r.el,f=i,ta&&f.nodeType==Node.TEXT_NODE?c===f.parentNode||c.contains(f.parentNode):c.contains(f)){var a=function(e,t){var n=document.createRange();n.setStart(t,0),n.setEnd(e.startContainer,e.startOffset);var r=e.toString(),o=n.toString().length;return new Xi({selector:[{type:"TextQuoteSelector",exact:r},{type:"TextPositionSelector",start:o,end:o+r.length}]})}(o,r.el),u=r.highlighter.wrapRange(o);u.forEach((function(e){return e.className="r6o-selection"})),r._hideNativeSelection();var s=function(e,t){var n=[];return t.forEach((function(e){var t=e.closest(".r6o-annotation"),r=null==t?void 0:t.annotation;r&&!n.includes(r)&&n.push(r)})),n.length>0?n.filter((function(t){var n=e.selector("TextPositionSelector"),r=t.start===n.start,o=t.end===n.end;return r&&o})):[]}(a,u);if(s.length>0){var l=s[0];r.clearSelection(),r.emit("select",{selection:l,element:r.document.querySelector('.r6o-annotation[data-id="'.concat(l.id,'"]'))})}else r.emit("select",{selection:a,element:o})}}}var c,f})),Qi(Ji(r),"_hideNativeSelection",(function(){r.el.classList.add("r6o-hide-selection")})),Qi(Ji(r),"clearSelection",(function(){if(r.isEnabled){r._currentSelection=null,r.document.getSelection?r.document.getSelection().empty?r.document.getSelection().empty():r.document.getSelection().removeAllRanges&&r.document.getSelection().removeAllRanges():r.document.selection&&r.document.selection.empty(),r.el.classList.remove("r6o-hide-selection");var e=Array.prototype.slice.call(r.el.querySelectorAll(".r6o-selection"));e&&e.forEach((function(e){var t=e.parentNode;t.insertBefore(r.document.createTextNode(e.textContent),e),t.removeChild(e)})),r.el.normalize()}})),r.el=e,r.highlighter=t,r.readOnly=n,r.isEnabled=!0,r.document=e.ownerDocument,e.addEventListener("mousedown",r._onMouseDown),e.addEventListener("mouseup",r._onMouseUp),ea&&function(e,t){var n,r,o=function(){r&&(t(r),n=null,r=null)};e.addEventListener("touchstart",(function(e){n||(r=e,n=setTimeout(o,1e3))})),document.addEventListener("selectionchange",(function(e){n&&(clearTimeout(n),n=setTimeout(o,1500))}))}(e,r._onMouseUp),r}return t=a,(n=[{key:"enabled",get:function(){return this.isEnabled},set:function(e){this.isEnabled=e}}])&&qi(t.prototype,n),a}(i());function ra(e,t){for(var n=0;n0?e[e.length-1]:null;return o?(r=t,(n=o).height!==r.height||n.x+n.width!==r.x&&r.x+r.width!==n.x?e.push(t):e[e.length-1]=function(e,t){var n=e.bottom,r=e.height,o=e.top,i=Math.min(e.x,t.x),a=Math.min(e.left,t.left),u=Math.max(e.y,t.y);return{bottom:n,height:r,left:a,right:Math.max(e.right,t.right),top:o,width:e.width+t.width,x:i,y:u}}(o,t)):e.push(t),e}),[])};const sa="http://www.w3.org/2000/svg",la=3,ca=6.5,fa="a3,3 0 0 1 3,3",pa="a3,3 0 0 0 -3,3",da="a3,3 0 0 1 -3,3",ya="a3,3 0 0 0 -3,-3",ha="a3,3 0 0 1 -3,-3",ma="a3,3 0 0 0 3,-3",va="a3,3 0 0 1 3,-3",ba="a3,3 0 0 0 3,3";function ga(e){return ga="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ga(e)}function Sa(e,t){return Sa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Sa(e,t)}function Oa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wa(e){return wa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},wa(e)}function _a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ea=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Sa(e,t)}(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=wa(t);if(n){var o=wa(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===ga(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Oa(e)}(this,e)});function o(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),_a(Oa(n=r.call(this)),"setPosition",(function(e,t){var r=Math.round(e[0])-.5,o=Math.round(e[1]),i=Math.round(n.bounds.width/2);n.rect.setAttribute("x",r-3-i),n.rect.setAttribute("y",o-6.5),n.text.setAttribute("x",r),n.text.setAttribute("y",o),n.arrow.setAttribute("d","left"===t?"M"+(e[0]-i-8)+","+(e[1]-4)+"l-7,4l7,4":"right"===t?"M"+(e[0]+i+8)+","+(e[1]-4)+"l7,4l-7,4":"down"===t?"M"+(e[0]-4)+","+(e[1]+12)+"l4,7l4,-7":"M"+(e[0]-4)+","+(e[1]-12)+"l4,-7l4,7")})),_a(Oa(n),"destroy",(function(){return n.svg.removeChild(n.g)})),n.svg=t,n.g=document.createElementNS(sa,"g"),n.text=document.createElementNS(sa,"text"),n.rect=document.createElementNS(sa,"rect"),n.arrow=document.createElementNS(sa,"path"),n.g.appendChild(n.rect),n.g.appendChild(n.text),n.g.appendChild(n.arrow),n.svg.appendChild(n.g),n.g.setAttribute("class","handle"),n.text.innerHTML=e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),n.bounds=n.text.getBBox(),n.text.setAttribute("dy",2),n.text.setAttribute("dx",-Math.round(n.bounds.width/2)),n.rect.setAttribute("rx",2),n.rect.setAttribute("ry",2),n.rect.setAttribute("width",Math.round(n.bounds.width)+5),n.rect.setAttribute("height",Math.round(n.bounds.height)),n.arrow.setAttribute("class","r6o-arrow"),n.rect.addEventListener("click",(function(){return n.emit("click")})),n}return o}(i()),Aa=function(e,t){var n=e.querySelectorAll('*[data-id="'.concat(t,'"]'));return n.length>0?{annotation:n[0].annotation,elements:Array.from(n)}:null},xa=function(e){var t,n=e.target.closest(".r6o-annotation");if(n){var r=(t=Ca(n).map((function(e){return e.annotation})),t.sort((function(e,t){return e.quote.length-t.quote.length})))[0],o=document.querySelectorAll('.r6o-annotation[data-id="'.concat(r.id,'"]'));return{annotation:r,elements:Array.from(o)}}},Ca=function e(t,n){var r=n||[];r.push(t);var o=t.parentNode;return o.classList.contains("r6o-annotation")?e(o,r):r};function Pa(e){return Pa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pa(e)}function ja(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nMath.abs(o)?r[0]+o:r[0]+a*Math.sign(o),s=a>Math.abs(o)?i>0?"down":"up":o>0?"right":"left",l=ca-la;this.startDot.setAttribute("cx",r[0]),this.startDot.setAttribute("cy",r[1]),this.startDot.setAttribute("r",2),this.startDot.setAttribute("class","start"),this.endDot.setAttribute("cx",t[0]),this.endDot.setAttribute("cy",t[1]),this.endDot.setAttribute("r",2),this.endDot.setAttribute("class","end"),n?this.path.setAttribute("d",(c=o>0?va:ya,f=o>0?i>=0?fa:ma:i>=0?pa:ha,e=a>Math.abs(o)?r[1]-(a-Math.abs(o))-ca:r[1]-ca,"M"+r[0]+" "+r[1]+"v-"+(ca-la)+c+"h"+(o-2*Math.sign(o)*la)+f+"V"+t[1])):this.path.setAttribute("d",function(){var n=o>0?ba:da,i=o>0?fa:pa;return e=a>Math.abs(o)?r[1]+a-Math.abs(o)+ca:r[1]+ca,"M"+r[0]+" "+r[1]+"v"+l+n+"h"+(o-2*Math.sign(o)*la)+i+"V"+t[1]}()),this.path.setAttribute("class","connection"),this.currentMidXY=[u,e],this.handle&&this.handle.setPosition(this.currentMidXY,s)}var c,f})),Ta(Ma(r),"recompute",(function(){r.fromBounds.recompute(),r.currentEnd.elements&&r.toBounds.recompute(),r.redraw()})),Ta(Ma(r),"matchesRelation",(function(e){return e.from.isEqual(r.fromNode.annotation)&&e.to.isEqual(r.toNode.annotation)})),r.svgEl=t,r.path=document.createElementNS(sa,"path"),r.startDot=document.createElementNS(sa,"circle"),r.endDot=document.createElementNS(sa,"circle"),t.appendChild(r.path),t.appendChild(r.startDot),t.appendChild(r.endDot);var o="Annotation"===n.type?r.initFromAnnotation(e,t,n):r.initFromStartNode(t,n);return r.annotation=o.annotation,r.fromNode=o.fromNode,r.fromBounds=o.fromBounds,r.toNode=o.toNode,r.toBounds=o.toBounds,r.currentEnd=o.currentEnd,r.handle=o.handle,r.floating=o.floating,r.redraw(),r}return t=a,(n=[{key:"isFloating",get:function(){return this.floating}},{key:"startAnnotation",get:function(){return this.fromNode.annotation}},{key:"endAnnotation",get:function(){return this.toNode.annotation}},{key:"endXY",get:function(){return this.currentEnd instanceof Array?this.currentEnd:this.fromBounds.top>this.toBounds.top?this.toBounds.bottomHandleXY:this.toBounds.topHandleXY}},{key:"midXY",get:function(){return this.currentMidXY}}])&&ka(t.prototype,n),a}(i()),Ia=function e(t,n){var r,o,i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o=function(){i.svgEl.removeChild(i.outlines)},(r="destroy")in this?Object.defineProperty(this,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):this[r]=o,this.annotation=n[0].annotation,this.node={annotation:this.annotation,elements:n},this.outlines=document.createElementNS(sa,"g"),new oa(n,t).rects.forEach((function(e){var t=document.createElementNS(sa,"rect");t.setAttribute("x",e.left-.5),t.setAttribute("y",e.top-.5),t.setAttribute("width",e.width+1),t.setAttribute("height",e.height),t.setAttribute("class","hover"),i.outlines.appendChild(t)})),t.appendChild(this.outlines),this.svgEl=t};function La(e){return La="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},La(e)}function Fa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,cu)}))})).toAnnotation()):n.props.onAnnotationSelected(r.clone(),o)):n.clearState()})),hu(du(n),"overrideAnnotationId",(function(e){return function(t){var r=e.id,o=function(t){requestAnimationFrame((function(){n.relationsLayer.overrideTargetAnnotation(e,t)}))};if(n.state.selectedAnnotation||n.state.selectedRelation)n.relationsLayer.resetDrawing(),n.setState({selectedAnnotation:null,selectedRelation:null},(function(){var e=n.highlighter.overrideId(r,t);o(e)}));else{var i=n.highlighter.overrideId(r,t);o(i)}}})),hu(du(n),"overrideRelationId",(function(e){return function(t){n.state.selectedRelation?n.setState({selectedRelation:null},(function(){return n.relationsLayer.overrideRelationId(e,t)})):n.relationsLayer.overrideRelationId(e,t)}})),hu(du(n),"onCreateOrUpdateAnnotation",(function(e){return function(t,r){n.clearState(),n.selectionHandler.clearSelection(),n.highlighter.addOrUpdateAnnotation(t,r),r?n.props[e](t.clone(),r.clone()):n.props[e](t.clone(),n.overrideAnnotationId(t))}})),hu(du(n),"onDeleteAnnotation",(function(e){n.relationsLayer.destroyConnectionsFor(e),n.clearState(),n.selectionHandler.clearSelection(),n.highlighter.removeAnnotation(e),n.props.onAnnotationDeleted(e)})),hu(du(n),"onCancelAnnotation",(function(e){n.clearState(),n.selectionHandler.clearSelection(),n.props.onCancelSelected(e)})),hu(du(n),"closeRelationsEditor",(function(){n.setState({selectedRelation:null}),n.relationsLayer.resetDrawing()})),hu(du(n),"onEditRelation",(function(e){n.setState({selectedRelation:e})})),hu(du(n),"onCreateOrUpdateRelation",(function(e,t){n.relationsLayer.addOrUpdateRelation(e,t),n.closeRelationsEditor(),0===t.annotation.bodies.length?n.props.onAnnotationCreated(e.annotation.clone(),n.overrideRelationId(e.annotation.id)):n.props.onAnnotationUpdated(e.annotation.clone(),t.annotation.clone())})),hu(du(n),"onDeleteRelation",(function(e){n.relationsLayer.removeRelation(e),n.closeRelationsEditor(),n.props.onAnnotationDeleted(e.annotation)})),hu(du(n),"addAnnotation",(function(e){n.highlighter.addOrUpdateAnnotation(e.clone())})),hu(du(n),"getAnnotations",(function(){var e=n.highlighter.getAllAnnotations(),t=n.relationsLayer.getAllRelations();return e.concat(t).map((function(e){return e.clone()}))})),hu(du(n),"removeAnnotation",(function(e){n.highlighter.removeAnnotation(e);var t=n.state.selectedAnnotation;t&&e.isEqual(t)&&n.clearState()})),hu(du(n),"selectAnnotation",(function(e){n.setState({selectedAnnotation:null,selectedDOMElement:null},(function(){if(e){var t=n.highlighter.findAnnotationSpans(e);if(t.length>0){var r=t[0],o=t[0].annotation;n.setState({selectedAnnotation:o,selectedDOMElement:r})}}}))})),hu(du(n),"setAnnotations",(function(e){n.highlighter.clear(),n.relationsLayer.clear();var t=e.map((function(e){return e.clone()}));return n.highlighter.init(t).then((function(){return n.relationsLayer.init(t)}))})),hu(du(n),"setMode",(function(e){"RELATIONS"===e?(n.clearState(),n.selectionHandler.enabled=!1,n.relationsLayer.readOnly=!1,n.relationsLayer.startDrawing()):(n.setState({selectedRelation:null}),n.selectionHandler.enabled=!0,n.relationsLayer.readOnly=!0,n.relationsLayer.stopDrawing())})),n.state={selectedAnnotation:null,selectedDOMElement:null,selectedRelation:null,readOnly:n.props.config.readOnly,widgets:n.props.config.widgets,editorDisabled:n.props.config.disableEditor},n._editor=t.default.createRef(),n}return n=u,(r=[{key:"componentDidMount",value:function(){this.highlighter=new Vi(this.props.contentEl,this.props.config.formatter),this.selectionHandler=new na(this.props.contentEl,this.highlighter,this.props.config.readOnly),this.selectionHandler.on("select",this.handleSelect),this.relationsLayer=new Qa(this.props.contentEl),this.relationsLayer.on("createRelation",this.onEditRelation),this.relationsLayer.on("selectRelation",this.onEditRelation),this.relationsLayer.on("cancelDrawing",this.closeRelationsEditor),document.addEventListener("keydown",this.handleEscape)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleEscape)}},{key:"disableSelect",get:function(){return!this.selectionHandler.enabled},set:function(e){e?this.props.contentEl.classList.add("r6o-noselect"):this.props.contentEl.classList.remove("r6o-noselect"),this.selectionHandler.enabled=!e}},{key:"readOnly",get:function(){return this.state.readOnly},set:function(e){this.selectionHandler.readOnly=e,this.setState({readOnly:e})}},{key:"widgets",get:function(){return this.state.widgets},set:function(e){this.setState({widgets:e})}},{key:"disableEditor",get:function(){return this.state.editorDisabled},set:function(e){this.setState({editorDisabled:e})}},{key:"render",value:function(){var e,n=(this.state.selectedAnnotation||this.state.selectedRelation)&&!this.state.editorDisabled,r=this.state.readOnly||(null===(e=this.state.selectedAnnotation)||void 0===e?void 0:e.readOnly);return n&&t.default.createElement(t.default.Fragment,null,this.state.selectedAnnotation&&t.default.createElement(Ii,{ref:this._editor,autoPosition:this.props.config.editorAutoPosition,wrapperEl:this.props.wrapperEl,annotation:this.state.selectedAnnotation,selectedElement:this.state.selectedDOMElement,readOnly:r,allowEmpty:this.props.config.allowEmpty,widgets:this.state.widgets,env:this.props.env,onChanged:this.onChanged,onAnnotationCreated:this.onCreateOrUpdateAnnotation("onAnnotationCreated"),onAnnotationUpdated:this.onCreateOrUpdateAnnotation("onAnnotationUpdated"),onAnnotationDeleted:this.onDeleteAnnotation,onCancel:this.onCancelAnnotation}),this.state.selectedRelation&&t.default.createElement(su,{relation:this.state.selectedRelation,onRelationCreated:this.onCreateOrUpdateRelation,onRelationUpdated:this.onCreateOrUpdateRelation,onRelationDeleted:this.onDeleteRelation,onCancel:this.closeRelationsEditor,vocabulary:this.props.relationVocabulary}))}}])&&fu(n.prototype,r),u}(t.Component);function vu(e){return function(e){if(Array.isArray(e))return bu(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return bu(e,t);var n=Object.prototype.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)?bu(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0){var n=t.textContent.replace(/\s\s+/g," ");return[].concat(vu(e),[document.createTextNode(n)])}return e}return[].concat(vu(e),[t])}),[])}(e);e.firstChild;)e.removeChild(e.lastChild);t.forEach((function(t){return e.appendChild(t)}))}));var n=t.reduce((function(e,t){return e.concat(Array.from(t.childNodes).filter((function(e){return e.firstChild})))}),[]);n.length>0&&e(n)};function Su(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n + +{% endblock %} + +{% block extra_js %} + + {% endblock %} {% block lists %}