HEX
Server: Apache/2.4.65 (Debian)
System: Linux 88f31f35b0b8 6.1.0-38-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.147-1 (2025-08-02) x86_64
User: www-data (33)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/wp-rss-aggregator/core/js/dist/admin.js
var Iee=Object.defineProperty;var Oee=(D,Xt,c)=>Xt in D?Iee(D,Xt,{enumerable:!0,configurable:!0,writable:!0,value:c}):D[Xt]=c;var Ou=(D,Xt,c)=>(Oee(D,typeof Xt!="symbol"?Xt+"":Xt,c),c);(function(D,Xt){typeof exports=="object"&&typeof module<"u"?Xt(require("react"),require("react-dom"),require("@wordpress/i18n")):typeof define=="function"&&define.amd?define(["react","react-dom","@wordpress/i18n"],Xt):(D=typeof globalThis<"u"?globalThis:D||self,Xt(D.React,D.ReactDOM,D.wp.i18n))})(this,function(D,Xt,c){"use strict";var $p=document.createElement("style");$p.textContent=`/*! tailwindcss v3.3.3 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e0e0e0;box-sizing:border-box}:after,:before{--tw-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#ccc;opacity:1}input::placeholder,textarea::placeholder{color:#ccc;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}@media (min-width:1800px){.container{max-width:1800px}}.form-input,.form-multiselect,.form-select,.form-textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#bbb;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem;--tw-shadow:0 0 #0000}.form-input:focus,.form-multiselect:focus,.form-select:focus,.form-textarea:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.form-input::-moz-placeholder,.form-textarea::-moz-placeholder{color:#bbb;opacity:1}.form-input::placeholder,.form-textarea::placeholder{color:#bbb;opacity:1}.form-input::-webkit-datetime-edit-fields-wrapper{padding:0}.form-input::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}.form-input::-webkit-datetime-edit{display:inline-flex}.form-input::-webkit-datetime-edit,.form-input::-webkit-datetime-edit-day-field,.form-input::-webkit-datetime-edit-hour-field,.form-input::-webkit-datetime-edit-meridiem-field,.form-input::-webkit-datetime-edit-millisecond-field,.form-input::-webkit-datetime-edit-minute-field,.form-input::-webkit-datetime-edit-month-field,.form-input::-webkit-datetime-edit-second-field,.form-input::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}.form-checkbox,.form-radio{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#bbb;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1rem;--tw-shadow:0 0 #0000}.form-checkbox{border-radius:0}.form-radio{border-radius:100%}.form-checkbox:focus,.form-radio:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.form-checkbox:checked,.form-radio:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}.form-checkbox:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0'/%3E%3C/svg%3E")}.form-radio:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E")}.form-checkbox:checked:focus,.form-checkbox:checked:hover,.form-radio:checked:focus,.form-radio:checked:hover{background-color:currentColor;border-color:transparent}.form-checkbox:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}.form-checkbox:indeterminate:focus,.form-checkbox:indeterminate:hover{background-color:currentColor;border-color:transparent}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.static{position:static}.fixed{position:fixed}.\\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.-top-\\[1px\\]{top:-1px}.bottom-0{bottom:0}.bottom-\\[1px\\]{bottom:1px}.bottom-\\[2px\\]{bottom:2px}.bottom-\\[32px\\]{bottom:32px}.left-0{left:0}.left-4{left:1rem}.right-0{right:0}.right-1{right:.25rem}.right-2{right:.5rem}.right-5{right:1.25rem}.right-8{right:2rem}.right-\\[1px\\]{right:1px}.right-\\[2px\\]{right:2px}.right-\\[4px\\]{right:4px}.right-\\[6px\\]{right:6px}.right-\\[8px\\]{right:8px}.right-full{right:100%}.top-0{top:0}.top-1{top:.25rem}.top-1\\/2{top:50%}.top-2{top:.5rem}.top-4{top:1rem}.top-5{top:1.25rem}.top-\\[-1px\\]{top:-1px}.top-\\[1px\\]{top:1px}.top-\\[2px\\]{top:2px}.top-\\[6px\\]{top:6px}.top-\\[84px\\]{top:84px}.top-\\[8px\\]{top:8px}.z-0{z-index:0}.z-10{z-index:10}.z-50{z-index:50}.z-\\[10000\\]{z-index:10000}.z-fixed{z-index:50}.z-modals{z-index:80}.z-snackbar{z-index:150}.z-widgets{z-index:100}.float-right{float:right}.m-0{margin:0}.m-8{margin:2rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-10{margin-left:2.5rem;margin-right:2.5rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.mx-9{margin-left:2.25rem;margin-right:2.25rem}.mx-\\[-8px\\]{margin-left:-8px;margin-right:-8px}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-bottom:.25rem;margin-top:.25rem}.my-1\\.5{margin-bottom:.375rem;margin-top:.375rem}.my-2{margin-bottom:.5rem;margin-top:.5rem}.my-3{margin-bottom:.75rem;margin-top:.75rem}.my-4{margin-bottom:1rem;margin-top:1rem}.my-5{margin-bottom:1.25rem;margin-top:1.25rem}.my-7{margin-bottom:1.75rem;margin-top:1.75rem}.-mb-\\[1\\.5rem\\]{margin-bottom:-1.5rem}.-mr-\\[2rem\\]{margin-right:-2rem}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}.mb-14{margin-bottom:3.5rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-40{margin-bottom:10rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mb-\\[-16px\\]{margin-bottom:-16px}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.mr-1{margin-right:.25rem}.mr-10{margin-right:2.5rem}.mr-2{margin-right:.5rem}.mr-20{margin-right:5rem}.mr-4{margin-right:1rem}.mr-6{margin-right:1.5rem}.mr-\\[2px\\]{margin-right:2px}.mr-\\[5px\\]{margin-right:5px}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-11{margin-top:2.75rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-20{margin-top:5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-\\[-10px\\]{margin-top:-10px}.mt-\\[-1px\\]{margin-top:-1px}.mt-\\[-4px\\]{margin-top:-4px}.mt-\\[1px\\]{margin-top:1px}.mt-\\[2px\\]{margin-top:2px}.box-border{box-sizing:border-box}.box-content{box-sizing:content-box}.line-clamp-1{-webkit-line-clamp:1}.line-clamp-1,.line-clamp-3{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical}.line-clamp-3{-webkit-line-clamp:3}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-\\[11\\/4\\]{aspect-ratio:11/4}.aspect-\\[16\\/5\\]{aspect-ratio:16/5}.aspect-\\[16\\/9\\]{aspect-ratio:16/9}.aspect-\\[2\\.1\\]{aspect-ratio:2.1}.aspect-square{aspect-ratio:1/1}.\\!h-auto{height:auto!important}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-20{height:5rem}.h-28{height:7rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\\[10px\\]{height:10px}.h-\\[1200px\\]{height:1200px}.h-\\[18px\\]{height:18px}.h-\\[1px\\]{height:1px}.h-\\[200px\\]{height:200px}.h-\\[24px\\]{height:24px}.h-\\[32px\\]{height:32px}.h-\\[36px\\]{height:36px}.h-\\[400px\\]{height:400px}.h-\\[40px\\]{height:40px}.h-\\[64px\\]{height:64px}.h-\\[68px\\]{height:68px}.h-\\[750px\\]{height:750px}.h-\\[82px\\]{height:82px}.h-\\[88px\\]{height:88px}.h-\\[90px\\]{height:90px}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-max{height:-moz-max-content;height:max-content}.h-min{height:-moz-min-content;height:min-content}.max-h-\\[90\\%\\]{max-height:90%}.max-h-full{max-height:100%}.max-h-screen{max-height:100vh}.min-h-\\[32px\\]{min-height:32px}.min-h-\\[36px\\]{min-height:36px}.min-h-\\[40px\\]{min-height:40px}.min-h-\\[50px\\]{min-height:50px}.min-h-\\[55px\\]{min-height:55px}.min-h-full{min-height:100%}.w-1\\/2{width:50%}.w-1\\/3{width:33.333333%}.w-10{width:2.5rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\\/3{width:66.666667%}.w-20{width:5rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\\/4{width:75%}.w-32{width:8rem}.w-36{width:9rem}.w-4{width:1rem}.w-40{width:10rem}.w-44{width:11rem}.w-5{width:1.25rem}.w-52{width:13rem}.w-56{width:14rem}.w-60{width:15rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-72{width:18rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-96{width:24rem}.w-\\[10\\%\\]{width:10%}.w-\\[120px\\]{width:120px}.w-\\[13rem\\]{width:13rem}.w-\\[150px\\]{width:150px}.w-\\[160px\\]{width:160px}.w-\\[1px\\]{width:1px}.w-\\[200px\\]{width:200px}.w-\\[24px\\]{width:24px}.w-\\[250px\\]{width:250px}.w-\\[273px\\]{width:273px}.w-\\[280px\\]{width:280px}.w-\\[286px\\]{width:286px}.w-\\[297px\\]{width:297px}.w-\\[300px\\]{width:300px}.w-\\[30px\\]{width:30px}.w-\\[32px\\]{width:32px}.w-\\[350px\\]{width:350px}.w-\\[360px\\]{width:360px}.w-\\[36px\\]{width:36px}.w-\\[380px\\]{width:380px}.w-\\[400px\\]{width:400px}.w-\\[480px\\]{width:480px}.w-\\[50\\%\\]{width:50%}.w-\\[500px\\]{width:500px}.w-\\[560px\\]{width:560px}.w-\\[60\\%\\]{width:60%}.w-\\[600px\\]{width:600px}.w-\\[64px\\]{width:64px}.w-\\[660px\\]{width:660px}.w-\\[80\\%\\]{width:80%}.w-\\[82px\\]{width:82px}.w-\\[900px\\]{width:900px}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-min{width:-moz-min-content;width:min-content}.min-w-\\[160px\\]{min-width:160px}.min-w-\\[18px\\]{min-width:18px}.min-w-\\[200px\\]{min-width:200px}.min-w-\\[220px\\]{min-width:220px}.min-w-\\[250px\\]{min-width:250px}.min-w-\\[300px\\]{min-width:300px}.min-w-\\[350px\\]{min-width:350px}.min-w-\\[40\\%\\]{min-width:40%}.max-w-0{max-width:0}.max-w-\\[1085px\\]{max-width:1085px}.max-w-\\[1200px\\]{max-width:1200px}.max-w-\\[180px\\]{max-width:180px}.max-w-\\[200px\\]{max-width:200px}.max-w-\\[220px\\]{max-width:220px}.max-w-\\[250px\\]{max-width:250px}.max-w-\\[280px\\]{max-width:280px}.max-w-\\[300px\\]{max-width:300px}.max-w-\\[37rem\\]{max-width:37rem}.max-w-\\[393px\\]{max-width:393px}.max-w-\\[400px\\]{max-width:400px}.max-w-\\[420px\\]{max-width:420px}.max-w-\\[50\\%\\]{max-width:50%}.max-w-\\[500px\\]{max-width:500px}.max-w-\\[580px\\]{max-width:580px}.max-w-\\[600px\\]{max-width:600px}.max-w-\\[640px\\]{max-width:640px}.max-w-\\[650px\\]{max-width:650px}.max-w-\\[660px\\]{max-width:660px}.max-w-\\[680px\\]{max-width:680px}.max-w-\\[700px\\]{max-width:700px}.max-w-\\[740px\\]{max-width:740px}.max-w-\\[750px\\]{max-width:750px}.max-w-\\[800px\\]{max-width:800px}.max-w-\\[850px\\]{max-width:850px}.max-w-\\[90\\%\\]{max-width:90%}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.flex-1{flex:1 1 0%}.flex-\\[200px\\]{flex:200px}.flex-\\[5\\]{flex:5}.flex-shrink{flex-shrink:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.table-fixed{table-layout:fixed}.-translate-y-1\\/2,.translate-y-\\[-50\\%\\]{--tw-translate-y:-50%}.-translate-y-1\\/2,.translate-y-\\[-50\\%\\],.translate-y-\\[-5em\\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[-5em\\]{--tw-translate-y:-5em}.scale-y-\\[-100\\%\\]{--tw-scale-y:-100%}.scale-y-\\[-100\\%\\],.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.animate-fade-in{animation:fade-in .15s ease-out 1 forwards}@keyframes fade-out{0%{opacity:1}to{opacity:0}}.animate-fade-out{animation:fade-out .15s ease-in 1 forwards}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes slide-in-left{0%{opacity:0;transform:translate(50%)}90%{opacity:1}to{transform:translate(0)}}.animate-slide-in-left{animation:slide-in-left .15s ease-out 1 forwards}@keyframes slide-out-right{0%{opacity:1;transform:translate(0)}to{opacity:0;transform:translate(50%)}}.animate-slide-out-right{animation:slide-out-right .15s ease-in 1 forwards}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin-8{animation:spin 1s steps(8) infinite}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-help{cursor:help}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.select-all{-webkit-user-select:all;-moz-user-select:all;user-select:all}.resize-none{resize:none}.list-inside{list-style-position:inside}.list-decimal{list-style-type:decimal}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grid-cols-\\[230px_1fr\\]{grid-template-columns:230px 1fr}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.flex-nowrap{flex-wrap:nowrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0}.gap-0\\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\\.5{gap:.375rem}.gap-10{gap:2.5rem}.gap-12{gap:3rem}.gap-16{gap:4rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-7{gap:1.75rem}.gap-8{gap:2rem}.gap-\\[10px\\]{gap:10px}.gap-\\[18px\\]{gap:18px}.gap-\\[2px\\]{gap:2px}.gap-\\[6px\\]{gap:6px}.gap-y-3{row-gap:.75rem}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}.space-y-7>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.75rem*var(--tw-space-y-reverse));margin-top:calc(1.75rem*(1 - var(--tw-space-y-reverse)))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.self-stretch{align-self:stretch}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.\\!truncate{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.truncate{overflow:hidden;white-space:nowrap}.text-ellipsis,.truncate{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.whitespace-break-spaces{white-space:break-spaces}.rounded-2xl{border-radius:20px}.rounded-\\[12px\\]{border-radius:12px}.rounded-\\[38px\\]{border-radius:38px}.rounded-\\[40px\\]{border-radius:40px}.rounded-\\[58px\\]{border-radius:58px}.rounded-\\[9px\\]{border-radius:9px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:10px}.rounded-md{border-radius:6px}.rounded-sm{border-radius:4px}.rounded-xs{border-radius:2px}.rounded-b-2xl{border-bottom-left-radius:20px;border-bottom-right-radius:20px}.rounded-t-lg{border-top-left-radius:10px;border-top-right-radius:10px}.rounded-bl-full{border-bottom-left-radius:9999px}.rounded-br-full{border-bottom-right-radius:9999px}.rounded-tl-full{border-top-left-radius:9999px}.rounded-tr-full{border-top-right-radius:9999px}.\\!border{border-width:1px!important}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-\\[1px\\]{border-width:1px}.border-y{border-top-width:1px}.border-b,.border-b-\\[1px\\],.border-y{border-bottom-width:1px}.border-b-\\[3px\\]{border-bottom-width:3px}.border-l{border-left-width:1px}.border-l-\\[5px\\]{border-left-width:5px}.border-r,.border-r-\\[1px\\]{border-right-width:1px}.border-t,.border-t-\\[1px\\]{border-top-width:1px}.border-dashed{border-style:dashed}.border-none{border-style:none}.\\!border-alert-red{--tw-border-opacity:1!important;border-color:rgb(204 24 24/var(--tw-border-opacity))!important}.border-\\[\\#E26F56\\]{--tw-border-opacity:1;border-color:rgb(226 111 86/var(--tw-border-opacity))}.border-accent-dark{--tw-border-opacity:1;border-color:rgb(213 55 11/var(--tw-border-opacity))}.border-alert-green{--tw-border-opacity:1;border-color:rgb(16 147 49/var(--tw-border-opacity))}.border-alert-red{--tw-border-opacity:1;border-color:rgb(204 24 24/var(--tw-border-opacity))}.border-alert-yellow{--tw-border-opacity:1;border-color:rgb(240 184 73/var(--tw-border-opacity))}.border-black{--tw-border-opacity:1;border-color:rgb(0 0 0/var(--tw-border-opacity))}.border-gray-100{--tw-border-opacity:1;border-color:rgb(240 240 240/var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(224 224 224/var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity:1;border-color:rgb(204 204 204/var(--tw-border-opacity))}.border-gray-500{--tw-border-opacity:1;border-color:rgb(187 187 187/var(--tw-border-opacity))}.border-gray-600{--tw-border-opacity:1;border-color:rgb(148 148 148/var(--tw-border-opacity))}.border-gray-700{--tw-border-opacity:1;border-color:rgb(117 117 117/var(--tw-border-opacity))}.border-light-blue{--tw-border-opacity:1;border-color:rgb(246 247 251/var(--tw-border-opacity))}.border-primary{--tw-border-opacity:1;border-color:rgb(20 36 138/var(--tw-border-opacity))}.border-tertiary{--tw-border-opacity:1;border-color:rgb(33 79 75/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-white\\/10{border-color:#ffffff1a}.border-y-gray-200{border-top-color:rgb(224 224 224/var(--tw-border-opacity))}.border-b-gray-200,.border-y-gray-200{--tw-border-opacity:1;border-bottom-color:rgb(224 224 224/var(--tw-border-opacity))}.border-b-gray-400{--tw-border-opacity:1;border-bottom-color:rgb(204 204 204/var(--tw-border-opacity))}.border-b-gray-500{--tw-border-opacity:1;border-bottom-color:rgb(187 187 187/var(--tw-border-opacity))}.border-b-tertiary{--tw-border-opacity:1;border-bottom-color:rgb(33 79 75/var(--tw-border-opacity))}.border-b-transparent{border-bottom-color:transparent}.border-r-gray-200{--tw-border-opacity:1;border-right-color:rgb(224 224 224/var(--tw-border-opacity))}.border-r-gray-700{--tw-border-opacity:1;border-right-color:rgb(117 117 117/var(--tw-border-opacity))}.border-t-gray-200{--tw-border-opacity:1;border-top-color:rgb(224 224 224/var(--tw-border-opacity))}.\\!bg-\\[\\#2A6560\\]{--tw-bg-opacity:1!important;background-color:rgb(42 101 96/var(--tw-bg-opacity))!important}.\\!bg-light-blue{--tw-bg-opacity:1!important;background-color:rgb(246 247 251/var(--tw-bg-opacity))!important}.\\!bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.bg-\\[\\#3A3A3A\\]{--tw-bg-opacity:1;background-color:rgb(58 58 58/var(--tw-bg-opacity))}.bg-\\[\\#3D3D3D\\]{--tw-bg-opacity:1;background-color:rgb(61 61 61/var(--tw-bg-opacity))}.bg-\\[\\#FEF6EB\\]{--tw-bg-opacity:1;background-color:rgb(254 246 235/var(--tw-bg-opacity))}.bg-accent{--tw-bg-opacity:1;background-color:rgb(243 68 19/var(--tw-bg-opacity))}.bg-alert-green{--tw-bg-opacity:1;background-color:rgb(16 147 49/var(--tw-bg-opacity))}.bg-alert-red{--tw-bg-opacity:1;background-color:rgb(204 24 24/var(--tw-bg-opacity))}.bg-beige{--tw-bg-opacity:1;background-color:rgb(248 247 243/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(240 240 240/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(224 224 224/var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity:1;background-color:rgb(187 187 187/var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity:1;background-color:rgb(148 148 148/var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity:1;background-color:rgb(47 47 47/var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity:1;background-color:rgb(30 30 30/var(--tw-bg-opacity))}.bg-gray-light{background-color:#ffffffa6}.bg-gray-medium-overlay{background-color:#1e1e1e33}.bg-gray-very-light{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity))}.bg-light{--tw-bg-opacity:1;background-color:rgb(237 239 246/var(--tw-bg-opacity))}.bg-light-blue{--tw-bg-opacity:1;background-color:rgb(246 247 251/var(--tw-bg-opacity))}.bg-light-green{--tw-bg-opacity:1;background-color:rgb(241 249 248/var(--tw-bg-opacity))}.bg-light-orange{--tw-bg-opacity:1;background-color:rgb(253 243 233/var(--tw-bg-opacity))}.bg-light-overlay{background-color:#fafafaa6}.bg-light-red{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.bg-orange-notice{--tw-bg-opacity:1;background-color:rgb(255 213 106/var(--tw-bg-opacity))}.bg-pale-yellow{--tw-bg-opacity:1;background-color:rgb(254 246 235/var(--tw-bg-opacity))}.bg-primary{--tw-bg-opacity:1;background-color:rgb(20 36 138/var(--tw-bg-opacity))}.bg-sky{--tw-bg-opacity:1;background-color:rgb(215 225 253/var(--tw-bg-opacity))}.bg-tertiary{--tw-bg-opacity:1;background-color:rgb(33 79 75/var(--tw-bg-opacity))}.bg-tertiary-green{--tw-bg-opacity:1;background-color:rgb(245 254 229/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-none{background-image:none}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-0\\.5{padding:.125rem}.p-1{padding:.25rem}.p-16{padding:4rem}.p-2{padding:.5rem}.p-20{padding:5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-9{padding:2.25rem}.p-\\[100px\\]{padding:100px}.p-\\[20px_38px_20px_16px\\]{padding:20px 38px 20px 16px}.p-\\[5px\\]{padding:5px}.p-\\[60px\\]{padding:60px}.\\!px-4{padding-left:1rem!important;padding-right:1rem!important}.\\!py-4{padding-bottom:1rem!important;padding-top:1rem!important}.px-0{padding-left:0;padding-right:0}.px-0\\.5{padding-left:.125rem;padding-right:.125rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-12{padding-left:3rem;padding-right:3rem}.px-14{padding-left:3.5rem;padding-right:3.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-20{padding-left:5rem;padding-right:5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-7{padding-left:1.75rem;padding-right:1.75rem}.px-8{padding-left:2rem;padding-right:2rem}.px-9{padding-left:2.25rem;padding-right:2.25rem}.px-\\[10px\\]{padding-left:10px;padding-right:10px}.px-\\[14px\\]{padding-left:14px;padding-right:14px}.px-\\[16px\\]{padding-left:16px;padding-right:16px}.px-\\[25px\\]{padding-left:25px;padding-right:25px}.px-\\[8px\\]{padding-left:8px;padding-right:8px}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-10{padding-bottom:2.5rem;padding-top:2.5rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.py-6{padding-bottom:1.5rem;padding-top:1.5rem}.py-8{padding-bottom:2rem;padding-top:2rem}.py-\\[10px\\]{padding-bottom:10px;padding-top:10px}.py-\\[12px\\]{padding-bottom:12px;padding-top:12px}.py-\\[14px\\]{padding-bottom:14px;padding-top:14px}.py-\\[22px\\]{padding-bottom:22px;padding-top:22px}.py-\\[60px\\]{padding-bottom:60px;padding-top:60px}.py-\\[6px\\]{padding-bottom:6px;padding-top:6px}.py-\\[8px\\]{padding-bottom:8px;padding-top:8px}.pb-0{padding-bottom:0}.pb-1{padding-bottom:.25rem}.pb-10{padding-bottom:2.5rem}.pb-4{padding-bottom:1rem}.pb-5{padding-bottom:1.25rem}.pb-6{padding-bottom:1.5rem}.pb-\\[32px\\]{padding-bottom:32px}.pl-0{padding-left:0}.pl-10{padding-left:2.5rem}.pl-12{padding-left:3rem}.pl-2{padding-left:.5rem}.pl-4{padding-left:1rem}.pl-5{padding-left:1.25rem}.pl-6{padding-left:1.5rem}.pl-8{padding-left:2rem}.pl-\\[16px\\]{padding-left:16px}.pr-0{padding-right:0}.pr-1{padding-right:.25rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-5{padding-right:1.25rem}.pr-6{padding-right:1.5rem}.pr-8{padding-right:2rem}.pr-\\[10\\%\\]{padding-right:10%}.pr-\\[36px\\]{padding-right:36px}.pr-\\[40px\\]{padding-right:40px}.pt-0{padding-top:0}.pt-12{padding-top:3rem}.pt-16{padding-top:4rem}.pt-3{padding-top:.75rem}.pt-5{padding-top:1.25rem}.pt-8{padding-top:2rem}.\\!text-left{text-align:left!important}.text-left{text-align:left}.text-center{text-align:center}.indent-3{text-indent:.75rem}.align-baseline{vertical-align:baseline}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.align-bottom{vertical-align:bottom}.align-text-top{vertical-align:text-top}.align-text-bottom{vertical-align:text-bottom}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.\\!text-md{font-size:13px!important}.text-2xl{font-size:24px}.text-3xl{font-size:32px}.text-\\[1\\.25rem\\]{font-size:1.25rem}.text-\\[10px\\]{font-size:10px}.text-\\[13px\\]{font-size:13px}.text-\\[14px\\]{font-size:14px}.text-\\[16px\\],.text-lg{font-size:16px}.text-md{font-size:13px}.text-sm{font-size:12px}.text-xl{font-size:20px}.text-xs{font-size:11px}.font-bold{font-weight:700}.font-light{font-weight:300}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.\\!leading-4{line-height:1rem!important}.leading-10{line-height:2.5rem}.leading-3{line-height:.75rem}.leading-4{line-height:1rem}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-8{line-height:2rem}.leading-9{line-height:2.25rem}.leading-\\[0\\]{line-height:0}.leading-\\[16px\\]{line-height:16px}.leading-none{line-height:1}.leading-normal{line-height:1.5}.leading-relaxed{line-height:1.625}.leading-snug{line-height:1.375}.\\!text-alert-red{--tw-text-opacity:1!important;color:rgb(204 24 24/var(--tw-text-opacity))!important}.\\!text-gray-600{--tw-text-opacity:1!important;color:rgb(148 148 148/var(--tw-text-opacity))!important}.\\!text-gray-700{--tw-text-opacity:1!important;color:rgb(117 117 117/var(--tw-text-opacity))!important}.text-\\[\\#E09915\\]{--tw-text-opacity:1;color:rgb(224 153 21/var(--tw-text-opacity))}.text-\\[\\#E26F56\\]{--tw-text-opacity:1;color:rgb(226 111 86/var(--tw-text-opacity))}.text-accent{--tw-text-opacity:1;color:rgb(243 68 19/var(--tw-text-opacity))}.text-alert-green{--tw-text-opacity:1;color:rgb(16 147 49/var(--tw-text-opacity))}.text-alert-red{--tw-text-opacity:1;color:rgb(204 24 24/var(--tw-text-opacity))}.text-alert-yellow{--tw-text-opacity:1;color:rgb(240 184 73/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-blueberry{--tw-text-opacity:1;color:rgb(56 88 233/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(204 204 204/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(187 187 187/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(148 148 148/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(117 117 117/var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity:1;color:rgb(47 47 47/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(30 30 30/var(--tw-text-opacity))}.text-primary{--tw-text-opacity:1;color:rgb(20 36 138/var(--tw-text-opacity))}.text-rpc-error{--tw-text-opacity:1;color:rgb(255 238 0/var(--tw-text-opacity))}.text-tertiary{--tw-text-opacity:1;color:rgb(33 79 75/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.placeholder-gray-700::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(117 117 117/var(--tw-placeholder-opacity))}.placeholder-gray-700::placeholder{--tw-placeholder-opacity:1;color:rgb(117 117 117/var(--tw-placeholder-opacity))}.opacity-0{opacity:0}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.\\!shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1)!important;--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.shadow-\\[inset_0_-1px_1px_rgba\\(0\\,0\\,0\\,0\\.1\\)\\]{--tw-shadow:inset 0 -1px 1px rgba(0,0,0,.1);--tw-shadow-colored:inset 0 -1px 1px var(--tw-shadow-color)}.shadow-\\[inset_0_-1px_1px_rgba\\(0\\,0\\,0\\,0\\.1\\)\\],.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-gray-300{--tw-shadow-color:#ddd;--tw-shadow:var(--tw-shadow-colored)}.shadow-gray-400{--tw-shadow-color:#ccc;--tw-shadow:var(--tw-shadow-colored)}.shadow-gray-dark{--tw-shadow-color:rgba(30,30,30,.62);--tw-shadow:var(--tw-shadow-colored)}.shadow-gray-medium{--tw-shadow-color:rgba(30,30,30,.55);--tw-shadow:var(--tw-shadow-colored)}.shadow-gray-medium-overlay{--tw-shadow-color:rgba(30,30,30,.2);--tw-shadow:var(--tw-shadow-colored)}.shadow-tertiary-dark{--tw-shadow-color:#183a37;--tw-shadow:var(--tw-shadow-colored)}.outline{outline-style:solid}.ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-alert-red{--tw-ring-opacity:1;--tw-ring-color:rgb(204 24 24/var(--tw-ring-opacity))}.ring-alert-yellow{--tw-ring-opacity:1;--tw-ring-color:rgb(240 184 73/var(--tw-ring-opacity))}.ring-current{--tw-ring-color:currentColor}.ring-primary{--tw-ring-opacity:1;--tw-ring-color:rgb(20 36 138/var(--tw-ring-opacity))}.ring-white{--tw-ring-opacity:1;--tw-ring-color:rgb(255 255 255/var(--tw-ring-opacity))}.ring-offset-2,.ring-offset-\\[2px\\]{--tw-ring-offset-width:2px}.ring-offset-tertiary{--tw-ring-offset-color:#214f4b}.blur{--tw-blur:blur(8px)}.blur,.saturate-0{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.saturate-0{--tw-saturate:saturate(0)}.saturate-50{--tw-saturate:saturate(.5)}.filter,.saturate-50{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-\\[width\\]{transition-duration:.15s;transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-shadow{transition-duration:.15s;transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.form-textarea::-moz-placeholder{color:unset}.form-textarea::placeholder{color:unset}:focus,:focus-visible{box-shadow:none;outline:none}ol{list-style:decimal}*{min-width:0}.wpra-attribution-link{color:var()}.sidebar-accordion+.sidebar-accordion>button:first-child{border-top:0!important}.wpra-post-preview h1:first-of-type{font-size:16px;margin-top:0}.wpra-post-preview h1{font-size:16px;font-weight:700;line-height:1.5rem;margin-bottom:1.5rem;margin-top:1.5rem}.wpra-post-preview h2:first-of-type{font-size:16px;margin-top:0}.wpra-post-preview h2{font-size:16px;font-weight:700;line-height:1.25rem;margin-bottom:1.25rem;margin-top:1.25rem}.wpra-post-preview h3:first-of-type{font-size:16px;margin-top:0}.wpra-post-preview h3{font-size:16px;font-weight:700;line-height:1rem;margin-bottom:1rem;margin-top:1rem}.wpra-post-preview h4:first-of-type,.wpra-post-preview h5:first-of-type,.wpra-post-preview h6:first-of-type{font-size:16px;margin-top:0}.wpra-post-preview h4,.wpra-post-preview h5,.wpra-post-preview h6{font-size:16px;line-height:1rem;margin-bottom:.75rem;margin-top:.75rem}.wpra-post-preview p:first-of-type{margin-top:0}.wpra-post-preview p{margin-bottom:.5rem;margin-top:.5rem}.wpra-post-preview figure:first-of-type{margin-top:0}.wpra-post-preview figure{margin-bottom:1rem;margin-top:1rem}.wpra-post-preview figcaption{font-style:italic;padding-bottom:.25rem;padding-top:.25rem;--tw-text-opacity:1;color:rgb(117 117 117/var(--tw-text-opacity))}.wpra-post-preview audio{margin-bottom:1rem;margin-top:1rem}.wpra-post-preview ul:first-of-type{margin-top:0}.wpra-post-preview ol,.wpra-post-preview ul{list-style-position:inside;margin-bottom:.5rem;margin-left:1rem;margin-top:.5rem}.wpra-post-preview ul{list-style-type:disc}.wpra-post-preview ol{list-style-type:decimal}.wpra-display-preview a{color:rgb(20 36 138/var(--tw-text-opacity));text-decoration-line:underline}.marker\\:font-bold ::marker{font-weight:700}.marker\\:font-normal ::marker{font-weight:400}.marker\\:font-bold::marker{font-weight:700}.marker\\:font-normal::marker{font-weight:400}.placeholder\\:text-gray-600::-moz-placeholder{--tw-text-opacity:1;color:rgb(148 148 148/var(--tw-text-opacity))}.placeholder\\:text-gray-600::placeholder{--tw-text-opacity:1;color:rgb(148 148 148/var(--tw-text-opacity))}.placeholder\\:text-gray-700::-moz-placeholder{--tw-text-opacity:1;color:rgb(117 117 117/var(--tw-text-opacity))}.placeholder\\:text-gray-700::placeholder{--tw-text-opacity:1;color:rgb(117 117 117/var(--tw-text-opacity))}.before\\:pointer-events-none:before{content:var(--tw-content);pointer-events:none}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:bottom-0:before{bottom:0;content:var(--tw-content)}.before\\:left-0:before{content:var(--tw-content);left:0}.before\\:left-\\[3px\\]:before{content:var(--tw-content);left:3px}.before\\:top-0:before{content:var(--tw-content);top:0}.before\\:top-\\[3px\\]:before{content:var(--tw-content);top:3px}.before\\:block:before{content:var(--tw-content);display:block}.before\\:h-\\[12px\\]:before{content:var(--tw-content);height:12px}.before\\:w-1:before{content:var(--tw-content);width:.25rem}.before\\:w-\\[12px\\]:before{content:var(--tw-content);width:12px}.before\\:rounded-full:before{border-radius:9999px;content:var(--tw-content)}.before\\:bg-black:before{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.before\\:transition-all:before{content:var(--tw-content);transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.before\\:content-empty:before{--tw-content:" ";content:var(--tw-content)}.after\\:mx-1:after{content:var(--tw-content);margin-left:.25rem;margin-right:.25rem}.after\\:content-\\[\\'_\\|_\\'\\]:after{--tw-content:" | ";content:var(--tw-content)}.first\\:mt-0:first-child{margin-top:0}.last\\:mb-0:last-child{margin-bottom:0}.last\\:border-b-0:last-child{border-bottom-width:0}.last\\:border-r-0:last-child{border-right-width:0}.last\\:after\\:content-none:last-child:after{--tw-content:"";content:var(--tw-content)}.checked\\:border-primary:checked{--tw-border-opacity:1;border-color:rgb(20 36 138/var(--tw-border-opacity))}.checked\\:bg-primary:checked{--tw-bg-opacity:1;background-color:rgb(20 36 138/var(--tw-bg-opacity))}.checked\\:opacity-100:checked{opacity:1}.checked\\:before\\:left-\\[18px\\]:checked:before{content:var(--tw-content);left:18px}.checked\\:before\\:bg-white:checked:before{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.indeterminate\\:border-primary:indeterminate{--tw-border-opacity:1;border-color:rgb(20 36 138/var(--tw-border-opacity))}.indeterminate\\:bg-primary:indeterminate{--tw-bg-opacity:1;background-color:rgb(20 36 138/var(--tw-bg-opacity))}.indeterminate\\:before\\:left-\\[11px\\]:indeterminate:before{content:var(--tw-content);left:11px}.indeterminate\\:before\\:bg-white:indeterminate:before{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.invalid\\:border-alert-red:invalid{--tw-border-opacity:1;border-color:rgb(204 24 24/var(--tw-border-opacity))}.invalid\\:text-alert-red:invalid{--tw-text-opacity:1;color:rgb(204 24 24/var(--tw-text-opacity))}.focus-within\\:border-primary:focus-within{--tw-border-opacity:1;border-color:rgb(20 36 138/var(--tw-border-opacity))}.focus-within\\:ring-1:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.hover\\:cursor-grab:hover{cursor:grab}.hover\\:bg-\\[\\#A20D0D\\]:hover{--tw-bg-opacity:1;background-color:rgb(162 13 13/var(--tw-bg-opacity))}.hover\\:bg-accent-dark:hover{--tw-bg-opacity:1;background-color:rgb(213 55 11/var(--tw-bg-opacity))}.hover\\:bg-alert-red:hover{--tw-bg-opacity:1;background-color:rgb(204 24 24/var(--tw-bg-opacity))}.hover\\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(240 240 240/var(--tw-bg-opacity))}.hover\\:bg-gray-800:hover{--tw-bg-opacity:1;background-color:rgb(47 47 47/var(--tw-bg-opacity))}.hover\\:bg-gray-light:hover{background-color:#ffffffa6}.hover\\:bg-light:hover{--tw-bg-opacity:1;background-color:rgb(237 239 246/var(--tw-bg-opacity))}.hover\\:bg-light-blue:hover{--tw-bg-opacity:1;background-color:rgb(246 247 251/var(--tw-bg-opacity))}.hover\\:bg-primary:hover{--tw-bg-opacity:1;background-color:rgb(20 36 138/var(--tw-bg-opacity))}.hover\\:bg-primary-dark:hover{--tw-bg-opacity:1;background-color:rgb(13 23 89/var(--tw-bg-opacity))}.hover\\:bg-transparent:hover{background-color:transparent}.hover\\:bg-white:hover{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity:1;color:rgb(117 117 117/var(--tw-text-opacity))}.hover\\:text-primary:hover{--tw-text-opacity:1;color:rgb(20 36 138/var(--tw-text-opacity))}.hover\\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:no-underline:hover{text-decoration-line:none}.hover\\:shadow-none:hover{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus\\:border-2:focus{border-width:2px}.focus\\:border-solid:focus{border-style:solid}.focus\\:border-primary:focus{--tw-border-opacity:1;border-color:rgb(20 36 138/var(--tw-border-opacity))}.focus\\:bg-alert-red:focus{--tw-bg-opacity:1;background-color:rgb(204 24 24/var(--tw-bg-opacity))}.focus\\:text-primary:focus{--tw-text-opacity:1;color:rgb(20 36 138/var(--tw-text-opacity))}.focus\\:text-white:focus{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.focus\\:no-underline:focus{text-decoration-line:none}.focus\\:opacity-100:focus{opacity:1}.focus\\:ring:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-\\[none\\]:focus{--tw-ring-color:none}.focus\\:ring-accent:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(243 68 19/var(--tw-ring-opacity))}.focus\\:ring-gray-900:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(30 30 30/var(--tw-ring-opacity))}.focus\\:ring-primary:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(20 36 138/var(--tw-ring-opacity))}.focus\\:ring-tertiary:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(33 79 75/var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.checked\\:focus\\:ring-primary:focus:checked{--tw-ring-opacity:1;--tw-ring-color:rgb(20 36 138/var(--tw-ring-opacity))}.focus\\:invalid\\:border-alert-red:invalid:focus{--tw-border-opacity:1;border-color:rgb(204 24 24/var(--tw-border-opacity))}.focus\\:invalid\\:ring-alert-red:invalid:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(204 24 24/var(--tw-ring-opacity))}.focus-visible\\:border-primary:focus-visible{--tw-border-opacity:1;border-color:rgb(20 36 138/var(--tw-border-opacity))}.focus-visible\\:bg-gray-100:focus-visible{--tw-bg-opacity:1;background-color:rgb(240 240 240/var(--tw-bg-opacity))}.focus-visible\\:bg-light:focus-visible{--tw-bg-opacity:1;background-color:rgb(237 239 246/var(--tw-bg-opacity))}.focus-visible\\:bg-light-blue:focus-visible{--tw-bg-opacity:1;background-color:rgb(246 247 251/var(--tw-bg-opacity))}.focus-visible\\:text-primary:focus-visible{--tw-text-opacity:1;color:rgb(20 36 138/var(--tw-text-opacity))}.focus-visible\\:underline:focus-visible{text-decoration-line:underline}.focus-visible\\:outline:focus-visible{outline-style:solid}.focus-visible\\:outline-2:focus-visible{outline-width:2px}.focus-visible\\:outline-primary:focus-visible{outline-color:#14248a}.focus-visible\\:ring:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:ring-1:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:ring-alert-yellow:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(240 184 73/var(--tw-ring-opacity))}.focus-visible\\:ring-primary:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(20 36 138/var(--tw-ring-opacity))}.active\\:cursor-grabbing:active{cursor:grabbing}.enabled\\:hover\\:bg-gray-100:hover:enabled{--tw-bg-opacity:1;background-color:rgb(240 240 240/var(--tw-bg-opacity))}.enabled\\:hover\\:bg-light:hover:enabled{--tw-bg-opacity:1;background-color:rgb(237 239 246/var(--tw-bg-opacity))}.enabled\\:hover\\:bg-light-red:hover:enabled{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border-gray-400:disabled{--tw-border-opacity:1;border-color:rgb(204 204 204/var(--tw-border-opacity))}.disabled\\:border-gray-500:disabled{--tw-border-opacity:1;border-color:rgb(187 187 187/var(--tw-border-opacity))}.disabled\\:border-gray-600:disabled{--tw-border-opacity:1;border-color:rgb(148 148 148/var(--tw-border-opacity))}.disabled\\:border-gray-700:disabled{--tw-border-opacity:1;border-color:rgb(117 117 117/var(--tw-border-opacity))}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity:1;background-color:rgb(240 240 240/var(--tw-bg-opacity))}.disabled\\:bg-light-blue:disabled{--tw-bg-opacity:1;background-color:rgb(246 247 251/var(--tw-bg-opacity))}.disabled\\:text-gray-400:disabled{--tw-text-opacity:1;color:rgb(204 204 204/var(--tw-text-opacity))}.disabled\\:text-gray-500:disabled{--tw-text-opacity:1;color:rgb(187 187 187/var(--tw-text-opacity))}.disabled\\:text-gray-600:disabled{--tw-text-opacity:1;color:rgb(148 148 148/var(--tw-text-opacity))}.disabled\\:text-gray-700:disabled{--tw-text-opacity:1;color:rgb(117 117 117/var(--tw-text-opacity))}.disabled\\:text-light-blue:disabled{--tw-text-opacity:1;color:rgb(246 247 251/var(--tw-text-opacity))}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:opacity-70:disabled{opacity:.7}.disabled\\:saturate-0:disabled{--tw-saturate:saturate(0);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.disabled\\:checked\\:bg-none:checked:disabled{background-image:none}.disabled\\:hover\\:border-gray-500:hover:disabled{--tw-border-opacity:1;border-color:rgb(187 187 187/var(--tw-border-opacity))}.disabled\\:hover\\:bg-white:hover:disabled{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.group:hover .group-hover\\:opacity-100{opacity:1}.group:disabled .group-disabled\\:bg-gray-100{--tw-bg-opacity:1;background-color:rgb(240 240 240/var(--tw-bg-opacity))}.group:disabled .group-disabled\\:saturate-0{--tw-saturate:saturate(0);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.aria-disabled\\:border-gray-400[aria-disabled=true]{--tw-border-opacity:1;border-color:rgb(204 204 204/var(--tw-border-opacity))}.aria-disabled\\:bg-gray-100[aria-disabled=true]{--tw-bg-opacity:1;background-color:rgb(240 240 240/var(--tw-bg-opacity))}.aria-disabled\\:text-gray-600[aria-disabled=true]{--tw-text-opacity:1;color:rgb(148 148 148/var(--tw-text-opacity))}.aria-expanded\\:bg-light[aria-expanded=true]{--tw-bg-opacity:1;background-color:rgb(237 239 246/var(--tw-bg-opacity))}.aria-\\[disabled\\=true\\]\\:cursor-wait[aria-disabled=true]{cursor:wait}.aria-\\[disabled\\=true\\]\\:text-gray-700[aria-disabled=true]{--tw-text-opacity:1;color:rgb(117 117 117/var(--tw-text-opacity))}.data-\\[offset\\=true\\]\\:top-\\[-65px\\][data-offset=true]{top:-65px}.data-\\[short\\=true\\]\\:w-\\[320px\\][data-short=true]{width:320px}.data-\\[inline\\=true\\]\\:flex-1[data-inline=true]{flex:1 1 0%}@keyframes pulse{50%{opacity:.5}}.data-\\[animate\\=true\\]\\:animate-pulse[data-animate=true]{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.data-\\[disabled\\=true\\]\\:cursor-not-allowed[data-disabled=true]{cursor:not-allowed}.data-\\[inline\\=true\\]\\:flex-row[data-inline=true]{flex-direction:row}.data-\\[align\\=start\\]\\:items-start[data-align=start]{align-items:flex-start}.data-\\[inline\\=true\\]\\:items-center[data-inline=true]{align-items:center}.data-\\[row\\=true\\]\\:justify-start[data-row=true]{justify-content:flex-start}.data-\\[compact\\=true\\]\\:gap-6[data-compact=true]{gap:1.5rem}.data-\\[disabled\\=true\\]\\:border-gray-400[data-disabled=true]{--tw-border-opacity:1;border-color:rgb(204 204 204/var(--tw-border-opacity))}.data-\\[disabled\\=true\\]\\:border-gray-600[data-disabled=true],.data-\\[open\\=true\\]\\:border-gray-600[data-open=true]{--tw-border-opacity:1;border-color:rgb(148 148 148/var(--tw-border-opacity))}.data-\\[open\\=true\\]\\:border-primary[data-open=true],.data-\\[selected\\=true\\]\\:border-primary[data-selected=true]{--tw-border-opacity:1;border-color:rgb(20 36 138/var(--tw-border-opacity))}.data-\\[type\\=error\\]\\:border-alert-red[data-type=error]{--tw-border-opacity:1;border-color:rgb(204 24 24/var(--tw-border-opacity))}.data-\\[variant\\=accent\\]\\:border-accent[data-variant=accent]{--tw-border-opacity:1;border-color:rgb(243 68 19/var(--tw-border-opacity))}.data-\\[active\\=true\\]\\:bg-gray-100[data-active=true]{--tw-bg-opacity:1;background-color:rgb(240 240 240/var(--tw-bg-opacity))}.data-\\[active\\=true\\]\\:bg-gray-900[data-active=true]{--tw-bg-opacity:1;background-color:rgb(30 30 30/var(--tw-bg-opacity))}.data-\\[active\\=true\\]\\:bg-light-blue[data-active=true],.data-\\[bulk\\=true\\]\\:bg-light-blue[data-bulk=true]{--tw-bg-opacity:1;background-color:rgb(246 247 251/var(--tw-bg-opacity))}.data-\\[color\\=green\\]\\:bg-tertiary-green[data-color=green]{--tw-bg-opacity:1;background-color:rgb(245 254 229/var(--tw-bg-opacity))}.data-\\[current\\=true\\]\\:bg-light-blue[data-current=true]{--tw-bg-opacity:1;background-color:rgb(246 247 251/var(--tw-bg-opacity))}.data-\\[disabled\\=true\\]\\:\\!bg-transparent[data-disabled=true]{background-color:transparent!important}.data-\\[disabled\\=true\\]\\:bg-gray-100[data-disabled=true]{--tw-bg-opacity:1;background-color:rgb(240 240 240/var(--tw-bg-opacity))}.data-\\[disabled\\=true\\]\\:bg-tertiary-dark[data-disabled=true]{--tw-bg-opacity:1;background-color:rgb(24 58 55/var(--tw-bg-opacity))}.data-\\[disabled\\=true\\]\\:bg-transparent[data-disabled=true]{background-color:transparent}.data-\\[open\\=true\\]\\:bg-gray-100[data-open=true]{--tw-bg-opacity:1;background-color:rgb(240 240 240/var(--tw-bg-opacity))}.data-\\[open\\=true\\]\\:bg-white[data-open=true]{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.data-\\[selected\\=true\\]\\:bg-light-blue[data-selected=true]{--tw-bg-opacity:1;background-color:rgb(246 247 251/var(--tw-bg-opacity))}.data-\\[toggled\\=true\\]\\:bg-accent-dark[data-toggled=true]{--tw-bg-opacity:1;background-color:rgb(213 55 11/var(--tw-bg-opacity))}.data-\\[toggled\\=true\\]\\:bg-gray-800[data-toggled=true]{--tw-bg-opacity:1;background-color:rgb(47 47 47/var(--tw-bg-opacity))}.data-\\[toggled\\=true\\]\\:bg-primary-dark[data-toggled=true]{--tw-bg-opacity:1;background-color:rgb(13 23 89/var(--tw-bg-opacity))}.data-\\[toggled\\=true\\]\\:bg-tertiary-dark[data-toggled=true]{--tw-bg-opacity:1;background-color:rgb(24 58 55/var(--tw-bg-opacity))}.data-\\[type\\=error\\]\\:bg-pale-red[data-type=error]{--tw-bg-opacity:1;background-color:rgb(253 237 237/var(--tw-bg-opacity))}.data-\\[type\\=warning\\]\\:bg-pale-yellow[data-type=warning]{--tw-bg-opacity:1;background-color:rgb(254 246 235/var(--tw-bg-opacity))}.data-\\[variant\\=dark\\]\\:bg-light[data-variant=dark]{--tw-bg-opacity:1;background-color:rgb(237 239 246/var(--tw-bg-opacity))}.data-\\[disabled\\=true\\]\\:bg-opacity-60[data-disabled=true]{--tw-bg-opacity:.6}.data-\\[padding\\=true\\]\\:p-16[data-padding=true]{padding:4rem}.data-\\[compact\\=true\\]\\:px-12[data-compact=true]{padding-left:3rem;padding-right:3rem}.data-\\[compact\\=true\\]\\:py-10[data-compact=true]{padding-bottom:2.5rem;padding-top:2.5rem}.data-\\[accent\\=true\\]\\:font-bold[data-accent=true],.data-\\[first\\=true\\]\\:font-bold[data-first=true]{font-weight:700}.data-\\[accent\\=true\\]\\:text-accent[data-accent=true]{--tw-text-opacity:1;color:rgb(243 68 19/var(--tw-text-opacity))}.data-\\[active\\=true\\]\\:text-white[data-active=true]{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.data-\\[color\\=green\\]\\:text-black[data-color=green]{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.data-\\[disabled\\=true\\]\\:text-gray-600[data-disabled=true],.data-\\[disabled\\]\\:text-gray-600[data-disabled]{--tw-text-opacity:1;color:rgb(148 148 148/var(--tw-text-opacity))}.data-\\[faded\\=true\\]\\:text-gray-700[data-faded=true]{--tw-text-opacity:1;color:rgb(117 117 117/var(--tw-text-opacity))}.data-\\[selected\\=true\\]\\:shadow-lg[data-selected=true]{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.data-\\[open\\=true\\]\\:ring-1[data-open=true]{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.data-\\[selected\\=true\\]\\:ring[data-selected=true]{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.data-\\[selected\\=true\\]\\:ring-2[data-selected=true]{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.data-\\[open\\=true\\]\\:ring-primary[data-open=true]{--tw-ring-opacity:1;--tw-ring-color:rgb(20 36 138/var(--tw-ring-opacity))}.data-\\[type\\=error\\]\\:before\\:bg-alert-red[data-type=error]:before{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(204 24 24/var(--tw-bg-opacity))}.data-\\[type\\=warning\\]\\:before\\:bg-alert-yellow[data-type=warning]:before{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(240 184 73/var(--tw-bg-opacity))}.data-\\[disabled\\=false\\]\\:hover\\:bg-tertiary-dark:hover[data-disabled=false]{--tw-bg-opacity:1;background-color:rgb(24 58 55/var(--tw-bg-opacity))}.data-\\[disabled\\=true\\]\\:hover\\:bg-gray-100:hover[data-disabled=true]{--tw-bg-opacity:1;background-color:rgb(240 240 240/var(--tw-bg-opacity))}.data-\\[disabled\\=true\\]\\:hover\\:bg-transparent:hover[data-disabled=true]{background-color:transparent}.data-\\[disabled\\=true\\]\\:hover\\:bg-white:hover[data-disabled=true]{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.data-\\[disabled\\=true\\]\\:hover\\:underline:hover[data-disabled=true]{text-decoration-line:underline}.data-\\[disabled\\=true\\]\\:focus\\:ring-0:focus[data-disabled=true]{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.group\\/faq[data-open=true] .group-data-\\[open\\=true\\]\\/faq\\:block{display:block}.group[data-compact=true] .group-data-\\[compact\\=true\\]\\:flex-\\[150px\\]{flex:150px}.group[data-compact=true] .group-data-\\[compact\\=true\\]\\:gap-2{gap:.5rem}.group[data-compact=true] .group-data-\\[compact\\=true\\]\\:text-\\[14px\\]{font-size:14px}.group[data-accent=true] .group-data-\\[accent\\=true\\]\\:text-accent{--tw-text-opacity:1;color:rgb(243 68 19/var(--tw-text-opacity))}.group[data-color=green] .group-data-\\[color\\=green\\]\\:text-gray-200{--tw-text-opacity:1;color:rgb(224 224 224/var(--tw-text-opacity))}.group[data-color=green] .group-data-\\[color\\=green\\]\\:ring-white{--tw-ring-opacity:1;--tw-ring-color:rgb(255 255 255/var(--tw-ring-opacity))}@media (min-width:640px){.sm\\:flex-row{flex-direction:row}.sm\\:gap-1{gap:.25rem}}@media (min-width:768px){.md\\:mb-0{margin-bottom:0}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:flex-row{flex-direction:row}.md\\:text-left{text-align:left}}@media (min-width:1024px){.lg\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\\:flex-row{flex-direction:row}.lg\\:flex-wrap{flex-wrap:wrap}.lg\\:justify-center{justify-content:center}.lg\\:justify-between{justify-content:space-between}.lg\\:px-\\[12\\%\\]{padding-left:12%;padding-right:12%}.lg\\:text-center{text-align:center}}@media (min-width:1280px){.xl\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\\:flex-row{flex-direction:row}.xl\\:gap-6{gap:1.5rem}}@media (min-width:1536px){.\\32xl\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}.\\[\\&\\:not\\(\\:disabled\\)\\]\\:hover\\:bg-gray-100:hover:not(:disabled){--tw-bg-opacity:1;background-color:rgb(240 240 240/var(--tw-bg-opacity))}.\\[\\&\\>\\*\\]\\:w-full>*{width:100%}.\\[\\&\\>\\.icon\\:first-child\\]\\:ml-\\[-6px\\]>.icon:first-child{margin-left:-6px}.\\[\\&\\>\\.icon\\]\\:my-\\[-2px\\]>.icon{margin-bottom:-2px;margin-top:-2px}.\\[\\&\\>\\.icon\\]\\:my-\\[-4px\\]>.icon{margin-bottom:-4px;margin-top:-4px}.\\[\\&\\>p\\:not\\(\\:first-child\\)\\]\\:mt-6>p:not(:first-child){margin-top:1.5rem}.\\[\\&_tbody_tr\\:first-child\\]\\:border-y-0 tbody tr:first-child{border-bottom-width:0;border-top-width:0}.\\[\\&_thead_th\\:first-child\\]\\:pl-8 thead th:first-child{padding-left:2rem}.\\[\\&_thead_th\\:last-child\\]\\:pr-8 thead th:last-child{padding-right:2rem}.\\[\\&_thead_tr\\]\\:border-y-0 thead tr{border-bottom-width:0;border-top-width:0}.\\[\\&_tr_td\\:first-child\\]\\:pl-8 tr td:first-child{padding-left:2rem}.\\[\\&_tr_td\\:last-child\\]\\:pr-8 tr td:last-child{padding-right:2rem}.rdp{--rdp-cell-size:36px;--rdp-accent-color:#16377f;--rdp-background-color:#f0f0f0}.rdp-day_selected,.rdp-day_selected:focus-visible,.rdp-day_selected:hover{background-color:var(--rdp-accent-color)!important}.rdp-day_selected:focus-visible:not([disabled]){color:#fff!important}.DraftEditor-editorContainer,.DraftEditor-root,.public-DraftEditor-content{height:inherit;text-align:initial}.public-DraftEditor-content[contenteditable=true]{-webkit-user-modify:read-write-plaintext-only}.DraftEditor-root{position:relative}.DraftEditor-editorContainer{background-color:#fff0;border-left:.1px solid transparent;position:relative;z-index:1}.public-DraftEditor-block{position:relative}.DraftEditor-alignLeft .public-DraftStyleDefault-block{text-align:left}.DraftEditor-alignLeft .public-DraftEditorPlaceholder-root{left:0;text-align:left}.DraftEditor-alignCenter .public-DraftStyleDefault-block{text-align:center}.DraftEditor-alignCenter .public-DraftEditorPlaceholder-root{margin:0 auto;text-align:center;width:100%}.DraftEditor-alignRight .public-DraftStyleDefault-block{text-align:right}.DraftEditor-alignRight .public-DraftEditorPlaceholder-root{right:0;text-align:right}.public-DraftEditorPlaceholder-root{color:#9197a3;position:absolute;width:100%;z-index:1}.public-DraftEditorPlaceholder-hasFocus{color:#bdc1c9}.DraftEditorPlaceholder-hidden{display:none}.public-DraftStyleDefault-block{position:relative;white-space:pre-wrap}.public-DraftStyleDefault-ltr{direction:ltr;text-align:left}.public-DraftStyleDefault-rtl{direction:rtl;text-align:right}.public-DraftStyleDefault-listLTR{direction:ltr}.public-DraftStyleDefault-listRTL{direction:rtl}.public-DraftStyleDefault-ol,.public-DraftStyleDefault-ul{margin:16px 0;padding:0}.public-DraftStyleDefault-depth0.public-DraftStyleDefault-listLTR{margin-left:1.5em}.public-DraftStyleDefault-depth0.public-DraftStyleDefault-listRTL{margin-right:1.5em}.public-DraftStyleDefault-depth1.public-DraftStyleDefault-listLTR{margin-left:3em}.public-DraftStyleDefault-depth1.public-DraftStyleDefault-listRTL{margin-right:3em}.public-DraftStyleDefault-depth2.public-DraftStyleDefault-listLTR{margin-left:4.5em}.public-DraftStyleDefault-depth2.public-DraftStyleDefault-listRTL{margin-right:4.5em}.public-DraftStyleDefault-depth3.public-DraftStyleDefault-listLTR{margin-left:6em}.public-DraftStyleDefault-depth3.public-DraftStyleDefault-listRTL{margin-right:6em}.public-DraftStyleDefault-depth4.public-DraftStyleDefault-listLTR{margin-left:7.5em}.public-DraftStyleDefault-depth4.public-DraftStyleDefault-listRTL{margin-right:7.5em}.public-DraftStyleDefault-unorderedListItem{list-style-type:square;position:relative}.public-DraftStyleDefault-unorderedListItem.public-DraftStyleDefault-depth0{list-style-type:disc}.public-DraftStyleDefault-unorderedListItem.public-DraftStyleDefault-depth1{list-style-type:circle}.public-DraftStyleDefault-orderedListItem{list-style-type:none;position:relative}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-listLTR:before{left:-36px;position:absolute;text-align:right;width:30px}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-listRTL:before{position:absolute;right:-36px;text-align:left;width:30px}.public-DraftStyleDefault-orderedListItem:before{content:counter(ol0) ". ";counter-increment:ol0}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth1:before{content:counter(ol1,lower-alpha) ". ";counter-increment:ol1}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth2:before{content:counter(ol2,lower-roman) ". ";counter-increment:ol2}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth3:before{content:counter(ol3) ". ";counter-increment:ol3}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth4:before{content:counter(ol4,lower-alpha) ". ";counter-increment:ol4}.public-DraftStyleDefault-depth0.public-DraftStyleDefault-reset{counter-reset:ol0}.public-DraftStyleDefault-depth1.public-DraftStyleDefault-reset{counter-reset:ol1}.public-DraftStyleDefault-depth2.public-DraftStyleDefault-reset{counter-reset:ol2}.public-DraftStyleDefault-depth3.public-DraftStyleDefault-reset{counter-reset:ol3}.public-DraftStyleDefault-depth4.public-DraftStyleDefault-reset{counter-reset:ol4}
`,document.head.appendChild($p);function jp(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Y=jp(D),S7=jp(Xt);var Ee=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Gd(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var Wp={exports:{}},Mu={};/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var E7=D,A7=Symbol.for("react.element"),D7=Symbol.for("react.fragment"),k7=Object.prototype.hasOwnProperty,N7=E7.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,T7={key:!0,ref:!0,__self:!0,__source:!0};function Gp(e,t,r){var n,a={},i=null,s=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(n in t)k7.call(t,n)&&!T7.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)a[n]===void 0&&(a[n]=t[n]);return{$$typeof:A7,type:e,key:i,ref:s,props:a,_owner:N7.current}}Mu.Fragment=D7,Mu.jsx=Gp,Mu.jsxs=Gp,Wp.exports=Mu;var Zd=Wp.exports;const ie=Zd.Fragment,o=Zd.jsx,b=Zd.jsxs,Mee="",Lee="";var Yd={},Zp=Xt;Yd.createRoot=Zp.createRoot,Yd.hydrateRoot=Zp.hydrateRoot;let Q=H7(window.WpraAdminConfig??{});function H7(e){return e.automations=e.automations||{actions:{},condSys:{types:{},subjects:{},operators:{}}},e.taxonomies.condSys=e.taxonomies.condSys||{types:{},subjects:{},operators:{}},e.displays=e.displays||{condSys:{types:{},subjects:{},operators:{}}},e.premiumInstalled=!!e.premiumInstalled,e.isPluginMismatch=!!e.isPluginMismatch,e.sslCertPath=e.sslCertPath,e.isMultiSite=!!e.isMultiSite,e.isMainSite=!!e.isMainSite,e.hasV4Data=!!e.hasV4Data,e}function I7(e){return o("div",{className:"flex h-full w-full flex-col items-center justify-center",children:b("div",{className:"mx-auto flex max-w-[400px] translate-y-[-5em] flex-col items-center gap-4 rounded-md bg-alert-red p-8 text-center text-white",children:[o("img",{src:Q.urls.assets.imgs+"/bee-dots-circle.svg"}),o("h1",{className:"text-xl font-bold",children:"Something went wrong"}),o("p",{children:e.error})]})})}class Qd extends D.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}render(){if(this.state.hasError){let t="";typeof this.state.error=="string"?t=this.state.error:this.state.error instanceof Error&&(t=this.state.error.message);const r=this.props.fallback??I7;return D.createElement(r,{error:t})}return this.props.children}}function fe(...e){return e.filter(Boolean).join(" ")}const Yp=D.createContext(24),O7=()=>D.useContext(Yp),wn=Yp.Provider;function me(e,t={}){return D.forwardRef(function(r,n){const{className:a,size:i,trimLeft:s,...u}=r,l=i??t.size??O7();return o("svg",{ref:n,className:fe("icon inline-block",s&&"ml-[-0.25em]",t.className,a),width:l,height:l,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...u,children:e()})})}const fr=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4.75C7.99594 4.75 4.75 7.99594 4.75 12C4.75 16.0041 7.99594 19.25 12 19.25C16.0041 19.25 19.25 16.0041 19.25 12C19.25 7.99594 16.0041 4.75 12 4.75ZM3.25 12C3.25 7.16751 7.16751 3.25 12 3.25C16.8325 3.25 20.75 7.16751 20.75 12C20.75 16.8325 16.8325 20.75 12 20.75C7.16751 20.75 3.25 16.8325 3.25 12ZM13 11V17H11V11H13ZM13 9V7H11V9H13Z",fill:"currentColor"})),Mi=Math.min,Pr=Math.max,Lu=Math.round,Vu=Math.floor,ka=e=>({x:e,y:e}),M7={left:"right",right:"left",bottom:"top",top:"bottom"},L7={start:"end",end:"start"};function Qp(e,t,r){return Pr(e,Mi(t,r))}function Ro(e,t){return typeof e=="function"?e(t):e}function Na(e){return e.split("-")[0]}function Uo(e){return e.split("-")[1]}function Xp(e){return e==="x"?"y":"x"}function Jp(e){return e==="y"?"height":"width"}function Ko(e){return["top","bottom"].includes(Na(e))?"y":"x"}function e1(e){return Xp(Ko(e))}function V7(e,t,r){r===void 0&&(r=!1);const n=Uo(e),a=e1(e),i=Jp(a);let s=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Pu(s)),[s,Pu(s)]}function P7(e){const t=Pu(e);return[Xd(e),t,Xd(t)]}function Xd(e){return e.replace(/start|end/g,t=>L7[t])}function F7(e,t,r){const n=["left","right"],a=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?a:n:t?n:a;case"left":case"right":return t?i:s;default:return[]}}function B7(e,t,r,n){const a=Uo(e);let i=F7(Na(e),r==="start",n);return a&&(i=i.map(s=>s+"-"+a),t&&(i=i.concat(i.map(Xd)))),i}function Pu(e){return e.replace(/left|right|bottom|top/g,t=>M7[t])}function R7(e){return{top:0,right:0,bottom:0,left:0,...e}}function U7(e){return typeof e!="number"?R7(e):{top:e,right:e,bottom:e,left:e}}function Fu(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function t1(e,t,r){let{reference:n,floating:a}=e;const i=Ko(t),s=e1(t),u=Jp(s),l=Na(t),f=i==="y",h=n.x+n.width/2-a.width/2,m=n.y+n.height/2-a.height/2,g=n[u]/2-a[u]/2;let p;switch(l){case"top":p={x:h,y:n.y-a.height};break;case"bottom":p={x:h,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:m};break;case"left":p={x:n.x-a.width,y:m};break;default:p={x:n.x,y:n.y}}switch(Uo(t)){case"start":p[s]-=g*(r&&f?-1:1);break;case"end":p[s]+=g*(r&&f?-1:1);break}return p}const K7=async(e,t,r)=>{const{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:s}=r,u=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let f=await s.getElementRects({reference:e,floating:t,strategy:a}),{x:h,y:m}=t1(f,n,l),g=n,p={},w=0;for(let y=0;y<u.length;y++){const{name:_,fn:S}=u[y],{x:H,y:L,data:O,reset:j}=await S({x:h,y:m,initialPlacement:n,placement:g,strategy:a,middlewareData:p,rects:f,platform:s,elements:{reference:e,floating:t}});if(h=H??h,m=L??m,p={...p,[_]:{...p[_],...O}},j&&w<=50){w++,typeof j=="object"&&(j.placement&&(g=j.placement),j.rects&&(f=j.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:a}):j.rects),{x:h,y:m}=t1(f,g,l)),y=-1;continue}}return{x:h,y:m,placement:g,strategy:a,middlewareData:p}};async function Jd(e,t){var r;t===void 0&&(t={});const{x:n,y:a,platform:i,rects:s,elements:u,strategy:l}=e,{boundary:f="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:g=!1,padding:p=0}=Ro(t,e),w=U7(p),_=u[g?m==="floating"?"reference":"floating":m],S=Fu(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(_)))==null||r?_:_.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(u.floating)),boundary:f,rootBoundary:h,strategy:l})),H=m==="floating"?{...s.floating,x:n,y:a}:s.reference,L=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u.floating)),O=await(i.isElement==null?void 0:i.isElement(L))?await(i.getScale==null?void 0:i.getScale(L))||{x:1,y:1}:{x:1,y:1},j=Fu(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:H,offsetParent:L,strategy:l}):H);return{top:(S.top-j.top+w.top)/O.y,bottom:(j.bottom-S.bottom+w.bottom)/O.y,left:(S.left-j.left+w.left)/O.x,right:(j.right-S.right+w.right)/O.x}}const zo=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:a,middlewareData:i,rects:s,initialPlacement:u,platform:l,elements:f}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:y=!0,..._}=Ro(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const S=Na(a),H=Na(u)===u,L=await(l.isRTL==null?void 0:l.isRTL(f.floating)),O=g||(H||!y?[Pu(u)]:P7(u));!g&&w!=="none"&&O.push(...B7(u,y,w,L));const j=[u,...O],R=await Jd(t,_),K=[];let M=((n=i.flip)==null?void 0:n.overflows)||[];if(h&&K.push(R[S]),m){const C=V7(a,s,L);K.push(R[C[0]],R[C[1]])}if(M=[...M,{placement:a,overflows:K}],!K.every(C=>C<=0)){var F,U;const C=(((F=i.flip)==null?void 0:F.index)||0)+1,A=j[C];if(A)return{data:{index:C,overflows:M},reset:{placement:A}};let I=(U=M.filter(T=>T.overflows[0]<=0).sort((T,V)=>T.overflows[1]-V.overflows[1])[0])==null?void 0:U.placement;if(!I)switch(p){case"bestFit":{var k;const T=(k=M.map(V=>[V.placement,V.overflows.filter(P=>P>0).reduce((P,z)=>P+z,0)]).sort((V,P)=>V[1]-P[1])[0])==null?void 0:k[0];T&&(I=T);break}case"initialPlacement":I=u;break}if(a!==I)return{reset:{placement:I}}}return{}}}};async function z7(e,t){const{placement:r,platform:n,elements:a}=e,i=await(n.isRTL==null?void 0:n.isRTL(a.floating)),s=Na(r),u=Uo(r),l=Ko(r)==="y",f=["left","top"].includes(s)?-1:1,h=i&&l?-1:1,m=Ro(t,e);let{mainAxis:g,crossAxis:p,alignmentAxis:w}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return u&&typeof w=="number"&&(p=u==="end"?w*-1:w),l?{x:p*h,y:g*f}:{x:g*f,y:p*h}}const $o=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:r,y:n}=t,a=await z7(t,e);return{x:r+a.x,y:n+a.y,data:a}}}},r1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:a}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:u={fn:_=>{let{x:S,y:H}=_;return{x:S,y:H}}},...l}=Ro(e,t),f={x:r,y:n},h=await Jd(t,l),m=Ko(Na(a)),g=Xp(m);let p=f[g],w=f[m];if(i){const _=g==="y"?"top":"left",S=g==="y"?"bottom":"right",H=p+h[_],L=p-h[S];p=Qp(H,p,L)}if(s){const _=m==="y"?"top":"left",S=m==="y"?"bottom":"right",H=w+h[_],L=w-h[S];w=Qp(H,w,L)}const y=u.fn({...t,[g]:p,[m]:w});return{...y,data:{x:y.x-r,y:y.y-n}}}}},n1=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:a,elements:i}=t,{apply:s=()=>{},...u}=Ro(e,t),l=await Jd(t,u),f=Na(r),h=Uo(r),m=Ko(r)==="y",{width:g,height:p}=n.floating;let w,y;f==="top"||f==="bottom"?(w=f,y=h===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(y=f,w=h==="end"?"top":"bottom");const _=p-l[w],S=g-l[y],H=!t.middlewareData.shift;let L=_,O=S;if(m){const R=g-l.left-l.right;O=h||H?Mi(S,R):R}else{const R=p-l.top-l.bottom;L=h||H?Mi(_,R):R}if(H&&!h){const R=Pr(l.left,0),K=Pr(l.right,0),M=Pr(l.top,0),F=Pr(l.bottom,0);m?O=g-2*(R!==0||K!==0?R+K:Pr(l.left,l.right)):L=p-2*(M!==0||F!==0?M+F:Pr(l.top,l.bottom))}await s({...t,availableWidth:O,availableHeight:L});const j=await a.getDimensions(i.floating);return g!==j.width||p!==j.height?{reset:{rects:!0}}:{}}}};function Ta(e){return a1(e)?(e.nodeName||"").toLowerCase():"#document"}function Fr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ra(e){var t;return(t=(a1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function a1(e){return e instanceof Node||e instanceof Fr(e).Node}function na(e){return e instanceof Element||e instanceof Fr(e).Element}function In(e){return e instanceof HTMLElement||e instanceof Fr(e).HTMLElement}function i1(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Fr(e).ShadowRoot}function jo(e){const{overflow:t,overflowX:r,overflowY:n,display:a}=Xr(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(a)}function $7(e){return["table","td","th"].includes(Ta(e))}function ef(e){const t=tf(),r=Xr(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function j7(e){let t=Li(e);for(;In(t)&&!Bu(t);){if(ef(t))return t;t=Li(t)}return null}function tf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Bu(e){return["html","body","#document"].includes(Ta(e))}function Xr(e){return Fr(e).getComputedStyle(e)}function Ru(e){return na(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Li(e){if(Ta(e)==="html")return e;const t=e.assignedSlot||e.parentNode||i1(e)&&e.host||ra(e);return i1(t)?t.host:t}function o1(e){const t=Li(e);return Bu(t)?e.ownerDocument?e.ownerDocument.body:e.body:In(t)&&jo(t)?t:o1(t)}function Ha(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const a=o1(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),s=Fr(a);return i?t.concat(s,s.visualViewport||[],jo(a)?a:[],s.frameElement&&r?Ha(s.frameElement):[]):t.concat(a,Ha(a,[],r))}function s1(e){const t=Xr(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const a=In(e),i=a?e.offsetWidth:r,s=a?e.offsetHeight:n,u=Lu(r)!==i||Lu(n)!==s;return u&&(r=i,n=s),{width:r,height:n,$:u}}function rf(e){return na(e)?e:e.contextElement}function Vi(e){const t=rf(e);if(!In(t))return ka(1);const r=t.getBoundingClientRect(),{width:n,height:a,$:i}=s1(t);let s=(i?Lu(r.width):r.width)/n,u=(i?Lu(r.height):r.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!u||!Number.isFinite(u))&&(u=1),{x:s,y:u}}const q7=ka(0);function u1(e){const t=Fr(e);return!tf()||!t.visualViewport?q7:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function W7(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Fr(e)?!1:t}function ti(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const a=e.getBoundingClientRect(),i=rf(e);let s=ka(1);t&&(n?na(n)&&(s=Vi(n)):s=Vi(e));const u=W7(i,r,n)?u1(i):ka(0);let l=(a.left+u.x)/s.x,f=(a.top+u.y)/s.y,h=a.width/s.x,m=a.height/s.y;if(i){const g=Fr(i),p=n&&na(n)?Fr(n):n;let w=g.frameElement;for(;w&&n&&p!==g;){const y=Vi(w),_=w.getBoundingClientRect(),S=Xr(w),H=_.left+(w.clientLeft+parseFloat(S.paddingLeft))*y.x,L=_.top+(w.clientTop+parseFloat(S.paddingTop))*y.y;l*=y.x,f*=y.y,h*=y.x,m*=y.y,l+=H,f+=L,w=Fr(w).frameElement}}return Fu({width:h,height:m,x:l,y:f})}function G7(e){let{rect:t,offsetParent:r,strategy:n}=e;const a=In(r),i=ra(r);if(r===i)return t;let s={scrollLeft:0,scrollTop:0},u=ka(1);const l=ka(0);if((a||!a&&n!=="fixed")&&((Ta(r)!=="body"||jo(i))&&(s=Ru(r)),In(r))){const f=ti(r);u=Vi(r),l.x=f.x+r.clientLeft,l.y=f.y+r.clientTop}return{width:t.width*u.x,height:t.height*u.y,x:t.x*u.x-s.scrollLeft*u.x+l.x,y:t.y*u.y-s.scrollTop*u.y+l.y}}function Z7(e){return Array.from(e.getClientRects())}function l1(e){return ti(ra(e)).left+Ru(e).scrollLeft}function Y7(e){const t=ra(e),r=Ru(e),n=e.ownerDocument.body,a=Pr(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Pr(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+l1(e);const u=-r.scrollTop;return Xr(n).direction==="rtl"&&(s+=Pr(t.clientWidth,n.clientWidth)-a),{width:a,height:i,x:s,y:u}}function Q7(e,t){const r=Fr(e),n=ra(e),a=r.visualViewport;let i=n.clientWidth,s=n.clientHeight,u=0,l=0;if(a){i=a.width,s=a.height;const f=tf();(!f||f&&t==="fixed")&&(u=a.offsetLeft,l=a.offsetTop)}return{width:i,height:s,x:u,y:l}}function X7(e,t){const r=ti(e,!0,t==="fixed"),n=r.top+e.clientTop,a=r.left+e.clientLeft,i=In(e)?Vi(e):ka(1),s=e.clientWidth*i.x,u=e.clientHeight*i.y,l=a*i.x,f=n*i.y;return{width:s,height:u,x:l,y:f}}function c1(e,t,r){let n;if(t==="viewport")n=Q7(e,r);else if(t==="document")n=Y7(ra(e));else if(na(t))n=X7(t,r);else{const a=u1(e);n={...t,x:t.x-a.x,y:t.y-a.y}}return Fu(n)}function d1(e,t){const r=Li(e);return r===t||!na(r)||Bu(r)?!1:Xr(r).position==="fixed"||d1(r,t)}function J7(e,t){const r=t.get(e);if(r)return r;let n=Ha(e,[],!1).filter(u=>na(u)&&Ta(u)!=="body"),a=null;const i=Xr(e).position==="fixed";let s=i?Li(e):e;for(;na(s)&&!Bu(s);){const u=Xr(s),l=ef(s);!l&&u.position==="fixed"&&(a=null),(i?!l&&!a:!l&&u.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||jo(s)&&!l&&d1(e,s))?n=n.filter(h=>h!==s):a=u,s=Li(s)}return t.set(e,n),n}function ex(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e;const s=[...r==="clippingAncestors"?J7(t,this._c):[].concat(r),n],u=s[0],l=s.reduce((f,h)=>{const m=c1(t,h,a);return f.top=Pr(m.top,f.top),f.right=Mi(m.right,f.right),f.bottom=Mi(m.bottom,f.bottom),f.left=Pr(m.left,f.left),f},c1(t,u,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function tx(e){return s1(e)}function rx(e,t,r){const n=In(t),a=ra(t),i=r==="fixed",s=ti(e,!0,i,t);let u={scrollLeft:0,scrollTop:0};const l=ka(0);if(n||!n&&!i)if((Ta(t)!=="body"||jo(a))&&(u=Ru(t)),n){const f=ti(t,!0,i,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else a&&(l.x=l1(a));return{x:s.left+u.scrollLeft-l.x,y:s.top+u.scrollTop-l.y,width:s.width,height:s.height}}function f1(e,t){return!In(e)||Xr(e).position==="fixed"?null:t?t(e):e.offsetParent}function g1(e,t){const r=Fr(e);if(!In(e))return r;let n=f1(e,t);for(;n&&$7(n)&&Xr(n).position==="static";)n=f1(n,t);return n&&(Ta(n)==="html"||Ta(n)==="body"&&Xr(n).position==="static"&&!ef(n))?r:n||j7(e)||r}const nx=async function(e){let{reference:t,floating:r,strategy:n}=e;const a=this.getOffsetParent||g1,i=this.getDimensions;return{reference:rx(t,await a(r),n),floating:{x:0,y:0,...await i(r)}}};function ax(e){return Xr(e).direction==="rtl"}const ix={convertOffsetParentRelativeRectToViewportRelativeRect:G7,getDocumentElement:ra,getClippingRect:ex,getOffsetParent:g1,getElementRects:nx,getClientRects:Z7,getDimensions:tx,getScale:Vi,isElement:na,isRTL:ax};function ox(e,t){let r=null,n;const a=ra(e);function i(){clearTimeout(n),r&&r.disconnect(),r=null}function s(u,l){u===void 0&&(u=!1),l===void 0&&(l=1),i();const{left:f,top:h,width:m,height:g}=e.getBoundingClientRect();if(u||t(),!m||!g)return;const p=Vu(h),w=Vu(a.clientWidth-(f+m)),y=Vu(a.clientHeight-(h+g)),_=Vu(f),H={rootMargin:-p+"px "+-w+"px "+-y+"px "+-_+"px",threshold:Pr(0,Mi(1,l))||1};let L=!0;function O(j){const R=j[0].intersectionRatio;if(R!==l){if(!L)return s();R?s(!1,R):n=setTimeout(()=>{s(!1,1e-7)},100)}L=!1}try{r=new IntersectionObserver(O,{...H,root:a.ownerDocument})}catch{r=new IntersectionObserver(O,H)}r.observe(e)}return s(!0),i}function qo(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,f=rf(e),h=a||i?[...f?Ha(f):[],...Ha(t)]:[];h.forEach(S=>{a&&S.addEventListener("scroll",r,{passive:!0}),i&&S.addEventListener("resize",r)});const m=f&&u?ox(f,r):null;let g=-1,p=null;s&&(p=new ResizeObserver(S=>{let[H]=S;H&&H.target===f&&p&&(p.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{p&&p.observe(t)})),r()}),f&&!l&&p.observe(f),p.observe(t));let w,y=l?ti(e):null;l&&_();function _(){const S=ti(e);y&&(S.x!==y.x||S.y!==y.y||S.width!==y.width||S.height!==y.height)&&r(),y=S,w=requestAnimationFrame(_)}return r(),()=>{h.forEach(S=>{a&&S.removeEventListener("scroll",r),i&&S.removeEventListener("resize",r)}),m&&m(),p&&p.disconnect(),p=null,l&&cancelAnimationFrame(w)}}const sx=(e,t,r)=>{const n=new Map,a={platform:ix,...r},i={...a.platform,_c:n};return K7(e,t,{...a,platform:i})};var Uu=typeof document<"u"?D.useLayoutEffect:D.useEffect;function Ku(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Ku(e[n],t[n]))return!1;return!0}if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,a[n]))return!1;for(n=r;n--!==0;){const i=a[n];if(!(i==="_owner"&&e.$$typeof)&&!Ku(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function h1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function p1(e,t){const r=h1(e);return Math.round(t*r)/r}function m1(e){const t=Y.useRef(e);return Uu(()=>{t.current=e}),t}function ux(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:a,elements:{reference:i,floating:s}={},transform:u=!0,whileElementsMounted:l,open:f}=e,[h,m]=Y.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[g,p]=Y.useState(n);Ku(g,n)||p(n);const[w,y]=Y.useState(null),[_,S]=Y.useState(null),H=Y.useCallback(V=>{V!=R.current&&(R.current=V,y(V))},[y]),L=Y.useCallback(V=>{V!==K.current&&(K.current=V,S(V))},[S]),O=i||w,j=s||_,R=Y.useRef(null),K=Y.useRef(null),M=Y.useRef(h),F=m1(l),U=m1(a),k=Y.useCallback(()=>{if(!R.current||!K.current)return;const V={placement:t,strategy:r,middleware:g};U.current&&(V.platform=U.current),sx(R.current,K.current,V).then(P=>{const z={...P,isPositioned:!0};C.current&&!Ku(M.current,z)&&(M.current=z,S7.flushSync(()=>{m(z)}))})},[g,t,r,U]);Uu(()=>{f===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,m(V=>({...V,isPositioned:!1})))},[f]);const C=Y.useRef(!1);Uu(()=>(C.current=!0,()=>{C.current=!1}),[]),Uu(()=>{if(O&&(R.current=O),j&&(K.current=j),O&&j){if(F.current)return F.current(O,j,k);k()}},[O,j,k,F]);const A=Y.useMemo(()=>({reference:R,floating:K,setReference:H,setFloating:L}),[H,L]),I=Y.useMemo(()=>({reference:O,floating:j}),[O,j]),T=Y.useMemo(()=>{const V={position:r,left:0,top:0};if(!I.floating)return V;const P=p1(I.floating,h.x),z=p1(I.floating,h.y);return u?{...V,transform:"translate("+P+"px, "+z+"px)",...h1(I.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:P,top:z}},[r,u,I.floating,h.x,h.y]);return Y.useMemo(()=>({...h,update:k,refs:A,elements:I,floatingStyles:T}),[h,k,A,I,T])}var v1=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Pi=new WeakMap,zu=new WeakMap,$u={},nf=0,b1=function(e){return e&&(e.host||b1(e.parentNode))},lx=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=b1(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},w1=function(e,t,r,n){var a=lx(t,Array.isArray(e)?e:[e]);$u[r]||($u[r]=new WeakMap);var i=$u[r],s=[],u=new Set,l=new Set(a),f=function(m){!m||u.has(m)||(u.add(m),f(m.parentNode))};a.forEach(f);var h=function(m){!m||l.has(m)||Array.prototype.forEach.call(m.children,function(g){if(u.has(g))h(g);else{var p=g.getAttribute(n),w=p!==null&&p!=="false",y=(Pi.get(g)||0)+1,_=(i.get(g)||0)+1;Pi.set(g,y),i.set(g,_),s.push(g),y===1&&w&&zu.set(g,!0),_===1&&g.setAttribute(r,"true"),w||g.setAttribute(n,"true")}})};return h(t),u.clear(),nf++,function(){s.forEach(function(m){var g=Pi.get(m)-1,p=i.get(m)-1;Pi.set(m,g),i.set(m,p),g||(zu.has(m)||m.removeAttribute(n),zu.delete(m)),p||m.removeAttribute(r)}),nf--,nf||(Pi=new WeakMap,Pi=new WeakMap,zu=new WeakMap,$u={})}},y1=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=t||v1(e);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live]"))),w1(n,a,r,"aria-hidden")):function(){return null}},cx=function(e,t,r){r===void 0&&(r="data-inert-ed");var n=t||v1(e);return n?w1(e,n,r,"inert"):function(){return null}},x1=function(){return typeof HTMLElement<"u"&&HTMLElement.prototype.hasOwnProperty("inert")},dx=function(e,t,r){return r===void 0&&(r="data-suppressed"),(x1()?cx:y1)(e,t,r)};/*!
* tabbable 6.2.0
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
*/var fx=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],af=fx.join(","),_1=typeof Element>"u",Wo=_1?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ju=!_1&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},qu=function e(t,r){var n;r===void 0&&(r=!0);var a=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert"),i=a===""||a==="true",s=i||r&&t&&e(t.parentNode);return s},gx=function(t){var r,n=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"contenteditable");return n===""||n==="true"},hx=function(t,r,n){if(qu(t))return[];var a=Array.prototype.slice.apply(t.querySelectorAll(af));return r&&Wo.call(t,af)&&a.unshift(t),a=a.filter(n),a},px=function e(t,r,n){for(var a=[],i=Array.from(t);i.length;){var s=i.shift();if(!qu(s,!1))if(s.tagName==="SLOT"){var u=s.assignedElements(),l=u.length?u:s.children,f=e(l,!0,n);n.flatten?a.push.apply(a,f):a.push({scopeParent:s,candidates:f})}else{var h=Wo.call(s,af);h&&n.filter(s)&&(r||!t.includes(s))&&a.push(s);var m=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),g=!qu(m,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(m&&g){var p=e(m===!0?s.children:m.children,!0,n);n.flatten?a.push.apply(a,p):a.push({scopeParent:s,candidates:p})}else i.unshift.apply(i,s.children)}}return a},C1=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},S1=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||gx(t))&&!C1(t)?0:t.tabIndex},mx=function(t,r){var n=S1(t);return n<0&&r&&!C1(t)?0:n},vx=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},E1=function(t){return t.tagName==="INPUT"},bx=function(t){return E1(t)&&t.type==="hidden"},wx=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return r},yx=function(t,r){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===r)return t[n]},xx=function(t){if(!t.name)return!0;var r=t.form||ju(t),n=function(u){return r.querySelectorAll('input[type="radio"][name="'+u+'"]')},a;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")a=n(window.CSS.escape(t.name));else try{a=n(t.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var i=yx(a,t.form);return!i||i===t},_x=function(t){return E1(t)&&t.type==="radio"},Cx=function(t){return _x(t)&&!xx(t)},Sx=function(t){var r,n=t&&ju(t),a=(r=n)===null||r===void 0?void 0:r.host,i=!1;if(n&&n!==t){var s,u,l;for(i=!!((s=a)!==null&&s!==void 0&&(u=s.ownerDocument)!==null&&u!==void 0&&u.contains(a)||t!=null&&(l=t.ownerDocument)!==null&&l!==void 0&&l.contains(t));!i&&a;){var f,h,m;n=ju(a),a=(f=n)===null||f===void 0?void 0:f.host,i=!!((h=a)!==null&&h!==void 0&&(m=h.ownerDocument)!==null&&m!==void 0&&m.contains(a))}}return i},A1=function(t){var r=t.getBoundingClientRect(),n=r.width,a=r.height;return n===0&&a===0},Ex=function(t,r){var n=r.displayCheck,a=r.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var i=Wo.call(t,"details>summary:first-of-type"),s=i?t.parentElement:t;if(Wo.call(s,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof a=="function"){for(var u=t;t;){var l=t.parentElement,f=ju(t);if(l&&!l.shadowRoot&&a(l)===!0)return A1(t);t.assignedSlot?t=t.assignedSlot:!l&&f!==t.ownerDocument?t=f.host:t=l}t=u}if(Sx(t))return!t.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return A1(t);return!1},Ax=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var a=r.children.item(n);if(a.tagName==="LEGEND")return Wo.call(r,"fieldset[disabled] *")?!0:!a.contains(t)}return!0}r=r.parentElement}return!1},Dx=function(t,r){return!(r.disabled||qu(r)||bx(r)||Ex(r,t)||wx(r)||Ax(r))},D1=function(t,r){return!(Cx(r)||S1(r)<0||!Dx(t,r))},kx=function(t){var r=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},Nx=function e(t){var r=[],n=[];return t.forEach(function(a,i){var s=!!a.scopeParent,u=s?a.scopeParent:a,l=mx(u,s),f=s?e(a.candidates):u;l===0?s?r.push.apply(r,f):r.push(u):n.push({documentOrder:i,tabIndex:l,item:a,isScope:s,content:f})}),n.sort(vx).reduce(function(a,i){return i.isScope?a.push.apply(a,i.content):a.push(i.content),a},[]).concat(r)},of=function(t,r){r=r||{};var n;return r.getShadowRoot?n=px([t],r.includeContainer,{filter:D1.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:kx}):n=hx(t,r.includeContainer,D1.bind(null,r)),Nx(n)};function Go(){return Go=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Go.apply(this,arguments)}var Ht=typeof document<"u"?D.useLayoutEffect:D.useEffect;let sf=!1,Tx=0;const k1=()=>"floating-ui-"+Tx++;function Hx(){const[e,t]=Y.useState(()=>sf?k1():void 0);return Ht(()=>{e==null&&t(k1())},[]),Y.useEffect(()=>{sf||(sf=!0)},[]),e}const uf=Y["useId".toString()]||Hx;function Ix(){const e=new Map;return{emit(t,r){var n;(n=e.get(t))==null||n.forEach(a=>a(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){var n;e.set(t,((n=e.get(t))==null?void 0:n.filter(a=>a!==r))||[])}}}const Ox=Y.createContext(null),Mx=Y.createContext(null),lf=()=>{var e;return((e=Y.useContext(Ox))==null?void 0:e.id)||null},Zo=()=>Y.useContext(Mx);function gr(e){return e?.ownerDocument||document}function cf(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Lx(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:r,version:n}=t;return r+"/"+n}).join(" "):navigator.userAgent}function Wu(e){return gr(e).defaultView||window}function yn(e){return e?e instanceof Element||e instanceof Wu(e).Element:!1}function ri(e){return e?e instanceof HTMLElement||e instanceof Wu(e).HTMLElement:!1}function Vx(e){if(typeof ShadowRoot>"u")return!1;const t=Wu(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function N1(e){if(e.mozInputSource===0&&e.isTrusted)return!0;const t=/Android/i;return(t.test(cf())||t.test(Lx()))&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function T1(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType!=="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0}function H1(){return/apple/i.test(navigator.vendor)}function Px(){return cf().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Gu(e,t){const r=["mouse","pen"];return t||r.push("",void 0),r.includes(e)}function Fx(e){return"nativeEvent"in e}function hr(e,t){if(!e||!t)return!1;const r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Vx(r)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Ia(e){return"data-floating-ui-"+e}function On(e){const t=D.useRef(e);return Ht(()=>{t.current=e}),t}const I1=Ia("safe-polygon");function df(e,t,r){return r&&!Gu(r)?0:typeof e=="number"?e:e?.[t]}function Bx(e,t){t===void 0&&(t={});const{open:r,onOpenChange:n,dataRef:a,events:i,elements:{domReference:s,floating:u},refs:l}=e,{enabled:f=!0,delay:h=0,handleClose:m=null,mouseOnly:g=!1,restMs:p=0,move:w=!0}=t,y=Zo(),_=lf(),S=On(m),H=On(h),L=Y.useRef(),O=Y.useRef(),j=Y.useRef(),R=Y.useRef(),K=Y.useRef(!0),M=Y.useRef(!1),F=Y.useRef(()=>{}),U=Y.useCallback(()=>{var I;const T=(I=a.current.openEvent)==null?void 0:I.type;return T?.includes("mouse")&&T!=="mousedown"},[a]);Y.useEffect(()=>{if(!f)return;function I(){clearTimeout(O.current),clearTimeout(R.current),K.current=!0}return i.on("dismiss",I),()=>{i.off("dismiss",I)}},[f,i]),Y.useEffect(()=>{if(!f||!S.current||!r)return;function I(V){U()&&n(!1,V)}const T=gr(u).documentElement;return T.addEventListener("mouseleave",I),()=>{T.removeEventListener("mouseleave",I)}},[u,r,n,f,S,a,U]);const k=Y.useCallback(function(I,T){T===void 0&&(T=!0);const V=df(H.current,"close",L.current);V&&!j.current?(clearTimeout(O.current),O.current=setTimeout(()=>n(!1,I),V)):T&&(clearTimeout(O.current),n(!1,I))},[H,n]),C=Y.useCallback(()=>{F.current(),j.current=void 0},[]),A=Y.useCallback(()=>{if(M.current){const I=gr(l.floating.current).body;I.style.pointerEvents="",I.removeAttribute(I1),M.current=!1}},[l]);return Y.useEffect(()=>{if(!f)return;function I(){return a.current.openEvent?["click","mousedown"].includes(a.current.openEvent.type):!1}function T(z){if(clearTimeout(O.current),K.current=!1,g&&!Gu(L.current)||p>0&&df(H.current,"open")===0)return;const Z=df(H.current,"open",L.current);Z?O.current=setTimeout(()=>{n(!0,z)},Z):n(!0,z)}function V(z){if(I())return;F.current();const Z=gr(u);if(clearTimeout(R.current),S.current){r||clearTimeout(O.current),j.current=S.current({...e,tree:y,x:z.clientX,y:z.clientY,onClose(){A(),C(),k(z)}});const te=j.current;Z.addEventListener("mousemove",te),F.current=()=>{Z.removeEventListener("mousemove",te)};return}(L.current==="touch"?!hr(u,z.relatedTarget):!0)&&k(z)}function P(z){I()||S.current==null||S.current({...e,tree:y,x:z.clientX,y:z.clientY,onClose(){A(),C(),k(z)}})(z)}if(yn(s)){const z=s;return r&&z.addEventListener("mouseleave",P),u?.addEventListener("mouseleave",P),w&&z.addEventListener("mousemove",T,{once:!0}),z.addEventListener("mouseenter",T),z.addEventListener("mouseleave",V),()=>{r&&z.removeEventListener("mouseleave",P),u?.removeEventListener("mouseleave",P),w&&z.removeEventListener("mousemove",T),z.removeEventListener("mouseenter",T),z.removeEventListener("mouseleave",V)}}},[s,u,f,e,g,p,w,k,C,A,n,r,y,H,S,a]),Ht(()=>{var I;if(f&&r&&(I=S.current)!=null&&I.__options.blockPointerEvents&&U()){const P=gr(u).body;if(P.setAttribute(I1,""),P.style.pointerEvents="none",M.current=!0,yn(s)&&u){var T,V;const z=s,Z=y==null||(T=y.nodesRef.current.find(re=>re.id===_))==null||(V=T.context)==null?void 0:V.elements.floating;return Z&&(Z.style.pointerEvents=""),z.style.pointerEvents="auto",u.style.pointerEvents="auto",()=>{z.style.pointerEvents="",u.style.pointerEvents=""}}}},[f,r,_,u,s,y,S,a,U]),Ht(()=>{r||(L.current=void 0,C(),A())},[r,C,A]),Y.useEffect(()=>()=>{C(),clearTimeout(O.current),clearTimeout(R.current),A()},[f,C,A]),Y.useMemo(()=>{if(!f)return{};function I(T){L.current=T.pointerType}return{reference:{onPointerDown:I,onPointerEnter:I,onMouseMove(T){r||p===0||(clearTimeout(R.current),R.current=setTimeout(()=>{K.current||n(!0,T.nativeEvent)},p))}},floating:{onMouseEnter(){clearTimeout(O.current)},onMouseLeave(T){i.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),k(T.nativeEvent,!1)}}}},[i,f,p,r,n,k])}function aa(e){let t=e.activeElement;for(;((r=t)==null||(n=r.shadowRoot)==null?void 0:n.activeElement)!=null;){var r,n;t=t.shadowRoot.activeElement}return t}let O1=0;function ia(e,t){t===void 0&&(t={});const{preventScroll:r=!1,cancelPrevious:n=!0,sync:a=!1}=t;n&&cancelAnimationFrame(O1);const i=()=>e?.focus({preventScroll:r});a?i():O1=requestAnimationFrame(i)}function Rx(e,t){var r;let n=[],a=(r=e.find(i=>i.id===t))==null?void 0:r.parentId;for(;a;){const i=e.find(s=>s.id===a);a=i?.parentId,i&&(n=n.concat(i))}return n}function Yo(e,t){let r=e.filter(a=>{var i;return a.parentId===t&&((i=a.context)==null?void 0:i.open)}),n=r;for(;n.length;)n=e.filter(a=>{var i;return(i=n)==null?void 0:i.some(s=>{var u;return a.parentId===s.id&&((u=a.context)==null?void 0:u.open)})}),r=r.concat(n);return r}function M1(e){return"composedPath"in e?e.composedPath()[0]:e.target}const Ux="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function L1(e){return ri(e)&&e.matches(Ux)}function pr(e){e.preventDefault(),e.stopPropagation()}const ff=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function V1(e,t){const r=of(e,ff());t==="prev"&&r.reverse();const n=r.indexOf(aa(gr(e)));return r.slice(n+1)[0]}function P1(){return V1(document.body,"next")}function F1(){return V1(document.body,"prev")}function Qo(e,t){const r=t||e.currentTarget,n=e.relatedTarget;return!n||!hr(r,n)}function Kx(e){of(e,ff()).forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")})}function zx(e){e.querySelectorAll("[data-tabindex]").forEach(r=>{const n=r.dataset.tabindex;delete r.dataset.tabindex,n?r.setAttribute("tabindex",n):r.removeAttribute("tabindex")})}const gf={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let $x;function B1(e){e.key==="Tab"&&(e.target,clearTimeout($x))}const Zu=Y.forwardRef(function(t,r){const[n,a]=Y.useState();Ht(()=>(H1()&&a("button"),document.addEventListener("keydown",B1),()=>{document.removeEventListener("keydown",B1)}),[]);const i={ref:r,tabIndex:0,role:n,"aria-hidden":n?void 0:!0,[Ia("focus-guard")]:"",style:gf};return Y.createElement("span",Go({},t,i))}),R1=Y.createContext(null);function jx(e){let{id:t,root:r}=e===void 0?{}:e;const[n,a]=Y.useState(null),i=uf(),s=U1(),u=Y.useMemo(()=>({id:t,root:r,portalContext:s,uniqueId:i}),[t,r,s,i]),l=Y.useRef();return Ht(()=>()=>{n?.remove()},[n,u]),Ht(()=>{if(l.current===u)return;l.current=u;const{id:f,root:h,portalContext:m,uniqueId:g}=u,p=f?document.getElementById(f):null,w=Ia("portal");if(p){const y=document.createElement("div");y.id=g,y.setAttribute(w,""),p.appendChild(y),a(y)}else{let y=h||m?.portalNode;y&&!yn(y)&&(y=y.current),y=y||document.body;let _=null;f&&(_=document.createElement("div"),_.id=f,y.appendChild(_));const S=document.createElement("div");S.id=g,S.setAttribute(w,""),y=_||y,y.appendChild(S),a(S)}},[u]),n}function Fi(e){let{children:t,id:r,root:n=null,preserveTabOrder:a=!0}=e;const i=jx({id:r,root:n}),[s,u]=Y.useState(null),l=Y.useRef(null),f=Y.useRef(null),h=Y.useRef(null),m=Y.useRef(null),g=!!s&&!s.modal&&s.open&&a&&!!(n||i);return Y.useEffect(()=>{if(!i||!a||s!=null&&s.modal)return;function p(w){i&&Qo(w)&&(w.type==="focusin"?zx:Kx)(i)}return i.addEventListener("focusin",p,!0),i.addEventListener("focusout",p,!0),()=>{i.removeEventListener("focusin",p,!0),i.removeEventListener("focusout",p,!0)}},[i,a,s?.modal]),Y.createElement(R1.Provider,{value:Y.useMemo(()=>({preserveTabOrder:a,beforeOutsideRef:l,afterOutsideRef:f,beforeInsideRef:h,afterInsideRef:m,portalNode:i,setFocusManagerState:u}),[a,i])},g&&i&&Y.createElement(Zu,{"data-type":"outside",ref:l,onFocus:p=>{if(Qo(p,i)){var w;(w=h.current)==null||w.focus()}else{const y=F1()||s?.refs.domReference.current;y?.focus()}}}),g&&i&&Y.createElement("span",{"aria-owns":i.id,style:gf}),i&&Xt.createPortal(t,i),g&&i&&Y.createElement(Zu,{"data-type":"outside",ref:f,onFocus:p=>{if(Qo(p,i)){var w;(w=m.current)==null||w.focus()}else{const y=P1()||s?.refs.domReference.current;y?.focus(),s?.closeOnFocusOut&&s?.onOpenChange(!1,p.nativeEvent)}}}))}const U1=()=>Y.useContext(R1),qx=Y.forwardRef(function(t,r){return Y.createElement("button",Go({},t,{type:"button",ref:r,tabIndex:-1,style:gf}))});function Xo(e){const{context:t,children:r,disabled:n=!1,order:a=["content"],guards:i=!0,initialFocus:s=0,returnFocus:u=!0,modal:l=!0,visuallyHiddenDismiss:f=!1,closeOnFocusOut:h=!0}=e,{open:m,refs:g,nodeId:p,onOpenChange:w,events:y,dataRef:_,elements:{domReference:S,floating:H}}=t,L=x1()?i:!0,O=On(a),j=On(s),R=On(u),K=Zo(),M=U1(),F=typeof s=="number"&&s<0,U=Y.useRef(null),k=Y.useRef(null),C=Y.useRef(!1),A=Y.useRef(null),I=Y.useRef(!1),T=M!=null,V=S&&S.getAttribute("role")==="combobox"&&L1(S),P=Y.useCallback(function(te){return te===void 0&&(te=H),te?of(te,ff()):[]},[H]),z=Y.useCallback(te=>{const oe=P(te);return O.current.map(xe=>S&&xe==="reference"?S:H&&xe==="floating"?H:oe).filter(Boolean).flat()},[S,H,O,P]);Y.useEffect(()=>{if(n||!l)return;function te(xe){if(xe.key==="Tab"){hr(H,aa(gr(H)))&&P().length===0&&!V&&pr(xe);const ge=z(),le=M1(xe);O.current[0]==="reference"&&le===S&&(pr(xe),xe.shiftKey?ia(ge[ge.length-1]):ia(ge[1])),O.current[1]==="floating"&&le===H&&xe.shiftKey&&(pr(xe),ia(ge[0]))}}const oe=gr(H);return oe.addEventListener("keydown",te),()=>{oe.removeEventListener("keydown",te)}},[n,S,H,l,O,g,V,P,z]),Y.useEffect(()=>{if(n||!h)return;function te(){I.current=!0,setTimeout(()=>{I.current=!1})}function oe(xe){const ge=xe.relatedTarget;queueMicrotask(()=>{const le=!(hr(S,ge)||hr(H,ge)||hr(ge,H)||hr(M?.portalNode,ge)||ge!=null&&ge.hasAttribute(Ia("focus-guard"))||K&&(Yo(K.nodesRef.current,p).find(ve=>{var pe,Le;return hr((pe=ve.context)==null?void 0:pe.elements.floating,ge)||hr((Le=ve.context)==null?void 0:Le.elements.domReference,ge)})||Rx(K.nodesRef.current,p).find(ve=>{var pe,Le;return((pe=ve.context)==null?void 0:pe.elements.floating)===ge||((Le=ve.context)==null?void 0:Le.elements.domReference)===ge})));ge&&le&&!I.current&&ge!==A.current&&(C.current=!0,w(!1,xe))})}if(H&&ri(S))return S.addEventListener("focusout",oe),S.addEventListener("pointerdown",te),!l&&H.addEventListener("focusout",oe),()=>{S.removeEventListener("focusout",oe),S.removeEventListener("pointerdown",te),!l&&H.removeEventListener("focusout",oe)}},[n,S,H,l,p,K,M,w,h]),Y.useEffect(()=>{var te;if(n)return;const oe=Array.from((M==null||(te=M.portalNode)==null?void 0:te.querySelectorAll("["+Ia("portal")+"]"))||[]);if(H&&l){const xe=[H,...oe,U.current,k.current].filter(ve=>ve!=null),le=(L?y1:dx)(O.current.includes("reference")||V?xe.concat(S||[]):xe,void 0,Ia("inert"));return()=>{le()}}},[n,S,H,l,O,M,V,L]),Ht(()=>{if(n||!H)return;const te=gr(H),oe=aa(te);queueMicrotask(()=>{const xe=z(H),ge=j.current,le=(typeof ge=="number"?xe[ge]:ge.current)||H,ve=hr(H,oe);!F&&!ve&&m&&ia(le,{preventScroll:le===H})})},[n,m,H,F,z,j]),Ht(()=>{if(n||!H)return;let te=!1;const oe=gr(H),xe=aa(oe),ge=_.current;A.current=xe;function le(ve){if(ve.type==="escapeKey"&&g.domReference.current&&(A.current=g.domReference.current),["referencePress","escapeKey"].includes(ve.type))return;const pe=ve.data.returnFocus;typeof pe=="object"?(C.current=!1,te=pe.preventScroll):C.current=!pe}return y.on("dismiss",le),()=>{y.off("dismiss",le);const ve=aa(oe);(hr(H,ve)||K&&Yo(K.nodesRef.current,p).some(Le=>{var Fe;return hr((Fe=Le.context)==null?void 0:Fe.elements.floating,ve)})||ge.openEvent&&["click","mousedown"].includes(ge.openEvent.type))&&g.domReference.current&&(A.current=g.domReference.current),R.current&&ri(A.current)&&!C.current&&ia(A.current,{cancelPrevious:!1,preventScroll:te})}},[n,H,R,_,g,y,K,p]),Ht(()=>{if(!(n||!M))return M.setFocusManagerState({...t,modal:l,closeOnFocusOut:h,open:m}),()=>{M.setFocusManagerState(null)}},[n,M,l,m,h,t]),Ht(()=>{if(!n&&H&&typeof MutationObserver=="function"){const te=()=>{const xe=H.getAttribute("tabindex");O.current.includes("floating")||aa(gr(H))!==g.domReference.current&&P().length===0?xe!=="0"&&H.setAttribute("tabindex","0"):xe!=="-1"&&H.setAttribute("tabindex","-1")};te();const oe=new MutationObserver(te);return oe.observe(H,{childList:!0,subtree:!0,attributes:!0}),()=>{oe.disconnect()}}},[n,H,g,O,P]);function Z(te){return n||!f||!l?null:Y.createElement(qx,{ref:te==="start"?U:k,onClick:oe=>w(!1,oe.nativeEvent)},typeof f=="string"?f:"Dismiss")}const re=!n&&L&&!V&&(T||l);return Y.createElement(Y.Fragment,null,re&&Y.createElement(Zu,{"data-type":"inside",ref:M?.beforeInsideRef,onFocus:te=>{if(l){const xe=z();ia(a[0]==="reference"?xe[0]:xe[xe.length-1])}else if(M!=null&&M.preserveTabOrder&&M.portalNode)if(C.current=!1,Qo(te,M.portalNode)){const xe=P1()||S;xe?.focus()}else{var oe;(oe=M.beforeOutsideRef.current)==null||oe.focus()}}}),!V&&Z("start"),r,Z("end"),re&&Y.createElement(Zu,{"data-type":"inside",ref:M?.afterInsideRef,onFocus:te=>{if(l)ia(z()[0]);else if(M!=null&&M.preserveTabOrder&&M.portalNode)if(h&&(C.current=!0),Qo(te,M.portalNode)){const xe=F1()||S;xe?.focus()}else{var oe;(oe=M.afterOutsideRef.current)==null||oe.focus()}}}))}function Wx(e,t){const r=e.compareDocumentPosition(t);return r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS?1:0}function Gx(e,t){if(e.size!==t.size)return!1;for(const[r,n]of e.entries())if(n!==t.get(r))return!1;return!0}const K1=Y.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function Zx(e){let{children:t,elementsRef:r,labelsRef:n}=e;const[a,i]=Y.useState(()=>new Map),s=Y.useCallback(l=>{i(f=>new Map(f).set(l,null))},[]),u=Y.useCallback(l=>{i(f=>{const h=new Map(f);return h.delete(l),h})},[]);return Ht(()=>{const l=new Map(a);Array.from(l.keys()).sort(Wx).forEach((h,m)=>{l.set(h,m)}),Gx(a,l)||i(l)},[a]),Y.createElement(K1.Provider,{value:Y.useMemo(()=>({register:s,unregister:u,map:a,elementsRef:r,labelsRef:n}),[s,u,a,r,n])},t)}function Yx(e){let{label:t}=e===void 0?{}:e;const[r,n]=Y.useState(null),a=Y.useRef(null),{register:i,unregister:s,map:u,elementsRef:l,labelsRef:f}=Y.useContext(K1),h=Y.useCallback(m=>{if(a.current=m,r!==null&&(l.current[r]=m,f)){var g;const p=t!==void 0;f.current[r]=p?t:(g=m?.textContent)!=null?g:null}},[r,l,f,t]);return Ht(()=>{const m=a.current;if(m)return i(m),()=>{s(m)}},[i,s]),Ht(()=>{const m=a.current?u.get(a.current):null;m!=null&&n(m)},[u]),Y.useMemo(()=>({ref:h,index:r??-1}),[r,h])}const Yu=Ia("scroll-lock"),Qx=Y.forwardRef(function(t,r){let{lockScroll:n=!1,...a}=t;return Ht(()=>{var i,s;if(!n||document.body.hasAttribute(Yu))return;document.body.setAttribute(Yu,"");const f=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",h=window.innerWidth-document.documentElement.clientWidth;if(!/iP(hone|ad|od)|iOS/.test(cf()))return Object.assign(document.body.style,{overflow:"hidden",[f]:h+"px"}),()=>{document.body.removeAttribute(Yu),Object.assign(document.body.style,{overflow:"",[f]:""})};const m=((i=window.visualViewport)==null?void 0:i.offsetLeft)||0,g=((s=window.visualViewport)==null?void 0:s.offsetTop)||0,p=window.pageXOffset,w=window.pageYOffset;return Object.assign(document.body.style,{position:"fixed",overflow:"hidden",top:-(w-Math.floor(g))+"px",left:-(p-Math.floor(m))+"px",right:"0",[f]:h+"px"}),()=>{Object.assign(document.body.style,{position:"",overflow:"",top:"",left:"",right:"",[f]:""}),document.body.removeAttribute(Yu),window.scrollTo(p,w)}},[n]),Y.createElement("div",Go({ref:r},a,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...a.style}}))});function z1(e){return ri(e.target)&&e.target.tagName==="BUTTON"}function $1(e){return L1(e)}function hf(e,t){t===void 0&&(t={});const{open:r,onOpenChange:n,dataRef:a,elements:{domReference:i}}=e,{enabled:s=!0,event:u="click",toggle:l=!0,ignoreMouse:f=!1,keyboardHandlers:h=!0}=t,m=Y.useRef(),g=Y.useRef(!1);return Y.useMemo(()=>s?{reference:{onPointerDown(p){m.current=p.pointerType},onMouseDown(p){p.button===0&&(Gu(m.current,!0)&&f||u!=="click"&&(r&&l&&(!a.current.openEvent||a.current.openEvent.type==="mousedown")?n(!1,p.nativeEvent):(p.preventDefault(),n(!0,p.nativeEvent))))},onClick(p){if(u==="mousedown"&&m.current){m.current=void 0;return}Gu(m.current,!0)&&f||(r&&l&&(!a.current.openEvent||a.current.openEvent.type==="click")?n(!1,p.nativeEvent):n(!0,p.nativeEvent))},onKeyDown(p){m.current=void 0,!(p.defaultPrevented||!h||z1(p))&&(p.key===" "&&!$1(i)&&(p.preventDefault(),g.current=!0),p.key==="Enter"&&n(!(r&&l),p.nativeEvent))},onKeyUp(p){p.defaultPrevented||!h||z1(p)||$1(i)||p.key===" "&&g.current&&(g.current=!1,n(!(r&&l),p.nativeEvent))}}}:{},[s,a,u,f,h,i,l,r,n])}const Xx=Y["useInsertionEffect".toString()]||(e=>e());function Oa(e){const t=Y.useRef(()=>{});return Xx(()=>{t.current=e}),Y.useCallback(function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t.current==null?void 0:t.current(...n)},[])}function Qu(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const r=e;return r.target!=null&&t.contains(r.target)}const Jx={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},e8={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},t8=e=>{var t,r;return{escapeKeyBubbles:typeof e=="boolean"?e:(t=e?.escapeKey)!=null?t:!1,outsidePressBubbles:typeof e=="boolean"?e:(r=e?.outsidePress)!=null?r:!0}};function Bi(e,t){t===void 0&&(t={});const{open:r,onOpenChange:n,events:a,nodeId:i,elements:{reference:s,domReference:u,floating:l},dataRef:f}=e,{enabled:h=!0,escapeKey:m=!0,outsidePress:g=!0,outsidePressEvent:p="pointerdown",referencePress:w=!1,referencePressEvent:y="pointerdown",ancestorScroll:_=!1,bubbles:S}=t,H=Zo(),L=lf()!=null,O=Oa(typeof g=="function"?g:()=>!1),j=typeof g=="function"?O:g,R=Y.useRef(!1),{escapeKeyBubbles:K,outsidePressBubbles:M}=t8(S),F=Oa(k=>{if(!r||!h||!m||k.key!=="Escape")return;const C=H?Yo(H.nodesRef.current,i):[];if(!K&&(k.stopPropagation(),C.length>0)){let A=!0;if(C.forEach(I=>{var T;if((T=I.context)!=null&&T.open&&!I.context.dataRef.current.__escapeKeyBubbles){A=!1;return}}),!A)return}a.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),n(!1,Fx(k)?k.nativeEvent:k)}),U=Oa(k=>{const C=R.current;if(R.current=!1,C||typeof j=="function"&&!j(k))return;const A=M1(k);if(ri(A)&&l){const V=A.clientWidth>0&&A.scrollWidth>A.clientWidth,P=A.clientHeight>0&&A.scrollHeight>A.clientHeight;let z=P&&k.offsetX>A.clientWidth;if(P&&Wu(l).getComputedStyle(A).direction==="rtl"&&(z=k.offsetX<=A.offsetWidth-A.clientWidth),z||V&&k.offsetY>A.clientHeight)return}const I=H&&Yo(H.nodesRef.current,i).some(V=>{var P;return Qu(k,(P=V.context)==null?void 0:P.elements.floating)});if(Qu(k,l)||Qu(k,u)||I)return;const T=H?Yo(H.nodesRef.current,i):[];if(T.length>0){let V=!0;if(T.forEach(P=>{var z;if((z=P.context)!=null&&z.open&&!P.context.dataRef.current.__outsidePressBubbles){V=!1;return}}),!V)return}a.emit("dismiss",{type:"outsidePress",data:{returnFocus:L?{preventScroll:!0}:N1(k)||T1(k)}}),n(!1,k)});return Y.useEffect(()=>{if(!r||!h)return;f.current.__escapeKeyBubbles=K,f.current.__outsidePressBubbles=M;function k(I){n(!1,I)}const C=gr(l);m&&C.addEventListener("keydown",F),j&&C.addEventListener(p,U);let A=[];return _&&(yn(u)&&(A=Ha(u)),yn(l)&&(A=A.concat(Ha(l))),!yn(s)&&s&&s.contextElement&&(A=A.concat(Ha(s.contextElement)))),A=A.filter(I=>{var T;return I!==((T=C.defaultView)==null?void 0:T.visualViewport)}),A.forEach(I=>{I.addEventListener("scroll",k,{passive:!0})}),()=>{m&&C.removeEventListener("keydown",F),j&&C.removeEventListener(p,U),A.forEach(I=>{I.removeEventListener("scroll",k)})}},[f,l,u,s,m,j,p,r,n,_,h,K,M,F,U]),Y.useEffect(()=>{R.current=!1},[j,p]),Y.useMemo(()=>h?{reference:{onKeyDown:F,[Jx[y]]:k=>{w&&(a.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),n(!1,k.nativeEvent))}},floating:{onKeyDown:F,[e8[p]]:()=>{R.current=!0}}}:{},[h,a,w,p,y,n,F])}function Ri(e){var t;e===void 0&&(e={});const{open:r=!1,onOpenChange:n,nodeId:a}=e,[i,s]=Y.useState(null),u=((t=e.elements)==null?void 0:t.reference)||i,l=ux(e),f=Zo(),h=Oa((O,j)=>{O&&(g.current.openEvent=j),n?.(O,j)}),m=Y.useRef(null),g=Y.useRef({}),p=Y.useState(()=>Ix())[0],w=uf(),y=Y.useCallback(O=>{const j=yn(O)?{getBoundingClientRect:()=>O.getBoundingClientRect(),contextElement:O}:O;l.refs.setReference(j)},[l.refs]),_=Y.useCallback(O=>{(yn(O)||O===null)&&(m.current=O,s(O)),(yn(l.refs.reference.current)||l.refs.reference.current===null||O!==null&&!yn(O))&&l.refs.setReference(O)},[l.refs]),S=Y.useMemo(()=>({...l.refs,setReference:_,setPositionReference:y,domReference:m}),[l.refs,_,y]),H=Y.useMemo(()=>({...l.elements,domReference:u}),[l.elements,u]),L=Y.useMemo(()=>({...l,refs:S,elements:H,dataRef:g,nodeId:a,floatingId:w,events:p,open:r,onOpenChange:h}),[l,a,w,p,r,h,S,H]);return Ht(()=>{const O=f?.nodesRef.current.find(j=>j.id===a);O&&(O.context=L)}),Y.useMemo(()=>({...l,context:L,refs:S,elements:H}),[l,S,H,L])}function r8(e,t){t===void 0&&(t={});const{open:r,onOpenChange:n,dataRef:a,events:i,refs:s,elements:{floating:u,domReference:l}}=e,{enabled:f=!0,keyboardOnly:h=!0}=t,m=Y.useRef(""),g=Y.useRef(!1),p=Y.useRef();return Y.useEffect(()=>{if(!f)return;const y=gr(u).defaultView||window;function _(){!r&&ri(l)&&l===aa(gr(l))&&(g.current=!0)}return y.addEventListener("blur",_),()=>{y.removeEventListener("blur",_)}},[u,l,r,f]),Y.useEffect(()=>{if(!f)return;function w(y){(y.type==="referencePress"||y.type==="escapeKey")&&(g.current=!0)}return i.on("dismiss",w),()=>{i.off("dismiss",w)}},[i,f]),Y.useEffect(()=>()=>{clearTimeout(p.current)},[]),Y.useMemo(()=>f?{reference:{onPointerDown(w){let{pointerType:y}=w;m.current=y,g.current=!!(y&&h)},onMouseLeave(){g.current=!1},onFocus(w){var y;g.current||w.type==="focus"&&((y=a.current.openEvent)==null?void 0:y.type)==="mousedown"&&Qu(a.current.openEvent,l)||n(!0,w.nativeEvent)},onBlur(w){g.current=!1;const y=w.relatedTarget,_=yn(y)&&y.hasAttribute(Ia("focus-guard"))&&y.getAttribute("data-type")==="outside";p.current=setTimeout(()=>{hr(s.floating.current,y)||hr(l,y)||_||n(!1,w.nativeEvent)})}}}:{},[f,h,l,s,a,n])}function pf(e,t,r){const n=new Map;return{...r==="floating"&&{tabIndex:-1},...e,...t.map(a=>a?a[r]:null).concat(e).reduce((a,i)=>(i&&Object.entries(i).forEach(s=>{let[u,l]=s;if(u.indexOf("on")===0){if(n.has(u)||n.set(u,[]),typeof l=="function"){var f;(f=n.get(u))==null||f.push(l),a[u]=function(){for(var h,m=arguments.length,g=new Array(m),p=0;p<m;p++)g[p]=arguments[p];return(h=n.get(u))==null?void 0:h.map(w=>w(...g)).find(w=>w!==void 0)}}}else a[u]=l}),a),{})}}function Ui(e){e===void 0&&(e=[]);const t=e,r=Y.useCallback(i=>pf(i,e,"reference"),t),n=Y.useCallback(i=>pf(i,e,"floating"),t),a=Y.useCallback(i=>pf(i,e,"item"),e.map(i=>i?.item));return Y.useMemo(()=>({getReferenceProps:r,getFloatingProps:n,getItemProps:a}),[r,n,a])}let j1=!1;const mf="ArrowUp",Xu="ArrowDown",Ki="ArrowLeft",Jo="ArrowRight";function Ju(e,t,r){return Math.floor(e/t)!==r}function es(e,t){return t<0||t>=e.current.length}function ir(e,t){let{startingIndex:r=-1,decrement:n=!1,disabledIndices:a,amount:i=1}=t===void 0?{}:t;const s=e.current;let u=r;do{var l,f;u=u+(n?-i:i)}while(u>=0&&u<=s.length-1&&(a?a.includes(u):s[u]==null||(l=s[u])!=null&&l.hasAttribute("disabled")||((f=s[u])==null?void 0:f.getAttribute("aria-disabled"))==="true"));return u}function el(e,t,r){switch(e){case"vertical":return t;case"horizontal":return r;default:return t||r}}function q1(e,t){return el(t,e===mf||e===Xu,e===Ki||e===Jo)}function vf(e,t,r){return el(t,e===Xu,r?e===Ki:e===Jo)||e==="Enter"||e==" "||e===""}function n8(e,t,r){return el(t,r?e===Ki:e===Jo,e===Xu)}function a8(e,t,r){return el(t,r?e===Jo:e===Ki,e===mf)}function bf(e,t){return ir(e,{disabledIndices:t})}function W1(e,t){return ir(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function i8(e,t){const{open:r,onOpenChange:n,refs:a,elements:{domReference:i,floating:s}}=e,{listRef:u,activeIndex:l,onNavigate:f=()=>{},enabled:h=!0,selectedIndex:m=null,allowEscape:g=!1,loop:p=!1,nested:w=!1,rtl:y=!1,virtual:_=!1,focusItemOnOpen:S="auto",focusItemOnHover:H=!0,openOnArrowKeyDown:L=!0,disabledIndices:O=void 0,orientation:j="vertical",cols:R=1,scrollItemIntoView:K=!0}=t,M=lf(),F=Zo(),U=Oa(f),k=Y.useRef(S),C=Y.useRef(m??-1),A=Y.useRef(null),I=Y.useRef(!0),T=Y.useRef(U),V=Y.useRef(!!s),P=Y.useRef(!1),z=Y.useRef(!1),Z=On(O),re=On(r),te=On(K),[oe,xe]=Y.useState(),ge=Oa(function(pe,Le,Fe){Fe===void 0&&(Fe=!1);const qe=pe.current[Le.current];qe&&(_?xe(qe.id):ia(qe,{preventScroll:!0,sync:Px()&&H1()?j1||P.current:!1}),requestAnimationFrame(()=>{const zt=te.current;zt&&qe&&(Fe||!I.current)&&(qe.scrollIntoView==null||qe.scrollIntoView(typeof zt=="boolean"?{block:"nearest",inline:"nearest"}:zt))}))});Ht(()=>{document.createElement("div").focus({get preventScroll(){return j1=!0,!1}})},[]),Ht(()=>{h&&(r&&s?k.current&&m!=null&&(z.current=!0,U(m)):V.current&&(C.current=-1,T.current(null)))},[h,r,s,m,U]),Ht(()=>{if(h&&r&&s)if(l==null){if(P.current=!1,m!=null)return;if(V.current&&(C.current=-1,ge(u,C)),!V.current&&k.current&&(A.current!=null||k.current===!0&&A.current==null)){let pe=0;const Le=()=>{u.current[0]==null?(pe<2&&(pe?requestAnimationFrame:queueMicrotask)(Le),pe++):(C.current=A.current==null||vf(A.current,j,y)||w?bf(u,Z.current):W1(u,Z.current),A.current=null,U(C.current))};Le()}}else es(u,l)||(C.current=l,ge(u,C,z.current),z.current=!1)},[h,r,s,l,m,w,u,j,y,U,ge,Z]),Ht(()=>{if(h&&V.current&&!s&&F){var pe,Le;const Fe=F.nodesRef.current,qe=(pe=Fe.find(Ke=>Ke.id===M))==null||(Le=pe.context)==null?void 0:Le.elements.floating,zt=aa(gr(s)),Ce=Fe.some(Ke=>Ke.context&&hr(Ke.context.elements.floating,zt));qe&&!Ce&&qe.focus({preventScroll:!0})}},[h,s,F,M]),Ht(()=>{T.current=U,V.current=!!s}),Ht(()=>{r||(A.current=null)},[r]);const le=l!=null,ve=Y.useMemo(()=>{function pe(Fe){if(!r)return;const qe=u.current.indexOf(Fe);qe!==-1&&U(qe)}return{onFocus(Fe){let{currentTarget:qe}=Fe;pe(qe)},onClick:Fe=>{let{currentTarget:qe}=Fe;return qe.focus({preventScroll:!0})},...H&&{onMouseMove(Fe){let{currentTarget:qe}=Fe;pe(qe)},onPointerLeave(Fe){let{pointerType:qe}=Fe;!I.current||qe==="touch"||(C.current=-1,ge(u,C),U(null),_||ia(a.floating.current,{preventScroll:!0}))}}}},[r,a,ge,H,u,U,_]);return Y.useMemo(()=>{if(!h)return{};const pe=Z.current;function Le(Ce){if(I.current=!1,P.current=!0,!re.current&&Ce.currentTarget===a.floating.current)return;if(w&&a8(Ce.key,j,y)){pr(Ce),n(!1,Ce.nativeEvent),ri(i)&&i.focus();return}const Ke=C.current,ut=bf(u,pe),Be=W1(u,pe);if(Ce.key==="Home"&&(pr(Ce),C.current=ut,U(C.current)),Ce.key==="End"&&(pr(Ce),C.current=Be,U(C.current)),R>1){const Ve=C.current;if(Ce.key===mf){if(pr(Ce),Ve===-1)C.current=Be;else if(C.current=ir(u,{startingIndex:Ve,amount:R,decrement:!0,disabledIndices:pe}),p&&(Ve-R<ut||C.current<0)){const $t=Ve%R,bt=Be%R,Qt=Be-(bt-$t);bt===$t?C.current=Be:C.current=bt>$t?Qt:Qt-R}es(u,C.current)&&(C.current=Ve),U(C.current)}if(Ce.key===Xu&&(pr(Ce),Ve===-1?C.current=ut:(C.current=ir(u,{startingIndex:Ve,amount:R,disabledIndices:pe}),p&&Ve+R>Be&&(C.current=ir(u,{startingIndex:Ve%R-R,amount:R,disabledIndices:pe}))),es(u,C.current)&&(C.current=Ve),U(C.current)),j==="both"){const $t=Math.floor(Ve/R);Ce.key===Jo&&(pr(Ce),Ve%R!==R-1?(C.current=ir(u,{startingIndex:Ve,disabledIndices:pe}),p&&Ju(C.current,R,$t)&&(C.current=ir(u,{startingIndex:Ve-Ve%R-1,disabledIndices:pe}))):p&&(C.current=ir(u,{startingIndex:Ve-Ve%R-1,disabledIndices:pe})),Ju(C.current,R,$t)&&(C.current=Ve)),Ce.key===Ki&&(pr(Ce),Ve%R!==0?(C.current=ir(u,{startingIndex:Ve,disabledIndices:pe,decrement:!0}),p&&Ju(C.current,R,$t)&&(C.current=ir(u,{startingIndex:Ve+(R-Ve%R),decrement:!0,disabledIndices:pe}))):p&&(C.current=ir(u,{startingIndex:Ve+(R-Ve%R),decrement:!0,disabledIndices:pe})),Ju(C.current,R,$t)&&(C.current=Ve));const bt=Math.floor(Be/R)===$t;es(u,C.current)&&(p&&bt?C.current=Ce.key===Ki?Be:ir(u,{startingIndex:Ve-Ve%R-1,disabledIndices:pe}):C.current=Ve),U(C.current);return}}if(q1(Ce.key,j)){if(pr(Ce),r&&!_&&aa(Ce.currentTarget.ownerDocument)===Ce.currentTarget){C.current=vf(Ce.key,j,y)?ut:Be,U(C.current);return}vf(Ce.key,j,y)?p?C.current=Ke>=Be?g&&Ke!==u.current.length?-1:ut:ir(u,{startingIndex:Ke,disabledIndices:pe}):C.current=Math.min(Be,ir(u,{startingIndex:Ke,disabledIndices:pe})):p?C.current=Ke<=ut?g&&Ke!==-1?u.current.length:Be:ir(u,{startingIndex:Ke,decrement:!0,disabledIndices:pe}):C.current=Math.max(ut,ir(u,{startingIndex:Ke,decrement:!0,disabledIndices:pe})),es(u,C.current)?U(null):U(C.current)}}function Fe(Ce){S==="auto"&&N1(Ce.nativeEvent)&&(k.current=!0)}function qe(Ce){k.current=S,S==="auto"&&T1(Ce.nativeEvent)&&(k.current=!0)}const zt=_&&r&&le&&{"aria-activedescendant":oe};return{reference:{...zt,onKeyDown(Ce){I.current=!1;const Ke=Ce.key.indexOf("Arrow")===0;if(_&&r)return Le(Ce);if(!r&&!L&&Ke)return;const ut=Ke||Ce.key==="Enter"||Ce.key.trim()==="",Be=q1(Ce.key,j),Ve=n8(Ce.key,j,y);if(ut&&(A.current=w&&Be?null:Ce.key),w){Ve&&(pr(Ce),r?(C.current=bf(u,pe),U(C.current)):n(!0,Ce.nativeEvent));return}Be&&(m!=null&&(C.current=m),pr(Ce),!r&&L?n(!0,Ce.nativeEvent):Le(Ce),r&&U(C.current))},onFocus(){r&&U(null)},onPointerDown:qe,onMouseDown:Fe,onClick:Fe},floating:{"aria-orientation":j==="both"?void 0:j,...zt,onKeyDown:Le,onPointerMove(){I.current=!0}},item:ve}},[i,a,oe,Z,re,u,h,j,y,_,r,le,w,m,L,g,R,p,S,U,n,ve])}function tl(e,t){t===void 0&&(t={});const{open:r,floatingId:n}=e,{enabled:a=!0,role:i="dialog"}=t,s=uf();return Y.useMemo(()=>{const u={id:n,role:i};return a?i==="tooltip"?{reference:{"aria-describedby":r?n:void 0},floating:u}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":i==="alertdialog"?"dialog":i,"aria-controls":r?n:void 0,...i==="listbox"&&{role:"combobox"},...i==="menu"&&{id:s}},floating:{...u,...i==="menu"&&{"aria-labelledby":s}}}:{}},[a,i,r,n,s])}function o8(e,t){var r;const{open:n,dataRef:a}=e,{listRef:i,activeIndex:s,onMatch:u,onTypingChange:l,enabled:f=!0,findMatch:h=null,resetMs:m=750,ignoreKeys:g=[],selectedIndex:p=null}=t,w=Y.useRef(),y=Y.useRef(""),_=Y.useRef((r=p??s)!=null?r:-1),S=Y.useRef(null),H=Oa(u),L=Oa(l),O=On(h),j=On(g);return Ht(()=>{n&&(clearTimeout(w.current),S.current=null,y.current="")},[n]),Ht(()=>{if(n&&y.current===""){var R;_.current=(R=p??s)!=null?R:-1}},[n,p,s]),Y.useMemo(()=>{if(!f)return{};function R(F){F?a.current.typing||(a.current.typing=F,L(F)):a.current.typing&&(a.current.typing=F,L(F))}function K(F,U,k){const C=O.current?O.current(U,k):U.find(A=>A?.toLocaleLowerCase().indexOf(k.toLocaleLowerCase())===0);return C?F.indexOf(C):-1}function M(F){const U=i.current;if(y.current.length>0&&y.current[0]!==" "&&(K(U,U,y.current)===-1?R(!1):F.key===" "&&pr(F)),U==null||j.current.includes(F.key)||F.key.length!==1||F.ctrlKey||F.metaKey||F.altKey)return;n&&F.key!==" "&&(pr(F),R(!0)),U.every(I=>{var T,V;return I?((T=I[0])==null?void 0:T.toLocaleLowerCase())!==((V=I[1])==null?void 0:V.toLocaleLowerCase()):!0})&&y.current===F.key&&(y.current="",_.current=S.current),y.current+=F.key,clearTimeout(w.current),w.current=setTimeout(()=>{y.current="",_.current=S.current,R(!1)},m);const C=_.current,A=K(U,[...U.slice((C||0)+1),...U.slice(0,(C||0)+1)],y.current);A!==-1?(H(A),S.current=A):F.key!==" "&&(y.current="",R(!1))}return{reference:{onKeyDown:M},floating:{onKeyDown:M,onKeyUp(F){F.key===" "&&R(!1)}}}},[f,n,a,i,m,j,O,H,L])}const G1=D.createContext({ref:{current:void 0},props:()=>({})});function Jr(){return D.useContext(G1)}function lt(e){const[t,r]=D.useState(!1),{refs:n,floatingStyles:a,context:i}=Ri({open:t,onOpenChange:r,placement:e.placement??"top",whileElementsMounted:qo,middleware:[$o(10),r1(),zo({fallbackAxisSideDirection:"start"})]}),{getReferenceProps:s,getFloatingProps:u}=Ui([Bx(i,{move:!1,delay:{open:300,close:0}}),r8(i),Bi(i),tl(i,{role:"tooltip"})]);return b(ie,{children:[o(G1.Provider,{value:{ref:n.setReference,props:s},children:e.children??o(s8,{})}),o(Fi,{children:t&&o("div",{ref:n.setFloating,id:e.id,className:"pointer-events-none z-widgets inline-block max-w-[300px] rounded-xs bg-gray-900 px-2 py-1 text-sm leading-5 text-white",style:a,...u(),children:e.content})})]})}lt.Anchor=function(e){const t=Jr();return e.children(t.ref,t.props)};function s8(){const{ref:e,props:t}=Jr();return o("div",{ref:e,className:"inline-block cursor-help select-none rounded-full leading-[0] text-gray-700 hover:text-primary focus-visible:text-primary",tabIndex:0,...t(),children:o(fr,{width:18,height:18})})}const rl={init:"wpra:init",navigate:"wpra:navigate",wpMedia:"wpra:wpMedia"},nl={didNavigate:"wpra:didNavigate",setBadgeCount:"wpra:setBadgeCount",openUrl:"wpra:openUrl",wpMedia:"wpra:wpMedia"};class u8{constructor(){Ou(this,"shell");Ou(this,"initData",null);this.shell=window.parent,this.subscribe(rl.init,(t,r)=>{!this.shell&&r.source instanceof Window&&(this.shell=r.source),this.initData=t})}subscribe(t,r){const n=function(a){const i=a.data??{};if(!(!i.type||!i.payload)&&i.type===t){if(a.origin!==window.location.origin){console.warn("WPRA: Blocked message from unauthorized origin:",a.origin);return}r(i.payload,a)}};return window.addEventListener("message",n),()=>window.removeEventListener("message",n)}setBadgeCount(t){this.send(nl.setBadgeCount,t)}navigate(t,r,n){this.send(nl.didNavigate,{page:t,params:r,why:n})}openLink(t,r="_blank"){this.send(nl.openUrl,{url:t,target:r})}wpMedia(t){return new Promise(r=>{const n=this.subscribe(rl.wpMedia,a=>{r(a),n()});this.send(nl.wpMedia,t)})}send(t,r){if(this.shell===null||this.shell===window){console.error("AppShell: shell is not set yet");return}this.shell.postMessage({type:t,payload:r},"*")}}const Mn=new u8;function Z1(e,t){e&&(typeof e=="function"?e(t):e.current=t)}function en(e,t){return r=>{Z1(e,r),Z1(t,r)}}const Ae=D.forwardRef(function({className:t,variant:r,onClick:n,disabled:a,onMouseDown:i,...s},u){const l=D.useMemo(function(){switch(r??"primary"){case"primary":return{className:"text-primary hover:underline focus-visible:underline ring-primary focus-visible:ring-1"};case"secondary":return{className:"text-gray-700 underline hover:text-primary focus-visible:text-primary focus-visible:ring-1 ring-primary ring-offset-2"};case"white":return{className:"text-white underline focus-visible:ring-1 ring-white"};default:return{className:""}}},[r]),f=Jr();function h(g,p){if(a){g.preventDefault(),g.stopPropagation();return}p!=="_top"&&(n?.(g),g.currentTarget.href&&(Mn.openLink(g.currentTarget.href,p??g.currentTarget.target),g.preventDefault()))}function m(g){i?.(g);const p=g.button===0;(g.button===1||p&&(g.ctrlKey||g.metaKey))&&h(g,"_blank")}return o("a",{className:fe("cursor-pointer",l.className,t),...s,onMouseDown:m,onClick:h,ref:en(u,f.ref),"aria-disabled":a,...f.props()})});function We(e){const t=e.linkProps??{};return e.children.split(/(\[[^\]]+\]\[\w+\])/).map((n,a)=>{if(n.length>1&&n.startsWith("[")&&n.endsWith("]")){const i=n.indexOf("]"),s=n.substring(1,i),u=n.substring(i+2,n.length-1),l=e.urls?.[u]??"";return o(Ae,{...t,href:l,children:s},a)}else return l8(n)})}function l8(e){return e.split(/(\*[^\*]+\*)/).map((r,n)=>r.length>1&&r[0]==="*"&&r[r.length-1]==="*"?o("strong",{children:r.substring(1,r.length-1)},n):o("span",{children:r},n))}const c8=D.forwardRef(function({beeColor:e,...t},r){return b("svg",{width:"169",height:"49",viewBox:"0 0 1867 531",fill:"none",ref:r,...t,xmlns:"http://www.w3.org/2000/svg",children:[o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M163.602 60.5701L155.796 60L152.128 66.9138L152.127 66.9148L151.622 67.8689C151.274 68.5255 150.735 69.543 149.97 70.989C148.441 73.8811 146.006 78.488 142.383 85.3517L135.721 98.0634C144.838 100.82 149.737 102.691 158.117 106.87L163.609 96.5539C166.022 91.9811 167.907 88.4121 169.348 85.6862C195.419 91.7463 235.675 119.56 246.349 172.985L246.374 173.113L246.403 173.239C247.095 176.355 247.978 182.176 248.419 189.562C220.856 155.147 191.037 132.575 164.25 118.385C147.516 109.521 131.942 103.915 118.813 100.74C105.943 97.628 94.6635 96.6695 86.7245 97.7977L80.7342 98.6489L77.8567 103.971C60.7662 135.583 56.7716 175.705 64.3121 211C71.8203 246.144 91.4313 279.076 124.309 292.975C125.045 293.269 125.516 293.482 126.018 293.71C127.349 294.314 128.908 295.021 136.236 297.601C136.967 295.427 137.583 293.527 138.143 291.796L138.145 291.793L138.145 291.792C140.064 285.865 141.338 281.934 144.411 275.848L133.654 270.869C110.558 261.105 94.3381 236.671 87.7825 205.986C81.7519 177.758 84.4656 146.425 95.972 121.391C100.22 121.582 106.019 122.338 113.172 124.068C124.296 126.758 137.996 131.637 153.015 139.593C182.996 155.475 218.15 183.569 248.522 230.818L248.626 230.979L248.735 231.138C263.466 252.515 273.821 276.116 277.387 301.252C278.085 306.176 278.51 310.876 278.688 315.362C226.881 310.238 189.209 281.754 176.827 267.976L165.969 255.894L157.612 269.823C154.452 275.088 148.129 289.348 144.408 301.94C143.529 304.918 142.759 307.762 142.084 310.518C141.919 311.193 141.759 311.862 141.605 312.527C141.387 313.468 141.181 314.399 140.985 315.323C139.265 323.416 138.39 330.738 137.834 338.572C137.338 345.546 137.182 353.027 137.545 360.738C137.635 362.646 137.756 364.57 137.912 366.505C138.027 367.921 138.16 369.343 138.312 370.77C138.743 374.797 139.332 378.867 140.106 382.94C143.715 401.952 151.459 421.563 166.472 436.895L170.264 440.768L175.676 440.483C192.467 439.599 214.437 435.165 235.399 425.178C239.127 423.402 242.835 421.445 246.485 419.293C248.095 418.344 249.693 417.357 251.277 416.331C254.466 414.266 257.6 412.04 260.649 409.645C266.525 405.029 272.094 399.781 277.146 393.835C281.046 389.245 284.631 384.248 287.808 378.818C289.597 375.76 291.254 372.57 292.764 369.244C294.869 364.604 296.682 359.71 298.164 354.554C300.456 346.584 301.948 338.025 302.521 328.857C303.126 319.191 302.708 308.876 301.149 297.882C297.196 270.015 286.219 244.34 271.192 221.52C273.318 206.095 272.884 191.441 271.776 180.751C279.141 180.077 288.965 180.014 298.82 181.527L298.824 181.528C301.482 181.936 304.141 182.459 306.756 183.115C321.042 186.702 331.414 193.515 335.491 204.599C339.26 214.846 339.326 222.72 337.851 228.787C336.357 234.928 333.058 240.132 328.699 244.59C319.689 253.805 306.247 258.733 301.169 260.49C305.105 269.548 306.519 274.506 308.335 283.13C314.288 281.07 332.817 274.708 345.859 261.369C352.526 254.55 358.444 245.671 361.171 234.459C363.916 223.173 363.206 210.425 358.016 196.314C353.415 183.806 345.019 175.122 335.336 169.146C336.834 168.941 338.312 168.981 339.518 169.111C340.175 169.183 340.684 169.273 340.983 169.333C341.07 169.351 341.138 169.366 341.183 169.376L341.212 169.383L341.235 169.388C347.582 171.072 354.118 167.336 355.875 160.991C357.644 154.604 353.9 147.993 347.513 146.224L347.501 146.221L347.489 146.218L347.464 146.211L347.406 146.195C347.365 146.184 347.318 146.171 347.265 146.158C347.16 146.13 347.033 146.098 346.884 146.062C346.587 145.991 346.204 145.903 345.744 145.81C344.827 145.625 343.585 145.411 342.097 145.25C339.173 144.934 335.024 144.791 330.42 145.633C326.648 146.322 322.672 147.676 318.915 149.952C320.197 145.273 323.208 140.04 330.627 134.765C336.028 130.924 337.293 123.432 333.452 118.031C329.612 112.63 322.12 111.365 316.719 115.206C304.428 123.946 297.928 134.333 295.349 145.252C294.413 149.218 294.032 153.105 293.996 156.8C283.866 155.934 274.411 156.287 267.208 157.094L267.14 156.855C249.673 94.8446 197.309 63.0318 163.602 60.5701ZM171.837 296.126C192.849 313.441 229.897 334.861 277.115 339.324C276.566 342.31 275.889 345.175 275.099 347.922C274.6 349.657 274.055 351.348 273.467 352.996C266.097 353.168 257.301 351.989 247.566 349.588C234.961 346.48 221.626 341.536 209.203 335.87C196.782 330.206 185.564 323.952 177.192 318.372C172.994 315.574 169.691 313.065 167.365 310.999C167.199 310.851 167.042 310.709 166.894 310.574C167.065 309.971 167.242 309.36 167.425 308.741C168.674 304.512 170.254 300.12 171.837 296.126ZM241.819 372.89C248.005 374.416 254.288 375.62 260.48 376.323C259.948 376.99 259.407 377.647 258.856 378.295C255.795 381.897 252.457 385.211 248.899 388.252C234.546 387.894 216.401 382.394 198.929 374.731C183.215 367.839 169.477 359.843 161.357 354.09C161.301 349.341 161.458 344.703 161.773 340.273C161.85 339.192 161.933 338.132 162.023 337.087C162.633 337.505 163.253 337.924 163.881 338.343C173.46 344.727 185.823 351.586 199.244 357.707C212.663 363.827 227.43 369.341 241.819 372.89ZM189.29 396.71C198.028 400.543 207.543 404.161 217.201 406.943C204.16 412.122 191.021 414.959 180.017 416.08C173.214 407.453 167.952 396.387 165.03 384.622C172.379 388.747 180.65 392.921 189.29 396.71ZM316.341 212.39C316.341 217.27 311.909 216.129 306.777 214.807C304.173 214.137 301.389 213.42 298.913 213.42C296.47 213.42 294.14 213.995 292.117 214.495C288.046 215.501 285.219 216.199 285.219 211.285C285.219 203.927 294.223 199.545 301.58 199.545C308.937 199.545 316.341 205.032 316.341 212.39Z",fill:e??"currentColor"}),o("path",{d:"M570.449 149.633H611.218C605.203 237.853 599.522 323.734 594.175 410.284H561.093L567.108 342.782H493.925C481.561 365.505 469.865 388.229 458.169 410.284H422.747C435.111 387.895 447.476 365.171 460.508 342.782H426.757L436.448 314.378H476.548C507.96 259.574 539.706 204.436 570.449 149.633ZM509.297 314.378H569.781C573.791 269.265 577.467 224.152 581.143 181.713C558.085 224.821 533.357 269.933 509.297 314.378Z",fill:"currentColor"}),o("path",{d:"M790.322 295.664L800.347 313.041C782.301 352.473 755.234 380.877 714.8 395.915L713.463 399.591C696.42 451.052 666.345 470.768 636.604 470.768C613.212 470.768 596.838 458.404 596.838 438.688C596.838 400.927 650.973 383.216 693.747 378.538L703.438 349.799C695.084 360.493 681.049 366.842 668.684 366.842C646.629 366.842 629.252 351.136 629.252 323.734C629.252 283.3 658.325 245.873 693.747 245.873C710.789 245.873 723.488 253.225 729.837 261.913L734.181 249.215H762.92L723.822 367.845C752.226 353.475 771.942 332.757 790.322 295.664ZM678.041 342.448C700.43 342.448 712.794 310.368 722.485 282.298C717.807 276.283 707.448 270.602 697.089 270.602C671.692 270.602 658.325 295.998 658.325 319.724C658.325 334.428 666.011 342.448 678.041 342.448ZM640.28 446.708C656.654 446.708 674.365 432.005 686.395 400.593C663.338 403.266 624.908 415.965 624.908 435.012C624.908 443.367 631.257 446.708 640.28 446.708Z",fill:"currentColor"}),o("path",{d:"M935.215 295.664L945.24 313.041C927.195 352.473 900.127 380.877 859.693 395.915L858.356 399.591C841.313 451.052 811.238 470.768 781.497 470.768C758.106 470.768 741.731 458.404 741.731 438.688C741.731 400.927 795.867 383.216 838.64 378.538L848.331 349.799C839.977 360.493 825.942 366.842 813.578 366.842C791.522 366.842 774.146 351.136 774.146 323.734C774.146 283.3 803.218 245.873 838.64 245.873C855.683 245.873 868.381 253.225 874.73 261.913L879.074 249.215H907.813L868.715 367.845C897.12 353.475 916.835 332.757 935.215 295.664ZM822.934 342.448C845.323 342.448 857.688 310.368 867.379 282.298C862.7 276.283 852.341 270.602 841.982 270.602C816.585 270.602 803.218 295.998 803.218 319.724C803.218 334.428 810.904 342.448 822.934 342.448ZM785.173 446.708C801.547 446.708 819.258 432.005 831.288 400.593C808.231 403.266 769.801 415.965 769.801 435.012C769.801 443.367 776.151 446.708 785.173 446.708Z",fill:"currentColor"}),o("path",{d:"M1058.05 295.664L1067.74 313.041C1055.38 341.111 1025.3 383.55 996.9 383.55C977.518 383.55 967.159 369.181 967.159 352.473C967.159 331.086 979.189 306.358 991.553 279.29C984.536 278.956 973.842 277.953 964.486 275.614C951.119 310.702 933.408 338.104 916.7 357.485C901.996 373.86 889.966 358.488 905.004 340.777C927.727 314.378 941.762 274.612 949.782 238.187H975.847C974.845 242.866 973.508 247.21 972.506 251.554C988.546 254.896 1016.95 256.232 1029.98 255.898C1017.28 283.634 996.9 328.079 996.9 345.121C996.9 352.139 999.908 356.149 1005.59 356.149C1019.29 356.149 1044.02 324.403 1058.05 295.664Z",fill:"currentColor"}),o("path",{d:"M1182.09 295.33L1192.12 313.041C1174.74 349.465 1151.68 383.55 1098.55 383.55C1065.13 383.55 1041.41 363.5 1041.41 331.086C1041.41 286.976 1070.48 245.873 1111.92 245.873C1137.65 245.873 1150.68 265.255 1150.68 283.634C1150.68 322.732 1107.57 342.448 1070.81 334.094C1072.82 349.131 1083.18 358.822 1104.9 358.822C1137.65 358.822 1160.04 338.104 1182.09 295.33ZM1109.91 270.267C1091.2 270.267 1075.83 290.652 1071.82 314.712C1095.54 319.056 1122.94 306.358 1123.28 284.971C1123.61 276.617 1118.6 270.267 1109.91 270.267Z",fill:"currentColor"}),o("path",{d:"M1326.82 295.664L1336.84 313.041C1318.8 352.473 1291.73 380.877 1251.3 395.915L1249.96 399.591C1232.92 451.052 1202.84 470.768 1173.1 470.768C1149.71 470.768 1133.33 458.404 1133.33 438.688C1133.33 400.927 1187.47 383.216 1230.24 378.538L1239.93 349.799C1231.58 360.493 1217.54 366.842 1205.18 366.842C1183.13 366.842 1165.75 351.136 1165.75 323.734C1165.75 283.3 1194.82 245.873 1230.24 245.873C1247.29 245.873 1259.98 253.225 1266.33 261.913L1270.68 249.215H1299.42L1260.32 367.845C1288.72 353.475 1308.44 332.757 1326.82 295.664ZM1214.54 342.448C1236.93 342.448 1249.29 310.368 1258.98 282.298C1254.3 276.283 1243.94 270.602 1233.58 270.602C1208.19 270.602 1194.82 295.998 1194.82 319.724C1194.82 334.428 1202.51 342.448 1214.54 342.448ZM1176.78 446.708C1193.15 446.708 1210.86 432.005 1222.89 400.593C1199.83 403.266 1161.4 415.965 1161.4 435.012C1161.4 443.367 1167.75 446.708 1176.78 446.708Z",fill:"currentColor"}),o("path",{d:"M1473.72 295.664L1483.41 313.041C1470.71 341.445 1441.3 383.55 1411.89 383.55C1394.85 383.55 1387.83 371.186 1386.5 361.161C1379.48 371.52 1368.45 383.55 1348.07 383.55C1324.68 383.55 1309.97 363.5 1309.97 335.096C1309.97 290.318 1340.05 245.873 1378.14 245.873C1392.18 245.873 1405.55 254.562 1410.22 263.918L1415.57 249.215H1444.31C1413.57 333.759 1406.21 356.149 1419.58 356.149C1433.62 356.149 1456.01 330.418 1473.72 295.664ZM1357.76 356.149C1375.47 356.149 1389.17 332.089 1402.87 285.973C1399.2 277.953 1390.51 271.938 1380.48 271.938C1355.75 271.938 1339.38 304.018 1339.38 333.091C1339.38 345.121 1345.4 356.149 1357.76 356.149Z",fill:"currentColor"}),o("path",{d:"M1555.4 295.664L1565.09 313.041C1552.39 341.445 1522.98 383.55 1493.58 383.55C1447.79 383.55 1457.49 331.754 1477.87 272.272H1461.83L1469.52 249.215H1485.89L1503.6 201.429H1533.01C1525.99 219.14 1519.97 234.846 1514.63 249.215H1543.7L1535.68 272.272H1506.27C1485.22 332.089 1483.22 356.149 1501.26 356.149C1515.3 356.149 1537.35 330.418 1555.4 295.664Z",fill:"currentColor"}),o("path",{d:"M1789.7 322.398L1806.41 338.438C1795.72 356.483 1771.32 383.55 1744.59 383.55C1725.21 383.55 1714.18 370.518 1714.18 353.81C1714.18 332.089 1728.55 306.358 1739.24 279.29C1732.56 278.956 1722.87 277.953 1713.85 275.948C1696.8 313.375 1672.41 335.43 1643.67 340.777C1631.64 365.171 1610.26 383.55 1582.52 383.55C1555.12 383.55 1538.07 362.832 1538.07 335.43C1538.07 288.981 1568.82 245.873 1610.92 245.873C1640.33 245.873 1654.7 270.267 1654.7 294.328C1654.7 300.343 1654.03 306.023 1653.03 312.039C1675.42 302.348 1690.46 276.617 1700.48 238.187H1727.21L1723.2 252.222C1739.58 254.896 1765.31 256.232 1777.67 255.898C1766.65 283.634 1744.26 330.418 1744.26 345.789C1744.26 352.473 1746.93 356.149 1752.28 356.149C1761.97 356.149 1779.01 339.44 1789.7 322.398ZM1586.19 357.151C1606.58 357.151 1625.29 323.734 1625.29 295.998C1625.29 281.963 1619.28 270.936 1606.58 270.936C1585.86 270.936 1567.15 304.353 1567.15 332.089C1567.15 348.463 1574.83 357.151 1586.19 357.151Z",fill:"currentColor"}),o("path",{d:"M696.792 200.681H684.84L672.384 150.641H683.4L691.752 187.001L701.04 150.641H712.488L722.28 187.001L730.128 150.641H741.144L728.688 200.681H716.664L706.8 165.545L696.792 200.681Z",fill:"currentColor"}),o("path",{d:"M766.433 200.681H755.705V150.641H776.873C782.345 150.641 786.785 152.105 790.193 155.033C793.649 157.961 795.377 161.945 795.377 166.985C795.377 172.025 793.649 176.009 790.193 178.937C786.785 181.865 782.345 183.329 776.873 183.329H766.433V200.681ZM766.433 159.929V174.113H775.721C778.457 174.113 780.545 173.489 781.985 172.241C783.425 170.993 784.145 169.241 784.145 166.985C784.145 164.729 783.401 163.001 781.913 161.801C780.473 160.553 778.361 159.929 775.577 159.929H766.433Z",fill:"currentColor"}),o("path",{d:"M886.008 190.817C886.728 190.817 887.328 190.745 887.808 190.601V200.537C886.944 200.825 885.912 200.969 884.712 200.969C880.152 200.969 876.312 199.889 873.192 197.729C870.12 195.521 867.24 191.393 864.552 185.345L863.04 182.249H856.272V200.681H845.544V150.641H868.008C873.432 150.641 877.8 152.057 881.112 154.889C884.424 157.721 886.08 161.609 886.08 166.553C886.08 170.345 885.048 173.465 882.984 175.913C880.92 178.361 878.016 179.969 874.272 180.737C876.336 184.673 878.28 187.337 880.104 188.729C881.928 190.121 883.896 190.817 886.008 190.817ZM866.712 159.929H856.272V173.033H866.856C872.184 173.033 874.848 170.849 874.848 166.481C874.848 162.113 872.136 159.929 866.712 159.929Z",fill:"currentColor"}),o("path",{d:"M925.718 201.689C918.998 201.689 913.742 200.273 909.95 197.441C906.158 194.561 904.262 190.841 904.262 186.281C904.262 184.313 904.598 182.273 905.27 180.161L915.566 182.537C915.182 183.497 914.99 184.601 914.99 185.849C914.99 188.009 915.974 189.737 917.942 191.033C919.958 192.281 922.622 192.905 925.934 192.905C928.91 192.905 931.262 192.353 932.99 191.249C934.718 190.097 935.582 188.537 935.582 186.569C935.582 183.545 933.326 181.601 928.814 180.737L922.19 179.585C916.382 178.577 912.134 176.849 909.446 174.401C906.806 171.953 905.486 168.713 905.486 164.681C905.486 160.361 907.214 156.785 910.67 153.953C914.174 151.073 918.806 149.633 924.566 149.633C931.142 149.633 936.158 151.097 939.614 154.025C943.07 156.905 944.99 161.081 945.374 166.553L934.79 167.849C934.022 161.561 930.494 158.417 924.206 158.417C921.854 158.417 919.934 158.945 918.446 160.001C916.958 161.009 916.214 162.377 916.214 164.105C916.214 167.177 918.83 169.193 924.062 170.153L930.686 171.305C936.158 172.265 940.118 173.921 942.566 176.273C945.014 178.625 946.238 181.721 946.238 185.561C946.238 190.409 944.342 194.321 940.55 197.297C936.806 200.225 931.862 201.689 925.718 201.689Z",fill:"currentColor"}),o("path",{d:"M984.989 201.689C978.269 201.689 973.013 200.273 969.221 197.441C965.429 194.561 963.533 190.841 963.533 186.281C963.533 184.313 963.869 182.273 964.541 180.161L974.837 182.537C974.453 183.497 974.261 184.601 974.261 185.849C974.261 188.009 975.245 189.737 977.213 191.033C979.229 192.281 981.893 192.905 985.205 192.905C988.181 192.905 990.533 192.353 992.261 191.249C993.989 190.097 994.853 188.537 994.853 186.569C994.853 183.545 992.597 181.601 988.085 180.737L981.461 179.585C975.653 178.577 971.405 176.849 968.717 174.401C966.077 171.953 964.757 168.713 964.757 164.681C964.757 160.361 966.485 156.785 969.941 153.953C973.445 151.073 978.077 149.633 983.837 149.633C990.413 149.633 995.429 151.097 998.885 154.025C1002.34 156.905 1004.26 161.081 1004.64 166.553L994.061 167.849C993.293 161.561 989.765 158.417 983.477 158.417C981.125 158.417 979.205 158.945 977.717 160.001C976.229 161.009 975.485 162.377 975.485 164.105C975.485 167.177 978.101 169.193 983.333 170.153L989.957 171.305C995.429 172.265 999.389 173.921 1001.84 176.273C1004.28 178.625 1005.51 181.721 1005.51 185.561C1005.51 190.409 1003.61 194.321 999.821 197.297C996.077 200.225 991.133 201.689 984.989 201.689Z",fill:"currentColor"})]})}),ts=me(()=>b(ie,{children:[o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4.75C7.99594 4.75 4.75 7.99594 4.75 12C4.75 16.0041 7.99594 19.25 12 19.25C16.0041 19.25 19.25 16.0041 19.25 12C19.25 7.99594 16.0041 4.75 12 4.75ZM3.25 12C3.25 7.16751 7.16751 3.25 12 3.25C16.8325 3.25 20.75 7.16751 20.75 12C20.75 16.8325 16.8325 20.75 12 20.75C7.16751 20.75 3.25 16.8325 3.25 12Z",fill:"currentColor"}),o("path",{d:"M13 7H11V13H13V7Z",fill:"currentColor"}),o("path",{d:"M13 15H11V17H13V15Z",fill:"currentColor"})]})),zi=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.46966 6.46967L10.5303 7.53033L6.81065 11.25L20 11.25V12.75L6.81065 12.75L10.5303 16.4697L9.46966 17.5303L3.93933 12L9.46966 6.46967Z",fill:"currentColor"})),rs=me(()=>b(ie,{children:[o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.6694 8.20231C13.6173 7.58469 12.3836 7.35099 11.1785 7.54103C9.97335 7.73106 8.87141 8.33308 8.0604 9.2445C7.24939 10.1559 6.77949 11.3203 6.73077 12.5394C6.68205 13.7584 7.05752 14.9566 7.79321 15.9299C8.52889 16.9031 9.57927 17.5911 10.7654 17.8767C11.9515 18.1623 13.1999 18.0279 14.298 17.4962C15.396 16.9645 16.2758 16.0685 16.7873 14.9609C17.2988 13.8533 17.4105 12.6026 17.1032 11.422L18.5549 11.0442C18.9495 12.5607 18.8061 14.1672 18.1491 15.5898C17.4921 17.0125 16.3621 18.1633 14.9517 18.8462C13.5413 19.5292 11.9377 19.7019 10.4142 19.3351C8.89073 18.9682 7.54156 18.0845 6.59661 16.8344C5.65166 15.5843 5.16939 14.0453 5.23197 12.4795C5.29455 10.9137 5.89811 9.41803 6.93981 8.24736C7.98152 7.07669 9.39691 6.30343 10.9448 6.05934C12.4927 5.81525 14.0774 6.11542 15.4288 6.90872L14.6694 8.20231Z",fill:"currentColor"}),o("path",{d:"M18.5236 5.41345L12.2236 13.9135L8.92359 11.4135L8.02359 12.6135L12.5236 16.0135L19.7236 6.31345L18.5236 5.41345Z",fill:"currentColor"})]})),d8=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.4535 7.49621C11.7635 7.43667 11.0686 7.51361 10.4084 7.72264C9.74823 7.93166 9.13567 8.26867 8.60571 8.71443C8.07575 9.16019 7.63878 9.70597 7.31975 10.3206C7.00072 10.9352 6.80587 11.6067 6.74633 12.2966C6.6868 12.9866 6.76373 13.6815 6.97276 14.3417C7.18178 15.0019 7.51879 15.6145 7.96455 16.1444C8.41032 16.6744 8.95609 17.1113 9.57073 17.4304C10.1854 17.7494 10.8568 17.9443 11.5468 18.0038C12.2367 18.0633 12.9316 17.9864 13.5918 17.7774C14.252 17.5683 14.8646 17.2313 15.3945 16.7856C15.9245 16.3398 16.3615 15.794 16.6805 15.1794C16.9995 14.5648 17.1944 13.8933 17.2539 13.2034C17.3134 12.5134 17.2365 11.8185 17.0275 11.1583C16.8185 10.4981 16.4814 9.88554 16.0357 9.35559C15.5899 8.82563 15.0441 8.38866 14.4295 8.06963C13.8149 7.75059 13.1434 7.55575 12.4535 7.49621ZM9.95568 6.2926C10.8037 6.02412 11.6963 5.92529 12.5824 6.00176C13.4686 6.07824 14.3311 6.32851 15.1206 6.73829C15.91 7.14807 16.6111 7.70933 17.1836 8.39004C17.7562 9.07075 18.189 9.85756 18.4575 10.7056C18.726 11.5536 18.8248 12.4461 18.7484 13.3323C18.6719 14.2185 18.4216 15.081 18.0118 15.8704C17.6021 16.6599 17.0408 17.3609 16.3601 17.9335C15.6794 18.506 14.8926 18.9389 14.0446 19.2074C13.1966 19.4759 12.304 19.5747 11.4178 19.4982C10.5316 19.4218 9.66916 19.1715 8.87969 18.7617C8.09022 18.3519 7.38919 17.7907 6.81663 17.11C6.24408 16.4293 5.8112 15.6424 5.54272 14.7944C5.27424 13.9464 5.17541 13.0539 5.25189 12.1677C5.32836 11.2815 5.57863 10.419 5.98841 9.62957C6.39819 8.8401 6.95946 8.13907 7.64016 7.56651C8.32087 6.99395 9.10768 6.56108 9.95568 6.2926Z",fill:"currentColor"})),xr=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.97866 4.02395L9.65065 4L9.4965 4.29052L9.49648 4.29056L9.47523 4.33065C9.46062 4.35824 9.43798 4.401 9.40584 4.46176C9.34156 4.58329 9.23926 4.77687 9.08704 5.06529L8.80708 5.59944C9.19018 5.71526 9.39605 5.79389 9.74817 5.9695L9.97893 5.53601C10.0803 5.34386 10.1596 5.19389 10.2201 5.07934C11.3156 5.33399 13.0072 6.50273 13.4557 8.74769L13.4568 8.75304L13.458 8.75836C13.4871 8.88927 13.5242 9.13388 13.5427 9.44423C12.3845 7.99811 11.1315 7.04964 10.0059 6.45337C9.3027 6.08089 8.64827 5.84533 8.0966 5.71192C7.5558 5.58114 7.08183 5.54087 6.74822 5.58827L6.49651 5.62404L6.3756 5.84769C5.65745 7.17603 5.4896 8.86197 5.80645 10.3451C6.12195 11.8218 6.94601 13.2057 8.32756 13.7897C8.35849 13.802 8.37824 13.811 8.39936 13.8206C8.4553 13.846 8.52081 13.8757 8.82872 13.9841C8.85946 13.8927 8.88532 13.8129 8.90887 13.7402L8.90892 13.74L8.90894 13.74C8.98959 13.4909 9.04309 13.3258 9.17225 13.07L8.72024 12.8608C7.7497 12.4505 7.06815 11.4238 6.79268 10.1344C6.53927 8.94825 6.6533 7.6316 7.13681 6.57966C7.31533 6.5877 7.55899 6.61947 7.85955 6.69216C8.327 6.8052 8.90266 7.01022 9.53379 7.34455C10.7936 8.01189 12.2708 9.19243 13.547 11.1778L13.5514 11.1846L13.556 11.1913C14.175 12.0896 14.6101 13.0813 14.7599 14.1375C14.7893 14.3444 14.8071 14.5419 14.8146 14.7304C12.6376 14.5151 11.0547 13.3182 10.5344 12.7392L10.0781 12.2315L9.72694 12.8168C9.59418 13.0381 9.32846 13.6373 9.17213 14.1664C9.13515 14.2916 9.1028 14.411 9.07445 14.5269C9.06751 14.5552 9.06081 14.5833 9.05434 14.6113C9.04519 14.6508 9.0365 14.69 9.02825 14.7288C8.95601 15.0688 8.91925 15.3765 8.89585 15.7057C8.87502 15.9987 8.86847 16.3131 8.88371 16.6371C8.88749 16.7173 8.8926 16.7982 8.89916 16.8795C8.90397 16.939 8.90955 16.9987 8.91597 17.0587C8.93408 17.2279 8.95882 17.3989 8.99132 17.5701C9.14301 18.369 9.46841 19.193 10.0992 19.8373L10.2586 20L10.486 19.988C11.1916 19.9509 12.1147 19.7646 12.9956 19.3449C13.1522 19.2703 13.3081 19.188 13.4614 19.0976C13.5291 19.0578 13.5962 19.0163 13.6628 18.9732C13.7968 18.8864 13.9285 18.7929 14.0566 18.6922C14.3035 18.4983 14.5375 18.2777 14.7498 18.0279C14.9137 17.835 15.0643 17.625 15.1978 17.3969C15.273 17.2684 15.3427 17.1343 15.4061 16.9945C15.4945 16.7996 15.5707 16.5939 15.633 16.3773C15.7293 16.0424 15.792 15.6827 15.8161 15.2975C15.8415 14.8913 15.824 14.4579 15.7584 13.9959C15.5923 12.8249 15.131 11.746 14.4996 10.7871C14.5889 10.139 14.5707 9.52322 14.5242 9.07402C14.8336 9.04569 15.2464 9.04303 15.6606 9.10662L15.6607 9.10664C15.7724 9.12379 15.8842 9.14576 15.994 9.17334C16.5943 9.32406 17.0302 9.61034 17.2015 10.0761C17.3599 10.5067 17.3627 10.8375 17.3006 11.0925C17.2379 11.3506 17.0992 11.5692 16.9161 11.7566C16.5375 12.1438 15.9726 12.3508 15.7593 12.4246C15.9247 12.8053 15.9841 13.0136 16.0604 13.376C16.3105 13.2895 17.0891 13.0221 17.6372 12.4616C17.9173 12.1751 18.166 11.802 18.2806 11.3308C18.3959 10.8566 18.3661 10.3209 18.148 9.72798C17.9547 9.20239 17.6018 8.83748 17.195 8.58634C17.2579 8.57772 17.32 8.57943 17.3707 8.58491C17.3983 8.58789 17.4197 8.59169 17.4323 8.59423C17.4359 8.59498 17.4388 8.5956 17.4407 8.59603L17.4419 8.5963L17.4429 8.59653C17.7096 8.6673 17.9842 8.5103 18.058 8.24369C18.1324 7.97531 17.975 7.69749 17.7066 7.62317L17.7062 7.62303L17.7057 7.6229L17.7046 7.6226L17.7022 7.62194C17.7004 7.62148 17.6984 7.62096 17.6962 7.62038C17.6918 7.61924 17.6865 7.61788 17.6802 7.61637C17.6678 7.61336 17.6517 7.6097 17.6323 7.60578C17.5938 7.59799 17.5416 7.58902 17.4791 7.58226C17.3562 7.56898 17.1819 7.56296 16.9884 7.59832C16.8299 7.62728 16.6628 7.68418 16.505 7.77981C16.5588 7.5832 16.6854 7.36332 16.9971 7.14164C17.2241 6.98025 17.2772 6.66544 17.1158 6.43849C16.9544 6.21153 16.6396 6.15838 16.4127 6.31977C15.8962 6.68702 15.6231 7.1235 15.5147 7.58233C15.4754 7.74897 15.4594 7.91231 15.4578 8.06757C15.0322 8.03118 14.6349 8.04604 14.3322 8.07991L14.3294 8.06987C13.5954 5.46418 11.395 4.1274 9.97866 4.02395ZM10.3247 13.9221C11.2076 14.6497 12.7644 15.5498 14.7485 15.7373C14.7254 15.8628 14.697 15.9831 14.6638 16.0986C14.6428 16.1715 14.6199 16.2425 14.5952 16.3118C14.2855 16.319 13.9159 16.2695 13.5068 16.1686C12.9772 16.038 12.4168 15.8302 11.8948 15.5922C11.3729 15.3541 10.9015 15.0914 10.5497 14.8569C10.3733 14.7393 10.2345 14.6339 10.1368 14.5471C10.1298 14.5409 10.1232 14.5349 10.117 14.5292C10.1242 14.5039 10.1316 14.4782 10.1393 14.4522C10.1918 14.2745 10.2582 14.0899 10.3247 13.9221ZM13.2654 17.1478C13.5253 17.2119 13.7893 17.2625 14.0495 17.292C14.0271 17.3201 14.0044 17.3477 13.9813 17.3749C13.8527 17.5263 13.7124 17.6655 13.5629 17.7933C12.9597 17.7783 12.1973 17.5471 11.4631 17.2251C10.8028 16.9355 10.2255 16.5995 9.88431 16.3578C9.88198 16.1582 9.88857 15.9633 9.9018 15.7772C9.90503 15.7318 9.90851 15.6872 9.9123 15.6433C9.93794 15.6609 9.96398 15.6785 9.99039 15.6961C10.3929 15.9644 10.9124 16.2526 11.4763 16.5098C12.0402 16.7669 12.6607 16.9986 13.2654 17.1478ZM11.0581 18.1487C11.4253 18.3097 11.8251 18.4618 12.2309 18.5787C11.6829 18.7963 11.1308 18.9155 10.6684 18.9626C10.3825 18.6001 10.1614 18.1351 10.0386 17.6407C10.3475 17.8141 10.695 17.9895 11.0581 18.1487ZM16.3968 10.4035C16.3968 10.6085 16.2106 10.5606 15.9949 10.5051C15.8855 10.4769 15.7685 10.4468 15.6645 10.4468C15.5618 10.4468 15.4639 10.4709 15.3789 10.4919C15.2078 10.5342 15.089 10.5635 15.089 10.357C15.089 10.0479 15.4674 9.86373 15.7765 9.86373C16.0857 9.86373 16.3968 10.0943 16.3968 10.4035Z",fill:"currentColor"}));function al(e,t){const r=D.useRef(null),n=function(){r.current&&clearTimeout(r.current)};return{start:function(){n(),r.current=setTimeout(t,e)},stop:n}}function wf(e){const[t,r]=D.useState(!1),n=al(e.debounce??0,()=>r(!0));return D.useLayoutEffect(()=>(e.debounce&&!t&&n.start(),()=>n.stop()),[e.debounce,t,n]),e.debounce&&!t?null:o("div",{className:"flex h-full w-full flex-col items-center justify-center",children:o(xr,{size:120,className:"animate-pulse text-gray-400"})})}const oa=D.forwardRef(function(t,r){const{className:n="",size:a="md",variant:i="none",active:s=!1,disabled:u,tabIndex:l,href:f,target:h,...m}=t,g=D.useMemo(function(){return i in X1?X1[i]:(console.error("Wrong button variant"),{className:""})},[i]),p=D.useMemo(function(){return a in Q1?Q1[a]:(console.error("Wrong button size"),{className:""})},[a]),w=Jr(),y={ref:en(r,w.ref),className:fe("relative box-border flex flex-row items-center justify-center gap-2 rounded-xs leading-none transition-shadow data-[disabled=true]:cursor-not-allowed data-[disabled=true]:text-gray-600",g.className,p.className,n),"data-size":a,"data-variant":i,"data-toggled":s?"true":"false","data-disabled":u?"true":"false",disabled:u,tabIndex:u?-1:l,target:h,...m,...w.props()};return f?D.createElement(Ae,{...y,variant:"none",href:f,target:h}):D.createElement("button",y)}),sa=e=>D.forwardRef(function(r,n){return o(oa,{ref:n,variant:e,...r})}),_r=sa("text"),St=sa("outline"),Ne=sa("primary"),ns=sa("secondary"),as=sa("tertiary"),Cr=sa("accent"),Y1=sa("danger"),il=sa("danger2"),$i=sa("dangerlink"),Q1={none:{className:""},sm:{className:"py-[6px] px-[14px] leading-4 min-h-[32px] text-md [&>.icon]:my-[-2px] [&>.icon:first-child]:ml-[-6px]"},md:{className:"py-[10px] px-[14px] min-h-[36px] text-md [&>.icon]:my-[-4px] [&>.icon:first-child]:ml-[-6px]"},lg:{className:"py-3 px-4 text-lg min-h-[40px] [&>.icon]:my-[-4px] [&>.icon:first-child]:ml-[-6px]"},xl:{className:"py-4 px-5 text-xl leading-5 min-h-[55px] rounded-sm"}},X1={none:{className:""},text:{className:"text-primary hover:bg-gray-100 focus:ring-2 focus:ring-primary data-[disabled=true]:hover:bg-transparent data-[disabled=true]:focus:ring-0"},outline:{className:"border border-primary bg-white text-primary hover:bg-gray-100 focus:ring-1 focus:ring-primary data-[disabled=true]:border-gray-600 data-[disabled=true]:hover:bg-white data-[disabled=true]:focus:ring-0"},primary:{className:"bg-primary text-white hover:bg-primary-dark focus:ring-2 focus:ring-primary focus:ring-offset-2 data-[toggled=true]:bg-primary-dark data-[disabled=true]:bg-gray-100 data-[disabled=true]:hover:bg-gray-100 data-[disabled=true]:focus:ring-0"},secondary:{className:"bg-gray-900 text-white hover:bg-gray-800 focus:ring-2 focus:ring-gray-900 focus:ring-offset-2 data-[toggled=true]:bg-gray-800 data-[disabled=true]:bg-gray-100 data-[disabled=true]:hover:bg-gray-100 data-[disabled=true]:focus:ring-0"},tertiary:{className:"bg-tertiary text-white data-[disabled=false]:hover:bg-tertiary-dark focus:ring-2 focus:ring-tertiary focus:ring-offset-2 data-[toggled=true]:bg-tertiary-dark data-[disabled=true]:bg-tertiary-dark data-[disabled=true]:bg-opacity-60 data-[disabled=true]:focus data-[disabled=true]:focus:ring-0"},accent:{className:"bg-accent text-white hover:bg-accent-dark focus:ring-2 focus:ring-accent focus:ring-offset-2 data-[toggled=true]:bg-accent-dark data-[disabled=true]:bg-gray-100 data-[disabled=true]:hover:bg-gray-100 data-[disabled=true]:focus:ring-0"},danger:{className:"bg-alert-red text-white ring-offset-2 ring-alert-red hover:bg-[#A20D0D] focus:ring data-[disabled=true]:bg-gray-100 data-[disabled=true]:text-gray-600"},danger2:{className:"bg-white text-alert-red border border-alert-red ring-alert-red enabled:hover:bg-light-red focus:ring-1 disabled:text-gray-600 disabled:border-gray-600"},dangerlink:{className:"bg-none text-alert-red underline ring-offset-2 ring-alert-red hover:bg-alert-red hover:text-white hover:no-underline focus:ring focus:text-white focus:bg-alert-red focus:no-underline data-[disabled=true]:bg-transparent data-[disabled=true]:hover:bg-transparent data-[disabled=true]:hover:underline"}},ni=me(()=>o("path",{d:"M5.40456 5L19 19M5 19L18.5954 5",stroke:"currentColor",strokeWidth:"1.5"}));function ua(e){const{open:t,outsideDismiss:r,root:n,control:a,onOpenChange:i,...s}=e,{context:u,refs:l}=Ri({open:t,onOpenChange:i,strategy:"absolute"}),{getReferenceProps:f,getFloatingProps:h}=Ui([hf(u),tl(u),Bi(u,{outsidePress:r,outsidePressEvent:"click"})]);function m(){return i?.(!1)}return b(ie,{children:[a?.(l.setReference,f()),t&&o(Fi,{root:n,children:o(Qx,{className:"!absolute z-modals flex flex-col items-center justify-center bg-gray-medium-overlay",lockScroll:!0,children:o(Xo,{context:u,children:o(yf,{...s,onRequestClose:m,floatingRef:l.setFloating,floatingProps:h()})})})})]})}function yf({title:e,children:t,showClose:r,className:n,floatingRef:a,floatingProps:i,compact:s,noPadding:u,onRequestClose:l}){const f=D.useId();return b("section",{ref:a,className:fe("relative flex flex-col items-stretch gap-4 overflow-auto rounded-lg bg-white !shadow-lg shadow-gray-dark data-[padding=true]:p-16 data-[compact=true]:px-12 data-[compact=true]:py-10",n),"aria-labelledby":f,"data-compact":s,"data-padding":!u,...i,children:[e&&o("h1",{id:f,className:"text-center text-3xl leading-10",children:e}),o("div",{className:"flex flex-col items-stretch gap-6",children:t}),r&&o("button",{className:"absolute right-5 top-5 appearance-none rounded-md ring-primary focus-visible:ring z-50",onClick:l,"aria-label":c.__("Close","wp-rss-aggregator"),children:o(ni,{size:24})})]})}let f8=0;function Oe(e,t){const r=`atom${++f8}`,n={toString:()=>r};return typeof e=="function"?n.read=e:(n.init=e,n.read=a=>a(n),n.write=(a,i,s)=>i(n,typeof s=="function"?s(a(n)):s)),t&&(n.write=t),n}const J1=e=>"init"in e,em=e=>!!e.write,ol=new WeakMap,g8=(e,t)=>{ol.set(e,t),e.catch(()=>{}).finally(()=>ol.delete(e))},tm=(e,t)=>{const r=ol.get(e);r&&(ol.delete(e),r(t))},rm=(e,t)=>{e.status="fulfilled",e.value=t},nm=(e,t)=>{e.status="rejected",e.reason=t},h8=e=>typeof e?.then=="function",sl=(e,t)=>"v"in e&&"v"in t&&Object.is(e.v,t.v),am=(e,t)=>"e"in e&&"e"in t&&Object.is(e.e,t.e),is=e=>"v"in e&&e.v instanceof Promise,p8=(e,t)=>"v"in e&&"v"in t&&e.v.orig&&e.v.orig===t.v.orig,ul=e=>{if("e"in e)throw e.e;return e.v},m8=()=>{const e=new WeakMap,t=new WeakMap,r=new Map;let n,a;const i=M=>e.get(M),s=(M,F)=>{const U=e.get(M);if(e.set(M,F),r.has(M)||r.set(M,U),U&&is(U)){const k="v"in F?F.v instanceof Promise?F.v:Promise.resolve(F.v):Promise.reject(F.e);tm(U.v,k)}},u=(M,F,U)=>{const k=new Map;let C=!1;U.forEach((A,I)=>{!A&&I===M&&(A=F),A&&(k.set(I,A),F.d.get(I)!==A&&(C=!0))}),(C||F.d.size!==k.size)&&(F.d=k)},l=(M,F,U)=>{const k=i(M),C={d:k?.d||new Map,v:F};if(U&&u(M,C,U),k&&sl(k,C)&&k.d===C.d)return k;if(k&&is(k)&&is(C)&&p8(k,C)){if(k.d===C.d)return k;C.v=k.v}return s(M,C),C},f=(M,F,U,k)=>{if(h8(F)){let C;const A=new Promise((I,T)=>{let V=!1;F.then(P=>{if(!V){V=!0;const z=i(M),Z=l(M,A,U);rm(A,P),I(P),t.has(M)&&z?.d!==Z.d&&j(M,Z,z?.d)}},P=>{if(!V){V=!0;const z=i(M),Z=l(M,A,U);nm(A,P),T(P),t.has(M)&&z?.d!==Z.d&&j(M,Z,z?.d)}}),C=P=>{V||(V=!0,P.then(z=>rm(A,z),z=>nm(A,z)),I(P))}});return A.orig=F,A.status="pending",g8(A,I=>{I&&C(I),k?.()}),l(M,A,U)}return l(M,F,U)},h=(M,F,U)=>{const k=i(M),C={d:k?.d||new Map,e:F};return U&&u(M,C,U),k&&am(k,C)&&k.d===C.d?k:(s(M,C),C)},m=(M,F)=>{const U=i(M);if(!F&&U&&(t.has(M)||Array.from(U.d).every(([P,z])=>P===M||m(P)===z)))return U;const k=new Map;let C=!0;const A=P=>{if(P===M){const Z=i(P);if(Z)return k.set(P,Z),ul(Z);if(J1(P))return k.set(P,void 0),P.init;throw new Error("no atom init")}const z=m(P);return k.set(P,z),ul(z)};let I,T;const V={get signal(){return I||(I=new AbortController),I.signal},get setSelf(){return!T&&em(M)&&(T=(...P)=>{if(!C)return H(M,...P)}),T}};try{const P=M.read(A,V);return f(M,P,k,()=>I?.abort())}catch(P){return h(M,P,k)}finally{C=!1}},g=M=>ul(m(M)),p=M=>{let F=t.get(M);return F||(F=L(M)),F},w=(M,F)=>!F.l.size&&(!F.t.size||F.t.size===1&&F.t.has(M)),y=M=>{const F=t.get(M);F&&w(M,F)&&O(M)},_=M=>{const F=new Map,U=new WeakMap,k=I=>{var T;const V=new Set((T=t.get(I))==null?void 0:T.t);return r.forEach((P,z)=>{var Z;(Z=i(z))!=null&&Z.d.has(I)&&V.add(z)}),V},C=I=>{k(I).forEach(T=>{T!==I&&(F.set(T,(F.get(T)||new Set).add(I)),U.set(T,(U.get(T)||0)+1),C(T))})};C(M);const A=I=>{k(I).forEach(T=>{var V;if(T!==I){let P=U.get(T);if(P&&U.set(T,--P),!P){let z=!!((V=F.get(T))!=null&&V.size);if(z){const Z=i(T),re=m(T,!0);z=!Z||!sl(Z,re)}z||F.forEach(Z=>Z.delete(T))}A(T)}})};A(M)},S=(M,...F)=>{let U=!0;const k=I=>ul(m(I)),C=(I,...T)=>{let V;if(I===M){if(!J1(I))throw new Error("atom not writable");const P=i(I),z=f(I,T[0]);(!P||!sl(P,z))&&_(I)}else V=S(I,...T);if(!U){const P=R()}return V},A=M.write(k,C,...F);return U=!1,A},H=(M,...F)=>{const U=S(M,...F),k=R();return U},L=(M,F,U)=>{var k;const C=U||[];(k=i(M))==null||k.d.forEach((I,T)=>{const V=t.get(T);V?V.t.add(M):T!==M&&L(T,M,C)}),m(M);const A={t:new Set(F&&[F]),l:new Set};if(t.set(M,A),em(M)&&M.onMount){const{onMount:I}=M;C.push(()=>{const T=I((...V)=>H(M,...V));T&&(A.u=T)})}return U||C.forEach(I=>I()),A},O=M=>{var F;const U=(F=t.get(M))==null?void 0:F.u;U&&U(),t.delete(M);const k=i(M);k&&(is(k)&&tm(k.v),k.d.forEach((C,A)=>{if(A!==M){const I=t.get(A);I&&(I.t.delete(M),w(A,I)&&O(A))}}))},j=(M,F,U)=>{const k=new Set(F.d.keys());U?.forEach((C,A)=>{if(k.has(A)){k.delete(A);return}const I=t.get(A);I&&(I.t.delete(M),w(A,I)&&O(A))}),k.forEach(C=>{const A=t.get(C);A?A.t.add(M):t.has(M)&&L(C,M)})},R=()=>{let M;for(;r.size;){const F=Array.from(r);r.clear(),F.forEach(([U,k])=>{const C=i(U);if(C){const A=t.get(U);A&&C.d!==k?.d&&j(U,C,k?.d),A&&!(k&&!is(k)&&(sl(k,C)||am(k,C)))&&A.l.forEach(I=>I())}})}};return{get:g,set:H,sub:(M,F)=>{const U=p(M),k=R(),C=U.l;return C.add(F),()=>{C.delete(F),y(M)}}}};let xf;const v8=()=>(xf||(xf=m8()),xf),b8=D.createContext(void 0),im=e=>{const t=D.useContext(b8);return e?.store||t||v8()},w8=e=>typeof e?.then=="function",y8=D.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)});function x8(e,t){const r=im(t),[[n,a,i],s]=D.useReducer(f=>{const h=r.get(e);return Object.is(f[0],h)&&f[1]===r&&f[2]===e?f:[h,r,e]},void 0,()=>[r.get(e),r,e]);let u=n;(a!==r||i!==e)&&(s(),u=r.get(e));const l=t?.delay;return D.useEffect(()=>{const f=r.sub(e,()=>{if(typeof l=="number"){setTimeout(s,l);return}s()});return s(),f},[r,e,l]),D.useDebugValue(u),w8(u)?y8(u):u}function _8(e,t){const r=im(t);return D.useCallback((...a)=>r.set(e,...a),[r,e])}function ce(e,t){return[x8(e,t),_8(e,t)]}const om=Oe(!1),sm=Oe(void 0);function tn(){const[,e]=ce(sm),[,t]=ce(om);return r=>{e(r),t(!0)}}const C8=D.createContext({confirm:()=>{},cancel:()=>{}});function S8({open:e,title:t,children:r,yesBtnText:n=c.__("Yes","wp-rss-aggregator"),noBtnText:a=c.__("No","wp-rss-aggregator"),variant:i="primary",onConfirm:s,onCancel:u,onOpenChange:l}){function f(w){w===!1&&m()}function h(){l?.(!1),s?.()}function m(){l?.(!1),u?.()}const g={confirm:h,cancel:m},p=i==="danger"?"danger":"primary";return b(ua,{open:e,onOpenChange:f,className:"max-w-[420px]",outsideDismiss:!1,compact:!0,showClose:!0,children:[b("div",{children:[o("div",{className:"mb-2 text-center",children:o(xr,{size:64,className:"text-accent"})}),o("p",{className:"text-center text-2xl font-bold leading-8 text-primary",children:t})]}),o(C8.Provider,{value:g,children:o("div",{className:"text-center text-md text-gray-900",children:e&&r})}),b("div",{className:"mx-auto flex w-min flex-col-reverse items-stretch justify-end gap-2",children:[o(_r,{size:"lg",className:"whitespace-nowrap",onClick:m,children:a}),o(oa,{size:"lg",className:"whitespace-nowrap",variant:p,onClick:h,children:n})]})]})}function E8(){const[e,t]=ce(om),[r]=ce(sm);return o(S8,{...r,open:e,onOpenChange:t})}function ai(e){const{className:t,disabled:r,...n}=e;return o("label",{className:fe("inline-block cursor-pointer text-md font-semibold leading-4 text-gray-900",t),...n})}const os=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.25C9.92893 3.25 8.25 4.92893 8.25 7V10H7C6.44772 10 6 10.4477 6 11V19C6 19.5523 6.44772 20 7 20H17C17.5523 20 18 19.5523 18 19V11C18 10.4477 17.5523 10 17 10H15.75V7C15.75 4.92893 14.0711 3.25 12 3.25ZM14.25 10V7C14.25 5.75736 13.2426 4.75 12 4.75C10.7574 4.75 9.75 5.75736 9.75 7V10H14.25Z",fill:"currentColor"})),A8=D.forwardRef(function(e,t){return o("div",{ref:t,...e,children:b("div",{className:"relative flex h-2 w-2",children:[o("div",{className:"relative aspect-square h-full w-full rounded-full bg-accent opacity-75"}),o("div",{className:"absolute aspect-square h-full w-full animate-ping rounded-full bg-accent"})]})})}),W={Free:0,Basic:10,Plus:20,Pro:30,Elite:40},um={[W.Free]:c.__("Free","wp-rss-aggregator"),[W.Basic]:c.__("Basic","wp-rss-aggregator"),[W.Plus]:c.__("Plus","wp-rss-aggregator"),[W.Pro]:c.__("Pro","wp-rss-aggregator"),[W.Elite]:c.__("Elite","wp-rss-aggregator")};let lm=W.Free;Q.license&&Q.license.status==="valid"&&Q.premiumInstalled&&(lm=Q.license.tier);const D8=Oe(lm);function se(){let[e,t]=ce(D8);return Q.premiumInstalled||(e=W.Free),{current:e,name:um[e]??"",isPremium:function(){return Q.premiumInstalled&&e>W.Free},isAtLeast:function(r){return r>W.Free?Q.premiumInstalled&&e>=r:!0},isLowerThan:function(r){return r>W.Free?!Q.premiumInstalled||e<r:!1},set:t}}function k8(e){e.detail>1&&e.preventDefault()}const ll=D.createContext({});function Ln(e,t){const r=D.useContext(ll);return{id:e??r.id??void 0,disabled:t??r.disabled??void 0}}function ne(e){const t=D.useId(),r=se().isLowerThan(e.minTier??W.Free),n=e.disabled||r,a=D.useMemo(()=>({id:t,disabled:n}),[t,n]),i=D.useMemo(function(){return e.inline?{className:fe("flex justify-between items-center gap-4",e.reverse?"flex-row-reverse":"flex-row")}:{className:"flex flex-col gap-2"}},[e.inline,e.reverse]);return b("div",{className:i.className,children:[b("div",{className:"flex flex-row items-center justify-start gap-2 leading-none",children:[e.left,e.help&&o("span",{className:"inline-block align-top",children:o(lt,{content:e.help})}),b(ai,{htmlFor:t,onMouseDown:k8,onClick:e.onClick,disabled:n,children:[r&&e.padlock&&o(os,{className:"mr-1 align-text-bottom leading-4 text-accent",size:16}),e.label]}),e.pointer&&o(A8,{className:"inline-block"})]}),o(ll.Provider,{value:a,children:e.children})]})}function be({className:e,...t}){return o("table",{className:fe("w-full bg-white [&_thead_th:first-child]:pl-8 [&_thead_th:last-child]:pr-8 [&_tr_td:first-child]:pl-8 [&_tr_td:last-child]:pr-8 [&_thead_tr]:border-y-0 [&_tbody_tr:first-child]:border-y-0",e),...t})}be.Header=function({className:t,children:r,...n}){return o("thead",{className:fe("shadow-[inset_0_-1px_1px_rgba(0,0,0,0.1)] font-semibold",t),...n,children:o(be.Row,{children:r})})},be.Body=function({className:t,...r}){return o("tbody",{className:fe("",t),...r})},be.Footer=function({className:t,children:r,...n}){return o("tfoot",{className:fe("font-semibold",t),...n,children:o(be.Row,{children:r})})},be.Row=function({className:t,hightlight:r=!1,...n}){return o("tr",{className:fe("border-y border-y-gray-200",r?"bg-light-blue":"",t),...n})},be.Cell=function({className:t,...r}){return o("td",{className:fe("px-[25px] py-3 text-left align-top text-md leading-5",t),...r})},be.HeaderCell=function({className:t,...r}){return o("th",{className:fe("leading-2 box-border h-14 px-[25px] text-left align-middle text-md",t),...r})},be.FooterCell=be.HeaderCell;const N8=me(()=>o("path",{d:"M9.75 10.25C9.75 9.00736 10.7574 8 12 8C13.2426 8 14.25 9.00736 14.25 10.25C14.25 11.4083 13.3748 12.3621 12.2496 12.4863C12.1124 12.5015 12 12.6119 12 12.75V14M12 15V16.5M20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12Z",stroke:"currentColor",strokeWidth:"1.5"})),ss=me(()=>b(ie,{children:[o("path",{d:"M13 7H11V13H13V7Z",fill:"currentColor"}),o("path",{d:"M13 15H11V17H13V15Z",fill:"currentColor"}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.13208 19.5538L12.0003 0.729553L22.8685 19.5538H1.13208ZM3.73016 18.0538H20.2704L12.0003 3.72955L3.73016 18.0538Z",fill:"currentColor"})]}));function cm(e,t=500){const r=D.useRef();return D.useCallback((...n)=>{clearTimeout(r.current),r.current=setTimeout(()=>e.apply(null,n),t)},[e,t])}const T8=Oe([]);function xn(){const[e,t]=ce(T8),r=D.useCallback(function(i){t(s=>s.filter(u=>u.id!==i))},[e,t]),n=cm(function(i){const s={id:i.id??Math.random().toString(36).substring(2,10),content:i.content??"",icon:i.icon,action:i.action};i.dismissible&&!i.action&&(s.action={label:D.createElement(ni,{size:16}),callback(){r(s.id)}}),t(u=>u.filter(l=>l.id!==s.id).concat(s)),i.ttl&&setTimeout(()=>r(s.id),i.ttl)},100),a=D.useCallback(function(i){i.id&&r(i.id),n(i)},[e,t,r]);return{instances:e,add:a,dismiss:r}}class ji{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const r={listener:t};return this.listeners.add(r),this.onSubscribe(),()=>{this.listeners.delete(r),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const us=typeof window>"u"||"Deno"in window;function rn(){}function H8(e,t){return typeof e=="function"?e(t):e}function _f(e){return typeof e=="number"&&e>=0&&e!==1/0}function dm(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ls(e,t,r){return cs(e)?typeof t=="function"?{...r,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function I8(e,t,r){return cs(e)?typeof t=="function"?{...r,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function Ma(e,t,r){return cs(e)?[{...t,queryKey:e},r]:[e||{},t]}function fm(e,t){const{type:r="all",exact:n,fetchStatus:a,predicate:i,queryKey:s,stale:u}=e;if(cs(s)){if(n){if(t.queryHash!==Cf(s,t.options))return!1}else if(!cl(t.queryKey,s))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||typeof a<"u"&&a!==t.state.fetchStatus||i&&!i(t))}function gm(e,t){const{exact:r,fetching:n,predicate:a,mutationKey:i}=e;if(cs(i)){if(!t.options.mutationKey)return!1;if(r){if(ii(t.options.mutationKey)!==ii(i))return!1}else if(!cl(t.options.mutationKey,i))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||a&&!a(t))}function Cf(e,t){return(t?.queryKeyHashFn||ii)(e)}function ii(e){return JSON.stringify(e,(t,r)=>Sf(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function cl(e,t){return hm(e,t)}function hm(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!hm(e[r],t[r])):!1}function pm(e,t){if(e===t)return e;const r=mm(e)&&mm(t);if(r||Sf(e)&&Sf(t)){const n=r?e.length:Object.keys(e).length,a=r?t:Object.keys(t),i=a.length,s=r?[]:{};let u=0;for(let l=0;l<i;l++){const f=r?l:a[l];s[f]=pm(e[f],t[f]),s[f]===e[f]&&u++}return n===i&&u===n?e:s}return t}function dl(e,t){if(e&&!t||t&&!e)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function mm(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Sf(e){if(!vm(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const r=t.prototype;return!(!vm(r)||!r.hasOwnProperty("isPrototypeOf"))}function vm(e){return Object.prototype.toString.call(e)==="[object Object]"}function cs(e){return Array.isArray(e)}function bm(e){return new Promise(t=>{setTimeout(t,e)})}function wm(e){bm(0).then(e)}function O8(){if(typeof AbortController=="function")return new AbortController}function Ef(e,t,r){return r.isDataEqual!=null&&r.isDataEqual(e,t)?e:typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?pm(e,t):t}class M8 extends ji{constructor(){super(),this.setup=t=>{if(!us&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),window.addEventListener("focus",r,!1),()=>{window.removeEventListener("visibilitychange",r),window.removeEventListener("focus",r)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var r;this.setup=t,(r=this.cleanup)==null||r.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const fl=new M8,ym=["online","offline"];class L8 extends ji{constructor(){super(),this.setup=t=>{if(!us&&window.addEventListener){const r=()=>t();return ym.forEach(n=>{window.addEventListener(n,r,!1)}),()=>{ym.forEach(n=>{window.removeEventListener(n,r)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var r;this.setup=t,(r=this.cleanup)==null||r.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setOnline(n):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const gl=new L8;function V8(e){return Math.min(1e3*2**e,3e4)}function hl(e){return(e??"online")==="online"?gl.isOnline():!0}class xm{constructor(t){this.revert=t?.revert,this.silent=t?.silent}}function pl(e){return e instanceof xm}function _m(e){let t=!1,r=0,n=!1,a,i,s;const u=new Promise((_,S)=>{i=_,s=S}),l=_=>{n||(p(new xm(_)),e.abort==null||e.abort())},f=()=>{t=!0},h=()=>{t=!1},m=()=>!fl.isFocused()||e.networkMode!=="always"&&!gl.isOnline(),g=_=>{n||(n=!0,e.onSuccess==null||e.onSuccess(_),a?.(),i(_))},p=_=>{n||(n=!0,e.onError==null||e.onError(_),a?.(),s(_))},w=()=>new Promise(_=>{a=S=>{const H=n||!m();return H&&_(S),H},e.onPause==null||e.onPause()}).then(()=>{a=void 0,n||e.onContinue==null||e.onContinue()}),y=()=>{if(n)return;let _;try{_=e.fn()}catch(S){_=Promise.reject(S)}Promise.resolve(_).then(g).catch(S=>{var H,L;if(n)return;const O=(H=e.retry)!=null?H:3,j=(L=e.retryDelay)!=null?L:V8,R=typeof j=="function"?j(r,S):j,K=O===!0||typeof O=="number"&&r<O||typeof O=="function"&&O(r,S);if(t||!K){p(S);return}r++,e.onFail==null||e.onFail(r,S),bm(R).then(()=>{if(m())return w()}).then(()=>{t?p(S):y()})})};return hl(e.networkMode)?y():w().then(y),{promise:u,cancel:l,continue:()=>a?.()?u:Promise.resolve(),cancelRetry:f,continueRetry:h}}const Af=console;function P8(){let e=[],t=0,r=h=>{h()},n=h=>{h()};const a=h=>{let m;t++;try{m=h()}finally{t--,t||u()}return m},i=h=>{t?e.push(h):wm(()=>{r(h)})},s=h=>(...m)=>{i(()=>{h(...m)})},u=()=>{const h=e;e=[],h.length&&wm(()=>{n(()=>{h.forEach(m=>{r(m)})})})};return{batch:a,batchCalls:s,schedule:i,setNotifyFunction:h=>{r=h},setBatchNotifyFunction:h=>{n=h}}}const Rt=P8();class Cm{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),_f(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(us?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class F8 extends Cm{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||Af,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||B8(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,r){const n=Ef(this.state.data,t,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:r?.updatedAt,manual:r?.manual}),n}setState(t,r){this.dispatch({type:"setState",state:t,setStateOptions:r})}cancel(t){var r;const n=this.promise;return(r=this.retryer)==null||r.cancel(t),n?n.then(rn).catch(rn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!dm(this.state.dataUpdatedAt,t)}onFocus(){var t;const r=this.observers.find(n=>n.shouldFetchOnWindowFocus());r&&r.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const r=this.observers.find(n=>n.shouldFetchOnReconnect());r&&r.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,r){var n,a;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&r!=null&&r.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return(i=this.retryer)==null||i.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(w=>w.options.queryFn);p&&this.setOptions(p.options)}const s=O8(),u={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>{if(s)return this.abortSignalConsumed=!0,s.signal}})};l(u);const f=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(u)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),h={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:f};if(l(h),(n=this.options.behavior)==null||n.onFetch(h),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((a=h.fetchOptions)==null?void 0:a.meta)){var m;this.dispatch({type:"fetch",meta:(m=h.fetchOptions)==null?void 0:m.meta})}const g=p=>{if(pl(p)&&p.silent||this.dispatch({type:"error",error:p}),!pl(p)){var w,y,_,S;(w=(y=this.cache.config).onError)==null||w.call(y,p,this),(_=(S=this.cache.config).onSettled)==null||_.call(S,this.state.data,p,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=_m({fn:h.fetchFn,abort:s?.abort.bind(s),onSuccess:p=>{var w,y,_,S;if(typeof p>"u"){g(new Error(this.queryHash+" data is undefined"));return}this.setData(p),(w=(y=this.cache.config).onSuccess)==null||w.call(y,p,this),(_=(S=this.cache.config).onSettled)==null||_.call(S,p,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:g,onFail:(p,w)=>{this.dispatch({type:"failed",failureCount:p,error:w})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const r=n=>{var a,i;switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(a=t.meta)!=null?a:null,fetchStatus:hl(this.options.networkMode)?"fetching":"paused",...!n.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:(i=t.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return pl(s)&&s.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...n,error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),Rt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function B8(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=typeof t<"u",n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"loading",fetchStatus:"idle"}}class R8 extends ji{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,r,n){var a;const i=r.queryKey,s=(a=r.queryHash)!=null?a:Cf(i,r);let u=this.get(s);return u||(u=new F8({cache:this,logger:t.getLogger(),queryKey:i,queryHash:s,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(u)),u}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const r=this.queriesMap[t.queryHash];r&&(t.destroy(),this.queries=this.queries.filter(n=>n!==t),r===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){Rt.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,r){const[n]=Ma(t,r);return typeof n.exact>"u"&&(n.exact=!0),this.queries.find(a=>fm(n,a))}findAll(t,r){const[n]=Ma(t,r);return Object.keys(n).length>0?this.queries.filter(a=>fm(n,a)):this.queries}notify(t){Rt.batch(()=>{this.listeners.forEach(({listener:r})=>{r(t)})})}onFocus(){Rt.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){Rt.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class U8 extends Cm{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||Af,this.observers=[],this.state=t.state||Sm(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(r=>r!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,r;return(t=(r=this.retryer)==null?void 0:r.continue())!=null?t:this.execute()}async execute(){const t=()=>{var K;return this.retryer=_m({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(M,F)=>{this.dispatch({type:"failed",failureCount:M,error:F})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(K=this.options.retry)!=null?K:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},r=this.state.status==="loading";try{var n,a,i,s,u,l,f,h;if(!r){var m,g,p,w;this.dispatch({type:"loading",variables:this.options.variables}),await((m=(g=this.mutationCache.config).onMutate)==null?void 0:m.call(g,this.state.variables,this));const M=await((p=(w=this.options).onMutate)==null?void 0:p.call(w,this.state.variables));M!==this.state.context&&this.dispatch({type:"loading",context:M,variables:this.state.variables})}const K=await t();return await((n=(a=this.mutationCache.config).onSuccess)==null?void 0:n.call(a,K,this.state.variables,this.state.context,this)),await((i=(s=this.options).onSuccess)==null?void 0:i.call(s,K,this.state.variables,this.state.context)),await((u=(l=this.mutationCache.config).onSettled)==null?void 0:u.call(l,K,null,this.state.variables,this.state.context,this)),await((f=(h=this.options).onSettled)==null?void 0:f.call(h,K,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:K}),K}catch(K){try{var y,_,S,H,L,O,j,R;throw await((y=(_=this.mutationCache.config).onError)==null?void 0:y.call(_,K,this.state.variables,this.state.context,this)),await((S=(H=this.options).onError)==null?void 0:S.call(H,K,this.state.variables,this.state.context)),await((L=(O=this.mutationCache.config).onSettled)==null?void 0:L.call(O,void 0,K,this.state.variables,this.state.context,this)),await((j=(R=this.options).onSettled)==null?void 0:j.call(R,void 0,K,this.state.variables,this.state.context)),K}finally{this.dispatch({type:"error",error:K})}}}dispatch(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"loading":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!hl(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...n,...t.state}}};this.state=r(this.state),Rt.batch(()=>{this.observers.forEach(n=>{n.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function Sm(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class K8 extends ji{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,r,n){const a=new U8({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(r),state:n,defaultOptions:r.mutationKey?t.getMutationDefaults(r.mutationKey):void 0});return this.add(a),a}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(r=>r!==t),this.notify({type:"removed",mutation:t})}clear(){Rt.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(r=>gm(t,r))}findAll(t){return this.mutations.filter(r=>gm(t,r))}notify(t){Rt.batch(()=>{this.listeners.forEach(({listener:r})=>{r(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const r=this.mutations.filter(n=>n.state.isPaused);return Rt.batch(()=>r.reduce((n,a)=>n.then(()=>a.continue().catch(rn)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function z8(){return{onFetch:e=>{e.fetchFn=()=>{var t,r,n,a,i,s;const u=(t=e.fetchOptions)==null||(r=t.meta)==null?void 0:r.refetchPage,l=(n=e.fetchOptions)==null||(a=n.meta)==null?void 0:a.fetchMore,f=l?.pageParam,h=l?.direction==="forward",m=l?.direction==="backward",g=((i=e.state.data)==null?void 0:i.pages)||[],p=((s=e.state.data)==null?void 0:s.pageParams)||[];let w=p,y=!1;const _=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>{var K;if((K=e.signal)!=null&&K.aborted)y=!0;else{var M;(M=e.signal)==null||M.addEventListener("abort",()=>{y=!0})}return e.signal}})},S=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),H=(R,K,M,F)=>(w=F?[K,...w]:[...w,K],F?[M,...R]:[...R,M]),L=(R,K,M,F)=>{if(y)return Promise.reject("Cancelled");if(typeof M>"u"&&!K&&R.length)return Promise.resolve(R);const U={queryKey:e.queryKey,pageParam:M,meta:e.options.meta};_(U);const k=S(U);return Promise.resolve(k).then(A=>H(R,M,A,F))};let O;if(!g.length)O=L([]);else if(h){const R=typeof f<"u",K=R?f:Em(e.options,g);O=L(g,R,K)}else if(m){const R=typeof f<"u",K=R?f:$8(e.options,g);O=L(g,R,K,!0)}else{w=[];const R=typeof e.options.getNextPageParam>"u";O=(u&&g[0]?u(g[0],0,g):!0)?L([],R,p[0]):Promise.resolve(H([],p[0],g[0]));for(let M=1;M<g.length;M++)O=O.then(F=>{if(u&&g[M]?u(g[M],M,g):!0){const k=R?p[M]:Em(e.options,F);return L(F,R,k)}return Promise.resolve(H(F,p[M],g[M]))})}return O.then(R=>({pages:R,pageParams:w}))}}}}function Em(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function $8(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class j8{constructor(t={}){this.queryCache=t.queryCache||new R8,this.mutationCache=t.mutationCache||new K8,this.logger=t.logger||Af,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=fl.subscribe(()=>{fl.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=gl.subscribe(()=>{gl.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,r;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(r=this.unsubscribeOnline)==null||r.call(this),this.unsubscribeOnline=void 0)}isFetching(t,r){const[n]=Ma(t,r);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,r){var n;return(n=this.queryCache.find(t,r))==null?void 0:n.state.data}ensureQueryData(t,r,n){const a=ls(t,r,n),i=this.getQueryData(a.queryKey);return i?Promise.resolve(i):this.fetchQuery(a)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:r,state:n})=>{const a=n.data;return[r,a]})}setQueryData(t,r,n){const a=this.queryCache.find(t),i=a?.state.data,s=H8(r,i);if(typeof s>"u")return;const u=ls(t),l=this.defaultQueryOptions(u);return this.queryCache.build(this,l).setData(s,{...n,manual:!0})}setQueriesData(t,r,n){return Rt.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:a})=>[a,this.setQueryData(a,r,n)]))}getQueryState(t,r){var n;return(n=this.queryCache.find(t,r))==null?void 0:n.state}removeQueries(t,r){const[n]=Ma(t,r),a=this.queryCache;Rt.batch(()=>{a.findAll(n).forEach(i=>{a.remove(i)})})}resetQueries(t,r,n){const[a,i]=Ma(t,r,n),s=this.queryCache,u={type:"active",...a};return Rt.batch(()=>(s.findAll(a).forEach(l=>{l.reset()}),this.refetchQueries(u,i)))}cancelQueries(t,r,n){const[a,i={}]=Ma(t,r,n);typeof i.revert>"u"&&(i.revert=!0);const s=Rt.batch(()=>this.queryCache.findAll(a).map(u=>u.cancel(i)));return Promise.all(s).then(rn).catch(rn)}invalidateQueries(t,r,n){const[a,i]=Ma(t,r,n);return Rt.batch(()=>{var s,u;if(this.queryCache.findAll(a).forEach(f=>{f.invalidate()}),a.refetchType==="none")return Promise.resolve();const l={...a,type:(s=(u=a.refetchType)!=null?u:a.type)!=null?s:"active"};return this.refetchQueries(l,i)})}refetchQueries(t,r,n){const[a,i]=Ma(t,r,n),s=Rt.batch(()=>this.queryCache.findAll(a).filter(l=>!l.isDisabled()).map(l=>{var f;return l.fetch(void 0,{...i,cancelRefetch:(f=i?.cancelRefetch)!=null?f:!0,meta:{refetchPage:a.refetchPage}})}));let u=Promise.all(s).then(rn);return i!=null&&i.throwOnError||(u=u.catch(rn)),u}fetchQuery(t,r,n){const a=ls(t,r,n),i=this.defaultQueryOptions(a);typeof i.retry>"u"&&(i.retry=!1);const s=this.queryCache.build(this,i);return s.isStaleByTime(i.staleTime)?s.fetch(i):Promise.resolve(s.state.data)}prefetchQuery(t,r,n){return this.fetchQuery(t,r,n).then(rn).catch(rn)}fetchInfiniteQuery(t,r,n){const a=ls(t,r,n);return a.behavior=z8(),this.fetchQuery(a)}prefetchInfiniteQuery(t,r,n){return this.fetchInfiniteQuery(t,r,n).then(rn).catch(rn)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,r){const n=this.queryDefaults.find(a=>ii(t)===ii(a.queryKey));n?n.defaultOptions=r:this.queryDefaults.push({queryKey:t,defaultOptions:r})}getQueryDefaults(t){if(!t)return;const r=this.queryDefaults.find(n=>cl(t,n.queryKey));return r?.defaultOptions}setMutationDefaults(t,r){const n=this.mutationDefaults.find(a=>ii(t)===ii(a.mutationKey));n?n.defaultOptions=r:this.mutationDefaults.push({mutationKey:t,defaultOptions:r})}getMutationDefaults(t){if(!t)return;const r=this.mutationDefaults.find(n=>cl(t,n.mutationKey));return r?.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const r={...this.defaultOptions.queries,...this.getQueryDefaults(t?.queryKey),...t,_defaulted:!0};return!r.queryHash&&r.queryKey&&(r.queryHash=Cf(r.queryKey,r)),typeof r.refetchOnReconnect>"u"&&(r.refetchOnReconnect=r.networkMode!=="always"),typeof r.useErrorBoundary>"u"&&(r.useErrorBoundary=!!r.suspense),r}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t?.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class q8 extends ji{constructor(t,r){super(),this.client=t,this.options=r,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(r)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),Am(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Df(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Df(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,r){const n=this.options,a=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),dl(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const i=this.hasListeners();i&&Dm(this.currentQuery,a,this.options,n)&&this.executeFetch(),this.updateResult(r),i&&(this.currentQuery!==a||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();const s=this.computeRefetchInterval();i&&(this.currentQuery!==a||this.options.enabled!==n.enabled||s!==this.currentRefetchInterval)&&this.updateRefetchInterval(s)}getOptimisticResult(t){const r=this.client.getQueryCache().build(this.client,t),n=this.createResult(r,t);return G8(this,n,t)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(t){const r={};return Object.keys(t).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),t[n])})}),r}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...r}={}){return this.fetch({...r,meta:{refetchPage:t}})}fetchOptimistic(t){const r=this.client.defaultQueryOptions(t),n=this.client.getQueryCache().build(this.client,r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(t){var r;return this.executeFetch({...t,cancelRefetch:(r=t.cancelRefetch)!=null?r:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let r=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(rn)),r}updateStaleTimeout(){if(this.clearStaleTimeout(),us||this.currentResult.isStale||!_f(this.options.staleTime))return;const r=dm(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},r)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(us||this.options.enabled===!1||!_f(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||fl.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,r){const n=this.currentQuery,a=this.options,i=this.currentResult,s=this.currentResultState,u=this.currentResultOptions,l=t!==n,f=l?t.state:this.currentQueryInitialState,h=l?this.currentResult:this.previousQueryResult,{state:m}=t;let{dataUpdatedAt:g,error:p,errorUpdatedAt:w,fetchStatus:y,status:_}=m,S=!1,H=!1,L;if(r._optimisticResults){const M=this.hasListeners(),F=!M&&Am(t,r),U=M&&Dm(t,n,r,a);(F||U)&&(y=hl(t.options.networkMode)?"fetching":"paused",g||(_="loading")),r._optimisticResults==="isRestoring"&&(y="idle")}if(r.keepPreviousData&&!m.dataUpdatedAt&&h!=null&&h.isSuccess&&_!=="error")L=h.data,g=h.dataUpdatedAt,_=h.status,S=!0;else if(r.select&&typeof m.data<"u")if(i&&m.data===s?.data&&r.select===this.selectFn)L=this.selectResult;else try{this.selectFn=r.select,L=r.select(m.data),L=Ef(i?.data,L,r),this.selectResult=L,this.selectError=null}catch(M){this.selectError=M}else L=m.data;if(typeof r.placeholderData<"u"&&typeof L>"u"&&_==="loading"){let M;if(i!=null&&i.isPlaceholderData&&r.placeholderData===u?.placeholderData)M=i.data;else if(M=typeof r.placeholderData=="function"?r.placeholderData():r.placeholderData,r.select&&typeof M<"u")try{M=r.select(M),this.selectError=null}catch(F){this.selectError=F}typeof M<"u"&&(_="success",L=Ef(i?.data,M,r),H=!0)}this.selectError&&(p=this.selectError,L=this.selectResult,w=Date.now(),_="error");const O=y==="fetching",j=_==="loading",R=_==="error";return{status:_,fetchStatus:y,isLoading:j,isSuccess:_==="success",isError:R,isInitialLoading:j&&O,data:L,dataUpdatedAt:g,error:p,errorUpdatedAt:w,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>f.dataUpdateCount||m.errorUpdateCount>f.errorUpdateCount,isFetching:O,isRefetching:O&&!j,isLoadingError:R&&m.dataUpdatedAt===0,isPaused:y==="paused",isPlaceholderData:H,isPreviousData:S,isRefetchError:R&&m.dataUpdatedAt!==0,isStale:kf(t,r),refetch:this.refetch,remove:this.remove}}updateResult(t){const r=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,dl(n,r))return;this.currentResult=n;const a={cache:!0},i=()=>{if(!r)return!0;const{notifyOnChangeProps:s}=this.options,u=typeof s=="function"?s():s;if(u==="all"||!u&&!this.trackedProps.size)return!0;const l=new Set(u??this.trackedProps);return this.options.useErrorBoundary&&l.add("error"),Object.keys(this.currentResult).some(f=>{const h=f;return this.currentResult[h]!==r[h]&&l.has(h)})};t?.listeners!==!1&&i()&&(a.listeners=!0),this.notify({...a,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const r=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(r?.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const r={};t.type==="success"?r.onSuccess=!t.manual:t.type==="error"&&!pl(t.error)&&(r.onError=!0),this.updateResult(r),this.hasListeners()&&this.updateTimers()}notify(t){Rt.batch(()=>{if(t.onSuccess){var r,n,a,i;(r=(n=this.options).onSuccess)==null||r.call(n,this.currentResult.data),(a=(i=this.options).onSettled)==null||a.call(i,this.currentResult.data,null)}else if(t.onError){var s,u,l,f;(s=(u=this.options).onError)==null||s.call(u,this.currentResult.error),(l=(f=this.options).onSettled)==null||l.call(f,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:h})=>{h(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function W8(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Am(e,t){return W8(e,t)||e.state.dataUpdatedAt>0&&Df(e,t,t.refetchOnMount)}function Df(e,t,r){if(t.enabled!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&kf(e,t)}return!1}function Dm(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&kf(e,r)}function kf(e,t){return e.isStaleByTime(t.staleTime)}function G8(e,t,r){return r.keepPreviousData?!1:r.placeholderData!==void 0?t.isPlaceholderData:!dl(e.getCurrentResult(),t)}let Z8=class extends ji{constructor(t,r){super(),this.client=t,this.setOptions(r),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var r;const n=this.options;this.options=this.client.defaultMutationOptions(t),dl(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(r=this.currentMutation)==null||r.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.currentMutation)==null||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();const r={listeners:!0};t.type==="success"?r.onSuccess=!0:t.type==="error"&&(r.onError=!0),this.notify(r)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,r){return this.mutateOptions=r,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof t<"u"?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const t=this.currentMutation?this.currentMutation.state:Sm(),r={...t,isLoading:t.status==="loading",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=r}notify(t){Rt.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(t.onSuccess){var r,n,a,i;(r=(n=this.mutateOptions).onSuccess)==null||r.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(a=(i=this.mutateOptions).onSettled)==null||a.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(t.onError){var s,u,l,f;(s=(u=this.mutateOptions).onError)==null||s.call(u,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(l=(f=this.mutateOptions).onSettled)==null||l.call(f,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}t.listeners&&this.listeners.forEach(({listener:h})=>{h(this.currentResult)})})}};var km={exports:{}},Nm={};/**
 * @license React
 * use-sync-external-store-shim.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var qi=D;function Y8(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Q8=typeof Object.is=="function"?Object.is:Y8,X8=qi.useState,J8=qi.useEffect,e_=qi.useLayoutEffect,t_=qi.useDebugValue;function r_(e,t){var r=t(),n=X8({inst:{value:r,getSnapshot:t}}),a=n[0].inst,i=n[1];return e_(function(){a.value=r,a.getSnapshot=t,Nf(a)&&i({inst:a})},[e,r,t]),J8(function(){return Nf(a)&&i({inst:a}),e(function(){Nf(a)&&i({inst:a})})},[e]),t_(r),r}function Nf(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Q8(e,r)}catch{return!0}}function n_(e,t){return t()}var a_=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n_:r_;Nm.useSyncExternalStore=qi.useSyncExternalStore!==void 0?qi.useSyncExternalStore:a_,km.exports=Nm;var i_=km.exports;const Tm=i_.useSyncExternalStore,Hm=Y.createContext(void 0),Im=Y.createContext(!1);function Om(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Hm),window.ReactQueryClientContext):Hm)}const Mm=({context:e}={})=>{const t=Y.useContext(Om(e,Y.useContext(Im)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},o_=({client:e,children:t,context:r,contextSharing:n=!1})=>{Y.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const a=Om(r,n);return Y.createElement(Im.Provider,{value:!r&&n},Y.createElement(a.Provider,{value:e},t))},Lm=Y.createContext(!1),s_=()=>Y.useContext(Lm);Lm.Provider;function u_(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const l_=Y.createContext(u_()),c_=()=>Y.useContext(l_);function Vm(e,t){return typeof e=="function"?e(...t):!!e}const d_=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},f_=e=>{Y.useEffect(()=>{e.clearReset()},[e])},g_=({result:e,errorResetBoundary:t,useErrorBoundary:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&Vm(r,[e.error,n]),h_=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},p_=(e,t)=>e.isLoading&&e.isFetching&&!t,m_=(e,t,r)=>e?.suspense&&p_(t,r),v_=(e,t,r)=>t.fetchOptimistic(e).then(({data:n})=>{e.onSuccess==null||e.onSuccess(n),e.onSettled==null||e.onSettled(n,null)}).catch(n=>{r.clearReset(),e.onError==null||e.onError(n),e.onSettled==null||e.onSettled(void 0,n)});function b_(e,t){const r=Mm({context:e.context}),n=s_(),a=c_(),i=r.defaultQueryOptions(e);i._optimisticResults=n?"isRestoring":"optimistic",i.onError&&(i.onError=Rt.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=Rt.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=Rt.batchCalls(i.onSettled)),h_(i),d_(i,a),f_(a);const[s]=Y.useState(()=>new t(r,i)),u=s.getOptimisticResult(i);if(Tm(Y.useCallback(l=>{const f=n?()=>{}:s.subscribe(Rt.batchCalls(l));return s.updateResult(),f},[s,n]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),Y.useEffect(()=>{s.setOptions(i,{listeners:!1})},[i,s]),m_(i,u,n))throw v_(i,s,a);if(g_({result:u,errorResetBoundary:a,useErrorBoundary:i.useErrorBoundary,query:s.getCurrentQuery()}))throw u.error;return i.notifyOnChangeProps?u:s.trackResult(u)}function ml(e,t,r){const n=ls(e,t,r);return b_(n,q8)}function Wi(e,t,r){const n=I8(e,t,r),a=Mm({context:n.context}),[i]=Y.useState(()=>new Z8(a,n));Y.useEffect(()=>{i.setOptions(n)},[i,n]);const s=Tm(Y.useCallback(l=>i.subscribe(Rt.batchCalls(l)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),u=Y.useCallback((l,f)=>{i.mutate(l,f).catch(w_)},[i]);if(s.error&&Vm(i.options.useErrorBoundary,[s.error]))throw s.error;return{...s,mutate:u,mutateAsync:s.mutate}}function w_(){}const Tf=1;class de{constructor(t,r=[]){this.id=t,this.args=r}with(...t){return new de(this.id,t.map(r=>r===void 0?null:r))}async call(...t){let r=this;t.length>0&&(r=this.with(...t));const n=new Gi("batch",[r]),[a]=await n.call();return a}async stream(t,r){const i=(await new Gi("stream",[this]).fetch(r)).body?.getReader();if(!i)throw new Error("Could not obtain a reader for the response");const s=new TextDecoder;let u={value:new Uint8Array,done:!1},l="";try{do if(u=await i.read(),u.value){const f=s.decode(u.value,{stream:!0});l+=f;let h=l.indexOf("}{");for(;h!==-1;){const m=l.slice(0,h+1);l=l.slice(h+1);try{const g=JSON.parse(m),p=Hf(g);t(p,l)}catch(g){console.error("Error parsing JSON chunk:",g)}h=l.indexOf("}{")}if(l.trim().startsWith("{")&&l.trim().endsWith("}"))try{const m=JSON.parse(l),g=Hf(m);t(g,l),l=""}catch{}}while(!u.done);return l}catch(f){if(f instanceof DOMException||f instanceof SyntaxError)return l;throw f}}useQuery(t,r=[],n={}){r.length===0&&(r=this.queryKey());const i=new Gi("batch",[this]).useQuery([t],r,n),s=i.data[0]??t;return{...i,data:s}}useMutation(t={}){let r=this;const n=q.useErrorHandler();return Wi({mutationKey:this.queryKey(),mutationFn:async function(a){return a=a??[],await r.call(...a)},onError:n,...t})}useStream(t,r={}){const n=this;D.useEffect(function(){const a=new AbortController;return r.enabled===!0&&n.stream(t,a.signal),()=>{a.abort("RPC stream was cancelled. This error may be ignored.")}},[r.enabled,...this.args,...r.deps??[]])}queryKey(){const t=this.id.split(".");return t.push(this.args),t}}class Gi{constructor(t,r){Ou(this,"nonce");this.type=t,this.actions=r,this.nonce=Q.rpcNonce}useQuery(t,r,n={}){const a=q.useErrorHandler(),i=ml({queryFn:async({signal:s})=>await this.call(s),queryKey:r,onError:a,...n});return{...i,data:i.data??t}}useMutation(t={}){let r=this;const n=q.useErrorHandler();return Wi({mutationKey:["rpc",this.actions],mutationFn:async function(a){if(a!==void 0){const i=r.actions;for(const s in r.actions)i[s]=r.actions[s].with(...a[s]);r=new Gi(r.type,i)}return await r.call()},onError:n,...t})}fetch(t){return fetch(Q.urls.wp.ajax,{signal:t,method:"POST",headers:{Connection:"keep-alive","Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},body:new URLSearchParams({action:"wpra_rpc",nonce:this.nonce,rpc:JSON.stringify({version:Tf,type:this.type,actions:this.actions})})})}async call(t){const n=await(await this.fetch(t)).json();if(typeof n!="object"&&(!n.version||n.results))throw new Error("Malformed RPC response");n.version!==Tf&&console.warn(`RPC client and server version mistatch. Server: ${n.version}, client: ${Tf}`);const a=[];for(const i of n.results??[])a.push(Hf(i));return typeof n.output=="string"&&n.output.trim().length>0&&console.warn("RPC response included the following output:",n.output),a}}function Hf(e){if(typeof e!="object"||typeof e.type!="string")throw new Error("Malformed result in RPC response");switch(e.type.toLowerCase()){case"ok":return e.value;case"error":throw new Error(e.value.message,{cause:e.value.cause});default:throw new Error(`Unknown result type "${e.type}" in RPC response`)}}const q={client:new j8({defaultOptions:{queries:{retry:1}}}),batch(e){return new Gi("batch",e)},result(e,t=null){return{__rpcResult:e,__rpcIndex:t}},useErrorHandler(){const e=xn();return function(t){e.add({content:t.message,dismissible:!0,icon:D.createElement(ss,{className:"text-rpc-error",size:16})})}},noop:new de("noop"),sources:{getById:new de("sources.getById"),getManyByIds:new de("sources.getManyByIds"),getList:new de("sources.getList"),getCount:new de("sources.getCount"),getCountErred:new de("sources.getCountErred"),getNames:new de("sources.getNames"),save:new de("sources.save"),deleteById:new de("sources.deleteById"),deleteManyByIds:new de("sources.deleteManyByIds")},wpPosts:{getCount:new de("wpPosts.getCount"),getList:new de("wpPosts.getList"),deleteManyByIds:new de("wpPosts.deleteManyByIds"),deleteFromSources:new de("wpPosts.deleteFromSources"),deleteAll:new de("wpPosts.deleteAll")},rejectList:{getList:new de("rejectList.getList"),getCount:new de("rejectList.getCount"),add:new de("rejectList.add"),update:new de("rejectList.update"),deleteManyByGuids:new de("rejectList.deleteManyByGuids")},displays:{getById:new de("displays.getById"),getList:new de("displays.getList"),getInstances:new de("displays.getInstances"),getCount:new de("displays.getCount"),save:new de("displays.save"),deleteManyByIds:new de("displays.deleteManyByIds")},folders:{getList:new de("folders.getList"),getCount:new de("folders.getCount"),setForSource:new de("folders.setForSource"),getSources:new de("folders.getSources"),update:new de("folders.update"),delete:new de("folders.delete"),getNames:new de("folders.getNames")},importer:{import:new de("importer.import"),importById:new de("importer.importById"),validate:new de("importer.validate"),findRssFeeds:new de("importer.findRssFeeds"),preview:new de("importer.preview")},renderer:{renderDisplay:new de("renderer.renderDisplay"),embed:new de("renderer.embed")},irPosts:{getList:new de("irPosts.getList"),getCount:new de("irPosts.getCount"),deleteFromSource:new de("irPosts.deleteFromSource"),deleteFromSources:new de("irPosts.deleteFromSources"),deleteAll:new de("irPosts.deleteAll")},curator:{approveManyByIds:new de("curator.approveManyByIds"),rejectManyByIds:new de("curator.rejectManyByIds")},rels:{get:new de("rels.get"),getSourceRels:new de("rels.getSourceRels")},wordai:{getAccountInfo:new de("wordai.getAccountInfo")},settings:{patch:new de("settings.patch"),import:new de("settings.import")},tutorials:{getCategory:new de("tutorials.getCategory")},wp:{getTerms:new de("wp.getTerms"),getUsers:new de("wp.getUsers"),getMediaUrl:new de("wp.getMediaUrl"),subscribeToFluentCRM:new de("wp.subscribeToFluentCRM")},progress:{getList:new de("progress.getList"),getById:new de("progress.getById"),watch:new de("progress.watch"),set:new de("progress.set"),touch:new de("progress.touch"),advance:new de("progress.advance"),regress:new de("progress.regress"),delete:new de("progress.delete")},license:{get:new de("license.getLicense"),check:new de("license.check"),activate:new de("license.activate"),deactivate:new de("license.deactivate")},logger:{enabled:new de("logger.enabled"),start:new de("logger.start"),stop:new de("logger.stop"),clear:new de("logger.clear"),print:new de("logger.print"),getList:new de("logger.getList")},v4:{migrateSettings:new de("v4.migrateSettings"),numSources:new de("v4.numSources"),migrateSources:new de("v4.migrateSources"),numBlacklist:new de("v4.numBlacklist"),migrateBlacklist:new de("v4.migrateBlacklist"),numTemplates:new de("v4.numTemplates"),migrateTemplates:new de("v4.migrateTemplates"),numItems:new de("v4.numItems"),migrateItems:new de("v4.migrateItems"),deactivateAddons:new de("v4.deactivateAddons"),isPluginsActivated:new de("v4.isPluginsActivated"),rollback:new de("v4.rollback"),reset:new de("v4.reset"),uninstall:new de("v4.uninstall"),isPremiumPluginInstalled:new de("v4.isPremiumPluginInstalled"),activatePremiumPlugin:new de("v4.activatePremiumPlugin")}};function y_(){const e=se();if(e.isAtLeast(W.Elite))return null;const t=e.isLowerThan(W.Basic);let r;t&&Q.isBlackFridayActive?r="https://www.wprssaggregator.com/upgrade/?utm_source=plugin&utm_medium=upsell&utm_campaign=BF25&utm_content=top-bar":t?r="https://www.wprssaggregator.com/upgrade/?utm_source=plugin&utm_medium=upsell&utm_campaign=upgrade&utm_content=top-bar":r="https://www.wprssaggregator.com/account/upgrades/";const n=t&&Q.isBlackFridayActive?c.__("Upgrade — Up to 40% OFF","wp-rss-aggregator"):c.__("Upgrade","wp-rss-aggregator");return o(Cr,{href:r,target:"_blank",children:n})}function Br({icon:e,title:t,left:r,right:n}){const a=se().isAtLeast(W.Pro),{data:i}=q.irPosts.getCount.useQuery(0,["irPosts"],{enabled:a,refetchOnWindowFocus:!1});return D.useEffect(function(){const s=i??0;Mn.setBadgeCount(s)},[i]),b("div",{className:"sticky top-0 z-fixed box-border flex h-[68px] shrink-0 flex-row items-center justify-between border-b border-b-gray-500 bg-tertiary px-9 py-[10px] text-white",children:[b("div",{className:"flex flex-row items-center gap-4 text-lg",children:[o(wn,{value:32,children:e??o(xr,{})}),o("h1",{className:"font-semibold",children:t}),r]}),b("div",{className:"flex flex-row items-center gap-3 text-md",children:[o(y_,{}),n,o(lt,{content:c.__("Open Help Page","wp-rss-aggregator"),children:o(Ae,{variant:"none",className:"appearance-none rounded-full focus-visible:ring-2 focus-visible:ring-alert-yellow",href:_t.page("help"),"aria-label":c.__("Open Help Page","wp-rss-aggregator"),children:o(N8,{})})})]})]})}const Pm=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.7803 16.5303L18.0303 11.2803L16.9697 10.2197L13 14.1893L13 3H11.5L11.5 14.2996L7.0057 10.1961L5.99429 11.3039L11.7443 16.5539L12.2736 17.0371L12.7803 16.5303ZM4 18.5V15H5.5L5.5 18.5H18.5V15H20V18.5V20H18.5H5.5H4V18.5Z",fill:"currentColor"})),tt=D.forwardRef(function(t,r){const n=D.useRef(null),{id:a,disabled:i,type:s,className:u,onChange:l,onFocus:f,validation:h,reportValidity:m=!1,...g}=t,p=Ln(a,i),w=S=>{l?.(S.target.value),y(S.target)},y=S=>{const H=h?.(S.value)??null;H?S.setCustomValidity(H):S.setCustomValidity(""),m&&S.reportValidity()},_=S=>{y(S.target),f?.(S)};return o("input",{ref:en(r,n),type:s??"text",className:"form-input box-border h-10 px-4 py-3 text-md transition-shadow rounded-xs border-gray-600 text-black placeholder-gray-700 disabled:cursor-not-allowed disabled:border-gray-400 disabled:bg-gray-100 disabled:text-gray-600 focus:border-primary focus:ring-primary focus:invalid:border-alert-red focus:invalid:ring-alert-red invalid:border-alert-red invalid:text-alert-red "+u,onChange:w,onFocus:_,...g,...p})});function x_(e,t,r){const n=r-t+1;return((e-t)%n+n)%n+t}function Fm(e){const t=D.useCallback(n=>{const a=Array.from(e?.current?.children??[]),i=a.findIndex(l=>l===document.activeElement),s=x_(i+n,0,a.length-1),u=a[s];u instanceof HTMLElement&&u.focus()},[e.current]);return[D.useCallback(n=>{n.key==="ArrowDown"&&(t(1),n.preventDefault()),n.key==="ArrowUp"&&(t(-1),n.preventDefault())},[e.current,t]),t]}const Bm=D.createContext({hasIcons:!1}),Rm=D.createContext({requestClose:()=>{}});function Vn(e){const t=D.useRef(null),[r]=Fm(t),n={hasIcons:e.hasIcons??!1};return o("div",{ref:t,className:"flex flex-col gap-1.5 rounded-xs border border-gray-100 bg-white p-2 shadow-md shadow-gray-300",onKeyDown:r,children:o(Bm.Provider,{value:n,children:e.children})})}Vn.Popout=function({outsideClose:t,root:r,control:n,...a}){const[i,s]=D.useState(!1),u=()=>s(w=>!w),{context:l,refs:f,floatingStyles:h}=Ri({open:i,onOpenChange:s,placement:"bottom-end",whileElementsMounted:qo,middleware:[$o(5),zo({fallbackAxisSideDirection:"start"}),r1()]}),{getReferenceProps:m,getFloatingProps:g}=Ui([hf(l),tl(l),Bi(l,{outsidePress:t,outsidePressEvent:"click"})]),p={requestClose:()=>s(!1)};return b(ie,{children:[n?.(f.setReference,m(),u,i),i&&o(Fi,{root:r,children:o(Xo,{context:l,children:o(Rm.Provider,{value:p,children:o("div",{ref:f.setFloating,...g(),style:h,className:"z-widgets",children:o(Vn,{...a})})})})})]})},Vn.Item=function({icon:t,variant:r,children:n,keepOpen:a,disabled:i,onClick:s}){const u=D.useContext(Bm).hasIcons||t,{requestClose:l}=D.useContext(Rm),f=D.useMemo(function(){switch(r){case"primary":return{className:"text-primary ring-primary enabled:hover:bg-light"};default:case"secondary":return{className:"text-gray-900 ring-primary enabled:hover:bg-gray-100"};case"danger":return{className:"text-alert-red ring-alert-red enabled:hover:bg-light-red"}}},[r]);return b("button",{disabled:i,className:fe("flex flex-row items-center gap-4 whitespace-nowrap rounded-xs bg-white px-4 py-2 text-left text-md leading-4 focus:ring-1 disabled:cursor-not-allowed disabled:text-gray-600",f?.className,u?"pl-2":"pl-4"),onClick:function(){s?.(),a||l()},children:[u&&o("span",{className:"inline-block w-3",children:o(wn,{value:18,children:t})}),n]})},Vn.Divider=function(){return o("div",{className:"mx-[-8px] my-1.5 h-[1px] bg-gray-200"})};const It=D.forwardRef(function(t,r){const{id:n,disabled:a,unit:i,unitOptions:s,onChange:u,onChangeUnit:l,value:f,...h}=t,m=Ln(n,a);return b("div",{className:"relative inline-block",children:[o(tt,{ref:r,type:"number",onChange:p=>{const w=Number(p);p===""||isNaN(w)?u?.(null):u?.(Number(p))},value:f?.toString(),...h,...m,autoComplete:"off"}),o(__,{disabled:m.disabled,options:s,onChange:l,children:i})]})});function __({disabled:e=!1,options:t=[],children:r,onChange:n}){if(!r)return null;const a=fe("absolute right-1 top-1/2 box-border transform -translate-y-1/2 px-4 py-2 align-middle text-xs text-gray-700",e?"bg-gray-100":"bg-white");return t.length===0?o("span",{className:fe(a,"pointer-events-none"),children:r}):o(Vn.Popout,{control:(i,s,u)=>o("button",{ref:i,className:fe(a,"cursor-pointer appearance-none rounded-xs text-primary ring-primary hover:bg-light focus-visible:bg-light focus-visible:ring-1 aria-expanded:bg-light"),onClick:u,...s,children:r}),children:t.map(i=>o(Vn.Item,{onClick:()=>n?.(i.value),children:i.label},i.value))})}const nn=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.5303 17.5303L13.4697 16.4697L17.1893 12.75L4 12.75L4 11.25L17.1893 11.25L13.4697 7.53032L14.5303 6.46967L20.0607 12L14.5303 17.5303Z",fill:"currentColor"}));function Um({currPage:e=1,numPages:t=1,onChangePage:r=()=>{}}){return b("div",{className:"flex flex-row items-center gap-5",children:[o("button",{className:"disabled:cursor-not-allowed disabled:text-gray-500",onClick:()=>r(e-1),disabled:e<=1,children:o(zi,{})}),C_(e,t).map(function(n,a){return n===ds?o("span",{className:"inline-block w-9 text-center",children:"..."},`ellipsis-${a}`):o("button",{className:"box-border h-9 w-9 rounded-full text-center text-md font-semibold leading-5 ring-primary focus-visible:ring-2 data-[active=true]:bg-light-blue",onClick:()=>r(n),"data-active":n===e,children:n},n)}),o("button",{className:"disabled:cursor-not-allowed disabled:text-gray-400",onClick:()=>r(e+1),disabled:e>=t,children:o(nn,{})})]})}const ds="...";function C_(e,t){return t<=7?Array.from({length:t},(r,n)=>n+1):e<4?[1,2,3,4,5,ds,7]:e>t-4?[1,ds,t-4,t-3,t-2,t-1,t]:[1,ds,e-1,e,e+1,ds,t]}const Wt=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.9293 7.97825L10.731 17.6591L6.21469 14.3009L7.10972 13.0972L10.4223 15.5603L16.7255 7.08322L17.9293 7.97825Z",fill:"currentColor"}));function an(e){return b("div",{className:"relative flex flex-col gap-1 rounded-lg bg-tertiary-green p-6 border-tertiary border-[1px] w-[273px]",children:[o("span",{className:"text-tertiary text-[10px] font-semibold",children:c.__("HONEY, IT’S GO TIME!","wp-rss-aggregator")}),o("p",{className:"text-xl font-bold leading-7 pb-5 z-10",children:e.title}),o("div",{className:"flex flex-col gap-[6px] pb-5 text-md z-10",children:e.list.map((t,r)=>o("ul",{className:"list-inside font-normal leading-4 text-gray-800",children:b("li",{children:[o(Wt,{className:"text-alert-green mr-1"}),t]})},r))}),o("div",{className:"z-10",children:b(Cr,{className:"w-max font-bold ring-offset-tertiary",href:Q.urls.website.upgrade,target:"_blank",children:[e.button||c.__("Upgrade Now","wp-rss-aggregator"),o(nn,{})]})}),o("div",{className:"absolute bottom-0 right-0",children:o("img",{src:Q.urls.assets.imgs+"/integrations/human-and-ai.png",className:"aspect-square"})})]})}an.UpgradeFromFree=function(){return o(an,{title:c.__("Upgrade to Pro","wp-rss-aggregator"),list:[c.__("Email support within 24 hours","wp-rss-aggregator"),c.__("Unlock all customizations","wp-rss-aggregator"),c.__("Import feeds as Posts","wp-rss-aggregator"),c.__("Fetch the full content","wp-rss-aggregator")]})},an.UpgradeToPro=function(){return o(an,{title:c.__("Upgrade to Pro","wp-rss-aggregator"),list:[c.__("Unlock all customizations","wp-rss-aggregator"),c.__("Import feeds as Posts","wp-rss-aggregator"),c.__("Fetch the full content","wp-rss-aggregator")]})},an.UpgradeToElite=function(){return o(an,{title:c.__("Upgrade to Elite","wp-rss-aggregator"),list:[c.__("AI integrations","wp-rss-aggregator"),c.__("Title spinning","wp-rss-aggregator"),c.__("Content spinning","wp-rss-aggregator")]})},an.BasedOnTier=function(){switch(se().current){case W.Free:return o(an.UpgradeFromFree,{});case W.Basic:case W.Plus:return o(an.UpgradeToPro,{});case W.Pro:return o(an.UpgradeToElite,{});default:return null}};const vl=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 13.0607L15.7123 16.773L16.773 15.7123L13.0607 12L16.773 8.28772L15.7123 7.22706L12 10.9394L8.28769 7.22705L7.22703 8.28771L10.9393 12L7.22704 15.7123L8.2877 16.773L12 13.0607Z",fill:"currentColor"})),Km=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.5 11.5C17.5 13.7091 15.7091 15.5 13.5 15.5C11.2909 15.5 9.5 13.7091 9.5 11.5C9.5 9.29086 11.2909 7.5 13.5 7.5C15.7091 7.5 17.5 9.29086 17.5 11.5ZM19 11.5C19 14.5376 16.5376 17 13.5 17C12.103 17 10.8277 16.4792 9.85763 15.6211L6.49388 18.5644L5.50612 17.4356L8.87917 14.4841C8.32293 13.6246 8 12.6 8 11.5C8 8.46243 10.4624 6 13.5 6C16.5376 6 19 8.46243 19 11.5Z",fill:"currentColor"})),_n=me(()=>b(ie,{children:[o("path",{d:"M18.3762 13.2702L19.8477 13.5613C19.9476 13.0563 20 12.5343 20 12C20 11.4657 19.9476 10.9437 19.8477 10.4387L18.3762 10.7298C18.4573 11.1394 18.5 11.564 18.5 12C18.5 12.436 18.4573 12.8606 18.3762 13.2702Z",fill:"#BBBBBB"}),o("path",{d:"M17.4061 8.38955L18.6525 7.55507C18.0685 6.68266 17.3173 5.93154 16.4449 5.34748L15.6104 6.59393C16.3199 7.06891 16.9311 7.68007 17.4061 8.38955Z",fill:"#BBBBBB"}),o("path",{d:"M13.2702 5.62375L13.5613 4.15227C13.0563 4.05238 12.5343 4 12 4C11.4657 4 10.9437 4.05238 10.4387 4.15227L10.7298 5.62375C11.1394 5.54272 11.564 5.5 12 5.5C12.436 5.5 12.8606 5.54272 13.2702 5.62375Z",fill:"black"}),o("path",{d:"M8.38955 6.59393L7.55507 5.34748C6.68266 5.93154 5.93154 6.68266 5.34748 7.55508L6.59393 8.38955C7.06891 7.68007 7.68007 7.06892 8.38955 6.59393Z",fill:"#BBBBBB"}),o("path",{d:"M4 12C4 11.4657 4.05238 10.9437 4.15227 10.4387L5.62375 10.7298C5.54272 11.1394 5.5 11.564 5.5 12C5.5 12.436 5.54272 12.8606 5.62375 13.2702L4.15227 13.5613C4.05238 13.0563 4 12.5343 4 12Z",fill:"#BBBBBB"}),o("path",{d:"M6.59393 15.6104L5.34748 16.4449C5.93154 17.3173 6.68266 18.0685 7.55508 18.6525L8.38955 17.4061C7.68007 16.9311 7.06892 16.3199 6.59393 15.6104Z",fill:"#BBBBBB"}),o("path",{d:"M10.7298 18.3762L10.4387 19.8477C10.9437 19.9476 11.4657 20 12 20C12.5343 20 13.0563 19.9476 13.5613 19.8477L13.2702 18.3762C12.8606 18.4573 12.436 18.5 12 18.5C11.564 18.5 11.1394 18.4573 10.7298 18.3762Z",fill:"#BBBBBB"}),o("path",{d:"M15.6104 17.4061L16.4449 18.6525C17.3173 18.0685 18.0685 17.3173 18.6525 16.4449L17.4061 15.6104C16.9311 16.3199 16.3199 16.9311 15.6104 17.4061Z",fill:"#BBBBBB"})]}),{className:"animate-spin-8"}),bl=D.forwardRef(function(e,t){const{value:r,className:n="",icon:a,isLoading:i=!1,onChange:s,onClickReset:u,...l}=e,f=D.useRef(null),h=D.useCallback(()=>{s?.(""),u?.(),f.current?.focus()},[s,f]);return b("div",{className:"relative inline-block w-full",children:[o(tt,{ref:en(t,f),type:"text",className:fe("w-full pr-[36px]",n),value:r,onChange:s,...l}),o("div",{className:"absolute bottom-[2px] right-[1px] top-[2px] flex w-[30px] flex-col items-center justify-center overflow-hidden bg-white",children:E_(a,!!r,i,h)})]})});function S_({onClick:e}){return o("button",{className:"cursor-pointer appearance-none rounded-xs focus-visible:ring-1 focus-visible:ring-primary","aria-label":"Reset search",onClick:e,children:o(vl,{})})}function E_(e,t,r,n){return r?o(_n,{className:"animate-spin-8"}):e||(t?o(S_,{onClick:n}):o(Km,{}))}function la(e){return Array.isArray?Array.isArray(e):jm(e)==="[object Array]"}const A_=1/0;function D_(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-A_?"-0":t}function k_(e){return e==null?"":D_(e)}function Pn(e){return typeof e=="string"}function zm(e){return typeof e=="number"}function N_(e){return e===!0||e===!1||T_(e)&&jm(e)=="[object Boolean]"}function $m(e){return typeof e=="object"}function T_(e){return $m(e)&&e!==null}function Rr(e){return e!=null}function If(e){return!e.trim().length}function jm(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const Fee="Extended search is not available",H_="Incorrect 'index' type",I_=e=>`Invalid value for key ${e}`,O_=e=>`Pattern length exceeds max of ${e}.`,M_=e=>`Missing ${e} property in key`,L_=e=>`Property 'weight' in key '${e}' must be a positive integer`,qm=Object.prototype.hasOwnProperty;class V_{constructor(t){this._keys=[],this._keyMap={};let r=0;t.forEach(n=>{let a=Wm(n);r+=a.weight,this._keys.push(a),this._keyMap[a.id]=a,r+=a.weight}),this._keys.forEach(n=>{n.weight/=r})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Wm(e){let t=null,r=null,n=null,a=1,i=null;if(Pn(e)||la(e))n=e,t=Gm(e),r=Of(e);else{if(!qm.call(e,"name"))throw new Error(M_("name"));const s=e.name;if(n=s,qm.call(e,"weight")&&(a=e.weight,a<=0))throw new Error(L_(s));t=Gm(s),r=Of(s),i=e.getFn}return{path:t,id:r,weight:a,src:n,getFn:i}}function Gm(e){return la(e)?e:e.split(".")}function Of(e){return la(e)?e.join("."):e}function P_(e,t){let r=[],n=!1;const a=(i,s,u)=>{if(Rr(i))if(!s[u])r.push(i);else{let l=s[u];const f=i[l];if(!Rr(f))return;if(u===s.length-1&&(Pn(f)||zm(f)||N_(f)))r.push(k_(f));else if(la(f)){n=!0;for(let h=0,m=f.length;h<m;h+=1)a(f[h],s,u+1)}else s.length&&a(f,s,u+1)}};return a(e,Pn(t)?t.split("."):t,0),n?r:r[0]}var Ue={...{isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},...{includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},...{location:0,threshold:.6,distance:100},...{useExtendedSearch:!1,getFn:P_,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1}};const F_=/[^ ]+/g;function B_(e=1,t=3){const r=new Map,n=Math.pow(10,t);return{get(a){const i=a.match(F_).length;if(r.has(i))return r.get(i);const s=1/Math.pow(i,.5*e),u=parseFloat(Math.round(s*n)/n);return r.set(i,u),u},clear(){r.clear()}}}class Mf{constructor({getFn:t=Ue.getFn,fieldNormWeight:r=Ue.fieldNormWeight}={}){this.norm=B_(r,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((r,n)=>{this._keysMap[r.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Pn(this.docs[0])?this.docs.forEach((t,r)=>{this._addString(t,r)}):this.docs.forEach((t,r)=>{this._addObject(t,r)}),this.norm.clear())}add(t){const r=this.size();Pn(t)?this._addString(t,r):this._addObject(t,r)}removeAt(t){this.records.splice(t,1);for(let r=t,n=this.size();r<n;r+=1)this.records[r].i-=1}getValueForItemAtKeyId(t,r){return t[this._keysMap[r]]}size(){return this.records.length}_addString(t,r){if(!Rr(t)||If(t))return;let n={v:t,i:r,n:this.norm.get(t)};this.records.push(n)}_addObject(t,r){let n={i:r,$:{}};this.keys.forEach((a,i)=>{let s=a.getFn?a.getFn(t):this.getFn(t,a.path);if(Rr(s)){if(la(s)){let u=[];const l=[{nestedArrIndex:-1,value:s}];for(;l.length;){const{nestedArrIndex:f,value:h}=l.pop();if(Rr(h))if(Pn(h)&&!If(h)){let m={v:h,i:f,n:this.norm.get(h)};u.push(m)}else la(h)&&h.forEach((m,g)=>{l.push({nestedArrIndex:g,value:m})})}n.$[i]=u}else if(Pn(s)&&!If(s)){let u={v:s,n:this.norm.get(s)};n.$[i]=u}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function Zm(e,t,{getFn:r=Ue.getFn,fieldNormWeight:n=Ue.fieldNormWeight}={}){const a=new Mf({getFn:r,fieldNormWeight:n});return a.setKeys(e.map(Wm)),a.setSources(t),a.create(),a}function R_(e,{getFn:t=Ue.getFn,fieldNormWeight:r=Ue.fieldNormWeight}={}){const{keys:n,records:a}=e,i=new Mf({getFn:t,fieldNormWeight:r});return i.setKeys(n),i.setIndexRecords(a),i}function wl(e,{errors:t=0,currentLocation:r=0,expectedLocation:n=0,distance:a=Ue.distance,ignoreLocation:i=Ue.ignoreLocation}={}){const s=t/e.length;if(i)return s;const u=Math.abs(n-r);return a?s+u/a:u?1:s}function U_(e=[],t=Ue.minMatchCharLength){let r=[],n=-1,a=-1,i=0;for(let s=e.length;i<s;i+=1){let u=e[i];u&&n===-1?n=i:!u&&n!==-1&&(a=i-1,a-n+1>=t&&r.push([n,a]),n=-1)}return e[i-1]&&i-n>=t&&r.push([n,i-1]),r}const oi=32;function K_(e,t,r,{location:n=Ue.location,distance:a=Ue.distance,threshold:i=Ue.threshold,findAllMatches:s=Ue.findAllMatches,minMatchCharLength:u=Ue.minMatchCharLength,includeMatches:l=Ue.includeMatches,ignoreLocation:f=Ue.ignoreLocation}={}){if(t.length>oi)throw new Error(O_(oi));const h=t.length,m=e.length,g=Math.max(0,Math.min(n,m));let p=i,w=g;const y=u>1||l,_=y?Array(m):[];let S;for(;(S=e.indexOf(t,w))>-1;){let K=wl(t,{currentLocation:S,expectedLocation:g,distance:a,ignoreLocation:f});if(p=Math.min(K,p),w=S+h,y){let M=0;for(;M<h;)_[S+M]=1,M+=1}}w=-1;let H=[],L=1,O=h+m;const j=1<<h-1;for(let K=0;K<h;K+=1){let M=0,F=O;for(;M<F;)wl(t,{errors:K,currentLocation:g+F,expectedLocation:g,distance:a,ignoreLocation:f})<=p?M=F:O=F,F=Math.floor((O-M)/2+M);O=F;let U=Math.max(1,g-F+1),k=s?m:Math.min(g+F,m)+h,C=Array(k+2);C[k+1]=(1<<K)-1;for(let I=k;I>=U;I-=1){let T=I-1,V=r[e.charAt(T)];if(y&&(_[T]=+!!V),C[I]=(C[I+1]<<1|1)&V,K&&(C[I]|=(H[I+1]|H[I])<<1|1|H[I+1]),C[I]&j&&(L=wl(t,{errors:K,currentLocation:T,expectedLocation:g,distance:a,ignoreLocation:f}),L<=p)){if(p=L,w=T,w<=g)break;U=Math.max(1,2*g-w)}}if(wl(t,{errors:K+1,currentLocation:g,expectedLocation:g,distance:a,ignoreLocation:f})>p)break;H=C}const R={isMatch:w>=0,score:Math.max(.001,L)};if(y){const K=U_(_,u);K.length?l&&(R.indices=K):R.isMatch=!1}return R}function z_(e){let t={};for(let r=0,n=e.length;r<n;r+=1){const a=e.charAt(r);t[a]=(t[a]||0)|1<<n-r-1}return t}class Ym{constructor(t,{location:r=Ue.location,threshold:n=Ue.threshold,distance:a=Ue.distance,includeMatches:i=Ue.includeMatches,findAllMatches:s=Ue.findAllMatches,minMatchCharLength:u=Ue.minMatchCharLength,isCaseSensitive:l=Ue.isCaseSensitive,ignoreLocation:f=Ue.ignoreLocation}={}){if(this.options={location:r,threshold:n,distance:a,includeMatches:i,findAllMatches:s,minMatchCharLength:u,isCaseSensitive:l,ignoreLocation:f},this.pattern=l?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;const h=(g,p)=>{this.chunks.push({pattern:g,alphabet:z_(g),startIndex:p})},m=this.pattern.length;if(m>oi){let g=0;const p=m%oi,w=m-p;for(;g<w;)h(this.pattern.substr(g,oi),g),g+=oi;if(p){const y=m-oi;h(this.pattern.substr(y),y)}}else h(this.pattern,0)}searchIn(t){const{isCaseSensitive:r,includeMatches:n}=this.options;if(r||(t=t.toLowerCase()),this.pattern===t){let w={isMatch:!0,score:0};return n&&(w.indices=[[0,t.length-1]]),w}const{location:a,distance:i,threshold:s,findAllMatches:u,minMatchCharLength:l,ignoreLocation:f}=this.options;let h=[],m=0,g=!1;this.chunks.forEach(({pattern:w,alphabet:y,startIndex:_})=>{const{isMatch:S,score:H,indices:L}=K_(t,w,y,{location:a+_,distance:i,threshold:s,findAllMatches:u,minMatchCharLength:l,includeMatches:n,ignoreLocation:f});S&&(g=!0),m+=H,S&&L&&(h=[...h,...L])});let p={isMatch:g,score:g?m/this.chunks.length:1};return g&&n&&(p.indices=h),p}}class La{constructor(t){this.pattern=t}static isMultiMatch(t){return Qm(t,this.multiRegex)}static isSingleMatch(t){return Qm(t,this.singleRegex)}search(){}}function Qm(e,t){const r=e.match(t);return r?r[1]:null}class $_ extends La{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const r=t===this.pattern;return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class j_ extends La{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const n=t.indexOf(this.pattern)===-1;return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class q_ extends La{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const r=t.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class W_ extends La{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const r=!t.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class G_ extends La{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const r=t.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class Z_ extends La{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const r=!t.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class Xm extends La{constructor(t,{location:r=Ue.location,threshold:n=Ue.threshold,distance:a=Ue.distance,includeMatches:i=Ue.includeMatches,findAllMatches:s=Ue.findAllMatches,minMatchCharLength:u=Ue.minMatchCharLength,isCaseSensitive:l=Ue.isCaseSensitive,ignoreLocation:f=Ue.ignoreLocation}={}){super(t),this._bitapSearch=new Ym(t,{location:r,threshold:n,distance:a,includeMatches:i,findAllMatches:s,minMatchCharLength:u,isCaseSensitive:l,ignoreLocation:f})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class Jm extends La{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let r=0,n;const a=[],i=this.pattern.length;for(;(n=t.indexOf(this.pattern,r))>-1;)r=n+i,a.push([n,r-1]);const s=!!a.length;return{isMatch:s,score:s?0:1,indices:a}}}const Lf=[$_,Jm,q_,W_,Z_,G_,j_,Xm],ev=Lf.length,Y_=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Q_="|";function X_(e,t={}){return e.split(Q_).map(r=>{let n=r.trim().split(Y_).filter(i=>i&&!!i.trim()),a=[];for(let i=0,s=n.length;i<s;i+=1){const u=n[i];let l=!1,f=-1;for(;!l&&++f<ev;){const h=Lf[f];let m=h.isMultiMatch(u);m&&(a.push(new h(m,t)),l=!0)}if(!l)for(f=-1;++f<ev;){const h=Lf[f];let m=h.isSingleMatch(u);if(m){a.push(new h(m,t));break}}}return a})}const J_=new Set([Xm.type,Jm.type]);class eC{constructor(t,{isCaseSensitive:r=Ue.isCaseSensitive,includeMatches:n=Ue.includeMatches,minMatchCharLength:a=Ue.minMatchCharLength,ignoreLocation:i=Ue.ignoreLocation,findAllMatches:s=Ue.findAllMatches,location:u=Ue.location,threshold:l=Ue.threshold,distance:f=Ue.distance}={}){this.query=null,this.options={isCaseSensitive:r,includeMatches:n,minMatchCharLength:a,findAllMatches:s,ignoreLocation:i,location:u,threshold:l,distance:f},this.pattern=r?t:t.toLowerCase(),this.query=X_(this.pattern,this.options)}static condition(t,r){return r.useExtendedSearch}searchIn(t){const r=this.query;if(!r)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:a}=this.options;t=a?t:t.toLowerCase();let i=0,s=[],u=0;for(let l=0,f=r.length;l<f;l+=1){const h=r[l];s.length=0,i=0;for(let m=0,g=h.length;m<g;m+=1){const p=h[m],{isMatch:w,indices:y,score:_}=p.search(t);if(w){if(i+=1,u+=_,n){const S=p.constructor.type;J_.has(S)?s=[...s,...y]:s.push(y)}}else{u=0,i=0,s.length=0;break}}if(i){let m={isMatch:!0,score:u/i};return n&&(m.indices=s),m}}return{isMatch:!1,score:1}}}const Vf=[];function tC(...e){Vf.push(...e)}function Pf(e,t){for(let r=0,n=Vf.length;r<n;r+=1){let a=Vf[r];if(a.condition(e,t))return new a(e,t)}return new Ym(e,t)}const yl={AND:"$and",OR:"$or"},Ff={PATH:"$path",PATTERN:"$val"},Bf=e=>!!(e[yl.AND]||e[yl.OR]),rC=e=>!!e[Ff.PATH],nC=e=>!la(e)&&$m(e)&&!Bf(e),tv=e=>({[yl.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function rv(e,t,{auto:r=!0}={}){const n=a=>{let i=Object.keys(a);const s=rC(a);if(!s&&i.length>1&&!Bf(a))return n(tv(a));if(nC(a)){const l=s?a[Ff.PATH]:i[0],f=s?a[Ff.PATTERN]:a[l];if(!Pn(f))throw new Error(I_(l));const h={keyId:Of(l),pattern:f};return r&&(h.searcher=Pf(f,t)),h}let u={children:[],operator:i[0]};return i.forEach(l=>{const f=a[l];la(f)&&f.forEach(h=>{u.children.push(n(h))})}),u};return Bf(e)||(e=tv(e)),n(e)}function aC(e,{ignoreFieldNorm:t=Ue.ignoreFieldNorm}){e.forEach(r=>{let n=1;r.matches.forEach(({key:a,norm:i,score:s})=>{const u=a?a.weight:null;n*=Math.pow(s===0&&u?Number.EPSILON:s,(u||1)*(t?1:i))}),r.score=n})}function iC(e,t){const r=e.matches;t.matches=[],Rr(r)&&r.forEach(n=>{if(!Rr(n.indices)||!n.indices.length)return;const{indices:a,value:i}=n;let s={indices:a,value:i};n.key&&(s.key=n.key.src),n.idx>-1&&(s.refIndex=n.idx),t.matches.push(s)})}function oC(e,t){t.score=e.score}function sC(e,t,{includeMatches:r=Ue.includeMatches,includeScore:n=Ue.includeScore}={}){const a=[];return r&&a.push(iC),n&&a.push(oC),e.map(i=>{const{idx:s}=i,u={item:t[s],refIndex:s};return a.length&&a.forEach(l=>{l(i,u)}),u})}class Zi{constructor(t,r={},n){this.options={...Ue,...r},this.options.useExtendedSearch,this._keyStore=new V_(this.options.keys),this.setCollection(t,n)}setCollection(t,r){if(this._docs=t,r&&!(r instanceof Mf))throw new Error(H_);this._myIndex=r||Zm(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){Rr(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const r=[];for(let n=0,a=this._docs.length;n<a;n+=1){const i=this._docs[n];t(i,n)&&(this.removeAt(n),n-=1,a-=1,r.push(i))}return r}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:r=-1}={}){const{includeMatches:n,includeScore:a,shouldSort:i,sortFn:s,ignoreFieldNorm:u}=this.options;let l=Pn(t)?Pn(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return aC(l,{ignoreFieldNorm:u}),i&&l.sort(s),zm(r)&&r>-1&&(l=l.slice(0,r)),sC(l,this._docs,{includeMatches:n,includeScore:a})}_searchStringList(t){const r=Pf(t,this.options),{records:n}=this._myIndex,a=[];return n.forEach(({v:i,i:s,n:u})=>{if(!Rr(i))return;const{isMatch:l,score:f,indices:h}=r.searchIn(i);l&&a.push({item:i,idx:s,matches:[{score:f,value:i,norm:u,indices:h}]})}),a}_searchLogical(t){const r=rv(t,this.options),n=(u,l,f)=>{if(!u.children){const{keyId:m,searcher:g}=u,p=this._findMatches({key:this._keyStore.get(m),value:this._myIndex.getValueForItemAtKeyId(l,m),searcher:g});return p&&p.length?[{idx:f,item:l,matches:p}]:[]}const h=[];for(let m=0,g=u.children.length;m<g;m+=1){const p=u.children[m],w=n(p,l,f);if(w.length)h.push(...w);else if(u.operator===yl.AND)return[]}return h},a=this._myIndex.records,i={},s=[];return a.forEach(({$:u,i:l})=>{if(Rr(u)){let f=n(r,u,l);f.length&&(i[l]||(i[l]={idx:l,item:u,matches:[]},s.push(i[l])),f.forEach(({matches:h})=>{i[l].matches.push(...h)}))}}),s}_searchObjectList(t){const r=Pf(t,this.options),{keys:n,records:a}=this._myIndex,i=[];return a.forEach(({$:s,i:u})=>{if(!Rr(s))return;let l=[];n.forEach((f,h)=>{l.push(...this._findMatches({key:f,value:s[h],searcher:r}))}),l.length&&i.push({idx:u,item:s,matches:l})}),i}_findMatches({key:t,value:r,searcher:n}){if(!Rr(r))return[];let a=[];if(la(r))r.forEach(({v:i,i:s,n:u})=>{if(!Rr(i))return;const{isMatch:l,score:f,indices:h}=n.searchIn(i);l&&a.push({score:f,key:t,value:i,idx:s,norm:u,indices:h})});else{const{v:i,n:s}=r,{isMatch:u,score:l,indices:f}=n.searchIn(i);u&&a.push({score:l,key:t,value:i,norm:s,indices:f})}return a}}Zi.version="6.6.2",Zi.createIndex=Zm,Zi.parseIndex=R_,Zi.config=Ue,Zi.parseQuery=rv,tC(eC);function Rf(e,t,r){return e===""?r:new Zi(r,{keys:t,threshold:.3}).search(e).map(i=>i.item)}function uC({tabs:e=[],currTab:t="",showUpgrade:r=!1,showSearch:n=!1,before:a,after:i,placeholder:s,onTabChange:u=()=>null}){const[l,f]=D.useState(""),h=D.useRef(null),m=D.useRef(null),g=se(),[p]=Fm(m);function w(S){S.key==="Escape"?(f(""),h.current?.focus(),S.preventDefault()):p(S)}function y(S){return()=>u(S)}const _=Rf(l,["label","keywords"],e);return b("div",{className:"box-border flex h-full w-80 flex-col justify-between gap-8 overflow-auto bg-light-blue p-8",children:[b("div",{className:"flex flex-col items-stretch gap-6",children:[n&&o(bl,{ref:h,value:l,onChange:f,onKeyDown:w,className:"border-0",placeholder:s??c.__("Search ...","wp-rss-aggregator")}),a,o("div",{ref:m,className:"flex flex-col items-stretch gap-5",onKeyDown:w,children:_.map(S=>b("button",{className:fe("appearance-none rounded-xs px-4 py-2 text-left ring-primary hover:bg-white focus-visible:ring-2",S.id===t?"font-semibold text-black":"text-gray-700"),onClick:y(S.id),children:[o("span",{children:S.label??S.title}),o("span",{className:"float-right text-accent",children:S.tier!==void 0&&g.isLowerThan(S.tier)&&o(os,{size:18})})]},S.id))}),i]}),r&&o(an.BasedOnTier,{})]})}function mt(e){const t=lC(e.color??"light"),r=cC(e.vertical??!1);return o("div",{className:fe(t.className,r.className,e.className)})}function lC(e){switch(e){case"light":return{className:"bg-gray-200"};case"dark":return{className:"bg-gray-900"};default:return console.error("Invalid divider color",e),{className:"red"}}}function cC(e){return e?{className:"flex-shrink-0 w-[1px] h-full"}:{className:"flex-shrink-0 h-[1px] w-full"}}const dC={key:"",tier:0,status:"deactivated",customer:null,quota:0,activations:0,expires:null,eddId:0},xl=Oe(Q.license),Cn={use(){const[e,t]=ce(xl);return[e??dC,t]},useActivate(e){const t=se(),[r,n]=ce(xl);return e=e??r?.key??"",q.license.activate.with(e).useMutation({onSuccess(i){n(i),i.status==="valid"&&t.set(i.tier)},onError(){}})},useDeactivate(){const e=se(),t=xn(),[r,n]=ce(xl);return q.license.deactivate.useMutation({onSuccess(){n(null),e.set(0)},onError(i){i instanceof Error?t.add({id:"license/deactivate/error",content:i.message,dismissible:!0}):console.error(i)}})},useCheck(e){const t=se(),[r,n]=ce(xl);return e=e??r?.key??"",q.license.check.with(e).useMutation({onSuccess(i){n(i),i.status==="valid"&&t.set(i.tier)},onError(){}})},getPlan(e){return Q.plans.find(t=>t.tier===e.tier)},isExpired(e){return e.expires&&new Date(e.expires)<new Date}},nv="manualUpdateNoticeDismissed";function Uf({className:e}){const t=Q.premiumInstalled&&Q.premiumVersion<="5.0.1",r=Q.premiumVersion?.trim()||"v5.0.0",[n]=Cn.use();if(!t||n.status!=="valid")return null;const[a,i]=D.useState(!1);D.useEffect(()=>{localStorage.getItem(nv)!=="true"&&i(!0)},[]);const s=()=>{i(!1),localStorage.setItem(nv,"true")};return a?b("div",{className:fe("relative flex gap-5 bg-white border-t-[1px] border-r-[1px] border-b-[1px] border-accent-dark",e),children:[o("div",{className:"flex items-start justify-center p-3 shrink-0  bg-light-orange border-l-[5px] border-accent-dark",children:o(xr,{width:30,height:30,className:"text-accent"})}),b("div",{className:"flex flex-col gap-4 py-3",children:[o("h3",{className:"font-semibold",children:c.__("One-time only manual update required for Premium plugin","wp-rss-aggregator")}),o("p",{className:"text-sm",children:c.__(`Your site is running Aggregator Premium ${r}, which cannot detect premium updates. Please perform a one-time only manual update to Premium v5.0.2 to restore update checks.`,"wp-rss-aggregator")}),b("p",{className:"flex items-center gap-4",children:[o(Ne,{href:"https://www.wprssaggregator.com/account/downloads/",target:"_blank",children:c.__("Download Premium v5.0.2","wp-rss-aggregator")}),o(_r,{size:"sm",className:"no-underline",href:"https://www.wprssaggregator.com/help/one-time-manual-update-to-v5-0-2/",target:"_blank",children:c.__("Step-by-step instructions","wp-rss-aggregator")})]})]}),o("button",{onClick:s,className:"absolute top-2 right-2 text-gray-900 hover:text-gray-700","aria-label":c.__("Close notice","wp-rss-aggregator"),children:o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-4 h-4",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}):null}let Sn,Fn,Va,Pa;const av=/<(\/)?(\w+)\s*(\/)?>/g;function Kf(e,t,r,n,a){return{element:e,tokenStart:t,tokenLength:r,prevOffset:n,leadingTextStart:a,children:[]}}const fC=(e,t)=>{if(Sn=e,Fn=0,Va=[],Pa=[],av.lastIndex=0,!gC(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are React Elements");do;while(hC(t));return D.createElement(D.Fragment,null,...Va)},gC=e=>{const t=typeof e=="object",r=t&&Object.values(e);return t&&r.length&&r.every(n=>D.isValidElement(n))};function hC(e){const t=pC(),[r,n,a,i]=t,s=Pa.length,u=a>Fn?Fn:null;if(!e[n])return zf(),!1;switch(r){case"no-more-tokens":if(s!==0){const{leadingTextStart:m,tokenStart:g}=Pa.pop();Va.push(Sn.substr(m,g))}return zf(),!1;case"self-closed":return s===0?(u!==null&&Va.push(Sn.substr(u,a-u)),Va.push(e[n]),Fn=a+i,!0):(iv(Kf(e[n],a,i)),Fn=a+i,!0);case"opener":return Pa.push(Kf(e[n],a,i,a+i,u)),Fn=a+i,!0;case"closer":if(s===1)return mC(a),Fn=a+i,!0;const l=Pa.pop(),f=Sn.substr(l.prevOffset,a-l.prevOffset);l.children.push(f),l.prevOffset=a+i;const h=Kf(l.element,l.tokenStart,l.tokenLength,a+i);return h.children=l.children,iv(h),Fn=a+i,!0;default:return zf(),!1}}function pC(){const e=av.exec(Sn);if(e===null)return["no-more-tokens"];const t=e.index,[r,n,a,i]=e,s=r.length;return i?["self-closed",a,t,s]:n?["closer",a,t,s]:["opener",a,t,s]}function zf(){const e=Sn.length-Fn;e!==0&&Va.push(Sn.substr(Fn,e))}function iv(e){const{element:t,tokenStart:r,tokenLength:n,prevOffset:a,children:i}=e,s=Pa[Pa.length-1],u=Sn.substr(s.prevOffset,r-s.prevOffset);u&&s.children.push(u),s.children.push(D.cloneElement(t,null,...i)),s.prevOffset=a||r+n}function mC(e){const{element:t,leadingTextStart:r,prevOffset:n,tokenStart:a,children:i}=Pa.pop(),s=e?Sn.substr(n,e-n):Sn.substr(n);s&&i.push(s),r!==null&&Va.push(Sn.substr(r,a-r)),Va.push(D.cloneElement(t,null,...i))}const it=fC;function ov({children:e,...t}){let r="";return D.Children.toArray(e).forEach(n=>{typeof n=="string"&&n.trim()!==""&&(r+=n)}),D.createElement("div",{dangerouslySetInnerHTML:{__html:r},...t})}function $f({className:e}){return Q.isPluginMismatch?o(ie,{children:b("div",{className:fe("flex gap-1 items-baseline rounded-xs bg-orange-notice p-2",e),children:[o("div",{className:"shrink-0 items-start",children:o(fr,{width:16,height:16,className:"shrink-0 text-gray-900"})}),o("div",{className:"text-md",children:it(c.__("<strong>Plugin Version Mismatch.</strong> Your free and premium Aggregator plugins are running different versions, so Premium features are temporarily paused. <updateLink>Please update</updateLink> both plugins to the same version to restore full compatibility. <learnMoreLink>Learn more</learnMoreLink>","wp-rss-aggregator"),{strong:o("strong",{}),updateLink:o("a",{href:Q.urls.wp.admin+"/update-core.php",target:"_top",className:"underline text-primary cursor-pointer"}),learnMoreLink:o("a",{href:"https://www.wprssaggregator.com/help/plugin-version-mismatch/",target:"_blank",className:"underline text-primary cursor-pointer"})})})]})}):null}function vC(e){return o("div",{className:"h-full overflow-auto bg-light-blue pr-8 pt-8",children:o("div",{className:"flex h-full flex-col items-stretch",children:b("div",{className:"max-w-[1200px] flex-1 border border-gray-200 bg-white p-[60px]",children:[o(Uf,{className:"mb-10"}),o($f,{className:"mb-10"}),b("main",{children:[(e.title||e.subTitle||e.action)&&b("header",{className:"flex flex-col gap-4",children:[b("div",{className:"flex flex-row justify-between gap-2 items-center",children:[b("div",{className:"flex flex-1 flex-col gap-2",children:[e.title&&o("h1",{className:"text-xl leading-7 text-gray-900",children:e.title}),e.subTitle&&o("p",{className:"text-md leading-5 text-gray-700",children:e.subTitle})]}),e.action]}),o(mt,{className:"mb-10"})]}),o("section",{className:"flex flex-col gap-6",children:e.children})]})]})})})}const bC="wpra-page-sidebar",sv="wpra-page-content";function jf(e){return o("div",{className:"relative h-full w-full overflow-hidden",children:b("div",{className:"flex h-full flex-col overflow-hidden bg-white",children:[e.topbar,b("div",{className:"flex h-full flex-1 shrink-0 flex-row-reverse overflow-hidden",children:[o("div",{id:sv,className:"relative flex h-full flex-1 flex-col overflow-auto",children:e.content}),o("div",{id:bC,className:"relative z-10 h-full overflow-y-auto",children:e.sidebar})]})]})})}function fs(e){const t=e.tabs.find(r=>r.id===e.currTab);return o(jf,{topbar:e.topbar,sidebar:o(uC,{tabs:e.tabs,currTab:e.currTab,onTabChange:e.onTabChange,before:e.sidebarBefore,after:e.sidebarAfter,showUpgrade:e.showUpgrade,showSearch:e.showSearch,placeholder:e.placeholder}),content:t&&o(vC,{title:t.pageTitle??t.title,subTitle:t.description,action:t.action?o(t.action,{}):void 0,children:o(t.content,{})})})}function wC(e){const t=Math.max(0,e.value??0),r=Math.max(0,e.max??0),n=r===0?0:t/r*100;return o("div",{className:fe("h-[10px] overflow-hidden rounded-sm bg-light",e.className),children:o("div",{className:"h-full bg-primary transition-[width] duration-300",style:{width:`${n}%`}})})}function qf(e){const[t,r]=D.useState(null);q.progress.watch.with(e.id,e.interval??100,e.closeOnEnd??!0,e.timeout??3).useStream(r,{enabled:(e.id?.length??0)>0});const n=e.showMessage&&(t?.message??"").length>0;return b("div",{className:fe("flex flex-col gap-2",e.className),children:[o(wC,{value:t?.current??0,max:t?.total??1}),(n||e.showProgress)&&o("div",{className:"flex flex-row justify-end gap-2 text-sm text-gray-700",children:b("p",{children:[n&&t?.message,n&&e.showProgress&&" - ",e.showProgress&&yC(t)]})})]})}function yC(e){if(!e)return null;const t=Math.max(0,e.current),r=Math.max(1,e.total);return(100*t/r).toFixed(0)+"%"}function uv(e,t,r){const n=new Blob([r],{type:t}),a=document.createElement("a");a.href=URL.createObjectURL(n),a.download=e,document.body.appendChild(a),a.click(),setTimeout(()=>document.body.removeChild(a))}const lv=[{id:"logs",label:"Logs",title:"Logs",content:EC,keywords:["logs"]},{id:"config",label:"Config",title:"Config",content:_C,keywords:["config"]},{id:"rpc",label:"RPC Console",title:"RPC Console",content:AC,keywords:["rpc"]},{id:"progress-bars",label:"Progress bars",title:"Progress bars",content:SC,keywords:["progress","bars"]},{id:"modules",label:"Modules",title:"Modules",content:CC,keywords:["modules","services","graph","tree"]}];function xC(){const[e,t]=D.useState(lv[0].id);return o(fs,{tabs:lv,currTab:e,onTabChange:t,topbar:o(Br,{title:"Dev tools"})})}function _C(){return o("pre",{className:"whitespace-pre-wrap",children:JSON.stringify(Q,null,2)})}function CC(){let e=`digraph {
`;for(const[t,r]of Object.entries(Q.moduleGraph))for(const n of r)e+=`  "${t}" -> "${n}"
`;return e+="}",b(ie,{children:[b("p",{children:["Visualize it"," ",o(Ae,{href:"https://edotor.net/",target:"_blank",children:"here"}),"."]}),o("pre",{className:"select-all rounded-xs bg-light-blue p-1",children:e})]})}function SC(){const[e,t]=D.useState(null),[r,n]=D.useState(""),[a,i]=D.useState(10),[s,u]=D.useState(""),{data:l}=q.progress.getList.useQuery([],["progress"]),f=Wi({mutationFn:()=>q.progress.touch.call(r,a),onSuccess(){q.client.invalidateQueries(["progress"]),t(r),u(""),n("")}}),h=Wi({mutationFn:()=>q.progress.delete.call(e),onSuccess:()=>{q.client.invalidateQueries(["progress"]),t(null),u("")}}),m=Wi({mutationFn:()=>q.progress.advance.call(e,1,s),onSuccess:()=>q.client.invalidateQueries(["progress"])}),g=Wi({mutationFn:()=>q.progress.regress.call(e,1,s),onSuccess:()=>q.client.invalidateQueries(["progress"])});return b(ie,{children:[b(be,{children:[b(be.Header,{children:[o(be.HeaderCell,{children:"ID"}),o(be.HeaderCell,{children:"Progress"}),o(be.HeaderCell,{children:"Started"}),o(be.HeaderCell,{children:"Message"}),o(be.HeaderCell,{children:"Actions"})]}),b(be.Body,{children:[l.map(p=>b(be.Row,{children:[o(be.Cell,{children:p.id}),b(be.Cell,{children:[p.current," / ",p.total]}),o(be.Cell,{children:p.started}),o(be.Cell,{children:p.message}),o(be.Cell,{children:o(ns,{onClick:()=>t(p.id),children:"Edit"})})]},p.id)),l.length===0&&o(be.Row,{children:o(be.Cell,{colSpan:5,children:"There are no progress instances in the database."})})]})]}),o("h2",{className:"text-xl",children:"New Progress"}),b("div",{className:"flex flex-col items-start gap-2",children:[o(ne,{label:"ID",children:o(tt,{value:r,onChange:n,placeholder:"ID"})}),o(ne,{label:"Number of steps",children:o(It,{unit:"steps",value:a??10,onChange:i,placeholder:"10"})}),o(Ne,{onClick:()=>f.mutate(),disabled:r.length===0||!a,children:"Create"})]}),e&&b(ie,{children:[b("h2",{className:"text-xl",children:["Editing ID ",e]}),o(qf,{id:e,interval:100,showProgress:!0,showMessage:!0}),b("div",{className:"flex flex-row gap-2",children:[o(tt,{value:s,onChange:u,placeholder:"Message"}),o(Ne,{onClick:()=>g.mutate(),children:"-1"}),o(Ne,{onClick:()=>m.mutate(),children:"+1"}),o("div",{className:"flex-1"}),o(ns,{onClick:()=>t(null),children:"Done"}),o(Y1,{onClick:()=>h.mutate(),children:"Delete"})]})]})]})}function EC(){const[t,r]=D.useState(1),{data:{logs:n,total:a}}=q.logger.getList.with(20,t).useQuery({logs:[],total:0}),{data:i}=q.logger.enabled.useQuery(!1),s=()=>q.client.invalidateQueries(["logger"]),u=q.logger.start.useMutation({onSuccess:s}),l=q.logger.stop.useMutation({onSuccess:s}),f=q.logger.clear.useMutation({onSuccess:s}),h=Math.ceil(a/20);return b(ie,{children:[b("div",{className:"flex flex-row items-center gap-2",children:[i?o(ns,{onClick:()=>l.mutate(),children:"Stop logging"}):o(Ne,{onClick:()=>u.mutate(),children:"Start logging"}),o("div",{className:"flex-1"}),b(ns,{onClick:async function(){const m=await q.logger.print.call(null);uv("aggregator-logs.txt","text/plain",m)},children:["Download",o(Pm,{size:20})]}),o(Y1,{onClick:()=>f.mutate(),children:"Clear logs"})]}),h>1&&o("div",{className:"mx-auto",children:o(Um,{currPage:t,onChangePage:r,numPages:h})}),b(be,{children:[b(be.Header,{children:[o(be.HeaderCell,{children:"Date"}),o(be.HeaderCell,{children:"Level"}),o(be.HeaderCell,{children:"Message"}),o(be.HeaderCell,{children:"Context"})]}),b(be.Body,{children:[n.map(m=>b(be.Row,{children:[o(be.Cell,{className:"whitespace-nowrap",children:m.date}),o(be.Cell,{children:m.level}),o(be.Cell,{children:m.message}),o(be.Cell,{children:m.context})]},m.id)),n.length===0&&o(be.Row,{children:o(be.Cell,{colSpan:4,children:"There are no logs."})})]})]})]})}function AC(){const[e,t]=D.useState([]),[r,n]=D.useState(-1),[a,i]=D.useState(""),[s,u]=D.useState(null);async function l(){const[f,...h]=a.trim().split(" "),m=[];for(const g of h)g.trim().length!==0&&m.push(JSON.parse(g.trim()));try{const g=await q.batch([new de(f,m)]).call();u(g),i("")}catch(g){g instanceof Error?u(g.message):u(g)}finally{(e.length>0||a!==e[e.length-1])&&t(g=>[a].concat(g))}}return b(ie,{children:[b("div",{className:"flex flex-col gap-4",children:[o(ne,{label:"Command (<action> ...<args-json>)",children:o(tt,{value:r<0?a:e[r]??"",onChange:i,placeholder:'E.g. sources.getList "search" 10 2',autoComplete:"off",onKeyDown:function(f){switch(f.key){case"Enter":f.preventDefault(),l();break;case"ArrowUp":f.preventDefault(),n(h=>Math.min(h+1,e.length-1));break;case"ArrowDown":f.preventDefault(),n(h=>Math.max(h-1,-1));break}}})}),o(Ne,{className:"self-start",disabled:a.trim().length===0,onClick:l,children:"Submit"})]}),s!==null&&b(ie,{children:[o(mt,{}),o("pre",{className:"whitespace-pre-wrap rounded-xs bg-light-blue p-1",children:JSON.stringify(s,null,2)})]})]})}function Fa(e){const t=D.useMemo(function(){switch(e.color??"primary"){case"primary":return{className:"text-white bg-primary"};case"dark":return{className:"text-white bg-gray-900"};case"light":return{className:"text-gray-700 bg-gray-100"};case"accent":return{className:"text-white bg-accent"};default:return console.error("Invalid badge color"),{className:""}}},[e.color]),r=D.useMemo(function(){switch(e.size??"sm"){case"sm":return{className:"text-xs h-[18px] p-[5px] leading-4"};case"lg":return{className:"text-md h-6 px-[10px] leading-6"};default:return console.error("Invalid badge size"),{className:""}}},[e.size]);return o("div",{className:fe("inline-flex min-w-[18px] flex-row items-center justify-center gap-[10px] rounded-[12px]",t.className,r.className,e.className),children:e.children})}function ca(e){return o(Fa,{className:fe("font-normal",e.className),color:"accent",size:e.size,children:e.children??c.__("Premium","wp-rss-aggregator")})}function Pe(e){return b("div",{className:"flex h-full w-[350px] min-w-[350px] flex-col items-stretch border-r border-r-gray-200",children:[o("div",{className:"flex flex-row items-stretch border-b border-b-gray-200",children:e.tabs.map(({id:t,icon:r,label:n,minTier:a})=>o(DC,{id:t,icon:r,label:n,minTier:a??W.Free,isCurrent:t===e.currTab,onClick:e.onTabChange},t))}),o("div",{className:"relative flex-1 overflow-y-auto",children:e.children})]})}Pe.Section=function(e){const{className:t,...r}=e;return o("div",{className:fe("flex flex-col gap-4 p-8",t),...r})};function DC(e){const t=se().isLowerThan(e.minTier);return b("button",{className:fe("flex h-[90px] flex-1 cursor-pointer appearance-none flex-col items-center justify-center gap-2 border-b-[3px] border-r border-r-gray-200 text-center text-md last:border-r-0 hover:bg-light-blue focus-visible:bg-light-blue",e.isCurrent?"border-b-tertiary text-black":"border-b-transparent text-gray-700"),onClick:()=>e.onClick?.(e.id),children:[t?o(ca,{}):e.icon,o("span",{children:e.label})]})}function cv(e){const{context:t,refs:r,floatingStyles:n}=Ri({open:e.open,onOpenChange:e.onOpenChange,whileElementsMounted:e.autoUpdate?qo:void 0,placement:e.placement??"bottom-start",middleware:[$o(e.offset??4),zo({padding:e.padding??11})]}),{getReferenceProps:a,getFloatingProps:i}=Ui([Bi(t,{outsidePress:e.outsideClose??!0,escapeKey:e.escKeyClose??!0})]);return b(ie,{children:[e.control?.(r.setReference,a()),e.open&&o(Fi,{children:o(Xo,{context:t,children:o("div",{ref:r.setFloating,...i({className:fe("z-modals",e.className),style:n}),children:e.children})})})]})}const _l=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.0045 10.5549L12 16.0136L5.99548 10.5549L7.00449 9.44504L12 13.9864L16.9955 9.44504L18.0045 10.5549Z",fill:"currentColor"})),Cl=D.forwardRef(function(t,r){const{id:n,className:a="",disabled:i,onChange:s,...u}=t,l=Ln(),f=h=>{s?.(h.target.value)};return o("textarea",{ref:r,id:n??l.id,className:"form-textarea box-border inline-block rounded-xs border-gray-600 px-3 py-2 text-md text-black transition-shadow disabled:cursor-not-allowed disabled:border-gray-400 disabled:bg-gray-100 disabled:text-gray-600 placeholder:text-gray-700 focus:border-primary focus:ring-primary "+a,disabled:i??l.disabled,onChange:s&&f,...u})});function gs(e){const[t]=Object.entries(e.subjects)[0],[r,n]=Object.entries(e.operators)[0];for(const[a,i]of Object.entries(n.params))i.default;return{subjectId:t,operatorId:r,args:{}}}function dv(e,t){const r=e.subjects[t]??null;if(r===null)return{};const n={};for(const a of e.types[r.type]??[]){const i=e.operators[a]??null;i&&(n[a]=i)}return n}function Wf(e){const t=se().isLowerThan(e.minTier??W.Free);return o("div",{className:"relative p-4",style:{backgroundColor:t?"#f0f0f0":kC(e.theme)},children:o("img",{src:e.src,alt:e.alt,className:"mx-auto aspect-square"})})}function kC(e){switch(e){default:case"blue":return"#edeff6";case"orange":return"#fdf3e9";case"green":return"#f1f9f8"}}function NC(){return{enabled:!0,showItems:!0,conditions:[{isAnd:!0,exprs:[gs(Q.displays.condSys)]}]}}const Sl={layout:"list",legacy:!0,numItems:15,filters:[],enableTitles:!0,titleMaxLength:null,linkTitles:!0,enableSources:!0,sourcePrefix:"Source: ",linkSource:!0,enableDates:!0,datePrefix:"Date: ",dateFormat:"Y-m-d",useRelDateFormat:!1,enableAuthors:!0,authorPrefix:"By ",linksNoFollow:!0,linkTarget:"_blank",linkToEmbeds:!1,enablePagination:!0,paginationStyle:"numbered",enableImages:!0,linkImages:!0,imageWidth:0,imageHeight:0,fallbackToSrcImage:!1,enableExcerpts:!0,excerptMaxWords:50,excerptEllipsis:"...",enableReadMore:!0,readMoreText:"Read more",enableBullets:!0,bulletStyle:"default",enableAudioPlayer:!0,etStyle:"news",htmlClass:" ",gridUseImageAsBg:!1,gridFitImages:!0,gridEnableEmbeds:!0,gridEnableBorders:!0,gridItemClickable:!1,gridAlignLastToBottom:!0,gridMaxColumns:2,gridComponents:[{enabled:!0,type:"image"},{enabled:!0,type:"title"},{enabled:!0,type:"excerpt"},{enabled:!0,type:"audio"},{enabled:!0,type:"info"}],gridInfoComponents:[{enabled:!0,type:"date"},{enabled:!0,type:"source"},{enabled:!0,type:"author"}]},El=[{id:"list",name:c.__("List","wp-rss-aggregator"),tier:W.Free,graphic:function(){return D.createElement(Wf,{src:`${Q.urls.assets.imgs}/layouts/list.png`,alt:c.__("List","wp-rss-aggregator"),theme:"blue",minTier:W.Free},null)}},{id:"grid",name:c.__("Grid","wp-rss-aggregator"),tier:W.Basic,graphic:function(){return D.createElement(Wf,{src:`${Q.urls.assets.imgs}/layouts/grid.png`,alt:c.__("Grid","wp-rss-aggregator"),theme:"orange",minTier:W.Basic},null)}},{id:"et",name:c.__("Excerpt & Thumbnail","wp-rss-aggregator"),tier:W.Basic,graphic:function(){return D.createElement(Wf,{src:`${Q.urls.assets.imgs}/layouts/et.png`,alt:c.__("Excerpts","wp-rss-aggregator"),theme:"green",minTier:W.Basic},null)}}];function Al(e,t,r){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(r){if(!r(e[n],t[n]))return!1}else if(!Gf(e[n],t[n]))return!1;return!0}function Gf(e,t){return Array.isArray(e)&&Array.isArray(t)?Al(e,t):e instanceof Map&&t instanceof Map?Al(Array.from(e.entries()),Array.from(t.entries())):e instanceof Set&&t instanceof Set?Al(Array.from(e.values()),Array.from(t.values())):typeof e=="object"&&typeof t=="object"&&e!==null&&t!==null?Ba(e,t):e===t}function Ba(e,t){if(!e||!t||typeof e!="object"||typeof t!="object")return Gf(e,t);const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;const a=new Set(r.concat(n));for(const i of a)if(!Gf(e[i],t[i]))return!1;return!0}globalThis&&globalThis.__rest;const da=e=>e,Zf=e=>({_tag:"Left",value:e}),Dl=e=>({_tag:"Right",value:e}),TC=(e,t,r)=>r._tag==="Left"?e(r.value):t(r.value),fv={dimap:(e,t,r)=>n=>t(r(e(n))),first:e=>([t,r])=>[e(t),r],right:e=>t=>t._tag==="Left"?t:Dl(e(t.value)),wander:e=>t=>t.map(e)},HC={empty:()=>{},foldMap:(e,t)=>{for(let r=0;r<t.length;r++){const n=e(t[r]);if(n!=null)return n}}},IC={empty:()=>[],foldMap:(e,t)=>{let r=[];return t.forEach(n=>{r=r.concat(e(n))}),r}},Yf=e=>({dimap:(t,r,n)=>a=>n(t(a)),first:t=>([r,n])=>t(r),right:t=>r=>r._tag==="Left"?e.empty():t(r.value),wander:t=>r=>e.foldMap(t,r)}),Qf={Equivalence:{Equivalence:"Equivalence",Iso:"Iso",Lens:"Lens",Prism:"Prism",Traversal:"Traversal",Getter:"Getter",AffineFold:"AffineFold",Fold:"Fold",Setter:"Setter"},Iso:{Equivalence:"Iso",Iso:"Iso",Lens:"Lens",Prism:"Prism",Traversal:"Traversal",Getter:"Getter",AffineFold:"AffineFold",Fold:"Fold",Setter:"Setter"},Lens:{Equivalence:"Lens",Iso:"Lens",Lens:"Lens",Prism:"Prism",Traversal:"Traversal",Getter:"Getter",AffineFold:"AffineFold",Fold:"Fold",Setter:"Setter"},Prism:{Equivalence:"Prism",Iso:"Prism",Lens:"Prism",Prism:"Prism",Traversal:"Traversal",Getter:"AffineFold",AffineFold:"AffineFold",Fold:"Fold",Setter:"Setter"},Traversal:{Equivalence:"Traversal",Iso:"Traversal",Lens:"Traversal",Prism:"Traversal",Traversal:"Traversal",Getter:"Fold",AffineFold:"Fold",Fold:"Fold",Setter:"Setter"},Getter:{Equivalence:"Getter",Iso:"Getter",Lens:"Getter",Prism:"AffineFold",Traversal:"Fold",Getter:"Getter",AffineFold:"AffineFold",Fold:"Fold",Setter:void 0},AffineFold:{Equivalence:"AffineFold",Iso:"AffineFold",Lens:"AffineFold",Prism:"AffineFold",Traversal:"Fold",Getter:"AffineFold",AffineFold:"AffineFold",Fold:"Fold",Setter:void 0},Fold:{Equivalence:"Fold",Iso:"Fold",Lens:"Fold",Prism:"Fold",Traversal:"Fold",Getter:"Fold",AffineFold:"Fold",Fold:"Fold",Setter:void 0},Setter:{Equivalence:void 0,Iso:void 0,Lens:void 0,Prism:void 0,Traversal:void 0,Getter:void 0,AffineFold:void 0,Fold:void 0,Setter:void 0}},Yi=(e,t)=>{const r=t;return r._tag=e,r},gv=e=>(e._removable=!0,e);function dt(e,t,r){switch(arguments.length){case 2:{const n=(a,i)=>e(a,t(a,i));return n._tag=Qf[e._tag][t._tag],n._removable=t._removable||!1,n}default:{const n=Qf[e._tag][t._tag],a=(i,s)=>e(i,t(i,r(i,s)));return a._tag=Qf[n][r._tag],a._removable=r._removable||!1,a}}}const OC=Yi("Equivalence",(e,t)=>t),kl=(e,t)=>Yi("Iso",(r,n)=>r.dimap(e,t,n)),Ur=(e,t)=>Yi("Lens",(r,n)=>r.dimap(a=>[e(a),a],t,r.first(n))),Xf=(e,t)=>Yi("Prism",(r,n)=>r.dimap(e,a=>TC(da,t,a),r.right(n))),Jf=Yi("Traversal",(e,t)=>e.dimap(da,da,e.wander(t))),MC=e=>Yi("Getter",(t,r)=>t.dimap(e,da,r)),hv=(e,t,r)=>e(fv,t)(r),LC=(e,t,r)=>e(fv,()=>t)(r),VC=(e,t)=>e(Yf({}),da)(t),PC=(e,t)=>e(Yf(HC),da)(t),pv=(e,t)=>e(Yf(IC),r=>[r])(t),FC=kl(e=>e.map((t,r)=>[r,t]),e=>{const t=[...e].sort((n,a)=>n[0]-a[0]),r=[];for(let n=0;n<t.length;++n)(n===t.length-1||t[n][0]!==t[n+1][0])&&r.push(t[n][1]);return r}),mv=e=>Ur(t=>t[e],([t,r])=>Object.assign(Object.assign({},r),{[e]:t})),BC=e=>Ur(t=>{const r={};for(const n of e)r[n]=t[n];return r},([t,r])=>{const n=Object.assign({},r);for(const a of e)delete n[a];return Object.assign(n,t)}),vv=e=>Ur(t=>t[e],([t,r])=>{const n=r.slice();return n[e]=t,n}),eg=vv(0),tg=e=>Xf(t=>e(t)?Dl(t):Zf(t),da),hs=Symbol("__no_match__"),bv=tg(e=>e!==hs),wv=Symbol("__remove_me__"),rg=e=>gv(dt(Ur(t=>0<=e&&e<t.length?t[e]:hs,([t,r])=>{if(t===hs)return r;if(t===wv)return typeof r=="string"?r.substring(0,e)+r.substring(e+1):[...r.slice(0,e),...r.slice(e+1)];if(typeof r=="string")return e===0?t+r.substring(1):e===r.length?r.substring(0,e-1)+t:r.substring(0,e)+t+r.substring(e+1);{const n=r.slice();return n[e]=t,n}}),bv)),RC=Xf(e=>e===void 0?Zf(void 0):Dl(e),da),UC=e=>Xf(t=>e(t)?Dl(t):Zf(t),da),KC=e=>gv(dt(Ur(t=>{const r=t.findIndex(e);return r===-1?[hs,-1]:[t[r],r]},([[t,r],n])=>{if(t===hs)return n;if(t===wv)return[...n.slice(0,r),...n.slice(r+1)];const a=n.slice();return a[r]=t,a}),eg,bv)),zC=e=>dt(Ur(t=>{const r=t.map((n,a)=>e(n)?a:null).filter(n=>n!=null);return[r.map(n=>t[n]),r]},([[t,r],n])=>{const a=n.length,i=t.length;let s=0,u=0,l=0;const f=[];for(;s<a;)r[u]===s?(++u,l<i&&(f.push(t[l]),++l)):f.push(n[s]),++s;for(;l<i;)f.push(t[l++]);return f}),eg),$C=e=>Ur(t=>t===void 0?e:t,([t,r])=>t),jC=e=>dt(Ur(t=>{const r=pv(e,t);return[r,r.length]},([[t,r],n])=>{if(t.length!==r)throw new Error("cannot add/remove elements through partsOf");let a=0;return hv(e,()=>t[a++],n)}),eg),qC=e=>Ur(t=>e(t),([t,r])=>t),WC=e=>Ur(t=>t,([t,r])=>e(t)),GC=Ur(e=>{},([e,t])=>e===void 0?t:[e,...t]),ZC=Ur(e=>{},([e,t])=>e===void 0?t:[...t,e]),YC=dt(kl(e=>e.split(""),e=>e.join("")),Jf),QC=dt(kl(e=>e.split(/\b/),e=>e.join("")),Jf,tg(e=>!/\s+/.test(e)));class wt{constructor(t){this._ref=t}get _tag(){return this._ref._tag}get _removable(){return this._ref._removable}compose(t){return new wt(dt(this._ref,t._ref))}iso(t,r){return new wt(dt(this._ref,kl(t,r)))}lens(t,r){return new wt(dt(this._ref,Ur(t,([n,a])=>r(a,n))))}indexed(){return new wt(dt(this._ref,FC))}prop(t){return new wt(dt(this._ref,mv(t)))}path(...t){return t.length===1&&(t=t[0].split(".")),new wt(t.reduce((r,n)=>dt(r,mv(n)),this._ref))}pick(t){return new wt(dt(this._ref,BC(t)))}nth(t){return new wt(dt(this._ref,vv(t)))}filter(t){return new wt(dt(this._ref,zC(t)))}valueOr(t){return new wt(dt(this._ref,$C(t)))}partsOf(t){const r=typeof t=="function"?t(yv):t;return new wt(dt(this._ref,jC(r._ref)))}reread(t){return new wt(dt(this._ref,qC(t)))}rewrite(t){return new wt(dt(this._ref,WC(t)))}optional(){return new wt(dt(this._ref,RC))}guard_(){return t=>this.guard(t)}guard(t){return new wt(dt(this._ref,UC(t)))}at(t){return new wt(dt(this._ref,rg(t)))}head(){return new wt(dt(this._ref,rg(0)))}index(t){return new wt(dt(this._ref,rg(t)))}find(t){return new wt(dt(this._ref,KC(t)))}elems(){return new wt(dt(this._ref,Jf))}to(t){return new wt(dt(this._ref,MC(t)))}when(t){return new wt(dt(this._ref,tg(t)))}chars(){return new wt(dt(this._ref,YC))}words(){return new wt(dt(this._ref,QC))}prependTo(){return new wt(dt(this._ref,GC))}appendTo(){return new wt(dt(this._ref,ZC))}}const yv=new wt(OC);function XC(){return yv}function JC(e){return t=>VC(e._ref,t)}function eS(e){return t=>PC(e._ref,t)}function tS(e){return t=>pv(e._ref,t)}function rS(e){return t=>r=>hv(e._ref,t,r)}function nS(e){return t=>r=>LC(e._ref,t,r)}const xv=(e,t,r)=>(t.has(r)?t:t.set(r,e())).get(r),aS=new WeakMap;function mr(e,t){return((r,n,a)=>{const i=xv(()=>new WeakMap,aS,n);return xv(()=>{const s=t(XC());return Oe(u=>{const l=u(e);return l instanceof Promise?l.then(f=>_v(s,f)):_v(s,l)},(u,l,f)=>{const h=typeof f=="function"?rS(s)(f):nS(s)(f),m=u(e);return l(e,m instanceof Promise?m.then(h):h(m))})},i,a)})(0,e,t)}const _v=(e,t)=>e._tag==="Traversal"?tS(e)(t):e._tag==="Prism"?eS(e)(t):JC(e)(t);function Cv(){return{id:null,name:c.__("New display","wp-rss-aggregator"),sources:[],folders:[],settings:Sl}}const Sv=Oe(null),Qi=Oe(function(e){return e(Sv)??Cv()},function(e,t,r){const n=e(Ev);return t(ng,!Ba(n,r)),t(Sv,r),r}),Ev=Oe(null),ng=Oe(!1),iS=mr(Qi,e=>e.prop("name")),oS=mr(Qi,e=>e.prop("sources")),sS=mr(Qi,e=>e.prop("folders")),Av=mr(Qi,e=>e.prop("settings")),Dv=Oe("desktop"),kv=Oe("settings"),Nv={},ue={useDisplay:()=>ce(Qi),useDisplayName:()=>ce(iS),useDisplaySources:()=>ce(oS),useDisplayFolders:()=>ce(sS),useDisplaySettings:()=>ce(Av),usePreviewDevice:()=>ce(Dv),useCurrTab:()=>ce(kv),useIsDirty:()=>ce(ng),useDisplaySetting(e){return Nv[e]??=mr(Av,t=>t.prop(e)),ce(Nv[e])},useLoadDisplay:()=>{const e=ue.useReset();return async t=>{const r=await q.displays.getById.call(t);r&&e(r)}},useReset(){const[,e]=ce(Qi),[,t]=ce(Ev),[,r]=ce(kv),[,n]=ce(Dv),[,a]=ce(ng);return(i=Cv())=>{const s=structuredClone(i);t(s),e(s),a(!1),r("settings"),n("desktop")}}};function Tv(e){switch(e){case"list":case"et":case"grid":return!0;default:return!1}}function uS(e){return Tv(e)?e:"list"}const lS=c._x("Aggregator","The title of pages created from the Display edit page 'Embed' button.","wp-rss-aggregator");function cS(){const[e]=ue.useDisplay(),t=D.useRef(null),[r,n]=D.useState(!1),a=()=>n(g=>!g),[i,s]=D.useState(!1),u=al(1500,()=>s(!1)),l=q.renderer.embed.useMutation(),f=`[wp-rss-aggregator id="${e.id}"]`;D.useEffect(function(){return()=>u.stop()},[]);function h(){window.isSecureContext?navigator.clipboard.writeText(f):console.log("Cannot copy to clipboard because the page is not secure."),s(!0),u.start()}function m(g){e.id&&l.mutate([e.id,lS,g],{onSuccess(p){p&&window.open(Q.urls.wp.admin+"/post.php?action=edit&post="+p,"_blank")}})}return b(ie,{children:[o(cv,{className:"w-[280px] rounded-xs bg-white text-gray-900 shadow-md shadow-gray-medium",open:r,onOpenChange:n,control:(g,p)=>b(as,{ref:g,...p,className:fe("rounded-xs disabled:opacity-70 !bg-[#2A6560] border border-white/10"),onClick:a,disabled:!e.id,"data-open":r,children:[o("span",{children:c.__("Embed","wp-rss-aggregator")}),o(_l,{width:18,height:18})]}),children:b("div",{className:"flex flex-col items-stretch overflow-hidden rounded-xs shadow-lg shadow-gray-400",children:[b(Hv,{title:c.__("Create a new page or post.","wp-rss-aggregator"),children:[b("div",{className:"flex flex-row gap-4",children:[o(St,{size:"sm",className:"whitespace-nowrap",onClick:()=>m("page"),children:c.__("Create a Page","wp-rss-aggregator")}),o(St,{size:"sm",className:"whitespace-nowrap",onClick:()=>m("post"),children:c.__("Create a Post","wp-rss-aggregator")})]}),o("p",{className:"text-gray-700",children:c.__("We’ll set up a new one and embed an Aggregator block with your display.","wp-rss-aggregator")})]}),o(mt,{}),b(Hv,{title:c.__("Or add your display to existing posts or pages.","wp-rss-aggregator"),children:[o("p",{className:"text-sm",children:o(We,{urls:{0:Q.urls.website.docs},linkProps:{target:"_blank"},children:c.__("Type [/RSS Aggregator][0] in the page or post editor and select this display.","wp-rss-aggregator")})}),o("p",{className:"text-sm font-bold",children:c._x("or","Display editor, embed button popout","wp-rss-aggregator")}),o("p",{className:"text-sm",children:c.__("Copy and paste the shortcode below:","wp-rss-aggregator")}),o(Cl,{ref:t,value:f,className:"resize-none",onClick:()=>t.current?.select(),rows:2,readOnly:!0}),o("div",{children:o(Ne,{onClick:h,disabled:i,children:i?c.__("Copied","wp-rss-aggregator"):c.__("Copy","wp-rss-aggregator")})})]})]})}),r&&o("div",{className:"fixed inset-0 bg-gray-medium-overlay",onClick:()=>n(!1)})]})}function Hv({title:e,children:t}){return b("div",{className:"flex flex-col items-stretch gap-3 p-8 text-sm leading-4 text-gray-700",children:[o("div",{className:"text-lg font-semibold leading-5 text-gray-900",children:e}),t]})}const Kr=D.forwardRef(function(t,r){const{size:n="md",active:a=!1,className:i,icon:s,...u}=t,l=gS(n),f=Jr(),h=dS(n);return o(wn,{value:h,children:o(oa,{ref:en(r,f.ref),className:fe("flex flex-col items-center justify-center p-0",l.className,i),size:"none",variant:a?"secondary":"text",children:s,role:"button",...u,...f.props()})})});function dS(e){switch(e){case"sm":return 18;case"md":return 24;case"lg":return 30}}const fS={sm:{className:"h-[24px] w-[24px]"},md:{className:"h-[32px] w-[32px]"},lg:{className:"h-[36px] w-[36px]"}};function gS(e){const t=fS[e];return t||(console.error(`Invalid IconButton size: ${e}`),{className:""})}const hS=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.22217 7.5H17.7777C18.0539 7.5 18.2777 7.72386 18.2777 8V15.6111H5.72217V8C5.72217 7.72386 5.94602 7.5 6.22217 7.5ZM4.22217 8C4.22217 6.89543 5.1176 6 6.22217 6H17.7777C18.8823 6 19.7777 6.89543 19.7777 8V16H20.5C21.3284 16 22 16.6716 22 17.5H2C2 16.6716 2.67157 16 3.5 16H4.22217V8Z",fill:"currentColor"})),pS=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 5.5H15C15.2761 5.5 15.5 5.72386 15.5 6V18C15.5 18.2761 15.2761 18.5 15 18.5H9C8.72386 18.5 8.5 18.2761 8.5 18V6C8.5 5.72386 8.72386 5.5 9 5.5ZM7 6C7 4.89543 7.89543 4 9 4H15C16.1046 4 17 4.89543 17 6V18C17 19.1046 16.1046 20 15 20H9C7.89543 20 7 19.1046 7 18V6ZM13 16H11V17.5H13V16Z",fill:"currentColor"})),mS=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 5.5H17C17.2761 5.5 17.5 5.72386 17.5 6V18C17.5 18.2761 17.2761 18.5 17 18.5H7C6.72386 18.5 6.5 18.2761 6.5 18V6C6.5 5.72386 6.72386 5.5 7 5.5ZM5 6C5 4.89543 5.89543 4 7 4H17C18.1046 4 19 4.89543 19 6V18C19 19.1046 18.1046 20 17 20H7C5.89543 20 5 19.1046 5 18V6ZM14 16H10V17.5H14V16Z",fill:"currentColor"}));function vS(){const[e,t]=ue.usePreviewDevice(),r=n=>()=>t(n);return b("div",{className:"flex flex-row items-center justify-center gap-4",children:[o(lt,{content:c.__("Preview desktop","wp-rss-aggregator"),children:o(Kr,{size:"lg",icon:o(hS,{}),active:e==="desktop",onClick:r("desktop")})}),o(lt,{content:c.__("Preview tablet","wp-rss-aggregator"),children:o(Kr,{size:"lg",icon:o(mS,{}),active:e==="tablet",onClick:r("tablet")})}),o(lt,{content:c.__("Preview phone","wp-rss-aggregator"),children:o(Kr,{size:"lg",icon:o(pS,{}),active:e==="phone",onClick:r("phone")})})]})}const ag=D.createContext({enabled:!1,animate:!0});function De(e){const{className:t,children:r,enabled:n,animate:a,...i}=e,s=D.useContext(ag);return n??s.enabled?o("div",{className:fe("rounded-sm bg-gray-100 data-[animate=true]:animate-pulse",t),"data-animate":a??s.animate,...i}):r}De.Context=function(t){const r={enabled:t.enabled??!1,animate:t.animate??!0};return o(ag.Provider,{value:r,children:t.children})},De.Xs=function({className:t,...r}){return o(De,{className:fe("h-2",t),...r})},De.Sm=function({className:t,...r}){return o(De,{className:fe("h-3",t),...r})},De.Md=function({className:t,...r}){return o(De,{className:fe("h-5",t),...r})},De.Lg=function({className:t,...r}){return o(De,{className:fe("h-10",t),...r})},De.Xl=function({className:t,...r}){return o(De,{className:fe("h-14",t),...r})},De.Reveal=function(t){return D.useContext(ag)?null:t.children??null};function on(e,t,r){const[n,a]=D.useState(r??e);return D.useEffect(()=>{const i=setTimeout(()=>{a(e)},t);return()=>{clearTimeout(i)}},[e,t]),n}function ig(){const e=D.useRef(null),[t]=ue.useDisplay(),r=t.sources.length+t.folders.length>0,n=on(t,250),{data:a,isFetching:i}=q.renderer.renderDisplay.with(n).useQuery("",["display-render",n],{enabled:r,refetchOnWindowFocus:!0,retry:!1});return D.useEffect(()=>{e.current&&e.current.querySelectorAll("a").forEach(s=>{s.addEventListener("click",u=>{!(u.target instanceof HTMLAnchorElement)||u.ctrlKey||u.preventDefault()})})},[a]),r?o("div",{ref:e,className:fe("wpra-display-preview",i&&"animate-pulse"),dangerouslySetInnerHTML:{__html:a??""}}):o(bS,{num:t.settings.numItems??9})}function bS(e){return o("div",{className:"grid grid-cols-3 gap-4",children:Array.from({length:e.num}).map((t,r)=>b("div",{className:"flex flex-col items-stretch border border-gray-200 bg-white",children:[o("div",{className:"aspect-[2.1] w-full bg-light"}),b("div",{className:"flex flex-col items-stretch gap-3 p-4",children:[o(De.Md,{enabled:!0,className:"w-1/2"}),b("div",{className:"flex flex-col items-stretch gap-1",children:[o(De.Sm,{enabled:!0,className:"mr-4"}),o(De.Sm,{enabled:!0,className:"mr-6"}),o(De.Sm,{enabled:!0,className:"mr-20"})]}),o(De.Xs,{enabled:!0,className:"w-1/3"})]})]},r))})}function wS(){const[e]=ue.useDisplaySources(),[t]=ue.useDisplayFolders(),r=e.length+t.length>0;return b("div",{className:"bg-gray-very-light relative flex max-h-full min-h-full flex-col items-stretch gap-8 overflow-auto p-8",children:[o(vS,{}),o(Qd,{children:o(xS,{})}),!r&&o(yS,{})]})}function yS(){const[,e]=D.useState(0);D.useEffect(()=>e(1),[]);const t=document.getElementById(sv);return t===null?null:Xt.createPortal(o("div",{className:"absolute inset-0 flex flex-col items-center justify-center bg-light-overlay",children:o(yf,{className:"w-[360px]",children:b("div",{className:"flex flex-col items-center gap-4 text-center",children:[o(xr,{size:64,className:"text-accent"}),o("p",{className:"text-2xl font-bold leading-8 text-primary",children:c.__("Start by selecting a source","wp-rss-aggregator")}),o(Ae,{variant:"secondary",href:"https://www.wprssaggregator.com/help/creating-a-display/",className:"text-md",children:c.__("Getting started guide","wp-rss-aggregator")})]})})}),t)}function xS(){const[e]=ue.usePreviewDevice();switch(e){case"desktop":return o(_S,{});case"tablet":return o(CS,{});case"phone":return o(SS,{});default:return console.warn(`Unknown device: ${e}`),null}}function _S(){return o("div",{className:"rounded-sm border border-gray-200 bg-white p-8",children:o(ig,{})})}function CS(){return o("div",{className:"flex flex-1 flex-col items-center",children:o("div",{className:"h-[1200px] w-[900px] rounded-[38px] bg-[#3D3D3D] p-8",children:o("div",{className:"box-border h-full rounded-sm bg-white p-4",children:o("div",{className:"box-border h-full overflow-auto p-4",children:o(ig,{})})})})})}function SS(){return o("div",{className:"flex flex-1 flex-col items-center",children:o("div",{className:"h-[750px] w-[400px] rounded-[58px] bg-[#3D3D3D] p-4",children:b("div",{className:"box-border flex h-full flex-col rounded-[40px] bg-white p-4 pt-0",children:[o(ES,{className:"mt-[-4px] self-center"}),o("div",{className:"box-border h-full overflow-auto p-4",children:o(ig,{})})]})})})}function ES(e){return b("svg",{xmlns:"http://www.w3.org/2000/svg",width:"121",height:"27",viewBox:"0 0 121 27",fill:"none",...e,children:[o("path",{d:"M0.5 0.912109H120.5C120.5 15.2715 108.859 26.9121 94.5 26.9121H26.5C12.1406 26.9121 0.5 15.2715 0.5 0.912109Z",fill:"#393939"}),o("rect",{x:"31.5",y:"10.9121",width:"54",height:"4",rx:"2",fill:"#393939"}),o("circle",{cx:"91.5",cy:"12.9121",r:"2",fill:"#393939"})]})}const og=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.4451 18.0045L7.98645 12L13.4451 5.9955L14.555 7.00451L10.0136 12L14.555 16.9955L13.4451 18.0045Z",fill:"currentColor"}));function Sr(e,t,r=!0,n=!1){D.useEffect(function(){if(!t)return;const a=function(i){if(!n&&document.activeElement!==document.body)return;let s;Array.isArray(e)?s=e:s=[e];for(const u of s){let l;if(typeof u=="string"?l={key:u}:l=u,i.key===l.key&&(l.ctrl===void 0||l.ctrl===i.ctrlKey)&&(l.shift===void 0||l.shift===i.shiftKey)&&(l.alt===void 0||l.alt===i.altKey)){t(i),r&&i.preventDefault();return}}};return n?window.addEventListener("keydown",a):document.addEventListener("keydown",a),function(){n?window.removeEventListener("keydown",a):document.removeEventListener("keydown",a)}},[e,t])}function AS(e){const t=se().isLowerThan(e.minTier??W.Free);return Sr("Escape",e.onExit),b("div",{className:"flex h-full flex-col items-stretch",children:[o("div",{className:"flex flex-row items-center justify-start border-b border-gray-200 bg-light-blue px-8 py-6 text-md leading-4",children:b("button",{className:"flex h-9 flex-row items-center gap-2 rounded-xs pl-2 pr-3 ring-primary hover:bg-gray-100 focus-visible:ring-2",onClick:e.onExit,children:[o(og,{}),t&&o(ca,{}),o("span",{className:"text-md font-semibold leading-4",children:e.name})]})}),e.render?.(),t&&b(ie,{children:[o("div",{className:"flex-1"}),o(Pe.Section,{children:o(an.BasedOnTier,{})})]})]})}function si(e){return o("div",{className:"grid gap-4",style:{gridTemplateColumns:`repeat(${e.columns}, minmax(0, 1fr))`},children:e.children})}si.Item=D.forwardRef(function(e,t){const{icon:r,className:n,children:a,selected:i=!1,padding:s="md",minTier:u,disabled:l,...f}=e,h=se().isLowerThan(u??W.Free);return b("button",{ref:t,className:fe("group relative rounded-xs border border-gray-200 bg-white text-black ring-primary focus-visible:ring-2 disabled:cursor-not-allowed data-[selected=true]:ring-2",s==="sm"&&"p-2",s==="md"&&"px-7 py-[22px]",n),disabled:l,"data-selected":i,...f,children:[b("span",{className:"flex flex-col items-center gap-[10px] group-disabled:saturate-0",children:[o(wn,{value:24,children:r}),o("span",{className:"text-sm leading-4",children:a})]}),h&&o(lt,{content:c.__("Premium","wp-rss-aggregator"),children:o(lt.Anchor,{children:(m,g)=>o(os,{ref:m,className:"absolute right-[1px] top-[1px] text-accent",size:18,...g})})})]})});function Iv(e){const t=e.groups?.find(r=>r.id===e.current);return b("div",{className:"flex h-full flex-col",children:[!e.current&&b("div",{className:"flex flex-1 flex-col gap-8 overflow-y-auto p-8",children:[e.before,o(si,{columns:2,children:e.groups?.map(r=>e.buttonRender?.(r)??o(si.Item,{icon:r.icon,minTier:r.minTier,onClick:()=>e.onSelectGroup?.(r.id),children:r.name},r.id))})]}),t&&o("div",{className:"flex h-full flex-1 flex-col gap-8 overflow-auto",children:o(AS,{name:t.name,render:t.render,minTier:t.minTier,onExit:()=>e.onSelectGroup?.("")})}),e.children]})}function DS(e){const[t,r]=D.useState(!1);function n(){r(!0),e.onDismiss?.()}return t?null:o("div",{className:"relative bg-gray-100",children:b("div",{className:"flex flex-row items-start justify-center p-8",children:[o(fr,{className:"mr-2 flex-shrink-0 text-black",width:16,height:16}),o("span",{className:"text-sm leading-4 text-gray-700",children:e.children}),o("button",{className:"absolute right-2 top-2 appearance-none rounded-full focus-visible:ring focus-visible:ring-primary",onClick:n,children:o(vl,{})})]})})}const sg=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.99548 13.4451L12 7.98642L18.0045 13.4451L16.9955 14.555L12 10.0136L7.00449 14.555L5.99548 13.4451Z",fill:"currentColor"})),Ov=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Mv=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",ug=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return Mv(r.overflowY,t)||Mv(r.overflowX,t)||(n=>{const a=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!a&&(a.clientHeight<n.scrollHeight||a.clientWidth<n.scrollWidth)})(e)}return!1},Nl=(e,t,r,n,a,i,s,u)=>i<e&&s>t||i>e&&s<t?0:i<=e&&u<=r||s>=t&&u>=r?i-e-n:s>t&&u<r||i<e&&u>r?s-t+a:0,kS=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},Lv=(e,t)=>{var r,n,a,i;if(typeof document>"u")return[];const{scrollMode:s,block:u,inline:l,boundary:f,skipOverflowHiddenElements:h}=t,m=typeof f=="function"?f:C=>C!==f;if(!Ov(e))throw new TypeError("Invalid target");const g=document.scrollingElement||document.documentElement,p=[];let w=e;for(;Ov(w)&&m(w);){if(w=kS(w),w===g){p.push(w);break}w!=null&&w===document.body&&ug(w)&&!ug(document.documentElement)||w!=null&&ug(w,h)&&p.push(w)}const y=(n=(r=window.visualViewport)==null?void 0:r.width)!=null?n:innerWidth,_=(i=(a=window.visualViewport)==null?void 0:a.height)!=null?i:innerHeight,{scrollX:S,scrollY:H}=window,{height:L,width:O,top:j,right:R,bottom:K,left:M}=e.getBoundingClientRect();let F=u==="start"||u==="nearest"?j:u==="end"?K:j+L/2,U=l==="center"?M+O/2:l==="end"?R:M;const k=[];for(let C=0;C<p.length;C++){const A=p[C],{height:I,width:T,top:V,right:P,bottom:z,left:Z}=A.getBoundingClientRect();if(s==="if-needed"&&j>=0&&M>=0&&K<=_&&R<=y&&j>=V&&K<=z&&M>=Z&&R<=P)return k;const re=getComputedStyle(A),te=parseInt(re.borderLeftWidth,10),oe=parseInt(re.borderTopWidth,10),xe=parseInt(re.borderRightWidth,10),ge=parseInt(re.borderBottomWidth,10);let le=0,ve=0;const pe="offsetWidth"in A?A.offsetWidth-A.clientWidth-te-xe:0,Le="offsetHeight"in A?A.offsetHeight-A.clientHeight-oe-ge:0,Fe="offsetWidth"in A?A.offsetWidth===0?0:T/A.offsetWidth:0,qe="offsetHeight"in A?A.offsetHeight===0?0:I/A.offsetHeight:0;if(g===A)le=u==="start"?F:u==="end"?F-_:u==="nearest"?Nl(H,H+_,_,oe,ge,H+F,H+F+L,L):F-_/2,ve=l==="start"?U:l==="center"?U-y/2:l==="end"?U-y:Nl(S,S+y,y,te,xe,S+U,S+U+O,O),le=Math.max(0,le+H),ve=Math.max(0,ve+S);else{le=u==="start"?F-V-oe:u==="end"?F-z+ge+Le:u==="nearest"?Nl(V,z,I,oe,ge+Le,F,F+L,L):F-(V+I/2)+Le/2,ve=l==="start"?U-Z-te:l==="center"?U-(Z+T/2)+pe/2:l==="end"?U-P+xe+pe:Nl(Z,P,T,te,xe+pe,U,U+O,O);const{scrollLeft:zt,scrollTop:Ce}=A;le=Math.max(0,Math.min(Ce+le/qe,A.scrollHeight-I/qe+Le)),ve=Math.max(0,Math.min(zt+ve/Fe,A.scrollWidth-T/Fe+pe)),F+=Ce-le,U+=zt-ve}k.push({el:A,top:le,left:ve})}return k},NS=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function TS(e,t){if(!e.isConnected||!(a=>{let i=a;for(;i&&i.parentNode;){if(i.parentNode===document)return!0;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1})(e))return;const r=(a=>{const i=window.getComputedStyle(a);return{top:parseFloat(i.scrollMarginTop)||0,right:parseFloat(i.scrollMarginRight)||0,bottom:parseFloat(i.scrollMarginBottom)||0,left:parseFloat(i.scrollMarginLeft)||0}})(e);if((a=>typeof a=="object"&&typeof a.behavior=="function")(t))return t.behavior(Lv(e,t));const n=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:a,top:i,left:s}of Lv(e,NS(t))){const u=i-r.top+r.bottom,l=s-r.left+r.right;a.scroll({top:u,left:l,behavior:n})}}function or(e){const t=D.useId(),r=D.useRef(null),n=se().isLowerThan(e.minTier??W.Free),[a,i]=D.useState(e.defaultOpen??!1);D.useImperativeHandle(e.impRef,function(){return{setOpen:i}},[i]);const s=function(){let u;i(l=>u=!l),requestAnimationFrame(()=>{u&&r.current&&TS(r.current,{behavior:"smooth",scrollMode:"if-needed",block:"end"})})};return b("div",{className:fe("sidebar-accordion",e.bordered&&"border-b border-b-gray-200",e.className),children:[b("button",{id:t,className:fe("flex w-full cursor-pointer appearance-none flex-row items-center justify-between gap-1 py-4 pl-8 pr-5 text-left text-md font-semibold leading-5 focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary",a?"bg-light-blue":"bg-white",e.bordered&&"border-t border-t-gray-200"),onClick:s,"data-open":a,children:[b("span",{className:"line-clamp-1 inline-block max-w-[90%] overflow-hidden text-ellipsis whitespace-nowrap",children:[n&&o(os,{className:"align-text-bottom leading-4 text-accent",size:16}),o(wn,{value:20,children:e.icon&&e.icon}),b("span",{className:"ml-1 block",children:[e.label," ",e.tooltip&&o(lt,{content:e.tooltip})]})]}),e.right??(a?o(sg,{}):o(_l,{}))]}),o("div",{ref:r,className:fe("flex flex-col gap-4 bg-white",a?"block":"hidden",e.padded&&"p-8"),children:e.children})]})}const HS=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 10C7.10457 10 8 9.10457 8 8C8 6.89543 7.10457 6 6 6C4.89543 6 4 6.89543 4 8C4 9.10457 4.89543 10 6 10ZM20 8.75H11.1111V7.25H20V8.75ZM20 15.75H11.1111V14.25H20V15.75ZM8 15C8 16.1046 7.10457 17 6 17C4.89543 17 4 16.1046 4 15C4 13.8954 4.89543 13 6 13C7.10457 13 8 13.8954 8 15Z",fill:"currentColor"})),IS=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 5.30627V5.99999V9.99999H5V6.6937L4.15811 6.97433L3.84189 6.02565L5.34189 5.52565L6 5.30627ZM20 8.74999H11.1111V7.24999H20V8.74999ZM20 15.75H11.1111V14.25H20V15.75ZM4.56379 12.4377C5.04569 12.2947 5.79284 12.194 6.26563 12.8047C6.51928 13.1323 6.5517 13.5514 6.50006 13.8945C6.42442 14.3971 6.09705 15.0185 5.82234 15.5399C5.73494 15.7058 5.65288 15.8616 5.58594 16.0002H6.50006V17.0002H3.81641C4.06911 16.5632 4.30285 16.1626 4.53271 15.7687C4.77544 15.3527 5.01383 14.9441 5.26563 14.5079C5.3924 14.2883 5.63528 13.7237 5.42579 13.4531C5.33607 13.3372 5.09818 13.2114 4.75782 13.3125C4.45022 13.4038 4.17486 13.6501 3.98387 13.8208L3.97674 13.8272L3.8463 12.7449C4.05765 12.6308 4.30649 12.5142 4.56379 12.4377Z",fill:"currentColor"}));function OS(){const[e]=ue.useDisplaySetting("enableBullets"),[t,r]=ue.useDisplaySetting("bulletStyle"),n=()=>r("default"),a=()=>r("numbers");return o(ne,{label:c.__("Bullet style","wp-rss-aggregator"),disabled:!e,inline:!0,children:b("div",{className:"flex flex-row items-center gap-1",children:[o(Kr,{icon:o(HS,{}),active:t==="default",onClick:n,disabled:!e}),o(Kr,{icon:o(IS,{}),active:t==="numbers",onClick:a,disabled:!e})]})})}function Vv(e,t){const r=D.useRef(null);return D.useEffect(()=>{r.current&&(r.current.indeterminate=(t??!1)&&(e??!1))},[t,e]),[r,a=>i=>{a?.(i.target.checked,i.target.indeterminate)}]}const ye=D.forwardRef(function(t,r){const{id:n,disabled:a,onChange:i,indeterminate:s,className:u,...l}=t,f=Ln(n,a),[h,m]=Vv(s,t.checked);function g(p){p.key==="Enter"&&(p.preventDefault(),p.currentTarget.click())}return o("input",{ref:en(r,h),type:"checkbox",className:fe("border-1 form-checkbox h-5 w-5 cursor-pointer rounded-sm border-gray-700 text-primary transition-shadow focus:border-2 focus:border-primary focus:ring-[none] checked:focus:ring-primary disabled:cursor-not-allowed disabled:border-gray-500 disabled:bg-light-blue disabled:text-light-blue disabled:checked:bg-none disabled:hover:border-gray-500",u),onChange:m(i),onKeyDown:g,...l,...f})});function MS(){const[e,t]=ue.useDisplaySetting("enableBullets");return o(ne,{label:c.__("Show bullets","wp-rss-aggregator"),inline:!0,children:o(ye,{checked:e,onChange:t})})}function LS({component:e,...t}){return e?D.createElement(e,t):null}const lg=D.createContext({selected:"",onSelect:()=>null});function Ra(e){const t=D.useMemo(()=>({selected:e.selected,onSelect:e.onSelect}),[e.selected,e.onSelect]);return o(si,{columns:e.columns,children:o(lg.Provider,{value:t,children:e.children})})}Ra.Option=function(t){const{selected:r,onSelect:n}=D.useContext(lg);return o(si.Item,{icon:t.icon,onClick:()=>n(t.value),selected:t.value===r,disabled:t.disabled,children:t.label})},Ra.Graphical=function(t){const{selected:r,onSelect:n}=D.useContext(lg),a=se().isLowerThan(t.minTier??W.Free),i=t.disabled||a;return b("label",{className:"flex cursor-pointer flex-col gap-2 text-center",children:[o(si.Item,{selected:t.value===r,onClick:()=>n(t.value),disabled:i,minTier:t.minTier,padding:"none",children:o(LS,{component:t.graphic,width:"100%",height:null,className:fe("aspect-square",i&&"saturate-0")})}),o("span",{className:fe("mt-1 leading-4",i?"text-gray-600":"text-gray-900",t.labelClassName),children:t.label})]})};const VS=[{value:"news",label:c.__("News","wp-rss-aggregator"),graphic:()=>o("img",{src:Q.urls.assets.imgs+"/displays/news.svg",alt:c.__("Magazine style","wp-rss-aggregator")})},{value:"magazine",label:c.__("Magazine","wp-rss-aggregator"),graphic:()=>o("img",{src:Q.urls.assets.imgs+"/displays/magazine.svg",alt:c.__("Magazine style","wp-rss-aggregator")})},{value:"wrapped",label:c.__("Wrapped","wp-rss-aggregator"),graphic:()=>o("img",{src:Q.urls.assets.imgs+"/displays/wrapped.svg",alt:c.__("Magazine style","wp-rss-aggregator")})},{value:"blog",label:c.__("Blog","wp-rss-aggregator"),graphic:()=>o("img",{src:Q.urls.assets.imgs+"/displays/blog.svg",alt:c.__("Magazine style","wp-rss-aggregator")})}];function PS(){const[e,t]=ue.useDisplaySetting("etStyle");return b("div",{className:"flex flex-col gap-4",children:[o(ai,{children:c.__("Style","wp-rss-aggregator")}),o(Ra,{columns:2,selected:e??"",onSelect:t,children:VS.map(r=>o(Ra.Graphical,{value:r.value,label:r.label,graphic:r.graphic,labelClassName:"text-md"},r.value))})]})}function FS(){const[e,t]=ue.useDisplaySetting("htmlClass");return o(ne,{label:c.__("Custom HTML class name","wp-rss-aggregator"),help:c.__("Separate multiple classes with spaces.","wp-rss-aggregator"),children:o(tt,{value:e,onChange:t,className:"w-full"})})}function BS(){const[e,t]=ue.useDisplaySetting("gridAlignLastToBottom");return o(ne,{label:c.__("Align last element to bottom","wp-rss-aggregator"),inline:!0,children:o(ye,{checked:e,onChange:t})})}const RS=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 4.99976H8V6.99976H10V4.99976ZM10 10.9998H8V12.9998H10V10.9998ZM8 16.9998H10V18.9998H8V16.9998ZM16 4.99976H14V6.99976H16V4.99976ZM14 10.9998H16V12.9998H14V10.9998ZM16 16.9998H14V18.9998H16V16.9998Z",fill:"currentColor"}));function Pv(e,t,r){if(t<0||r<0||t>=e.length||r>=e.length)return;const n=e[t];e[t]=e[r],e[r]=n}var Fv={exports:{}};/**!
 * Sortable 1.15.2
 * @author	RubaXa   <trash@rubaxa.org>
 * @author	owenm    <owen23355@gmail.com>
 * @license MIT
 */function Bv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Bn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bv(Object(r),!0).forEach(function(n){US(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Tl(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Tl=function(t){return typeof t}:Tl=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tl(e)}function US(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sn(){return sn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sn.apply(this,arguments)}function KS(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function zS(e,t){if(e==null)return{};var r=KS(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $S(e){return jS(e)||qS(e)||WS(e)||GS()}function jS(e){if(Array.isArray(e))return cg(e)}function qS(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function WS(e,t){if(e){if(typeof e=="string")return cg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cg(e,t)}}function cg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function GS(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ZS="1.15.2";function fa(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var ga=fa(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),ps=fa(/Edge/i),Rv=fa(/firefox/i),ms=fa(/safari/i)&&!fa(/chrome/i)&&!fa(/android/i),Uv=fa(/iP(ad|od|hone)/i),Kv=fa(/chrome/i)&&fa(/android/i),zv={capture:!1,passive:!1};function rt(e,t,r){e.addEventListener(t,r,!ga&&zv)}function Qe(e,t,r){e.removeEventListener(t,r,!ga&&zv)}function Hl(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function YS(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function un(e,t,r,n){if(e){r=r||document;do{if(t!=null&&(t[0]===">"?e.parentNode===r&&Hl(e,t):Hl(e,t))||n&&e===r)return e;if(e===r)break}while(e=YS(e))}return null}var $v=/\s+/g;function Ft(e,t,r){if(e&&t)if(e.classList)e.classList[r?"add":"remove"](t);else{var n=(" "+e.className+" ").replace($v," ").replace(" "+t+" "," ");e.className=(n+(r?" "+t:"")).replace($v," ")}}function Se(e,t,r){var n=e&&e.style;if(n){if(r===void 0)return document.defaultView&&document.defaultView.getComputedStyle?r=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(r=e.currentStyle),t===void 0?r:r[t];!(t in n)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),n[t]=r+(typeof r=="string"?"":"px")}}function ui(e,t){var r="";if(typeof e=="string")r=e;else do{var n=Se(e,"transform");n&&n!=="none"&&(r=n+" "+r)}while(!t&&(e=e.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(r)}function jv(e,t,r){if(e){var n=e.getElementsByTagName(t),a=0,i=n.length;if(r)for(;a<i;a++)r(n[a],a);return n}return[]}function Rn(){var e=document.scrollingElement;return e||document.documentElement}function kt(e,t,r,n,a){if(!(!e.getBoundingClientRect&&e!==window)){var i,s,u,l,f,h,m;if(e!==window&&e.parentNode&&e!==Rn()?(i=e.getBoundingClientRect(),s=i.top,u=i.left,l=i.bottom,f=i.right,h=i.height,m=i.width):(s=0,u=0,l=window.innerHeight,f=window.innerWidth,h=window.innerHeight,m=window.innerWidth),(t||r)&&e!==window&&(a=a||e.parentNode,!ga))do if(a&&a.getBoundingClientRect&&(Se(a,"transform")!=="none"||r&&Se(a,"position")!=="static")){var g=a.getBoundingClientRect();s-=g.top+parseInt(Se(a,"border-top-width")),u-=g.left+parseInt(Se(a,"border-left-width")),l=s+i.height,f=u+i.width;break}while(a=a.parentNode);if(n&&e!==window){var p=ui(a||e),w=p&&p.a,y=p&&p.d;p&&(s/=y,u/=w,m/=w,h/=y,l=s+h,f=u+m)}return{top:s,left:u,bottom:l,right:f,width:m,height:h}}}function qv(e,t,r){for(var n=Ua(e,!0),a=kt(e)[t];n;){var i=kt(n)[r],s=void 0;if(r==="top"||r==="left"?s=a>=i:s=a<=i,!s)return n;if(n===Rn())break;n=Ua(n,!1)}return!1}function Xi(e,t,r,n){for(var a=0,i=0,s=e.children;i<s.length;){if(s[i].style.display!=="none"&&s[i]!==Me.ghost&&(n||s[i]!==Me.dragged)&&un(s[i],r.draggable,e,!1)){if(a===t)return s[i];a++}i++}return null}function dg(e,t){for(var r=e.lastElementChild;r&&(r===Me.ghost||Se(r,"display")==="none"||t&&!Hl(r,t));)r=r.previousElementSibling;return r||null}function Ut(e,t){var r=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==Me.clone&&(!t||Hl(e,t))&&r++;return r}function Wv(e){var t=0,r=0,n=Rn();if(e)do{var a=ui(e),i=a.a,s=a.d;t+=e.scrollLeft*i,r+=e.scrollTop*s}while(e!==n&&(e=e.parentNode));return[t,r]}function QS(e,t){for(var r in e)if(e.hasOwnProperty(r)){for(var n in t)if(t.hasOwnProperty(n)&&t[n]===e[r][n])return Number(r)}return-1}function Ua(e,t){if(!e||!e.getBoundingClientRect)return Rn();var r=e,n=!1;do if(r.clientWidth<r.scrollWidth||r.clientHeight<r.scrollHeight){var a=Se(r);if(r.clientWidth<r.scrollWidth&&(a.overflowX=="auto"||a.overflowX=="scroll")||r.clientHeight<r.scrollHeight&&(a.overflowY=="auto"||a.overflowY=="scroll")){if(!r.getBoundingClientRect||r===document.body)return Rn();if(n||t)return r;n=!0}}while(r=r.parentNode);return Rn()}function XS(e,t){if(e&&t)for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}function fg(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var vs;function Gv(e,t){return function(){if(!vs){var r=arguments,n=this;r.length===1?e.call(n,r[0]):e.apply(n,r),vs=setTimeout(function(){vs=void 0},t)}}}function JS(){clearTimeout(vs),vs=void 0}function Zv(e,t,r){e.scrollLeft+=t,e.scrollTop+=r}function gg(e){var t=window.Polymer,r=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):r?r(e).clone(!0)[0]:e.cloneNode(!0)}function Yv(e,t){Se(e,"position","absolute"),Se(e,"top",t.top),Se(e,"left",t.left),Se(e,"width",t.width),Se(e,"height",t.height)}function hg(e){Se(e,"position",""),Se(e,"top",""),Se(e,"left",""),Se(e,"width",""),Se(e,"height","")}function Qv(e,t,r){var n={};return Array.from(e.children).forEach(function(a){var i,s,u,l;if(!(!un(a,t.draggable,e,!1)||a.animated||a===r)){var f=kt(a);n.left=Math.min((i=n.left)!==null&&i!==void 0?i:1/0,f.left),n.top=Math.min((s=n.top)!==null&&s!==void 0?s:1/0,f.top),n.right=Math.max((u=n.right)!==null&&u!==void 0?u:-1/0,f.right),n.bottom=Math.max((l=n.bottom)!==null&&l!==void 0?l:-1/0,f.bottom)}}),n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}var sr="Sortable"+new Date().getTime();function eE(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(a){if(!(Se(a,"display")==="none"||a===Me.ghost)){e.push({target:a,rect:kt(a)});var i=Bn({},e[e.length-1].rect);if(a.thisAnimationDuration){var s=ui(a,!0);s&&(i.top-=s.f,i.left-=s.e)}a.fromRect=i}})}},addAnimationState:function(n){e.push(n)},removeAnimationState:function(n){e.splice(QS(e,{target:n}),1)},animateAll:function(n){var a=this;if(!this.options.animation){clearTimeout(t),typeof n=="function"&&n();return}var i=!1,s=0;e.forEach(function(u){var l=0,f=u.target,h=f.fromRect,m=kt(f),g=f.prevFromRect,p=f.prevToRect,w=u.rect,y=ui(f,!0);y&&(m.top-=y.f,m.left-=y.e),f.toRect=m,f.thisAnimationDuration&&fg(g,m)&&!fg(h,m)&&(w.top-m.top)/(w.left-m.left)===(h.top-m.top)/(h.left-m.left)&&(l=rE(w,g,p,a.options)),fg(m,h)||(f.prevFromRect=h,f.prevToRect=m,l||(l=a.options.animation),a.animate(f,w,m,l)),l&&(i=!0,s=Math.max(s,l),clearTimeout(f.animationResetTimer),f.animationResetTimer=setTimeout(function(){f.animationTime=0,f.prevFromRect=null,f.fromRect=null,f.prevToRect=null,f.thisAnimationDuration=null},l),f.thisAnimationDuration=l)}),clearTimeout(t),i?t=setTimeout(function(){typeof n=="function"&&n()},s):typeof n=="function"&&n(),e=[]},animate:function(n,a,i,s){if(s){Se(n,"transition",""),Se(n,"transform","");var u=ui(this.el),l=u&&u.a,f=u&&u.d,h=(a.left-i.left)/(l||1),m=(a.top-i.top)/(f||1);n.animatingX=!!h,n.animatingY=!!m,Se(n,"transform","translate3d("+h+"px,"+m+"px,0)"),this.forRepaintDummy=tE(n),Se(n,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),Se(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){Se(n,"transition",""),Se(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},s)}}}}function tE(e){return e.offsetWidth}function rE(e,t,r,n){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-r.top,2)+Math.pow(t.left-r.left,2))*n.animation}var Ji=[],pg={initializeByDefault:!0},bs={mount:function(t){for(var r in pg)pg.hasOwnProperty(r)&&!(r in t)&&(t[r]=pg[r]);Ji.forEach(function(n){if(n.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Ji.push(t)},pluginEvent:function(t,r,n){var a=this;this.eventCanceled=!1,n.cancel=function(){a.eventCanceled=!0};var i=t+"Global";Ji.forEach(function(s){r[s.pluginName]&&(r[s.pluginName][i]&&r[s.pluginName][i](Bn({sortable:r},n)),r.options[s.pluginName]&&r[s.pluginName][t]&&r[s.pluginName][t](Bn({sortable:r},n)))})},initializePlugins:function(t,r,n,a){Ji.forEach(function(u){var l=u.pluginName;if(!(!t.options[l]&&!u.initializeByDefault)){var f=new u(t,r,t.options);f.sortable=t,f.options=t.options,t[l]=f,sn(n,f.defaults)}});for(var i in t.options)if(t.options.hasOwnProperty(i)){var s=this.modifyOption(t,i,t.options[i]);typeof s<"u"&&(t.options[i]=s)}},getEventProperties:function(t,r){var n={};return Ji.forEach(function(a){typeof a.eventProperties=="function"&&sn(n,a.eventProperties.call(r[a.pluginName],t))}),n},modifyOption:function(t,r,n){var a;return Ji.forEach(function(i){t[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[r]=="function"&&(a=i.optionListeners[r].call(t[i.pluginName],n))}),a}};function ws(e){var t=e.sortable,r=e.rootEl,n=e.name,a=e.targetEl,i=e.cloneEl,s=e.toEl,u=e.fromEl,l=e.oldIndex,f=e.newIndex,h=e.oldDraggableIndex,m=e.newDraggableIndex,g=e.originalEvent,p=e.putSortable,w=e.extraEventProperties;if(t=t||r&&r[sr],!!t){var y,_=t.options,S="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!ga&&!ps?y=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(y=document.createEvent("Event"),y.initEvent(n,!0,!0)),y.to=s||r,y.from=u||r,y.item=a||r,y.clone=i,y.oldIndex=l,y.newIndex=f,y.oldDraggableIndex=h,y.newDraggableIndex=m,y.originalEvent=g,y.pullMode=p?p.lastPutMode:void 0;var H=Bn(Bn({},w),bs.getEventProperties(n,t));for(var L in H)y[L]=H[L];r&&r.dispatchEvent(y),_[S]&&_[S].call(t,y)}}var nE=["evt"],Er=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=n.evt,i=zS(n,nE);bs.pluginEvent.bind(Me)(t,r,Bn({dragEl:he,parentEl:Kt,ghostEl:ze,rootEl:Ot,nextEl:li,lastDownEl:Il,cloneEl:Bt,cloneHidden:Ka,dragStarted:xs,putSortable:tr,activeSortable:Me.active,originalEvent:a,oldIndex:eo,oldDraggableIndex:ys,newIndex:zr,newDraggableIndex:za,hideGhostForTarget:a2,unhideGhostForTarget:i2,cloneNowHidden:function(){Ka=!0},cloneNowShown:function(){Ka=!1},dispatchSortableEvent:function(u){vr({sortable:r,name:u,originalEvent:a})}},i))};function vr(e){ws(Bn({putSortable:tr,cloneEl:Bt,targetEl:he,rootEl:Ot,oldIndex:eo,oldDraggableIndex:ys,newIndex:zr,newDraggableIndex:za},e))}var he,Kt,ze,Ot,li,Il,Bt,Ka,eo,zr,ys,za,Ol,tr,to=!1,Ml=!1,Ll=[],ci,En,mg,vg,Xv,Jv,xs,ro,_s,Cs=!1,Vl=!1,Pl,ur,bg=[],wg=!1,Fl=[],Bl=typeof document<"u",Rl=Uv,e2=ps||ga?"cssFloat":"float",aE=Bl&&!Kv&&!Uv&&"draggable"in document.createElement("div"),t2=function(){if(Bl){if(ga)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),r2=function(t,r){var n=Se(t),a=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=Xi(t,0,r),s=Xi(t,1,r),u=i&&Se(i),l=s&&Se(s),f=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+kt(i).width,h=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+kt(s).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&u.float&&u.float!=="none"){var m=u.float==="left"?"left":"right";return s&&(l.clear==="both"||l.clear===m)?"vertical":"horizontal"}return i&&(u.display==="block"||u.display==="flex"||u.display==="table"||u.display==="grid"||f>=a&&n[e2]==="none"||s&&n[e2]==="none"&&f+h>a)?"vertical":"horizontal"},iE=function(t,r,n){var a=n?t.left:t.top,i=n?t.right:t.bottom,s=n?t.width:t.height,u=n?r.left:r.top,l=n?r.right:r.bottom,f=n?r.width:r.height;return a===u||i===l||a+s/2===u+f/2},oE=function(t,r){var n;return Ll.some(function(a){var i=a[sr].options.emptyInsertThreshold;if(!(!i||dg(a))){var s=kt(a),u=t>=s.left-i&&t<=s.right+i,l=r>=s.top-i&&r<=s.bottom+i;if(u&&l)return n=a}}),n},n2=function(t){function r(i,s){return function(u,l,f,h){var m=u.options.group.name&&l.options.group.name&&u.options.group.name===l.options.group.name;if(i==null&&(s||m))return!0;if(i==null||i===!1)return!1;if(s&&i==="clone")return i;if(typeof i=="function")return r(i(u,l,f,h),s)(u,l,f,h);var g=(s?u:l).options.group.name;return i===!0||typeof i=="string"&&i===g||i.join&&i.indexOf(g)>-1}}var n={},a=t.group;(!a||Tl(a)!="object")&&(a={name:a}),n.name=a.name,n.checkPull=r(a.pull,!0),n.checkPut=r(a.put),n.revertClone=a.revertClone,t.group=n},a2=function(){!t2&&ze&&Se(ze,"display","none")},i2=function(){!t2&&ze&&Se(ze,"display","")};Bl&&!Kv&&document.addEventListener("click",function(e){if(Ml)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ml=!1,!1},!0);var di=function(t){if(he){t=t.touches?t.touches[0]:t;var r=oE(t.clientX,t.clientY);if(r){var n={};for(var a in t)t.hasOwnProperty(a)&&(n[a]=t[a]);n.target=n.rootEl=r,n.preventDefault=void 0,n.stopPropagation=void 0,r[sr]._onDragOver(n)}}},sE=function(t){he&&he.parentNode[sr]._isOutsideThisEl(t.target)};function Me(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=sn({},t),e[sr]=this;var r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return r2(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,u){s.setData("Text",u.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Me.supportPointer!==!1&&"PointerEvent"in window&&!ms,emptyInsertThreshold:5};bs.initializePlugins(this,e,r);for(var n in r)!(n in t)&&(t[n]=r[n]);n2(t);for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this));this.nativeDraggable=t.forceFallback?!1:aE,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?rt(e,"pointerdown",this._onTapStart):(rt(e,"mousedown",this._onTapStart),rt(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(rt(e,"dragover",this),rt(e,"dragenter",this)),Ll.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),sn(this,eE())}Me.prototype={constructor:Me,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(ro=null)},_getDirection:function(t,r){return typeof this.options.direction=="function"?this.options.direction.call(this,t,r,he):this.options.direction},_onTapStart:function(t){if(t.cancelable){var r=this,n=this.el,a=this.options,i=a.preventOnFilter,s=t.type,u=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(u||t).target,f=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,h=a.filter;if(pE(n),!he&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||a.disabled)&&!f.isContentEditable&&!(!this.nativeDraggable&&ms&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=un(l,a.draggable,n,!1),!(l&&l.animated)&&Il!==l)){if(eo=Ut(l),ys=Ut(l,a.draggable),typeof h=="function"){if(h.call(this,t,l,this)){vr({sortable:r,rootEl:f,name:"filter",targetEl:l,toEl:n,fromEl:n}),Er("filter",r,{evt:t}),i&&t.cancelable&&t.preventDefault();return}}else if(h&&(h=h.split(",").some(function(m){if(m=un(f,m.trim(),n,!1),m)return vr({sortable:r,rootEl:m,name:"filter",targetEl:l,fromEl:n,toEl:n}),Er("filter",r,{evt:t}),!0}),h)){i&&t.cancelable&&t.preventDefault();return}a.handle&&!un(f,a.handle,n,!1)||this._prepareDragStart(t,u,l)}}},_prepareDragStart:function(t,r,n){var a=this,i=a.el,s=a.options,u=i.ownerDocument,l;if(n&&!he&&n.parentNode===i){var f=kt(n);if(Ot=i,he=n,Kt=he.parentNode,li=he.nextSibling,Il=n,Ol=s.group,Me.dragged=he,ci={target:he,clientX:(r||t).clientX,clientY:(r||t).clientY},Xv=ci.clientX-f.left,Jv=ci.clientY-f.top,this._lastX=(r||t).clientX,this._lastY=(r||t).clientY,he.style["will-change"]="all",l=function(){if(Er("delayEnded",a,{evt:t}),Me.eventCanceled){a._onDrop();return}a._disableDelayedDragEvents(),!Rv&&a.nativeDraggable&&(he.draggable=!0),a._triggerDragStart(t,r),vr({sortable:a,name:"choose",originalEvent:t}),Ft(he,s.chosenClass,!0)},s.ignore.split(",").forEach(function(h){jv(he,h.trim(),yg)}),rt(u,"dragover",di),rt(u,"mousemove",di),rt(u,"touchmove",di),rt(u,"mouseup",a._onDrop),rt(u,"touchend",a._onDrop),rt(u,"touchcancel",a._onDrop),Rv&&this.nativeDraggable&&(this.options.touchStartThreshold=4,he.draggable=!0),Er("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||r)&&(!this.nativeDraggable||!(ps||ga))){if(Me.eventCanceled){this._onDrop();return}rt(u,"mouseup",a._disableDelayedDrag),rt(u,"touchend",a._disableDelayedDrag),rt(u,"touchcancel",a._disableDelayedDrag),rt(u,"mousemove",a._delayedDragTouchMoveHandler),rt(u,"touchmove",a._delayedDragTouchMoveHandler),s.supportPointer&&rt(u,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(l,s.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var r=t.touches?t.touches[0]:t;Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){he&&yg(he),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;Qe(t,"mouseup",this._disableDelayedDrag),Qe(t,"touchend",this._disableDelayedDrag),Qe(t,"touchcancel",this._disableDelayedDrag),Qe(t,"mousemove",this._delayedDragTouchMoveHandler),Qe(t,"touchmove",this._delayedDragTouchMoveHandler),Qe(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,r){r=r||t.pointerType=="touch"&&t,!this.nativeDraggable||r?this.options.supportPointer?rt(document,"pointermove",this._onTouchMove):r?rt(document,"touchmove",this._onTouchMove):rt(document,"mousemove",this._onTouchMove):(rt(he,"dragend",this),rt(Ot,"dragstart",this._onDragStart));try{document.selection?Kl(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,r){if(to=!1,Ot&&he){Er("dragStarted",this,{evt:r}),this.nativeDraggable&&rt(document,"dragover",sE);var n=this.options;!t&&Ft(he,n.dragClass,!1),Ft(he,n.ghostClass,!0),Me.active=this,t&&this._appendGhost(),vr({sortable:this,name:"start",originalEvent:r})}else this._nulling()},_emulateDragOver:function(){if(En){this._lastX=En.clientX,this._lastY=En.clientY,a2();for(var t=document.elementFromPoint(En.clientX,En.clientY),r=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(En.clientX,En.clientY),t!==r);)r=t;if(he.parentNode[sr]._isOutsideThisEl(t),r)do{if(r[sr]){var n=void 0;if(n=r[sr]._onDragOver({clientX:En.clientX,clientY:En.clientY,target:t,rootEl:r}),n&&!this.options.dragoverBubble)break}t=r}while(r=r.parentNode);i2()}},_onTouchMove:function(t){if(ci){var r=this.options,n=r.fallbackTolerance,a=r.fallbackOffset,i=t.touches?t.touches[0]:t,s=ze&&ui(ze,!0),u=ze&&s&&s.a,l=ze&&s&&s.d,f=Rl&&ur&&Wv(ur),h=(i.clientX-ci.clientX+a.x)/(u||1)+(f?f[0]-bg[0]:0)/(u||1),m=(i.clientY-ci.clientY+a.y)/(l||1)+(f?f[1]-bg[1]:0)/(l||1);if(!Me.active&&!to){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(ze){s?(s.e+=h-(mg||0),s.f+=m-(vg||0)):s={a:1,b:0,c:0,d:1,e:h,f:m};var g="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");Se(ze,"webkitTransform",g),Se(ze,"mozTransform",g),Se(ze,"msTransform",g),Se(ze,"transform",g),mg=h,vg=m,En=i}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!ze){var t=this.options.fallbackOnBody?document.body:Ot,r=kt(he,!0,Rl,!0,t),n=this.options;if(Rl){for(ur=t;Se(ur,"position")==="static"&&Se(ur,"transform")==="none"&&ur!==document;)ur=ur.parentNode;ur!==document.body&&ur!==document.documentElement?(ur===document&&(ur=Rn()),r.top+=ur.scrollTop,r.left+=ur.scrollLeft):ur=Rn(),bg=Wv(ur)}ze=he.cloneNode(!0),Ft(ze,n.ghostClass,!1),Ft(ze,n.fallbackClass,!0),Ft(ze,n.dragClass,!0),Se(ze,"transition",""),Se(ze,"transform",""),Se(ze,"box-sizing","border-box"),Se(ze,"margin",0),Se(ze,"top",r.top),Se(ze,"left",r.left),Se(ze,"width",r.width),Se(ze,"height",r.height),Se(ze,"opacity","0.8"),Se(ze,"position",Rl?"absolute":"fixed"),Se(ze,"zIndex","100000"),Se(ze,"pointerEvents","none"),Me.ghost=ze,t.appendChild(ze),Se(ze,"transform-origin",Xv/parseInt(ze.style.width)*100+"% "+Jv/parseInt(ze.style.height)*100+"%")}},_onDragStart:function(t,r){var n=this,a=t.dataTransfer,i=n.options;if(Er("dragStart",this,{evt:t}),Me.eventCanceled){this._onDrop();return}Er("setupClone",this),Me.eventCanceled||(Bt=gg(he),Bt.removeAttribute("id"),Bt.draggable=!1,Bt.style["will-change"]="",this._hideClone(),Ft(Bt,this.options.chosenClass,!1),Me.clone=Bt),n.cloneId=Kl(function(){Er("clone",n),!Me.eventCanceled&&(n.options.removeCloneOnHide||Ot.insertBefore(Bt,he),n._hideClone(),vr({sortable:n,name:"clone"}))}),!r&&Ft(he,i.dragClass,!0),r?(Ml=!0,n._loopId=setInterval(n._emulateDragOver,50)):(Qe(document,"mouseup",n._onDrop),Qe(document,"touchend",n._onDrop),Qe(document,"touchcancel",n._onDrop),a&&(a.effectAllowed="move",i.setData&&i.setData.call(n,a,he)),rt(document,"drop",n),Se(he,"transform","translateZ(0)")),to=!0,n._dragStartId=Kl(n._dragStarted.bind(n,r,t)),rt(document,"selectstart",n),xs=!0,ms&&Se(document.body,"user-select","none")},_onDragOver:function(t){var r=this.el,n=t.target,a,i,s,u=this.options,l=u.group,f=Me.active,h=Ol===l,m=u.sort,g=tr||f,p,w=this,y=!1;if(wg)return;function _(z,Z){Er(z,w,Bn({evt:t,isOwner:h,axis:p?"vertical":"horizontal",revert:s,dragRect:a,targetRect:i,canSort:m,fromSortable:g,target:n,completed:H,onMove:function(te,oe){return Ul(Ot,r,he,a,te,kt(te),t,oe)},changed:L},Z))}function S(){_("dragOverAnimationCapture"),w.captureAnimationState(),w!==g&&g.captureAnimationState()}function H(z){return _("dragOverCompleted",{insertion:z}),z&&(h?f._hideClone():f._showClone(w),w!==g&&(Ft(he,tr?tr.options.ghostClass:f.options.ghostClass,!1),Ft(he,u.ghostClass,!0)),tr!==w&&w!==Me.active?tr=w:w===Me.active&&tr&&(tr=null),g===w&&(w._ignoreWhileAnimating=n),w.animateAll(function(){_("dragOverAnimationComplete"),w._ignoreWhileAnimating=null}),w!==g&&(g.animateAll(),g._ignoreWhileAnimating=null)),(n===he&&!he.animated||n===r&&!n.animated)&&(ro=null),!u.dragoverBubble&&!t.rootEl&&n!==document&&(he.parentNode[sr]._isOutsideThisEl(t.target),!z&&di(t)),!u.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),y=!0}function L(){zr=Ut(he),za=Ut(he,u.draggable),vr({sortable:w,name:"change",toEl:r,newIndex:zr,newDraggableIndex:za,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),n=un(n,u.draggable,r,!0),_("dragOver"),Me.eventCanceled)return y;if(he.contains(t.target)||n.animated&&n.animatingX&&n.animatingY||w._ignoreWhileAnimating===n)return H(!1);if(Ml=!1,f&&!u.disabled&&(h?m||(s=Kt!==Ot):tr===this||(this.lastPutMode=Ol.checkPull(this,f,he,t))&&l.checkPut(this,f,he,t))){if(p=this._getDirection(t,n)==="vertical",a=kt(he),_("dragOverValid"),Me.eventCanceled)return y;if(s)return Kt=Ot,S(),this._hideClone(),_("revert"),Me.eventCanceled||(li?Ot.insertBefore(he,li):Ot.appendChild(he)),H(!0);var O=dg(r,u.draggable);if(!O||dE(t,p,this)&&!O.animated){if(O===he)return H(!1);if(O&&r===t.target&&(n=O),n&&(i=kt(n)),Ul(Ot,r,he,a,n,i,t,!!n)!==!1)return S(),O&&O.nextSibling?r.insertBefore(he,O.nextSibling):r.appendChild(he),Kt=r,L(),H(!0)}else if(O&&cE(t,p,this)){var j=Xi(r,0,u,!0);if(j===he)return H(!1);if(n=j,i=kt(n),Ul(Ot,r,he,a,n,i,t,!1)!==!1)return S(),r.insertBefore(he,j),Kt=r,L(),H(!0)}else if(n.parentNode===r){i=kt(n);var R=0,K,M=he.parentNode!==r,F=!iE(he.animated&&he.toRect||a,n.animated&&n.toRect||i,p),U=p?"top":"left",k=qv(n,"top","top")||qv(he,"top","top"),C=k?k.scrollTop:void 0;ro!==n&&(K=i[U],Cs=!1,Vl=!F&&u.invertSwap||M),R=fE(t,n,i,p,F?1:u.swapThreshold,u.invertedSwapThreshold==null?u.swapThreshold:u.invertedSwapThreshold,Vl,ro===n);var A;if(R!==0){var I=Ut(he);do I-=R,A=Kt.children[I];while(A&&(Se(A,"display")==="none"||A===ze))}if(R===0||A===n)return H(!1);ro=n,_s=R;var T=n.nextElementSibling,V=!1;V=R===1;var P=Ul(Ot,r,he,a,n,i,t,V);if(P!==!1)return(P===1||P===-1)&&(V=P===1),wg=!0,setTimeout(lE,30),S(),V&&!T?r.appendChild(he):n.parentNode.insertBefore(he,V?T:n),k&&Zv(k,0,C-k.scrollTop),Kt=he.parentNode,K!==void 0&&!Vl&&(Pl=Math.abs(K-kt(n)[U])),L(),H(!0)}if(r.contains(he))return H(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Qe(document,"mousemove",this._onTouchMove),Qe(document,"touchmove",this._onTouchMove),Qe(document,"pointermove",this._onTouchMove),Qe(document,"dragover",di),Qe(document,"mousemove",di),Qe(document,"touchmove",di)},_offUpEvents:function(){var t=this.el.ownerDocument;Qe(t,"mouseup",this._onDrop),Qe(t,"touchend",this._onDrop),Qe(t,"pointerup",this._onDrop),Qe(t,"touchcancel",this._onDrop),Qe(document,"selectstart",this)},_onDrop:function(t){var r=this.el,n=this.options;if(zr=Ut(he),za=Ut(he,n.draggable),Er("drop",this,{evt:t}),Kt=he&&he.parentNode,zr=Ut(he),za=Ut(he,n.draggable),Me.eventCanceled){this._nulling();return}to=!1,Vl=!1,Cs=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),xg(this.cloneId),xg(this._dragStartId),this.nativeDraggable&&(Qe(document,"drop",this),Qe(r,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),ms&&Se(document.body,"user-select",""),Se(he,"transform",""),t&&(xs&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),ze&&ze.parentNode&&ze.parentNode.removeChild(ze),(Ot===Kt||tr&&tr.lastPutMode!=="clone")&&Bt&&Bt.parentNode&&Bt.parentNode.removeChild(Bt),he&&(this.nativeDraggable&&Qe(he,"dragend",this),yg(he),he.style["will-change"]="",xs&&!to&&Ft(he,tr?tr.options.ghostClass:this.options.ghostClass,!1),Ft(he,this.options.chosenClass,!1),vr({sortable:this,name:"unchoose",toEl:Kt,newIndex:null,newDraggableIndex:null,originalEvent:t}),Ot!==Kt?(zr>=0&&(vr({rootEl:Kt,name:"add",toEl:Kt,fromEl:Ot,originalEvent:t}),vr({sortable:this,name:"remove",toEl:Kt,originalEvent:t}),vr({rootEl:Kt,name:"sort",toEl:Kt,fromEl:Ot,originalEvent:t}),vr({sortable:this,name:"sort",toEl:Kt,originalEvent:t})),tr&&tr.save()):zr!==eo&&zr>=0&&(vr({sortable:this,name:"update",toEl:Kt,originalEvent:t}),vr({sortable:this,name:"sort",toEl:Kt,originalEvent:t})),Me.active&&((zr==null||zr===-1)&&(zr=eo,za=ys),vr({sortable:this,name:"end",toEl:Kt,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Er("nulling",this),Ot=he=Kt=ze=li=Bt=Il=Ka=ci=En=xs=zr=za=eo=ys=ro=_s=tr=Ol=Me.dragged=Me.ghost=Me.clone=Me.active=null,Fl.forEach(function(t){t.checked=!0}),Fl.length=mg=vg=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":he&&(this._onDragOver(t),uE(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],r,n=this.el.children,a=0,i=n.length,s=this.options;a<i;a++)r=n[a],un(r,s.draggable,this.el,!1)&&t.push(r.getAttribute(s.dataIdAttr)||hE(r));return t},sort:function(t,r){var n={},a=this.el;this.toArray().forEach(function(i,s){var u=a.children[s];un(u,this.options.draggable,a,!1)&&(n[i]=u)},this),r&&this.captureAnimationState(),t.forEach(function(i){n[i]&&(a.removeChild(n[i]),a.appendChild(n[i]))}),r&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,r){return un(t,r||this.options.draggable,this.el,!1)},option:function(t,r){var n=this.options;if(r===void 0)return n[t];var a=bs.modifyOption(this,t,r);typeof a<"u"?n[t]=a:n[t]=r,t==="group"&&n2(n)},destroy:function(){Er("destroy",this);var t=this.el;t[sr]=null,Qe(t,"mousedown",this._onTapStart),Qe(t,"touchstart",this._onTapStart),Qe(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(Qe(t,"dragover",this),Qe(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(r){r.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Ll.splice(Ll.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Ka){if(Er("hideClone",this),Me.eventCanceled)return;Se(Bt,"display","none"),this.options.removeCloneOnHide&&Bt.parentNode&&Bt.parentNode.removeChild(Bt),Ka=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(Ka){if(Er("showClone",this),Me.eventCanceled)return;he.parentNode==Ot&&!this.options.group.revertClone?Ot.insertBefore(Bt,he):li?Ot.insertBefore(Bt,li):Ot.appendChild(Bt),this.options.group.revertClone&&this.animate(he,Bt),Se(Bt,"display",""),Ka=!1}}};function uE(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Ul(e,t,r,n,a,i,s,u){var l,f=e[sr],h=f.options.onMove,m;return window.CustomEvent&&!ga&&!ps?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=r,l.draggedRect=n,l.related=a||t,l.relatedRect=i||kt(t),l.willInsertAfter=u,l.originalEvent=s,e.dispatchEvent(l),h&&(m=h.call(f,l,s)),m}function yg(e){e.draggable=!1}function lE(){wg=!1}function cE(e,t,r){var n=kt(Xi(r.el,0,r.options,!0)),a=Qv(r.el,r.options,ze),i=10;return t?e.clientX<a.left-i||e.clientY<n.top&&e.clientX<n.right:e.clientY<a.top-i||e.clientY<n.bottom&&e.clientX<n.left}function dE(e,t,r){var n=kt(dg(r.el,r.options.draggable)),a=Qv(r.el,r.options,ze),i=10;return t?e.clientX>a.right+i||e.clientY>n.bottom&&e.clientX>n.left:e.clientY>a.bottom+i||e.clientX>n.right&&e.clientY>n.top}function fE(e,t,r,n,a,i,s,u){var l=n?e.clientY:e.clientX,f=n?r.height:r.width,h=n?r.top:r.left,m=n?r.bottom:r.right,g=!1;if(!s){if(u&&Pl<f*a){if(!Cs&&(_s===1?l>h+f*i/2:l<m-f*i/2)&&(Cs=!0),Cs)g=!0;else if(_s===1?l<h+Pl:l>m-Pl)return-_s}else if(l>h+f*(1-a)/2&&l<m-f*(1-a)/2)return gE(t)}return g=g||s,g&&(l<h+f*i/2||l>m-f*i/2)?l>h+f/2?1:-1:0}function gE(e){return Ut(he)<Ut(e)?1:-1}function hE(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,r=t.length,n=0;r--;)n+=t.charCodeAt(r);return n.toString(36)}function pE(e){Fl.length=0;for(var t=e.getElementsByTagName("input"),r=t.length;r--;){var n=t[r];n.checked&&Fl.push(n)}}function Kl(e){return setTimeout(e,0)}function xg(e){return clearTimeout(e)}Bl&&rt(document,"touchmove",function(e){(Me.active||to)&&e.cancelable&&e.preventDefault()}),Me.utils={on:rt,off:Qe,css:Se,find:jv,is:function(t,r){return!!un(t,r,t,!1)},extend:XS,throttle:Gv,closest:un,toggleClass:Ft,clone:gg,index:Ut,nextTick:Kl,cancelNextTick:xg,detectDirection:r2,getChild:Xi},Me.get=function(e){return e[sr]},Me.mount=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t[0].constructor===Array&&(t=t[0]),t.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(Me.utils=Bn(Bn({},Me.utils),n.utils)),bs.mount(n)})},Me.create=function(e,t){return new Me(e,t)},Me.version=ZS;var Zt=[],Ss,_g,Cg=!1,Sg,Eg,zl,Es;function mE(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(r){var n=r.originalEvent;this.sortable.nativeDraggable?rt(document,"dragover",this._handleAutoScroll):this.options.supportPointer?rt(document,"pointermove",this._handleFallbackAutoScroll):n.touches?rt(document,"touchmove",this._handleFallbackAutoScroll):rt(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(r){var n=r.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?Qe(document,"dragover",this._handleAutoScroll):(Qe(document,"pointermove",this._handleFallbackAutoScroll),Qe(document,"touchmove",this._handleFallbackAutoScroll),Qe(document,"mousemove",this._handleFallbackAutoScroll)),o2(),$l(),JS()},nulling:function(){zl=_g=Ss=Cg=Es=Sg=Eg=null,Zt.length=0},_handleFallbackAutoScroll:function(r){this._handleAutoScroll(r,!0)},_handleAutoScroll:function(r,n){var a=this,i=(r.touches?r.touches[0]:r).clientX,s=(r.touches?r.touches[0]:r).clientY,u=document.elementFromPoint(i,s);if(zl=r,n||this.options.forceAutoScrollFallback||ps||ga||ms){Ag(r,this.options,u,n);var l=Ua(u,!0);Cg&&(!Es||i!==Sg||s!==Eg)&&(Es&&o2(),Es=setInterval(function(){var f=Ua(document.elementFromPoint(i,s),!0);f!==l&&(l=f,$l()),Ag(r,a.options,f,n)},10),Sg=i,Eg=s)}else{if(!this.options.bubbleScroll||Ua(u,!0)===Rn()){$l();return}Ag(r,this.options,Ua(u,!1),!1)}}},sn(e,{pluginName:"scroll",initializeByDefault:!0})}function $l(){Zt.forEach(function(e){clearInterval(e.pid)}),Zt=[]}function o2(){clearInterval(Es)}var Ag=Gv(function(e,t,r,n){if(t.scroll){var a=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,u=t.scrollSpeed,l=Rn(),f=!1,h;_g!==r&&(_g=r,$l(),Ss=t.scroll,h=t.scrollFn,Ss===!0&&(Ss=Ua(r,!0)));var m=0,g=Ss;do{var p=g,w=kt(p),y=w.top,_=w.bottom,S=w.left,H=w.right,L=w.width,O=w.height,j=void 0,R=void 0,K=p.scrollWidth,M=p.scrollHeight,F=Se(p),U=p.scrollLeft,k=p.scrollTop;p===l?(j=L<K&&(F.overflowX==="auto"||F.overflowX==="scroll"||F.overflowX==="visible"),R=O<M&&(F.overflowY==="auto"||F.overflowY==="scroll"||F.overflowY==="visible")):(j=L<K&&(F.overflowX==="auto"||F.overflowX==="scroll"),R=O<M&&(F.overflowY==="auto"||F.overflowY==="scroll"));var C=j&&(Math.abs(H-a)<=s&&U+L<K)-(Math.abs(S-a)<=s&&!!U),A=R&&(Math.abs(_-i)<=s&&k+O<M)-(Math.abs(y-i)<=s&&!!k);if(!Zt[m])for(var I=0;I<=m;I++)Zt[I]||(Zt[I]={});(Zt[m].vx!=C||Zt[m].vy!=A||Zt[m].el!==p)&&(Zt[m].el=p,Zt[m].vx=C,Zt[m].vy=A,clearInterval(Zt[m].pid),(C!=0||A!=0)&&(f=!0,Zt[m].pid=setInterval(function(){n&&this.layer===0&&Me.active._onTouchMove(zl);var T=Zt[this.layer].vy?Zt[this.layer].vy*u:0,V=Zt[this.layer].vx?Zt[this.layer].vx*u:0;typeof h=="function"&&h.call(Me.dragged.parentNode[sr],V,T,e,zl,Zt[this.layer].el)!=="continue"||Zv(Zt[this.layer].el,V,T)}.bind({layer:m}),24))),m++}while(t.bubbleScroll&&g!==l&&(g=Ua(g,!1)));Cg=f}},30),s2=function(t){var r=t.originalEvent,n=t.putSortable,a=t.dragEl,i=t.activeSortable,s=t.dispatchSortableEvent,u=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(r){var f=n||i;u();var h=r.changedTouches&&r.changedTouches.length?r.changedTouches[0]:r,m=document.elementFromPoint(h.clientX,h.clientY);l(),f&&!f.el.contains(m)&&(s("spill"),this.onSpill({dragEl:a,putSortable:n}))}};function Dg(){}Dg.prototype={startIndex:null,dragStart:function(t){var r=t.oldDraggableIndex;this.startIndex=r},onSpill:function(t){var r=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var a=Xi(this.sortable.el,this.startIndex,this.options);a?this.sortable.el.insertBefore(r,a):this.sortable.el.appendChild(r),this.sortable.animateAll(),n&&n.animateAll()},drop:s2},sn(Dg,{pluginName:"revertOnSpill"});function kg(){}kg.prototype={onSpill:function(t){var r=t.dragEl,n=t.putSortable,a=n||this.sortable;a.captureAnimationState(),r.parentNode&&r.parentNode.removeChild(r),a.animateAll()},drop:s2},sn(kg,{pluginName:"removeOnSpill"});var ln;function vE(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(r){var n=r.dragEl;ln=n},dragOverValid:function(r){var n=r.completed,a=r.target,i=r.onMove,s=r.activeSortable,u=r.changed,l=r.cancel;if(s.options.swap){var f=this.sortable.el,h=this.options;if(a&&a!==f){var m=ln;i(a)!==!1?(Ft(a,h.swapClass,!0),ln=a):ln=null,m&&m!==ln&&Ft(m,h.swapClass,!1)}u(),n(!0),l()}},drop:function(r){var n=r.activeSortable,a=r.putSortable,i=r.dragEl,s=a||this.sortable,u=this.options;ln&&Ft(ln,u.swapClass,!1),ln&&(u.swap||a&&a.options.swap)&&i!==ln&&(s.captureAnimationState(),s!==n&&n.captureAnimationState(),bE(i,ln),s.animateAll(),s!==n&&n.animateAll())},nulling:function(){ln=null}},sn(e,{pluginName:"swap",eventProperties:function(){return{swapItem:ln}}})}function bE(e,t){var r=e.parentNode,n=t.parentNode,a,i;!r||!n||r.isEqualNode(t)||n.isEqualNode(e)||(a=Ut(e),i=Ut(t),r.isEqualNode(n)&&a<i&&i++,r.insertBefore(t,r.children[a]),n.insertBefore(e,n.children[i]))}var $e=[],$r=[],As,An,Ds=!1,Ar=!1,no=!1,Et,ks,jl;function wE(){function e(t){for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));t.options.avoidImplicitDeselect||(t.options.supportPointer?rt(document,"pointerup",this._deselectMultiDrag):(rt(document,"mouseup",this._deselectMultiDrag),rt(document,"touchend",this._deselectMultiDrag))),rt(document,"keydown",this._checkKeyDown),rt(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,avoidImplicitDeselect:!1,setData:function(a,i){var s="";$e.length&&An===t?$e.forEach(function(u,l){s+=(l?", ":"")+u.textContent}):s=i.textContent,a.setData("Text",s)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(r){var n=r.dragEl;Et=n},delayEnded:function(){this.isMultiDrag=~$e.indexOf(Et)},setupClone:function(r){var n=r.sortable,a=r.cancel;if(this.isMultiDrag){for(var i=0;i<$e.length;i++)$r.push(gg($e[i])),$r[i].sortableIndex=$e[i].sortableIndex,$r[i].draggable=!1,$r[i].style["will-change"]="",Ft($r[i],this.options.selectedClass,!1),$e[i]===Et&&Ft($r[i],this.options.chosenClass,!1);n._hideClone(),a()}},clone:function(r){var n=r.sortable,a=r.rootEl,i=r.dispatchSortableEvent,s=r.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||$e.length&&An===n&&(u2(!0,a),i("clone"),s()))},showClone:function(r){var n=r.cloneNowShown,a=r.rootEl,i=r.cancel;this.isMultiDrag&&(u2(!1,a),$r.forEach(function(s){Se(s,"display","")}),n(),jl=!1,i())},hideClone:function(r){var n=this;r.sortable;var a=r.cloneNowHidden,i=r.cancel;this.isMultiDrag&&($r.forEach(function(s){Se(s,"display","none"),n.options.removeCloneOnHide&&s.parentNode&&s.parentNode.removeChild(s)}),a(),jl=!0,i())},dragStartGlobal:function(r){r.sortable,!this.isMultiDrag&&An&&An.multiDrag._deselectMultiDrag(),$e.forEach(function(n){n.sortableIndex=Ut(n)}),$e=$e.sort(function(n,a){return n.sortableIndex-a.sortableIndex}),no=!0},dragStarted:function(r){var n=this,a=r.sortable;if(this.isMultiDrag){if(this.options.sort&&(a.captureAnimationState(),this.options.animation)){$e.forEach(function(s){s!==Et&&Se(s,"position","absolute")});var i=kt(Et,!1,!0,!0);$e.forEach(function(s){s!==Et&&Yv(s,i)}),Ar=!0,Ds=!0}a.animateAll(function(){Ar=!1,Ds=!1,n.options.animation&&$e.forEach(function(s){hg(s)}),n.options.sort&&ql()})}},dragOver:function(r){var n=r.target,a=r.completed,i=r.cancel;Ar&&~$e.indexOf(n)&&(a(!1),i())},revert:function(r){var n=r.fromSortable,a=r.rootEl,i=r.sortable,s=r.dragRect;$e.length>1&&($e.forEach(function(u){i.addAnimationState({target:u,rect:Ar?kt(u):s}),hg(u),u.fromRect=s,n.removeAnimationState(u)}),Ar=!1,yE(!this.options.removeCloneOnHide,a))},dragOverCompleted:function(r){var n=r.sortable,a=r.isOwner,i=r.insertion,s=r.activeSortable,u=r.parentEl,l=r.putSortable,f=this.options;if(i){if(a&&s._hideClone(),Ds=!1,f.animation&&$e.length>1&&(Ar||!a&&!s.options.sort&&!l)){var h=kt(Et,!1,!0,!0);$e.forEach(function(g){g!==Et&&(Yv(g,h),u.appendChild(g))}),Ar=!0}if(!a)if(Ar||ql(),$e.length>1){var m=jl;s._showClone(n),s.options.animation&&!jl&&m&&$r.forEach(function(g){s.addAnimationState({target:g,rect:ks}),g.fromRect=ks,g.thisAnimationDuration=null})}else s._showClone(n)}},dragOverAnimationCapture:function(r){var n=r.dragRect,a=r.isOwner,i=r.activeSortable;if($e.forEach(function(u){u.thisAnimationDuration=null}),i.options.animation&&!a&&i.multiDrag.isMultiDrag){ks=sn({},n);var s=ui(Et,!0);ks.top-=s.f,ks.left-=s.e}},dragOverAnimationComplete:function(){Ar&&(Ar=!1,ql())},drop:function(r){var n=r.originalEvent,a=r.rootEl,i=r.parentEl,s=r.sortable,u=r.dispatchSortableEvent,l=r.oldIndex,f=r.putSortable,h=f||this.sortable;if(n){var m=this.options,g=i.children;if(!no)if(m.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Ft(Et,m.selectedClass,!~$e.indexOf(Et)),~$e.indexOf(Et))$e.splice($e.indexOf(Et),1),As=null,ws({sortable:s,rootEl:a,name:"deselect",targetEl:Et,originalEvent:n});else{if($e.push(Et),ws({sortable:s,rootEl:a,name:"select",targetEl:Et,originalEvent:n}),n.shiftKey&&As&&s.el.contains(As)){var p=Ut(As),w=Ut(Et);if(~p&&~w&&p!==w){var y,_;for(w>p?(_=p,y=w):(_=w,y=p+1);_<y;_++)~$e.indexOf(g[_])||(Ft(g[_],m.selectedClass,!0),$e.push(g[_]),ws({sortable:s,rootEl:a,name:"select",targetEl:g[_],originalEvent:n}))}}else As=Et;An=h}if(no&&this.isMultiDrag){if(Ar=!1,(i[sr].options.sort||i!==a)&&$e.length>1){var S=kt(Et),H=Ut(Et,":not(."+this.options.selectedClass+")");if(!Ds&&m.animation&&(Et.thisAnimationDuration=null),h.captureAnimationState(),!Ds&&(m.animation&&(Et.fromRect=S,$e.forEach(function(O){if(O.thisAnimationDuration=null,O!==Et){var j=Ar?kt(O):S;O.fromRect=j,h.addAnimationState({target:O,rect:j})}})),ql(),$e.forEach(function(O){g[H]?i.insertBefore(O,g[H]):i.appendChild(O),H++}),l===Ut(Et))){var L=!1;$e.forEach(function(O){if(O.sortableIndex!==Ut(O)){L=!0;return}}),L&&(u("update"),u("sort"))}$e.forEach(function(O){hg(O)}),h.animateAll()}An=h}(a===i||f&&f.lastPutMode!=="clone")&&$r.forEach(function(O){O.parentNode&&O.parentNode.removeChild(O)})}},nullingGlobal:function(){this.isMultiDrag=no=!1,$r.length=0},destroyGlobal:function(){this._deselectMultiDrag(),Qe(document,"pointerup",this._deselectMultiDrag),Qe(document,"mouseup",this._deselectMultiDrag),Qe(document,"touchend",this._deselectMultiDrag),Qe(document,"keydown",this._checkKeyDown),Qe(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(r){if(!(typeof no<"u"&&no)&&An===this.sortable&&!(r&&un(r.target,this.options.draggable,this.sortable.el,!1))&&!(r&&r.button!==0))for(;$e.length;){var n=$e[0];Ft(n,this.options.selectedClass,!1),$e.shift(),ws({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:n,originalEvent:r})}},_checkKeyDown:function(r){r.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(r){r.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},sn(e,{pluginName:"multiDrag",utils:{select:function(r){var n=r.parentNode[sr];!n||!n.options.multiDrag||~$e.indexOf(r)||(An&&An!==n&&(An.multiDrag._deselectMultiDrag(),An=n),Ft(r,n.options.selectedClass,!0),$e.push(r))},deselect:function(r){var n=r.parentNode[sr],a=$e.indexOf(r);!n||!n.options.multiDrag||!~a||(Ft(r,n.options.selectedClass,!1),$e.splice(a,1))}},eventProperties:function(){var r=this,n=[],a=[];return $e.forEach(function(i){n.push({multiDragElement:i,index:i.sortableIndex});var s;Ar&&i!==Et?s=-1:Ar?s=Ut(i,":not(."+r.options.selectedClass+")"):s=Ut(i),a.push({multiDragElement:i,index:s})}),{items:$S($e),clones:[].concat($r),oldIndicies:n,newIndicies:a}},optionListeners:{multiDragKey:function(r){return r=r.toLowerCase(),r==="ctrl"?r="Control":r.length>1&&(r=r.charAt(0).toUpperCase()+r.substr(1)),r}}})}function yE(e,t){$e.forEach(function(r,n){var a=t.children[r.sortableIndex+(e?Number(n):0)];a?t.insertBefore(r,a):t.appendChild(r)})}function u2(e,t){$r.forEach(function(r,n){var a=t.children[r.sortableIndex+(e?Number(n):0)];a?t.insertBefore(r,a):t.appendChild(r)})}function ql(){$e.forEach(function(e){e!==Et&&e.parentNode&&e.parentNode.removeChild(e)})}Me.mount(new mE),Me.mount(kg,Dg);const xE=Gd(Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:wE,Sortable:Me,Swap:vE,default:Me},Symbol.toStringTag,{value:"Module"})));var l2={exports:{}};/*!
  Copyright (c) 2018 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],a=0;a<arguments.length;a++){var i=arguments[a];if(i){var s=typeof i;if(s==="string"||s==="number")n.push(i);else if(Array.isArray(i)){if(i.length){var u=r.apply(null,i);u&&n.push(u)}}else if(s==="object")if(i.toString===Object.prototype.toString)for(var l in i)t.call(i,l)&&i[l]&&n.push(l);else n.push(i.toString())}}return n.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(l2);var _E=l2.exports,CE="Invariant failed";function SE(e,t){if(!e)throw new Error(CE)}const EE=Gd(Object.freeze(Object.defineProperty({__proto__:null,default:SE},Symbol.toStringTag,{value:"Module"})));(function(e){var t=xE,r=_E,n=D,a=EE;function i(R){return R&&R.__esModule?R.default:R}function s(R,K,M,F){Object.defineProperty(R,K,{get:M,set:F,enumerable:!0,configurable:!0})}function u(R,K){return Object.keys(K).forEach(function(M){M==="default"||M==="__esModule"||R.hasOwnProperty(M)||Object.defineProperty(R,M,{enumerable:!0,get:function(){return K[M]}})}),R}s(e.exports,"Sortable",()=>$882b6d93070905b3$re_export$Sortable),s(e.exports,"Direction",()=>$882b6d93070905b3$re_export$Direction),s(e.exports,"DOMRect",()=>$882b6d93070905b3$re_export$DOMRect),s(e.exports,"GroupOptions",()=>$882b6d93070905b3$re_export$GroupOptions),s(e.exports,"MoveEvent",()=>$882b6d93070905b3$re_export$MoveEvent),s(e.exports,"Options",()=>$882b6d93070905b3$re_export$Options),s(e.exports,"PullResult",()=>$882b6d93070905b3$re_export$PullResult),s(e.exports,"PutResult",()=>$882b6d93070905b3$re_export$PutResult),s(e.exports,"SortableEvent",()=>$882b6d93070905b3$re_export$SortableEvent),s(e.exports,"SortableOptions",()=>$882b6d93070905b3$re_export$SortableOptions),s(e.exports,"Utils",()=>$882b6d93070905b3$re_export$Utils),s(e.exports,"ReactSortable",()=>O);function l(R){R.parentElement!==null&&R.parentElement.removeChild(R)}function f(R,K,M){const F=R.children[M]||null;R.insertBefore(K,F)}function h(R){R.forEach(K=>l(K.element))}function m(R){R.forEach(K=>{f(K.parentElement,K.element,K.oldIndex)})}function g(R,K){const M=_(R),F={parentElement:R.from};let U=[];switch(M){case"normal":U=[{element:R.item,newIndex:R.newIndex,oldIndex:R.oldIndex,parentElement:R.from}];break;case"swap":const A={element:R.item,oldIndex:R.oldIndex,newIndex:R.newIndex,...F},I={element:R.swapItem,oldIndex:R.newIndex,newIndex:R.oldIndex,...F};U=[A,I];break;case"multidrag":U=R.oldIndicies.map((T,V)=>({element:T.multiDragElement,oldIndex:T.index,newIndex:R.newIndicies[V].index,...F}));break}return S(U,K)}function p(R,K){const M=w(R,K);return y(R,M)}function w(R,K){const M=[...K];return R.concat().reverse().forEach(F=>M.splice(F.oldIndex,1)),M}function y(R,K,M,F){const U=[...K];return R.forEach(k=>{const C=F&&M&&F(k.item,M);U.splice(k.newIndex,0,C||k.item)}),U}function _(R){return R.oldIndicies&&R.oldIndicies.length>0?"multidrag":R.swapItem?"swap":"normal"}function S(R,K){return R.map(F=>({...F,item:K[F.oldIndex]})).sort((F,U)=>F.oldIndex-U.oldIndex)}function H(R){const{list:K,setList:M,children:F,tag:U,style:k,className:C,clone:A,onAdd:I,onChange:T,onChoose:V,onClone:P,onEnd:z,onFilter:Z,onRemove:re,onSort:te,onStart:oe,onUnchoose:xe,onUpdate:ge,onMove:le,onSpill:ve,onSelect:pe,onDeselect:Le,...Fe}=R;return Fe}const L={dragging:null};class O extends n.Component{constructor(K){super(K),this.ref=(0,n.createRef)();const M=[...K.list].map(F=>Object.assign(F,{chosen:!1,selected:!1}));K.setList(M,this.sortable,L),i(a)(!K.plugins,`
Plugins prop is no longer supported.
Instead, mount it with "Sortable.mount(new MultiDrag())"
Please read the updated README.md at https://github.com/SortableJS/react-sortablejs.
      `)}componentDidMount(){if(this.ref.current===null)return;const K=this.makeOptions();i(t).create(this.ref.current,K)}componentDidUpdate(K){K.disabled!==this.props.disabled&&this.sortable&&this.sortable.option("disabled",this.props.disabled)}render(){const{tag:K,style:M,className:F,id:U}=this.props,k={style:M,className:F,id:U},C=!K||K===null?"div":K;return(0,n.createElement)(C,{ref:this.ref,...k},this.getChildren())}getChildren(){const{children:K,dataIdAttr:M,selectedClass:F="sortable-selected",chosenClass:U="sortable-chosen",dragClass:k="sortable-drag",fallbackClass:C="sortable-falback",ghostClass:A="sortable-ghost",swapClass:I="sortable-swap-highlight",filter:T="sortable-filter",list:V}=this.props;if(!K||K==null)return null;const P=M||"data-id";return n.Children.map(K,(z,Z)=>{if(z===void 0)return;const re=V[Z]||{},{className:te}=z.props,oe=typeof T=="string"&&{[T.replace(".","")]:!!re.filtered},xe=i(r)(te,{[F]:re.selected,[U]:re.chosen,...oe});return(0,n.cloneElement)(z,{[P]:z.key,className:xe})})}get sortable(){const K=this.ref.current;if(K===null)return null;const M=Object.keys(K).find(F=>F.includes("Sortable"));return M?K[M]:null}makeOptions(){const K=["onAdd","onChoose","onDeselect","onEnd","onRemove","onSelect","onSpill","onStart","onUnchoose","onUpdate"],M=["onChange","onClone","onFilter","onSort"],F=H(this.props);return K.forEach(k=>F[k]=this.prepareOnHandlerPropAndDOM(k)),M.forEach(k=>F[k]=this.prepareOnHandlerProp(k)),{...F,onMove:(k,C)=>{const{onMove:A}=this.props,I=k.willInsertAfter||-1;if(!A)return I;const T=A(k,C,this.sortable,L);return typeof T>"u"?!1:T}}}prepareOnHandlerPropAndDOM(K){return M=>{this.callOnHandlerProp(M,K),this[K](M)}}prepareOnHandlerProp(K){return M=>{this.callOnHandlerProp(M,K)}}callOnHandlerProp(K,M){const F=this.props[M];F&&F(K,this.sortable,L)}onAdd(K){const{list:M,setList:F,clone:U}=this.props,k=[...L.dragging.props.list],C=g(K,k);h(C);const A=y(C,M,K,U).map(I=>Object.assign(I,{selected:!1}));F(A,this.sortable,L)}onRemove(K){const{list:M,setList:F}=this.props,U=_(K),k=g(K,M);m(k);let C=[...M];if(K.pullMode!=="clone")C=w(k,C);else{let A=k;switch(U){case"multidrag":A=k.map((I,T)=>({...I,element:K.clones[T]}));break;case"normal":A=k.map(I=>({...I,element:K.clone}));break;case"swap":default:i(a)(!0,`mode "${U}" cannot clone. Please remove "props.clone" from <ReactSortable/> when using the "${U}" plugin`)}h(A),k.forEach(I=>{const T=I.oldIndex,V=this.props.clone(I.item,K);C.splice(T,1,V)})}C=C.map(A=>Object.assign(A,{selected:!1})),F(C,this.sortable,L)}onUpdate(K){const{list:M,setList:F}=this.props,U=g(K,M);h(U),m(U);const k=p(U,M);return F(k,this.sortable,L)}onStart(){L.dragging=this}onEnd(){L.dragging=null}onChoose(K){const{list:M,setList:F}=this.props,U=M.map((k,C)=>{let A=k;return C===K.oldIndex&&(A=Object.assign(k,{chosen:!0})),A});F(U,this.sortable,L)}onUnchoose(K){const{list:M,setList:F}=this.props,U=M.map((k,C)=>{let A=k;return C===K.oldIndex&&(A=Object.assign(A,{chosen:!1})),A});F(U,this.sortable,L)}onSpill(K){const{removeOnSpill:M,revertOnSpill:F}=this.props;M&&!F&&l(K.item)}onSelect(K){const{list:M,setList:F}=this.props,U=M.map(k=>Object.assign(k,{selected:!1}));K.newIndicies.forEach(k=>{const C=k.index;if(C===-1){console.log(`"${K.type}" had indice of "${k.index}", which is probably -1 and doesn't usually happen here.`),console.log(K);return}U[C].selected=!0}),F(U,this.sortable,L)}onDeselect(K){const{list:M,setList:F}=this.props,U=M.map(k=>Object.assign(k,{selected:!1}));K.newIndicies.forEach(k=>{const C=k.index;C!==-1&&(U[C].selected=!0)}),F(U,this.sortable,L)}}Ou(O,"defaultProps",{clone:K=>K});var j={};u(e.exports,j)})(Fv);var c2=Fv.exports;function d2(e){const t=[];for(const a of e.value)t.push({id:e.itemId(a),data:a});function r(a){const i=[];for(const s of a)i.push(s.data);e.onChange(i)}function n(a,i){switch(a.key){case"ArrowUp":{const s=e.value.slice();Pv(s,i,i-1),e.onChange(s),a.preventDefault();break}case"ArrowDown":{const s=e.value.slice();Pv(s,i,i+1),e.onChange(s),a.preventDefault();break}}}return o(c2.ReactSortable,{list:t,setList:r,className:"flex flex-col gap-4",direction:"vertical",handle:".wpra-sortable-handle",animation:250,children:t.map((a,i)=>b("div",{className:"flex flex-row items-baseline gap-2 text-md font-semibold leading-6",children:[o("div",{className:"wpra-sortable-handle cursor-grab ring-primary focus:ring",tabIndex:0,onKeyDown:s=>n(s,i),children:o(RS,{})}),e.renderItem(a.data,i)]},a.id))})}function AE(){const[e,t]=ue.useDisplaySetting("gridComponents");return b(ie,{children:[o("p",{className:"text-sm leading-4 text-gray-700",children:c.__("Arrange the order of the sections in your display by dragging and dropping them below.","wp-rss-aggregator")}),o(d2,{value:e??[],onChange:t,itemId:r=>r.type,renderItem:DE})]})}function DE(e){switch(e.type){case"title":return o("span",{children:c.__("Title","wp-rss-aggregator")});case"image":return o("span",{children:c.__("Image","wp-rss-aggregator")});case"audio":return o("span",{children:c.__("Audio player","wp-rss-aggregator")});case"excerpt":return o("span",{children:c.__("Excerpt","wp-rss-aggregator")});case"info":return o(kE,{})}return o("span",{children:c.__("Unknown","wp-rss-aggregator")})}function kE(){const[e,t]=ue.useDisplaySetting("gridInfoComponents"),[r,n]=ue.useDisplaySetting("gridStackInfoItems");return b("div",{children:[o("p",{className:"text-semibold text-md leading-6 mb-4",children:c.__("Information","wp-rss-aggregator")}),o("div",{className:"mb-4",children:o(ne,{label:c.__("Stack items","wp-rss-aggregator"),inline:!0,children:o(ye,{checked:r,onChange:n})})}),o(d2,{value:e??[],onChange:t,itemId:a=>a.type,renderItem:NE})]})}function NE(e){switch(e.type){case"author":return o("span",{children:c.__("Author","wp-rss-aggregator")});case"source":return o("span",{children:c.__("Source","wp-rss-aggregator")});case"date":return o("span",{children:c.__("Date","wp-rss-aggregator")})}return o("span",{children:c.__("Unknown","wp-rss-aggregator")})}function TE(){const[e,t]=ue.useDisplaySetting("gridEnableBorders");return o(ne,{label:c.__("Show borders","wp-rss-aggregator"),inline:!0,children:o(ye,{checked:e,onChange:t})})}function HE(){const[e,t]=ue.useDisplaySetting("gridItemClickable"),[r]=ue.useDisplaySetting("layout"),[n]=ue.useDisplaySetting("gridUseImageAsBg");return b(ie,{children:[o(ne,{label:c.__("Make whole grid item clickable","wp-rss-aggregator"),disabled:r==="grid"&&n,inline:!0,children:o(ye,{checked:e,onChange:t})}),r==="grid"&&o("p",{className:"text-sm leading-4 text-gray-700",children:c.__("This setting doesn’t apply when the image is used as a background.","wp-rss-aggregator")})]})}function Un(e,t,r){return n=>e(n===t?r:n)}function IE(){const[e,t]=ue.useDisplaySetting("gridMaxColumns");return o(ne,{label:c.__("Max number of columns","wp-rss-aggregator"),children:o(It,{className:"w-full",value:e,onChange:Un(t,null,1),placeholder:c.__("Number of columns","wp-rss-aggregator"),unit:c._n("column","columns",e??0,"wp-rss-aggregator"),min:1,max:12})})}function Ng(){const[e,t]=ue.useDisplaySetting("numItems");return o(ne,{label:c.__("Number of items","wp-rss-aggregator"),children:o(It,{className:"w-full",value:e,onChange:r=>t(r??0),unit:c._n("item","items",e??0,"wp-rss-aggregator"),min:1})})}function OE(){const[e]=ue.useDisplaySetting("layout");return b("div",{className:"flex flex-col",children:[o(ME,{layout:e}),o(or,{label:c.__("Item settings","wp-rss-aggregator"),defaultOpen:!0,bordered:!0,padded:!0,children:o(LE,{layout:e})}),e==="grid"&&o(or,{label:c.__("Order","wp-rss-aggregator"),defaultOpen:!0,bordered:!0,padded:!0,children:o(AE,{})}),o(or,{label:c.__("Custom Styles","wp-rss-aggregator"),defaultOpen:!0,bordered:!0,padded:!0,children:o(VE,{})})]})}function ME(e){switch(e.layout){case"list":return o(Pe.Section,{children:o(Ng,{})});case"et":return b(ie,{children:[o(Pe.Section,{children:o(PS,{})}),o(or,{label:c.__("Feed settings","wp-rss-aggregator"),bordered:!0,defaultOpen:!0,padded:!0,children:o(Ng,{})})]});case"grid":return b(Pe.Section,{children:[o(Ng,{}),o(IE,{})]})}return null}function LE(e){switch(e.layout){case"list":case"et":return b(ie,{children:[o(MS,{}),o(OS,{})]});case"grid":return b(ie,{children:[o(TE,{}),o(HE,{}),o(BS,{})]})}return null}function VE(){return o(ie,{children:o(FS,{})})}function PE(){const[e,t]=ue.useDisplaySetting("enableAudioPlayer");return o(ne,{label:c.__("Show audio player","wp-rss-aggregator"),inline:!0,children:o(ye,{checked:e,onChange:t})})}function FE(){return o(Pe.Section,{children:o(PE,{})})}function BE(){const[e]=ue.useDisplaySetting("enableAuthors"),[t,r]=ue.useDisplaySetting("authorPrefix");return o(ne,{label:c.__("Author name prefix","wp-rss-aggregator"),disabled:!e,children:o(tt,{className:"w-full",value:t,onChange:r})})}function RE(){const[e,t]=ue.useDisplaySetting("enableAuthors");return o(ne,{label:c.__("Show author name","wp-rss-aggregator"),inline:!0,children:o(ye,{checked:e,onChange:t})})}function UE(){return b(Pe.Section,{children:[o(RE,{}),o(BE,{})]})}function KE(){const[e]=ue.useDisplaySetting("enableDates"),[t,r]=ue.useDisplaySetting("dateFormat");return o(ne,{label:c.__("Publish date format","wp-rss-aggregator"),disabled:!e,children:o(tt,{value:t,onChange:r})})}function zE(){const[e]=ue.useDisplaySetting("enableDates"),[t,r]=ue.useDisplaySetting("datePrefix");return o(ne,{label:c.__("Publish date prefix","wp-rss-aggregator"),disabled:!e,children:o(tt,{value:t,onChange:r})})}function $E(){const[e,t]=ue.useDisplaySetting("enableDates");return o(ne,{label:c.__("Show publish date","wp-rss-aggregator"),inline:!0,children:o(ye,{checked:e,onChange:t})})}function jE(){const[e]=ue.useDisplaySetting("enableDates"),[t,r]=ue.useDisplaySetting("useRelDateFormat");return o(ne,{label:c.__('Use "time ago" format',"wp-rss-aggregator"),disabled:!e,inline:!0,children:o(ye,{checked:t,onChange:r})})}function qE(){return b(Pe.Section,{children:[o($E,{}),o(zE,{}),o(KE,{}),o(jE,{})]})}function f2(){const[e,t]=ue.useDisplaySetting("enableExcerpts");return o(ne,{label:c.__("Show excerpt","wp-rss-aggregator"),inline:!0,children:o(ye,{checked:e,onChange:t})})}function g2(){const[e]=ue.useDisplaySetting("enableExcerpts"),[t,r]=ue.useDisplaySetting("excerptEllipsis"),[n]=ue.useDisplaySetting("excerptMaxWords");return o(ne,{label:c.__("Add custom text after excerpt","wp-rss-aggregator"),disabled:!n||!e,children:o(Cl,{value:t,onChange:r,placeholder:"..."})})}function h2(){const[e]=ue.useDisplaySetting("enableExcerpts"),[t,r]=ue.useDisplaySetting("excerptMaxWords");return o(ne,{label:c.__("Maximum length","wp-rss-aggregator"),disabled:!e,children:o(It,{className:"w-full",value:t??"",onChange:Un(r,0,null),placeholder:c.__("No limit","wp-rss-aggregator"),unit:c.__("words","wp-rss-aggregator"),min:0})})}function WE(){const[e]=ue.useDisplaySetting("layout");switch(e){case"et":return o(GE,{});case"grid":return o(ZE,{});default:return null}}function GE(){return b(Pe.Section,{children:[o(f2,{}),o(h2,{}),o(g2,{})]})}function ZE(){return b(Pe.Section,{children:[o(f2,{}),o(h2,{}),o(g2,{})]})}function p2(){const[e,t]=ue.useDisplaySetting("enableImages");return o(ne,{label:c.__("Show image","wp-rss-aggregator"),inline:!0,children:o(ye,{checked:e,onChange:t})})}const YE=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.9899 10.8888L12.0018 14.3071L8.01367 10.8888L8.98986 9.74988L12.0018 12.3315L15.0137 9.74988L15.9899 10.8888Z",fill:"currentColor"})),m2=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.0045 10.555L12 16.0136L5.9955 10.555L7.0045 9.44507L12 13.9864L16.9955 9.44507L18.0045 10.555Z",fill:"currentColor"}));function Tg(e,t,r,n){return n?e.find(a=>n(a[t],r)):e.find(a=>a[t]===r)}const v2=D.createContext({activeIndex:null,isTyping:!1,getItemProps:()=>({}),selectOption:()=>{}}),QE=()=>D.useContext(v2),b2=D.createContext(0),w2=()=>D.useContext(b2);function He(e){const{id:t,label:r,placeholder:n="",className:a,children:i,onSelect:s,disabled:u}=e,[l,f]=D.useState(!1),h=Ln(t),m=Jr();return h.disabled=h.disabled||u,o(He.Menu,{isOpen:l,setIsOpen:f,disabled:u,control:(g,p,w)=>o(He.Control,{ref:en(g,m.ref),className:a,label:r,placeholder:n?.toString(),isOpen:w,...p,...m.props,...h}),onSelect:s,children:i})}He.Menu=function(t){const{control:r,isOpen:n=!1,setIsOpen:a,className:i,children:s,onSelect:u,keepOpen:l=!1,iUseClick:f=!0,iUseTypeahead:h=!0,disabled:m=!1}=t,[g,p]=D.useState(null),w=D.useRef(!1),y=D.useRef([]),_=D.useRef([]),{context:S,refs:H,floatingStyles:L}=Ri({placement:"bottom-start",open:n,onOpenChange:a,whileElementsMounted:qo,middleware:[$o(4),zo({padding:10}),n1({apply({elements:k,availableWidth:C,availableHeight:A}){Object.assign(k.floating.style,{minWidth:`${k.reference.getBoundingClientRect().width}px`,maxWidth:`${C}px`,maxHeight:`${Math.max(150,A-32)}px`})}})]}),O=[Bi(S),i8(S,{listRef:y,loop:!0,activeIndex:g,onNavigate:p})];f&&O.push(hf(S,{event:"mousedown",keyboardHandlers:!0})),h&&O.push(o8(S,{resetMs:1e3,listRef:_,activeIndex:g,onMatch:p,onTypingChange(k){w.current=k}}));const{getReferenceProps:j,getFloatingProps:R,getItemProps:K}=Ui(O),F={activeIndex:g,getItemProps:K,selectOption:(k,C)=>{p(C),u?.(k),l||a?.(!1)},isTyping:w.current},U=D.useCallback(()=>r(H.setReference,j(),n),[r,H.setReference,j,n]);return b(ie,{children:[U(),n&&!m&&o(Fi,{children:o(Xo,{context:S,children:o(Zx,{elementsRef:y,labelsRef:_,children:o(v2.Provider,{value:F,children:o("div",{ref:H.setFloating,className:fe("z-widgets flex flex-col items-stretch gap-[2px] overflow-auto rounded-xs border border-gray-600 bg-white p-1",i),style:L,...R(),children:s})})})})})]})},He.Option=function({value:t,label:r,selected:n,className:a,disabled:i,children:s}){const{ref:u,index:l}=Yx({label:i?null:r??t}),{activeIndex:f,getItemProps:h,selectOption:m,isTyping:g}=QE(),p=w2(),w=f===l,y=h({onClick(){m(t,l)},onKeyDown(_){(_.key==="Enter"||_.key===" "&&!g)&&(_.preventDefault(),m(t,l))}});return o("button",{ref:u,className:fe("appearance-none rounded-xs px-[16px] py-[12px] text-left text-md text-gray-900","hover:bg-gray-100","disabled:cursor-not-allowed disabled:text-gray-600 disabled:hover:bg-white",w&&"bg-gray-100",n&&"font-semibold",a),disabled:i,tabIndex:w&&!i?0:-1,role:"option","aria-selected":n&&w,style:{textIndent:`${p*.625}rem`},...y,children:s??r??t})},He.Group=function({label:t,children:r}){const n=D.useId(),a=w2();return o(b2.Provider,{value:a+1,children:b("div",{className:"flex flex-col items-stretch gap-[2px]",role:"group","aria-labelledby":n,style:{textIndent:`${a*.625}rem`},children:[o("div",{id:n,className:"select-none px-[16px] py-[8px] text-md font-bold uppercase text-gray-700",children:t}),o("div",{className:"flex flex-col items-stretch gap-[2px]",children:r})]})})},He.Control=D.forwardRef(function({className:t,label:r,placeholder:n,isOpen:a,...i},s){return b("button",{ref:s,className:fe("group relative box-border h-[40px] appearance-none overflow-hidden rounded-xs border border-gray-600 bg-white py-[12px] pl-[16px] pr-[40px] text-left text-md leading-[16px] text-gray-900","focus:border-primary focus:ring-1 focus:ring-primary","data-[open=true]:border-primary data-[open=true]:ring-1 data-[open=true]:ring-primary","disabled:cursor-not-allowed disabled:border-gray-400 disabled:bg-gray-100 disabled:text-gray-600",t),"data-open":a,"aria-expanded":a,"aria-haspopup":"listbox",...i,children:[o("span",{className:"relative -top-[1px] inline-block max-w-full overflow-hidden text-ellipsis whitespace-nowrap",children:r??n}),o(m2,{className:"absolute right-[8px] top-1/2 -translate-y-1/2 transform bg-white group-disabled:bg-gray-100 "})]})}),He.Simple=function({options:e=[],value:t,placeholder:r,...n}){const a=Tg(e,"value",t?.toString()??"");return o(He,{...n,placeholder:a?.label??a?.value??r,children:e.map(i=>He.renderOption(i,t))})},He.Slim=function({value:t,options:r,placeholder:n,...a}){const[i,s]=D.useState(!1),u=Tg(r,"value",t)?.label??n;return o(He.Menu,{isOpen:i,setIsOpen:s,control:(l,f)=>o(He.SlimButton,{ref:l,label:u,...f}),children:r.map(l=>He.renderOption(l,t)),...a})},He.SlimButton=D.forwardRef(function(t,r){const{label:n,...a}=t;return b("button",{ref:r,className:"flex flex-row items-center text-md font-bold leading-6 text-black ring-primary focus-visible:ring-2",...a,children:[o("div",{children:n}),o(YE,{})]})}),He.Search=function({id:e,className:t,options:r,label:n,placeholder:a,search:i,onSearch:s,onSelect:u,children:l,disabled:f,...h}){const m=D.useRef(null),[g,p]=D.useState(!1);function w(){p(!0),s(""),requestAnimationFrame(()=>{requestAnimationFrame(()=>{m.current?.focus()})})}function y(){p(!1)}function _(O){u?.(O),y()}const S=Ln(e),H=Jr(),L=r?.find(O=>O.value===h.value);return o(He.Menu,{isOpen:g,iUseClick:!1,iUseTypeahead:!1,disabled:f,onSelect:_,setIsOpen:p,control:(O,j)=>{const R=en(O,H.ref),K={...j,...H.props,...S};return b(ie,{children:[o(He.Control,{ref:g?void 0:O,className:fe(t,"block",g&&"hidden"),label:n,placeholder:a?.toString(),...K,onClick:w}),o("div",{ref:g?R:void 0,className:fe("[&>*]:w-full",!g&&"hidden",t),children:o(bl,{ref:m,className:"w-full",value:i,onChange:s,placeholder:L?.label?.toString(),...K,onClickReset:y,autoComplete:"off"})})]})},children:r?.map(O=>He.renderOption(O,i))})},He.renderOption=function(e,t){return o(He.Option,{value:e.value,label:e.label??e.value,selected:!!t&&e.value===t,disabled:e.disabled},e.value)};const XE=[{value:"1",label:c.__("Use the source’s default image","wp-rss-aggregator")},{value:"0",label:c.__("Show no image","wp-rss-aggregator")}];function JE(){const[e]=ue.useDisplaySetting("enableImages"),[t,r]=ue.useDisplaySetting("fallbackToSrcImage");return o(ne,{label:c.__("If featured image is not available","wp-rss-aggregator"),disabled:!e,children:o(He.Simple,{options:XE,value:t?"1":"0",onSelect:n=>r(n==="1")})})}function eA(){const[e]=ue.useDisplaySetting("enableImages"),[t,r]=ue.useDisplaySetting("imageHeight"),n=t?t.toString():"";return o(ne,{label:c.__("Featured image height","wp-rss-aggregator"),disabled:!e,children:o(It,{value:n,onChange:Un(r,0,""),min:1,unit:"px",className:"w-full",placeholder:c.__("Auto","wp-rss-aggregator")})})}function tA(){const[e]=ue.useDisplaySetting("enableImages"),[t,r]=ue.useDisplaySetting("imageWidth"),[n,a]=ue.useDisplaySetting("imageHeight");return b("div",{className:"flex flex-row flex-nowrap items-center gap-4",children:[o(ne,{label:c.__("Width","wp-rss-aggregator"),disabled:!e,children:o(It,{className:"w-full",value:t,onChange:Un(r,null,""),unit:"px",min:1})}),o(ne,{label:c.__("Height","wp-rss-aggregator"),disabled:!e,children:o(It,{className:"w-full",value:n,onChange:Un(a,null,""),unit:"px",min:1})})]})}const rA=[{value:"fill",label:c.__("Fill container","wp-rss-aggregator")},{value:"fit",label:c.__("Fit whole image","wp-rss-aggregator")}];function nA(){const[e]=ue.useDisplaySetting("enableImages"),[t,r]=ue.useDisplaySetting("gridFitImages"),n=!e;function a(i){r(i==="fit")}return o(ne,{label:c.__("Image resizing","wp-rss-aggregator"),disabled:n,children:o(He.Simple,{options:rA,value:t?"fit":"fill",onSelect:a})})}function y2(){const[e]=ue.useDisplaySetting("enableImages"),[t]=ue.useDisplaySetting("gridUseImageAsBg"),[r,n]=ue.useDisplaySetting("linkImages"),[a]=ue.useDisplaySetting("layout"),i=a==="grid"?c.__("This setting doesn’t apply when the image is used as a background or when the whole grid item is clickable.","wp-rss-aggregator"):null;return o(ne,{label:c.__("Link image","wp-rss-aggregator"),help:i,disabled:!e||a==="grid"&&t,inline:!0,children:o(ye,{checked:r,onChange:n})})}function x2(){const[e]=ue.useDisplaySetting("enableImages"),[t,r]=ue.useDisplaySetting("gridEnableEmbeds"),[n]=ue.useDisplaySetting("layout"),a=n==="grid"?c.__("Currently only supports YouTube videos.","wp-rss-aggregator"):null;return o(ne,{label:c.__("Replace with embed (if available)","wp-rss-aggregator"),disabled:!e,help:a,inline:!0,children:o(ye,{checked:t,onChange:r})})}function aA(){const[e]=ue.useDisplaySetting("enableImages"),[t,r]=ue.useDisplaySetting("gridUseImageAsBg");return o(ne,{label:c.__("Use featured image as background","wp-rss-aggregator"),disabled:!e,inline:!0,children:o(ye,{checked:t,onChange:r})})}function iA(){const[e]=ue.useDisplaySetting("layout");switch(e){case"grid":return o(oA,{});case"et":return o(sA,{})}return null}function oA(){return b(Pe.Section,{children:[o(p2,{}),o(aA,{}),o(y2,{}),o(eA,{}),o(nA,{}),o(x2,{})]})}function sA(){return b(Pe.Section,{children:[o(p2,{}),o(y2,{}),o(tA,{}),o(x2,{}),o(JE,{})]})}function uA(){const[e]=ue.useDisplaySetting("enableExcerpts"),[t,r]=ue.useDisplaySetting("enableReadMore");return o(ne,{label:c.__('Show "Read more" link',"wp-rss-aggregator"),disabled:!e,inline:!0,children:o(ye,{checked:t,onChange:r})})}const lA=[{value:"_blank",label:c.__("Open in a new tab","wp-rss-aggregator")},{value:"_self",label:c.__("Open in the same tab/window","wp-rss-aggregator")},{value:"lightbox",label:c.__("Open in a lightbox","wp-rss-aggregator")}];function _2(){const[e,t]=ue.useDisplaySetting("linkTarget");function r(n){n==="_blank"||n==="_self"||n==="lightbox"?t(n):console.error(`Invalid link target: ${n}`)}return o(ne,{label:c.__("Open links behaviour","wp-rss-aggregator"),children:o(He.Simple,{options:lA,value:e,onSelect:r})})}function C2(){const[e,t]=ue.useDisplaySetting("linkToEmbeds");return o(ne,{label:c.__("Set links to open embeds","wp-rss-aggregator"),inline:!0,children:o(ye,{checked:e,onChange:t})})}function S2(){const[e,t]=ue.useDisplaySetting("linksNoFollow");return o(ne,{label:c.__("Set links to nofollow","wp-rss-aggregator"),inline:!0,children:o(ye,{checked:e,onChange:t})})}function cA(){const[e]=ue.useDisplaySetting("enableExcerpts"),[t,r]=ue.useDisplaySetting("readMoreText");return o(ne,{label:c.__('"Read more" text',"wp-rss-aggregator"),disabled:!e,children:o(tt,{value:t,onChange:r})})}function dA(){const[e]=ue.useDisplaySetting("layout");return b("div",{className:"flex flex-col",children:[e!=="list"&&b(ie,{children:[b("div",{className:"flex flex-col gap-4 p-8",children:[o(uA,{}),o(cA,{})]}),b(or,{label:c.__("Link settings","wp-rss-aggregator"),defaultOpen:!0,bordered:!0,padded:!0,children:[o(S2,{}),o(_2,{}),o(C2,{})]})]}),e==="list"&&b(Pe.Section,{children:[o(S2,{}),o(_2,{}),o(C2,{})]})]})}function fA(){const[e,t]=ue.useDisplaySetting("enablePagination");return o(ne,{label:c.__("Show pagination","wp-rss-aggregator"),inline:!0,children:o(ye,{checked:e,onChange:t})})}const gA=[{value:"older_newer",label:c.__("Older/Newer","wp-rss-aggregator")},{value:"numbered",label:c.__("Numbered","wp-rss-aggregator")}];function hA(){const[e]=ue.useDisplaySetting("enablePagination"),[t,r]=ue.useDisplaySetting("paginationStyle");function n(a){a==="older_newer"||a==="numbered"?r(a):console.error(`Invalid pagination style: ${a}`)}return o(ne,{label:c.__("Pagination style","wp-rss-aggregator"),disabled:!e,children:o(He.Simple,{options:gA,value:t,onSelect:n})})}function pA(){return b(Pe.Section,{children:[o(fA,{}),o(hA,{})]})}function mA(){const[e,t]=ue.useDisplaySetting("enableSources");return o(ne,{label:c.__("Show source name","wp-rss-aggregator"),inline:!0,children:o(ye,{checked:e,onChange:t})})}function vA(){const[e]=ue.useDisplaySetting("enableSources"),[t,r]=ue.useDisplaySetting("linkSource");return o(ne,{label:c.__("Link source name","wp-rss-aggregator"),inline:!0,children:o(ye,{checked:t,onChange:r,disabled:!e})})}function bA(){const[e]=ue.useDisplaySetting("enableSources"),[t,r]=ue.useDisplaySetting("sourcePrefix");return o(ne,{label:c.__("Source name prefix","wp-rss-aggregator"),children:o(tt,{value:t,onChange:r,disabled:!e,placeholder:c.__("Source: ","wp-rss-aggregator")})})}function wA(){return b(Pe.Section,{children:[o(mA,{}),o(vA,{}),o(bA,{})]})}function Hg(){const[e,t]=ue.useDisplaySetting("enableTitles");return o(ne,{label:c.__("Show title","wp-rss-aggregator"),inline:!0,children:o(ye,{checked:e,onChange:t})})}function Ig(){const[e]=ue.useDisplaySetting("enableTitles"),[t,r]=ue.useDisplaySetting("linkTitles");return o(ne,{label:c.__("Link title","wp-rss-aggregator"),disabled:!e,inline:!0,children:o(ye,{checked:t,onChange:r})})}function Og(){const[e]=ue.useDisplaySetting("enableTitles"),[t,r]=ue.useDisplaySetting("titleMaxLength");return o(ne,{label:c.__("Maximum length","wp-rss-aggregator"),disabled:!e,children:o(It,{className:"w-full",value:t??"",onChange:Un(r,0,null),unit:c.__("words","wp-rss-aggregator"),placeholder:c.__("No limit","wp-rss-aggregator"),min:0})})}function yA(){const[e]=ue.useDisplaySetting("layout");switch(e){case"list":return o(xA,{});case"et":return o(CA,{});case"grid":return o(_A,{});default:return null}}function xA(){return b(Pe.Section,{children:[o(Hg,{}),o(Ig,{}),o(Og,{})]})}function _A(){return b(Pe.Section,{children:[o(Hg,{}),o(Ig,{}),o(Og,{})]})}function CA(){return b(Pe.Section,{children:[o(Hg,{}),o(Og,{}),o(Ig,{})]})}const E2=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.9833 14.0336C12.3493 13.3952 11.4708 13 10.5 13C8.567 13 7 14.567 7 16.5C7 18.433 8.567 20 10.5 20C12.0227 20 13.3184 19.0275 13.7997 17.6698C14.3123 16.7869 14.4833 15.816 14.4833 15.1379V7.89794C14.4833 7.23308 14.6262 6.82 14.8008 6.5557C14.9729 6.29511 15.2177 6.11578 15.539 5.99059C16.1685 5.74528 16.9473 5.74844 17.7302 5.75162C17.8202 5.75198 17.9102 5.75235 18.0001 5.75234L17.9999 4.25234C17.9197 4.25235 17.8332 4.25161 17.7415 4.25083L17.7415 4.25083C16.9999 4.24452 15.9122 4.23527 14.9943 4.59296C14.449 4.80549 13.9271 5.15694 13.5492 5.72886C13.1738 6.29707 12.9833 7.0182 12.9833 7.89794V14.0336Z",fill:"currentColor"})),Mg=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 4.5C10 5.05228 9.55228 5.5 9 5.5C8.44772 5.5 8 5.05228 8 4.5C8 3.94772 8.44772 3.5 9 3.5C9.55228 3.5 10 3.94772 10 4.5ZM11.5 4.5C11.5 5.88071 10.3807 7 9 7C7.61929 7 6.5 5.88071 6.5 4.5C6.5 3.11929 7.61929 2 9 2C10.3807 2 11.5 3.11929 11.5 4.5ZM13.75 11.9999V10.9999C13.75 9.4811 12.5188 8.24988 11 8.24988L7 8.24988C5.48122 8.24988 4.25 9.4811 4.25 10.9999L4.25 11.9999L5.75 11.9999L5.75 10.9999C5.75 10.3095 6.30964 9.74988 7 9.74988L11 9.74988C11.6904 9.74988 12.25 10.3095 12.25 10.9999V11.9999H13.75ZM4 19.9999H13V18.4999H4V19.9999ZM20 15.9999H4V14.4999H20V15.9999Z",fill:"currentColor"})),A2=me(()=>o("path",{d:"M4 20H12V18.5H4V20ZM18.9 3.49999C18.3 2.89999 17.4 2.89999 16.8 3.49999L9.6 10.7C9.2 10.6 8.9 10.7 8.5 10.8C8 11 7 11.5 6.6 13C6.2 14.7 5.8 15.2 5.5 15.7C5.4 15.8 5.3 16 5.2 16.1L4.6 17.2H6C8 17.2 9.4 16.8 10.7 15.8C11.5 15.2 11.9 14.4 12 13.5C12 13.2 12 13 11.9 12.8L19 5.69999C19.5 5.09999 19.5 4.09999 18.9 3.49999ZM9.7 14.7C9 15.2 8.2 15.5 7.3 15.7C7.5 15.2 7.8 14.5 8.1 13.4C8.3 12.8 8.5 12.4 8.9 12.3C9.4 12.2 9.9 12.4 10.2 12.6C10.4 12.8 10.5 13.1 10.4 13.4C10.4 13.7 10.3 14.3 9.7 14.7Z",fill:"currentColor"})),D2=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 7V5C3 3.89543 3.89543 3 5 3H19C20.1046 3 21 3.89543 21 5V7V19C21 20.1046 20.1046 21 19 21H5C3.89543 21 3 20.1046 3 19V7ZM19.5 7V19C19.5 19.2761 19.2761 19.5 19 19.5H5C4.72386 19.5 4.5 19.2761 4.5 19V7H19.5ZM11.6959 13.9724C12.0522 13.4255 12.2949 13.0138 12.424 12.7373C12.5591 12.4608 12.6267 12.1997 12.6267 11.9539C12.6267 11.6897 12.5499 11.4839 12.3963 11.3364C12.2488 11.1828 12.043 11.106 11.7788 11.106C11.4839 11.106 11.2104 11.1767 10.9585 11.318C10.7066 11.4593 10.4608 11.6498 10.2212 11.8894L10.0737 10.7005C10.3625 10.467 10.6636 10.2919 10.977 10.1751C11.2903 10.0584 11.6375 10 12.0184 10C12.3932 10 12.7127 10.0799 12.977 10.2396C13.2412 10.3932 13.4378 10.6022 13.5668 10.8664C13.702 11.1306 13.7696 11.4224 13.7696 11.7419C13.7696 12.1045 13.6897 12.4762 13.53 12.8571C13.3763 13.2381 13.1029 13.7266 12.7097 14.3226L11.9539 15.4747H14V16.5806H10L11.6959 13.9724Z",fill:"currentColor"})),Lg=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.4229 10.6873C12.6482 10.3105 12.75 9.8541 12.75 9.33254V9.32255V9.31255V9.30254V9.29253V9.28252V9.27251V9.26249V9.25247V9.24245V9.23242V9.22239V9.21235V9.20232V9.19228V9.18223V9.17219V9.16214V9.15209V9.14203V9.13197V9.12191V9.11185V9.10178V9.09171V9.08163V9.07156V9.06148V9.05139V9.04131V9.03122V9.02113V9.01103V9.00093V8.99083V8.98073V8.97062V8.96051V8.9504V8.94028V8.93017V8.92004V8.90992V8.89979V8.88966V8.87953V8.86939V8.85926V8.84911V8.83897V8.82882V8.81867V8.80852V8.79837V8.78821V8.77805V8.76788V8.75772V8.74755V8.73737V8.7272V8.71702V8.70684V8.69666V8.68647V8.67629V8.6661V8.6559V8.64571V8.63551V8.62531V8.6151V8.6049V8.59469V8.58448V8.57426V8.56405V8.55383V8.5436V8.53338V8.52315V8.51292V8.50269V8.49246V8.48222V8.47198V8.46174V8.4515V8.44125V8.431V8.42075V8.4105V8.40024V8.38998V8.37972V8.36946V8.35919V8.34892V8.33865V8.32838V8.3181V8.30783V8.29755V8.28726V8.27698V8.26669V8.2564V8.24611V8.23582V8.22552V8.21523V8.20493V8.19462V8.18432V8.17401V8.1637V8.15339V8.14308V8.13276V8.12245V8.11213V8.1018V8.09148V8.08115V8.07083V8.0605V8.05016V8.03983V8.02949V8.01915V8.00881V7.99847V7.98813V7.97778V7.96743V7.95708V7.94673V7.93637V7.92602V7.91566V7.9053V7.89494V7.88457V7.87421V7.86384V7.85347V7.8431V7.83272V7.82235V7.81197V7.80159V7.79121V7.78083V7.77044V7.76006V7.74967V7.73928V7.72889V7.71849V7.7081V7.6977V7.6873V7.6769V7.6665V7.65609V7.64569V7.63528V7.62487V7.61446V7.60405V7.59363V7.58322V7.5728V7.56238V7.55196V7.54154V7.53112V7.52069V7.51026V7.49983V7.4894V7.47897V7.46854V7.4581V7.44767V7.43723V7.42679V7.41635V7.40591V7.39547V7.38502V7.37457V7.36413V7.35368V7.34323V7.33277V7.32232V7.31186V7.30141V7.29095V7.28049V7.27003V7.25957V7.24911V7.23864V7.22817V7.21771V7.20724V7.19677V7.1863V7.17583V7.16535V7.15488V7.1444V7.13392V7.12345V7.11297V7.10249V7.092V7.08152V7.07104V7.06055V7.05006V7.03958V7.02909V7.0186V7.00811V6.99761V6.98712V6.97663V6.96613V6.95563V6.94514V6.93464V6.92414V6.91364V6.90313V6.89263V6.88213V6.87162V6.86112V6.85061V6.8401V6.82959V6.81908V6.80857V6.79806V6.78755V6.77704V6.76652V6.75601V6.74549V6.73497V6.72446V6.71394V6.70342V6.6929V6.68238V6.67186V6.66133V6.65081V6.64029V6.62976V6.61924V6.60871V6.59818V6.58765V6.57713V6.5666V6.55607V6.54554V6.53501V6.52447V6.51394V6.50341V6.49287V6.48234V6.4718V6.46127V6.45073V6.44019V6.42966V6.41912V6.40858V6.39804V6.3875V6.37696V6.36642V6.35588V6.34534V6.33479V6.32425V6.31371V6.30316V6.29262V6.28208V6.27153V6.26098V6.25044V6.23989V6.22935V6.2188V6.20825V6.1977V6.18715V6.17661V6.16606V6.15551V6.14496V6.13441V6.12386V6.11331V6.10276V6.09221V6.08165V6.0711V6.06055V6.05V6.03945V6.02889V6.01834V6.00779V5.99723V5.98668V5.97613V5.96557V5.95502V5.94447V5.93391V5.92336V5.9128V5.90225V5.8917V5.88114V5.87059V5.86003V5.84948V5.83892V5.82837V5.81781V5.80726V5.7967V5.78615V5.77559V5.76504V5.75448V5.74393V5.73337V5.72282V5.71226V5.70171V5.69116V5.6806V5.67005V5.65949V5.64894V5.63839V5.62783V5.61728V5.60673V5.59617V5.58562V5.57507V5.56451V5.55396V5.54341V5.53286V5.52231V5.51175V5.5012V5.49065V5.4801V5.46955V5.459V5.44845V5.4379V5.42735V5.41681V5.40626V5.39571V5.38516V5.37462V5.36407V5.35352V5.34298V5.33243V5.32189V5.31134V5.3008V5.29025V5.27971V5.26917V5.25863V5.24808V5.23754V5.227V5.21646V5.20592V5.19538V5.18484V5.17431V5.16377V5.15323V5.14269V5.13216V5.12162V5.11109V5.10056V5.09002V5.07949V5.06896V5.05843V5.0479V5.03737V5.02684V5.01631V5.00578V4.99525V4.98473V4.9742V4.96368V4.95315V4.94263V4.93211V4.92159V4.91107V4.90055V4.89003V4.87951V4.86899V4.85848V4.84796V4.83744V4.82693V4.81642V4.80591V4.79539V4.78488V4.77437V4.76387V4.75336V4.74285V4.73235V4.72184V4.71134V4.70084V4.69033V4.67983V4.66933V4.65884V4.64834V4.63784V4.62735V4.61685V4.60636V4.59587V4.58538V4.57489V4.5644V4.55391V4.54342V4.53294V4.52245V4.51197V4.50149V4.49101V4.48053V4.47005V4.45957V4.4491V4.43862V4.42815V4.41768V4.40721V4.39674V4.38627V4.3758V4.36534V4.35487V4.34441V4.33395V4.32349V4.31303V4.30257V4.29211V4.28166V4.27121V4.26075V4.2503V4.23985V4.22941V4.21896V4.20852V4.19807V4.18763V4.17719V4.16675V4.15631V4.14588V4.13544V4.12501V4.11458V4.10415V4.09372V4.08329V4.07287V4.06245V4.05202V4.0416V4.03119V4.02077V4.01035V3.99994H11.25V3.99998H8.80005V7.19998H11.25V7.20724V7.21771V7.22817V7.23864V7.24911V7.25957V7.27003V7.28049V7.29095V7.30141V7.31186V7.32232V7.33277V7.34323V7.35368V7.36413V7.37457V7.38502V7.39547V7.40591V7.41635V7.42679V7.43723V7.44767V7.4581V7.46854V7.47897V7.4894V7.49983V7.51026V7.52069V7.53112V7.54154V7.55196V7.56238V7.5728V7.58322V7.59363V7.60405V7.61446V7.62487V7.63528V7.64569V7.65609V7.6665V7.6769V7.6873V7.6977V7.7081V7.71849V7.72889V7.73928V7.74967V7.76006V7.77044V7.78083V7.79121V7.80159V7.81197V7.82235V7.83272V7.8431V7.85347V7.86384V7.87421V7.88457V7.89494V7.9053V7.91566V7.92602V7.93637V7.94673V7.95708V7.96743V7.97778V7.98813V7.99847V8.00881V8.01915V8.02949V8.03983V8.05016V8.0605V8.07083V8.08115V8.09148V8.1018V8.11213V8.12245V8.13276V8.14308V8.15339V8.1637V8.17401V8.18432V8.19462V8.20493V8.21523V8.22552V8.23582V8.24611V8.2564V8.26669V8.27698V8.28726V8.29755V8.30783V8.3181V8.32838V8.33865V8.34892V8.35919V8.36946V8.37972V8.38998V8.40024V8.4105V8.42075V8.431V8.44125V8.4515V8.46174V8.47198V8.48222V8.49246V8.50269V8.51292V8.52315V8.53338V8.54361V8.55383V8.56405V8.57426V8.58448V8.59469V8.6049V8.6151V8.62531V8.63551V8.64571V8.6559V8.6661V8.67629V8.68648V8.69666V8.70684V8.71702V8.7272V8.73738V8.74755V8.75772V8.76788V8.77805V8.78821V8.79837V8.80852V8.81867V8.82882V8.83897V8.84911V8.85926V8.86939V8.87953V8.88966V8.89979V8.90992V8.92004V8.93017V8.94028V8.9504V8.96051V8.97062V8.98073V8.99083V9.00093V9.01103V9.02113V9.03122V9.04131V9.05139V9.06148V9.07156V9.08163V9.09171V9.10178V9.11185V9.12191V9.13197V9.14203V9.15209V9.16214V9.17219V9.18223V9.19228V9.20232V9.21235V9.22239V9.23242V9.24245V9.25247V9.26249V9.27251V9.28252V9.29253V9.30254V9.31255V9.32255V9.33254C11.25 9.6642 11.1852 9.83434 11.1355 9.91742C11.0908 9.99208 11.0316 10.0424 10.9368 10.0833C10.7037 10.1836 10.4028 10.183 9.98891 10.1822L9.86656 10.182L9.86678 11.682C9.90189 11.682 9.94185 11.6825 9.98597 11.6831H9.98597C10.3466 11.6876 10.9853 11.6955 11.5299 11.461C11.8684 11.3153 12.1925 11.0725 12.4229 10.6873ZM6.44995 4.00023H4V7.20023H6.44995V7.20724V7.21771V7.22817V7.23864V7.24911V7.25957V7.27003V7.28049V7.29095V7.30141V7.31186V7.32232V7.33277V7.34323V7.35368V7.36413V7.37457V7.38502V7.39547V7.40591V7.41635V7.42679V7.43723V7.44767V7.4581V7.46854V7.47897V7.4894V7.49983V7.51026V7.52069V7.53112V7.54154V7.55196V7.56238V7.5728V7.58322V7.59363V7.60405V7.61446V7.62487V7.63528V7.64569V7.65609V7.6665V7.6769V7.6873V7.6977V7.7081V7.71849V7.72889V7.73928V7.74967V7.76006V7.77044V7.78083V7.79121V7.80159V7.81197V7.82235V7.83272V7.8431V7.85347V7.86384V7.87421V7.88457V7.89494V7.9053V7.91566V7.92602V7.93637V7.94673V7.95708V7.96743V7.97778V7.98813V7.99847V8.00881V8.01915V8.02949V8.03983V8.05016V8.0605V8.07083V8.08115V8.09148V8.1018V8.11213V8.12245V8.13276V8.14308V8.15339V8.1637V8.17401V8.18432V8.19462V8.20493L6.44995 8.21523V8.22552V8.23582V8.24611V8.2564V8.26669V8.27698V8.28726V8.29755V8.30783V8.3181V8.32838V8.33865V8.34892V8.35919V8.36946V8.37972V8.38998V8.40024V8.4105V8.42075V8.431V8.44125V8.4515V8.46174V8.47198V8.48222V8.49246V8.50269V8.51292V8.52315V8.53338V8.54361V8.55383V8.56405V8.57426V8.58448V8.59469V8.6049V8.6151V8.62531V8.63551V8.64571V8.6559V8.6661V8.67629V8.68648V8.69666V8.70684V8.71702V8.7272V8.73738V8.74755V8.75772V8.76788V8.77805V8.78821V8.79837V8.80852V8.81867V8.82882V8.83897V8.84911V8.85926V8.86939V8.87953V8.88966V8.89979V8.90992V8.92004V8.93017V8.94028V8.9504V8.96051V8.97062V8.98073V8.99083V9.00093V9.01103V9.02113V9.03122V9.04131V9.05139V9.06148V9.07156V9.08163V9.09171V9.10178V9.11185V9.12191V9.13197V9.14203V9.15209V9.16214V9.17219V9.18223V9.19228V9.20232V9.21235V9.22239V9.23242V9.24245V9.25247V9.26249V9.27251V9.28252V9.29253V9.30254V9.31255V9.32255V9.33254C6.44995 9.6642 6.38512 9.83434 6.33543 9.91742C6.29078 9.99208 6.23159 10.0424 6.13672 10.0833C5.90368 10.1836 5.60275 10.183 5.18886 10.1822L5.06651 10.182L5.06673 11.682C5.10184 11.682 5.1418 11.6825 5.18592 11.6831C5.54656 11.6876 6.18522 11.6955 6.72985 11.461C7.06831 11.3153 7.39245 11.0725 7.6228 10.6873C7.84812 10.3105 7.94995 9.8541 7.94995 9.33254V9.32255V9.31255V9.30254V9.29253V9.28252V9.27251V9.26249V9.25247V9.24245V9.23242V9.22239V9.21235V9.20232V9.19228V9.18223V9.17219V9.16214V9.15209V9.14203V9.13197V9.12191V9.11185V9.10178V9.09171V9.08163V9.07156V9.06148V9.05139V9.04131V9.03122V9.02113V9.01103V9.00093V8.99083V8.98073V8.97062V8.96051V8.9504V8.94028V8.93017V8.92004V8.90992V8.89979V8.88966V8.87953V8.86939V8.85926V8.84911V8.83897V8.82882V8.81867V8.80852V8.79837V8.78821V8.77805V8.76788V8.75772V8.74755V8.73737V8.7272V8.71702V8.70684V8.69666V8.68647V8.67629V8.6661V8.6559V8.64571V8.63551V8.62531V8.6151V8.6049V8.59469V8.58448V8.57426V8.56405V8.55383V8.5436V8.53338V8.52315V8.51292V8.50269V8.49246V8.48222V8.47198V8.46174V8.4515V8.44125V8.431V8.42075V8.4105V8.40024V8.38998V8.37972V8.36946V8.35919V8.34892V8.33865V8.32838V8.3181V8.30783V8.29755V8.28726V8.27698V8.26669V8.2564V8.24611V8.23582V8.22552V8.21523L7.94995 8.20493V8.19462V8.18432V8.17401V8.1637V8.15339V8.14308V8.13276V8.12245V8.11213V8.1018V8.09148V8.08115V8.07083V8.0605V8.05016V8.03983V8.02949V8.01915V8.00881V7.99847V7.98813V7.97778V7.96743V7.95708V7.94673V7.93637V7.92602V7.91566V7.9053V7.89494V7.88457V7.87421V7.86384V7.85347V7.8431V7.83272V7.82235V7.81197V7.80159V7.79121V7.78083V7.77044V7.76006V7.74967V7.73928V7.72889V7.71849V7.7081V7.6977V7.6873V7.6769V7.6665V7.65609V7.64569V7.63528V7.62487V7.61446V7.60405V7.59363V7.58322V7.5728V7.56238V7.55196V7.54154V7.53112V7.52069V7.51026V7.49983V7.4894V7.47897V7.46854V7.4581V7.44767V7.43723V7.42679V7.41635V7.40591V7.39547V7.38502V7.37457V7.36413V7.35368V7.34323V7.33277V7.32232V7.31186V7.30141V7.29095V7.28049V7.27003V7.25957V7.24911V7.23864V7.22817V7.21771V7.20724V7.19677V7.1863V7.17583V7.16535V7.15488V7.1444V7.13392V7.12345V7.11297V7.10249V7.092V7.08152V7.07104V7.06055V7.05006V7.03958V7.02909V7.0186V7.00811V6.99761V6.98712V6.97663V6.96613V6.95563V6.94514V6.93464V6.92414V6.91364V6.90313V6.89263V6.88213V6.87162V6.86112V6.85061V6.8401V6.82959V6.81908V6.80857V6.79806V6.78755V6.77704V6.76652V6.75601V6.74549V6.73497V6.72446V6.71394V6.70342V6.6929V6.68238V6.67186V6.66133V6.65081V6.64029V6.62976V6.61924V6.60871V6.59818V6.58765V6.57713V6.5666V6.55607V6.54554V6.53501V6.52447V6.51394V6.50341V6.49287V6.48234V6.4718V6.46127V6.45073V6.44019V6.42966V6.41912V6.40858V6.39804V6.3875V6.37696V6.36642V6.35588V6.34534V6.33479V6.32425V6.31371V6.30316V6.29262V6.28208V6.27153V6.26098V6.25044V6.23989V6.22935V6.2188V6.20825V6.1977V6.18715V6.17661V6.16606V6.15551V6.14496V6.13441V6.12386V6.11331V6.10276V6.09221V6.08165V6.0711V6.06055V6.05V6.03945V6.02889V6.01834V6.00779V5.99723V5.98668V5.97613V5.96557V5.95502V5.94447V5.93391V5.92336V5.9128V5.90225V5.8917V5.88114V5.87059V5.86003V5.84948V5.83892V5.82837V5.81781V5.80726V5.7967V5.78615V5.77559V5.76504V5.75448V5.74393V5.73337V5.72282V5.71226V5.70171V5.69116V5.6806V5.67005V5.65949V5.64894V5.63839V5.62783V5.61728V5.60673V5.59617V5.58562V5.57507V5.56451V5.55396V5.54341V5.53286V5.52231V5.51175V5.5012V5.49065V5.4801V5.46955V5.459V5.44845V5.4379V5.42735V5.41681V5.40626V5.39571V5.38516V5.37462V5.36407V5.35352V5.34298V5.33243V5.32189V5.31134V5.3008V5.29025V5.27971V5.26917V5.25863V5.24808V5.23754V5.227V5.21646V5.20592V5.19538V5.18484V5.17431V5.16377V5.15323V5.14269V5.13216V5.12162V5.11109V5.10056V5.09002V5.07949V5.06896V5.05843V5.0479V5.03737V5.02684V5.01631V5.00578V4.99525V4.98473V4.9742V4.96368V4.95315V4.94263V4.93211V4.92159V4.91107V4.90055V4.89003V4.87951V4.86899V4.85848V4.84796V4.83744V4.82693V4.81642V4.80591V4.79539V4.78488V4.77437V4.76387V4.75336V4.74285V4.73235V4.72184V4.71134V4.70084V4.69033V4.67983V4.66933V4.65884V4.64834V4.63784V4.62735V4.61685V4.60636V4.59587V4.58538V4.57489V4.5644V4.55391V4.54342V4.53294V4.52245V4.51197V4.50149V4.49101V4.48053V4.47005V4.45957V4.4491V4.43862V4.42815V4.41768V4.40721V4.39674V4.38627V4.3758V4.36534V4.35487V4.34441V4.33395V4.32349V4.31303V4.30257V4.29211V4.28166V4.27121V4.26075V4.2503V4.23985V4.22941V4.21896V4.20852V4.19807V4.18763V4.17719V4.16675V4.15631V4.14588V4.13544V4.12501V4.11458V4.10415V4.09372V4.08329V4.07287V4.06245V4.05202V4.0416V4.03119V4.02077V4.01035V3.99994H6.44995V4.00023ZM13 20H4V18.5H13V20ZM4 16H20V14.5H4V16Z",fill:"currentColor"})),k2=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 8.20721V4.5H18.5V10.5H15.5607L11.5303 6.46967C11.2403 6.17969 10.7712 6.17639 10.4772 6.46225L8.90602 7.98978L7.69364 7.20397C7.43288 7.03496 7.09491 7.04425 6.84384 7.22733L5.5 8.20721ZM5.5 10.0636V10.5H13.4393L10.9926 8.05324L9.52281 9.48219C9.27192 9.72611 8.88571 9.76412 8.59208 9.57381L7.31073 8.7433L5.5 10.0636ZM4 4.11111C4 3.49746 4.49746 3 5.11111 3H18.8889C19.5025 3 20 3.49746 20 4.11111V10.8889C20 11.5025 19.5025 12 18.8889 12H5.11111C4.49746 12 4 11.5025 4 10.8889V4.11111ZM12.9999 20H3.99988V18.5H12.9999V20ZM3.99988 16H19.9999V14.5H3.99988V16Z",fill:"currentColor"})),N2=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.0833 17.6389H9.33334H8.44445C5.57564 17.6389 3.25 15.3133 3.25 12.4444C3.25 9.57563 5.57563 7.25 8.44445 7.25H9.33334H10.0833L10.0833 8.75L9.33334 8.75L8.44445 8.75C6.40406 8.75 4.75 10.4041 4.75 12.4444C4.75 14.4848 6.40406 16.1389 8.44445 16.1389H9.33334H10.0833V17.6389ZM13.9166 7.25022H14.6666H15.5555C18.4243 7.25022 20.7499 9.57585 20.7499 12.4447C20.7499 15.3135 18.4243 17.6391 15.5555 17.6391H14.6666H13.9166V16.1391H14.6666H15.5555C17.5959 16.1391 19.2499 14.485 19.2499 12.4447C19.2499 10.4043 17.5959 8.75022 15.5555 8.75022H14.6666H13.9166V7.25022ZM9.33334 13.3337L14.6667 13.3337L14.6667 11.8337L9.33334 11.8337V13.3337Z",fill:"currentColor"})),SA=me(()=>b(ie,{children:[o("path",{d:"M4 10.5H10V13.5H4V10.5Z",fill:"currentColor"}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 9.30629V14H13V10.6937L12.1581 10.9743L11.8419 10.0257L14 9.30629Z",fill:"currentColor"}),o("path",{d:"M19.2656 9.80458C18.7928 9.19392 18.0457 9.29455 17.5638 9.43764C17.3065 9.51404 17.0576 9.63068 16.8463 9.7448L16.9767 10.8271C17.168 10.6561 17.4464 10.4049 17.7578 10.3124C18.0982 10.2113 18.3361 10.3371 18.4258 10.453C18.6353 10.7236 18.3924 11.2882 18.2656 11.5078C17.7754 12.3571 17.3359 13.1016 16.8164 14.0001H19.5001V13.0001H18.5859C18.8633 12.4258 19.4004 11.5569 19.5001 10.8944C19.5517 10.5513 19.5193 10.1322 19.2656 9.80458Z",fill:"currentColor"})]})),ao=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.25 4.25H5C8.91194 4.25 12.6637 5.80401 15.4298 8.57018C18.196 11.3363 19.75 15.0881 19.75 19V19.75H18.25V19C18.25 15.4859 16.854 12.1157 14.3692 9.63084C11.8843 7.14598 8.51412 5.75 5 5.75H4.25V4.25ZM4.25 10.25H5C7.32064 10.25 9.54624 11.1719 11.1872 12.8128C12.8281 14.4538 13.75 16.6794 13.75 19V19.75H12.25V19C12.25 17.0772 11.4862 15.2331 10.1265 13.8735C8.76689 12.5138 6.92282 11.75 5 11.75H4.25V10.25ZM7 17H4V20H7V17Z",fill:"currentColor"})),EA=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 5.41714H6.26718V12H7.73282V5.41714H10V4H4V5.41714ZM20 16H4V14.5H20V16ZM13 20H4V18.5H13V20Z",fill:"currentColor"}));function AA(){const[e]=ue.useDisplaySetting("layout"),[t,r]=D.useState(""),n=DA.filter(s=>s.layouts.includes(e??"list")),i=n.find(s=>s.id===t)?.hint;return o(Iv,{groups:n,current:t,onSelectGroup:r,before:o("p",{className:"text-sm leading-4 text-gray-800",children:c.__("Customize the look and feel of your display’s layout, from content to pagination.","wp-rss-aggregator")}),children:!!i&&o(DS,{children:i})})}const DA=[{id:"appearance",name:c.__("Appearance","wp-rss-aggregator"),icon:o(A2,{}),render:()=>o(OE,{}),layouts:["list","et","grid"]},{id:"images",name:c.__("Image","wp-rss-aggregator"),icon:o(k2,{}),render:()=>o(iA,{}),layouts:["et","grid"]},{id:"title",name:c.__("Title","wp-rss-aggregator"),icon:o(EA,{}),render:()=>o(yA,{}),layouts:["list","et","grid"]},{id:"excerpt",name:c.__("Excerpt","wp-rss-aggregator"),icon:o(Lg,{}),render:()=>o(WE,{}),layouts:["et","grid"]},{id:"author",name:c.__("Author","wp-rss-aggregator"),icon:o(Mg,{}),render:()=>o(UE,{}),layouts:["list","et","grid"]},{id:"date",name:c.__("Publish Date","wp-rss-aggregator"),icon:o(D2,{}),render:()=>o(qE,{}),layouts:["list","et","grid"]},{id:"source",name:c.__("Source Name","wp-rss-aggregator"),icon:o(ao,{}),render:()=>o(wA,{}),layouts:["list","et","grid"]},{id:"links",name:c.__("Links","wp-rss-aggregator"),icon:o(N2,{}),render:()=>o(dA,{}),layouts:["list","et","grid"],hint:c.__("These options apply to all links within this specific Display only.","wp-rss-aggregator")},{id:"audio",name:c.__("Audio Player","wp-rss-aggregator"),icon:o(E2,{}),render:()=>o(FE,{}),layouts:["et","grid"]},{id:"pagination",name:c.__("Pagination","wp-rss-aggregator"),icon:o(SA,{}),render:()=>o(pA,{}),layouts:["list","et","grid"]}];function T2(e){return o("button",{className:"min-h-9 w-full rounded-xs border border-dashed border-primary p-3 text-md uppercase leading-3 text-primary ring-primary focus:border-solid focus:ring-1 disabled:cursor-not-allowed disabled:border-gray-700 disabled:bg-gray-100 disabled:text-gray-700",onClick:e.onClick,children:e.children})}function fi(e){const[t,r]=D.useState(null),{refs:n,floatingStyles:a,context:i}=Ri({whileElementsMounted:qo,open:e.open,onOpenChange:e.onOpenChange,middleware:[$o(4),zo({padding:10}),n1({apply({rects:h,availableHeight:m,elements:g}){Object.assign(g.floating.style,{width:`${h.reference.width}px`,maxWidth:`${h.reference.width*2}px`,maxHeight:`${Math.max(150,m-32)}px`})},padding:10})]}),{getReferenceProps:s,getFloatingProps:u,getItemProps:l}=Ui([tl(i,{role:"listbox"}),Bi(i,{outsidePress:!0})]);function f(h){const m=e.options.length;switch(h.key){case"ArrowDown":r(g=>g===null?0:(g+1)%m),e.onOpenChange?.(!0),h.preventDefault();break;case"ArrowUp":r(g=>g===null?m-1:(g-1+m)%m),e.onOpenChange?.(!0),h.preventDefault();break;case"Enter":if(e.open&&t!==null&&e.options[t]){const g=e.options[t];g.disabled||(e.onSelect?.(g),e.onOpenChange?.(!1),h.preventDefault())}break;case"Escape":e.open&&(e.onOpenChange?.(!1),h.preventDefault());break}}return b(ie,{children:[e.anchor?.(n.setReference,s({"aria-autocomplete":"list",onKeyDown:f})),o(Fi,{children:e.open&&o(Xo,{context:i,initialFocus:-1,modal:!1,closeOnFocusOut:!0,visuallyHiddenDismiss:!0,children:b("div",{...u({ref:n.setFloating,className:"p-2 border border-gray-600 rounded-xs shadow-md bg-white z-widgets overflow-auto box-border",style:a}),children:[e.options.length===0&&o("div",{className:"select-none p-1 text-md text-gray-700",children:e.noOptionsMsg??c.__("No suggestions","wp-rss-aggregator")}),e.options.map((h,m)=>o(kA,{active:t===m,disabled:h.disabled,onClick:function(){h.disabled||e.onSelect?.(h)},...l(),children:h.render??h.label??h.value},h.value))]})})})]})}fi.TextInput=function(e){const{options:t,noOptionsMsg:r,filterBy:n,inputRef:a=()=>{},onChange:i,onKeyDown:s,...u}=e,[l,f]=D.useState(!1),h=D.useMemo(function(){return e.value===void 0||n===void 0?t:Rf(e.value.toString(),[n],t)},[e.value,n,t]);return o(fi,{openOnArrowKey:!0,open:l,onOpenChange:f,options:h,noOptionsMsg:r,onSelect:function(m){console.log("changing value to",m.value.toString()),i?.(m.value.toString())},anchor:(m,g)=>o(tt,{ref:en(m,a),onChange:function(p){i?.(p),f(!0)},autoComplete:"off",...u,...g,onKeyDown:function(p){if(!p.isPropagationStopped()){const w=g.onKeyDown;w?.(p)}p.defaultPrevented||s?.(p)}})})},fi.TextInputAsync=function(e){const{queryFn:t,queryKey:r,noOptionsMsg:n,loadingMsg:a=c.__("Loading...","wp-rss-aggregator"),debounce:i=400,iconFn:s,onChange:u,...l}=e,[f,h]=D.useState(!1),m=on((e.value??"").toString(),i),{data:g,isFetching:p}=ml({initialData:[],queryFn:()=>t(m),queryKey:[...r,m],refetchOnWindowFocus:!1}),w=s?.(p);return b(ie,{children:[o(fi,{anchor:(y,_)=>o(tt,{ref:y,onChange:function(S){h(!0),u?.(S)},autoComplete:"off",...l,..._}),options:g,openOnArrowKey:!0,open:f,onOpenChange:h,noOptionsMsg:p?a:n,onSelect:function(y){y.disabled||(u?.(y.value.toString()),h(!1))}}),(p||w)&&o("div",{className:"absolute bottom-[1px] right-[2px] top-[1px] z-10 flex w-8 flex-col justify-center bg-white px-1",children:w??o(_n,{})})]})};function kA(e){const{children:t,active:r,disabled:n,className:a,...i}=e;return o("button",{className:fe("my-1 block w-full cursor-pointer appearance-none rounded-xs p-3 text-left text-md first:mt-0 last:mb-0 disabled:cursor-not-allowed disabled:opacity-50 data-[active=true]:bg-gray-100 [&:not(:disabled)]:hover:bg-gray-100",a),"aria-selected":r,role:"option","data-active":r,disabled:n,...i,children:t})}function Jt(e,t,r,...n){const a=e.slice();return a.splice(t,r,...n),a}function Vg(e){const[t,r]=D.useState("");return o(Vg.Stateless,{text:t,tags:e.tags,onChangeText:r,onChangeTags:e.onChangeTags})}Vg.Stateless=function(e){const{id:t,disabled:r,text:n="",tags:a,className:i,labelRef:s,rightIcon:u,tagClassName:l,tagRender:f,onChangeText:h,onChangeTags:m,onKeyDown:g,onEnterTag:p,...w}=e,y=D.useId(),_=Ln(t,r);return b("label",{id:_.id,ref:s,className:fe("relative flex flex-1 cursor-text flex-row flex-wrap items-start rounded-xs border px-2 py-1 ring-primary focus-within:border-primary focus-within:ring-1","border-gray-600 bg-white data-[disabled=true]:border-gray-400 data-[disabled=true]:bg-gray-100 overflow-hidden",i),htmlFor:y,"data-disabled":_.disabled,children:[b(c2.ReactSortable,{list:a,setList:function(S){Al(S,a)||m?.(S)},direction:"horizontal",animation:250,className:"inline-flex min-h-[32px] w-full cursor-text flex-row flex-wrap items-center gap-1 pr-2 overflow-hidden",children:[a.map((S,H)=>o(NA,{onClick:function(){m?.(Jt(a,H,1))},className:l?.(S),disabled:_.disabled,children:f?.(S)??S.label??S.id},`${S.id}-${H}`)),o("input",{id:y,className:"m-0 h-[32px] flex-1 bg-transparent p-0 text-md placeholder:text-gray-600 disabled:cursor-not-allowed overflow-hidden text-ellipsis",style:{minWidth:`calc(${n.length}ch + 10px)`},autoComplete:"off",disabled:_.disabled,value:n,onChange:function(S){h?.(S.currentTarget.value)},onKeyDown:function(S){switch(S.key){case"Enter":if(n.trim().length>0&&e.onChangeTags){const H=p?.({id:n,label:n});H&&(m?.([...e.tags,H]),h?.(""))}break;case"Backspace":if(S.currentTarget.selectionStart===0&&e.onChangeTags){const H=Jt(e.tags,e.tags.length-1,1);m?.(H),S.stopPropagation()}break}S.isPropagationStopped()||g?.(S)},...w})]}),u&&o("div",{className:"absolute right-[4px] top-[8px] overflow-hidden",children:u})]})};function NA(e){return b("div",{className:fe("flex select-none flex-row items-center gap-2 rounded-xs bg-gray-100 p-2 text-md leading-3 text-black hover:cursor-grab active:cursor-grabbing",e.disabled&&"bg-gray-200 text-gray-700",e.className),children:[e.children,o("button",{onClick:e.onClick,className:"rounded-xs p-0.5 ring-primary hover:bg-gray-light focus-visible:ring-2 disabled:cursor-not-allowed",disabled:e.disabled,"aria-label":c.__("Remove","wp-rss-aggregator"),children:o(ni,{size:16})})]})}function io(e){const[t,r]=D.useState("");return o(io.Stateless,{...e,text:t,onChangeText:r})}io.Stateless=function(e){const[t,r]=D.useState(!1),n=Ln(e.id,e.disabled),a=D.useMemo(function(){let i=[];for(const s of e.options){const u=e.tags.some(l=>l.id===s.value);i.push({...s,disabled:s.disabled||u})}if(e.filterBy&&(i=Rf(e.text,[e.filterBy],i)),e.allowCustom&&e.text.trim().length>0&&!i.some(s=>s.value===e.text)){const s=e.customOption?.(e.text)??{value:e.text,extra:{custom:!0}};i.push(s)}return i},[e.options,e.tags,e.text,e.filterBy,e.allowCustom,e.customOption]);return o(fi,{openOnArrowKey:!0,open:t,options:a,noOptionsMsg:e.noOptionsMsg,onOpenChange:r,onSelect:function(i){e.onChangeTags?.([...e.tags,{id:i.value,label:i.label,extra:i.extra}]),e.onChangeText?.("")},anchor:(i,s)=>o(Vg.Stateless,{id:n.id,disabled:n.disabled,labelRef:i,text:e.text,tags:e.tags,tagRender:e.tagRender,tagClassName:e.tagClassName,rightIcon:e.rightIcon,placeholder:e.tags.length===0?e.placeholder:"",onChangeText:function(u){e.onChangeText?.(u),r(!0)},onChangeTags:e.onChangeTags,onEnterTag:function(u){return e.options.some(l=>l.value===u.id)?u:e.allowCustom?{...u,extra:{custom:!0}}:null},...s})})};function TA(e){return b("div",{className:fe("flex flex-col items-stretch gap-2",e.horizontal&&"sm:flex-row sm:gap-1"),children:[o(H2,{value:e.value.subjectId,options:e.system.subjects,fullWidth:e.horizontal,disabled:e.disabled,onChange:function(t){const r=dv(e.system,t),n=Object.keys(r)[0];e.onChange?.({...e.value,subjectId:t,operatorId:n})}}),o(H2,{value:e.value.operatorId,options:dv(e.system,e.value.subjectId),fullWidth:e.horizontal,disabled:e.disabled,onChange:function(t){e.onChange?.({...e.value,operatorId:t})}}),o(HA,{args:e.value.args,system:e.system,operatorId:e.value.operatorId,disabled:e.disabled,onChange:function(t){e.onChange?.({...e.value,args:t})}})]})}function H2(e){const t=D.useMemo(()=>Object.entries(e.options).map(([r,n])=>({value:r,label:n.label})),[e.options]);return o(He.Simple,{options:t,className:fe(e.fullWidth&&"flex-1"),disabled:e.disabled,value:e.value,onSelect:e.onChange})}function HA(e){const t=e.system.operators[e.operatorId]?.params;return t?o("div",{className:"flex flex-col gap-2",children:Object.entries(t).map(([r,n],a)=>o(IA,{type:n.type,label:n.label,value:e.args[r]??n.default,placeholder:n.placeholder,disabled:e.disabled,isFirst:a===0,onChange:function(i){e.onChange({...e.args,[r]:i})}},r))}):null}function IA(e){const t=e.type==="bool",r=D.useId();let n=null;const a=D.useRef(new Set),[i,s]=D.useState(""),u=D.useMemo(()=>Array.isArray(e.value)?e.value.map(l=>({value:l,label:l})):[],[e.value]);switch(e.type){case"multiselect":n=o(io.Stateless,{text:i,tags:Array.isArray(e.value)?e.value.map(l=>({id:l})):[],options:u,tagRender:l=>OA(l,a.current),placeholder:c.__("Add keywords...","wp-rss-aggregator"),onChangeText:s,onChangeTags:function(l){const f=l.map(function(h){const m=h.id.toString();return h.extra?.custom&&a.current.add(m),m});e.onChange?.(f)},allowCustom:!0,customOption:l=>({value:l,label:c.sprintf(c._x('Add "%s"',"%s = new keyword","wp-rss-aggregator"),l),extra:{custom:!0}})});break;case"string":n=o(tt,{id:r,value:e.value,onChange:e.onChange,placeholder:e.placeholder});break;case"number":n=o(It,{id:r,value:e.value,onChange:e.onChange});break;case"bool":n=o(ye,{id:r,checked:e.value,onChange:e.onChange});break;default:console.error("unknown field type",e.type);break}return e.label?b("div",{className:"flex flex-col data-[inline=true]:flex-row data-[inline=true]:items-center","data-inline":t,children:[o("label",{htmlFor:r,className:"text-md leading-6 text-gray-900 data-[inline=true]:flex-1 data-[first=true]:font-bold","data-inline":t,"data-first":e.isFirst,children:e.label}),o(ll.Provider,{value:{id:r,disabled:e.disabled},children:n})]}):n}function OA(e,t){return b("span",{children:[t.has(e.id.toString())&&"*",e.label??e.id]})}const Dn=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2.71429C10.7376 2.71429 9.71429 3.73764 9.71429 5.00001H4V7.00001H5.46699C5.46718 7.09832 5.47463 7.19803 5.4898 7.29857L7.17174 18.4414C7.3194 19.4196 8.16005 20.1429 9.14934 20.1429H14.8507C15.84 20.1429 16.6806 19.4196 16.8283 18.4414L18.5102 7.29858C18.5254 7.19803 18.5328 7.09832 18.533 7.00001H20V5.00001H14.2857C14.2857 3.73764 13.2624 2.71429 12 2.71429ZM16.8151 7.04271C16.8173 7.02833 16.8183 7.01407 16.8184 7.00001H7.18163C7.18165 7.01407 7.18271 7.02833 7.18489 7.04271L8.86683 18.1855C8.88792 18.3253 9.00801 18.4286 9.14934 18.4286H14.8507C14.992 18.4286 15.1121 18.3253 15.1332 18.1855L16.8151 7.04271Z",fill:"currentColor"}));function MA(e){return b("div",{className:"flex flex-col gap-6 bg-light p-5",children:[e.value.exprs.map((t,r)=>b("div",{className:"flex flex-col gap-4",children:[b("div",{className:"flex flex-row items-center justify-between",children:[o("p",{className:"text-md font-semibold",children:I2(r,e.value.isAnd)}),o("div",{className:"flex flex-row justify-end gap-1",children:!e.hideDelete&&o(lt,{content:c.__("Delete","wp-rss-aggregator"),children:o(lt.Anchor,{children:(n,a)=>o("button",{ref:n,...a,className:"flex rounded-xs p-1 text-alert-red ring-alert-red focus-visible:ring-2",onClick:function(){e.onChange?.({...e.value,exprs:Jt(e.value.exprs,r,1)})},children:o(Dn,{size:18})})})})})]}),o(TA,{value:t,system:e.system,horizontal:e.horizontal,disabled:e.disabled,onChange:function(n){e.onChange?.({...e.value,exprs:Jt(e.value.exprs,r,1,n)})}})]},r)),o("div",{className:"self-start",children:o(T2,{children:I2(1,e.value.isAnd),onClick:function(){const t=gs(e.system);e.onChange?.({...e.value,exprs:e.value.exprs.concat(t)})}})})]})}function I2(e,t){return e===0?c.__("If","wp-rss-aggregator"):t?c.__("And","wp-rss-aggregator"):c.__("Or","wp-rss-aggregator")}function Pg(e){return b("div",{className:"flex flex-col gap-6",children:[e.conditions.map((t,r)=>b("div",{className:"flex flex-col gap-6",children:[r>0&&o("p",{className:"text-md font-semibold",children:O2(e.isAnd)}),o("div",{children:o(MA,{value:t,system:e.system,disabled:e.disabled,horizontal:e.horizontal,hideDelete:e.conditions.length<2&&t.exprs.length<2,onChange:function(n){e.onChange?.(Jt(e.conditions,r,1,n))}})},r)]},r)),o(T2,{children:O2(e.isAnd),onClick:function(){const t={isAnd:!e.isAnd,exprs:[gs(e.system)]};e.onChange?.(e.conditions.concat(t))}})]})}function O2(e){return e?c.__("And","wp-rss-aggregator"):c.__("Or","wp-rss-aggregator")}const Wl=me(()=>o("path",{d:"M9.6 15.2H11.2V8.8H9.6V15.2ZM12 4C7.584 4 4 7.584 4 12C4 16.416 7.584 20 12 20C16.416 20 20 16.416 20 12C20 7.584 16.416 4 12 4ZM12 18.4C8.472 18.4 5.6 15.528 5.6 12C5.6 8.472 8.472 5.6 12 5.6C15.528 5.6 18.4 8.472 18.4 12C18.4 15.528 15.528 18.4 12 18.4ZM12.8 15.2H14.4V8.8H12.8V15.2Z",fill:"currentColor"})),M2=me(()=>b(ie,{children:[o("g",{clipPath:"url(#clip0_59088_140564)",children:o("path",{d:"M8 5V19L19 12L8 5Z",fill:"currentColor"})}),o("defs",{children:o("clipPath",{id:"clip0_59088_140564",children:o("rect",{width:"24",height:"24",fill:"white"})})})]}));function LA(e){const[t,r]=D.useState(e.value),n=D.useRef(null);return o(or,{impRef:n,defaultOpen:!0,bordered:!0,label:b("div",{className:"flex flex-row flex-nowrap items-center gap-1 leading-4",children:[!t.enabled&&o(Wl,{className:"text-gray-700"}),o("span",{className:fe(!t.enabled&&"text-gray-700"),children:RA(t,e.index)})]}),children:b("div",{className:"flex flex-col gap-6 p-8",children:[o(Pg,{system:Q.displays.condSys,isAnd:!1,conditions:t.conditions,onChange:function(a){r({...t,conditions:a})}}),b("div",{className:"flex flex-col gap-4 bg-light p-5",children:[o("p",{className:"text-md font-semibold",children:c._x("Then","Display filters: before 'Then' selection","wp-rss-aggregator")}),o(BA,{value:t.showItems,onChange:function(a){r({...t,showItems:a})}})]}),o(VA,{value:t,isDirty:!Ba(t,e.value),onSave:function(){e.onChange?.(t),n.current?.setOpen(!1)},onDelete:e.onDelete,onToggle:function(){r({...t,enabled:!t.enabled})}})]})})}function VA(e){return o("div",{className:"mb-1 flex flex-col gap-4",children:b("div",{className:"flex flex-row flex-nowrap gap-2",children:[o(PA,{value:e.value.enabled,disabled:!e.isDirty,onChange:e.onToggle}),o("div",{className:"flex-1"}),o($i,{onClick:e.onDelete,className:"no-underline",children:c.__("Delete","wp-rss-aggregator")}),o(Ne,{onClick:e.onSave,disabled:!e.isDirty,children:c.__("Save","wp-rss-aggregator")})]})})}function PA(e){let t,r;return e.value?(t=c.__("Pause","wp-rss-aggregator"),r=o(Wl,{})):(t=c.__("Resume","wp-rss-aggregator"),r=o(M2,{})),b(_r,{disabled:e.disabled,onClick:()=>e.onChange?.(!e.value),children:[r,o("span",{children:t})]})}const FA=[{value:"0",label:c.__("Hide items","wp-rss-aggregator")},{value:"1",label:c.__("Show items","wp-rss-aggregator")}];function BA(e){return o(He.Simple,{options:FA,value:e.value?"1":"0",onSelect:function(t){e.onChange(!!Number(t))}})}function RA(e,t){const r=UA(e);return r.length>0?r:c.sprintf(c._x("Filter %d","Default Filter name","wp-rss-aggregator"),t+1)}function UA(e){const t=[];for(const n of e.conditions)for(const a of n.exprs)for(const[,i]of Object.entries(a.args))if((typeof i=="string"||typeof i=="number")&&(t.push(i),t.length>2))break;let r=t.join(", ");return r.length>50&&(r=r.substring(0,50)+"..."),r}const cn=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5835 12.75V18H13.0835V12.75H18.3335V11.25H13.0835V6H11.5835V11.25H6.3335V12.75H11.5835Z",fill:"currentColor"})),Fg=({title:e,video:t,upgradeBTNText:r,upgradeBTNURL:n,children:a,demoUrl:i})=>o("div",{className:"mt-10 animate-fade-in",children:b("div",{className:"flex flex-col items-center gap-10 text-center text-md leading-4",children:[b("video",{className:"rounded-md",width:"400",height:"400",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[o("source",{src:t,type:"video/webm"}),"Your browser does not support WebM playback."]}),b("div",{className:"flex flex-col gap-7 w-[80%] max-w-[400px]",children:[o("h3",{className:"text-2xl font-bold leading-7",children:e}),o("div",{className:"flex flex-col items-center text-md text-gray-700",children:a}),b("div",{className:"flex flex-col items-center gap-5",children:[o(Cr,{href:n||Q.urls.website.upgrade,target:"_blank",children:r}),i&&o(Ae,{href:i,target:"_blank",className:"text-md !text-gray-700 underline",children:c.__("Watch demo","wp-rss-aggregator")})]})]})]})});function KA(){const e=se(),[t,r]=ue.useDisplaySetting("filters"),[n,a]=D.useState(t),[i,s]=D.useState(!1);function u(){s(!0),a(l=>{const f=NC();return l?l.concat([f]):[f]})}return e.isLowerThan(W.Basic)?o(zA,{}):!n||n.length===0?o($A,{onAdd:u,disabled:i}):b(ie,{children:[o(Pe.Section,{children:o("p",{className:"text-sm leading-4 text-gray-800",children:c.__("Apply filters to display only the content you want from the selected sources.","wp-rss-aggregator")})}),b("div",{className:"relative flex flex-col wpra-display-filter-sidebar",children:[o("div",{children:n?.map((l,f)=>o(LA,{value:l,index:f,onChange:function(h){s(!1),r(m=>Jt(m??[],f,1,h))},onDelete:function(){s(!1),r(h=>Jt(h??[],f,1)),a(h=>Jt(h??[],f,1))}},f))}),o(Pe.Section,{children:b(Ne,{size:"sm",onClick:u,disabled:i,children:[o(cn,{}),c.__("Add new filter","wp-rss-aggregator")]})})]})]})}function zA(){const e=Q.isBlackFridayActive?c.__("Upgrade — Up to 40% OFF","wp-rss-aggregator"):c.__("Upgrade Now","wp-rss-aggregator"),t=Q.isBlackFridayActive?"https://www.wprssaggregator.com/upgrade/?utm_source=plugin&utm_medium=upsell&utm_campaign=BF25&utm_content=filtering-tab":"https://www.wprssaggregator.com/upgrade/?utm_source=plugin&utm_medium=upsell&utm_content=filtering-tab";return o("div",{className:"w-[286px] mx-auto mt-20",children:o(Fg,{title:c.__("Fine-tune your displays","wp-rss-aggregator"),video:Q.urls.assets.imgs+"/upgrade/filters.webm",children:c.__("Filter what appears in your displays by keyword, phrase, or tag - so your visitors see only the most relevant posts.","wp-rss-aggregator"),upgradeBTNText:e,upgradeBTNURL:t,demoUrl:"https://youtu.be/JSQcem-OUFg?si=AZltNbkz9O_o_mqC"})})}function $A(e){return b("div",{className:"mx-auto mt-16 flex w-56 flex-col items-center gap-4 text-center",children:[o("img",{src:Q.urls.assets.imgs+"/bee-dots-circle.svg"}),o("p",{className:"text-lg font-semibold leading-6",children:c.__("Set up display filters","wp-rss-aggregator")}),o("p",{className:"text-md leading-4",children:c.__("Filtering allows you to tailor the content in each display to your visitors' interests, ensuring they find exactly what they're searching for in each section of your website.","wp-rss-aggregator")}),b(Ne,{size:"sm",onClick:e.onAdd,disabled:e.disabled,children:[o(cn,{}),c.__("Add new filter","wp-rss-aggregator")]})]})}const L2=({title:e,videoURL:t,children:r,upgradeURL:n,upgradeBTNText:a})=>{const[i,s]=D.useState(!1),l=`ptu_${(h=>h.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,30))(e)}`;D.useEffect(()=>{localStorage.getItem(l)!=="true"&&s(!0)},[]);const f=()=>{console.log(l),s(!1),localStorage.setItem(l,"true")};return i?b("div",{className:"relative rounded-sm overflow-hidden my-2 bg-light-orange",children:[o("button",{className:"absolute right-2 top-2 appearance-none rounded-full focus-visible:ring text-white z-10",onClick:f,children:o(vl,{})}),o("div",{className:"flex justify-center items-center",children:b("video",{className:"w-auto h-auto",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[o("source",{src:t,type:"video/webm"}),"Your browser does not support WebM playback."]})}),b("div",{className:"px-8 py-6 text-left",children:[o("h3",{className:"text-lg font-semibold mb-2 text-gray-900",children:e}),o("p",{className:"text-sm text-gray-700 mb-4 leading-relaxed",children:r}),o(Cr,{className:"w-fit",href:n||Q.urls.website.upgrade,target:"_blank",children:a||c.__("Unlock more layouts","wp-rss-aggregator")})]})]}):null};function jA(){const[e,t]=ue.useDisplaySetting("layout"),r=se().isLowerThan(W.Basic);function n(a){t(uS(a))}return b(ne,{label:c.__("Select your layout","wp-rss-aggregator"),children:[r&&o(qA,{}),o(Ra,{columns:2,selected:e??"list",onSelect:n,children:El.map(a=>o(Ra.Graphical,{value:a.id,label:a.name,graphic:a.graphic,minTier:a.tier,labelClassName:"text-md"},a.id))})]})}function qA(){const e=Q.isBlackFridayActive?"https://www.wprssaggregator.com/upgrade/?utm_source=plugin&utm_medium=upsell&utm_campaign=BF25&utm_content=settings-tab":"https://www.wprssaggregator.com/upgrade/?utm_source=plugin&utm_medium=upsell&utm_content=settings-tab",t=Q.isBlackFridayActive?c.__("Upgrade — Up to 40% OFF","wp-rss-aggregator"):c.__("Upgrade Now","wp-rss-aggregator");return o(L2,{title:c.__("Layouts that fit your style","wp-rss-aggregator"),videoURL:Q.urls.assets.imgs+"/upgrade/displays.webm",upgradeURL:e,upgradeBTNText:t,children:c.__("Upgrade to Basic to unlock additional layouts that showcase your content beautifully and match your site’s design.","wp-rss-aggregator")})}const Gl=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.8645 7.75L11.8776 5.77639C11.793 5.607 11.6198 5.5 11.4304 5.5H5.6665C5.39036 5.5 5.1665 5.72386 5.1665 6V17.75C5.1665 18.0261 5.39036 18.25 5.6665 18.25H19.6665C19.9426 18.25 20.1665 18.0261 20.1665 17.75V8.25C20.1665 7.97386 19.9426 7.75 19.6665 7.75H12.8645ZM13.7915 6.25L13.2193 5.10557C12.8805 4.428 12.188 4 11.4304 4H5.6665C4.56193 4 3.6665 4.89543 3.6665 6V17.75C3.6665 18.8546 4.56193 19.75 5.6665 19.75H19.6665C20.7711 19.75 21.6665 18.8546 21.6665 17.75V8.25C21.6665 7.14543 20.7711 6.25 19.6665 6.25H13.7915Z",fill:"currentColor"}));function V2(e){const[t,r]=D.useState(""),n=on(t,400,""),a=se().isAtLeast(W.Basic),{data:i,isFetching:s}=q.folders.getList.with(n,[],10).useQuery([],["folders","multi-select",n],{enabled:a}),{data:u}=q.folders.getNames.with(e.values).useQuery(ZA(e.values),[],{enabled:a}),l=D.useMemo(function(){return i.map(h=>({value:h.id,label:h.name,render:GA(h)}))},[i]),f=D.useMemo(function(){return e.values.map(h=>({id:h,label:u[h]??c.__("[Deleted source]","wp-rss-aggregator")}))},[u]);return o(io.Stateless,{disabled:!a,text:t,tags:f,options:l,onChangeText:r,onChangeTags:function(h){e.onChange(h.map(m=>Number(m.id)))},tagRender:WA,noOptionsMsg:s?c.__("Loading...","wp-rss-aggregator"):c.__("No matching folders","wp-rss-aggregator"),placeholder:e.placeholder,customOption:h=>({value:h,render:b("div",{className:"items-ceny flex flex-row justify-between gap-1",children:[o("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:h}),o("span",{className:"flex-shrink-0 whitespace-nowrap text-primary",children:c.__("+ Create folder","wp-rss-aggregator")})]}),extra:{custom:!0}})})}function WA(e){return b("div",{className:"flex flex-row items-center gap-1",children:[o(Gl,{size:16}),o("span",{children:e.label})]})}function GA(e){return b("div",{className:"flex flex-row items-center gap-2 py-1 text-md",children:[o(Gl,{}),o("span",{className:"font-semibold text-gray-900",children:e.name}),o("span",{className:"mx-2 h-6 w-[1px] border-r border-r-gray-700"}),o("span",{className:"text-gray-700",children:c.sprintf(c._n("%d item","%d items",e.sourceIds.length,"wp-rss-aggregator"),e.sourceIds.length)})]})}function ZA(e){const t={};for(const r of e)t[r]=c._x("...","While the source name is loading","wp-rss-aggregator");return t}function P2(){const[e]=Object.entries(Q.automations.actions)[0];return{enabled:!0,name:"",conditions:[{isAnd:!0,exprs:[gs(Q.automations.condSys)]}],actionId:e}}function YA(){return{import:!1,assign:!0,terms:[],useCondition:!1,conditions:[{isAnd:!0,exprs:[gs(Q.taxonomies.condSys)]}],parent:null}}function F2(e,t){const r=[];for(const n of e){const a=t[n.id]??{displays:[],folders:[],pending:0,imported:0};r.push({...n,rels:a})}return r}function B2(e){const[t,r]=D.useState(""),n=on(t,400,""),{data:[a,i],isFetching:s}=q.batch([q.sources.getList.with(n,10),q.rels.getSourceRels.with(q.result(0))]).useQuery([[],{}],["sources","sources-select",n]),u=D.useMemo(()=>F2(a,i),[a,i]),{data:l}=q.sources.getNames.with(e.values).useQuery(JA(e.values)),f=D.useMemo(function(){return u.map(m=>({value:m.id,label:m.name,render:XA(m)}))},[u]),h=D.useMemo(function(){return e.values.map(m=>({id:m,label:l[m]??c.__("[Deleted source]","wp-rss-aggregator")}))},[l]);return o(io.Stateless,{text:t,tags:h,options:f,rightIcon:s?o(_n,{}):null,tagRender:QA,placeholder:c.__("Search your sources by name","wp-rss-aggregator"),onChangeText:r,onChangeTags:function(m){e.onChange(m.map(g=>Number(g.id)))}})}function QA(e){return b("div",{className:"flex flex-row items-center gap-1",children:[o(ao,{size:16}),o("span",{children:e.label})]})}function XA(e){const t=!!e.rels,r=e.rels?.imported??0;return b("div",{className:"flex flex-row items-center gap-2 py-1 text-md",children:[o(ao,{}),o("span",{className:"font-semibold text-gray-800",children:e.name}),t&&b(ie,{children:[o("span",{className:"mx-2 h-6 w-[1px] border-r border-r-gray-700"}),o("span",{className:"text-gray-700",children:c.sprintf(c._n("%d item","%d items",r,"wp-rss-aggregator"),r)})]})]})}function JA(e){const t={};for(const r of e)t[r]=c._x("...","While the source name is loading","wp-rss-aggregator");return t}function eD({initialOpen:e=!1}){return b("div",{className:"flex flex-col items-stretch",children:[b("div",{className:"flex flex-shrink-0 flex-col gap-6 overflow-auto rounded-b-2xl bg-light p-8",children:[o("p",{className:"text-sm leading-4",children:c.__("Select the sources to show in this display and choose a layout that fits your site’s design.","wp-rss-aggregator")}),o(tD,{}),o(rD,{initialOpen:e})]}),o(Pe.Section,{children:o(jA,{})})]})}function tD(){const[e,t]=ue.useDisplaySources();return o(ne,{label:c.__("Sources","wp-rss-aggregator"),children:o(B2,{values:e,onChange:t})})}function rD({initialOpen:e=!1}){const[t,r]=D.useState(e),[n,a]=ue.useDisplayFolders(),i=se().isLowerThan(W.Basic);return b("div",{className:"flex flex-col gap-2",children:[b("button",{className:"flex flex-row items-center justify-between gap-1 text-md font-semibold leading-4 text-gray-900 ring-primary focus-visible:ring-2",onClick:()=>r(s=>!s),children:[b("span",{className:"inline-flex items-start",children:[i&&o(lt,{content:c.__("Premium","wp-rss-aggregator"),children:o(lt.Anchor,{children:(s,u)=>o(os,{ref:s,className:"mt-[1px] text-accent mr-[2px]",size:15,...u})})}),c.__("Want to display a folder?","wp-rss-aggregator")]}),t?o(sg,{}):o(_l,{})]}),t&&b("div",{className:"flex flex-col gap-4",children:[o("p",{className:"text-md leading-4",children:c.__("You can display sources and folders together.","wp-rss-aggregator")}),o(V2,{values:n,onChange:a,placeholder:c.__("Search your folders by name","wp-rss-aggregator")})]})]})}const R2=me(()=>o("path",{d:"M10 17.5H14V16H10V17.5ZM6 6V7.5H18V6H6ZM8 12.5H16V11H8V12.5Z",fill:"currentColor"})),Bg=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 5.5H9C9.27614 5.5 9.5 5.72386 9.5 6V9C9.5 9.27614 9.27614 9.5 9 9.5H6C5.72386 9.5 5.5 9.27614 5.5 9V6C5.5 5.72386 5.72386 5.5 6 5.5ZM4 6C4 4.89543 4.89543 4 6 4H9C10.1046 4 11 4.89543 11 6V9C11 10.1046 10.1046 11 9 11H6C4.89543 11 4 10.1046 4 9V6ZM15 5.5H18C18.2761 5.5 18.5 5.72386 18.5 6V9C18.5 9.27614 18.2761 9.5 18 9.5H15C14.7239 9.5 14.5 9.27614 14.5 9V6C14.5 5.72386 14.7239 5.5 15 5.5ZM13 6C13 4.89543 13.8954 4 15 4H18C19.1046 4 20 4.89543 20 6V9C20 10.1046 19.1046 11 18 11H15C13.8954 11 13 10.1046 13 9V6ZM18 14.5H15C14.7239 14.5 14.5 14.7239 14.5 15V18C14.5 18.2761 14.7239 18.5 15 18.5H18C18.2761 18.5 18.5 18.2761 18.5 18V15C18.5 14.7239 18.2761 14.5 18 14.5ZM15 13C13.8954 13 13 13.8954 13 15V18C13 19.1046 13.8954 20 15 20H18C19.1046 20 20 19.1046 20 18V15C20 13.8954 19.1046 13 18 13H15ZM6 14.5H9C9.27614 14.5 9.5 14.7239 9.5 15V18C9.5 18.2761 9.27614 18.5 9 18.5H6C5.72386 18.5 5.5 18.2761 5.5 18V15C5.5 14.7239 5.72386 14.5 6 14.5ZM4 15C4 13.8954 4.89543 13 6 13H9C10.1046 13 11 13.8954 11 15V18C11 19.1046 10.1046 20 9 20H6C4.89543 20 4 19.1046 4 18V15Z",fill:"currentColor"})),U2=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.11445 8.5L4 8.5V7L7.11445 7C7.43302 5.98572 8.38059 5.25 9.5 5.25C10.6194 5.25 11.567 5.98572 11.8855 7L20 7V8.5L11.8855 8.5C11.567 9.51428 10.6194 10.25 9.5 10.25C8.38059 10.25 7.43302 9.51428 7.11445 8.5ZM4 17H12.1145C12.433 18.0143 13.3806 18.75 14.5 18.75C15.6194 18.75 16.567 18.0143 16.8855 17H20V15.5H16.8855C16.567 14.4857 15.6194 13.75 14.5 13.75C13.3806 13.75 12.433 14.4857 12.1145 15.5H4V17Z",fill:"currentColor"})),nD=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.0668 5.08541L16.8221 1.94543L6.20085 12.671L4.89833 17.0827L9.42571 15.8309L20.0668 5.08541ZM4 20.75H12V19.25H4V20.75Z",fill:"currentColor"}));function K2(e){const t=D.useRef(null),r=D.useRef(null),[n,a]=D.useState(""),[i,s]=D.useState(!1),u=()=>{a(e.value),s(!0),requestAnimationFrame(()=>t.current?.focus())},l=()=>{s(!1),requestAnimationFrame(()=>r.current?.focus())},f=()=>{e.onChange(n),l()},h=D.useCallback(m=>{switch(m.key){case"Enter":{f(),m.preventDefault();return}case"Escape":{l(),m.preventDefault();return}}},[s,e.onChange,f,l]);return i?b("div",{className:"flex flex-row items-center gap-2",children:[o(tt,{ref:t,value:n,onChange:a,onKeyDown:h}),o(ns,{size:"md",onClick:f,children:c.__("Rename","wp-rss-aggregator")}),o(as,{size:"md",onClick:l,children:c.__("Cancel","wp-rss-aggregator")})]}):o("div",{className:"flex flex-row items-center gap-2",children:o(lt,{content:c.__("Rename source","wp-rss-aggregator"),children:o(aD,{btnRef:r,onClick:u,children:e.value})})})}function aD(e){const t=Jr();return b("button",{ref:en(t.ref,e.btnRef),className:"appearance-none text-lg leading-6 focus-visible:ring-2 focus-visible:ring-alert-yellow",onClick:e.onClick,...t.props(),children:[o("span",{className:"underline",children:e.children}),o(nD,{width:18,height:18,className:"ml-1"})]})}function Zl(e,t){return function(r){const n=r[e];if(typeof n!="string"&&typeof n!="number")return null;const a=t[n]??t._default;return a?D.createElement(a,r):null}}function gi({className:e}){const[t,r]=D.useState(""),[n,a]=D.useState(!1),[i,s]=D.useState(null),[u,l]=D.useState(!1);Q.plans[0],Q.premiumInstalled&&Q.license?.tier&&(Q.plans.find(y=>y.tier===Q.license.tier)??Q.plans[0]);const f=q.license.activate.useMutation({onError:s,onSuccess(){a(!0),window.location.reload()}}),[h]=Cn.use(),m=Q.premiumInstalled&&h.tier===W.Free;function g(y){l(y)}function p(){l(!0)}function w(){return o(ua,{open:!0,onOpenChange:g,className:"max-w-[393px]",outsideDismiss:!1,compact:!0,showClose:!0,children:b("div",{className:"flex w-[297px] flex-col gap-5 items-center text-center",children:[o(xr,{className:"mt-[-10px] text-accent",size:72}),o("h1",{className:"text-2xl font-bold leading-10 text-primary",children:it(c.__("<span>Unlock Your Aggregator</span><span>Premium plan</span>","wp-rss-aggregator"),{span:o("span",{className:"block"})})}),o("p",{className:"text-md leading-4 text-gray-800",children:it(c.__("<span>Enable your premium features by using the license available in <a>your account</a>.</span>","wp-rss-aggregator"),{span:o("span",{className:"block"}),a:o("a",{className:"underline",href:"https://www.wprssaggregator.com/account/licenses/",target:"_blank"})})}),o(tt,{className:"w-full",value:t,onChange:r,placeholder:c.__("Enter your license key","wp-rss-aggregator"),autoFocus:!0}),i&&o("div",{className:"rounded-xs bg-light-red px-3 py-2 text-left text-md text-alert-red",children:i.message}),o(Ne,{className:"w-full",disabled:t.trim().length===0||f.isLoading,onClick:()=>f.mutate([t]),children:c.__("Activate","wp-rss-aggregator")}),it(c.__("<span>Need help with your license? <a>Click here</a>.</span>","wp-rss-aggregator"),{span:o("span",{className:"block !text-left text-gray-700 text-sm font-normal leading-3"}),a:o("a",{className:"underline",href:"https://www.wprssaggregator.com/help/locating-your-license-keys/",target:"_blank"})})]})})}return b(ie,{children:[m&&o(iD,{className:e,icon:o(fr,{width:16,height:16,className:"shrink-0 text-gray-900"}),children:it(c.__("<strong>Unlock Your Aggregator Premium Plan.</strong> <a>Activate your license</a> to access your new premium features.","wp-rss-aggregator"),{strong:o("strong",{}),a:o("a",{onClick:p,className:"underline text-primary cursor-pointer"})})}),u&&o(w,{})]})}function iD(e){return b("div",{className:fe("flex gap-1 items-baseline rounded-xs bg-orange-notice p-2",e.className),children:[o("div",{className:"shrink-0 items-start",children:e.icon}),o("div",{className:"text-md",children:e.children})]})}const oD=[{id:"settings",label:c.__("Settings","wp-rss-aggregator"),icon:o(U2,{})},{id:"customization",label:c.__("Customization","wp-rss-aggregator"),icon:o(A2,{})},{id:"filtering",label:c.__("Filtering","wp-rss-aggregator"),icon:o(R2,{}),minTier:W.Basic}];function sD(){const[e,t]=D.useState(!1),[r]=ue.useDisplay(),n=ue.useLoadDisplay(),a=Ii(),i=a.id?parseInt(a.id):null,s=!!a.initialOpen,[u]=ue.useIsDirty();return Od({condition:u,title:c.__("Are you sure?","wp-rss-aggregator"),children:c.__("You have unsaved changes. If you leave now, your changes will be lost.","wp-rss-aggregator"),yesBtnText:c.__("Leave","wp-rss-aggregator"),noBtnText:c.__("Stay","wp-rss-aggregator"),variant:"danger"}),D.useLayoutEffect(()=>{i&&i!==r.id?(t(!1),n(i).then(()=>t(!0))):t(!0)},[i]),e?o(uD,{initialOpen:s}):o(wf,{debounce:500})}function uD({initialOpen:e}){const[t,r]=ue.useCurrTab();return o(jf,{topbar:b(ie,{children:[o(Br,{icon:o(Bg,{}),title:c.__("Displays","wp-rss-aggregator"),left:o(cD,{}),right:o(dD,{})}),o(gi,{className:"px-9"})]}),sidebar:o(Pe,{tabs:oD,currTab:t,onTabChange:r,children:o(lD,{tab:t,initialOpen:e})}),content:D.useMemo(()=>o(wS,{},"edit-diplay-viewport"),[])})}const lD=Zl("tab",{settings:eD,customization:AA,filtering:KA});function cD(){const[e,t]=ue.useDisplayName();return o(K2,{value:e,onChange:t})}function dD(){return b("div",{className:"flex flex-row items-center gap-3",children:[o(fD,{}),o(cS,{})]})}function fD(){const[e,t]=ue.useDisplay(),[r,n]=ue.useIsDirty(),a=lr(),i=q.displays.save.with(e).useMutation({onSuccess(s){q.client.invalidateQueries(["displays"]),t(s),n(!1),s.id!==e.id&&setTimeout(()=>{a("display-edit",{id:s.id})})}});return Sr({ctrl:!0,key:"s"},()=>i.mutate(),!0,!0),r?o(as,{className:"rounded-xs border border-white/10",disabled:i.isLoading,onClick:()=>i.mutate(),children:c.__("Save","wp-rss-aggregator")}):b("span",{className:"cursor-default px-4 leading-6 opacity-50",children:[o(Wt,{className:"mr-1"}),c.__("Saved","wp-rss-aggregator")]})}function Rg({graphic:e,heading:t,children:r}){return o("div",{className:"w-full flex-1 pt-16 animate-fade-in",children:b("div",{className:"mx-auto flex w-[500px] max-w-full flex-col items-center gap-6 text-center text-md leading-4",children:[e,o("p",{className:"w-60 text-lg font-semibold leading-6",children:t}),r]})})}const gD=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.46973 14.5303L7.53039 13.4697L11.2501 17.1893L11.2501 4L12.7501 4L12.7501 17.1893L16.4697 13.4697L17.5304 14.5303L12.0001 20.0607L6.46973 14.5303Z",fill:"currentColor"})),hD=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.5304 9.46966L16.4697 10.5303L12.7501 6.81065L12.7501 20H11.2501L11.2501 6.81065L7.53039 10.5303L6.46973 9.46966L12.0001 3.93933L17.5304 9.46966Z",fill:"currentColor"}));function Yl(e){const t=e.selection?.size??0;function r(a){const i=new Set(e.selection);i.has(a)?i.delete(a):i.add(a),e.onSelect?.(i)}function n(){const a=t<e.items.length,i=e.items.map(e.itemId),s=a?new Set(i):new Set;e.onSelect?.(s)}return b(be,{className:"animate-fade-in",children:[b(be.Header,{className:fe("sticky top-[-1px] z-10",t>0?"bg-light":"bg-white"),children:[o(be.HeaderCell,{className:"w-10 pr-2",children:o(ye,{checked:t>0,indeterminate:t<e.items.length,onChange:n,"aria-label":c.__("Select all sources","wp-rss-aggregator")})}),t>0&&o(be.HeaderCell,{colSpan:5,children:o(wn,{value:18,children:o("div",{className:"flex h-full flex-row items-center gap-2",children:e.actions.map(a=>o(D.Fragment,{children:a.render()},a.id))})})}),t===0&&e.columns.map(a=>o(be.HeaderCell,{className:a.className,children:a.sortable?b("button",{className:"appearance-none ring-primary focus-visible:ring",onClick:()=>e.onSort?.(a.id),children:[o("span",{children:a.label}),e.sortBy!==a.id||e.order==="asc"?o(gD,{height:18}):o(hD,{height:18})]}):a.label},a.id))]}),b(be.Body,{className:"overflow-auto",children:[e.isLoading&&o(be.Row,{children:o(be.Cell,{colSpan:6,className:"text-center",children:o("span",{children:c.__("Loading...","wp-rss-aggregator")})})}),!e.isLoading&&e.items.map(function(a){const i=e.itemId(a),s=e.selection?.has(i)??!1;return b(be.Row,{className:s?"bg-light-blue":"bg-white",children:[o(be.Cell,{className:"pr-2",children:o(ye,{checked:s,onChange:()=>r(i),"aria-label":s?c.__("Select","wp-rss-aggregator"):c.__("Deselect","wp-rss-aggregator")})}),e.columns.map(u=>o(be.Cell,{className:u.className,children:u.component&&D.createElement(u.component,{item:a,isLoading:e.isLoading??!1})},u.id))]},i)})]})]})}const Ql=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.625 4.5H16.375C16.444 4.5 16.5 4.55596 16.5 4.625V16.375C16.5 16.444 16.444 16.5 16.375 16.5H4.625C4.55596 16.5 4.5 16.444 4.5 16.375V4.625C4.5 4.55596 4.55596 4.5 4.625 4.5ZM3 4.625C3 3.72754 3.72754 3 4.625 3H16.375C17.2725 3 18 3.72754 18 4.625V16.375C18 17.2725 17.2725 18 16.375 18H4.625C3.72754 18 3 17.2725 3 16.375V4.625ZM20.25 19V8H21.75V19C21.75 20.5183 20.5204 21.75 19.0011 21.75H6V20.25H19.0011C19.6909 20.25 20.25 19.6909 20.25 19Z",fill:"currentColor"})),pD=[{id:"name",label:c.__("Name","wp-rss-aggregator"),sortable:!0,component:vD,className:"min-w-[300px] w-[500px]"},{id:"instances",label:c.__("Instances","wp-rss-aggregator"),component:wD,className:"text-gray-700"},{id:"shortcode",label:c.__("Shortcode","wp-rss-aggregator"),component:yD,className:"text-gray-700"}];function mD(e){const[t,r]=D.useState(new Set),n=tn(),a=lr(),i=ue.useReset(),s=q.displays.deleteManyByIds.useMutation({onSuccess(){q.client.invalidateQueries(["displays"]),r(new Set)}});function u(h){e.sortBy===h?e.onSort(h,e.order==="asc"?"desc":"asc"):e.onSort(h,"asc")}function l(){if(t.size!==1)return;const[h]=t.entries().next().value,m=e.displays?.find(g=>g.id===h);m&&(i({...m,id:null,name:c.sprintf(c.__("%s (copy)","wp-rss-aggregator"),m.name)}),a("display-edit"))}function f(){t.size!==0&&n({title:c.sprintf(c._n("Delete display?","Delete %d displays?",t.size,"wp-rss-aggregator"),t.size),variant:"danger",children:c.__("This action cannot be undone.","wp-rss-aggregator"),yesBtnText:c.__("Delete","wp-rss-aggregator"),noBtnText:c.__("Cancel","wp-rss-aggregator"),onConfirm(){if(t.size>0){const h=Array.from(t);s.mutate([h])}}})}return o(Yl,{columns:pD,items:e.displays,itemId:h=>h.id,isLoading:e.isLoading,sortBy:e.sortBy,order:e.order,onSort:u,selection:t,onSelect:r,actions:[{id:"duplicate",render:()=>t.size===1&&b(St,{size:"sm",onClick:l,children:[o(Ql,{className:"text-accent"}),c.__("Duplicate","wp-rss-aggregator")]})},{id:"delete",render:()=>b(St,{size:"sm",onClick:f,className:"no-underline",children:[o(Dn,{className:"text-accent"}),c.__("Delete","wp-rss-aggregator")]})}]})}function vD({item:e}){return b("div",{className:"flex flex-col gap-1",children:[b("div",{children:[o(Ae,{className:"font-semibold",href:_t.page("display-edit",{id:e.id,...e.folders.length>0&&{initialOpen:!0}}),children:e.name}),o(Fa,{size:"sm",color:"light",className:"ml-2",children:c.sprintf(c._n("%d source","%d sources",e.sources.length,"wp-rss-aggregator"),e.sources.length)}),o(Fa,{size:"sm",color:"light",className:"ml-2",children:c.sprintf(c._n("%d folder","%d folders",e.folders.length,"wp-rss-aggregator"),e.folders.length)})]}),o("div",{className:"text-sm leading-4 text-gray-700",children:e.settings.layout&&o(bD,{id:e.settings.layout})})]})}function bD(e){return D.useMemo(()=>El.find(r=>r.id===e.id),[e.id])?.name}function wD({item:e}){const{data:t}=q.displays.getInstances.with(e.id).useQuery([],["displayInstances",e.id]);return t.length===0?o("span",{children:"–"}):o("div",{className:"flex flex-col",children:t.map(({id:r,title:n,url:a})=>o(Ae,{href:a,target:"_blank",children:n},r))})}function yD({item:e}){const t=`[wp-rss-aggregator id="${e.id}"]`,[r,n]=D.useState(!1),a=al(1500,()=>n(!1));function i(){window.isSecureContext?navigator.clipboard.writeText(t):console.log("Cannot copy to clipboard because the page is not secure."),n(!0),a.start()}return o("span",{className:"text-gray-900 bg-gray-100 text-md font-normal py-[6px] px-[8px]",onClick:i,children:t})}function z2(e){const t=ue.useReset();return b(oa,{variant:e.variant||"primary",href:_t.page("display-edit"),onClick:()=>t(),children:[o(cn,{}),o("span",{children:c.__("Create a new display","wp-rss-aggregator")})]})}function Xl({displaySearch:e=!0,...t}){const r=D.useRef(null),n=Math.ceil((t.total??0)/Math.max(1,t.perPage??1));return Sr("/",()=>r.current?.focus()),Sr("ArrowLeft",function(){t.currPage!==void 0&&t.onChangePage?.(Math.max(1,Math.min(n,t.currPage-1)))}),Sr("ArrowRight",function(){t.currPage!==void 0&&t.onChangePage?.(Math.max(1,Math.min(n,t.currPage+1)))}),b("div",{className:"relative flex h-full flex-col",children:[t.topbar,b("div",{className:"flex flex-1 flex-col overflow-hidden",children:[b("div",{className:"flex w-full flex-shrink-0 flex-row justify-between gap-3 bg-light-blue px-8 py-6 h-[88px]",children:[o("div",{className:"flex flex-row items-center",children:t.header}),e&&o("div",{className:"w-80 flex-shrink",children:o(bl,{ref:r,value:t.search,onChange:t.onChangeSearch,placeholder:c.__("Search","wp-rss-aggregator"),className:"w-full border-none"})})]}),t.before,o(Uf,{className:"mx-9 my-5"}),o($f,{className:"mx-9 my-5"}),b("div",{className:"relative flex flex-1 flex-col gap-4 overflow-auto pb-4",children:[t.table,b("div",{className:"my-2 flex flex-row items-center justify-between px-8 py-4",children:[o("div",{className:"text-sm leading-4 text-gray-900",children:t.footer}),o("div",{className:"flex flex-col items-center",children:n>1&&o(Um,{currPage:t.currPage,numPages:n,onChangePage:t.onChangePage})}),o("div",{})]})]})]})]})}const Ug=20;function xD(){const[e,t]=D.useState(1),[r,n]=D.useState(""),a=on(r,500),i="name",[s,u]=D.useState("asc"),{data:[l,f],isLoading:h}=q.batch([q.displays.getList.with(a,Ug,e,s),q.displays.getCount]).useQuery([[],0],["displays","page",a,Ug,e,s]),m=!h&&l.length===0&&a==="";return o(Xl,{total:f,currPage:e,perPage:Ug,onChangePage:t,search:r,onChangeSearch:n,displaySearch:!m,topbar:b(ie,{children:[o(Br,{title:c.__("Displays","wp-rss-aggregator"),icon:o(Bg,{})}),o(gi,{className:"px-9"})]}),header:o(z2,{}),table:b(ie,{children:[o(mD,{displays:l??[],isLoading:h,sortBy:i,order:s,onSort:(g,p)=>u(p)}),m&&o(_D,{})]}),footer:c.sprintf(c._n("%d display","%d displays",f,"wp-rss-aggregator"),f)})}function _D(){return b(Rg,{graphic:o("img",{src:Q.urls.assets.imgs+"/bee-dots-circle.svg"}),heading:c.__("Set up your first display.","wp-rss-aggregator"),children:[o("p",{children:c.__("Effortlessly curate and showcase content in beautiful displays.","wp-rss-aggregator")}),o("p",{children:c.__("Customize your layout, add titles, images, and excerpts, and bring fresh, dynamic content from across the web to your engaged audience.","wp-rss-aggregator")}),o(Ae,{variant:"none",href:_t.page("display-edit"),children:b(Ne,{children:[o(cn,{}),c.__("Create display","wp-rss-aggregator")]})})]})}const $2=Oe(!1),j2=Oe(null),q2=Oe(Kg());function Kg(){return{id:0,name:"",sourceIds:[]}}function oo(){const[e,t]=ce($2),[,r]=ce(j2),[,n]=ce(q2);return{isOpen:e,new(a){r(null),n(a??Kg()),t(!0)},edit(a){r(a),n(a),t(!0)},close(){t(!1)}}}function CD(){const[e,t]=ce($2),[r]=ce(j2),[n,a]=ce(q2),[i,s]=D.useState(!1),[u,l]=D.useState(""),f=r===null;y9((p,w,y,_)=>(e&&h(!1),!0));function h(p){t(p),s(!1)}const m=q.folders.update.useMutation({onSuccess(){q.client.invalidateQueries(["folders"]),q.client.invalidateQueries(["sources"]),f?s(!0):h(!1)},onError(p){l(p.message)}});async function g(){f?m.mutate([null,n]):m.mutate([r.name,n])}return i&&e?o(ua,{open:!0,className:"w-[480px]",onOpenChange:h,showClose:!0,children:o(SD,{})}):b(ua,{open:e,className:"w-[560px]",title:f?c.__("Create a new folder","wp-rss-aggregator"):c.__("Edit your folder","wp-rss-aggregator"),children:[o("p",{className:"text-center text-md",children:c.__("Keep your sources organized and under control.","wp-rss-aggregator")}),o("div",{className:"mx-auto w-72",children:o(mt,{})}),b(ne,{label:c.__("Folder name","wp-rss-aggregator"),children:[o(tt,{className:u?"!border !border-alert-red !text-alert-red":"",value:n.name,onChange:function(p){a(w=>({...w,name:p})),l("")},onKeyDown:function(p){p.key==="Enter"&&(p.preventDefault(),g())},placeholder:c.__("Name your folder","wp-rss-aggregator")}),u&&b("div",{className:"flex gap-1",children:[o(fr,{className:"text-alert-red",width:18,height:18}),o("p",{className:"text-alert-red text-sm",children:u})]})]}),o(ne,{label:c.__("Choose the sources to include in this folder","wp-rss-aggregator"),children:o(B2,{values:n.sourceIds??[],onChange:function(p){a(w=>({...w,sourceIds:p}))}})}),b("div",{className:"flex flex-row items-center justify-end gap-2",children:[o(_r,{onClick:()=>h(!1),children:c.__("Cancel","wp-rss-aggregator")}),o(Ne,{onClick:g,disabled:n.name.trim().length===0||n.sourceIds.length===0||ED(n,r??Kg()),children:f?c.__("Create folder","wp-rss-aggregator"):c.__("Update","wp-rss-aggregator")})]})]})}function SD(){return b("div",{className:"flex flex-col items-center text-center",children:[o(xr,{className:"text-accent",size:64}),o("p",{className:"mb-6 text-2xl font-bold leading-8 text-primary",children:c.__("Your folder has been created","wp-rss-aggregator")}),o(Ae,{href:"https://www.wprssaggregator.com/help/make-the-most-of-your-folders/",target:"_blank",variant:"none",className:"text-md leading-4 text-gray-900 underline ring-primary hover:text-primary focus-visible:text-primary focus-visible:ring-1",children:c.__("Learn how to make the most of your Folders.","wp-rss-aggregator")})]})}function ED(e,t){return e.name===t.name&&e.sourceIds?.length===t.sourceIds?.length&&(e.sourceIds?.every((r,n)=>r===t.sourceIds?.[n])??!1)}function W2(e){const{folder:t,...r}=e;return typeof t=="string"?o(AD,{...r,folder:t}):o(G2,{...r,folder:t})}function AD(e){const{folder:t,...r}=e,{data:n}=q.folders.getSources.with([t]).useQuery([],["folderSources",t],{refetchOnWindowFocus:!1,refetchInterval:!1});return o(G2,{...r,folder:{name:t,sourceIds:n}})}function G2(e){const{folder:t,...r}=e,n=oo();return o(Ae,{...r,onClick:()=>n.edit(t),children:t.name})}const Z2=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.3335 5C3.3335 3.89543 4.22893 3 5.3335 3H19.3335C20.4381 3 21.3335 3.89543 21.3335 5V19C21.3335 20.1046 20.4381 21 19.3335 21H5.3335C4.22893 21 3.3335 20.1046 3.3335 19V5ZM5.3335 4.5H11.5835V11.25H4.8335V5C4.8335 4.72386 5.05735 4.5 5.3335 4.5ZM4.8335 12.75V19C4.8335 19.2761 5.05735 19.5 5.3335 19.5H11.5835V12.75H4.8335ZM13.0835 12.75V19.5H19.3335C19.6096 19.5 19.8335 19.2761 19.8335 19V12.75H13.0835ZM13.0835 4.5V11.25H19.8335V5C19.8335 4.72386 19.6096 4.5 19.3335 4.5H13.0835Z",fill:"currentColor"})),DD=[{id:"name",label:c.__("Name","wp-rss-aggregator"),sortable:!0,component:ND,className:"min-w-[300px] w-[500px]"},{id:"displays",label:c.__("Displays","wp-rss-aggregator"),component:TD}];function kD({folders:e=[],isLoading:t=!1,order:r,sortBy:n,onSort:a}){const[i,s]=D.useState(new Set),u=ue.useReset(),l=q.folders.delete.useMutation({onSuccess(){q.client.invalidateQueries(["folders"])}}),f=oo(),h=lr(),m=tn();function g(_){n===_?a(_,r==="asc"?"desc":"asc"):a(_,"asc")}function p(){if(i.size!==1)return;const[_]=i.entries().next().value,S=e?.find(H=>H.id===_);if(S)return{id:S.id,name:S.name,sourceIds:S.sourceIds.slice()}}function w(){i.size!==0&&(u({id:null,name:c.__("New display","wp-rss-aggregator"),sources:[],folders:Array.from(i),settings:Sl}),h("display-edit",{initialOpen:!0}))}function y(){i.size!==0&&m({title:c.sprintf(c._n("Delete folder?","Delete %d folders?",i.size,"wp-rss-aggregator"),i.size),variant:"danger",children:c.__("This action cannot be undone.","wp-rss-aggregator"),yesBtnText:c.__("Delete","wp-rss-aggregator"),noBtnText:c.__("Cancel","wp-rss-aggregator"),onConfirm(){if(i.size>0){const _=Array.from(i);l.mutate([_],{onSuccess:()=>s(new Set)})}}})}return o(Yl,{columns:DD,items:e,itemId:_=>_.id,isLoading:t,sortBy:n,order:r,onSort:g,selection:i,onSelect:s,actions:[{id:"duplicate",render:()=>i.size===1&&b(St,{size:"sm",onClick:()=>f.new(p()),children:[o(Ql,{className:"text-accent"}),c.__("Duplicate","wp-rss-aggregator")]})},{id:"create-display",render:()=>b(St,{size:"sm",onClick:w,children:[o(Z2,{className:"text-accent"}),c.__("Create Display","wp-rss-aggregator")]})},{id:"delete",render:()=>b(St,{size:"sm",onClick:y,children:[o(Dn,{className:"text-accent"}),c.__("Delete","wp-rss-aggregator")]})}]})}function ND({item:e}){const t=e.sourceIds.length;return b("div",{children:[o(W2,{folder:e,className:"font-semibold"}),o(Fa,{size:"sm",color:"light",className:"ml-2",children:c.sprintf(c._n("%d source","%d sources",t,"wp-rss-aggregator"),t)})]})}function TD({item:e}){return e.rels?.displays?.length?(e.rels?.displays?.map(r=>o(Ae,{href:_t.page("display-edit",{id:r.id,initialOpen:!0}),children:r.name},r.id))??[]).reduce((r,n)=>r===null?[n]:[r,", ",n],null):o("span",{children:"–"})}function HD(){const t=se().isLowerThan(W.Basic),r=oo();if(t){const n=Q.isBlackFridayActive?c.__("Upgrade — Up to 40% OFF","wp-rss-aggregator"):c.__("Upgrade Now","wp-rss-aggregator"),a=Q.isBlackFridayActive?"https://www.wprssaggregator.com/upgrade/?utm_source=plugin&utm_medium=upsell&utm_campaign=BF25&utm_content=folders-page":"https://www.wprssaggregator.com/upgrade/?utm_source=plugin&utm_medium=upsell&utm_content=folders-page";return o(Fg,{demoUrl:"https://youtu.be/dYbjm2MJs8w?si=Pb-HUcEOW8Eno8Y_",upgradeBTNURL:a,title:c.__("Simplify your workflow","wp-rss-aggregator"),video:Q.urls.assets.imgs+"/upgrade/folders.webm",upgradeBTNText:n,children:o("p",{className:"text-lg leading-6",children:c.__("Group and manage your sources with folders for faster curation and a cleaner workspace.","wp-rss-aggregator")})})}return b(Rg,{graphic:o("img",{src:Q.urls.assets.imgs+"/bee-dots-circle.svg"}),heading:c.__("Welcome to a more organized way of managing your sources","wp-rss-aggregator"),children:[o("p",{children:c.__("Create your first folder to easily manage and access your sources.","wp-rss-aggregator")}),b(Ne,{onClick:()=>r.new(),children:[o(cn,{}),o("span",{children:c.__("Create a new folder","wp-rss-aggregator")})]})]})}function Y2(){const e=se().isAtLeast(W.Basic),t=oo();return b(oa,{variant:"primary",className:"data-[disabled=true]:!bg-transparent",disabled:!e,onClick:()=>t.new(),children:[o(cn,{}),o("span",{children:c.__("Create a new folder","wp-rss-aggregator")})]})}function ID(e,t){const r=[];for(const n of e){const a=t[n.id?n.id:n.name]??{displays:[]};r.push({...n,rels:a})}return r}const Q2=20;function OD(){const e=se().isAtLeast(W.Basic),[t,r]=D.useState(1),n=oo(),[a,i]=D.useState(""),s=on(a,500),u="name",[l,f]=D.useState("asc");function h(_,S){f(S)}const{data:[m,g],isLoading:p}=q.batch([q.folders.getList.with(s,[],Q2,t,l),q.rels.get.with("folders",q.result(0))]).useQuery([[],{}],["folders","page",s,t,l],{enabled:e&&!n.isOpen}),w=D.useMemo(()=>ID(m,g),[m,g]),y=(!e||!p)&&m.length===0&&s==="";return o(Xl,{currPage:t,perPage:Q2,onChangePage:r,search:a,onChangeSearch:i,topbar:b(ie,{children:[o(MD,{}),o(gi,{className:"px-9"})]}),header:o(Y2,{}),displaySearch:!y,table:b(ie,{children:[o(kD,{folders:y?[]:w,isLoading:p&&e,sortBy:u,order:l,onSort:h}),y&&o(HD,{})]}),footer:c.sprintf(c._n("%d folder","%d folders",m.length,"wp-rss-aggregator"),m.length)})}function MD(){const e=se().isLowerThan(W.Basic);return o(Br,{title:c.__("Folders","wp-rss-aggregator"),icon:o(Gl,{}),left:e&&o(Fa,{color:"accent",children:c.__("Premium","wp-rss-aggregator")})})}function LD(){return o("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-2 xl:grid-cols-3",children:PD.map(e=>o(VD,{...e},e.title))})}function VD({title:e,minTier:t=W.Free,premiumText:r,articles:n=[],viewAllUrl:a}){const i=se().isLowerThan(t);return b("div",{className:"rounded-xs border border-gray-200 p-8",children:[b("div",{className:"flex flex-row items-center gap-2",children:[o("p",{className:"text-lg font-semibold leading-6 text-black",children:e}),i&&o(ca,{children:r})]}),o("div",{className:"mt-4 flex flex-col gap-2 text-md leading-5",children:n.map(s=>b(Ae,{href:s.url,target:"_blank",children:[o("span",{children:s.title}),o(nn,{size:16,className:"ml-1 align-text-bottom"})]},s.title))}),a&&o("div",{className:"mt-6",children:o(Ae,{variant:"none",href:a,target:"_blank",className:"cursor-pointer rounded-xs bg-light p-2 text-md text-primary ring-primary focus-visible:ring",children:c.__("View all","wp-rss-aggregator")})})]})}const PD=[{title:c.__("Your Account","wp-rss-aggregator"),articles:[{title:c.__("Locating Your License Keys","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/locating-your-license-keys/"},{title:c.__("Upgrading Your License or Plan","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/upgrading-your-license-or-plan/"},{title:c.__("Updating Your Billing Details","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/updating-modifying-billing-details"}],viewAllUrl:"https://www.wprssaggregator.com/help-topics/account-management/"},{title:c.__("Getting Started","wp-rss-aggregator"),articles:[{title:c.__("Minimum Requirements","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/minimum-requirements/"},{title:c.__("Activating Your License Key","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/activating-your-license-key/"},{title:c.__("Installing Aggregator Premium","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/installing-aggregator-premium/"}],viewAllUrl:"https://www.wprssaggregator.com/help-topics/getting-started/"},{title:c.__("Hub","wp-rss-aggregator"),articles:[{title:c.__("The Hub","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/the-hub/"}],viewAllUrl:"https://www.wprssaggregator.com/help-topics/hub/"},{title:c.__("Sources","wp-rss-aggregator"),articles:[{title:c.__("Sources List","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/sources-list/"},{title:c.__("Adding a Source","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/adding-a-source/"},{title:c.__("Finding an RSS Feed","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/finding-an-rss-feed/"}],viewAllUrl:"https://www.wprssaggregator.com/help-topics/sources/"},{title:c.__("Displays","wp-rss-aggregator"),articles:[{title:c.__("Displays List","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/displays-list/"},{title:c.__("Creating a Display","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/creating-a-display/"},{title:c.__("The Shortcode","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/shortcode/"}],viewAllUrl:"https://www.wprssaggregator.com/help-topics/displays/"},{title:c.__("Folders","wp-rss-aggregator"),minTier:W.Basic,premiumText:c.__("Basic plan","wp-rss-aggregator"),articles:[{title:c.__("Folders List","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/folders-list/"},{title:c.__("Creating a Folder","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/creating-a-folder/"}],viewAllUrl:"https://www.wprssaggregator.com/help-topics/folders/"},{title:c.__("Feed to Post","wp-rss-aggregator"),minTier:W.Plus,premiumText:c.__("Plus plan","wp-rss-aggregator"),articles:[{title:c.__("An Introduction to Feed to Post","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/an-introduction-to-feed-to-post/"},{title:c.__("Importing into a Custom Post Type","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/importing-content-into-a-custom-post-type/"},{title:c.__("Importing Posts as Drafts","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/how-to-import-posts-as-drafts/"}],viewAllUrl:"https://www.wprssaggregator.com/help-topics/feed-to-post/"},{title:c.__("Full Text","wp-rss-aggregator"),minTier:W.Pro,premiumText:c.__("PRO plan","wp-rss-aggregator"),articles:[{title:c.__("An Introduction to Full Text","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/an-introduction-to-full-text/"},{title:c.__("Full Text Service","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/advanced-full-text-service/"},{title:c.__("Limitations of Our Full Text Service","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/full-text-limitations/"}],viewAllUrl:" https://www.wprssaggregator.com/help-topics/full-text/"},{title:c.__("Custom Feeds","wp-rss-aggregator"),articles:[{title:c.__("Custom Feed Settings","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/custom-feed-settings/"},{title:c.__("Free Feed Creator Service","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/feed-creator-service/"},{title:c.__("Custom RSS Feed of Imported Items","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/creating-a-custom-rss-feed/"}],viewAllUrl:"https://www.wprssaggregator.com/help-topics/custom-feeds/"},{title:c.__("Automations","wp-rss-aggregator"),minTier:W.Basic,premiumText:c.__("Basic plan","wp-rss-aggregator"),articles:[{title:c.__("An Introduction to Automations","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/an-introduction-to-automations/"},{title:c.__("Source Automations","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/automations/"},{title:c.__("Global Automations","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/global-automations/"}],viewAllUrl:"https://www.wprssaggregator.com/help-topics/automations/"},{title:c.__("Integrations","wp-rss-aggregator"),minTier:W.Elite,premiumText:c.__("Elite plan","wp-rss-aggregator"),articles:[{title:c.__("WordAi Integration","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/wordai-integration/"},{title:c.__("SpinnerChief Integration","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/spinnerchief-integration/"}],viewAllUrl:"https://www.wprssaggregator.com/help-topics/integrations/"},{title:c.__("Settings","wp-rss-aggregator"),articles:[{title:c.__("General Settings","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/general-settings/"},{title:c.__("Advanced Settings","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/settings-advanced/"}],viewAllUrl:"https://www.wprssaggregator.com/help-topics/settings/"},{title:c.__("Import/Export","wp-rss-aggregator"),articles:[{title:c.__("Import/Export Feed Sources","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/import-export-feed-sources/"},{title:c.__("Import/Export Posts","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/import-export-posts/"},{title:c.__("Import/Export Feed Items","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/import-export-feed-items/"}],viewAllUrl:"https://www.wprssaggregator.com/help-topics/import-export/"},{title:c.__("Developers","wp-rss-aggregator"),articles:[{title:c.__("Adding Custom Actions and Filters","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/adding-custom-actions-and-filters/"},{title:c.__("Image Cache Control","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/image-cache-control/"},{title:c.__("Customization Works","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/customization-works/"}],viewAllUrl:"https://www.wprssaggregator.com/help-topics/developers/"},{title:c.__("Support","wp-rss-aggregator"),articles:[{title:c.__("Items Not Importing","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/items-not-importing/"},{title:c.__("Images Not Importing","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/images-not-importing/"},{title:c.__("Solutions to Cron Issues","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/help/solutions-to-cron-issues/"}],viewAllUrl:"https://www.wprssaggregator.com/help-topics/support/"},{title:c.__("FAQs","wp-rss-aggregator"),articles:[],viewAllUrl:"https://www.wprssaggregator.com/help-topics/faqs/"},{title:c.__("Glossary of Terms","wp-rss-aggregator"),articles:[],viewAllUrl:"https://www.wprssaggregator.com/help/glossary/"},{title:c.__("Video Library","wp-rss-aggregator"),articles:[],viewAllUrl:"https://www.wprssaggregator.com/video-library/"}],FD=me(()=>o("path",{d:"M5 11.25H19V12.75H5V11.25Z",fill:"currentColor"}));function BD(){return o("div",{className:"flex flex-col gap-4",children:RD.map(e=>o(UD,{...e},e.question))})}const RD=[{question:c.__("How do I get started with Aggregator?","wp-rss-aggregator"),answer(){return it(c.__("We have a complete <gettingStartedLink>getting started guide</gettingStartedLink> that you can follow to start using Aggregator. From setting up your sources to display imported content on your site, the guide will walk you through all the basic steps. If you need any help along the way, please <contactSupportLink>contact our support team</contactSupportLink>. We're always happy to help.","wp-rss-aggregator"),{gettingStartedLink:o("a",{href:"https://www.wprssaggregator.com/help-topics/getting-started/",className:"underline text-primary cursor-pointer inline",target:"_blank"}),contactSupportLink:o("a",{href:"https://www.wprssaggregator.com/contact/",className:"underline text-primary cursor-pointer inline",target:"_blank"})})},readMore:"https://www.wprssaggregator.com/help-topics/getting-started/"},{question:c.__("How do I use the shortcode/block to display imported content?","wp-rss-aggregator"),answer(){return it(c.__("To embed imported content on a page, you can <displayLink>create a Display</displayLink> and then use Aggregator's <shortCodeLink>shortcode</shortCodeLink> or <blockLink>block</blockLink> to add the content anywhere on your site. The content being display can be imported as Feed Items, Posts, or any custom post type.","wp-rss-aggregator"),{displayLink:o("a",{href:"https://www.wprssaggregator.com/help/creating-a-display/",className:"underline text-primary cursor-pointer",target:"_blank"}),shortCodeLink:o("a",{href:"https://www.wprssaggregator.com/help/shortcode/",className:"underline text-primary cursor-pointer",target:"_blank"}),blockLink:o("a",{href:"https://www.wprssaggregator.com/help/block/",className:"underline text-primary cursor-pointer",target:"_blank"})})},readMore:"https://www.wprssaggregator.com/help/creating-a-display/",tier:W.Basic},{question:c.__("Why aren't my sources importing new items?","wp-rss-aggregator"),answer(){return it(c.__("If a source isn’t importing new items, check the source URL’s validity, the source's limit settings, any automation filtering rules, and lastly, cron-related issues. In most cases, this issue can be resolved quite quickly, but if you need any further help, please <contactSupportLink>contact our support team</contactSupportLink>.","wp-rss-aggregator"),{contactSupportLink:o("a",{href:"https://www.wprssaggregator.com/contact/",className:"underline text-primary cursor-pointer",target:"_blank"})})},readMore:"https://www.wprssaggregator.com/help/items-not-importing/"},{question:c.__("Why is my imported content missing images?","wp-rss-aggregator"),answer(){return it(c.__("If images are not being imported with your content, first ensure the source provides images. Once you've done that, verify the image import settings are enabled for the source and check whether they're set up to find the correct images. If you need further help to resolve this issue, please <contactSupportLink>contact our support team</contactSupportLink>.","wp-rss-aggregator"),{contactSupportLink:o("a",{href:"https://www.wprssaggregator.com/contact/",className:"underline text-primary cursor-pointer",target:"_blank"})})},readMore:"https://www.wprssaggregator.com/help/images-not-importing/"},{question:c.__("How do I import items as Posts or a custom post type?","wp-rss-aggregator"),answer(){return c.__("To import items as Posts or a custom post type, go to the Sources section in your Aggregator settings. Select the source you want to edit or add a new one. In the Post Type setting, choose either Posts or your desired custom post type from the dropdown menu. Save your changes to start importing items as the selected post type. This allows items from your source to be displayed as standard WordPress Posts in your blog or in a custom post type that suits your site’s structure.","wp-rss-aggregator")},readMore:"https://www.wprssaggregator.com/help/an-introduction-to-feed-to-post/"},{question:c.__("Can I curate articles before they get published?","wp-rss-aggregator"),answer(){return c.__('Absolutely. In Aggregator, when setting up or editing a source, you can enable the "Curate posts" option. This will enable curation mode for that source, meaning all items are first brought in to your Hub from where you can approve or reject them. Once approved, the items are the imported and published according to your settings.',"wp-rss-aggregator")},readMore:"https://www.wprssaggregator.com/help/curate-items-before-publishing/"},{question:c.__("How do I display a YouTube video gallery?","wp-rss-aggregator"),answer(){return it(c.__("To display a <youTubeLink>YouTube video gallery</youTubeLink>, add a YouTube source in the Sources section by entering the channel's URL. Set up the rest of the source's settings as needed, and then create a Display for that Source. For the best results, use the Grid layout (requires <basicPlanLink>Basic Plan</basicPlanLink>) to create the video gallery.","wp-rss-aggregator"),{youTubeLink:o("a",{href:"https://www.wprssaggregator.com/youtube-video-gallery/",className:"underline text-primary cursor-pointer",target:"_blank"}),basicPlanLink:o("a",{href:"https://www.wprssaggregator.com/pricing/",className:"underline text-primary cursor-pointer",target:"_blank"})})},readMore:"https://www.wprssaggregator.com/help-topics/integrations/"},{question:c.__("Can I automatically spin imported content with AI?","wp-rss-aggregator"),answer(){return it(c.__("Yes, you can use AI-powered content spinning for all or some of your sources' content by integrating a supported content spinner such as <wordAILink>WordAI</wordAILink> or <spinnerLink>SpinnerChief</spinnerLink>.","wp-rss-aggregator"),{wordAILink:o("a",{href:"https://www.wprssaggregator.com/help/an-introduction-to-wordai/",className:"underline text-primary cursor-pointer",target:"_blank"}),spinnerLink:o("a",{href:"https://www.wprssaggregator.com/help/an-introduction-to-spinnerchief/",className:"underline text-primary cursor-pointer",target:"_blank"})})},readMore:"https://www.wprssaggregator.com/help-topics/integrations/"},{question:c.__("Can I translate imported content?","wp-rss-aggregator"),answer(){return c.__("Yes, you can use translation plugins like Weglot, TranslatePress, WPML, or Polylang to set up automatic translations for imported content. Many of these plugins also offer machine translation options, allowing you to translate new items as they are imported and before they are published.","wp-rss-aggregator")},readMore:"https://www.wprssaggregator.com/help/translating-imported-content/"},{question:c.__("How do I activate my premium features/license?","wp-rss-aggregator"),answer(){return c.__("Once you've purchase one of Aggregator's premium plans, a license key will be provided for you post-checkout. It will also be sent via email and can be found in your Aggregator account. To activate this license key and unlock your premium features, install the premium Aggregator plugin alongside the free version, then go to Aggregator > Manage Plan to enter your license key.","wp-rss-aggregator")},readMore:"https://www.wprssaggregator.com/help/activating-your-license-key/"},{question:c.__("Can I use my premium license on a staging site?","wp-rss-aggregator"),answer(){return c.__("Yes, your premium license key can be activated on a staging site to use all premium features and it will not use up your activation limit. For example, if you own a single-site license, you can use the premium license on both the live production website and a staging development website.","wp-rss-aggregator")},readMore:"https://www.wprssaggregator.com/help/license-keys-staging-sites/"}];function UD(e){const t=se().isLowerThan(e.tier??W.Free),[r,n]=D.useState(!1),a=D.useId();return b("div",{className:"group/faq flex flex-col rounded-xs border border-light-blue bg-light-blue data-[open=true]:border-gray-600 data-[open=true]:bg-white","data-open":r,children:[b("button",{className:"flex appearance-none flex-row justify-between gap-4 p-4 text-md font-semibold leading-5 ring-primary focus-visible:ring-2",onClick:()=>n(i=>!i),"aria-controls":a,"aria-expanded":r,children:[b("span",{className:"flex flex-row items-center gap-2",children:[o("span",{className:"cursor-pointer select-none text-left flex-grow",children:e.question}),t&&o(ca,{})]}),r?o(FD,{}):o(cn,{})]}),b("div",{id:a,className:"hidden flex-col gap-4 p-4 pt-0 text-sm leading-4 text-gray-800 group-data-[open=true]/faq:block","aria-hidden":!r,children:[D.createElement(e.answer),e.readMore&&o(Ae,{href:e.readMore,target:"_blank",children:b("span",{className:"flex flex-row items-center gap-1 text-md pt-3",children:[o("span",{children:c.__("Read more","wp-rss-aggregator")}),o(nn,{size:16})]})})]})]})}const Ns=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.8981 4.53642L18.6234 4.51959L12.2309 10.912L13.2916 11.9727L19.6765 5.58777L19.6447 9.27997L21.1447 9.29288L21.1988 3.00793L14.8913 3.03643L14.8981 4.53642ZM7 4.25011C5.48122 4.25011 4.25 5.48133 4.25 7.00011V17.0001C4.25 18.5189 5.48122 19.7501 7 19.7501H17C18.5188 19.7501 19.75 18.5189 19.75 17.0001V13.3612H18.25V17.0001C18.25 17.6905 17.6904 18.2501 17 18.2501H7C6.30964 18.2501 5.75 17.6905 5.75 17.0001V7.00011C5.75 6.30975 6.30964 5.75011 7 5.75011H10.25V4.25011H7Z",fill:"currentColor"}));function KD(){const e=!se().isPremium();return b("div",{className:"flex flex-col gap-4 xl:flex-row xl:gap-6",children:[e&&o(X2,{title:c.__("WordPress support forum (Public)","wp-rss-aggregator"),children:b(ie,{children:[c.__("Explore the WordPress support forum for Aggregator where you can find answers or ask for help from both the WordPress community and our specialized support team.","wp-rss-aggregator"),o("p",{className:"mt-1 text-sm text-gray-800",children:o(We,{urls:{account:"https://login.wordpress.org/register"},linkProps:{variant:"secondary",target:"_blank"},children:c.__("You need to [create a WordPress account][account] to open a discussion.","wp-rss-aggregator")})})]}),button:o(Ae,{variant:"none",href:Q.urls.website.forum,target:"_blank",children:b(Ne,{children:[c.__("Visit the WordPress forum","wp-rss-aggregator"),o(Ns,{size:18})]})})}),o(X2,{minTier:W.Basic,title:c.__("Contact our team","wp-rss-aggregator"),children:b(ie,{children:[o("p",{children:c.__("If you don’t find the answers you’re looking for or need personalized help, you can get support from our dedicated support specialists.","wp-rss-aggregator")}),o("p",{children:c.__("Click the button below and fill in the form. We’ll get back to you within 24 hours, excluding weekends.","wp-rss-aggregator")})]}),button:o(Ae,{variant:"none",href:"https://www.wprssaggregator.com/contact/",target:"_blank",children:b(Ne,{children:[c.__("Contact support","wp-rss-aggregator"),o(Ns,{size:18})]})})})]})}function X2({title:e,children:t,minTier:r=W.Free,button:n}){const a=se().isLowerThan(r);return b("div",{className:"flex flex-1 flex-col rounded-xs border border-gray-400 bg-white p-8 text-black",children:[b("div",{className:"flex flex-row flex-wrap items-center gap-2 text-lg font-semibold leading-6",children:[o("span",{children:e}),a&&o(ca,{})]}),o("div",{className:"mt-5 flex flex-1 flex-col gap-4 text-md leading-4",children:t}),o("div",{className:"mt-10",children:n})]})}function zD(){const t=Ii().tab??J2[0].id,r=lr();function n(a){r("help",{tab:a})}return o(fs,{topbar:o(Br,{title:c.__("Help","wp-rss-aggregator")}),tabs:J2,currTab:t,onTabChange:n,showUpgrade:!0})}const J2=[{id:"faqs",title:c.__("FAQs","wp-rss-aggregator"),description:c.__("Get answers to popular questions. If your questions is not listed, the Documentation tab to the left could help.","wp-rss-aggregator"),content:BD,tier:W.Free,keywords:["faqs","frequently","asked","questions"]},{id:"docs",title:c.__("Documentation","wp-rss-aggregator"),description:c.__("Search through our collection of help articles. The links below open in a new tab.","wp-rss-aggregator"),action:function(){return o(Ne,{size:"sm",href:Q.urls.website.docs,target:"_blank",children:c.__("View Documentation","wp-rss-aggregator")})},content:LD,tier:W.Free,keywords:["documentation","articles","guides","tutorials","resources"]},{id:"support",title:c.__("Support","wp-rss-aggregator"),description:c.__("Our support team is on standby to assist you with any questions or guidance you may need. ","wp-rss-aggregator"),content:KD,tier:W.Free,keywords:["customer","support","help desk","contact","assistance"]}];function so(e){const t=Jr(),r=D.useMemo(()=>{switch(e.variant){case"danger":return"text-alert-red bg-light-orange";case"success":return"text-tertiary bg-light-green";default:return"text-gray-800 bg-gray-100"}},[e.variant]);return o("button",{ref:t.ref,className:fe("flex h-7 w-7 flex-col items-center justify-center rounded-full leading-4 ring-current focus-visible:ring-2 disabled:cursor-not-allowed disabled:opacity-50 disabled:saturate-0",r),onClick:e.onClick,disabled:e.disabled,...t.props(),children:e.icon})}const eb=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5549 5.99554L16.0135 12L10.5549 18.0045L9.44495 16.9955L13.9863 12L9.44495 7.00456L10.5549 5.99554Z",fill:"currentColor"})),$D=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 18.9998L11 16.9998L13 16.9998L13 18.9998L11 18.9998ZM11 12.9998L11 10.9998L13 10.9998L13 12.9998L11 12.9998ZM11 6.99976L11 4.99976L13 4.99976L13 6.99976L11 6.99976Z",fill:"currentColor"}));function tb(e){const t=se().isLowerThan(e.minTier),r=Math.ceil(e.total/e.perPage);return b("div",{className:"flex flex-col",children:[b("div",{className:"flex flex-row justify-between gap-4 border-b border-gray-200 px-6 pb-1",children:[b("div",{className:"flex flex-row items-center",children:[b("button",{className:"inline-flex flex-row items-center gap-4 rounded-xs p-3 py-2 ring-primary hover:bg-gray-100 focus-visible:ring-2",onClick:function(){e.onToggleOpen?.(!e.open)},children:[o(sg,{trimLeft:!0,className:fe("transition-transform duration-200",!e.open&&"scale-y-[-100%]")}),o("span",{className:"text-lg font-semibold leading-6 text-gray-900",children:e.title})]}),o("div",{className:"w-2"}),t&&o(Ae,{variant:"none",href:Q.urls.website.upgrade,target:"_blank",children:o(ca,{})}),!t&&e.loading&&o(_n,{}),!t&&!e.loading&&e.total>0&&o(Fa,{color:e.className?.total?e.className?.total:"primary",size:"sm",children:e.total})]}),b("div",{className:"flex flex-row items-center gap-1",children:[o("span",{className:"mr-2 text-md leading-4 text-gray-700",children:e.total>0&&!e.upsell&&c.sprintf(c.__("%d – %d of %d","wp-rss-aggregator"),(e.page-1)*e.perPage+1,Math.min(e.total,e.page*e.perPage),e.total)}),o(Kr,{icon:o(og,{}),disabled:e.page<=1||e.upsell,onClick:function(){e.onPrevPage()}}),o(Kr,{icon:o(eb,{}),disabled:e.page>=r||e.upsell,onClick:function(){e.onNextPage()}}),o(jD,{perPage:e.perPage,hideEmpty:e.hideEmpty,onPerPageChange:e.onPerPageChange,onHideEmpty:e.onHideEmpty,disabled:e.upsell})]})]}),e.open&&e.children]})}function jD(e){const t=[5,10,15,20].map(r=>({num:r,curr:r===e.perPage,label:c.sprintf(c._nx("%d item","%d items",r,"wp-rss-aggregator"),r)}));return b(Vn.Popout,{hasIcons:!0,control:(r,n,a,i)=>o(Kr,{...n,ref:r,onClick:a,icon:o($D,{}),active:i,disabled:e.disabled}),children:[o("p",{className:"p-2 text-md leading-4",children:c._x("Show up to","Hub page menu. E.g.: 'Show up to 5 posts'","wp-rss-aggregator")}),t.map(r=>o(Vn.Item,{icon:r.curr&&o(Wt,{}),onClick:function(){e.onPerPageChange(r.num)},children:r.label},r.label)),o(Vn.Divider,{}),o(Vn.Item,{icon:e.hideEmpty&&o(Wt,{}),onClick:function(){e.onHideEmpty(!e.hideEmpty)},children:c.__("Hide section when empty","wp-rss-aggregator")})]})}const qD=me(()=>b(ie,{children:[o("path",{d:"M7.5 17.5L12.5 12L7.5 6.50003",stroke:"currentColor",strokeWidth:"1.5"}),o("path",{d:"M11.5 17.5L16.5 12L11.5 6.50003",stroke:"currentColor",strokeWidth:"1.5"})]}));function WD(e){const[t,r]=D.useState(!1),n=al(300,()=>{e.onClose?.(),r(!1)});function a(){e.onClose&&e.open&&(n.start(),r(!0))}return Sr("Escape",a),!e.open&&!t?null:b("div",{className:fe("fixed inset-0 z-modals"),children:[o("div",{className:fe("fixed inset-0 bg-light-overlay",t?"animate-fade-out":"animate-fade-in"),onClick:a}),b("div",{className:fe("shadow-gray-medium-overlay fixed bottom-[32px] right-0 top-0 box-border w-1/2 max-w-[800px] overflow-y-auto bg-white px-14 py-6 shadow-lg",t?"animate-slide-out-right":"animate-slide-in-left"),children:[b("div",{className:"mb-12 flex flex-row items-center",children:[o("div",{className:fe("mr-2 border-gray-500 pr-2",e.toolbar!==void 0&&"border-r"),children:o(lt,{content:c.__("Close","wp-rss-aggregator"),children:o(Kr,{icon:o(qD,{}),onClick:a})})}),e.toolbar]}),e.children]})]})}function GD(e){return Sr(["ArrowLeft","h"],function(){e.hasPrev&&!e.skeleton&&e.onPrev?.()}),Sr(["ArrowRight","l"],function(){e.hasNext&&!e.skeleton&&e.onNext?.()}),o(WD,{open:e.open,onClose:e.onClose,toolbar:b("div",{className:"flex flex-1 flex-row items-center justify-between",children:[b("div",{className:"flex flex-row items-center gap-1",children:[o(lt,{content:c.__("Previous post","wp-rss-aggregator"),children:o(Kr,{icon:o(og,{}),onClick:e.onPrev,disabled:!e.hasPrev||e.skeleton})}),o(lt,{content:c.__("Next post","wp-rss-aggregator"),children:o(Kr,{icon:o(eb,{}),onClick:e.onNext,disabled:!e.hasNext||e.skeleton})})]}),b("div",{className:"flex flex-row items-center gap-2",children:[o(lt,{content:c.__("Reject","wp-rss-aggregator"),children:o(so,{variant:"danger",icon:o(Dn,{size:16}),onClick:e.onReject,disabled:e.skeleton})}),o(lt,{content:c.__("Accept","wp-rss-aggregator"),children:o(so,{variant:"success",icon:o(Wt,{size:16}),onClick:e.onApprove,disabled:e.skeleton})})]})]}),children:o(ZD,{title:e.title,image:e.image,excerpt:e.excerpt,content:e.content,skeleton:e.skeleton})})}function ZD(e){return o(De.Context,{enabled:e.skeleton,children:b("article",{className:"flex flex-col gap-8",children:[o(De.Lg,{children:o("header",{className:"text-3xl leading-10 text-black",children:e.title})}),o(De,{className:"aspect-[16/5] w-full",children:e.image&&o("figure",{children:o("img",{className:"rounded-lg",src:e.image,alt:e.title?.toString()??c.__("Featured image","wp-rss-aggregator")})})}),o(De.Lg,{children:o("p",{className:"text-md font-semibold leading-5 text-gray-900",children:e.excerpt})}),o(De.Lg,{children:o("div",{className:"leading- text-md text-gray-900",dangerouslySetInnerHTML:{__html:e.content||""}})}),e.skeleton&&b("div",{className:"flex flex-col gap-2",children:[o(De.Md,{className:"w-full"}),o(De.Md,{className:"w-full"}),o(De.Md,{className:"w-full"}),o(De.Md,{className:"w-3/4"})]}),o(De.Reveal,{children:o("main",{className:fe("text-md leading-4 text-black [&>p:not(:first-child)]:mt-6"),dangerouslySetInnerHTML:{__html:e.content??""}})})]})})}function YD(e){const t=Q.postTypes.find(r=>r.slug===e.slug);return t?t.labels[e.label]:e.fallback??e.slug}function zg(e){const t=Array.isArray(e?.meta?._wpra_author_name)?e.meta._wpra_author_name[0]?.trim():null;if(t)return t;const r=Array.isArray(e?.meta?.wprss_item_author)?e.meta.wprss_item_author[0]?.trim():null;return r||(typeof e?.author?.name=="string"?e.author.name.trim():null)||null}function rb(e){const t=e.posts.length,r=D.useMemo(()=>e.posts.flatMap(s=>s.sources),[e.posts]),{data:n}=q.sources.getNames.with(r).useQuery({}),a=D.useCallback(function(s,u){const l=new Set(e.selection);u?l.add(s):l.delete(s),e.onSelect(l)},[e.selection,e.onSelect]),i=D.useCallback(function(){e.selection.size===e.posts.length?e.onSelect(new Set):e.onSelect(new Set(e.posts))},[e.selection,e.onSelect,e.posts]);return b(be,{className:"mt-[-1px]",children:[b(be.Header,{className:"data-[bulk=true]:bg-light-blue","data-bulk":e.selection.size>0,children:[o(be.HeaderCell,{className:"w-16 indent-3",children:o(ye,{checked:t>0&&e.selection.size>0,indeterminate:t>0&&e.selection.size<t,onChange:i})}),o(be.HeaderCell,{className:"w-[60%]",children:e.selection.size>0&&e.bulkActions?o("div",{className:"flex h-full flex-row items-center gap-2",children:o(wn,{value:18,children:e.bulkActions(e.selection)})}):c._x("Title","Title column in Hub page post table","wp-rss-aggregator")}),o(be.HeaderCell,{className:"w-[10%]",children:e.selection.size<1&&c._x("Source","Source column in Hub page post table","wp-rss-aggregator")}),o(be.HeaderCell,{className:"w-[10%]",children:e.selection.size<1&&c._x("Author","Author column in Hub page post table","wp-rss-aggregator")}),o(be.HeaderCell,{})]}),b(be.Body,{children:[Array.from({length:e.count}).map((s,u)=>o(XD,{enabled:e.isLoading},`skeleton-${u}`)),e.posts.map((s,u)=>b(be.Row,{className:fe("group",e.selection.has(s)?"bg-light-blue":"bg-white",e.className?.row&&`!${e.className.row}`),children:[o(be.Cell,{className:"indent-3",children:o(ye,{className:"opacity-0 checked:opacity-100 focus:opacity-100 group-hover:opacity-100",checked:e.selection.has(s),onChange:l=>a(s,l)})}),b(be.Cell,{className:"max-w-0 overflow-hidden text-ellipsis whitespace-nowrap",children:[o(QD,{post:s,onClick:()=>e.onPostClick?.(s,u)}),o(Fa,{size:"sm",color:"light",className:"ml-2",children:o(YD,{slug:s.type,label:"singular"})})]}),o(be.Cell,{className:"text-ellipsis whitespace-nowrap",children:o(Ae,{href:_t.page("source-edit",{id:s.sources[0]}),children:n[s.sources[0]]??"..."})}),o(be.Cell,{className:"text-ellipsis whitespace-nowrap",children:zg(s)??"--"}),o(be.Cell,{children:o("div",{className:"flex flex-row items-center justify-end gap-2",children:e.buttons(s,u)})})]},`post-${s.guid}`))]})]})}function QD(e){return e.post.postId&&e.post.type==="wprss_feed_item"?o("span",{className:"font-semibold",children:e.post.title}):e.post.postId?o(Ae,{href:`${Q.urls.wp.admin}/post.php?action=edit&post=${e.post.postId}`,target:"_top",className:"font-semibold",children:e.post.title}):o(Ae,{className:"font-semibold",variant:"primary",onClick:function(t){t.preventDefault(),e.onClick()},children:e.post.title})}function XD(e){return e.enabled?b(be.Row,{children:[o(be.Cell,{}),o(be.Cell,{children:b("div",{className:"flex flex-row items-center gap-2",children:[o(De.Sm,{className:"w-1/2",enabled:!0}),o(De.Sm,{className:"w-12",enabled:!0})]})}),o(be.Cell,{children:o(De.Sm,{className:"w-2/3",enabled:!0})}),o(be.Cell,{children:o(De.Sm,{className:"w-2/3",enabled:!0})}),o(be.Cell,{})]}):null}const JD=me(()=>b(ie,{children:[o("path",{d:"M12 7.99996C14.7564 7.99996 17.2145 9.54905 18.4145 12C17.2145 14.4509 14.7636 16 12 16C9.23636 16 6.78545 14.4509 5.58545 12C6.78545 9.54905 9.24364 7.99996 12 7.99996ZM12 6.54541C8.36364 6.54541 5.25818 8.80723 4 12C5.25818 15.1927 8.36364 17.4545 12 17.4545C15.6364 17.4545 18.7418 15.1927 20 12C18.7418 8.80723 15.6364 6.54541 12 6.54541Z",fill:"currentColor"}),o("path",{d:"M12 7.99996C14.7564 7.99996 17.2145 9.54905 18.4145 12C17.2145 14.4509 14.7636 16 12 16C9.23636 16 6.78545 14.4509 5.58545 12C6.78545 9.54905 9.24364 7.99996 12 7.99996ZM12 6.54541C8.36364 6.54541 5.25818 8.80723 4 12C5.25818 15.1927 8.36364 17.4545 12 17.4545C15.6364 17.4545 18.7418 15.1927 20 12C18.7418 8.80723 15.6364 6.54541 12 6.54541Z",fill:"currentColor"}),o("path",{d:"M14.2987 12C14.2987 13.2696 13.2695 14.2989 11.9998 14.2989C10.7302 14.2989 9.70093 13.2696 9.70093 12C9.70093 10.7304 10.7302 9.70111 11.9998 9.70111C13.2695 9.70111 14.2987 10.7304 14.2987 12Z",fill:"currentColor"})]})),ek=Symbol(),tk=e=>typeof e?.then=="function";function rk(e){let t,r;const n={getItem:(a,i)=>{var s,u;const l=h=>{if(h=h||"",t!==h){try{r=JSON.parse(h)}catch{return i}t=h}return r},f=(u=(s=e())==null?void 0:s.getItem(a))!=null?u:null;return tk(f)?f.then(l):l(f)},setItem:(a,i)=>{var s;return(s=e())==null?void 0:s.setItem(a,JSON.stringify(i))},removeItem:a=>{var i;return(i=e())==null?void 0:i.removeItem(a)}};return typeof window<"u"&&typeof window.addEventListener=="function"&&window.Storage&&(n.subscribe=(a,i,s)=>{if(!(e()instanceof window.Storage))return()=>{};const u=l=>{if(l.storageArea===e()&&l.key===a){let f;try{f=JSON.parse(l.newValue||"")}catch{f=s}i(f)}};return window.addEventListener("storage",u),()=>{window.removeEventListener("storage",u)}}),n}const nk=rk(()=>typeof window<"u"?window.localStorage:void 0);function hi(e,t,r=nk,n){const a=n?.unstable_getOnInit,i=Oe(a?r.getItem(e,t):t);return i.onMount=u=>{a||u(r.getItem(e,t));let l;return r.subscribe&&(l=r.subscribe(e,u,t)),l},Oe(u=>u(i),(u,l,f)=>{const h=typeof f=="function"?f(u(i)):f;return h===ek?(l(i,t),r.removeItem(e)):h instanceof Promise?h.then(m=>(l(i,m),r.setItem(e,m))):(l(i,h),r.setItem(e,h))})}const ak=Oe(new Set),ik=Oe(new Set),ok=Oe("import_date"),sk=hi("wprss/hub/pendingSettings",{open:!0,perPage:10,hideEmpty:!1}),uk=hi("wprss/hub/importedSettings",{open:!0,perPage:10,hideEmpty:!1}),lk=hi("wprss/dashboard/curationUpsell",!0),dn={usePendingSettings(){return ce(sk)},useImportedSettings(){return ce(uk)},useSources(){return ce(ak)},useFolders(){return ce(ik)},useOrderBy(){return ce(ok)},useFilters(){const[e]=this.useSources(),[t]=this.useFolders(),[r]=this.useOrderBy();return{sources:Array.from(e).map(n=>parseInt(n)),folders:Array.from(t),orderBy:r}},useCurationUpsell(){const e=se(),[t,r]=ce(lk);return[t&&e.isLowerThan(W.Pro),r]},usePendingPosts(){const e=se(),t=this.useFilters(),[r]=this.usePendingSettings(),[n,a]=D.useState(1),i=se().isAtLeast(W.Basic);let s=t.orderBy;switch(s){case"import_date":s="imported";break;case"publish_date":s="published";break}const{data:[u,l],isLoading:f,isFetching:h}=ml({async queryFn(){const g=t.sources.length>0||t.folders.length>0;let p=t.sources;if(e.isAtLeast(W.Basic)&&t.folders.length>0){const w=await q.folders.getSources.call(t.folders);p=Array.from(new Set([...p,...w]))}return g&&p.length===0?[[],0]:await q.batch([q.irPosts.getList.with("",p,r.perPage,n,s,"desc"),q.irPosts.getCount.with(p)]).call()},initialData:[[],0],queryKey:["irPosts",t,n,r.perPage],enabled:i}),m=Math.max(1,Math.ceil(l/r.perPage));return D.useEffect(function(){h||a(g=>Math.min(m,g))},[n,m,h]),{page:n,setPage:a,numPages:m,posts:u,total:l,isLoading:f,isFetching:h}},useImportedPosts(){const e=se(),t=this.useFilters(),[r]=this.useImportedSettings(),[n,a]=D.useState(1);let i=t.orderBy;switch(i){case"import_date":i="import_date";break;case"publish_date":i="post_date";break}const{data:[s,u,l],isLoading:f,isFetching:h}=ml({async queryFn(){const g=t.sources.length>0||t.folders.length>0;let p=t.sources;if(e.isAtLeast(W.Basic)&&t.folders.length>0){const w=await q.folders.getSources.call(t.folders);p=Array.from(new Set([...p,...w]))}if(g&&p.length===0){const w=await q.sources.getCount.call();return[[],0,w]}return await q.batch([q.wpPosts.getList.with("",p,r.perPage,n,i,"desc"),q.wpPosts.getCount.with(p),q.sources.getCount]).call()},initialData:[[],0,0],queryKey:["wpPosts",t,n,r.perPage]}),m=Math.max(1,Math.ceil(u/r.perPage));return D.useEffect(function(){h||a(g=>Math.min(m,g))},[n,m,h]),{page:n,setPage:a,numPages:m,posts:s,total:u,isLoading:f,isFetching:h,numSources:l}}};function ck(e,t=0){const[r,n]=D.useState(t),a=D.useMemo(function(){return e[r]},[e,r]),i=D.useCallback(function(){n(function(l){return l>0?l-1:l})},[e,n]),s=D.useCallback(function(){n(function(l){return l<e.length-1?l+1:l})},[e,n]),u=D.useCallback(function(){if(e.length!==0){if(console.log("fixIdx",r,e.length),r<0){n(0);return}if(r>=e.length){n(e.length-1);return}}},[r,e.length,s,i]);return{item:a,idx:r,setIdx:n,prev:i,next:s,fixIdx:u}}function $g(e,t){const r=new Set(e);return r.delete(t),r}function jg(){return{id:null,name:c.__("New source","wp-rss-aggregator"),url:"",isActive:!0,schedule:{type:"hourly",hours:1,base:-1},lastUpdate:null,nextUpdate:null,lastError:null,settings:ub()}}const nb=Oe({source:jg(),folders:[]}),Jl=Oe({source:jg(),folders:[]}),qg=Oe(!1),Wg=Oe(function(e){return e(nb)},function(e,t,r){const n=e(Jl);t(qg,!Ba(n,r)),t(nb,r)}),Ts=mr(Wg,e=>e.prop("source")),dk=mr(Wg,e=>e.prop("folders")),fk=mr(Jl,e=>e.prop("source")),gk=mr(Jl,e=>e.prop("folders")),hk=mr(Ts,e=>e.prop("name")),pk=mr(Ts,e=>e.prop("url")),ab=mr(Ts,e=>e.prop("settings")),mk=mr(Ts,e=>e.prop("schedule")),vk=Oe(!1),bk=Oe("grid"),ib=Oe("details"),wk=Oe(""),ob=Oe(""),yk=hi("wprss/src/editor/fullTextPopup",!0),xk=hi("wprss/src/editor/advPreviewPopup",!0),sb={},ee={useSource:()=>ce(Ts),useFolders:()=>ce(dk),usePrevSource:()=>ce(fk),usePrevFolders:()=>ce(gk),useSourceName:()=>ce(hk),useSourceUrl:()=>ce(pk),useSourceSettings:()=>ce(ab),useSourceSchedule:()=>ce(mk),useIsValidUrl:()=>ce(vk),useIsDirty:()=>ce(qg),useSetting(e){return sb[e]??=mr(ab,t=>t.prop(e)),ce(sb[e])},useCurrTab:()=>ce(ib),useCurrGroup:()=>ce(ob),useHighlightedGroup:()=>ce(wk),useShowFullTextPopup:()=>ce(yk),useShowAdvPreviewPopup:()=>ce(xk),usePreviewMode:()=>ce(bk),useLoadSource(){const e=ee.useReset();return async t=>{e(await q.sources.getById.call(t))}},useSaveSource(e={}){const[t,r]=ee.useSource(),[n]=ee.useFolders(),[a,i]=ee.useIsDirty(),s=se().isAtLeast(W.Basic),u=lr(),l=q.batch([q.sources.save.with(t),s?q.folders.setForSource.with(q.result(0,"id"),n):q.noop]).useMutation({onSuccess([f]){r(f),i(!1),!e?.noNavigation&&f.id!==t.id&&setTimeout(function(){u("source-edit",{id:f.id})})}});return{source:t,isDirty:a,saveSource:l}},useReset(){const[,e]=ce(Wg),[,t]=ce(Jl),[,r]=ce(ib),[,n]=ce(ob),[,a]=ce(qg),i=se().isAtLeast(W.Basic);return async(s=jg())=>{s=structuredClone(s);const u={source:s,folders:[]};if(e(u),t(u),r("details"),n(""),a(!1),q.client.invalidateQueries(["sourcePreview"]),s.id&&i){const l=await q.folders.getList.call("",[s.id]),f={source:s,folders:l.map(h=>h.id)};e(f),t(f)}}},usePreview(e=null){const[t]=ee.useSource(),r=on(t,750),[n,a]=D.useState(t.url),i=t.url.trim()==="",[s]=ee.useIsValidUrl(),u=t.settings.importLimit,{data:[l,f],isInitialLoading:h,isFetching:m,isSuccess:g,error:p}=q.batch([q.progress.delete.with(e),q.importer.preview.with(t,u,1,e),q.progress.delete.with(e)]).useQuery(["",{posts:[],total:0},""],["sourcePreview",r.url,JSON.stringify(r.settings)],{enabled:!i&&s,retry:!1,cacheTime:18e4,refetchOnWindowFocus:!1,refetchOnMount:!1,keepPreviousData:!0,onSuccess(){a(t.url)}});return{posts:s?f.posts:[],total:f.total,error:p,isEmptyUrl:i,isValidUrl:s,isLoading:h||m&&t.url!==n,isFetching:m,isLoaded:g,isEmpty:f.posts.length===0}}};function ub(){const e=Q.license?.tier??W.Free;return{futureActivate:null,futurePause:null,importLimit:15,ageLimit:0,ageLimitUnit:"days",importOrder:"DESC",uniqueTitles:!1,reconcileStrategy:"preserve",curatePosts:!1,canonicalLink:!1,automations:[],linkToEnclosure:!1,postType:e>=W.Plus?"post":"wprss_feed_item",postStatus:"draft",postFormat:"standard",postSite:null,commentsOpen:!1,contentCleaners:[],trimContent:!1,contentNumWords:100,enableExcerpt:!1,whichExcerpt:"import",excerptNumWords:50,excerptSuffix:"",genMissingExcerpt:!0,excerptGenNumWords:50,excerptGenSuffix:"",enableAttribution:!0,attributionSingleOnly:!1,attributionTemplate:'<p>This <a href="{{original_post_url}}" target="_blank">post</a> was originally published on <a href="{{source_url}}" target="_blank">this site</a>.</p>',attributionPosition:"before",downloadImages:!0,downloadAllImgSizes:!1,assignFtImage:!0,whichFtImage:"auto",fallbackFtImageId:0,deDupeFtImage:!0,mustHaveFtImage:!1,minImageSize:{width:80,height:80},whichPostDate:"published_date",allowFutureDates:!0,whichAuthor:"feed",authorMethod:"default",mustHaveAuthor:!1,fallbackAuthorId:Q.user.id,taxonomies:{},enableAudioPlayer:!0,audioPlayerPos:"before",enablePowerPress:!1,enableFullText:!1,fullTextBatchMode:!1,enablePreContent:!1,enablePostContent:!1,preContentSingleOnly:!1,postContentSingleOnly:!1,preContentTemplate:"",postContentTemplate:"",customMapping:[],waiEnableTitle:!1,waiEnableContent:!1,waiRevisions:!1,waiSpintax:!1,waiUniqueness:"2",waiProtectedWords:!1,waiCustomSynonyms:!1,scEnableContent:!1,scEnableTitle:!1,scRevisions:!1}}function _k(e){return["no_image","auto","content_first","content_last","content_best","user","feed","itunes","media","enclosure","social"].includes(e)}function Ck(e){return["published_date","modified_date","import_date"].includes(e)}function Sk(e){return["feed","user"].includes(e)}function Ek(e){return["remove_elem","remove_attr","remove_keep_content","keep_elem"].includes(e)}function Ak(){return{mergedFeedUrl:"wprss",mergedFeedTitle:c.__("Latest imported posts","wp-rss-aggregator"),mergedFeedNumItems:10,hideEmptyCurationSection:!1,hideEmptyImportedSection:!1,showPostsInWpAdmin:!0,showPostsInBlog:!0,injectContentInFeeds:!1,protectEditedPosts:!1,automations:[],wordAiEmail:"",wordAiApiKey:"",scApiKey:"",scDevKey:"",sslCertPath:"",feedUserAgent:"",enableFeedCache:!0,disableStyles:!1}}const lb=Oe(Q.settings),ec=Oe(Q.settings),Gg={},st={use:()=>ce(ec),useIsDirty(){const[e]=ce(lb),[t]=ce(ec);return!Ba(e,t)},useSetting(e){return Gg[e]===void 0&&(Gg[e]=mr(ec,t=>t.prop(e))),ce(Gg[e])},useSave(e){const[t,r]=ce(ec),[,n]=ce(lb),a=xn();return q.settings.patch.with(t).useMutation({onSuccess(i){r(i),n(i),e&&a.add({id:"settings/saved",dismissible:!0,ttl:3e3,content:c.__("Settings saved","wp-rss-aggregator")})}})}};function Dk(){const e=se().isLowerThan(W.Basic),[t,r]=dn.usePendingSettings(),[,n]=st.useSetting("hideEmptyCurationSection"),{numSources:a}=dn.useImportedPosts(),{page:i,setPage:s,numPages:u,posts:l,total:f,isLoading:h,isFetching:m}=dn.usePendingPosts();return f===0&&t.hideEmpty?null:o("div",{children:o(tb,{minTier:W.Basic,title:c.__("Pending Approval","wp-rss-aggregator"),open:t.open,page:i,total:f,perPage:t.perPage,hideEmpty:t.hideEmpty,loading:m,upsell:e,onToggleOpen:function(g){r(p=>({...p,open:g}))},onPerPageChange:function(g){r(p=>({...p,perPage:g}))},onHideEmpty:function(g){r(p=>({...p,hideEmpty:g})),n(g)},onNextPage:function(){s(g=>Math.min(u,g+1))},onPrevPage:function(){s(g=>Math.max(1,g-1))},children:o(kk,{posts:l,perPage:t.perPage,isLoading:h,sourceLength:a})})})}function kk(e){const[t,r]=D.useState(new Set),n=ck(e.posts,-1),a=se().isLowerThan(W.Basic),i=q.curator.approveManyByIds.useMutation({mutationKey:["hub-approve"],onSuccess(){q.client.invalidateQueries(["hub-counts"]),q.client.invalidateQueries(["wpPosts"]),q.client.invalidateQueries(["irPosts"])}}),s=q.curator.rejectManyByIds.useMutation({mutationKey:["hub-reject"],onSuccess(){q.client.invalidateQueries(["hub-counts"]),q.client.invalidateQueries(["irPosts"]),q.client.invalidateQueries(["rejectList"])}});return a||!e.sourceLength?o(Tk,{}):!e.isLoading&&e.posts.length===0&&e.sourceLength>0?o(Nk,{}):b(ie,{children:[o(rb,{posts:e.posts,count:e.perPage,isLoading:e.isLoading,selection:t,onSelect:r,onPostClick:function(u,l){n.setIdx(l)},buttons:function(u,l){return b(ie,{children:[o(lt,{content:c.__("View","wp-rss-aggregator"),placement:"bottom",children:o(so,{variant:"normal",icon:o(JD,{size:16}),onClick:function(){n.setIdx(l)}})}),o(lt,{content:c.__("Reject","wp-rss-aggregator"),placement:"bottom",children:o(so,{variant:"danger",icon:o(Dn,{size:16}),onClick:function(){s.mutate([[u.id]]),r($g(t,u))}})}),o(lt,{content:c.__("Approve","wp-rss-aggregator"),placement:"bottom",children:o(so,{variant:"success",icon:o(Wt,{size:16}),onClick:function(){i.mutate([[u.id]]),r($g(t,u))}})})]})},bulkActions:function(u){return b(ie,{children:[b(St,{size:"sm",className:"no-underline",onClick:function(){const l=Array.from(u).map(f=>f.id);s.mutate([l]),r(new Set)},children:[o(Dn,{className:"text-accent"}),c._x("Reject","Hub bulk curation","wp-rss-aggregator")]}),b(St,{size:"sm",onClick:function(){const l=Array.from(u).map(f=>f.id);i.mutate([l]),r(new Set)},children:[o(Wt,{className:"text-accent"}),c._x("Approve","Hub bulk curation","wp-rss-aggregator")]})]})}}),o(GD,{open:n.idx>=0,title:n.item?.title,image:n.item?.ftImage?.url,content:n.item?.content,excerpt:n.item?.excerpt,hasPrev:n.idx>0,hasNext:n.idx<e.posts.length-1,onPrev:function(){n.prev()},onNext:function(){n.next()},onClose:function(){n.setIdx(-1)},onApprove:function(){n.item?.id&&i.mutate([[n.item.id]],{onSuccess(){n.idx===e.posts.length-1&&n.prev()}})},onReject:function(){n.item?.id&&s.mutate([[n.item.id]],{onSuccess(){n.idx===e.posts.length-1&&n.prev()}})}})]})}function Nk(){return b("div",{className:"flex items-center gap-5 p-9 text-gray-800",children:[o("img",{className:"h-[64px] w-[64px]",src:Q.urls.assets.imgs+"/bee-dots-circle.svg",alt:"Bee Icon"}),b("div",{className:"flex flex-col gap-2",children:[o("p",{className:"text-[14px] font-semibold leading-5",children:c.__("Mission Accomplished","wp-rss-aggregator")}),o("p",{className:"text-md leading-4",children:c.__("Congrats, you've curated all your items! Time to take a breather.","wp-rss-aggregator")})]})]})}function Tk(){const e=se().isLowerThan(W.Basic),t=ee.useReset(),r=lr();function n(){t(),r("source-edit")}return b("div",{className:`m-8 flex ${e?"flex-row items-center":"flex-col items-start"} gap-8 rounded-xs px-12 py-10 ${e?"bg-light-orange":"bg-light-blue"}`,children:[e&&o("div",{className:"flex-shrink-0",children:b("video",{className:"rounded-md",width:"300",height:"168",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[o("source",{src:Q.urls.assets.imgs+"/upgrade/curation.webm",type:"video/webm"}),"Your browser does not support WebM playback."]})}),b("div",{className:"max-w-[37rem] gap-3 flex flex-col",children:[o("p",{className:"text-xl leading-7",children:o(We,{children:e?c.__("*Curate feed items before they go live*","wp-rss-aggregator"):c.__("*Curate the content* to spotlight what truly matters","wp-rss-aggregator")})}),o("p",{className:`text-lg ${e?"text-gray-800":""}`,children:o(We,{children:e?c.__("Aggregator Pro lets you preview and approve items so only the right content makes it to your site. Stay fully in control of what gets published.","wp-rss-aggregator"):c.__("*Oversee your site’s content quality* by reviewing items before they’re published. Manually approve or reject content that truly matters to your visitors.","wp-rss-aggregator")})}),b("div",{className:"flex flex-row items-center justify-start gap-5",children:[e?o(Ae,{href:Q.isBlackFridayActive?"https://www.wprssaggregator.com/upgrade/?utm_source=plugin&utm_medium=upsell&utm_campaign=BF25&utm_content=hub":"https://www.wprssaggregator.com/upgrade/?utm_source=plugin&utm_medium=upsell&utm_content=hub",target:"_blank",variant:"none",children:o(Cr,{size:"md",className:"font-bold",children:Q.isBlackFridayActive?c.__("Upgrade — Up to 40% OFF","wp-rss-aggregator"):c.__("Upgrade Now","wp-rss-aggregator")})}):o(Ne,{onClick:n,children:o("span",{children:c.__("Add a new source","wp-rss-aggregator")})}),o(Ae,{href:`${e?"https://youtu.be/qBdJTmAaD3s?si=OOPnz8BbviH5bvz-":"https://www.wprssaggregator.com/help/curate-items-before-publishing/"}`,target:"_blank",className:`text-md ${e?"!text-gray-700 underline":""}`,children:e?c.__("Watch demo","wp-rss-aggregator"):c.__("Learn more about curation","wp-rss-aggregator")})]})]})]})}function Zg(e){const[t,r]=D.useState(!1),[n,a]=D.useState("");function i(f){f||u(""),r(f)}const s=cm(f=>e.onSearch?.(f),400);function u(f){a(f),s(f)}const l=Hk(e.label??c.__("%d selected","wp-rss-aggregator"),e.selected,e.placeholder);return b(He.Menu,{isOpen:t,setIsOpen:i,onSelect:e.onSelect,iUseTypeahead:!1,keepOpen:e.keepOpen,control:(f,h)=>o(He.SlimButton,{ref:f,label:l,...h}),children:[e.showSearch&&o("div",{className:"mb-1",children:o(bl,{placeholder:"Search",value:n,onChange:u,isLoading:e.isLoading})}),e.options.map(({value:f,label:h,disabled:m})=>o(He.Option,{value:f.toString(),label:h,selected:e.selected.has(f),disabled:m,children:b("div",{className:"flex flex-row items-center justify-between",children:[o("span",{children:h}),e.selected.has(f)&&o("div",{children:o(rs,{className:"text-alert-green"})})]})},f))]})}function Hk(e,t,r){return t.size===0?r:c.sprintf(e,t.size)}function Ik(){const e=se().isAtLeast(W.Basic);return b("div",{className:"flex flex-row items-center gap-4",children:[o(Ok,{}),e&&o(Mk,{}),o(Lk,{})]})}const tc="__all";function Ok(){const[e,t]=D.useState(""),{data:r}=q.sources.getList.with(e,10).useQuery([]),[n,a]=dn.useSources(),i=db(r,c.__("All sources","wp-rss-aggregator"),u=>({value:u.id?.toString()??"",label:u.name}),e.length>0),s=r.length>1||e.length>0;return o(Zg,{label:c._n("%d source","%d sources",n.size,"wp-rss-aggregator"),placeholder:c.__("All sources","wp-rss-aggregator"),selected:n,options:i,showSearch:s,onSearch:t,onSelect:function(u){if(u===tc)a(new Set);else{const l=parseInt(u);a(fb(n,l.toString()))}}})}function Mk(){const[e,t]=D.useState(""),[r,n]=dn.useFolders(),{data:[a,i],isFetching:s}=q.batch([q.folders.getList.with(e,[],10),q.folders.getCount]).useQuery([[],0],["folders","hub",e,10]),u=db(a,c.__("All folders","wp-rss-aggregator"),f=>({value:f.name,label:f.name}),e.length>0),l=i>10||e.length>0;return o(Zg,{label:c._n("%d folder","%d folders",r.size,"wp-rss-aggregator"),placeholder:c.__("All folders","wp-rss-aggregator"),selected:r,showSearch:l,options:u,isLoading:s,onSearch:t,onSelect:function(f){n(f===tc?new Set:fb(r,f))}})}const cb=[{value:"import_date",label:c.__("Import date","wp-rss-aggregator")},{value:"publish_date",label:c.__("Published date","wp-rss-aggregator")}];function Lk(){const[e,t]=dn.useOrderBy(),r=cb.find(n=>n.value===e)?.label??"";return o(Zg,{label:c.sprintf(c.__("Order by %s","wp-rss-aggregator"),r?.toLowerCase()),selected:new Set([e]),onSelect:t,options:cb,placeholder:null})}function db(e,t,r,n=!1){return D.useMemo(function(){const a=e?.map(r)??[];return n||a.unshift({value:tc,label:t}),a},[e])}function fb(e,t){return t===tc?new Set:(e.has(t)?e.delete(t):e.add(t),new Set(e))}function gb(e){const t=ee.useReset();return b(oa,{variant:e.variant||"primary",tabIndex:0,href:_t.page("source-edit"),onClick:()=>t(),children:[o(cn,{}),o("span",{children:c.__("Add a new source","wp-rss-aggregator")})]})}const hb="wpcliNoticeDismissed";function Vk({className:e}){const[t,r]=D.useState(!1),n=tn();D.useEffect(()=>{localStorage.getItem(hb)!=="true"&&r(!0)},[]);const a=Q.v4MigrationState==="cancelled",i=()=>{r(!1),localStorage.setItem(hb,"true")},s=()=>{n({title:c.__("Are you sure you want to dismiss this notice?","wp-rss-aggregator"),children:c.__("You may not see your content unless the v5 migration is fully completed.","wp-rss-aggregator"),yesBtnText:c.__("Dismiss anyway","wp-rss-aggregator"),noBtnText:c.__("Cancel","wp-rss-aggregator"),variant:"danger",onConfirm:()=>{i()}})};return!t||!a?null:o(Pk,{className:e,icon:o(fr,{width:16,height:16,className:"shrink-0 text-gray-900"}),onClose:s,children:it(c.__("<strong>Note: Migrate your content to v5 with WP-CLI</strong><br />To complete the migration, follow the steps in our guide: <a>Migration (WP-CLI Method)</a><br />Your v4 data is safe and still available for import. Once the command is run successfully, refresh this page to see your content.","wp-rss-aggregator"),{strong:o("strong",{}),br:o("br",{}),a:o("a",{href:"https://www.wprssaggregator.com/help/migration-wp-cli/",target:"_blank",rel:"noopener noreferrer",className:"underline text-primary cursor-pointer"})})})}function Pk(e){return b("div",{className:fe("flex gap-1 items-baseline rounded-xs bg-orange-notice p-2",e.className),children:[o("div",{className:"shrink-0 items-start",children:e.icon}),o("div",{className:"text-md flex-grow",children:e.children}),e.onClose&&o("button",{onClick:e.onClose,className:"text-gray-900 hover:text-gray-700","aria-label":c.__("Close notice","wp-rss-aggregator"),children:o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-4 h-4",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]})}var pb={exports:{}},Fk="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Bk=Fk,Rk=Bk;function mb(){}function vb(){}vb.resetWarningCache=mb;var Uk=function(){function e(n,a,i,s,u,l){if(l!==Rk){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:vb,resetWarningCache:mb};return r.PropTypes=r,r};pb.exports=Uk();var Nt=pb.exports;function bb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wb(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function yb(e,t,r){return t&&wb(e.prototype,t),r&&wb(e,r),e}function xb(e,t){if(typeof t!="function"&&t!==null)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&&Yg(e,t)}function rc(e){return rc=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},rc(e)}function Yg(e,t){return Yg=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},Yg(e,t)}function Kk(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function zk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $k(e,t){return t&&(typeof t=="object"||typeof t=="function")?t:zk(e)}function _b(e){var t=Kk();return function(){var n=rc(e),a;if(t){var i=rc(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return $k(this,a)}}function jk(e){return qk(e)||Wk(e)||Gk(e)||Zk()}function qk(e){if(Array.isArray(e))return Qg(e)}function Wk(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Gk(e,t){if(e){if(typeof e=="string")return Qg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qg(e,t)}}function Qg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Zk(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,r=String(e);if(t===0)return r;var n=r.match(/(.*?)([0-9]+)(.*)/),a=n?n[1]:"",i=n?n[3]:"",s=n?n[2]:r,u=s.length>=t?s:(jk(Array(t)).map(function(){return"0"}).join("")+s).slice(t*-1);return"".concat(a).concat(u).concat(i)}var Cb={daysInHours:!1,zeroPadTime:2};function Yk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.now,n=r===void 0?Date.now:r,a=t.precision,i=a===void 0?0:a,s=t.controlled,u=t.offsetTime,l=u===void 0?0:u,f=t.overtime,h;typeof e=="string"?h=new Date(e).getTime():e instanceof Date?h=e.getTime():h=e,s||(h+=l);var m=s?h:h-n(),g=Math.min(20,Math.max(0,i)),p=Math.round(parseFloat(((f?m:Math.max(0,m))/1e3).toFixed(g))*1e3),w=Math.abs(p)/1e3;return{total:p,days:Math.floor(w/(3600*24)),hours:Math.floor(w/3600%24),minutes:Math.floor(w/60%60),seconds:Math.floor(w%60),milliseconds:Number((w%1*1e3).toFixed()),completed:p<=0}}function Qk(e,t){var r=e.days,n=e.hours,a=e.minutes,i=e.seconds,s=Object.assign(Object.assign({},Cb),t),u=s.daysInHours,l=s.zeroPadTime,f=s.zeroPadDays,h=f===void 0?l:f,m=Math.min(2,l),g=u?Hs(n+r*24,l):Hs(n,m);return{days:u?"":Hs(r,h),hours:g,minutes:Hs(a,m),seconds:Hs(i,m)}}var Sb=function(e){xb(r,e);var t=_b(r);function r(){var n;return bb(this,r),n=t.apply(this,arguments),n.state={count:n.props.count||3},n.startCountdown=function(){n.interval=window.setInterval(function(){var a=n.state.count-1;a===0?(n.stopCountdown(),n.props.onComplete&&n.props.onComplete()):n.setState(function(i){return{count:i.count-1}})},1e3)},n.stopCountdown=function(){clearInterval(n.interval)},n.addTime=function(a){n.stopCountdown(),n.setState(function(i){return{count:i.count+a}},n.startCountdown)},n}return yb(r,[{key:"componentDidMount",value:function(){this.startCountdown()}},{key:"componentWillUnmount",value:function(){clearInterval(this.interval)}},{key:"render",value:function(){return this.props.children?D.cloneElement(this.props.children,{count:this.state.count}):null}}]),r}(D.Component);Sb.propTypes={count:Nt.number,children:Nt.element,onComplete:Nt.func};var Xg=function(e){xb(r,e);var t=_b(r);function r(n){var a;if(bb(this,r),a=t.call(this,n),a.mounted=!1,a.initialTimestamp=a.calcOffsetStartTimestamp(),a.offsetStartTimestamp=a.props.autoStart?0:a.initialTimestamp,a.offsetTime=0,a.legacyMode=!1,a.legacyCountdownRef=null,a.tick=function(){var s=a.calcTimeDelta(),u=s.completed&&!a.props.overtime?void 0:a.props.onTick;a.setTimeDeltaState(s,void 0,u)},a.setLegacyCountdownRef=function(s){a.legacyCountdownRef=s},a.start=function(){if(!a.isStarted()){var s=a.offsetStartTimestamp;a.offsetStartTimestamp=0,a.offsetTime+=s?a.calcOffsetStartTimestamp()-s:0;var u=a.calcTimeDelta();a.setTimeDeltaState(u,"STARTED",a.props.onStart),!a.props.controlled&&(!u.completed||a.props.overtime)&&(a.clearTimer(),a.interval=window.setInterval(a.tick,a.props.intervalDelay))}},a.pause=function(){a.isPaused()||(a.clearTimer(),a.offsetStartTimestamp=a.calcOffsetStartTimestamp(),a.setTimeDeltaState(a.state.timeDelta,"PAUSED",a.props.onPause))},a.stop=function(){a.isStopped()||(a.clearTimer(),a.offsetStartTimestamp=a.calcOffsetStartTimestamp(),a.offsetTime=a.offsetStartTimestamp-a.initialTimestamp,a.setTimeDeltaState(a.calcTimeDelta(),"STOPPED",a.props.onStop))},a.isStarted=function(){return a.isStatus("STARTED")},a.isPaused=function(){return a.isStatus("PAUSED")},a.isStopped=function(){return a.isStatus("STOPPED")},a.isCompleted=function(){return a.isStatus("COMPLETED")},n.date){var i=a.calcTimeDelta();a.state={timeDelta:i,status:i.completed?"COMPLETED":"STOPPED"}}else a.legacyMode=!0;return a}return yb(r,[{key:"componentDidMount",value:function(){this.legacyMode||(this.mounted=!0,this.props.onMount&&this.props.onMount(this.calcTimeDelta()),this.props.autoStart&&this.start())}},{key:"componentDidUpdate",value:function(a){this.legacyMode||this.props.date!==a.date&&(this.initialTimestamp=this.calcOffsetStartTimestamp(),this.offsetStartTimestamp=this.initialTimestamp,this.offsetTime=0,this.setTimeDeltaState(this.calcTimeDelta()))}},{key:"componentWillUnmount",value:function(){this.legacyMode||(this.mounted=!1,this.clearTimer())}},{key:"calcTimeDelta",value:function(){var a=this.props,i=a.date,s=a.now,u=a.precision,l=a.controlled,f=a.overtime;return Yk(i,{now:s,precision:u,controlled:l,offsetTime:this.offsetTime,overtime:f})}},{key:"calcOffsetStartTimestamp",value:function(){return Date.now()}},{key:"addTime",value:function(a){this.legacyCountdownRef.addTime(a)}},{key:"clearTimer",value:function(){window.clearInterval(this.interval)}},{key:"isStatus",value:function(a){return this.state.status===a}},{key:"setTimeDeltaState",value:function(a,i,s){var u=this;if(this.mounted){var l=a.completed&&!this.state.timeDelta.completed,f=a.completed&&i==="STARTED";l&&!this.props.overtime&&this.clearTimer();var h=function(){s&&s(u.state.timeDelta),u.props.onComplete&&(l||f)&&u.props.onComplete(a,f)};return this.setState(function(m){var g=i||m.status;return a.completed&&!u.props.overtime?g="COMPLETED":!i&&g==="COMPLETED"&&(g="STOPPED"),{timeDelta:a,status:g}},h)}}},{key:"getApi",value:function(){return this.api=this.api||{start:this.start,pause:this.pause,stop:this.stop,isStarted:this.isStarted,isPaused:this.isPaused,isStopped:this.isStopped,isCompleted:this.isCompleted}}},{key:"getRenderProps",value:function(){var a=this.props,i=a.daysInHours,s=a.zeroPadTime,u=a.zeroPadDays,l=this.state.timeDelta;return Object.assign(Object.assign({},l),{api:this.getApi(),props:this.props,formatted:Qk(l,{daysInHours:i,zeroPadTime:s,zeroPadDays:u})})}},{key:"render",value:function(){if(this.legacyMode){var a=this.props,i=a.count,s=a.children,u=a.onComplete;return D.createElement(Sb,{ref:this.setLegacyCountdownRef,count:i,onComplete:u},s)}var l=this.props,f=l.className,h=l.overtime,m=l.children,g=l.renderer,p=this.getRenderProps();if(g)return g(p);if(m&&this.state.timeDelta.completed&&!h)return D.cloneElement(m,{countdown:p});var w=p.formatted,y=w.days,_=w.hours,S=w.minutes,H=w.seconds;return D.createElement("span",{className:f},p.total<0?"-":"",y,y?":":"",_,":",S,":",H)}}]),r}(D.Component);Xg.defaultProps=Object.assign(Object.assign({},Cb),{controlled:!1,intervalDelay:1e3,precision:0,autoStart:!0}),Xg.propTypes={date:Nt.oneOfType([Nt.instanceOf(Date),Nt.string,Nt.number]),daysInHours:Nt.bool,zeroPadTime:Nt.number,zeroPadDays:Nt.number,controlled:Nt.bool,intervalDelay:Nt.number,precision:Nt.number,autoStart:Nt.bool,overtime:Nt.bool,className:Nt.string,children:Nt.element,renderer:Nt.func,now:Nt.func,onMount:Nt.func,onStart:Nt.func,onPause:Nt.func,onStop:Nt.func,onTick:Nt.func,onComplete:Nt.func};const Eb="blackFridayNoticeDismissed";function Xk({className:e}){const[t,r]=D.useState(!1),n=se();D.useEffect(()=>{localStorage.getItem(Eb)!=="true"&&!(n.current>W.Free)&&r(!0)},[n.current]);const a=()=>{r(!1),localStorage.setItem(Eb,"true")};if(!t||!Q.isBlackFridayActive)return null;const i=({days:s,hours:u,minutes:l,seconds:f,completed:h})=>h?null:b("div",{className:"flex flex-row gap-3 items-center justify-center text-center text-white",children:[b("div",{className:"flex flex-row gap-1 bg-[#3A3A3A] p-3 rounded-md",children:[o("div",{className:"text-3xl font-bold leading-none",children:s}),o("div",{className:"text-sm self-end",children:"Days"})]}),b("div",{className:"flex flex-row gap-1 bg-[#3A3A3A] p-3 rounded-md",children:[o("div",{className:"text-3xl font-bold leading-none",children:u}),o("div",{className:"text-sm self-end",children:"Hours"})]}),b("div",{className:"flex flex-row gap-1 bg-[#3A3A3A] p-3 rounded-md",children:[o("div",{className:"text-3xl font-bold leading-none w-12",children:l}),o("div",{className:"text-sm self-end",children:"Minutes"})]}),b("div",{className:"flex flex-row gap-1 bg-[#3A3A3A] p-3 rounded-md",children:[o("div",{className:"text-3xl font-bold leading-none w-12",children:f}),o("div",{className:"text-sm self-end",children:"Seconds"})]})]});return b("div",{className:`relative rounded-lg bg-gray-800 px-8 py-5 text-white shadow-lg ${e}`,children:[o("button",{onClick:a,className:"absolute top-1 right-2 text-gray-400 hover:text-white","aria-label":c.__("Close notice","wp-rss-aggregator"),children:o(ni,{size:16})}),b("div",{className:"flex flex-col items-center justify-between md:flex-row",children:[b("div",{className:"mb-4 text-center md:mb-0 md:text-left flex flex-col gap-3",children:[o("h3",{className:"text-lg font-bold",children:c.__("Black Friday Sale: Up to 40% Off Your First Year!","wp-rss-aggregator")}),o("p",{className:"text-md",children:c.__("Unlock deeper imports, smarter feed controls, and premium display options.","wp-rss-aggregator")})]}),o("div",{children:o(Xg,{date:new Date("2025-12-01T23:59:59-08:00"),renderer:i})}),o("div",{className:"flex-shrink-0",children:o(Cr,{href:"https://www.wprssaggregator.com/upgrade/?utm_source=plugin&utm_medium=upsell&utm_campaign=BF25&utm_content=BFbanner",target:"_blank",className:"text-md font-bold",children:c.__("Upgrade Now","wp-rss-aggregator")})})]})]})}function Jk(){const e=se().isAtLeast(W.Basic),{data:[t,r,n,a]}=q.batch([q.sources.getCount,e?q.irPosts.getCount:q.noop,q.wpPosts.getCount,q.rejectList.getCount]).useQuery([0,0,0,0],["hub-counts"]);return b("div",{className:"flex flex-col items-stretch rounded-xs bg-light-blue px-8 py-6",children:[b("div",{className:"flex flex-row justify-between gap-4",children:[b("div",{children:[o("h2",{className:"mb-1 text-xl leading-6 text-black",children:c.sprintf(c._x("Hey, %s!","Hub page header","wp-rss-aggregator"),Q.user.firstName||Q.user.displayName)}),o("p",{className:"mt-1 text-md leading-4 text-gray-700",children:c.__("Dive into your Hub. Here’s a snapshot of your feeds →","wp-rss-aggregator")})]}),b("div",{className:"flex flex-row gap-16",children:[o(nc,{count:t,title:o(Ae,{href:_t.page("sources"),variant:"secondary",children:c.__("Sources","wp-rss-aggregator")})}),o(nc,{title:c.__("Imported Items","wp-rss-aggregator"),count:n}),o(nc,{title:c.__("Pending Items","wp-rss-aggregator"),count:r,minTier:W.Basic}),o(nc,{count:a,title:o(Ae,{href:_t.page("reject-list"),variant:"secondary",children:c.__("Rejected Items","wp-rss-aggregator")})})]})]}),o(mt,{className:"my-5"}),b("div",{className:"flex flex-row items-center gap-2",children:[o(gb,{}),o(z2,{}),o(Y2,{})]}),b("div",{className:"space-y-7 my-7",children:[o(Xk,{}),o(gi,{}),o(Vk,{}),o($f,{})]})]})}function nc(e){const t=se().isLowerThan(e.minTier??W.Free);return b("div",{className:"flex flex-col gap-1",children:[b("div",{className:"flex flex-row items-center gap-2 text-sm leading-4 text-gray-700",children:[o("span",{children:e.title}),t&&o(Ae,{href:Q.urls.website.upgrade,target:"_blank",variant:"none",children:o(ca,{})})]}),o("div",{className:"text-xl leading-7 text-black",children:e.count??"--"})]})}function eN(){const[e,t]=dn.useImportedSettings(),[,r]=st.useSetting("hideEmptyImportedSection"),{page:n,setPage:a,numPages:i,posts:s,total:u,isLoading:l,isFetching:f,numSources:h}=dn.useImportedPosts();return u===0&&e.hideEmpty?null:o("div",{children:o(tb,{minTier:W.Free,title:c.__("Recently Imported","wp-rss-aggregator"),open:e.open,perPage:e.perPage,page:n,total:u,hideEmpty:e.hideEmpty,loading:f,className:{total:"light"},onToggleOpen:function(m){t(g=>({...g,open:m}))},onPerPageChange:function(m){t(g=>({...g,perPage:m}))},onHideEmpty:function(m){t(g=>({...g,hideEmpty:m})),r(m)},onNextPage:function(){a(m=>Math.min(i,m+1))},onPrevPage:function(){a(m=>Math.max(1,m-1))},children:o(tN,{posts:s,isLoading:l,perPage:e.perPage,sourceLength:h})})})}function tN(e){const[t,r]=D.useState(new Set),n=q.wpPosts.deleteManyByIds.useMutation({onSuccess(){q.client.invalidateQueries(["hub-counts"]),q.client.invalidateQueries(["wpPosts"])}}),a=tn();function i(s){return new Promise(function(u){a({title:c._n("Are you sure you want to delete this post?","Are you sure you want to delete these posts?",s.length,"wp-rss-aggregator"),variant:"danger",yesBtnText:c.__("Delete","wp-rss-aggregator"),noBtnText:c.__("Cancel","wp-rss-aggregator"),onConfirm:function(){n.mutate([s]),u()}})})}return e.sourceLength?!e.isLoading&&e.posts.length===0&&e.sourceLength>0?o(rN,{}):o(rb,{className:{row:"bg-light-blue"},posts:e.posts,count:e.perPage,isLoading:e.isLoading||n.isLoading,selection:t,onSelect:r,buttons:function(s){return o(lt,{content:c.__("Delete","wp-rss-aggregator"),placement:"bottom",children:o(so,{variant:"danger",icon:o(Dn,{size:16}),onClick:async function(){const u=$g(t,s);await i([s.postId]),r(u)}})})},bulkActions:function(s){return b(St,{size:"sm",onClick:async function(){const u=Array.from(s).map(l=>l.postId);await i(u),r(new Set)},children:[o(Dn,{className:"text-accent",size:18}),o("span",{children:c.__("Delete","wp-rss-aggregator")})]})}}):o(nN,{})}function rN(){return b("div",{className:"flex items-center gap-5 p-9 text-gray-800",children:[o("img",{className:"h-[64px] w-[64px]",src:Q.urls.assets.imgs+"/bee-dots-circle.svg",alt:"Bee Icon"}),b("div",{className:"flex flex-col gap-2",children:[o("p",{className:"text-[14px] font-semibold leading-5",children:c.__("No Imported Content","wp-rss-aggregator")}),o("p",{className:"text-md leading-4",children:c.__("Remember to import content from your sources to display it on your website.","wp-rss-aggregator")})]})]})}function nN(){const e=ee.useReset(),t=lr();function r(){e(),t("source-edit")}const n=se().isLowerThan(W.Basic);return b("div",{className:"m-8 flex flex-col items-start gap-5 rounded-xs bg-light-blue px-12 py-10",children:[o("p",{className:"text-xl leading-5",children:n?c.__("Start importing fresh content to your site","wp-rss-aggregator"):c.__("Kickstart your automated content import","wp-rss-aggregator")}),o("p",{className:"text-lg leading-4",children:o(We,{children:c.__("Add your first source to *automatically import fresh content* to your site in seconds.","wp-rss-aggregator")})}),b("div",{className:"flex flex-row items-center justify-start gap-4",children:[o(Ne,{onClick:r,children:o("span",{children:c.__("Add a new source","wp-rss-aggregator")})}),o(Ae,{href:"https://www.wprssaggregator.com/help/adding-a-source/",target:"_blank",className:"text-md ",children:c.__("Getting started guide","wp-rss-aggregator")})]})]})}function aN(){const e=se().isPremium(),[t,r]=ot.useFinished(),[n,a]=ot.useCancelled();function i(){r(!1),a(!1)}return!t&&!n?null:e?o(oN,{onClose:i}):o(iN,{finishedOb:t,onClose:i})}function iN(e){const[t,r]=D.useState(""),[n,a]=D.useState(!1),[i,s]=D.useState(!1),[u,l]=D.useState(null),f=q.wp.subscribeToFluentCRM.useMutation({onError:l,onSuccess(){a(!0)}});return o(ua,{open:!0,onOpenChange:e.onClose,showClose:!0,noPadding:!0,children:b("article",{className:"relative w-[400px] text-center",children:[o("img",{src:Q.urls.assets.imgs+"/hub/welcome-modal-top.png",className:"absolute left-0 right-0 top-0 z-0 w-[400px] data-[offset=true]:top-[-65px]","data-offset":!e.finishedOb}),b("div",{className:"relative z-10 box-border flex h-fit w-full flex-col items-center gap-5 px-10 py-[60px]",children:[e.finishedOb&&b(ie,{children:[o("h1",{className:"text-2xl font-bold leading-8 text-[#E09915]",children:c.__("Congratulations!","wp-rss-aggregator")}),o("p",{className:"text-md leading-4 text-gray-900",children:c.__("Fresh content is now being imported to your site.","wp-rss-aggregator")})]}),o("img",{src:Q.urls.assets.imgs+"/hub/bee-mail.png",className:"w-[120px]"}),n&&b(ie,{children:[o("p",{className:"mx-10 text-lg font-semibold leading-6 text-black",children:c.__("Check your inbox","wp-rss-aggregator")}),b("div",{className:"text-center",children:[o("p",{className:"mb-1 text-md leading-4 text-gray-700",children:c.__("Don’t want to wait?","wp-rss-aggregator")}),o("p",{className:"text-md",children:o(Ae,{href:"https://www.wprssaggregator.com/wp-content/uploads/2025/07/eBook-Aggregating-and-Curating-Content-On-Your-Website.pdf",target:"_blank",children:c.__("Download your eBook now.","wp-rss-aggregator")})})]})]}),!n&&b(ie,{children:[o("p",{className:"mx-10 text-lg font-semibold leading-6 text-black",children:c.__("Unlock your exclusive bonus resource & special offer","wp-rss-aggregator")}),o("input",{type:"text",value:t,onChange:h=>{r(h.currentTarget.value),l(null)},placeholder:c.__("Email address","wp-rss-aggregator"),className:"w-full border-b border-b-gray-400 bg-white px-4 py-3 text-center text-gray-900 ring-primary focus:border-primary"}),b("label",{className:"flex items-center gap-2",children:[o(ye,{checked:i,onChange:s}),o("span",{className:"text-md leading-4 text-gray-700",children:c.__("Send me product updates & offers via email.","wp-rss-aggregator")})]}),o(Cr,{className:"mt-5",disabled:f.isLoading,onClick:()=>f.mutate([t,i]),children:c.__("Claim Now","wp-rss-aggregator")}),u&&o("div",{className:"rounded-xs bg-light-red px-3 py-2 text-left text-md text-alert-red",children:u.message})]})]})]})})}function oN(e){return o(ua,{open:!0,onOpenChange:e.onClose,showClose:!0,children:b("div",{className:"flex max-w-[250px] flex-col items-stretch gap-2",children:[o("div",{className:"text-center",children:o(xr,{className:"text-accent",size:64})}),b("div",{className:"text-center",children:[o("p",{className:"text-2xl font-bold leading-8 text-primary",children:c.__("Welcome to your Hub!","wp-rss-aggregator")}),o("p",{className:"mt-5 text-md leading-4 text-gray-900",children:c.__("This is where you will manage your sources and monitor your imported content.","wp-rss-aggregator")})]}),o("div",{className:"mt-4 px-4",children:o(Cr,{className:"mx-auto font-bold",onClick:e.onClose,children:c.__("Dive in!","wp-rss-aggregator")})})]})})}function sN(){return b("div",{className:"flex max-h-screen flex-col pb-[32px]",children:[o(aN,{}),o(Br,{title:c.__("Hub","wp-rss-aggregator")}),b("div",{className:"box-border flex w-full flex-1 flex-col items-stretch gap-6 overflow-auto",children:[o(Jk,{}),b("div",{className:"flex flex-col items-stretch gap-6 py-5",children:[o(Uf,{className:"mx-9 mb-3"}),b("div",{className:"flex flex-row items-center justify-between gap-2 px-8",children:[o("p",{className:"text-2xl leading-8",children:c._x("Your Content","Hub page","wp-rss-aggregator")}),o(Ik,{})]}),b("div",{className:"flex flex-col items-stretch gap-6 py-5",children:[o(Dk,{}),o(eN,{})]})]})]})]})}function ac(e){return b("div",{className:fe("group relative flex flex-row gap-8 rounded-xs bg-light-blue px-8 py-6 text-md text-black data-[compact=true]:gap-6 data-[color=green]:bg-tertiary-green data-[color=green]:text-black",e.className),"data-compact":e.compact,"data-color":e.color,children:[b("div",{className:"flex flex-col gap-7 group-data-[compact=true]:gap-2",children:[e.title&&b("div",{className:"flex flex-row flex-wrap items-center gap-2 text-lg font-semibold leading-5 group-data-[compact=true]:text-[14px]",children:[e.title,e.premium&&o(ca,{})]}),e.children]}),e.side&&o("div",{className:"flex flex-[200px] -mr-[2rem] -mb-[1.5rem] flex-shrink-0 flex-col justify-end group-data-[compact=true]:flex-[150px]",children:e.side}),e.closable&&o("button",{className:"absolute right-[6px] top-[6px] cursor-pointer appearance-none rounded-full p-1 text-gray-700 ring-primary focus-visible:ring-2 group-data-[color=green]:text-gray-200 group-data-[color=green]:ring-white",onClick:e.onClose,children:o(ni,{})})]})}ac.Footer=function(e){return b(ie,{children:[e.divider&&o(mt,{className:"my-2"}),o("div",{className:"flex flex-row items-center gap-4",children:e.children})]})};function uN(){return b(ac,{color:"grey",className:"max-w-[800px]",title:c.__("We’d love to hear your thoughts.","wp-rss-aggregator"),children:[o("p",{className:"max-w-[500px]",children:c.__("Please share your feedback to help us make Aggregator even better. Your thoughts are invaluable to us as we strive to enhance your experience.","wp-rss-aggregator")}),o("p",{children:c.__("Here are some of the ideas we’ve been working on:","wp-rss-aggregator")}),b("ul",{className:"list-inside pl-2 font-normal leading-4 text-gray-800",children:[b("li",{children:[o(Wt,{className:"text-alert-green mr-1"}),c.__("Further AI integration","wp-rss-aggregator")]}),b("li",{children:[o(Wt,{className:"text-alert-green mr-1"}),c.__("Community building","wp-rss-aggregator")]}),b("li",{children:[o(Wt,{className:"text-alert-green mr-1"}),c.__("Translations","wp-rss-aggregator")]})]}),o("p",{children:c.__("Let us know what you’d like to see us focus on.","wp-rss-aggregator")}),o("div",{children:o(Ae,{variant:"none",href:Q.urls.website.feature,target:"_blank",children:b(Ne,{className:"font-semibold",size:"sm",children:[c.__("Suggest an integration","wp-rss-aggregator"),o(nn,{})]})})})]})}function Ab(e){const[t]=st.use(),r=st.useIsDirty(),n=st.useSave(!1);return b("div",{className:"flex flex-row items-center gap-4",children:[o(Ne,{disabled:!r,onClick:function(){n.mutate([t],{onSuccess:e.onActivate})},children:c.__("Activate","wp-rss-aggregator")}),o(St,{disabled:!e.canDeactivate,onClick:function(){const a=e.clear(t);n.mutate([a],{onSuccess:e.onDeactivate})},children:c.__("Deactivate","wp-rss-aggregator")}),o(Ae,{href:e.url,className:"text-md",children:c.__("API issues?","wp-rss-aggregator")})]})}function lN(){const e=se().isLowerThan(W.Elite),[t,r]=st.useSetting("scApiKey"),[n,a]=st.useSetting("scDevKey"),i=(t?.trim()?.length??0)>0;return e?o(cN,{}):b(ie,{children:[o(tt,{value:t??"",onChange:r,placeholder:c.__("Enter your SpinnerChief API key","wp-rss-aggregator"),disabled:e}),o(tt,{value:n??"",onChange:a,placeholder:c.__("Enter your SpinnerChief Developer key","wp-rss-aggregator"),disabled:e}),o(Ab,{canDeactivate:i,clear:function(s){return{...s,scApiKey:""}},url:"https://www.wprssaggregator.com/help/spinnerchief-api-issues/"})]})}function cN(){return b(ac,{className:"max-w-[800px]",premium:!0,color:"green",title:c.__("Unlock a world of content with SpinnerChief","wp-rss-aggregator"),side:o("img",{src:Q.urls.assets.imgs+"/integrations/human-and-ai.png",className:"aspect-square"}),children:[o("p",{className:"max-w-[500px]",children:c.__("Embrace the power of AI to effortlessly rewrite and spin your content, making it unique and SEO-friendly. It's all about making the content work for you, without the extra hassle.","wp-rss-aggregator")}),b("ul",{className:"list-inside pl-2 font-normal leading-4 text-gray-800",children:[b("li",{children:[o(Wt,{className:"text-alert-green mr-1"}),c.__("Automatic content rewriting","wp-rss-aggregator")]}),b("li",{children:[o(Wt,{className:"text-alert-green mr-1"}),c.__("Save valuable time on content production","wp-rss-aggregator")]}),b("li",{children:[o(Wt,{className:"text-alert-green mr-1"}),c.__("Boost your SEO Support","wp-rss-aggregator")]})]}),b("div",{className:"flex flex-row items-center gap-4",children:[o(Ae,{variant:"none",href:Q.urls.website.upgrade,target:"_blank",children:b(Cr,{className:"font-semibold",size:"sm",children:[c.__("Upgrade to Elite","wp-rss-aggregator"),o(nn,{})]})}),o(Ae,{variant:"white",href:Q.urls.website.upgrade,target:"_blank",children:c.__("Learn more","wp-rss-aggregator")})]}),o("p",{className:"text-gray-700",children:o(We,{linkProps:{variant:"secondary",target:"_blank"},urls:{sc:"https://spinnerchief.com/api/"},children:c.__("Requires a [SpinnerChief][sc] subscription.","wp-rss-aggregator")})})]})}function dN(){return se().isLowerThan(W.Elite)?o(pN,{}):o(fN,{})}function fN(){const[e,t]=st.useSetting("wordAiEmail"),[r,n]=st.useSetting("wordAiApiKey"),a=(e?.trim()?.length??0)>0,i=(r?.trim()?.length??0)>0,s=a&&i,[u,l]=on([e,r],500),{data:f,isFetched:h,isFetching:m,refetch:g}=q.wordai.getAccountInfo.with(u,l).useQuery({status:"",turingLimit:0,turingUsage:0,allowOverages:!1},["wordai","getAccountInfo",u,l],{enabled:s,refetchOnWindowFocus:!1});return b("div",{className:"flex flex-col gap-4",children:[o(tt,{value:e??"",onChange:t,placeholder:c.__("Enter your email address","wp-rss-aggregator")}),o(tt,{value:r??"",onChange:n,placeholder:c.__("Enter your API key","wp-rss-aggregator")}),o(Ab,{canDeactivate:s,onActivate:()=>g(),onDeactivate:()=>g(),clear:function(p){return{...p,wordAiEmail:"",wordAiApiKey:""}},url:"https://www.wprssaggregator.com/help/wordai-api-issues/"}),o(gN,{info:f,skeleton:m}),!f.status&&h&&!m&&s&&o(hN,{})]})}function gN(e){if(!e.info.status&&!e.skeleton)return null;const t=e.info??{status:"inactive",turingUsage:0,turingLimit:0,allowOverages:!1};return o(De.Context,{enabled:e.skeleton,children:b("div",{className:"mt-4 flex flex-col items-start gap-2 rounded-xs bg-gray-light text-md text-gray-900",children:[o(De.Md,{className:"w-80",children:o("div",{children:o(We,{children:c.sprintf(c.__("*Account usage*: %s / %s words (%.2f%%)","wp-rss-aggregator"),t.turingUsage.toLocaleString(),t.turingLimit.toLocaleString(),100*(t.turingUsage/t.turingLimit))})})}),o(De.Md,{className:"w-36",children:o("div",{children:o(We,{children:c.sprintf(c._x("*Can exceed limit:* %s","%s = Yes/No","wp-rss-aggregator"),t.allowOverages?c.__("Yes","wp-rss-aggregator"):c.__("No","wp-rss-aggregator"))})})}),o(De.Md,{className:"w-44",children:o(Ae,{href:"https://wai.wordai.com/usages",target:"_blank",children:c._x("Account Usage Settings","Link to WordAi in Integrations page","wp-rss-aggregator")})})]})})}function hN(){return o("div",{children:o("div",{className:"mt-3 inline-block rounded-sm bg-light-red px-4 py-3 text-md",children:c.__("Invalid email or API key.","wp-rss-aggregator")})})}function pN(){return b(ac,{premium:!0,color:"green",className:"max-w-[800px]",title:c.__("Refine your content strategy with WordAi","wp-rss-aggregator"),side:o("img",{src:Q.urls.assets.imgs+"/integrations/human-and-ai.png",className:"aspect-square"}),children:[o("p",{className:"max-w-[500px]",children:c.__("By leveraging AI to rewrite your content, WordAi keeps the essence of your message while enhancing its uniqueness and SEO friendliness. It's about adding value where it matters most.","wp-rss-aggregator")}),b("ul",{className:"list-inside pl-2 font-normal leading-4 text-gray-800",children:[b("li",{children:[o(Wt,{className:"text-alert-green mr-1"}),c.__("Content uniqueness","wp-rss-aggregator")]}),b("li",{children:[o(Wt,{className:"text-alert-green mr-1"}),c.__("Increase engagement through refined content","wp-rss-aggregator")]}),b("li",{children:[o(Wt,{className:"text-alert-green mr-1"}),c.__("Boost your content's SEO","wp-rss-aggregator")]})]}),b("div",{className:"flex flex-row items-center gap-4",children:[o(Ae,{variant:"none",href:Q.urls.website.upgrade,target:"_blank",children:b(Cr,{className:"font-semibold",size:"sm",children:[c.__("Upgrade to Elite","wp-rss-aggregator"),o(nn,{})]})}),o(Ae,{variant:"white",href:Q.urls.website.upgrade,target:"_blank",children:c.__("Learn more","wp-rss-aggregator")})]}),o("p",{className:"text-gray-700",children:o(We,{linkProps:{variant:"secondary",target:"_blank"},urls:{wordai:"https://wordai.com/"},children:c.__("Requires a [WordAi][wordai] subscription.","wp-rss-aggregator")})})]})}function mN(){const t=Ii().tab??Db[0].id,r=lr(),n=D.useCallback(a=>r("integrations",{tab:a}),[r]);return o(fs,{topbar:o(Br,{title:c.__("Integrations","wp-rss-aggregator")}),tabs:Db,currTab:t,onTabChange:n})}const Db=[{id:"spinnerchief",title:c.__("SpinnerChief","wp-rss-aggregator"),description:c.__("Seamlessly integrate with SpinnerChief to automatically rewrite and spin imported content.","wp-rss-aggregator"),content:lN,tier:W.Elite,keywords:["spinnerchief","spinner","chief"]},{id:"wordai",title:c.__("WordAi","wp-rss-aggregator"),description:c.__("Seamlessly integrate with 3rd-party tools to automatically rewrite and spin imported content.","wp-rss-aggregator"),content:dN,tier:W.Elite,keywords:["wordai","word","ai"]},{id:"coming-soon",title:c.__("More coming soon","wp-rss-aggregator"),description:c.__("Stay tuned for future integrations that will have you buzzing with excitement!","wp-rss-aggregator"),content:uN,tier:W.Free,keywords:["coming","soon","more","future"]}],kb=Oe(!1),Nb=Oe(null),Tb=Oe(Hb());function ic(){const[,e]=ce(kb),[,t]=ce(Nb),[,r]=ce(Tb);return{new:function(){t(null),r(Hb()),e(!0)},edit:function(n){t(n),r(n),e(!0)}}}function vN(){const[e,t]=ce(kb),[r]=ce(Nb),[n,a]=ce(Tb),i=r===null,s=q.rejectList.add.useMutation({onSuccess(){q.client.invalidateQueries(["rejectList"]),t(!1)}}),u=q.rejectList.update.useMutation({onSuccess(){q.client.invalidateQueries(["rejectList"]),t(!1)}});async function l(){i?s.mutate([n]):u.mutate([r.guid,n])}return b(ua,{open:e,onOpenChange:t,title:i?c.__("Reject an item","wp-rss-aggregator"):c.__("Edit Rejected Item","wp-rss-aggregator"),className:"w-[600px]",outsideDismiss:!1,showClose:!0,children:[o("p",{className:"text-center text-md text-gray-800",children:c.__("This feed item will never be imported.","wp-rss-aggregator")}),o(mt,{}),o(ne,{label:c.__("URL to reject","wp-rss-aggregator"),children:o(tt,{placeholder:c.__("https://","wp-rss-aggregator"),value:n.guid,onChange:f=>a({...n,guid:f}),onKeyDown:function(f){f.key==="Enter"&&(f.preventDefault(),l())}})}),o(ne,{label:b("span",{children:[c.__("Note","wp-rss-aggregator"),o("span",{className:"font-normal italic text-gray-700",children:c._x(" - Optional","In the rejected item modal, next to the 'Note' label.","wp-rss-aggregator")})]}),children:o(Cl,{value:n.notes,onChange:f=>a({...n,notes:f}),placeholder:c.__("Add a quick note or paste the item’s title for quick reference.","wp-rss-aggregator")})}),b("div",{className:"flex flex-row items-center justify-end gap-2",children:[o(_r,{onClick:()=>t(!1),children:c.__("Cancel","wp-rss-aggregator")}),o(Ne,{onClick:l,disabled:n.guid.length===0,children:i?c.__("Reject","wp-rss-aggregator"):c.__("Update","wp-rss-aggregator")})]})]})}function Hb(){return{guid:"",notes:"",date:new Date().toISOString()}}function oc(e){"@babel/helpers - typeof";return oc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oc(e)}function fn(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function gt(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function yt(e){gt(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||oc(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function bN(e,t){gt(2,arguments);var r=yt(e),n=fn(t);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function Ib(e,t){gt(2,arguments);var r=yt(e),n=fn(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var a=r.getDate(),i=new Date(r.getTime());i.setMonth(r.getMonth()+n+1,0);var s=i.getDate();return a>=s?i:(r.setFullYear(i.getFullYear(),i.getMonth(),a),r)}function wN(e,t){gt(2,arguments);var r=yt(e).getTime(),n=fn(t);return new Date(r+n)}var yN={};function Is(){return yN}function Os(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function pi(e){gt(1,arguments);var t=yt(e);return t.setHours(0,0,0,0),t}var xN=864e5;function _N(e,t){gt(2,arguments);var r=pi(e),n=pi(t),a=r.getTime()-Os(r),i=n.getTime()-Os(n);return Math.round((a-i)/xN)}function CN(e,t){gt(2,arguments);var r=yt(e),n=yt(t),a=r.getTime()-n.getTime();return a<0?-1:a>0?1:a}function Ob(e,t){gt(2,arguments);var r=pi(e),n=pi(t);return r.getTime()===n.getTime()}function SN(e){return gt(1,arguments),e instanceof Date||oc(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function EN(e){if(gt(1,arguments),!SN(e)&&typeof e!="number")return!1;var t=yt(e);return!isNaN(Number(t))}function Mb(e,t){var r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}function AN(e,t){gt(2,arguments);var r=yt(e),n=yt(t),a=Mb(r,n),i=Math.abs(_N(r,n));r.setDate(r.getDate()-a*i);var s=+(Mb(r,n)===-a),u=a*(i-s);return u===0?0:u}function Jg(e){gt(1,arguments);var t=yt(e);return t.setHours(23,59,59,999),t}function DN(e){gt(1,arguments);var t=yt(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function kN(e,t){gt(2,arguments);var r=fn(t);return wN(e,-r)}var NN=864e5;function TN(e){gt(1,arguments);var t=yt(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),a=r-n;return Math.floor(a/NN)+1}function sc(e){gt(1,arguments);var t=1,r=yt(e),n=r.getUTCDay(),a=(n<t?7:0)+n-t;return r.setUTCDate(r.getUTCDate()-a),r.setUTCHours(0,0,0,0),r}function Lb(e){gt(1,arguments);var t=yt(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var a=sc(n),i=new Date(0);i.setUTCFullYear(r,0,4),i.setUTCHours(0,0,0,0);var s=sc(i);return t.getTime()>=a.getTime()?r+1:t.getTime()>=s.getTime()?r:r-1}function HN(e){gt(1,arguments);var t=Lb(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=sc(r);return n}var IN=6048e5;function ON(e){gt(1,arguments);var t=yt(e),r=sc(t).getTime()-HN(t).getTime();return Math.round(r/IN)+1}function uc(e,t){var r,n,a,i,s,u,l,f;gt(1,arguments);var h=Is(),m=fn((r=(n=(a=(i=t?.weekStartsOn)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&a!==void 0?a:h.weekStartsOn)!==null&&n!==void 0?n:(l=h.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=yt(e),p=g.getUTCDay(),w=(p<m?7:0)+p-m;return g.setUTCDate(g.getUTCDate()-w),g.setUTCHours(0,0,0,0),g}function Vb(e,t){var r,n,a,i,s,u,l,f;gt(1,arguments);var h=yt(e),m=h.getUTCFullYear(),g=Is(),p=fn((r=(n=(a=(i=t?.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&a!==void 0?a:g.firstWeekContainsDate)!==null&&n!==void 0?n:(l=g.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var w=new Date(0);w.setUTCFullYear(m+1,0,p),w.setUTCHours(0,0,0,0);var y=uc(w,t),_=new Date(0);_.setUTCFullYear(m,0,p),_.setUTCHours(0,0,0,0);var S=uc(_,t);return h.getTime()>=y.getTime()?m+1:h.getTime()>=S.getTime()?m:m-1}function MN(e,t){var r,n,a,i,s,u,l,f;gt(1,arguments);var h=Is(),m=fn((r=(n=(a=(i=t?.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&a!==void 0?a:h.firstWeekContainsDate)!==null&&n!==void 0?n:(l=h.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&r!==void 0?r:1),g=Vb(e,t),p=new Date(0);p.setUTCFullYear(g,0,m),p.setUTCHours(0,0,0,0);var w=uc(p,t);return w}var LN=6048e5;function VN(e,t){gt(1,arguments);var r=yt(e),n=uc(r,t).getTime()-MN(r,t).getTime();return Math.round(n/LN)+1}function Je(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}var PN={y:function(t,r){var n=t.getUTCFullYear(),a=n>0?n:1-n;return Je(r==="yy"?a%100:a,r.length)},M:function(t,r){var n=t.getUTCMonth();return r==="M"?String(n+1):Je(n+1,2)},d:function(t,r){return Je(t.getUTCDate(),r.length)},a:function(t,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(t,r){return Je(t.getUTCHours()%12||12,r.length)},H:function(t,r){return Je(t.getUTCHours(),r.length)},m:function(t,r){return Je(t.getUTCMinutes(),r.length)},s:function(t,r){return Je(t.getUTCSeconds(),r.length)},S:function(t,r){var n=r.length,a=t.getUTCMilliseconds(),i=Math.floor(a*Math.pow(10,n-3));return Je(i,r.length)}};const $a=PN;var uo={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},FN={G:function(t,r,n){var a=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})}},y:function(t,r,n){if(r==="yo"){var a=t.getUTCFullYear(),i=a>0?a:1-a;return n.ordinalNumber(i,{unit:"year"})}return $a.y(t,r)},Y:function(t,r,n,a){var i=Vb(t,a),s=i>0?i:1-i;if(r==="YY"){var u=s%100;return Je(u,2)}return r==="Yo"?n.ordinalNumber(s,{unit:"year"}):Je(s,r.length)},R:function(t,r){var n=Lb(t);return Je(n,r.length)},u:function(t,r){var n=t.getUTCFullYear();return Je(n,r.length)},Q:function(t,r,n){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(a);case"QQ":return Je(a,2);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})}},q:function(t,r,n){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(a);case"qq":return Je(a,2);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})}},M:function(t,r,n){var a=t.getUTCMonth();switch(r){case"M":case"MM":return $a.M(t,r);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})}},L:function(t,r,n){var a=t.getUTCMonth();switch(r){case"L":return String(a+1);case"LL":return Je(a+1,2);case"Lo":return n.ordinalNumber(a+1,{unit:"month"});case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})}},w:function(t,r,n,a){var i=VN(t,a);return r==="wo"?n.ordinalNumber(i,{unit:"week"}):Je(i,r.length)},I:function(t,r,n){var a=ON(t);return r==="Io"?n.ordinalNumber(a,{unit:"week"}):Je(a,r.length)},d:function(t,r,n){return r==="do"?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):$a.d(t,r)},D:function(t,r,n){var a=TN(t);return r==="Do"?n.ordinalNumber(a,{unit:"dayOfYear"}):Je(a,r.length)},E:function(t,r,n){var a=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"});case"EEEE":default:return n.day(a,{width:"wide",context:"formatting"})}},e:function(t,r,n,a){var i=t.getUTCDay(),s=(i-a.weekStartsOn+8)%7||7;switch(r){case"e":return String(s);case"ee":return Je(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,r,n,a){var i=t.getUTCDay(),s=(i-a.weekStartsOn+8)%7||7;switch(r){case"c":return String(s);case"cc":return Je(s,r.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,r,n){var a=t.getUTCDay(),i=a===0?7:a;switch(r){case"i":return String(i);case"ii":return Je(i,r.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(a,{width:"short",context:"formatting"});case"iiii":default:return n.day(a,{width:"wide",context:"formatting"})}},a:function(t,r,n){var a=t.getUTCHours(),i=a/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,r,n){var a=t.getUTCHours(),i;switch(a===12?i=uo.noon:a===0?i=uo.midnight:i=a/12>=1?"pm":"am",r){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,r,n){var a=t.getUTCHours(),i;switch(a>=17?i=uo.evening:a>=12?i=uo.afternoon:a>=4?i=uo.morning:i=uo.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,r,n){if(r==="ho"){var a=t.getUTCHours()%12;return a===0&&(a=12),n.ordinalNumber(a,{unit:"hour"})}return $a.h(t,r)},H:function(t,r,n){return r==="Ho"?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):$a.H(t,r)},K:function(t,r,n){var a=t.getUTCHours()%12;return r==="Ko"?n.ordinalNumber(a,{unit:"hour"}):Je(a,r.length)},k:function(t,r,n){var a=t.getUTCHours();return a===0&&(a=24),r==="ko"?n.ordinalNumber(a,{unit:"hour"}):Je(a,r.length)},m:function(t,r,n){return r==="mo"?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):$a.m(t,r)},s:function(t,r,n){return r==="so"?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):$a.s(t,r)},S:function(t,r){return $a.S(t,r)},X:function(t,r,n,a){var i=a._originalDate||t,s=i.getTimezoneOffset();if(s===0)return"Z";switch(r){case"X":return Fb(s);case"XXXX":case"XX":return mi(s);case"XXXXX":case"XXX":default:return mi(s,":")}},x:function(t,r,n,a){var i=a._originalDate||t,s=i.getTimezoneOffset();switch(r){case"x":return Fb(s);case"xxxx":case"xx":return mi(s);case"xxxxx":case"xxx":default:return mi(s,":")}},O:function(t,r,n,a){var i=a._originalDate||t,s=i.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+Pb(s,":");case"OOOO":default:return"GMT"+mi(s,":")}},z:function(t,r,n,a){var i=a._originalDate||t,s=i.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+Pb(s,":");case"zzzz":default:return"GMT"+mi(s,":")}},t:function(t,r,n,a){var i=a._originalDate||t,s=Math.floor(i.getTime()/1e3);return Je(s,r.length)},T:function(t,r,n,a){var i=a._originalDate||t,s=i.getTime();return Je(s,r.length)}};function Pb(e,t){var r=e>0?"-":"+",n=Math.abs(e),a=Math.floor(n/60),i=n%60;if(i===0)return r+String(a);var s=t||"";return r+String(a)+s+Je(i,2)}function Fb(e,t){if(e%60===0){var r=e>0?"-":"+";return r+Je(Math.abs(e)/60,2)}return mi(e,t)}function mi(e,t){var r=t||"",n=e>0?"-":"+",a=Math.abs(e),i=Je(Math.floor(a/60),2),s=Je(a%60,2);return n+i+r+s}const BN=FN;var Bb=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},Rb=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},RN=function(t,r){var n=t.match(/(P+)(p+)?/)||[],a=n[1],i=n[2];if(!i)return Bb(t,r);var s;switch(a){case"P":s=r.dateTime({width:"short"});break;case"PP":s=r.dateTime({width:"medium"});break;case"PPP":s=r.dateTime({width:"long"});break;case"PPPP":default:s=r.dateTime({width:"full"});break}return s.replace("{{date}}",Bb(a,r)).replace("{{time}}",Rb(i,r))},UN={p:Rb,P:RN};const KN=UN;var zN=["D","DD"],$N=["YY","YYYY"];function jN(e){return zN.indexOf(e)!==-1}function qN(e){return $N.indexOf(e)!==-1}function Ub(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var WN={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},GN=function(t,r,n){var a,i=WN[t];return typeof i=="string"?a=i:r===1?a=i.one:a=i.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a};const ZN=GN;function eh(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var YN={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},QN={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},XN={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},JN={date:eh({formats:YN,defaultWidth:"full"}),time:eh({formats:QN,defaultWidth:"full"}),dateTime:eh({formats:XN,defaultWidth:"full"})};const eT=JN;var tT={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},rT=function(t,r,n,a){return tT[t]};const nT=rT;function Ms(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",a;if(n==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,s=r!=null&&r.width?String(r.width):i;a=e.formattingValues[s]||e.formattingValues[i]}else{var u=e.defaultWidth,l=r!=null&&r.width?String(r.width):e.defaultWidth;a=e.values[l]||e.values[u]}var f=e.argumentCallback?e.argumentCallback(t):t;return a[f]}}var aT={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},iT={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},oT={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},sT={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},uT={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},lT={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},cT=function(t,r){var n=Number(t),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},dT={ordinalNumber:cT,era:Ms({values:aT,defaultWidth:"wide"}),quarter:Ms({values:iT,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ms({values:oT,defaultWidth:"wide"}),day:Ms({values:sT,defaultWidth:"wide"}),dayPeriod:Ms({values:uT,defaultWidth:"wide",formattingValues:lT,defaultFormattingWidth:"wide"})};const fT=dT;function Ls(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;var s=i[0],u=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(u)?hT(u,function(m){return m.test(s)}):gT(u,function(m){return m.test(s)}),f;f=e.valueCallback?e.valueCallback(l):l,f=r.valueCallback?r.valueCallback(f):f;var h=t.slice(s.length);return{value:f,rest:h}}}function gT(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function hT(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function pT(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var a=n[0],i=t.match(e.parsePattern);if(!i)return null;var s=e.valueCallback?e.valueCallback(i[0]):i[0];s=r.valueCallback?r.valueCallback(s):s;var u=t.slice(a.length);return{value:s,rest:u}}}var mT=/^(\d+)(th|st|nd|rd)?/i,vT=/\d+/i,bT={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},wT={any:[/^b/i,/^(a|c)/i]},yT={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},xT={any:[/1/i,/2/i,/3/i,/4/i]},_T={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},CT={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ST={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},ET={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},AT={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},DT={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},kT={ordinalNumber:pT({matchPattern:mT,parsePattern:vT,valueCallback:function(t){return parseInt(t,10)}}),era:Ls({matchPatterns:bT,defaultMatchWidth:"wide",parsePatterns:wT,defaultParseWidth:"any"}),quarter:Ls({matchPatterns:yT,defaultMatchWidth:"wide",parsePatterns:xT,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Ls({matchPatterns:_T,defaultMatchWidth:"wide",parsePatterns:CT,defaultParseWidth:"any"}),day:Ls({matchPatterns:ST,defaultMatchWidth:"wide",parsePatterns:ET,defaultParseWidth:"any"}),dayPeriod:Ls({matchPatterns:AT,defaultMatchWidth:"any",parsePatterns:DT,defaultParseWidth:"any"})},NT={code:"en-US",formatDistance:ZN,formatLong:eT,formatRelative:nT,localize:fT,match:kT,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Kb=NT;var TT=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,HT=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,IT=/^'([^]*?)'?$/,OT=/''/g,MT=/[a-zA-Z]/;function lo(e,t,r){var n,a,i,s,u,l,f,h,m,g,p,w,y,_,S,H,L,O;gt(2,arguments);var j=String(t),R=Is(),K=(n=(a=r?.locale)!==null&&a!==void 0?a:R.locale)!==null&&n!==void 0?n:Kb,M=fn((i=(s=(u=(l=r?.firstWeekContainsDate)!==null&&l!==void 0?l:r==null||(f=r.locale)===null||f===void 0||(h=f.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&u!==void 0?u:R.firstWeekContainsDate)!==null&&s!==void 0?s:(m=R.locale)===null||m===void 0||(g=m.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(M>=1&&M<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var F=fn((p=(w=(y=(_=r?.weekStartsOn)!==null&&_!==void 0?_:r==null||(S=r.locale)===null||S===void 0||(H=S.options)===null||H===void 0?void 0:H.weekStartsOn)!==null&&y!==void 0?y:R.weekStartsOn)!==null&&w!==void 0?w:(L=R.locale)===null||L===void 0||(O=L.options)===null||O===void 0?void 0:O.weekStartsOn)!==null&&p!==void 0?p:0);if(!(F>=0&&F<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!K.localize)throw new RangeError("locale must contain localize property");if(!K.formatLong)throw new RangeError("locale must contain formatLong property");var U=yt(e);if(!EN(U))throw new RangeError("Invalid time value");var k=Os(U),C=kN(U,k),A={firstWeekContainsDate:M,weekStartsOn:F,locale:K,_originalDate:U},I=j.match(HT).map(function(T){var V=T[0];if(V==="p"||V==="P"){var P=KN[V];return P(T,K.formatLong)}return T}).join("").match(TT).map(function(T){if(T==="''")return"'";var V=T[0];if(V==="'")return LT(T);var P=BN[V];if(P)return!(r!=null&&r.useAdditionalWeekYearTokens)&&qN(T)&&Ub(T,t,String(e)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&jN(T)&&Ub(T,t,String(e)),P(C,T,K.localize,A);if(V.match(MT))throw new RangeError("Format string contains an unescaped latin alphabet character `"+V+"`");return T}).join("");return I}function LT(e){var t=e.match(IT);return t?t[1].replace(OT,"'"):e}function zb(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function VT(e){return zb({},e)}var $b=1e3*60,lc=60*24,jb=lc*30,qb=lc*365;function PT(e,t,r){var n,a,i;gt(2,arguments);var s=Is(),u=(n=(a=r?.locale)!==null&&a!==void 0?a:s.locale)!==null&&n!==void 0?n:Kb;if(!u.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var l=CN(e,t);if(isNaN(l))throw new RangeError("Invalid time value");var f=zb(VT(r),{addSuffix:!!r?.addSuffix,comparison:l}),h,m;l>0?(h=yt(t),m=yt(e)):(h=yt(e),m=yt(t));var g=String((i=r?.roundingMethod)!==null&&i!==void 0?i:"round"),p;if(g==="floor")p=Math.floor;else if(g==="ceil")p=Math.ceil;else if(g==="round")p=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var w=m.getTime()-h.getTime(),y=w/$b,_=Os(m)-Os(h),S=(w-_)/$b,H=r?.unit,L;if(H?L=String(H):y<1?L="second":y<60?L="minute":y<lc?L="hour":S<jb?L="day":S<qb?L="month":L="year",L==="second"){var O=p(w/1e3);return u.formatDistance("xSeconds",O,f)}else if(L==="minute"){var j=p(y);return u.formatDistance("xMinutes",j,f)}else if(L==="hour"){var R=p(y/60);return u.formatDistance("xHours",R,f)}else if(L==="day"){var K=p(S/lc);return u.formatDistance("xDays",K,f)}else if(L==="month"){var M=p(S/jb);return M===12&&H!=="month"?u.formatDistance("xYears",1,f):u.formatDistance("xMonths",M,f)}else if(L==="year"){var F=p(S/qb);return u.formatDistance("xYears",F,f)}throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'")}function cc(e,t){return gt(1,arguments),PT(e,Date.now(),t)}function FT(e,t){var r,n;gt(1,arguments);var a=yt(e);if(isNaN(a.getTime()))throw new RangeError("Invalid time value");var i=String((r=t?.format)!==null&&r!==void 0?r:"extended"),s=String((n=t?.representation)!==null&&n!==void 0?n:"complete");if(i!=="extended"&&i!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(s!=="date"&&s!=="time"&&s!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var u="",l="",f=i==="extended"?"-":"",h=i==="extended"?":":"";if(s!=="time"){var m=Je(a.getDate(),2),g=Je(a.getMonth()+1,2),p=Je(a.getFullYear(),4);u="".concat(p).concat(f).concat(g).concat(f).concat(m)}if(s!=="date"){var w=a.getTimezoneOffset();if(w!==0){var y=Math.abs(w),_=Je(Math.floor(y/60),2),S=Je(y%60,2),H=w<0?"+":"-";l="".concat(H).concat(_,":").concat(S)}else l="Z";var L=Je(a.getHours(),2),O=Je(a.getMinutes(),2),j=Je(a.getSeconds(),2),R=u===""?"":"T",K=[L,O,j].join(h);u="".concat(u).concat(R).concat(K).concat(l)}return u}function BT(e){gt(1,arguments);var t=yt(e),r=t.getFullYear(),n=t.getMonth(),a=new Date(0);return a.setFullYear(r,n+1,0),a.setHours(0,0,0,0),a.getDate()}function RT(e,t){gt(2,arguments);var r=yt(e),n=fn(t),a=r.getFullYear(),i=r.getDate(),s=new Date(0);s.setFullYear(a,n,15),s.setHours(0,0,0,0);var u=BT(s);return r.setMonth(n,Math.min(i,u)),r}function UT(e,t){gt(2,arguments);var r=yt(e),n=fn(t);return r.setDate(n),r}function KT(e,t){gt(2,arguments);var r=yt(e),n=fn(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(n),r)}const zT=[{id:"name",label:c.__("URL","wp-rss-aggregator"),component:function({item:e}){const t=ic();return o(Ae,{onClick:()=>t.edit(e),children:e.guid})}},{id:"date",label:c.__("Date","wp-rss-aggregator"),className:"w-28",component:function({item:e}){return lo(new Date(e.date),"do MMM Y")}},{id:"notes",label:c.__("Notes","wp-rss-aggregator"),className:"w-[50%] whitespace-break-spaces",component:function({item:e}){return e.notes}}];function $T(e){const[t,r]=D.useState(new Set),n=ic(),a=tn(),i=q.rejectList.deleteManyByGuids.useMutation({onSuccess(){q.client.invalidateQueries(["rejectList"])}});function s(){if(t.size!==1)return;const[l]=t.entries().next().value,f=e.items.find(h=>h.guid===l);f&&n.edit({guid:f.guid,notes:f.notes,date:new Date().toISOString()})}function u(){a({title:c.__("Delete items","wp-rss-aggregator"),children:c.__("Are you sure you want to delete the selected items? This cannot be undone.","wp-rss-aggregator"),variant:"danger",yesBtnText:c.__("Delete","wp-rss-aggregator"),noBtnText:c.__("Cancel","wp-rss-aggregator"),onConfirm(){i.mutate([Array.from(t)]),r(new Set)}})}return o(Yl,{columns:zT,items:e.items,itemId:l=>l.guid,selection:t,onSelect:r,isLoading:e.isLoading,actions:[{id:"duplicate",render:()=>t.size===1&&b(St,{size:"sm",onClick:s,children:[o(Ql,{className:"text-accent"}),c.__("Duplicate","wp-rss-aggregator")]})},{id:"delete",render:()=>b(St,{onClick:u,children:[o(Dn,{className:"text-accent"}),c.__("Delete","wp-rss-aggregator")]})}]})}function jT(){const e=ic();return b(Rg,{graphic:o("img",{src:Q.urls.assets.imgs+"/bee-dots-circle.svg"}),heading:c.__("Exclude items from ever being imported to your site.","wp-rss-aggregator"),children:[o("p",{children:c.__("Any items from your sources with a URL that’s found in this list will be rejected.","wp-rss-aggregator")}),b(Ne,{onClick:()=>e.new(),children:[o(cn,{}),c.__("Reject a URL","wp-rss-aggregator")]})]})}const th=20;function qT(){const[e,t]=D.useState(1),r=ic(),[n,a]=D.useState(""),i=on(n,500),{data:[s,u],isLoading:l,error:f}=q.batch([q.rejectList.getList.with(i,th,e),q.rejectList.getCount]).useQuery([[],0],["rejectList",i,th,e]),h=!l&&s.length===0&&i==="";return o(Xl,{currPage:e,perPage:th,onChangePage:t,total:u,search:n,onChangeSearch:a,topbar:o(Br,{title:c.__("Rejected Items","wp-rss-aggregator")}),header:b(Ne,{size:"sm",onClick:()=>r.new(),children:[o(cn,{}),c.__("Reject a URL","wp-rss-aggregator")]}),before:f instanceof Error&&o("div",{className:"text-alert-red",children:f.message}),table:h?o(jT,{}):o($T,{items:s,isLoading:l}),footer:c.sprintf(c._n("%d rejected item","%d rejected items",s.length,"wp-rss-aggregator"),s.length)})}const Wb=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7197 4.46966L6.46967 9.71966L7.53033 10.7803L11.5 6.81065L11.5 18.5H5.5L5.5 15H4V18.5V20H5.5H11.5H13H18.5H20V18.5V15H18.5V18.5H13L13 6.70037L17.4943 10.8039L18.5057 9.69613L12.7557 4.44613L12.2264 3.96289L11.7197 4.46966Z",fill:"currentColor"}));function Gb(e){const{id:t,className:r,children:n,onChange:a,...i}=e,s=Ln(t);function u(l){const f=Array.from(l.target.files??[]);a?.(f)}return b("label",{className:fe("box-border flex h-[40px] cursor-pointer flex-row items-center justify-between rounded-xs border border-gray-600 bg-white py-3 pl-4 pr-2 text-gray-900","ring-primary focus-visible:border-primary focus-visible:ring-1","aria-disabled:border-gray-400 aria-disabled:bg-gray-100 aria-disabled:text-gray-600",r),role:"button",tabIndex:0,"aria-disabled":s.disabled,children:[o("input",{type:"file",className:"hidden",onChange:u,...i,...s}),o("span",{className:"text-md leading-4",children:n??c.__("Choose file","wp-rss-aggregator")}),o(Wb,{size:14,className:"ml-4"})]})}function dc(e){const[t]=st.use(),r=st.useIsDirty(),n=st.useSave(!0);function a(){n.mutate([t])}return o(Ne,{onClick:a,disabled:n.isLoading||!r,children:e.children??c.__("Save","wp-rss-aggregator")})}function Ze(e){return o("div",{className:"flex w-[600px] flex-col gap-6",children:e.children})}Ze.Row=function(e){const t=D.useId();return b("div",{className:"grid max-w-[640px] grid-cols-[230px_1fr] items-start gap-4",children:[b("div",{className:"flex flex-col gap-1.5",children:[o(ai,{htmlFor:t,children:e.label}),o("div",{className:"text-md leading-5 text-gray-900",children:e.note})]}),o(ll.Provider,{value:{id:t,disabled:e.disabled},children:e.children})]})},Ze.Heading=function(e){return o("h2",{className:"text-lg font-semibold leading-6 text-gray-900",children:e.children})},Ze.Divider=function(){return o(mt,{className:"my-4"})};async function ha(e,t){return(await Promise.all([t,new Promise(n=>setTimeout(n,e))]))[0]}function WT(){return b(ie,{children:[b(Ze,{children:[o(GT,{}),o(ZT,{}),o(YT,{}),o(QT,{}),o("div",{children:o(dc,{})})]}),o(mt,{className:"my-4"}),b(Ze,{children:[o(Ze.Heading,{children:c.__("Import/Export Settings","wp-rss-aggregator")}),o(JT,{}),o(eH,{})]}),o(mt,{className:"my-4"}),b(Ze,{children:[o(Ze.Heading,{children:c.__("Delete All Imported Items","wp-rss-aggregator")}),o(rH,{})]}),Q.hasV4Data&&b(Ze,{children:[o(mt,{className:"my-4"}),o(Ze.Heading,{children:c.__("Migration Recovery Options","wp-rss-aggregator")}),o(tH,{})]})]})}function GT(){const[e,t]=st.useSetting("sslCertPath");return o(Ze.Row,{label:c.__("SSL Certificate Path","wp-rss-aggregator"),note:o(Ae,{variant:"primary",href:"https://www.wprssaggregator.com/help/settings-advanced/#h-ssl-certificate-path",target:"_blank",children:c.__("Learn more","wp-rss-aggregator")}),children:o(tt,{className:"w-full",value:e,onChange:t,placeholder:c.__("Default","wp-rss-aggregator")})})}function ZT(){const[e,t]=st.useSetting("feedUserAgent");return o(Ze.Row,{label:c.__("Feed request useragent","wp-rss-aggregator"),note:o(Ae,{variant:"primary",href:"https://www.wprssaggregator.com/help/settings-advanced/#h-feed-request-user-agent",target:"_blank",children:c.__("Learn more","wp-rss-aggregator")}),children:o(Cl,{className:"w-full",value:e,onChange:t,placeholder:c.__("Default","wp-rss-aggregator")})})}function YT(){const[e,t]=st.useSetting("enableFeedCache");return o(Ze.Row,{label:c.__("Enable feed cache","wp-rss-aggregator"),note:o(Ae,{variant:"primary",href:"https://www.wprssaggregator.com/help/settings-advanced/#h-enable-feed-cache",target:"_blank",children:c.__("Learn more","wp-rss-aggregator")}),children:o(ye,{checked:e,onChange:t})})}function QT(){const[e,t]=st.useSetting("disableStyles");return o(Ze.Row,{label:c.__("Disable styles","wp-rss-aggregator"),note:c.__("If you would like to disable all styles used in this plugin, tick the checkbox.","wp-rss-aggregator"),children:o(ye,{checked:e,onChange:t})})}const XT={id:"settings/imported",content:c.__("Settings imported successfully!","wp-rss-aggregator"),dismissible:!0,ttl:5e3};function JT(){const[,e]=st.use(),[t,r]=D.useState(null),n=xn(),a=q.settings.import.useMutation();return o(Ze.Row,{label:c.__("Import","wp-rss-aggregator"),note:c.__("Upload an exported settings file to import your settings.","wp-rss-aggregator"),children:b("div",{className:"flex w-max flex-row gap-2",children:[o(Gb,{onChange:function(i){r(i[0])},children:t?.name}),b(St,{disabled:a.isLoading,onClick:async function(){t!==null&&a.mutate([await t.text()],{onSuccess(i){e(i),n.add(XT)}})},children:[o(Wb,{size:18}),c.__("Import settings","wp-rss-aggregator")]})]})})}function eH(){const[e]=st.use();function t(){uv("wpra-settings.json","application/json",JSON.stringify(e))}return o(Ze.Row,{label:c.__("Export","wp-rss-aggregator"),note:c.__("Download a file that contains all of your settings for WP RSS Aggregator.","wp-rss-aggregator"),children:o("div",{className:"w-max",children:b(St,{onClick:t,children:[o(Pm,{size:18}),c.__("Export settings","wp-rss-aggregator")]})})})}function tH(){if(!Q.hasV4Data)return null;const e=tn(),t=xn(),r=q.v4.rollback.useMutation({onSuccess(){window.top&&(window.top.location.href=_t.v4)}}),n=q.v4.reset.useMutation({onSuccess(){window.top&&(window.top.location.href=_t.v4Migration)}});function a(){e({variant:"danger",title:c.__("Are you sure?","wp-rss-aggregator"),children:o("div",{children:o("p",{className:"text-md",children:c.__("This will erase your current Aggregator v5 setup and restart the migration from scratch using the built-in wizard.","wp-rss-aggregator")})}),yesBtnText:c.__("Re-run migration","wp-rss-aggregator"),noBtnText:c.__("Cancel","wp-rss-aggregator"),onConfirm:async()=>{t.add({id:"settings/v5migration/pending",content:c.__("Resetting v5 to a fresh build.","wp-rss-aggregator")});try{await ha(1e3,n.mutateAsync()),t.add({id:"settings/v5migration/done",content:c.__("Done!","wp-rss-aggregator"),dismissible:!0,ttl:1e4})}catch(s){t.add({id:"settings/v5migration/error",content:s instanceof Error?s.message:c.__("Unknown error","wp-rss-aggregator"),dismissible:!0})}finally{t.dismiss("settings/v5migration/pending")}}})}function i(){e({variant:"danger",title:c.__("Are you sure?","wp-rss-aggregator"),children:o("div",{children:o("p",{className:"text-md",children:c.__("This will restore your previous Aggregator v4 setup. You can migrate to v5 again at any time.","wp-rss-aggregator")})}),yesBtnText:c.__("Roll back to v4","wp-rss-aggregator"),noBtnText:c.__("Cancel","wp-rss-aggregator"),onConfirm:async()=>{try{await ha(1e3,r.mutateAsync())}catch(s){t.add({id:"settings/rollback/error",content:s instanceof Error?s.message:c.__("Unknown error","wp-rss-aggregator"),dismissible:!0})}}})}return b("div",{className:"flex flex-col gap-8",children:[o("div",{className:"flex flex-col gap-5 text-md leading-4 text-gray-900",children:o(Ze,{children:o(Ze.Row,{label:c.__("Re-run migration"),note:it(c.__("Running the migration again will <strong>erase all current v5 data</strong> and restart the migration using the built-in migration wizard. Use this if something went wrong with the last migration.","wprss"),{strong:o("strong",{})}),children:o(il,{onClick:a,className:"w-fit",children:c.__("Re-run migration","wp-rss-aggregator")})})})}),o("div",{className:"flex flex-col text-md text-gray-900",children:o(Ze,{children:o(Ze.Row,{label:c.__("For WP-CLI Users"),note:it(c.__("If you're planning to run migration again using WP-CLI, we recommend erasing all v5 data via WP-CLI. <a>Learn more</a>.","wprss"),{a:o("a",{className:"underline text-primary",href:"https://www.wprssaggregator.com/help/migration-wp-cli/",target:"_blank"})})})})}),o("div",{className:"flex flex-col gap-5 text-md leading-4 text-gray-900",children:o(Ze,{children:o(Ze.Row,{label:c.__("Roll back to v4"),note:it(c.__("Your original v4 setup is still available. Rolling back will <strong>restore your previous v4 setup</strong>. You can migrate to v5 again at any time.","wprss"),{strong:o("strong",{})}),children:o(il,{onClick:i,className:"w-fit",children:c.__("Roll back to v4","wp-rss-aggregator")})})})})]})}function rH(){const e=se().isAtLeast(W.Pro),t=tn(),r=xn(),n=q.batch([q.wpPosts.deleteAll,e?q.irPosts.deleteAll:q.noop]).useMutation({onSuccess(){q.client.invalidateQueries(["wpPosts"]),q.client.invalidateQueries(["irPosts"])}});function a(){t({variant:"danger",title:c.__("Delete all imported items","wp-rss-aggregator"),children:b("div",{children:[o("p",{className:"text-lg leading-8",children:c.__("Are you sure you want to delete all imported and pending posts?","wp-rss-aggregator")}),o("p",{className:"text-lg font-bold leading-8",children:c.__("This action cannot be undone.","wp-rss-aggregator")})]}),yesBtnText:c.__("Yes, delete all posts","wp-rss-aggregator"),noBtnText:c.__("No, cancel","wp-rss-aggregator"),onConfirm:async()=>{r.add({id:"settings/deleteAll/pending",content:c.__("Deleting imported posts. Please wait.","wp-rss-aggregator")});try{await ha(1e3,n.mutateAsync()),r.add({id:"settings/deleteAll/done",content:c.__("Done!","wp-rss-aggregator"),dismissible:!0,ttl:3e3})}catch(i){r.add({id:"settings/deleteAll/error",content:i instanceof Error?i.message:c.__("Unknown error","wp-rss-aggregator"),dismissible:!0})}finally{r.dismiss("settings/deleteAll/pending")}}})}return o("div",{className:" flex flex-col gap-5 text-md leading-4 text-gray-900",children:o(Ze,{children:o(Ze.Row,{label:c.__("Delete all data instantly"),note:c.__("Click the button to the right to delete all imported items and posts immediately."),children:o(il,{onClick:a,children:c.__("Delete all imported posts","wp-rss-aggregator")})})})})}function nH(e,t){return e.endsWith(t)?e:e+t}function aH(){return b(ie,{children:[b(Ze,{children:[o(iH,{}),o(oH,{}),o(sH,{})]}),o("div",{children:o(dc,{})})]})}function iH(){const[e,t]=st.useSetting("mergedFeedUrl"),n=nH(Q.urls.wp.site,"/")+(e||Ak().mergedFeedUrl);return o(Ze.Row,{label:c.__("Custom RSS feed URL","wp-rss-aggregator"),note:it(c.__("Customize the last part of the URL. <contactSupportLink>Learn more</contactSupportLink>","wp-rss-aggregator"),{contactSupportLink:o("a",{href:"https://www.wprssaggregator.com/help",className:"underline text-primary cursor-pointer inline",target:"_blank"})}),children:b("div",{className:"flex flex-col items-start gap-2",children:[o(tt,{className:"w-full",value:e,onChange:t,placeholder:"wprss"}),b("a",{className:"text-gray-700 text-md",href:n,target:"wprss_merged_feed",children:[n,o(Ns,{size:18})]})]})})}function oH(){const[e,t]=st.useSetting("mergedFeedTitle");return o(Ze.Row,{label:c.__("Custom RSS feed title","wp-rss-aggregator"),children:o(tt,{className:"flex-1",value:e,onChange:t})})}function sH(){const[e,t]=st.useSetting("mergedFeedNumItems");return o(Ze.Row,{label:c.__("Custom RSS feed limit","wp-rss-aggregator"),children:o(It,{className:"w-full",value:e,onChange:Un(t,null,1),min:1,unit:c._x("items","custom feed settings, number of items field, unit text","wp-rss-aggregator")})})}function uH(e){const t=se().current,n=D.useMemo(()=>Q.plans.find(a=>a.tier===t),[t])?.name??"Unknown plan";return D.createElement("span",e,n)}function lH(){const e=se();return b(ie,{children:[b(Ze,{children:[o("h2",{className:"text-lg font-semibold leading-6 text-gray-900",children:c.__("Hub Settings","wp-rss-aggregator")}),o(cH,{})]}),o("div",{children:o(dc,{})}),e.isAtLeast(W.Basic)&&b(ie,{children:[o(mt,{}),b("div",{className:"lg-gap-4 flex flex-col justify-start gap-8 lg:flex-row lg:justify-between",children:[b(Ze,{children:[o("h2",{className:"text-lg font-semibold leading-6 text-gray-900",children:c.__("Feed to Post Settings","wp-rss-aggregator")}),o(dH,{}),o(fH,{}),o(hH,{}),o(gH,{})]}),o("div",{className:"flex max-w-[50%] justify-end overflow-hidden",children:o(pH,{})})]}),o("div",{children:o(dc,{})})]})]})}function cH(){const[e,t]=st.useSetting("hideEmptyCurationSection"),[r,n]=st.useSetting("hideEmptyImportedSection"),[,a]=dn.usePendingSettings(),[,i]=dn.useImportedSettings();return b(ie,{children:[o(Ze.Row,{label:c.__("Hide Pending Approval section when empty","wp-rss-aggregator"),children:o(ye,{checked:e??!1,onChange:s=>{t(s),a(u=>({...u,hideEmpty:s}))}})}),o(Ze.Row,{label:c.__("Hide Recently Imported section when empty","wp-rss-aggregator"),children:o(ye,{checked:r??!1,onChange:s=>{n(s),i(u=>({...u,hideEmpty:s}))}})})]})}function dH(){const[e,t]=st.useSetting("showPostsInWpAdmin");return o(Ze.Row,{label:c.__("Include imported posts in the default WordPress Posts list","wp-rss-aggregator"),children:o(ye,{checked:e??!1,onChange:t})})}function fH(){const[e,t]=st.useSetting("showPostsInBlog");return o(Ze.Row,{label:c.__("Add approved posts to the default WordPress Blog page","wp-rss-aggregator"),children:o(ye,{checked:e??!1,onChange:t})})}function gH(){const[e,t]=st.useSetting("injectContentInFeeds");return o(Ze.Row,{label:c.__("Add custom content to the site's RSS feeds","wp-rss-aggregator"),children:o(ye,{checked:e??!1,onChange:t})})}function hH(){const[e,t]=st.useSetting("protectEditedPosts");return o(Ze.Row,{label:c.__("Do not delete edited posts","wp-rss-aggregator"),children:o(ye,{checked:e??!1,onChange:t})})}function pH(){return se().isAtLeast(W.Pro)?b("div",{className:"flex flex-wrap gap-6 bg-light-blue p-8",children:[o("div",{className:"w-[150px] shrink-0",children:o("img",{src:Q.urls.assets.imgs+"/settings/full-text.png",className:"w-full"})}),b("div",{className:"flex w-full min-w-[40%] flex-1 flex-col gap-2",children:[o("p",{className:"text-lg font-bold leading-5",children:c.__("Full text service","wp-rss-aggregator")}),o("p",{className:"text-md leading-4",children:o(We,{children:c._x("You have access to our full text service. Effortlessly turn excerpt-only web feeds into full text RSS feeds by accessing the *Full Text Service sidebar* in the *Advanced tab* when creating or editing a source.","Text inside *...* is bold.","wp-rss-aggregator")})}),o("div",{}),o("p",{className:"text-md",children:o(Ae,{href:"https://www.wprssaggregator.com/help/an-introduction-to-full-text/",target:"_blank",children:c.__("Learn more","wp-rss-aggregator")})})]})]}):o(mH,{})}function mH(){return b("div",{className:"flex w-full flex-col gap-2 bg-light-blue p-8",children:[b("div",{className:"text-[14px] font-bold leading-5",children:[c.__("Full text service","wp-rss-aggregator"),o(ca,{className:"ml-2"})]}),o("p",{className:"text-md leading-4",children:c.__("Transform your WordPress site into a full-fledged content powerhouse. Effortlessly turn excerpt-only web feeds into full text RSS feeds.","wp-rss-aggregator")}),o(mt,{color:"light",className:"my-1.5"}),b("p",{className:"text-md leading-4",children:[c.__("Your current plan:","wp-rss-aggregator")," ",o(uH,{className:"font-bold"})]}),b("div",{className:"flex flex-row items-center gap-4",children:[o(Cr,{href:Q.urls.website.upgrade,target:"_blank",size:"sm",className:"font-bold",children:c.__("Upgrade to PRO","wp-rss-aggregator")}),o(Ae,{href:"https://www.wprssaggregator.com/help/an-introduction-to-full-text/",target:"_blank",className:"text-md",children:c.__("Learn more","wp-rss-aggregator")})]})]})}function vH(e){return b("div",{className:"flex flex-col gap-8",children:[o(Pg,{isAnd:!1,system:Q.automations.condSys,conditions:e.value.conditions,horizontal:e.horizontal,disabled:e.disabled,onChange:function(t){t=t.filter(r=>r.exprs.length>0),e.onChange?.({...e.value,conditions:t})}}),b("div",{className:"flex flex-col gap-4 bg-light p-5",children:[o("p",{className:"text-md font-semibold",children:c._x("Then","Source automations: before action selector","wp-rss-aggregator")}),o(bH,{value:e.value.actionId,onChange:function(t){e.onChange?.({...e.value,actionId:t})}})]})]})}function bH(e){const t=D.useMemo(function(){return Object.entries(Q.automations.actions).map(([r,n])=>({value:r,label:n}))},[Q.automations.actions]);return o(He.Simple,{options:t,value:e.value,disabled:e.disabled,onSelect:e.onChange})}function wH(e){const t=D.useRef(null),[r,n]=D.useState(null),a=r??e.value;return o(or,{defaultOpen:!0,bordered:e.bordered,disabled:e.disabled,impRef:t,padded:!0,label:b("span",{className:fe("inline-block max-w-full overflow-hidden text-ellipsis whitespace-nowrap",!a.enabled&&"text-gray-700"),children:[!a.enabled&&o(Wl,{size:20,className:"mr-1 align-top"}),o("span",{className:"align-baseline leading-4",children:_H(a,e.index)})]}),children:b("div",{className:"flex flex-col gap-6",children:[o(vH,{value:a,horizontal:e.horizontal,disabled:e.disabled,onChange:n}),o(yH,{isDirty:r===null||!Ba(a,e.value),value:a,onDelete:e.onDelete,onSave:function(){e.onSave?.(a),t.current?.setOpen(!1)},onToggle:function(i){n({...a,enabled:i})}})]})})}function yH(e){return o("div",{className:"mb-1 flex flex-col gap-4",children:b("div",{className:"flex flex-row flex-nowrap gap-2",children:[o(xH,{value:e.value.enabled,onChange:e.onToggle}),o("div",{className:"flex-1"}),o($i,{onClick:e.onDelete,className:"no-underline",children:c.__("Delete","wp-rss-aggregator")}),o(Ne,{onClick:e.onSave,disabled:!e.isDirty,children:c.__("Save","wp-rss-aggregator")})]})})}function xH(e){let t,r;return e.value?(t=c.__("Pause","wp-rss-aggregator"),r=o(Wl,{})):(t=c.__("Resume","wp-rss-aggregator"),r=o(M2,{})),b(_r,{onClick:()=>e.onChange?.(!e.value),children:[r,o("span",{children:t})]})}function _H(e,t){if(e.name.length>0)return e.name;const r=CH(e);return r.length>0?r:c.sprintf(c._x("Automation %d","Default automation name","wp-rss-aggregator"),t+1)}function CH(e){const t=[];for(const n of e.conditions)for(const a of n.exprs)for(const[,i]of Object.entries(a.args))if((typeof i=="string"||typeof i=="number")&&(t.push(i),t.length>2))break;let r=t.join(", ");return r.length>50&&(r=r.substring(0,50)+"..."),r}function Zb(e){const t=tn();return o(ie,{children:e.value.map((r,n)=>o(wH,{index:n,value:r,disabled:e.disabled,bordered:e.bordered,horizontal:e.horizontal,onSave:function(a){const i=Jt(e.value,n,1,a);e.onChange?.(i)},onDelete:function(){t({title:c.__("Delete automation?","wp-rss-aggregator"),children:c.__("Are you sure you want to delete this automation?","wp-rss-aggregator"),variant:"danger",yesBtnText:c.__("Delete","wp-rss-aggregator"),noBtnText:c.__("No","wp-rss-aggregator"),onConfirm(){e.onDelete?.(n)}})}},n))})}function SH(){return se().isLowerThan(W.Basic)?o("div",{className:"p-8",children:o(Qb,{})}):o(EH,{})}function EH(){const[e,t]=D.useState(!1),[r,n]=ee.useSetting("automations");function a(){t(!0)}return(r?.length??0)===0&&!e?o("div",{className:"p-8",children:o(Yb,{onAdd:a})}):b(ie,{children:[o(Pe.Section,{children:o("p",{className:"text-sm leading-4 text-gray-800",children:c.__("Apply automated filtering rules to focus on curating the most valuable and relevant content.","wp-rss-aggregator")})}),o(Zb,{value:e?r.concat([P2()]):r,onChange:function(s){t(!1),n(s)},onDelete:function(s){e?t(!1):n(Jt(r,s,1))},bordered:!0}),o(Pe.Section,{children:o(Ne,{size:"md",onClick:a,disabled:e,children:c.__("Add New Automation","wp-rss-aggregator")})})]})}function Yb(e){return o(AH,{row:e.row,graphic:o("img",{src:Q.urls.assets.imgs+"/bee-dots-circle.svg"}),title:c.__("Set up automated filtering","wp-rss-aggregator"),desc:c.__("Automations streamline your workflow by applying automated filtering rules to focus on curating the most valuable and relevant content for your visitors.","wp-rss-aggregator"),button:b(Ne,{onClick:e.onAdd,children:[o(cn,{}),c.__("Add new automation","wp-rss-aggregator")]})})}function Qb(){const e=Q.isBlackFridayActive?c.__("Upgrade — Up to 40% OFF","wp-rss-aggregator"):c.__("Upgrade Now","wp-rss-aggregator"),t=Q.isBlackFridayActive?"https://www.wprssaggregator.com/upgrade/?utm_source=plugin&utm_medium=upsell&utm_campaign=BF25&utm_content=automations-tab":"https://www.wprssaggregator.com/upgrade/?utm_source=plugin&utm_medium=sources&utm_content=automations-tab";return o(Fg,{title:c.__("Cut the clutter from your feeds","wp-rss-aggregator"),video:Q.urls.assets.imgs+"/upgrade/automations.webm",children:c.__("Block unwanted posts or import only those that match your keywords, phrases, or tags.","wp-rss-aggregator"),upgradeBTNURL:t,upgradeBTNText:e,demoUrl:"https://youtu.be/q-zEXoubXGs?si=WziWgYQniu1zeIEa"})}function AH(e){return b("div",{className:fe("flex",e.row?"flex-row items-start justify-center gap-8":"mx-auto mb-5 w-52 flex-col items-center gap-5"),children:[o("div",{className:"flex-shrink-0",children:e.graphic}),b("div",{children:[b("div",{className:"mb-2 flex flex-col gap-4",children:[o("p",{className:fe("mb-2 text-lg font-bold leading-6",!e.row&&"text-center"),children:e.title}),o("p",{className:"text-md leading-4",children:e.desc}),o("p",{className:"leading-2 text-md",children:c.__("With Automations you can:","wp-rss-aggregator")})]}),o("div",{className:"mb-8 flex w-52 flex-col gap-2",children:[c.__("Import content based on specific words or phrases","wp-rss-aggregator"),c.__("Filter out content containing unwanted keywords","wp-rss-aggregator"),c.__("Automatically filter and feature trending topics","wp-rss-aggregator")].map(t=>b("p",{className:"flex items-center text-md leading-4",children:[o(Wt,{className:"mr-1 shrink-0 align-middle text-alert-green",trimLeft:!0}),o("span",{children:t})]},t))}),o("div",{className:"flex justify-center data-[row=true]:justify-start","data-row":e.row,children:e.button})]})]})}function DH(){const e=se(),[t,r]=D.useState(!1),[n,a]=st.useSetting("automations"),i=st.useSave(!0),[s]=st.use();function u(f){i.mutate([{...s,automations:f}])}let l=n??[];return t&&(l=l.concat([P2()])),e.isLowerThan(W.Basic)?o(Ze,{children:o(Qb,{})}):l.length===0?o(Ze,{children:o(Yb,{row:!0,onAdd:()=>r(!0)})}):b(Ze,{children:[o("div",{children:o(Zb,{value:l,onChange:function(f){a(f),r(!1),u(f)},onSave:function(){i.mutate()},onDelete:function(f){if(t)r(!1);else{const h=Jt(n??[],f,1);a(h),u(h)}},bordered:!0})}),o("div",{children:o(Ne,{onClick:()=>r(!0),disabled:t,children:c.__("Add New Automation","wp-rss-aggregator")})})]})}function kH(){const t=Ii().tab??Xb[0].id,r=lr(),n=st.useSave(!0);Sr({ctrl:!0,key:"s"},()=>n.mutate(),!0,!0);const a=D.useCallback(i=>r("settings",{tab:i}),[r]);return o(fs,{topbar:o(Br,{title:c.__("Settings","wp-rss-aggregator")}),tabs:Xb,currTab:t,onTabChange:a,showUpgrade:!0})}const Xb=[{id:"general",title:c.__("General","wp-rss-aggregator"),description:c.__("Define default settings to create a foundation for your site with the flexibility to customize some options per source.","wp-rss-aggregator"),content:lH,tier:W.Free,keywords:[]},{id:"mergedFeed",title:c.__("Custom Feed","wp-rss-aggregator"),description:c.__("WP RSS Aggregator creates a custom RSS feed on your site that includes all of your imported items. Use the below options to set it up.","wp-rss-aggregator"),content:aH,tier:W.Free,keywords:["custom feed","rss feed","URL","title","number of items"]},{id:"automations",title:c.__("Global automations","wp-rss-aggregator"),description:c.__("Apply automated filtering rules to focus on curating the most valuable and relevant content.","wp-rss-aggregator"),content:DH,tier:W.Basic,keywords:["automations","global","filter","keyword","tags"]},{id:"advanced",title:c.__("Advanced","wp-rss-aggregator"),description:c.__("Only change these options if you know what you are doing!","wp-rss-aggregator"),content:WT,tier:W.Free,keywords:["advanced","expert","developer","ssl certificate path","feed request useragent","enable feed cache"]}],rh=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2894 4.8356C10.3698 4.35341 10.787 4 11.2758 4H12.5815C13.0704 4 13.4876 4.35341 13.5679 4.8356L13.8123 6.30162C14.5997 6.56176 15.3149 6.98055 15.9201 7.52014L17.3131 6.99827C17.7709 6.82677 18.2856 7.01137 18.53 7.43471L19.1828 8.56552C19.4273 8.98887 19.3298 9.52687 18.9524 9.83756L17.805 10.7821C17.8861 11.1754 17.9287 11.5827 17.9287 12C17.9287 12.4171 17.8861 12.8243 17.8051 13.2174L18.9533 14.1627C19.3307 14.4734 19.4282 15.0114 19.1838 15.4347L18.5309 16.5655C18.2865 16.9889 17.7718 17.1735 17.3141 17.002L15.9202 16.4798C15.315 17.0194 14.5997 17.4382 13.8123 17.6984L13.5679 19.1644C13.4876 19.6466 13.0704 20 12.5815 20H11.2758C10.787 20 10.3698 19.6466 10.2894 19.1644L10.0451 17.6984C9.25762 17.4382 8.54235 17.0194 7.93714 16.4798L6.54329 17.002C6.08552 17.1735 5.57086 16.9889 5.32644 16.5655L4.67357 15.4347C4.42915 15.0114 4.52662 14.4734 4.90402 14.1627L6.05226 13.2174C5.97124 12.8243 5.92867 12.4171 5.92867 12C5.92867 11.5827 5.97127 11.1754 6.05235 10.7821L4.90496 9.83757C4.52755 9.52688 4.43008 8.98888 4.6745 8.56553L5.32738 7.43472C5.5718 7.01137 6.08646 6.82678 6.54423 6.99828L7.93723 7.52015C8.54242 6.98055 9.25765 6.56176 10.0451 6.30162L10.2894 4.8356ZM14.9287 12C14.9287 13.6569 13.5855 15 11.9287 15C10.2718 15 8.92867 13.6569 8.92867 12C8.92867 10.3431 10.2718 9 11.9287 9C13.5855 9 14.9287 10.3431 14.9287 12Z",fill:"currentColor"}));var Jb={},Vs={},nh={},Ps={},ah={};Object.defineProperty(ah,"__esModule",{value:!0}),ah.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(e){return e.charCodeAt(0)}));var ih={};Object.defineProperty(ih,"__esModule",{value:!0}),ih.default=new Uint16Array("Ȁaglq	\x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(e){return e.charCodeAt(0)}));var oh={};(function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.replaceCodePoint=e.fromCodePoint=void 0;var r=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);e.fromCodePoint=(t=String.fromCodePoint)!==null&&t!==void 0?t:function(i){var s="";return i>65535&&(i-=65536,s+=String.fromCharCode(i>>>10&1023|55296),i=56320|i&1023),s+=String.fromCharCode(i),s};function n(i){var s;return i>=55296&&i<=57343||i>1114111?65533:(s=r.get(i))!==null&&s!==void 0?s:i}e.replaceCodePoint=n;function a(i){return(0,e.fromCodePoint)(n(i))}e.default=a})(oh),function(e){var t=Ee&&Ee.__createBinding||(Object.create?function(k,C,A,I){I===void 0&&(I=A);var T=Object.getOwnPropertyDescriptor(C,A);(!T||("get"in T?!C.__esModule:T.writable||T.configurable))&&(T={enumerable:!0,get:function(){return C[A]}}),Object.defineProperty(k,I,T)}:function(k,C,A,I){I===void 0&&(I=A),k[I]=C[A]}),r=Ee&&Ee.__setModuleDefault||(Object.create?function(k,C){Object.defineProperty(k,"default",{enumerable:!0,value:C})}:function(k,C){k.default=C}),n=Ee&&Ee.__importStar||function(k){if(k&&k.__esModule)return k;var C={};if(k!=null)for(var A in k)A!=="default"&&Object.prototype.hasOwnProperty.call(k,A)&&t(C,k,A);return r(C,k),C},a=Ee&&Ee.__importDefault||function(k){return k&&k.__esModule?k:{default:k}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXML=e.decodeHTMLStrict=e.decodeHTMLAttribute=e.decodeHTML=e.determineBranch=e.EntityDecoder=e.DecodingMode=e.BinTrieFlags=e.fromCodePoint=e.replaceCodePoint=e.decodeCodePoint=e.xmlDecodeTree=e.htmlDecodeTree=void 0;var i=a(ah);e.htmlDecodeTree=i.default;var s=a(ih);e.xmlDecodeTree=s.default;var u=n(oh);e.decodeCodePoint=u.default;var l=oh;Object.defineProperty(e,"replaceCodePoint",{enumerable:!0,get:function(){return l.replaceCodePoint}}),Object.defineProperty(e,"fromCodePoint",{enumerable:!0,get:function(){return l.fromCodePoint}});var f;(function(k){k[k.NUM=35]="NUM",k[k.SEMI=59]="SEMI",k[k.EQUALS=61]="EQUALS",k[k.ZERO=48]="ZERO",k[k.NINE=57]="NINE",k[k.LOWER_A=97]="LOWER_A",k[k.LOWER_F=102]="LOWER_F",k[k.LOWER_X=120]="LOWER_X",k[k.LOWER_Z=122]="LOWER_Z",k[k.UPPER_A=65]="UPPER_A",k[k.UPPER_F=70]="UPPER_F",k[k.UPPER_Z=90]="UPPER_Z"})(f||(f={}));var h=32,m;(function(k){k[k.VALUE_LENGTH=49152]="VALUE_LENGTH",k[k.BRANCH_LENGTH=16256]="BRANCH_LENGTH",k[k.JUMP_TABLE=127]="JUMP_TABLE"})(m=e.BinTrieFlags||(e.BinTrieFlags={}));function g(k){return k>=f.ZERO&&k<=f.NINE}function p(k){return k>=f.UPPER_A&&k<=f.UPPER_F||k>=f.LOWER_A&&k<=f.LOWER_F}function w(k){return k>=f.UPPER_A&&k<=f.UPPER_Z||k>=f.LOWER_A&&k<=f.LOWER_Z||g(k)}function y(k){return k===f.EQUALS||w(k)}var _;(function(k){k[k.EntityStart=0]="EntityStart",k[k.NumericStart=1]="NumericStart",k[k.NumericDecimal=2]="NumericDecimal",k[k.NumericHex=3]="NumericHex",k[k.NamedEntity=4]="NamedEntity"})(_||(_={}));var S;(function(k){k[k.Legacy=0]="Legacy",k[k.Strict=1]="Strict",k[k.Attribute=2]="Attribute"})(S=e.DecodingMode||(e.DecodingMode={}));var H=function(){function k(C,A,I){this.decodeTree=C,this.emitCodePoint=A,this.errors=I,this.state=_.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=S.Strict}return k.prototype.startEntity=function(C){this.decodeMode=C,this.state=_.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},k.prototype.write=function(C,A){switch(this.state){case _.EntityStart:return C.charCodeAt(A)===f.NUM?(this.state=_.NumericStart,this.consumed+=1,this.stateNumericStart(C,A+1)):(this.state=_.NamedEntity,this.stateNamedEntity(C,A));case _.NumericStart:return this.stateNumericStart(C,A);case _.NumericDecimal:return this.stateNumericDecimal(C,A);case _.NumericHex:return this.stateNumericHex(C,A);case _.NamedEntity:return this.stateNamedEntity(C,A)}},k.prototype.stateNumericStart=function(C,A){return A>=C.length?-1:(C.charCodeAt(A)|h)===f.LOWER_X?(this.state=_.NumericHex,this.consumed+=1,this.stateNumericHex(C,A+1)):(this.state=_.NumericDecimal,this.stateNumericDecimal(C,A))},k.prototype.addToNumericResult=function(C,A,I,T){if(A!==I){var V=I-A;this.result=this.result*Math.pow(T,V)+parseInt(C.substr(A,V),T),this.consumed+=V}},k.prototype.stateNumericHex=function(C,A){for(var I=A;A<C.length;){var T=C.charCodeAt(A);if(g(T)||p(T))A+=1;else return this.addToNumericResult(C,I,A,16),this.emitNumericEntity(T,3)}return this.addToNumericResult(C,I,A,16),-1},k.prototype.stateNumericDecimal=function(C,A){for(var I=A;A<C.length;){var T=C.charCodeAt(A);if(g(T))A+=1;else return this.addToNumericResult(C,I,A,10),this.emitNumericEntity(T,2)}return this.addToNumericResult(C,I,A,10),-1},k.prototype.emitNumericEntity=function(C,A){var I;if(this.consumed<=A)return(I=this.errors)===null||I===void 0||I.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(C===f.SEMI)this.consumed+=1;else if(this.decodeMode===S.Strict)return 0;return this.emitCodePoint((0,u.replaceCodePoint)(this.result),this.consumed),this.errors&&(C!==f.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},k.prototype.stateNamedEntity=function(C,A){for(var I=this.decodeTree,T=I[this.treeIndex],V=(T&m.VALUE_LENGTH)>>14;A<C.length;A++,this.excess++){var P=C.charCodeAt(A);if(this.treeIndex=O(I,T,this.treeIndex+Math.max(1,V),P),this.treeIndex<0)return this.result===0||this.decodeMode===S.Attribute&&(V===0||y(P))?0:this.emitNotTerminatedNamedEntity();if(T=I[this.treeIndex],V=(T&m.VALUE_LENGTH)>>14,V!==0){if(P===f.SEMI)return this.emitNamedEntityData(this.treeIndex,V,this.consumed+this.excess);this.decodeMode!==S.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},k.prototype.emitNotTerminatedNamedEntity=function(){var C,A=this,I=A.result,T=A.decodeTree,V=(T[I]&m.VALUE_LENGTH)>>14;return this.emitNamedEntityData(I,V,this.consumed),(C=this.errors)===null||C===void 0||C.missingSemicolonAfterCharacterReference(),this.consumed},k.prototype.emitNamedEntityData=function(C,A,I){var T=this.decodeTree;return this.emitCodePoint(A===1?T[C]&~m.VALUE_LENGTH:T[C+1],I),A===3&&this.emitCodePoint(T[C+2],I),I},k.prototype.end=function(){var C;switch(this.state){case _.NamedEntity:return this.result!==0&&(this.decodeMode!==S.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case _.NumericDecimal:return this.emitNumericEntity(0,2);case _.NumericHex:return this.emitNumericEntity(0,3);case _.NumericStart:return(C=this.errors)===null||C===void 0||C.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case _.EntityStart:return 0}},k}();e.EntityDecoder=H;function L(k){var C="",A=new H(k,function(I){return C+=(0,u.fromCodePoint)(I)});return function(T,V){for(var P=0,z=0;(z=T.indexOf("&",z))>=0;){C+=T.slice(P,z),A.startEntity(V);var Z=A.write(T,z+1);if(Z<0){P=z+A.end();break}P=z+Z,z=Z===0?P+1:P}var re=C+T.slice(P);return C="",re}}function O(k,C,A,I){var T=(C&m.BRANCH_LENGTH)>>7,V=C&m.JUMP_TABLE;if(T===0)return V!==0&&I===V?A:-1;if(V){var P=I-V;return P<0||P>=T?-1:k[A+P]-1}for(var z=A,Z=z+T-1;z<=Z;){var re=z+Z>>>1,te=k[re];if(te<I)z=re+1;else if(te>I)Z=re-1;else return k[re+T]}return-1}e.determineBranch=O;var j=L(i.default),R=L(s.default);function K(k,C){return C===void 0&&(C=S.Legacy),j(k,C)}e.decodeHTML=K;function M(k){return j(k,S.Attribute)}e.decodeHTMLAttribute=M;function F(k){return j(k,S.Strict)}e.decodeHTMLStrict=F;function U(k){return R(k,S.Strict)}e.decodeXML=U}(Ps),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.QuoteType=void 0;var t=Ps,r;(function(g){g[g.Tab=9]="Tab",g[g.NewLine=10]="NewLine",g[g.FormFeed=12]="FormFeed",g[g.CarriageReturn=13]="CarriageReturn",g[g.Space=32]="Space",g[g.ExclamationMark=33]="ExclamationMark",g[g.Number=35]="Number",g[g.Amp=38]="Amp",g[g.SingleQuote=39]="SingleQuote",g[g.DoubleQuote=34]="DoubleQuote",g[g.Dash=45]="Dash",g[g.Slash=47]="Slash",g[g.Zero=48]="Zero",g[g.Nine=57]="Nine",g[g.Semi=59]="Semi",g[g.Lt=60]="Lt",g[g.Eq=61]="Eq",g[g.Gt=62]="Gt",g[g.Questionmark=63]="Questionmark",g[g.UpperA=65]="UpperA",g[g.LowerA=97]="LowerA",g[g.UpperF=70]="UpperF",g[g.LowerF=102]="LowerF",g[g.UpperZ=90]="UpperZ",g[g.LowerZ=122]="LowerZ",g[g.LowerX=120]="LowerX",g[g.OpeningSquareBracket=91]="OpeningSquareBracket"})(r||(r={}));var n;(function(g){g[g.Text=1]="Text",g[g.BeforeTagName=2]="BeforeTagName",g[g.InTagName=3]="InTagName",g[g.InSelfClosingTag=4]="InSelfClosingTag",g[g.BeforeClosingTagName=5]="BeforeClosingTagName",g[g.InClosingTagName=6]="InClosingTagName",g[g.AfterClosingTagName=7]="AfterClosingTagName",g[g.BeforeAttributeName=8]="BeforeAttributeName",g[g.InAttributeName=9]="InAttributeName",g[g.AfterAttributeName=10]="AfterAttributeName",g[g.BeforeAttributeValue=11]="BeforeAttributeValue",g[g.InAttributeValueDq=12]="InAttributeValueDq",g[g.InAttributeValueSq=13]="InAttributeValueSq",g[g.InAttributeValueNq=14]="InAttributeValueNq",g[g.BeforeDeclaration=15]="BeforeDeclaration",g[g.InDeclaration=16]="InDeclaration",g[g.InProcessingInstruction=17]="InProcessingInstruction",g[g.BeforeComment=18]="BeforeComment",g[g.CDATASequence=19]="CDATASequence",g[g.InSpecialComment=20]="InSpecialComment",g[g.InCommentLike=21]="InCommentLike",g[g.BeforeSpecialS=22]="BeforeSpecialS",g[g.SpecialStartSequence=23]="SpecialStartSequence",g[g.InSpecialTag=24]="InSpecialTag",g[g.BeforeEntity=25]="BeforeEntity",g[g.BeforeNumericEntity=26]="BeforeNumericEntity",g[g.InNamedEntity=27]="InNamedEntity",g[g.InNumericEntity=28]="InNumericEntity",g[g.InHexEntity=29]="InHexEntity"})(n||(n={}));function a(g){return g===r.Space||g===r.NewLine||g===r.Tab||g===r.FormFeed||g===r.CarriageReturn}function i(g){return g===r.Slash||g===r.Gt||a(g)}function s(g){return g>=r.Zero&&g<=r.Nine}function u(g){return g>=r.LowerA&&g<=r.LowerZ||g>=r.UpperA&&g<=r.UpperZ}function l(g){return g>=r.UpperA&&g<=r.UpperF||g>=r.LowerA&&g<=r.LowerF}var f;(function(g){g[g.NoValue=0]="NoValue",g[g.Unquoted=1]="Unquoted",g[g.Single=2]="Single",g[g.Double=3]="Double"})(f=e.QuoteType||(e.QuoteType={}));var h={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},m=function(){function g(p,w){var y=p.xmlMode,_=y===void 0?!1:y,S=p.decodeEntities,H=S===void 0?!0:S;this.cbs=w,this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=_,this.decodeEntities=H,this.entityTrie=_?t.xmlDecodeTree:t.htmlDecodeTree}return g.prototype.reset=function(){this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},g.prototype.write=function(p){this.offset+=this.buffer.length,this.buffer=p,this.parse()},g.prototype.end=function(){this.running&&this.finish()},g.prototype.pause=function(){this.running=!1},g.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},g.prototype.getIndex=function(){return this.index},g.prototype.getSectionStart=function(){return this.sectionStart},g.prototype.stateText=function(p){p===r.Lt||!this.decodeEntities&&this.fastForwardTo(r.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=n.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&p===r.Amp&&(this.state=n.BeforeEntity)},g.prototype.stateSpecialStartSequence=function(p){var w=this.sequenceIndex===this.currentSequence.length,y=w?i(p):(p|32)===this.currentSequence[this.sequenceIndex];if(!y)this.isSpecial=!1;else if(!w){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=n.InTagName,this.stateInTagName(p)},g.prototype.stateInSpecialTag=function(p){if(this.sequenceIndex===this.currentSequence.length){if(p===r.Gt||a(p)){var w=this.index-this.currentSequence.length;if(this.sectionStart<w){var y=this.index;this.index=w,this.cbs.ontext(this.sectionStart,w),this.index=y}this.isSpecial=!1,this.sectionStart=w+2,this.stateInClosingTagName(p);return}this.sequenceIndex=0}(p|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===h.TitleEnd?this.decodeEntities&&p===r.Amp&&(this.state=n.BeforeEntity):this.fastForwardTo(r.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(p===r.Lt)},g.prototype.stateCDATASequence=function(p){p===h.Cdata[this.sequenceIndex]?++this.sequenceIndex===h.Cdata.length&&(this.state=n.InCommentLike,this.currentSequence=h.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=n.InDeclaration,this.stateInDeclaration(p))},g.prototype.fastForwardTo=function(p){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===p)return!0;return this.index=this.buffer.length+this.offset-1,!1},g.prototype.stateInCommentLike=function(p){p===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===h.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=n.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):p!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},g.prototype.isTagStartChar=function(p){return this.xmlMode?!i(p):u(p)},g.prototype.startSpecial=function(p,w){this.isSpecial=!0,this.currentSequence=p,this.sequenceIndex=w,this.state=n.SpecialStartSequence},g.prototype.stateBeforeTagName=function(p){if(p===r.ExclamationMark)this.state=n.BeforeDeclaration,this.sectionStart=this.index+1;else if(p===r.Questionmark)this.state=n.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(p)){var w=p|32;this.sectionStart=this.index,!this.xmlMode&&w===h.TitleEnd[2]?this.startSpecial(h.TitleEnd,3):this.state=!this.xmlMode&&w===h.ScriptEnd[2]?n.BeforeSpecialS:n.InTagName}else p===r.Slash?this.state=n.BeforeClosingTagName:(this.state=n.Text,this.stateText(p))},g.prototype.stateInTagName=function(p){i(p)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(p))},g.prototype.stateBeforeClosingTagName=function(p){a(p)||(p===r.Gt?this.state=n.Text:(this.state=this.isTagStartChar(p)?n.InClosingTagName:n.InSpecialComment,this.sectionStart=this.index))},g.prototype.stateInClosingTagName=function(p){(p===r.Gt||a(p))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterClosingTagName,this.stateAfterClosingTagName(p))},g.prototype.stateAfterClosingTagName=function(p){(p===r.Gt||this.fastForwardTo(r.Gt))&&(this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1)},g.prototype.stateBeforeAttributeName=function(p){p===r.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=n.InSpecialTag,this.sequenceIndex=0):this.state=n.Text,this.baseState=this.state,this.sectionStart=this.index+1):p===r.Slash?this.state=n.InSelfClosingTag:a(p)||(this.state=n.InAttributeName,this.sectionStart=this.index)},g.prototype.stateInSelfClosingTag=function(p){p===r.Gt?(this.cbs.onselfclosingtag(this.index),this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1,this.isSpecial=!1):a(p)||(this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(p))},g.prototype.stateInAttributeName=function(p){(p===r.Eq||i(p))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterAttributeName,this.stateAfterAttributeName(p))},g.prototype.stateAfterAttributeName=function(p){p===r.Eq?this.state=n.BeforeAttributeValue:p===r.Slash||p===r.Gt?(this.cbs.onattribend(f.NoValue,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(p)):a(p)||(this.cbs.onattribend(f.NoValue,this.index),this.state=n.InAttributeName,this.sectionStart=this.index)},g.prototype.stateBeforeAttributeValue=function(p){p===r.DoubleQuote?(this.state=n.InAttributeValueDq,this.sectionStart=this.index+1):p===r.SingleQuote?(this.state=n.InAttributeValueSq,this.sectionStart=this.index+1):a(p)||(this.sectionStart=this.index,this.state=n.InAttributeValueNq,this.stateInAttributeValueNoQuotes(p))},g.prototype.handleInAttributeValue=function(p,w){p===w||!this.decodeEntities&&this.fastForwardTo(w)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(w===r.DoubleQuote?f.Double:f.Single,this.index),this.state=n.BeforeAttributeName):this.decodeEntities&&p===r.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},g.prototype.stateInAttributeValueDoubleQuotes=function(p){this.handleInAttributeValue(p,r.DoubleQuote)},g.prototype.stateInAttributeValueSingleQuotes=function(p){this.handleInAttributeValue(p,r.SingleQuote)},g.prototype.stateInAttributeValueNoQuotes=function(p){a(p)||p===r.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(f.Unquoted,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(p)):this.decodeEntities&&p===r.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},g.prototype.stateBeforeDeclaration=function(p){p===r.OpeningSquareBracket?(this.state=n.CDATASequence,this.sequenceIndex=0):this.state=p===r.Dash?n.BeforeComment:n.InDeclaration},g.prototype.stateInDeclaration=function(p){(p===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},g.prototype.stateInProcessingInstruction=function(p){(p===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},g.prototype.stateBeforeComment=function(p){p===r.Dash?(this.state=n.InCommentLike,this.currentSequence=h.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=n.InDeclaration},g.prototype.stateInSpecialComment=function(p){(p===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=n.Text,this.sectionStart=this.index+1)},g.prototype.stateBeforeSpecialS=function(p){var w=p|32;w===h.ScriptEnd[3]?this.startSpecial(h.ScriptEnd,4):w===h.StyleEnd[3]?this.startSpecial(h.StyleEnd,4):(this.state=n.InTagName,this.stateInTagName(p))},g.prototype.stateBeforeEntity=function(p){this.entityExcess=1,this.entityResult=0,p===r.Number?this.state=n.BeforeNumericEntity:p===r.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=n.InNamedEntity,this.stateInNamedEntity(p))},g.prototype.stateInNamedEntity=function(p){if(this.entityExcess+=1,this.trieIndex=(0,t.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,p),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];var w=this.trieCurrent&t.BinTrieFlags.VALUE_LENGTH;if(w){var y=(w>>14)-1;if(!this.allowLegacyEntity()&&p!==r.Semi)this.trieIndex+=y;else{var _=this.index-this.entityExcess+1;_>this.sectionStart&&this.emitPartial(this.sectionStart,_),this.entityResult=this.trieIndex,this.trieIndex+=y,this.entityExcess=0,this.sectionStart=this.index+1,y===0&&this.emitNamedEntity()}}},g.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var p=(this.entityTrie[this.entityResult]&t.BinTrieFlags.VALUE_LENGTH)>>14;switch(p){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~t.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},g.prototype.stateBeforeNumericEntity=function(p){(p|32)===r.LowerX?(this.entityExcess++,this.state=n.InHexEntity):(this.state=n.InNumericEntity,this.stateInNumericEntity(p))},g.prototype.emitNumericEntity=function(p){var w=this.index-this.entityExcess-1,y=w+2+ +(this.state===n.InHexEntity);y!==this.index&&(w>this.sectionStart&&this.emitPartial(this.sectionStart,w),this.sectionStart=this.index+Number(p),this.emitCodePoint((0,t.replaceCodePoint)(this.entityResult))),this.state=this.baseState},g.prototype.stateInNumericEntity=function(p){p===r.Semi?this.emitNumericEntity(!0):s(p)?(this.entityResult=this.entityResult*10+(p-r.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},g.prototype.stateInHexEntity=function(p){p===r.Semi?this.emitNumericEntity(!0):s(p)?(this.entityResult=this.entityResult*16+(p-r.Zero),this.entityExcess++):l(p)?(this.entityResult=this.entityResult*16+((p|32)-r.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},g.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===n.Text||this.baseState===n.InSpecialTag)},g.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===n.Text||this.state===n.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===n.InAttributeValueDq||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},g.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},g.prototype.parse=function(){for(;this.shouldContinue();){var p=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case n.Text:{this.stateText(p);break}case n.SpecialStartSequence:{this.stateSpecialStartSequence(p);break}case n.InSpecialTag:{this.stateInSpecialTag(p);break}case n.CDATASequence:{this.stateCDATASequence(p);break}case n.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(p);break}case n.InAttributeName:{this.stateInAttributeName(p);break}case n.InCommentLike:{this.stateInCommentLike(p);break}case n.InSpecialComment:{this.stateInSpecialComment(p);break}case n.BeforeAttributeName:{this.stateBeforeAttributeName(p);break}case n.InTagName:{this.stateInTagName(p);break}case n.InClosingTagName:{this.stateInClosingTagName(p);break}case n.BeforeTagName:{this.stateBeforeTagName(p);break}case n.AfterAttributeName:{this.stateAfterAttributeName(p);break}case n.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(p);break}case n.BeforeAttributeValue:{this.stateBeforeAttributeValue(p);break}case n.BeforeClosingTagName:{this.stateBeforeClosingTagName(p);break}case n.AfterClosingTagName:{this.stateAfterClosingTagName(p);break}case n.BeforeSpecialS:{this.stateBeforeSpecialS(p);break}case n.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(p);break}case n.InSelfClosingTag:{this.stateInSelfClosingTag(p);break}case n.InDeclaration:{this.stateInDeclaration(p);break}case n.BeforeDeclaration:{this.stateBeforeDeclaration(p);break}case n.BeforeComment:{this.stateBeforeComment(p);break}case n.InProcessingInstruction:{this.stateInProcessingInstruction(p);break}case n.InNamedEntity:{this.stateInNamedEntity(p);break}case n.BeforeEntity:{this.stateBeforeEntity(p);break}case n.InHexEntity:{this.stateInHexEntity(p);break}case n.InNumericEntity:{this.stateInNumericEntity(p);break}default:this.stateBeforeNumericEntity(p)}this.index++}this.cleanup()},g.prototype.finish=function(){this.state===n.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},g.prototype.handleTrailingData=function(){var p=this.buffer.length+this.offset;this.state===n.InCommentLike?this.currentSequence===h.CdataEnd?this.cbs.oncdata(this.sectionStart,p,0):this.cbs.oncomment(this.sectionStart,p,0):this.state===n.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===n.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===n.InTagName||this.state===n.BeforeAttributeName||this.state===n.BeforeAttributeValue||this.state===n.AfterAttributeName||this.state===n.InAttributeName||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueDq||this.state===n.InAttributeValueNq||this.state===n.InClosingTagName||this.cbs.ontext(this.sectionStart,p)},g.prototype.emitPartial=function(p,w){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribdata(p,w):this.cbs.ontext(p,w)},g.prototype.emitCodePoint=function(p){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribentity(p):this.cbs.ontextentity(p)},g}();e.default=m}(nh);var NH=Ee&&Ee.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),TH=Ee&&Ee.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),HH=Ee&&Ee.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&NH(t,e,r);return TH(t,e),t};Object.defineProperty(Vs,"__esModule",{value:!0}),Vs.Parser=void 0;var fc=HH(nh),ew=Ps,co=new Set(["input","option","optgroup","select","button","datalist","textarea"]),xt=new Set(["p"]),tw=new Set(["thead","tbody"]),rw=new Set(["dd","dt"]),nw=new Set(["rt","rp"]),IH=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",xt],["h1",xt],["h2",xt],["h3",xt],["h4",xt],["h5",xt],["h6",xt],["select",co],["input",co],["output",co],["button",co],["datalist",co],["textarea",co],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",rw],["dt",rw],["address",xt],["article",xt],["aside",xt],["blockquote",xt],["details",xt],["div",xt],["dl",xt],["fieldset",xt],["figcaption",xt],["figure",xt],["footer",xt],["form",xt],["header",xt],["hr",xt],["main",xt],["nav",xt],["ol",xt],["pre",xt],["section",xt],["table",xt],["ul",xt],["rt",nw],["rp",nw],["tbody",tw],["tfoot",tw]]),OH=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),aw=new Set(["math","svg"]),iw=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),MH=/\s|\//,LH=function(){function e(t,r){r===void 0&&(r={});var n,a,i,s,u;this.options=r,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=t??{},this.lowerCaseTagNames=(n=r.lowerCaseTags)!==null&&n!==void 0?n:!r.xmlMode,this.lowerCaseAttributeNames=(a=r.lowerCaseAttributeNames)!==null&&a!==void 0?a:!r.xmlMode,this.tokenizer=new((i=r.Tokenizer)!==null&&i!==void 0?i:fc.default)(this.options,this),(u=(s=this.cbs).onparserinit)===null||u===void 0||u.call(s,this)}return e.prototype.ontext=function(t,r){var n,a,i=this.getSlice(t,r);this.endIndex=r-1,(a=(n=this.cbs).ontext)===null||a===void 0||a.call(n,i),this.startIndex=r},e.prototype.ontextentity=function(t){var r,n,a=this.tokenizer.getSectionStart();this.endIndex=a-1,(n=(r=this.cbs).ontext)===null||n===void 0||n.call(r,(0,ew.fromCodePoint)(t)),this.startIndex=a},e.prototype.isVoidElement=function(t){return!this.options.xmlMode&&OH.has(t)},e.prototype.onopentagname=function(t,r){this.endIndex=r;var n=this.getSlice(t,r);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)},e.prototype.emitOpenTag=function(t){var r,n,a,i;this.openTagStart=this.startIndex,this.tagname=t;var s=!this.options.xmlMode&&IH.get(t);if(s)for(;this.stack.length>0&&s.has(this.stack[this.stack.length-1]);){var u=this.stack.pop();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,u,!0)}this.isVoidElement(t)||(this.stack.push(t),aw.has(t)?this.foreignContext.push(!0):iw.has(t)&&this.foreignContext.push(!1)),(i=(a=this.cbs).onopentagname)===null||i===void 0||i.call(a,t),this.cbs.onopentag&&(this.attribs={})},e.prototype.endOpenTag=function(t){var r,n;this.startIndex=this.openTagStart,this.attribs&&((n=(r=this.cbs).onopentag)===null||n===void 0||n.call(r,this.tagname,this.attribs,t),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},e.prototype.onopentagend=function(t){this.endIndex=t,this.endOpenTag(!1),this.startIndex=t+1},e.prototype.onclosetag=function(t,r){var n,a,i,s,u,l;this.endIndex=r;var f=this.getSlice(t,r);if(this.lowerCaseTagNames&&(f=f.toLowerCase()),(aw.has(f)||iw.has(f))&&this.foreignContext.pop(),this.isVoidElement(f))!this.options.xmlMode&&f==="br"&&((a=(n=this.cbs).onopentagname)===null||a===void 0||a.call(n,"br"),(s=(i=this.cbs).onopentag)===null||s===void 0||s.call(i,"br",{},!0),(l=(u=this.cbs).onclosetag)===null||l===void 0||l.call(u,"br",!1));else{var h=this.stack.lastIndexOf(f);if(h!==-1)if(this.cbs.onclosetag)for(var m=this.stack.length-h;m--;)this.cbs.onclosetag(this.stack.pop(),m!==0);else this.stack.length=h;else!this.options.xmlMode&&f==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=r+1},e.prototype.onselfclosingtag=function(t){this.endIndex=t,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=t+1):this.onopentagend(t)},e.prototype.closeCurrentTag=function(t){var r,n,a=this.tagname;this.endOpenTag(t),this.stack[this.stack.length-1]===a&&((n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,a,!t),this.stack.pop())},e.prototype.onattribname=function(t,r){this.startIndex=t;var n=this.getSlice(t,r);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},e.prototype.onattribdata=function(t,r){this.attribvalue+=this.getSlice(t,r)},e.prototype.onattribentity=function(t){this.attribvalue+=(0,ew.fromCodePoint)(t)},e.prototype.onattribend=function(t,r){var n,a;this.endIndex=r,(a=(n=this.cbs).onattribute)===null||a===void 0||a.call(n,this.attribname,this.attribvalue,t===fc.QuoteType.Double?'"':t===fc.QuoteType.Single?"'":t===fc.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},e.prototype.getInstructionName=function(t){var r=t.search(MH),n=r<0?t:t.substr(0,r);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},e.prototype.ondeclaration=function(t,r){this.endIndex=r;var n=this.getSlice(t,r);if(this.cbs.onprocessinginstruction){var a=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(a),"!".concat(n))}this.startIndex=r+1},e.prototype.onprocessinginstruction=function(t,r){this.endIndex=r;var n=this.getSlice(t,r);if(this.cbs.onprocessinginstruction){var a=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(a),"?".concat(n))}this.startIndex=r+1},e.prototype.oncomment=function(t,r,n){var a,i,s,u;this.endIndex=r,(i=(a=this.cbs).oncomment)===null||i===void 0||i.call(a,this.getSlice(t,r-n)),(u=(s=this.cbs).oncommentend)===null||u===void 0||u.call(s),this.startIndex=r+1},e.prototype.oncdata=function(t,r,n){var a,i,s,u,l,f,h,m,g,p;this.endIndex=r;var w=this.getSlice(t,r-n);this.options.xmlMode||this.options.recognizeCDATA?((i=(a=this.cbs).oncdatastart)===null||i===void 0||i.call(a),(u=(s=this.cbs).ontext)===null||u===void 0||u.call(s,w),(f=(l=this.cbs).oncdataend)===null||f===void 0||f.call(l)):((m=(h=this.cbs).oncomment)===null||m===void 0||m.call(h,"[CDATA[".concat(w,"]]")),(p=(g=this.cbs).oncommentend)===null||p===void 0||p.call(g)),this.startIndex=r+1},e.prototype.onend=function(){var t,r;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}(r=(t=this.cbs).onend)===null||r===void 0||r.call(t)},e.prototype.reset=function(){var t,r,n,a;(r=(t=this.cbs).onreset)===null||r===void 0||r.call(t),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(a=(n=this.cbs).onparserinit)===null||a===void 0||a.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},e.prototype.parseComplete=function(t){this.reset(),this.end(t)},e.prototype.getSlice=function(t,r){for(;t-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(t-this.bufferOffset,r-this.bufferOffset);r-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,r-this.bufferOffset);return n},e.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},e.prototype.write=function(t){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".write() after done!"));return}this.buffers.push(t),this.tokenizer.running&&(this.tokenizer.write(t),this.writeIndex++)},e.prototype.end=function(t){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".end() after done!"));return}t&&this.write(t),this.ended=!0,this.tokenizer.end()},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},e.prototype.parseChunk=function(t){this.write(t)},e.prototype.done=function(t){this.end(t)},e}();Vs.Parser=LH;var pa={},fo={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(n){n.Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function r(n){return n.type===t.Tag||n.type===t.Script||n.type===t.Style}e.isTag=r,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(fo);var et={},ja=Ee&&Ee.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Fs=Ee&&Ee.__assign||function(){return Fs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Fs.apply(this,arguments)};Object.defineProperty(et,"__esModule",{value:!0}),et.cloneNode=et.hasChildren=et.isDocument=et.isDirective=et.isComment=et.isText=et.isCDATA=et.isTag=et.Element=et.Document=et.CDATA=et.NodeWithChildren=et.ProcessingInstruction=et.Comment=et.Text=et.DataNode=et.Node=void 0;var Dr=fo,sh=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){return t===void 0&&(t=!1),uh(this,t)},e}();et.Node=sh;var gc=function(e){ja(t,e);function t(r){var n=e.call(this)||this;return n.data=r,n}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(r){this.data=r},enumerable:!1,configurable:!0}),t}(sh);et.DataNode=gc;var ow=function(e){ja(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Dr.ElementType.Text,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(gc);et.Text=ow;var sw=function(e){ja(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Dr.ElementType.Comment,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(gc);et.Comment=sw;var uw=function(e){ja(t,e);function t(r,n){var a=e.call(this,n)||this;return a.name=r,a.type=Dr.ElementType.Directive,a}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(gc);et.ProcessingInstruction=uw;var hc=function(e){ja(t,e);function t(r){var n=e.call(this)||this;return n.children=r,n}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var r;return(r=this.children[0])!==null&&r!==void 0?r:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),t}(sh);et.NodeWithChildren=hc;var lw=function(e){ja(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Dr.ElementType.CDATA,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(hc);et.CDATA=lw;var cw=function(e){ja(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Dr.ElementType.Root,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(hc);et.Document=cw;var dw=function(e){ja(t,e);function t(r,n,a,i){a===void 0&&(a=[]),i===void 0&&(i=r==="script"?Dr.ElementType.Script:r==="style"?Dr.ElementType.Style:Dr.ElementType.Tag);var s=e.call(this,a)||this;return s.name=r,s.attribs=n,s.type=i,s}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(n){var a,i;return{name:n,value:r.attribs[n],namespace:(a=r["x-attribsNamespace"])===null||a===void 0?void 0:a[n],prefix:(i=r["x-attribsPrefix"])===null||i===void 0?void 0:i[n]}})},enumerable:!1,configurable:!0}),t}(hc);et.Element=dw;function fw(e){return(0,Dr.isTag)(e)}et.isTag=fw;function gw(e){return e.type===Dr.ElementType.CDATA}et.isCDATA=gw;function hw(e){return e.type===Dr.ElementType.Text}et.isText=hw;function pw(e){return e.type===Dr.ElementType.Comment}et.isComment=pw;function mw(e){return e.type===Dr.ElementType.Directive}et.isDirective=mw;function vw(e){return e.type===Dr.ElementType.Root}et.isDocument=vw;function VH(e){return Object.prototype.hasOwnProperty.call(e,"children")}et.hasChildren=VH;function uh(e,t){t===void 0&&(t=!1);var r;if(hw(e))r=new ow(e.data);else if(pw(e))r=new sw(e.data);else if(fw(e)){var n=t?lh(e.children):[],a=new dw(e.name,Fs({},e.attribs),n);n.forEach(function(l){return l.parent=a}),e.namespace!=null&&(a.namespace=e.namespace),e["x-attribsNamespace"]&&(a["x-attribsNamespace"]=Fs({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(a["x-attribsPrefix"]=Fs({},e["x-attribsPrefix"])),r=a}else if(gw(e)){var n=t?lh(e.children):[],i=new lw(n);n.forEach(function(f){return f.parent=i}),r=i}else if(vw(e)){var n=t?lh(e.children):[],s=new cw(n);n.forEach(function(f){return f.parent=s}),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),r=s}else if(mw(e)){var u=new uw(e.name,e.data);e["x-name"]!=null&&(u["x-name"]=e["x-name"],u["x-publicId"]=e["x-publicId"],u["x-systemId"]=e["x-systemId"]),r=u}else throw new Error("Not implemented yet: ".concat(e.type));return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}et.cloneNode=uh;function lh(e){for(var t=e.map(function(n){return uh(n,!0)}),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}(function(e){var t=Ee&&Ee.__createBinding||(Object.create?function(u,l,f,h){h===void 0&&(h=f);var m=Object.getOwnPropertyDescriptor(l,f);(!m||("get"in m?!l.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return l[f]}}),Object.defineProperty(u,h,m)}:function(u,l,f,h){h===void 0&&(h=f),u[h]=l[f]}),r=Ee&&Ee.__exportStar||function(u,l){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(l,f)&&t(l,u,f)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var n=fo,a=et;r(et,e);var i={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=function(){function u(l,f,h){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof f=="function"&&(h=f,f=i),typeof l=="object"&&(f=l,l=void 0),this.callback=l??null,this.options=f??i,this.elementCB=h??null}return u.prototype.onparserinit=function(l){this.parser=l},u.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},u.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},u.prototype.onerror=function(l){this.handleCallback(l)},u.prototype.onclosetag=function(){this.lastNode=null;var l=this.tagStack.pop();this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(l)},u.prototype.onopentag=function(l,f){var h=this.options.xmlMode?n.ElementType.Tag:void 0,m=new a.Element(l,f,void 0,h);this.addNode(m),this.tagStack.push(m)},u.prototype.ontext=function(l){var f=this.lastNode;if(f&&f.type===n.ElementType.Text)f.data+=l,this.options.withEndIndices&&(f.endIndex=this.parser.endIndex);else{var h=new a.Text(l);this.addNode(h),this.lastNode=h}},u.prototype.oncomment=function(l){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment){this.lastNode.data+=l;return}var f=new a.Comment(l);this.addNode(f),this.lastNode=f},u.prototype.oncommentend=function(){this.lastNode=null},u.prototype.oncdatastart=function(){var l=new a.Text(""),f=new a.CDATA([l]);this.addNode(f),l.parent=f,this.lastNode=l},u.prototype.oncdataend=function(){this.lastNode=null},u.prototype.onprocessinginstruction=function(l,f){var h=new a.ProcessingInstruction(l,f);this.addNode(h)},u.prototype.handleCallback=function(l){if(typeof this.callback=="function")this.callback(l,this.dom);else if(l)throw l},u.prototype.addNode=function(l){var f=this.tagStack[this.tagStack.length-1],h=f.children[f.children.length-1];this.options.withStartIndices&&(l.startIndex=this.parser.startIndex),this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),f.children.push(l),h&&(l.prev=h,h.next=l),l.parent=f,this.lastNode=null},u}();e.DomHandler=s,e.default=s})(pa);var pc={},jr={},Bs={},bw={},vi={},ch={};Object.defineProperty(ch,"__esModule",{value:!0});function mc(e){for(var t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}ch.default=new Map(mc([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(mc([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(mc([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(mc([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]));var vc={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.escapeText=e.escapeAttribute=e.escapeUTF8=e.escape=e.encodeXML=e.getCodePoint=e.xmlReplacer=void 0,e.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var t=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);e.getCodePoint=String.prototype.codePointAt!=null?function(a,i){return a.codePointAt(i)}:function(a,i){return(a.charCodeAt(i)&64512)===55296?(a.charCodeAt(i)-55296)*1024+a.charCodeAt(i+1)-56320+65536:a.charCodeAt(i)};function r(a){for(var i="",s=0,u;(u=e.xmlReplacer.exec(a))!==null;){var l=u.index,f=a.charCodeAt(l),h=t.get(f);h!==void 0?(i+=a.substring(s,l)+h,s=l+1):(i+="".concat(a.substring(s,l),"&#x").concat((0,e.getCodePoint)(a,l).toString(16),";"),s=e.xmlReplacer.lastIndex+=+((f&64512)===55296))}return i+a.substr(s)}e.encodeXML=r,e.escape=r;function n(a,i){return function(u){for(var l,f=0,h="";l=a.exec(u);)f!==l.index&&(h+=u.substring(f,l.index)),h+=i.get(l[0].charCodeAt(0)),f=l.index+1;return h+u.substring(f)}}e.escapeUTF8=n(/[&<>'"]/g,t),e.escapeAttribute=n(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),e.escapeText=n(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]))})(vc);var PH=Ee&&Ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vi,"__esModule",{value:!0}),vi.encodeNonAsciiHTML=vi.encodeHTML=void 0;var FH=PH(ch),ww=vc,BH=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function RH(e){return yw(BH,e)}vi.encodeHTML=RH;function UH(e){return yw(ww.xmlReplacer,e)}vi.encodeNonAsciiHTML=UH;function yw(e,t){for(var r="",n=0,a;(a=e.exec(t))!==null;){var i=a.index;r+=t.substring(n,i);var s=t.charCodeAt(i),u=FH.default.get(s);if(typeof u=="object"){if(i+1<t.length){var l=t.charCodeAt(i+1),f=typeof u.n=="number"?u.n===l?u.o:void 0:u.n.get(l);if(f!==void 0){r+=f,n=e.lastIndex+=1;continue}}u=u.v}if(u!==void 0)r+=u,n=i+1;else{var h=(0,ww.getCodePoint)(t,i);r+="&#x".concat(h.toString(16),";"),n=e.lastIndex+=+(h!==s)}}return r+t.substr(n)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLAttribute=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.DecodingMode=e.EntityDecoder=e.encodeHTML5=e.encodeHTML4=e.encodeNonAsciiHTML=e.encodeHTML=e.escapeText=e.escapeAttribute=e.escapeUTF8=e.escape=e.encodeXML=e.encode=e.decodeStrict=e.decode=e.EncodingMode=e.EntityLevel=void 0;var t=Ps,r=vi,n=vc,a;(function(g){g[g.XML=0]="XML",g[g.HTML=1]="HTML"})(a=e.EntityLevel||(e.EntityLevel={}));var i;(function(g){g[g.UTF8=0]="UTF8",g[g.ASCII=1]="ASCII",g[g.Extensive=2]="Extensive",g[g.Attribute=3]="Attribute",g[g.Text=4]="Text"})(i=e.EncodingMode||(e.EncodingMode={}));function s(g,p){p===void 0&&(p=a.XML);var w=typeof p=="number"?p:p.level;if(w===a.HTML){var y=typeof p=="object"?p.mode:void 0;return(0,t.decodeHTML)(g,y)}return(0,t.decodeXML)(g)}e.decode=s;function u(g,p){var w;p===void 0&&(p=a.XML);var y=typeof p=="number"?{level:p}:p;return(w=y.mode)!==null&&w!==void 0||(y.mode=t.DecodingMode.Strict),s(g,y)}e.decodeStrict=u;function l(g,p){p===void 0&&(p=a.XML);var w=typeof p=="number"?{level:p}:p;return w.mode===i.UTF8?(0,n.escapeUTF8)(g):w.mode===i.Attribute?(0,n.escapeAttribute)(g):w.mode===i.Text?(0,n.escapeText)(g):w.level===a.HTML?w.mode===i.ASCII?(0,r.encodeNonAsciiHTML)(g):(0,r.encodeHTML)(g):(0,n.encodeXML)(g)}e.encode=l;var f=vc;Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return f.encodeXML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return f.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return f.escapeUTF8}}),Object.defineProperty(e,"escapeAttribute",{enumerable:!0,get:function(){return f.escapeAttribute}}),Object.defineProperty(e,"escapeText",{enumerable:!0,get:function(){return f.escapeText}});var h=vi;Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return h.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return h.encodeNonAsciiHTML}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return h.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return h.encodeHTML}});var m=Ps;Object.defineProperty(e,"EntityDecoder",{enumerable:!0,get:function(){return m.EntityDecoder}}),Object.defineProperty(e,"DecodingMode",{enumerable:!0,get:function(){return m.DecodingMode}}),Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return m.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return m.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return m.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTMLAttribute",{enumerable:!0,get:function(){return m.decodeHTMLAttribute}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return m.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return m.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return m.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return m.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return m.decodeXML}})})(bw);var go={};Object.defineProperty(go,"__esModule",{value:!0}),go.attributeNames=go.elementNames=void 0,go.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(function(e){return[e.toLowerCase(),e]})),go.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(function(e){return[e.toLowerCase(),e]}));var ho=Ee&&Ee.__assign||function(){return ho=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},ho.apply(this,arguments)},KH=Ee&&Ee.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),zH=Ee&&Ee.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),$H=Ee&&Ee.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&KH(t,e,r);return zH(t,e),t};Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.render=void 0;var ma=$H(fo),bc=bw,xw=go,jH=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function qH(e){return e.replace(/"/g,"&quot;")}function WH(e,t){var r;if(e){var n=((r=t.encodeEntities)!==null&&r!==void 0?r:t.decodeEntities)===!1?qH:t.xmlMode||t.encodeEntities!=="utf8"?bc.encodeXML:bc.escapeAttribute;return Object.keys(e).map(function(a){var i,s,u=(i=e[a])!==null&&i!==void 0?i:"";return t.xmlMode==="foreign"&&(a=(s=xw.attributeNames.get(a))!==null&&s!==void 0?s:a),!t.emptyAttrs&&!t.xmlMode&&u===""?a:"".concat(a,'="').concat(n(u),'"')}).join(" ")}}var _w=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function wc(e,t){t===void 0&&(t={});for(var r=("length"in e)?e:[e],n="",a=0;a<r.length;a++)n+=GH(r[a],t);return n}Bs.render=wc,Bs.default=wc;function GH(e,t){switch(e.type){case ma.Root:return wc(e.children,t);case ma.Doctype:case ma.Directive:return XH(e);case ma.Comment:return tI(e);case ma.CDATA:return eI(e);case ma.Script:case ma.Style:case ma.Tag:return QH(e,t);case ma.Text:return JH(e,t)}}var ZH=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),YH=new Set(["svg","math"]);function QH(e,t){var r;t.xmlMode==="foreign"&&(e.name=(r=xw.elementNames.get(e.name))!==null&&r!==void 0?r:e.name,e.parent&&ZH.has(e.parent.name)&&(t=ho(ho({},t),{xmlMode:!1}))),!t.xmlMode&&YH.has(e.name)&&(t=ho(ho({},t),{xmlMode:"foreign"}));var n="<".concat(e.name),a=WH(e.attribs,t);return a&&(n+=" ".concat(a)),e.children.length===0&&(t.xmlMode?t.selfClosingTags!==!1:t.selfClosingTags&&_w.has(e.name))?(t.xmlMode||(n+=" "),n+="/>"):(n+=">",e.children.length>0&&(n+=wc(e.children,t)),(t.xmlMode||!_w.has(e.name))&&(n+="</".concat(e.name,">"))),n}function XH(e){return"<".concat(e.data,">")}function JH(e,t){var r,n=e.data||"";return((r=t.encodeEntities)!==null&&r!==void 0?r:t.decodeEntities)!==!1&&!(!t.xmlMode&&e.parent&&jH.has(e.parent.name))&&(n=t.xmlMode||t.encodeEntities!=="utf8"?(0,bc.encodeXML)(n):(0,bc.escapeText)(n)),n}function eI(e){return"<![CDATA[".concat(e.children[0].data,"]]>")}function tI(e){return"<!--".concat(e.data,"-->")}var rI=Ee&&Ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(jr,"__esModule",{value:!0}),jr.innerText=jr.textContent=jr.getText=jr.getInnerHTML=jr.getOuterHTML=void 0;var Kn=pa,nI=rI(Bs),aI=fo;function Cw(e,t){return(0,nI.default)(e,t)}jr.getOuterHTML=Cw;function iI(e,t){return(0,Kn.hasChildren)(e)?e.children.map(function(r){return Cw(r,t)}).join(""):""}jr.getInnerHTML=iI;function yc(e){return Array.isArray(e)?e.map(yc).join(""):(0,Kn.isTag)(e)?e.name==="br"?`
`:yc(e.children):(0,Kn.isCDATA)(e)?yc(e.children):(0,Kn.isText)(e)?e.data:""}jr.getText=yc;function dh(e){return Array.isArray(e)?e.map(dh).join(""):(0,Kn.hasChildren)(e)&&!(0,Kn.isComment)(e)?dh(e.children):(0,Kn.isText)(e)?e.data:""}jr.textContent=dh;function fh(e){return Array.isArray(e)?e.map(fh).join(""):(0,Kn.hasChildren)(e)&&(e.type===aI.ElementType.Tag||(0,Kn.isCDATA)(e))?fh(e.children):(0,Kn.isText)(e)?e.data:""}jr.innerText=fh;var er={};Object.defineProperty(er,"__esModule",{value:!0}),er.prevElementSibling=er.nextElementSibling=er.getName=er.hasAttrib=er.getAttributeValue=er.getSiblings=er.getParent=er.getChildren=void 0;var gh=pa;function Sw(e){return(0,gh.hasChildren)(e)?e.children:[]}er.getChildren=Sw;function Ew(e){return e.parent||null}er.getParent=Ew;function oI(e){var t,r,n=Ew(e);if(n!=null)return Sw(n);for(var a=[e],i=e.prev,s=e.next;i!=null;)a.unshift(i),t=i,i=t.prev;for(;s!=null;)a.push(s),r=s,s=r.next;return a}er.getSiblings=oI;function sI(e,t){var r;return(r=e.attribs)===null||r===void 0?void 0:r[t]}er.getAttributeValue=sI;function uI(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}er.hasAttrib=uI;function lI(e){return e.name}er.getName=lI;function cI(e){for(var t,r=e.next;r!==null&&!(0,gh.isTag)(r);)t=r,r=t.next;return r}er.nextElementSibling=cI;function dI(e){for(var t,r=e.prev;r!==null&&!(0,gh.isTag)(r);)t=r,r=t.prev;return r}er.prevElementSibling=dI;var kr={};Object.defineProperty(kr,"__esModule",{value:!0}),kr.prepend=kr.prependChild=kr.append=kr.appendChild=kr.replaceElement=kr.removeElement=void 0;function Rs(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children,r=t.lastIndexOf(e);r>=0&&t.splice(r,1)}e.next=null,e.prev=null,e.parent=null}kr.removeElement=Rs;function fI(e,t){var r=t.prev=e.prev;r&&(r.next=t);var n=t.next=e.next;n&&(n.prev=t);var a=t.parent=e.parent;if(a){var i=a.children;i[i.lastIndexOf(e)]=t,e.parent=null}}kr.replaceElement=fI;function gI(e,t){if(Rs(t),t.next=null,t.parent=e,e.children.push(t)>1){var r=e.children[e.children.length-2];r.next=t,t.prev=r}else t.prev=null}kr.appendChild=gI;function hI(e,t){Rs(t);var r=e.parent,n=e.next;if(t.next=n,t.prev=e,e.next=t,t.parent=r,n){if(n.prev=t,r){var a=r.children;a.splice(a.lastIndexOf(n),0,t)}}else r&&r.children.push(t)}kr.append=hI;function pI(e,t){if(Rs(t),t.parent=e,t.prev=null,e.children.unshift(t)!==1){var r=e.children[1];r.prev=t,t.next=r}else t.next=null}kr.prependChild=pI;function mI(e,t){Rs(t);var r=e.parent;if(r){var n=r.children;n.splice(n.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=r,t.prev=e.prev,t.next=e,e.prev=t}kr.prepend=mI;var br={};Object.defineProperty(br,"__esModule",{value:!0}),br.findAll=br.existsOne=br.findOne=br.findOneChild=br.find=br.filter=void 0;var xc=pa;function vI(e,t,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),Aw(e,Array.isArray(t)?t:[t],r,n)}br.filter=vI;function Aw(e,t,r,n){for(var a=[],i=[t],s=[0];;){if(s[0]>=i[0].length){if(s.length===1)return a;i.shift(),s.shift();continue}var u=i[0][s[0]++];if(e(u)&&(a.push(u),--n<=0))return a;r&&(0,xc.hasChildren)(u)&&u.children.length>0&&(s.unshift(0),i.unshift(u.children))}}br.find=Aw;function bI(e,t){return t.find(e)}br.findOneChild=bI;function Dw(e,t,r){r===void 0&&(r=!0);for(var n=null,a=0;a<t.length&&!n;a++){var i=t[a];if((0,xc.isTag)(i))e(i)?n=i:r&&i.children.length>0&&(n=Dw(e,i.children,!0));else continue}return n}br.findOne=Dw;function kw(e,t){return t.some(function(r){return(0,xc.isTag)(r)&&(e(r)||kw(e,r.children))})}br.existsOne=kw;function wI(e,t){for(var r=[],n=[t],a=[0];;){if(a[0]>=n[0].length){if(n.length===1)return r;n.shift(),a.shift();continue}var i=n[0][a[0]++];(0,xc.isTag)(i)&&(e(i)&&r.push(i),i.children.length>0&&(a.unshift(0),n.unshift(i.children)))}}br.findAll=wI;var qr={};Object.defineProperty(qr,"__esModule",{value:!0}),qr.getElementsByTagType=qr.getElementsByTagName=qr.getElementById=qr.getElements=qr.testElement=void 0;var bi=pa,_c=br,Cc={tag_name:function(e){return typeof e=="function"?function(t){return(0,bi.isTag)(t)&&e(t.name)}:e==="*"?bi.isTag:function(t){return(0,bi.isTag)(t)&&t.name===e}},tag_type:function(e){return typeof e=="function"?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return typeof e=="function"?function(t){return(0,bi.isText)(t)&&e(t.data)}:function(t){return(0,bi.isText)(t)&&t.data===e}}};function Nw(e,t){return typeof t=="function"?function(r){return(0,bi.isTag)(r)&&t(r.attribs[e])}:function(r){return(0,bi.isTag)(r)&&r.attribs[e]===t}}function yI(e,t){return function(r){return e(r)||t(r)}}function Tw(e){var t=Object.keys(e).map(function(r){var n=e[r];return Object.prototype.hasOwnProperty.call(Cc,r)?Cc[r](n):Nw(r,n)});return t.length===0?null:t.reduce(yI)}function xI(e,t){var r=Tw(e);return r?r(t):!0}qr.testElement=xI;function _I(e,t,r,n){n===void 0&&(n=1/0);var a=Tw(e);return a?(0,_c.filter)(a,t,r,n):[]}qr.getElements=_I;function CI(e,t,r){return r===void 0&&(r=!0),Array.isArray(t)||(t=[t]),(0,_c.findOne)(Nw("id",e),t,r)}qr.getElementById=CI;function SI(e,t,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,_c.filter)(Cc.tag_name(e),t,r,n)}qr.getElementsByTagName=SI;function EI(e,t,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,_c.filter)(Cc.tag_type(e),t,r,n)}qr.getElementsByTagType=EI;var Hw={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueSort=e.compareDocumentPosition=e.DocumentPosition=e.removeSubsets=void 0;var t=pa;function r(s){for(var u=s.length;--u>=0;){var l=s[u];if(u>0&&s.lastIndexOf(l,u-1)>=0){s.splice(u,1);continue}for(var f=l.parent;f;f=f.parent)if(s.includes(f)){s.splice(u,1);break}}return s}e.removeSubsets=r;var n;(function(s){s[s.DISCONNECTED=1]="DISCONNECTED",s[s.PRECEDING=2]="PRECEDING",s[s.FOLLOWING=4]="FOLLOWING",s[s.CONTAINS=8]="CONTAINS",s[s.CONTAINED_BY=16]="CONTAINED_BY"})(n=e.DocumentPosition||(e.DocumentPosition={}));function a(s,u){var l=[],f=[];if(s===u)return 0;for(var h=(0,t.hasChildren)(s)?s:s.parent;h;)l.unshift(h),h=h.parent;for(h=(0,t.hasChildren)(u)?u:u.parent;h;)f.unshift(h),h=h.parent;for(var m=Math.min(l.length,f.length),g=0;g<m&&l[g]===f[g];)g++;if(g===0)return n.DISCONNECTED;var p=l[g-1],w=p.children,y=l[g],_=f[g];return w.indexOf(y)>w.indexOf(_)?p===u?n.FOLLOWING|n.CONTAINED_BY:n.FOLLOWING:p===s?n.PRECEDING|n.CONTAINS:n.PRECEDING}e.compareDocumentPosition=a;function i(s){return s=s.filter(function(u,l,f){return!f.includes(u,l+1)}),s.sort(function(u,l){var f=a(u,l);return f&n.PRECEDING?-1:f&n.FOLLOWING?1:0}),s}e.uniqueSort=i})(Hw);var Sc={};Object.defineProperty(Sc,"__esModule",{value:!0}),Sc.getFeed=void 0;var AI=jr,Us=qr;function DI(e){var t=Ec(II,e);return t?t.name==="feed"?kI(t):NI(t):null}Sc.getFeed=DI;function kI(e){var t,r=e.children,n={type:"atom",items:(0,Us.getElementsByTagName)("entry",r).map(function(s){var u,l=s.children,f={media:Iw(l)};Nr(f,"id","id",l),Nr(f,"title","title",l);var h=(u=Ec("link",l))===null||u===void 0?void 0:u.attribs.href;h&&(f.link=h);var m=qa("summary",l)||qa("content",l);m&&(f.description=m);var g=qa("updated",l);return g&&(f.pubDate=new Date(g)),f})};Nr(n,"id","id",r),Nr(n,"title","title",r);var a=(t=Ec("link",r))===null||t===void 0?void 0:t.attribs.href;a&&(n.link=a),Nr(n,"description","subtitle",r);var i=qa("updated",r);return i&&(n.updated=new Date(i)),Nr(n,"author","email",r,!0),n}function NI(e){var t,r,n=(r=(t=Ec("channel",e.children))===null||t===void 0?void 0:t.children)!==null&&r!==void 0?r:[],a={type:e.name.substr(0,3),id:"",items:(0,Us.getElementsByTagName)("item",e.children).map(function(s){var u=s.children,l={media:Iw(u)};Nr(l,"id","guid",u),Nr(l,"title","title",u),Nr(l,"link","link",u),Nr(l,"description","description",u);var f=qa("pubDate",u)||qa("dc:date",u);return f&&(l.pubDate=new Date(f)),l})};Nr(a,"title","title",n),Nr(a,"link","link",n),Nr(a,"description","description",n);var i=qa("lastBuildDate",n);return i&&(a.updated=new Date(i)),Nr(a,"author","managingEditor",n,!0),a}var TI=["url","type","lang"],HI=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function Iw(e){return(0,Us.getElementsByTagName)("media:content",e).map(function(t){for(var r=t.attribs,n={medium:r.medium,isDefault:!!r.isDefault},a=0,i=TI;a<i.length;a++){var s=i[a];r[s]&&(n[s]=r[s])}for(var u=0,l=HI;u<l.length;u++){var s=l[u];r[s]&&(n[s]=parseInt(r[s],10))}return r.expression&&(n.expression=r.expression),n})}function Ec(e,t){return(0,Us.getElementsByTagName)(e,t,!0,1)[0]}function qa(e,t,r){return r===void 0&&(r=!1),(0,AI.textContent)((0,Us.getElementsByTagName)(e,t,r,1)).trim()}function Nr(e,t,r,n,a){a===void 0&&(a=!1);var i=qa(r,n,a);i&&(e[t]=i)}function II(e){return e==="rss"||e==="feed"||e==="rdf:RDF"}(function(e){var t=Ee&&Ee.__createBinding||(Object.create?function(a,i,s,u){u===void 0&&(u=s);var l=Object.getOwnPropertyDescriptor(i,s);(!l||("get"in l?!i.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(a,u,l)}:function(a,i,s,u){u===void 0&&(u=s),a[u]=i[s]}),r=Ee&&Ee.__exportStar||function(a,i){for(var s in a)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&t(i,a,s)};Object.defineProperty(e,"__esModule",{value:!0}),e.hasChildren=e.isDocument=e.isComment=e.isText=e.isCDATA=e.isTag=void 0,r(jr,e),r(er,e),r(kr,e),r(br,e),r(qr,e),r(Hw,e),r(Sc,e);var n=pa;Object.defineProperty(e,"isTag",{enumerable:!0,get:function(){return n.isTag}}),Object.defineProperty(e,"isCDATA",{enumerable:!0,get:function(){return n.isCDATA}}),Object.defineProperty(e,"isText",{enumerable:!0,get:function(){return n.isText}}),Object.defineProperty(e,"isComment",{enumerable:!0,get:function(){return n.isComment}}),Object.defineProperty(e,"isDocument",{enumerable:!0,get:function(){return n.isDocument}}),Object.defineProperty(e,"hasChildren",{enumerable:!0,get:function(){return n.hasChildren}})})(pc),function(e){var t=Ee&&Ee.__createBinding||(Object.create?function(S,H,L,O){O===void 0&&(O=L);var j=Object.getOwnPropertyDescriptor(H,L);(!j||("get"in j?!H.__esModule:j.writable||j.configurable))&&(j={enumerable:!0,get:function(){return H[L]}}),Object.defineProperty(S,O,j)}:function(S,H,L,O){O===void 0&&(O=L),S[O]=H[L]}),r=Ee&&Ee.__setModuleDefault||(Object.create?function(S,H){Object.defineProperty(S,"default",{enumerable:!0,value:H})}:function(S,H){S.default=H}),n=Ee&&Ee.__importStar||function(S){if(S&&S.__esModule)return S;var H={};if(S!=null)for(var L in S)L!=="default"&&Object.prototype.hasOwnProperty.call(S,L)&&t(H,S,L);return r(H,S),H},a=Ee&&Ee.__importDefault||function(S){return S&&S.__esModule?S:{default:S}};Object.defineProperty(e,"__esModule",{value:!0}),e.DomUtils=e.parseFeed=e.getFeed=e.ElementType=e.Tokenizer=e.createDomStream=e.parseDOM=e.parseDocument=e.DefaultHandler=e.DomHandler=e.Parser=void 0;var i=Vs,s=Vs;Object.defineProperty(e,"Parser",{enumerable:!0,get:function(){return s.Parser}});var u=pa,l=pa;Object.defineProperty(e,"DomHandler",{enumerable:!0,get:function(){return l.DomHandler}}),Object.defineProperty(e,"DefaultHandler",{enumerable:!0,get:function(){return l.DomHandler}});function f(S,H){var L=new u.DomHandler(void 0,H);return new i.Parser(L,H).end(S),L.root}e.parseDocument=f;function h(S,H){return f(S,H).children}e.parseDOM=h;function m(S,H,L){var O=new u.DomHandler(S,H,L);return new i.Parser(O,H)}e.createDomStream=m;var g=nh;Object.defineProperty(e,"Tokenizer",{enumerable:!0,get:function(){return a(g).default}}),e.ElementType=n(fo);var p=pc,w=pc;Object.defineProperty(e,"getFeed",{enumerable:!0,get:function(){return w.getFeed}});var y={xmlMode:!0};function _(S,H){return H===void 0&&(H=y),(0,p.getFeed)(h(S,H))}e.parseFeed=_,e.DomUtils=n(pc)}(Jb);var OI=e=>{if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},hh={};Object.defineProperty(hh,"__esModule",{value:!0});/*!
 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */function Ow(e){return Object.prototype.toString.call(e)==="[object Object]"}function MI(e){var t,r;return Ow(e)===!1?!1:(t=e.constructor,t===void 0?!0:(r=t.prototype,!(Ow(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}hh.isPlainObject=MI;var LI=function(t){return VI(t)&&!PI(t)};function VI(e){return!!e&&typeof e=="object"}function PI(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||RI(e)}var FI=typeof Symbol=="function"&&Symbol.for,BI=FI?Symbol.for("react.element"):60103;function RI(e){return e.$$typeof===BI}function UI(e){return Array.isArray(e)?[]:{}}function Ks(e,t){return t.clone!==!1&&t.isMergeableObject(e)?po(UI(e),e,t):e}function KI(e,t,r){return e.concat(t).map(function(n){return Ks(n,r)})}function zI(e,t){if(!t.customMerge)return po;var r=t.customMerge(e);return typeof r=="function"?r:po}function $I(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Mw(e){return Object.keys(e).concat($I(e))}function Lw(e,t){try{return t in e}catch{return!1}}function jI(e,t){return Lw(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function qI(e,t,r){var n={};return r.isMergeableObject(e)&&Mw(e).forEach(function(a){n[a]=Ks(e[a],r)}),Mw(t).forEach(function(a){jI(e,a)||(Lw(e,a)&&r.isMergeableObject(t[a])?n[a]=zI(a,r)(e[a],t[a],r):n[a]=Ks(t[a],r))}),n}function po(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||KI,r.isMergeableObject=r.isMergeableObject||LI,r.cloneUnlessOtherwiseSpecified=Ks;var n=Array.isArray(t),a=Array.isArray(e),i=n===a;return i?n?r.arrayMerge(e,t,r):qI(e,t,r):Ks(t,r)}po.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,a){return po(n,a,r)},{})};var WI=po,GI=WI,Vw={exports:{}};(function(e){(function(t,r){e.exports?e.exports=r():t.parseSrcset=r()})(Ee,function(){return function(t){function r(O){return O===" "||O==="	"||O===`
`||O==="\f"||O==="\r"}function n(O){var j,R=O.exec(t.substring(_));if(R)return j=R[0],_+=j.length,j}for(var a=t.length,i=/^[ \t\n\r\u000c]+/,s=/^[, \t\n\r\u000c]+/,u=/^[^ \t\n\r\u000c]+/,l=/[,]+$/,f=/^\d+$/,h=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,m,g,p,w,y,_=0,S=[];;){if(n(s),_>=a)return S;m=n(u),g=[],m.slice(-1)===","?(m=m.replace(l,""),L()):H()}function H(){for(n(i),p="",w="in descriptor";;){if(y=t.charAt(_),w==="in descriptor")if(r(y))p&&(g.push(p),p="",w="after descriptor");else if(y===","){_+=1,p&&g.push(p),L();return}else if(y==="(")p=p+y,w="in parens";else if(y===""){p&&g.push(p),L();return}else p=p+y;else if(w==="in parens")if(y===")")p=p+y,w="in descriptor";else if(y===""){g.push(p),L();return}else p=p+y;else if(w==="after descriptor"&&!r(y))if(y===""){L();return}else w="in descriptor",_-=1;_+=1}}function L(){var O=!1,j,R,K,M,F={},U,k,C,A,I;for(M=0;M<g.length;M++)U=g[M],k=U[U.length-1],C=U.substring(0,U.length-1),A=parseInt(C,10),I=parseFloat(C),f.test(C)&&k==="w"?((j||R)&&(O=!0),A===0?O=!0:j=A):h.test(C)&&k==="x"?((j||R||K)&&(O=!0),I<0?O=!0:R=I):f.test(C)&&k==="h"?((K||R)&&(O=!0),A===0?O=!0:K=A):O=!0;O?console&&console.log&&console.log("Invalid srcset descriptor found in '"+t+"' at '"+U+"'."):(F.url=m,j&&(F.w=j),R&&(F.d=R),K&&(F.h=K),S.push(F))}}})})(Vw);var ZI=Vw.exports,ph={exports:{}},Tt=String,Pw=function(){return{isColorSupported:!1,reset:Tt,bold:Tt,dim:Tt,italic:Tt,underline:Tt,inverse:Tt,hidden:Tt,strikethrough:Tt,black:Tt,red:Tt,green:Tt,yellow:Tt,blue:Tt,magenta:Tt,cyan:Tt,white:Tt,gray:Tt,bgBlack:Tt,bgRed:Tt,bgGreen:Tt,bgYellow:Tt,bgBlue:Tt,bgMagenta:Tt,bgCyan:Tt,bgWhite:Tt}};ph.exports=Pw(),ph.exports.createColors=Pw;var YI=ph.exports;const kn=Gd(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));let Fw=YI,Bw=kn,mh=class x7 extends Error{constructor(t,r,n,a,i,s){super(t),this.name="CssSyntaxError",this.reason=t,i&&(this.file=i),a&&(this.source=a),s&&(this.plugin=s),typeof r<"u"&&typeof n<"u"&&(typeof r=="number"?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,x7)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let r=this.source;t==null&&(t=Fw.isColorSupported),Bw&&t&&(r=Bw(r));let n=r.split(/\r?\n/),a=Math.max(this.line-3,0),i=Math.min(this.line+2,n.length),s=String(i).length,u,l;if(t){let{bold:f,gray:h,red:m}=Fw.createColors(!0);u=g=>f(m(g)),l=g=>h(g)}else u=l=f=>f;return n.slice(a,i).map((f,h)=>{let m=a+1+h,g=" "+(" "+m).slice(-s)+" | ";if(m===this.line){let p=l(g.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return u(">")+l(g)+f+`
 `+p+u("^")}return" "+l(g)+f}).join(`
`)}toString(){let t=this.showSourceCode();return t&&(t=`

`+t+`
`),this.name+": "+this.message+t}};var vh=mh;mh.default=mh;var zs={};zs.isClean=Symbol("isClean"),zs.my=Symbol("my");const Rw={after:`
`,beforeClose:`
`,beforeComment:`
`,beforeDecl:`
`,beforeOpen:" ",beforeRule:`
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1};function QI(e){return e[0].toUpperCase()+e.slice(1)}let bh=class{constructor(t){this.builder=t}atrule(t,r){let n="@"+t.name,a=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName<"u"?n+=t.raws.afterName:a&&(n+=" "),t.nodes)this.block(t,n+a);else{let i=(t.raws.between||"")+(r?";":"");this.builder(n+a+i,t)}}beforeAfter(t,r){let n;t.type==="decl"?n=this.raw(t,null,"beforeDecl"):t.type==="comment"?n=this.raw(t,null,"beforeComment"):r==="before"?n=this.raw(t,null,"beforeRule"):n=this.raw(t,null,"beforeClose");let a=t.parent,i=0;for(;a&&a.type!=="root";)i+=1,a=a.parent;if(n.includes(`
`)){let s=this.raw(t,null,"indent");if(s.length)for(let u=0;u<i;u++)n+=s}return n}block(t,r){let n=this.raw(t,"between","beforeOpen");this.builder(r+n+"{",t,"start");let a;t.nodes&&t.nodes.length?(this.body(t),a=this.raw(t,"after")):a=this.raw(t,"after","emptyBody"),a&&this.builder(a),this.builder("}",t,"end")}body(t){let r=t.nodes.length-1;for(;r>0&&t.nodes[r].type==="comment";)r-=1;let n=this.raw(t,"semicolon");for(let a=0;a<t.nodes.length;a++){let i=t.nodes[a],s=this.raw(i,"before");s&&this.builder(s),this.stringify(i,r!==a||n)}}comment(t){let r=this.raw(t,"left","commentLeft"),n=this.raw(t,"right","commentRight");this.builder("/*"+r+t.text+n+"*/",t)}decl(t,r){let n=this.raw(t,"between","colon"),a=t.prop+n+this.rawValue(t,"value");t.important&&(a+=t.raws.important||" !important"),r&&(a+=";"),this.builder(a,t)}document(t){this.body(t)}raw(t,r,n){let a;if(n||(n=r),r&&(a=t.raws[r],typeof a<"u"))return a;let i=t.parent;if(n==="before"&&(!i||i.type==="root"&&i.first===t||i&&i.type==="document"))return"";if(!i)return Rw[n];let s=t.root();if(s.rawCache||(s.rawCache={}),typeof s.rawCache[n]<"u")return s.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(t,n);{let u="raw"+QI(n);this[u]?a=this[u](s,t):s.walk(l=>{if(a=l.raws[r],typeof a<"u")return!1})}return typeof a>"u"&&(a=Rw[n]),s.rawCache[n]=a,a}rawBeforeClose(t){let r;return t.walk(n=>{if(n.nodes&&n.nodes.length>0&&typeof n.raws.after<"u")return r=n.raws.after,r.includes(`
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawBeforeComment(t,r){let n;return t.walkComments(a=>{if(typeof a.raws.before<"u")return n=a.raws.before,n.includes(`
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(t,r){let n;return t.walkDecls(a=>{if(typeof a.raws.before<"u")return n=a.raws.before,n.includes(`
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(t){let r;return t.walk(n=>{if(n.type!=="decl"&&(r=n.raws.between,typeof r<"u"))return!1}),r}rawBeforeRule(t){let r;return t.walk(n=>{if(n.nodes&&(n.parent!==t||t.first!==n)&&typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawColon(t){let r;return t.walkDecls(n=>{if(typeof n.raws.between<"u")return r=n.raws.between.replace(/[^\s:]/g,""),!1}),r}rawEmptyBody(t){let r;return t.walk(n=>{if(n.nodes&&n.nodes.length===0&&(r=n.raws.after,typeof r<"u"))return!1}),r}rawIndent(t){if(t.raws.indent)return t.raws.indent;let r;return t.walk(n=>{let a=n.parent;if(a&&a!==t&&a.parent&&a.parent===t&&typeof n.raws.before<"u"){let i=n.raws.before.split(`
`);return r=i[i.length-1],r=r.replace(/\S/g,""),!1}}),r}rawSemicolon(t){let r;return t.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(r=n.raws.semicolon,typeof r<"u"))return!1}),r}rawValue(t,r){let n=t[r],a=t.raws[r];return a&&a.value===n?a.raw:n}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,r){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,r)}};var Uw=bh;bh.default=bh;let XI=Uw;function wh(e,t){new XI(t).stringify(e)}var Ac=wh;wh.default=wh;let{isClean:Dc,my:JI}=zs,eO=vh,tO=Uw,rO=Ac;function yh(e,t){let r=new e.constructor;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n)||n==="proxyCache")continue;let a=e[n],i=typeof a;n==="parent"&&i==="object"?t&&(r[n]=t):n==="source"?r[n]=a:Array.isArray(a)?r[n]=a.map(s=>yh(s,r)):(i==="object"&&a!==null&&(a=yh(a)),r[n]=a)}return r}let xh=class{constructor(t={}){this.raws={},this[Dc]=!1,this[JI]=!0;for(let r in t)if(r==="nodes"){this.nodes=[];for(let n of t[r])typeof n.clone=="function"?this.append(n.clone()):this.append(n)}else this[r]=t[r]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let r=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${r.input.from}:${r.start.line}:${r.start.column}$&`)}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t={}){for(let r in t)this[r]=t[r];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t={}){let r=yh(this);for(let n in t)r[n]=t[n];return r}cloneAfter(t={}){let r=this.clone(t);return this.parent.insertAfter(this,r),r}cloneBefore(t={}){let r=this.clone(t);return this.parent.insertBefore(this,r),r}error(t,r={}){if(this.source){let{end:n,start:a}=this.rangeBy(r);return this.source.input.error(t,{column:a.column,line:a.line},{column:n.column,line:n.line},r)}return new eO(t)}getProxyProcessor(){return{get(t,r){return r==="proxyOf"?t:r==="root"?()=>t.root().toProxy():t[r]},set(t,r,n){return t[r]===n||(t[r]=n,(r==="prop"||r==="value"||r==="name"||r==="params"||r==="important"||r==="text")&&t.markDirty()),!0}}}markDirty(){if(this[Dc]){this[Dc]=!1;let t=this;for(;t=t.parent;)t[Dc]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t,r){let n=this.source.start;if(t.index)n=this.positionInside(t.index,r);else if(t.word){r=this.toString();let a=r.indexOf(t.word);a!==-1&&(n=this.positionInside(a,r))}return n}positionInside(t,r){let n=r||this.toString(),a=this.source.start.column,i=this.source.start.line;for(let s=0;s<t;s++)n[s]===`
`?(a=1,i+=1):a+=1;return{column:a,line:i}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t){let r={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(t.word){let a=this.toString(),i=a.indexOf(t.word);i!==-1&&(r=this.positionInside(i,a),n=this.positionInside(i+t.word.length,a))}else t.start?r={column:t.start.column,line:t.start.line}:t.index&&(r=this.positionInside(t.index)),t.end?n={column:t.end.column,line:t.end.line}:t.endIndex?n=this.positionInside(t.endIndex):t.index&&(n=this.positionInside(t.index+1));return(n.line<r.line||n.line===r.line&&n.column<=r.column)&&(n={column:r.column+1,line:r.line}),{end:n,start:r}}raw(t,r){return new tO().raw(this,t,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...t){if(this.parent){let r=this,n=!1;for(let a of t)a===this?n=!0:n?(this.parent.insertAfter(r,a),r=a):this.parent.insertBefore(r,a);n||this.remove()}return this}root(){let t=this;for(;t.parent&&t.parent.type!=="document";)t=t.parent;return t}toJSON(t,r){let n={},a=r==null;r=r||new Map;let i=0;for(let s in this){if(!Object.prototype.hasOwnProperty.call(this,s)||s==="parent"||s==="proxyCache")continue;let u=this[s];if(Array.isArray(u))n[s]=u.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,r):l);else if(typeof u=="object"&&u.toJSON)n[s]=u.toJSON(null,r);else if(s==="source"){let l=r.get(u.input);l==null&&(l=i,r.set(u.input,i),i++),n[s]={end:u.end,inputId:l,start:u.start}}else n[s]=u}return a&&(n.inputs=[...r.keys()].map(s=>s.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t=rO){t.stringify&&(t=t.stringify);let r="";return t(this,n=>{r+=n}),r}warn(t,r,n){let a={node:this};for(let i in n)a[i]=n[i];return t.warn(r,a)}get proxyOf(){return this}};var kc=xh;xh.default=xh;let nO=kc,_h=class extends nO{constructor(t){t&&typeof t.value<"u"&&typeof t.value!="string"&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var Nc=_h;_h.default=_h;let aO="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var iO={nanoid:(e=21)=>{let t="",r=e;for(;r--;)t+=aO[Math.random()*64|0];return t},customAlphabet:(e,t=21)=>(r=t)=>{let n="",a=r;for(;a--;)n+=e[Math.random()*e.length|0];return n}};let{SourceMapConsumer:Kw,SourceMapGenerator:zw}=kn,{existsSync:oO,readFileSync:sO}=kn,{dirname:Ch,join:uO}=kn;function lO(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}let Sh=class{constructor(t,r){if(r.map===!1)return;this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let n=r.map?r.map.prev:void 0,a=this.loadMap(r.from,n);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=Ch(this.mapFile)),a&&(this.text=a)}consumer(){return this.consumerCache||(this.consumerCache=new Kw(this.text)),this.consumerCache}decodeInline(t){let r=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,a=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/;if(a.test(t)||i.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(r.test(t)||n.test(t))return lO(t.substr(RegExp.lastMatch.length));let s=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+s)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return typeof t!="object"?!1:typeof t.mappings=="string"||typeof t._mappings=="string"||Array.isArray(t.sections)}loadAnnotation(t){let r=t.match(/\/\*\s*# sourceMappingURL=/gm);if(!r)return;let n=t.lastIndexOf(r.pop()),a=t.indexOf("*/",n);n>-1&&a>-1&&(this.annotation=this.getAnnotationURL(t.substring(n,a)))}loadFile(t){if(this.root=Ch(t),oO(t))return this.mapFile=t,sO(t,"utf-8").toString().trim()}loadMap(t,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let n=r(t);if(n){let a=this.loadFile(n);if(!a)throw new Error("Unable to load previous source map: "+n.toString());return a}}else{if(r instanceof Kw)return zw.fromSourceMap(r).toString();if(r instanceof zw)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let n=this.annotation;return t&&(n=uO(Ch(t),n)),this.loadFile(n)}}}startWith(t,r){return t?t.substr(0,r.length)===r:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var $w=Sh;Sh.default=Sh;let{SourceMapConsumer:cO,SourceMapGenerator:dO}=kn,{fileURLToPath:jw,pathToFileURL:Tc}=kn,{isAbsolute:Eh,resolve:Ah}=kn,{nanoid:fO}=iO,Dh=kn,qw=vh,gO=$w,kh=Symbol("fromOffsetCache"),hO=!!(cO&&dO),Ww=!!(Ah&&Eh),Hc=class{constructor(t,r={}){if(t===null||typeof t>"u"||typeof t=="object"&&!t.toString)throw new Error(`PostCSS received ${t} instead of CSS string`);if(this.css=t.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,r.from&&(!Ww||/^\w+:\/\//.test(r.from)||Eh(r.from)?this.file=r.from:this.file=Ah(r.from)),Ww&&hO){let n=new gO(this.css,r);if(n.text){this.map=n;let a=n.consumer().file;!this.file&&a&&(this.file=this.mapResolve(a))}}this.file||(this.id="<input css "+fO(6)+">"),this.map&&(this.map.file=this.from)}error(t,r,n,a={}){let i,s,u;if(r&&typeof r=="object"){let f=r,h=n;if(typeof f.offset=="number"){let m=this.fromOffset(f.offset);r=m.line,n=m.col}else r=f.line,n=f.column;if(typeof h.offset=="number"){let m=this.fromOffset(h.offset);s=m.line,u=m.col}else s=h.line,u=h.column}else if(!n){let f=this.fromOffset(r);r=f.line,n=f.col}let l=this.origin(r,n,s,u);return l?i=new qw(t,l.endLine===void 0?l.line:{column:l.column,line:l.line},l.endLine===void 0?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,a.plugin):i=new qw(t,s===void 0?r:{column:n,line:r},s===void 0?n:{column:u,line:s},this.css,this.file,a.plugin),i.input={column:n,endColumn:u,endLine:s,line:r,source:this.css},this.file&&(Tc&&(i.input.url=Tc(this.file).toString()),i.input.file=this.file),i}fromOffset(t){let r,n;if(this[kh])n=this[kh];else{let i=this.css.split(`
`);n=new Array(i.length);let s=0;for(let u=0,l=i.length;u<l;u++)n[u]=s,s+=i[u].length+1;this[kh]=n}r=n[n.length-1];let a=0;if(t>=r)a=n.length-1;else{let i=n.length-2,s;for(;a<i;)if(s=a+(i-a>>1),t<n[s])i=s-1;else if(t>=n[s+1])a=s+1;else{a=s;break}}return{col:t-n[a]+1,line:a+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:Ah(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,r,n,a){if(!this.map)return!1;let i=this.map.consumer(),s=i.originalPositionFor({column:r,line:t});if(!s.source)return!1;let u;typeof n=="number"&&(u=i.originalPositionFor({column:a,line:n}));let l;Eh(s.source)?l=Tc(s.source):l=new URL(s.source,this.map.consumer().sourceRoot||Tc(this.map.mapFile));let f={column:s.column,endColumn:u&&u.column,endLine:u&&u.line,line:s.line,url:l.toString()};if(l.protocol==="file:")if(jw)f.file=jw(l);else throw new Error("file: protocol is not available in this PostCSS build");let h=i.sourceContentFor(s.source);return h&&(f.source=h),f}toJSON(){let t={};for(let r of["hasBOM","css","file","id"])this[r]!=null&&(t[r]=this[r]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}get from(){return this.file||this.id}};var Ic=Hc;Hc.default=Hc,Dh&&Dh.registerInput&&Dh.registerInput(Hc);let{SourceMapConsumer:Gw,SourceMapGenerator:Oc}=kn,{dirname:Mc,relative:Zw,resolve:Yw,sep:Qw}=kn,{pathToFileURL:Xw}=kn,pO=Ic,mO=!!(Gw&&Oc),vO=!!(Mc&&Yw&&Zw&&Qw);var Jw=class{constructor(t,r,n,a){this.stringify=t,this.mapOpts=n.map||{},this.root=r,this.opts=n,this.css=a,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;this.isInline()?t="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?t=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?t=this.mapOpts.annotation(this.opts.to,this.root):t=this.outputFile()+".map";let r=`
`;this.css.includes(`\r
`)&&(r=`\r
`),this.css+=r+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let r=this.toUrl(this.path(t.file)),n=t.root||Mc(t.file),a;this.mapOpts.sourcesContent===!1?(a=new Gw(t.text),a.sourcesContent&&(a.sourcesContent=a.sourcesContent.map(()=>null))):a=t.consumer(),this.map.applySourceMap(a,r,this.toUrl(this.path(n)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let t;for(let r=this.root.nodes.length-1;r>=0;r--)t=this.root.nodes[r],t.type==="comment"&&t.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),vO&&mO&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,r=>{t+=r}),[t]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=Oc.fromSourceMap(t)}else this.map=new Oc({file:this.outputFile()}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new Oc({file:this.outputFile()});let t=1,r=1,n="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},i,s;this.stringify(this.root,(u,l,f)=>{if(this.css+=u,l&&f!=="end"&&(a.generated.line=t,a.generated.column=r-1,l.source&&l.source.start?(a.source=this.sourcePath(l),a.original.line=l.source.start.line,a.original.column=l.source.start.column-1,this.map.addMapping(a)):(a.source=n,a.original.line=1,a.original.column=0,this.map.addMapping(a))),i=u.match(/\n/g),i?(t+=i.length,s=u.lastIndexOf(`
`),r=u.length-s):r+=u.length,l&&f!=="start"){let h=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==h.last||h.raws.semicolon)&&(l.source&&l.source.end?(a.source=this.sourcePath(l),a.original.line=l.source.end.line,a.original.column=l.source.end.column-1,a.generated.line=t,a.generated.column=r-2,this.map.addMapping(a)):(a.source=n,a.original.line=1,a.original.column=0,a.generated.line=t,a.generated.column=r-1,this.map.addMapping(a)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(t=>t.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let t=this.mapOpts.annotation;return typeof t<"u"&&t!==!0?!1:this.previous().length?this.previous().some(r=>r.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(t=>t.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute||t.charCodeAt(0)===60||/^\w+:\/\//.test(t))return t;let r=this.memoizedPaths.get(t);if(r)return r;let n=this.opts.to?Mc(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=Mc(Yw(n,this.mapOpts.annotation)));let a=Zw(n,t);return this.memoizedPaths.set(t,a),a}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){let r=t.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let t=new pO(this.css,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk(r=>{if(r.source){let n=r.source.input.from;if(n&&!t[n]){t[n]=!0;let a=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(a,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let r=this.memoizedFileURLs.get(t);if(r)return r;if(Xw){let n=Xw(t).toString();return this.memoizedFileURLs.set(t,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let r=this.memoizedURLs.get(t);if(r)return r;Qw==="\\"&&(t=t.replace(/\\/g,"/"));let n=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,n),n}};let bO=kc,Nh=class extends bO{constructor(t){super(t),this.type="comment"}};var Lc=Nh;Nh.default=Nh;let{isClean:ey,my:ty}=zs,ry=Nc,ny=Lc,wO=kc,ay,Th,Hh,iy;function oy(e){return e.map(t=>(t.nodes&&(t.nodes=oy(t.nodes)),delete t.source,t))}function sy(e){if(e[ey]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)sy(t)}let va=class _7 extends wO{append(...t){for(let r of t){let n=this.normalize(r,this.last);for(let a of n)this.proxyOf.nodes.push(a)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let r of this.nodes)r.cleanRaws(t)}each(t){if(!this.proxyOf.nodes)return;let r=this.getIterator(),n,a;for(;this.indexes[r]<this.proxyOf.nodes.length&&(n=this.indexes[r],a=t(this.proxyOf.nodes[n],n),a!==!1);)this.indexes[r]+=1;return delete this.indexes[r],a}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get(t,r){return r==="proxyOf"?t:t[r]?r==="each"||typeof r=="string"&&r.startsWith("walk")?(...n)=>t[r](...n.map(a=>typeof a=="function"?(i,s)=>a(i.toProxy(),s):a)):r==="every"||r==="some"?n=>t[r]((a,...i)=>n(a.toProxy(),...i)):r==="root"?()=>t.root().toProxy():r==="nodes"?t.nodes.map(n=>n.toProxy()):r==="first"||r==="last"?t[r].toProxy():t[r]:t[r]},set(t,r,n){return t[r]===n||(t[r]=n,(r==="name"||r==="params"||r==="selector")&&t.markDirty()),!0}}}index(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,r){let n=this.index(t),a=this.normalize(r,this.proxyOf.nodes[n]).reverse();n=this.index(t);for(let s of a)this.proxyOf.nodes.splice(n+1,0,s);let i;for(let s in this.indexes)i=this.indexes[s],n<i&&(this.indexes[s]=i+a.length);return this.markDirty(),this}insertBefore(t,r){let n=this.index(t),a=n===0?"prepend":!1,i=this.normalize(r,this.proxyOf.nodes[n],a).reverse();n=this.index(t);for(let u of i)this.proxyOf.nodes.splice(n,0,u);let s;for(let u in this.indexes)s=this.indexes[u],n<=s&&(this.indexes[u]=s+i.length);return this.markDirty(),this}normalize(t,r){if(typeof t=="string")t=oy(ay(t).nodes);else if(Array.isArray(t)){t=t.slice(0);for(let a of t)a.parent&&a.parent.removeChild(a,"ignore")}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(let a of t)a.parent&&a.parent.removeChild(a,"ignore")}else if(t.type)t=[t];else if(t.prop){if(typeof t.value>"u")throw new Error("Value field is missed in node creation");typeof t.value!="string"&&(t.value=String(t.value)),t=[new ry(t)]}else if(t.selector)t=[new Th(t)];else if(t.name)t=[new Hh(t)];else if(t.text)t=[new ny(t)];else throw new Error("Unknown node type in node creation");return t.map(a=>(a[ty]||_7.rebuild(a),a=a.proxyOf,a.parent&&a.parent.removeChild(a),a[ey]&&sy(a),typeof a.raws.before>"u"&&r&&typeof r.raws.before<"u"&&(a.raws.before=r.raws.before.replace(/\S/g,"")),a.parent=this.proxyOf,a))}prepend(...t){t=t.reverse();for(let r of t){let n=this.normalize(r,this.first,"prepend").reverse();for(let a of n)this.proxyOf.nodes.unshift(a);for(let a in this.indexes)this.indexes[a]=this.indexes[a]+n.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);let r;for(let n in this.indexes)r=this.indexes[n],r>=t&&(this.indexes[n]=r-1);return this.markDirty(),this}replaceValues(t,r,n){return n||(n=r,r={}),this.walkDecls(a=>{r.props&&!r.props.includes(a.prop)||r.fast&&!a.value.includes(r.fast)||(a.value=a.value.replace(t,n))}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each((r,n)=>{let a;try{a=t(r,n)}catch(i){throw r.addToError(i)}return a!==!1&&r.walk&&(a=r.walk(t)),a})}walkAtRules(t,r){return r?t instanceof RegExp?this.walk((n,a)=>{if(n.type==="atrule"&&t.test(n.name))return r(n,a)}):this.walk((n,a)=>{if(n.type==="atrule"&&n.name===t)return r(n,a)}):(r=t,this.walk((n,a)=>{if(n.type==="atrule")return r(n,a)}))}walkComments(t){return this.walk((r,n)=>{if(r.type==="comment")return t(r,n)})}walkDecls(t,r){return r?t instanceof RegExp?this.walk((n,a)=>{if(n.type==="decl"&&t.test(n.prop))return r(n,a)}):this.walk((n,a)=>{if(n.type==="decl"&&n.prop===t)return r(n,a)}):(r=t,this.walk((n,a)=>{if(n.type==="decl")return r(n,a)}))}walkRules(t,r){return r?t instanceof RegExp?this.walk((n,a)=>{if(n.type==="rule"&&t.test(n.selector))return r(n,a)}):this.walk((n,a)=>{if(n.type==="rule"&&n.selector===t)return r(n,a)}):(r=t,this.walk((n,a)=>{if(n.type==="rule")return r(n,a)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};va.registerParse=e=>{ay=e},va.registerRule=e=>{Th=e},va.registerAtRule=e=>{Hh=e},va.registerRoot=e=>{iy=e};var wi=va;va.default=va,va.rebuild=e=>{e.type==="atrule"?Object.setPrototypeOf(e,Hh.prototype):e.type==="rule"?Object.setPrototypeOf(e,Th.prototype):e.type==="decl"?Object.setPrototypeOf(e,ry.prototype):e.type==="comment"?Object.setPrototypeOf(e,ny.prototype):e.type==="root"&&Object.setPrototypeOf(e,iy.prototype),e[ty]=!0,e.nodes&&e.nodes.forEach(t=>{va.rebuild(t)})};let yO=wi,uy,ly,$s=class extends yO{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(t={}){return new uy(new ly,this,t).stringify()}};$s.registerLazyResult=e=>{uy=e},$s.registerProcessor=e=>{ly=e};var Ih=$s;$s.default=$s;let Oh=class{constructor(t,r={}){if(this.type="warning",this.text=t,r.node&&r.node.source){let n=r.node.rangeBy(r);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in r)this[n]=r[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var cy=Oh;Oh.default=Oh;let xO=cy,Mh=class{constructor(t,r,n){this.processor=t,this.messages=[],this.root=r,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let n=new xO(t,r);return this.messages.push(n),n}warnings(){return this.messages.filter(t=>t.type==="warning")}get content(){return this.css}};var Lh=Mh;Mh.default=Mh;const Vh="'".charCodeAt(0),dy='"'.charCodeAt(0),Vc="\\".charCodeAt(0),fy="/".charCodeAt(0),Pc=`
`.charCodeAt(0),js=" ".charCodeAt(0),Fc="\f".charCodeAt(0),Bc="	".charCodeAt(0),Rc="\r".charCodeAt(0),_O="[".charCodeAt(0),CO="]".charCodeAt(0),SO="(".charCodeAt(0),EO=")".charCodeAt(0),AO="{".charCodeAt(0),DO="}".charCodeAt(0),kO=";".charCodeAt(0),NO="*".charCodeAt(0),TO=":".charCodeAt(0),HO="@".charCodeAt(0),Uc=/[\t\n\f\r "#'()/;[\\\]{}]/g,Kc=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,IO=/.[\n"'(/\\]/,gy=/[\da-f]/i;var OO=function(t,r={}){let n=t.css.valueOf(),a=r.ignoreErrors,i,s,u,l,f,h,m,g,p,w,y=n.length,_=0,S=[],H=[];function L(){return _}function O(M){throw t.error("Unclosed "+M,_)}function j(){return H.length===0&&_>=y}function R(M){if(H.length)return H.pop();if(_>=y)return;let F=M?M.ignoreUnclosed:!1;switch(i=n.charCodeAt(_),i){case Pc:case js:case Bc:case Rc:case Fc:{s=_;do s+=1,i=n.charCodeAt(s);while(i===js||i===Pc||i===Bc||i===Rc||i===Fc);w=["space",n.slice(_,s)],_=s-1;break}case _O:case CO:case AO:case DO:case TO:case kO:case EO:{let U=String.fromCharCode(i);w=[U,U,_];break}case SO:{if(g=S.length?S.pop()[1]:"",p=n.charCodeAt(_+1),g==="url"&&p!==Vh&&p!==dy&&p!==js&&p!==Pc&&p!==Bc&&p!==Fc&&p!==Rc){s=_;do{if(h=!1,s=n.indexOf(")",s+1),s===-1)if(a||F){s=_;break}else O("bracket");for(m=s;n.charCodeAt(m-1)===Vc;)m-=1,h=!h}while(h);w=["brackets",n.slice(_,s+1),_,s],_=s}else s=n.indexOf(")",_+1),l=n.slice(_,s+1),s===-1||IO.test(l)?w=["(","(",_]:(w=["brackets",l,_,s],_=s);break}case Vh:case dy:{u=i===Vh?"'":'"',s=_;do{if(h=!1,s=n.indexOf(u,s+1),s===-1)if(a||F){s=_+1;break}else O("string");for(m=s;n.charCodeAt(m-1)===Vc;)m-=1,h=!h}while(h);w=["string",n.slice(_,s+1),_,s],_=s;break}case HO:{Uc.lastIndex=_+1,Uc.test(n),Uc.lastIndex===0?s=n.length-1:s=Uc.lastIndex-2,w=["at-word",n.slice(_,s+1),_,s],_=s;break}case Vc:{for(s=_,f=!0;n.charCodeAt(s+1)===Vc;)s+=1,f=!f;if(i=n.charCodeAt(s+1),f&&i!==fy&&i!==js&&i!==Pc&&i!==Bc&&i!==Rc&&i!==Fc&&(s+=1,gy.test(n.charAt(s)))){for(;gy.test(n.charAt(s+1));)s+=1;n.charCodeAt(s+1)===js&&(s+=1)}w=["word",n.slice(_,s+1),_,s],_=s;break}default:{i===fy&&n.charCodeAt(_+1)===NO?(s=n.indexOf("*/",_+2)+1,s===0&&(a||F?s=n.length:O("comment")),w=["comment",n.slice(_,s+1),_,s],_=s):(Kc.lastIndex=_+1,Kc.test(n),Kc.lastIndex===0?s=n.length-1:s=Kc.lastIndex-2,w=["word",n.slice(_,s+1),_,s],S.push(w),_=s);break}}return _++,w}function K(M){H.push(M)}return{back:K,endOfFile:j,nextToken:R,position:L}};let hy=wi,zc=class extends hy{constructor(t){super(t),this.type="atrule"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}};var Ph=zc;zc.default=zc,hy.registerAtRule(zc);let py=wi,my,vy,mo=class extends py{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,r,n){let a=super.normalize(t);if(r){if(n==="prepend")this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(let i of a)i.raws.before=r.raws.before}return a}removeChild(t,r){let n=this.index(t);return!r&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(t)}toResult(t={}){return new my(new vy,this,t).stringify()}};mo.registerLazyResult=e=>{my=e},mo.registerProcessor=e=>{vy=e};var qs=mo;mo.default=mo,py.registerRoot(mo);let Ws={comma(e){return Ws.split(e,[","],!0)},space(e){let t=[" ",`
`,"	"];return Ws.split(e,t)},split(e,t,r){let n=[],a="",i=!1,s=0,u=!1,l="",f=!1;for(let h of e)f?f=!1:h==="\\"?f=!0:u?h===l&&(u=!1):h==='"'||h==="'"?(u=!0,l=h):h==="("?s+=1:h===")"?s>0&&(s-=1):s===0&&t.includes(h)&&(i=!0),i?(a!==""&&n.push(a.trim()),a="",i=!1):a+=h;return(r||a!=="")&&n.push(a.trim()),n}};var by=Ws;Ws.default=Ws;let wy=wi,MO=by,$c=class extends wy{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return MO.comma(this.selector)}set selectors(t){let r=this.selector?this.selector.match(/,\s*/):null,n=r?r[0]:","+this.raw("between","beforeOpen");this.selector=t.join(n)}};var Fh=$c;$c.default=$c,wy.registerRule($c);let LO=Nc,VO=OO,PO=Lc,FO=Ph,BO=qs,yy=Fh;const xy={empty:!0,space:!0};function RO(e){for(let t=e.length-1;t>=0;t--){let r=e[t],n=r[3]||r[2];if(n)return n}}var UO=class{constructor(t){this.input=t,this.root=new BO,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let r=new FO;r.name=t[1].slice(1),r.name===""&&this.unnamedAtrule(r,t),this.init(r,t[2]);let n,a,i,s=!1,u=!1,l=[],f=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),n=t[0],n==="("||n==="["?f.push(n==="("?")":"]"):n==="{"&&f.length>0?f.push("}"):n===f[f.length-1]&&f.pop(),f.length===0)if(n===";"){r.source.end=this.getPosition(t[2]),r.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){u=!0;break}else if(n==="}"){if(l.length>0){for(i=l.length-1,a=l[i];a&&a[0]==="space";)a=l[--i];a&&(r.source.end=this.getPosition(a[3]||a[2]),r.source.end.offset++)}this.end(t);break}else l.push(t);else l.push(t);if(this.tokenizer.endOfFile()){s=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(r.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(r,"params",l),s&&(t=l[l.length-1],r.source.end=this.getPosition(t[3]||t[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),u&&(r.nodes=[],this.current=r)}checkMissedSemicolon(t){let r=this.colon(t);if(r===!1)return;let n=0,a;for(let i=r-1;i>=0&&(a=t[i],!(a[0]!=="space"&&(n+=1,n===2)));i--);throw this.input.error("Missed semicolon",a[0]==="word"?a[3]+1:a[2])}colon(t){let r=0,n,a,i;for(let[s,u]of t.entries()){if(n=u,a=n[0],a==="("&&(r+=1),a===")"&&(r-=1),r===0&&a===":")if(!i)this.doubleColon(n);else{if(i[0]==="word"&&i[1]==="progid")continue;return s}i=n}return!1}comment(t){let r=new PO;this.init(r,t[2]),r.source.end=this.getPosition(t[3]||t[2]),r.source.end.offset++;let n=t[1].slice(2,-2);if(/^\s*$/.test(n))r.text="",r.raws.left=n,r.raws.right="";else{let a=n.match(/^(\s*)([^]*\S)(\s*)$/);r.text=a[2],r.raws.left=a[1],r.raws.right=a[3]}}createTokenizer(){this.tokenizer=VO(this.input)}decl(t,r){let n=new LO;this.init(n,t[0][2]);let a=t[t.length-1];for(a[0]===";"&&(this.semicolon=!0,t.pop()),n.source.end=this.getPosition(a[3]||a[2]||RO(t)),n.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),n.raws.before+=t.shift()[1];for(n.source.start=this.getPosition(t[0][2]),n.prop="";t.length;){let f=t[0][0];if(f===":"||f==="space"||f==="comment")break;n.prop+=t.shift()[1]}n.raws.between="";let i;for(;t.length;)if(i=t.shift(),i[0]===":"){n.raws.between+=i[1];break}else i[0]==="word"&&/\w/.test(i[1])&&this.unknownWord([i]),n.raws.between+=i[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let s=[],u;for(;t.length&&(u=t[0][0],!(u!=="space"&&u!=="comment"));)s.push(t.shift());this.precheckMissedSemicolon(t);for(let f=t.length-1;f>=0;f--){if(i=t[f],i[1].toLowerCase()==="!important"){n.important=!0;let h=this.stringFrom(t,f);h=this.spacesFromEnd(t)+h,h!==" !important"&&(n.raws.important=h);break}else if(i[1].toLowerCase()==="important"){let h=t.slice(0),m="";for(let g=f;g>0;g--){let p=h[g][0];if(m.trim().indexOf("!")===0&&p!=="space")break;m=h.pop()[1]+m}m.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=m,t=h)}if(i[0]!=="space"&&i[0]!=="comment")break}t.some(f=>f[0]!=="space"&&f[0]!=="comment")&&(n.raws.between+=s.map(f=>f[1]).join(""),s=[]),this.raw(n,"value",s.concat(t),r),n.value.includes(":")&&!r&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let r=new yy;this.init(r,t[2]),r.selector="",r.raws.between="",this.current=r}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let r=this.input.fromOffset(t);return{column:r.col,line:r.line,offset:t}}init(t,r){this.current.push(t),t.source={input:this.input,start:this.getPosition(r)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let r=!1,n=null,a=!1,i=null,s=[],u=t[1].startsWith("--"),l=[],f=t;for(;f;){if(n=f[0],l.push(f),n==="("||n==="[")i||(i=f),s.push(n==="("?")":"]");else if(u&&a&&n==="{")i||(i=f),s.push("}");else if(s.length===0)if(n===";")if(a){this.decl(l,u);return}else break;else if(n==="{"){this.rule(l);return}else if(n==="}"){this.tokenizer.back(l.pop()),r=!0;break}else n===":"&&(a=!0);else n===s[s.length-1]&&(s.pop(),s.length===0&&(i=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),s.length>0&&this.unclosedBracket(i),r&&a){if(!u)for(;l.length&&(f=l[l.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,u)}else this.unknownWord(l)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,r,n,a){let i,s,u=n.length,l="",f=!0,h,m;for(let g=0;g<u;g+=1)i=n[g],s=i[0],s==="space"&&g===u-1&&!a?f=!1:s==="comment"?(m=n[g-1]?n[g-1][0]:"empty",h=n[g+1]?n[g+1][0]:"empty",!xy[m]&&!xy[h]?l.slice(-1)===","?f=!1:l+=i[1]:f=!1):l+=i[1];if(!f){let g=n.reduce((p,w)=>p+w[1],"");t.raws[r]={raw:g,value:l}}t[r]=l}rule(t){t.pop();let r=new yy;this.init(r,t[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(r,"selector",t),this.current=r}spacesAndCommentsFromEnd(t){let r,n="";for(;t.length&&(r=t[t.length-1][0],!(r!=="space"&&r!=="comment"));)n=t.pop()[1]+n;return n}spacesAndCommentsFromStart(t){let r,n="";for(;t.length&&(r=t[0][0],!(r!=="space"&&r!=="comment"));)n+=t.shift()[1];return n}spacesFromEnd(t){let r,n="";for(;t.length&&(r=t[t.length-1][0],r==="space");)n=t.pop()[1]+n;return n}stringFrom(t,r){let n="";for(let a=r;a<t.length;a++)n+=t[a][1];return t.splice(r,t.length-r),n}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})}};let KO=wi,zO=UO,$O=Ic;function jc(e,t){let r=new $O(e,t),n=new zO(r);try{n.parse()}catch(a){throw a}return n.root}var Bh=jc;jc.default=jc,KO.registerParse(jc);let{isClean:zn,my:jO}=zs,qO=Jw,WO=Ac,GO=wi,ZO=Ih,_y=Lh,YO=Bh,QO=qs;const XO={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},JO={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},eM={Once:!0,postcssPlugin:!0,prepare:!0},vo=0;function Gs(e){return typeof e=="object"&&typeof e.then=="function"}function Cy(e){let t=!1,r=XO[e.type];return e.type==="decl"?t=e.prop.toLowerCase():e.type==="atrule"&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,vo,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,vo,r+"Exit"]:[r,r+"Exit"]}function Sy(e){let t;return e.type==="document"?t=["Document",vo,"DocumentExit"]:e.type==="root"?t=["Root",vo,"RootExit"]:t=Cy(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Rh(e){return e[zn]=!1,e.nodes&&e.nodes.forEach(t=>Rh(t)),e}let Uh={},bo=class C7{constructor(t,r,n){this.stringified=!1,this.processed=!1;let a;if(typeof r=="object"&&r!==null&&(r.type==="root"||r.type==="document"))a=Rh(r);else if(r instanceof C7||r instanceof _y)a=Rh(r.root),r.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let i=YO;n.syntax&&(i=n.syntax.parse),n.parser&&(i=n.parser),i.parse&&(i=i.parse);try{a=i(r,n)}catch(s){this.processed=!0,this.error=s}a&&!a[jO]&&GO.rebuild(a)}this.result=new _y(t,a,n),this.helpers={...Uh,postcss:Uh,result:this.result},this.plugins=this.processor.plugins.map(i=>typeof i=="object"&&i.prepare?{...i,...i.prepare(this.result)}:i)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,r){let n=this.result.lastPlugin;try{r&&r.addToError(t),this.error=t,t.name==="CssSyntaxError"&&!t.plugin?(t.plugin=n.postcssPlugin,t.setMessage()):n.postcssVersion}catch(a){console&&console.error&&console.error(a)}return t}prepareVisitors(){this.listeners={};let t=(r,n,a)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([r,a])};for(let r of this.plugins)if(typeof r=="object")for(let n in r){if(!JO[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!eM[n])if(typeof r[n]=="object")for(let a in r[n])a==="*"?t(r,n,r[n][a]):t(r,n+"-"+a.toLowerCase(),r[n][a]);else typeof r[n]=="function"&&t(r,n,r[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t<this.plugins.length;t++){let r=this.plugins[t],n=this.runOnRoot(r);if(Gs(n))try{await n}catch(a){throw this.handleError(a)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[zn];){t[zn]=!0;let r=[Sy(t)];for(;r.length>0;){let n=this.visitTick(r);if(Gs(n))try{await n}catch(a){let i=r[r.length-1].node;throw this.handleError(a,i)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(t.type==="document"){let a=t.nodes.map(i=>n(i,this.helpers));await Promise.all(a)}else await n(t,this.helpers)}catch(a){throw this.handleError(a)}}}return this.processed=!0,this.stringify()}runOnRoot(t){this.result.lastPlugin=t;try{if(typeof t=="object"&&t.Once){if(this.result.root.type==="document"){let r=this.result.root.nodes.map(n=>t.Once(n,this.helpers));return Gs(r[0])?Promise.all(r):r}return t.Once(this.result.root,this.helpers)}else if(typeof t=="function")return t(this.result.root,this.result)}catch(r){throw this.handleError(r)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,r=WO;t.syntax&&(r=t.syntax.stringify),t.stringifier&&(r=t.stringifier),r.stringify&&(r=r.stringify);let a=new qO(r,this.result.root,this.result.opts).generate();return this.result.css=a[0],this.result.map=a[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let t of this.plugins){let r=this.runOnRoot(t);if(Gs(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[zn];)t[zn]=!0,this.walkSync(t);if(this.listeners.OnceExit)if(t.type==="document")for(let r of t.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(t,r){return this.async().then(t,r)}toString(){return this.css}visitSync(t,r){for(let[n,a]of t){this.result.lastPlugin=n;let i;try{i=a(r,this.helpers)}catch(s){throw this.handleError(s,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(Gs(i))throw this.getAsyncError()}}visitTick(t){let r=t[t.length-1],{node:n,visitors:a}=r;if(n.type!=="root"&&n.type!=="document"&&!n.parent){t.pop();return}if(a.length>0&&r.visitorIndex<a.length){let[s,u]=a[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===a.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=s;try{return u(n.toProxy(),this.helpers)}catch(l){throw this.handleError(l,n)}}if(r.iterator!==0){let s=r.iterator,u;for(;u=n.nodes[n.indexes[s]];)if(n.indexes[s]+=1,!u[zn]){u[zn]=!0,t.push(Sy(u));return}r.iterator=0,delete n.indexes[s]}let i=r.events;for(;r.eventIndex<i.length;){let s=i[r.eventIndex];if(r.eventIndex+=1,s===vo){n.nodes&&n.nodes.length&&(n[zn]=!0,r.iterator=n.getIterator());return}else if(this.listeners[s]){r.visitors=this.listeners[s];return}}t.pop()}walkSync(t){t[zn]=!0;let r=Cy(t);for(let n of r)if(n===vo)t.nodes&&t.each(a=>{a[zn]||this.walkSync(a)});else{let a=this.listeners[n];if(a&&this.visitSync(a,t.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};bo.registerPostcss=e=>{Uh=e};var Ey=bo;bo.default=bo,QO.registerLazyResult(bo),ZO.registerLazyResult(bo);let tM=Jw,rM=Ac,nM=Bh;const aM=Lh;let Kh=class{constructor(t,r,n){r=r.toString(),this.stringified=!1,this._processor=t,this._css=r,this._opts=n,this._map=void 0;let a,i=rM;this.result=new aM(this._processor,a,this._opts),this.result.css=r;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let u=new tM(i,a,this._opts,r);if(u.isMap()){let[l,f]=u.generate();l&&(this.result.css=l),f&&(this.result.map=f)}}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,r){return this.async().then(t,r)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let t,r=nM;try{t=r(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}};var iM=Kh;Kh.default=Kh;let oM=iM,sM=Ey,uM=Ih,lM=qs,Zs=class{constructor(t=[]){this.version="8.4.30",this.plugins=this.normalize(t)}normalize(t){let r=[];for(let n of t)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))r=r.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)r.push(n);else if(typeof n=="function")r.push(n);else if(!(typeof n=="object"&&(n.parse||n.stringify)))throw new Error(n+" is not a PostCSS plugin");return r}process(t,r={}){return this.plugins.length===0&&typeof r.parser>"u"&&typeof r.stringifier>"u"&&typeof r.syntax>"u"?new oM(this,t,r):new sM(this,t,r)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}};var cM=Zs;Zs.default=Zs,lM.registerProcessor(Zs),uM.registerProcessor(Zs);let dM=Nc,fM=$w,gM=Lc,hM=Ph,pM=Ic,mM=qs,vM=Fh;function Ys(e,t){if(Array.isArray(e))return e.map(a=>Ys(a));let{inputs:r,...n}=e;if(r){t=[];for(let a of r){let i={...a,__proto__:pM.prototype};i.map&&(i.map={...i.map,__proto__:fM.prototype}),t.push(i)}}if(n.nodes&&(n.nodes=e.nodes.map(a=>Ys(a,t))),n.source){let{inputId:a,...i}=n.source;n.source=i,a!=null&&(n.source.input=t[a])}if(n.type==="root")return new mM(n);if(n.type==="decl")return new dM(n);if(n.type==="rule")return new vM(n);if(n.type==="comment")return new gM(n);if(n.type==="atrule")return new hM(n);throw new Error("Unknown node type: "+e.type)}var bM=Ys;Ys.default=Ys;let wM=vh,Ay=Nc,yM=Ey,xM=wi,zh=cM,_M=Ac,CM=bM,Dy=Ih,SM=cy,ky=Lc,Ny=Ph,EM=Lh,AM=Ic,DM=Bh,kM=by,Ty=Fh,Hy=qs,NM=kc;function vt(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new zh(e)}vt.plugin=function(t,r){let n=!1;function a(...s){console&&console.warn&&!n&&(n=!0,console.warn(t+`: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),{}.LANG&&{}.LANG.startsWith("cn")&&console.warn(t+`: 里面 postcss.plugin 被弃用. 迁移指南:
https://www.w3ctech.com/topic/2226`));let u=r(...s);return u.postcssPlugin=t,u.postcssVersion=new zh().version,u}let i;return Object.defineProperty(a,"postcss",{get(){return i||(i=a()),i}}),a.process=function(s,u,l){return vt([a(l)]).process(s,u)},a},vt.stringify=_M,vt.parse=DM,vt.fromJSON=CM,vt.list=kM,vt.comment=e=>new ky(e),vt.atRule=e=>new Ny(e),vt.decl=e=>new Ay(e),vt.rule=e=>new Ty(e),vt.root=e=>new Hy(e),vt.document=e=>new Dy(e),vt.CssSyntaxError=wM,vt.Declaration=Ay,vt.Container=xM,vt.Processor=zh,vt.Document=Dy,vt.Comment=ky,vt.Warning=SM,vt.AtRule=Ny,vt.Result=EM,vt.Input=AM,vt.Rule=Ty,vt.Root=Hy,vt.Node=NM,yM.registerPostcss(vt);var TM=vt;vt.default=vt;const HM=Jb,Iy=OI,{isPlainObject:IM}=hh,Oy=GI,OM=ZI,{parse:MM}=TM,LM=["img","audio","video","picture","svg","object","map","iframe","embed"],VM=["script","style"];function Qs(e,t){e&&Object.keys(e).forEach(function(r){t(e[r],r)})}function ba(e,t){return{}.hasOwnProperty.call(e,t)}function My(e,t){const r=[];return Qs(e,function(n){t(n)&&r.push(n)}),r}function PM(e){for(const t in e)if(ba(e,t))return!1;return!0}function FM(e){return e.map(function(t){if(!t.url)throw new Error("URL missing");return t.url+(t.w?` ${t.w}w`:"")+(t.h?` ${t.h}h`:"")+(t.d?` ${t.d}x`:"")}).join(", ")}var BM=Xs;const RM=/^[^\0\t\n\f\r /<=>]+$/;function Xs(e,t,r){if(e==null)return"";typeof e=="number"&&(e=e.toString());let n="",a="";function i(T,V){const P=this;this.tag=T,this.attribs=V||{},this.tagPosition=n.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(_.length){const z=_[_.length-1];z.text+=P.text}},this.updateParentNodeMediaChildren=function(){_.length&&LM.includes(this.tag)&&_[_.length-1].mediaChildren.push(this.tag)}}t=Object.assign({},Xs.defaults,t),t.parser=Object.assign({},UM,t.parser);const s=function(T){return t.allowedTags===!1||(t.allowedTags||[]).indexOf(T)>-1};VM.forEach(function(T){s(T)&&!t.allowVulnerableTags&&console.warn(`

⚠️ Your \`allowedTags\` option includes, \`${T}\`, which is inherently
vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
Or, to disable this warning, add the \`allowVulnerableTags\` option
and ensure you are accounting for this risk.

`)});const u=t.nonTextTags||["script","style","textarea","option"];let l,f;t.allowedAttributes&&(l={},f={},Qs(t.allowedAttributes,function(T,V){l[V]=[];const P=[];T.forEach(function(z){typeof z=="string"&&z.indexOf("*")>=0?P.push(Iy(z).replace(/\\\*/g,".*")):l[V].push(z)}),P.length&&(f[V]=new RegExp("^("+P.join("|")+")$"))}));const h={},m={},g={};Qs(t.allowedClasses,function(T,V){if(l&&(ba(l,V)||(l[V]=[]),l[V].push("class")),h[V]=T,Array.isArray(T)){const P=[];h[V]=[],g[V]=[],T.forEach(function(z){typeof z=="string"&&z.indexOf("*")>=0?P.push(Iy(z).replace(/\\\*/g,".*")):z instanceof RegExp?g[V].push(z):h[V].push(z)}),P.length&&(m[V]=new RegExp("^("+P.join("|")+")$"))}});const p={};let w;Qs(t.transformTags,function(T,V){let P;typeof T=="function"?P=T:typeof T=="string"&&(P=Xs.simpleTransform(T)),V==="*"?w=P:p[V]=P});let y,_,S,H,L,O,j=!1;K();const R=new HM.Parser({onopentag:function(T,V){if(t.enforceHtmlBoundary&&T==="html"&&K(),L){O++;return}const P=new i(T,V);_.push(P);let z=!1;const Z=!!P.text;let re;if(ba(p,T)&&(re=p[T](T,V),P.attribs=V=re.attribs,re.text!==void 0&&(P.innerText=re.text),T!==re.tagName&&(P.name=T=re.tagName,H[y]=re.tagName)),w&&(re=w(T,V),P.attribs=V=re.attribs,T!==re.tagName&&(P.name=T=re.tagName,H[y]=re.tagName)),(!s(T)||t.disallowedTagsMode==="recursiveEscape"&&!PM(S)||t.nestingLimit!=null&&y>=t.nestingLimit)&&(z=!0,S[y]=!0,(t.disallowedTagsMode==="discard"||t.disallowedTagsMode==="completelyDiscard")&&u.indexOf(T)!==-1&&(L=!0,O=1),S[y]=!0),y++,z){if(t.disallowedTagsMode==="discard"||t.disallowedTagsMode==="completelyDiscard")return;a=n,n=""}n+="<"+T,T==="script"&&(t.allowedScriptHostnames||t.allowedScriptDomains)&&(P.innerText=""),(!l||ba(l,T)||l["*"])&&Qs(V,function(te,oe){if(!RM.test(oe)){delete P.attribs[oe];return}if(te===""&&!t.allowedEmptyAttributes.includes(oe)&&(t.nonBooleanAttributes.includes(oe)||t.nonBooleanAttributes.includes("*"))){delete P.attribs[oe];return}let xe=!1;if(!l||ba(l,T)&&l[T].indexOf(oe)!==-1||l["*"]&&l["*"].indexOf(oe)!==-1||ba(f,T)&&f[T].test(oe)||f["*"]&&f["*"].test(oe))xe=!0;else if(l&&l[T]){for(const ge of l[T])if(IM(ge)&&ge.name&&ge.name===oe){xe=!0;let le="";if(ge.multiple===!0){const ve=te.split(" ");for(const pe of ve)ge.values.indexOf(pe)!==-1&&(le===""?le=pe:le+=" "+pe)}else ge.values.indexOf(te)>=0&&(le=te);te=le}}if(xe){if(t.allowedSchemesAppliedToAttributes.indexOf(oe)!==-1&&F(T,te)){delete P.attribs[oe];return}if(T==="script"&&oe==="src"){let ge=!0;try{const le=U(te);if(t.allowedScriptHostnames||t.allowedScriptDomains){const ve=(t.allowedScriptHostnames||[]).find(function(Le){return Le===le.url.hostname}),pe=(t.allowedScriptDomains||[]).find(function(Le){return le.url.hostname===Le||le.url.hostname.endsWith(`.${Le}`)});ge=ve||pe}}catch{ge=!1}if(!ge){delete P.attribs[oe];return}}if(T==="iframe"&&oe==="src"){let ge=!0;try{const le=U(te);if(le.isRelativeUrl)ge=ba(t,"allowIframeRelativeUrls")?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains;else if(t.allowedIframeHostnames||t.allowedIframeDomains){const ve=(t.allowedIframeHostnames||[]).find(function(Le){return Le===le.url.hostname}),pe=(t.allowedIframeDomains||[]).find(function(Le){return le.url.hostname===Le||le.url.hostname.endsWith(`.${Le}`)});ge=ve||pe}}catch{ge=!1}if(!ge){delete P.attribs[oe];return}}if(oe==="srcset")try{let ge=OM(te);if(ge.forEach(function(le){F("srcset",le.url)&&(le.evil=!0)}),ge=My(ge,function(le){return!le.evil}),ge.length)te=FM(My(ge,function(le){return!le.evil})),P.attribs[oe]=te;else{delete P.attribs[oe];return}}catch{delete P.attribs[oe];return}if(oe==="class"){const ge=h[T],le=h["*"],ve=m[T],pe=g[T],Le=m["*"],Fe=[ve,Le].concat(pe).filter(function(qe){return qe});if(ge&&le?te=I(te,Oy(ge,le),Fe):te=I(te,ge||le,Fe),!te.length){delete P.attribs[oe];return}}if(oe==="style"){if(t.parseStyleAttributes)try{const ge=MM(T+" {"+te+"}",{map:!1}),le=k(ge,t.allowedStyles);if(te=C(le),te.length===0){delete P.attribs[oe];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+T+" {"+te+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete P.attribs[oe];return}else if(t.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}n+=" "+oe,te&&te.length?n+='="'+M(te,!0)+'"':t.allowedEmptyAttributes.includes(oe)&&(n+='=""')}else delete P.attribs[oe]}),t.selfClosing.indexOf(T)!==-1?n+=" />":(n+=">",P.innerText&&!Z&&!t.textFilter&&(n+=M(P.innerText),j=!0)),z&&(n=a+M(n),a="")},ontext:function(T){if(L)return;const V=_[_.length-1];let P;if(V&&(P=V.tag,T=V.innerText!==void 0?V.innerText:T),t.disallowedTagsMode==="completelyDiscard"&&!s(P))T="";else if((t.disallowedTagsMode==="discard"||t.disallowedTagsMode==="completelyDiscard")&&(P==="script"||P==="style"))n+=T;else{const z=M(T,!1);t.textFilter&&!j?n+=t.textFilter(z,P):j||(n+=z)}if(_.length){const z=_[_.length-1];z.text+=T}},onclosetag:function(T,V){if(L)if(O--,!O)L=!1;else return;const P=_.pop();if(!P)return;if(P.tag!==T){_.push(P);return}L=t.enforceHtmlBoundary?T==="html":!1,y--;const z=S[y];if(z){if(delete S[y],t.disallowedTagsMode==="discard"||t.disallowedTagsMode==="completelyDiscard"){P.updateParentNodeText();return}a=n,n=""}if(H[y]&&(T=H[y],delete H[y]),t.exclusiveFilter&&t.exclusiveFilter(P)){n=n.substr(0,P.tagPosition);return}if(P.updateParentNodeMediaChildren(),P.updateParentNodeText(),t.selfClosing.indexOf(T)!==-1||V&&!s(T)&&["escape","recursiveEscape"].indexOf(t.disallowedTagsMode)>=0){z&&(n=a,a="");return}n+="</"+T+">",z&&(n=a+M(n),a=""),j=!1}},t.parser);return R.write(e),R.end(),n;function K(){n="",y=0,_=[],S={},H={},L=!1,O=0}function M(T,V){return typeof T!="string"&&(T=T+""),t.parser.decodeEntities&&(T=T.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),V&&(T=T.replace(/"/g,"&quot;"))),T=T.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),V&&(T=T.replace(/"/g,"&quot;")),T}function F(T,V){for(V=V.replace(/[\x00-\x20]+/g,"");;){const Z=V.indexOf("<!--");if(Z===-1)break;const re=V.indexOf("-->",Z+4);if(re===-1)break;V=V.substring(0,Z)+V.substring(re+3)}const P=V.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!P)return V.match(/^[/\\]{2}/)?!t.allowProtocolRelative:!1;const z=P[1].toLowerCase();return ba(t.allowedSchemesByTag,T)?t.allowedSchemesByTag[T].indexOf(z)===-1:!t.allowedSchemes||t.allowedSchemes.indexOf(z)===-1}function U(T){if(T=T.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),T.startsWith("relative:"))throw new Error("relative: exploit attempt");let V="relative://relative-site";for(let Z=0;Z<100;Z++)V+=`/${Z}`;const P=new URL(T,V);return{isRelativeUrl:P&&P.hostname==="relative-site"&&P.protocol==="relative:",url:P}}function k(T,V){if(!V)return T;const P=T.nodes[0];let z;return V[P.selector]&&V["*"]?z=Oy(V[P.selector],V["*"]):z=V[P.selector]||V["*"],z&&(T.nodes[0].nodes=P.nodes.reduce(A(z),[])),T}function C(T){return T.nodes[0].nodes.reduce(function(V,P){return V.push(`${P.prop}:${P.value}${P.important?" !important":""}`),V},[]).join(";")}function A(T){return function(V,P){return ba(T,P.prop)&&T[P.prop].some(function(Z){return Z.test(P.value)})&&V.push(P),V}}function I(T,V,P){return V?(T=T.split(/\s+/),T.filter(function(z){return V.indexOf(z)!==-1||P.some(function(Z){return Z.test(z)})}).join(" ")):T}}const UM={decodeEntities:!0};Xs.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0},Xs.simpleTransform=function(e,t,r){return r=r===void 0?!0:r,t=t||{},function(n,a){let i;if(r)for(i in t)a[i]=t[i];else a=t;return{tagName:e,attribs:a}}};const Ly=qp(BM);function wa(e){return o("div",{className:fe("absolute inset-0 z-modals flex flex-col items-center justify-center",e.overlay&&"bg-gray-medium-overlay"),children:o(yf,{showClose:e.showClose,onRequestClose:e.onRequestClose,compact:!0,children:b("div",{className:"w-72 text-center",children:[!e.hideLogo&&o(xr,{size:64,className:"mb-2 text-accent"}),o("p",{className:"mx-auto mb-5 max-w-[220px] text-2xl font-bold leading-8 text-primary",children:e.title}),e.children]})})})}wa.NoUrl=function(){return o(wa,{title:c.__("Start by entering a website’s URL in the right sidebar...","wp-rss-aggregator"),children:o("p",{className:"text-md text-gray-900",children:o(We,{urls:{doc:"https://www.wprssaggregator.com/help/how-to-find-an-rss-feed/"},linkProps:{variant:"secondary",target:"_blank"},children:c.__("Add your source's homepage or RSS feed URL. Not sure how to find RSS feeds? [Explore our guide][doc].","wp-rss-aggregator")})})})},wa.Loading=function(e){return o(wa,{overlay:!0,title:c.__("Preview loading...","wp-rss-aggregator"),children:b(ie,{children:[o("p",{className:"mb-8 text-md text-gray-900",children:c.__("We're fetching the latest available items from this source.","wp-rss-aggregator")}),o(qf,{id:e.progressId,showMessage:!0})]})})},wa.SwitchedToSingle=function(){const[e,t]=ee.useShowAdvPreviewPopup();return e?o(wa,{overlay:!0,showClose:!0,hideLogo:!0,onRequestClose:()=>t(!1),title:c.__("We’ve switched you to a single post view","wp-rss-aggregator"),children:o("p",{className:"text-md text-gray-900",children:c.__("Customize your settings to fit your source’s post content.","wp-rss-aggregator")})}):null};function KM(e){return Q.taxonomies.all.find(t=>t.slug===e)}function ya(e,t="singular"){return KM(e)?.labels?.[t]??e}function zM(){const e=ee.usePreview(),[t,r]=D.useState(0),n=e.posts[t];return D.useEffect(()=>{r(0)},[e.posts?.length]),Sr(["ArrowDown","j"],function(){e.posts.length>0&&r(a=>Math.min(e.posts.length-1,a+1))}),Sr(["ArrowUp","k"],function(){e.posts.length>0&&r(a=>Math.max(0,a-1))}),o(De.Context,{animate:!1,children:b("div",{className:"relative flex h-full w-full flex-row items-start justify-between gap-8 overflow-auto bg-gray-very-light pl-8 pt-8",children:[o("div",{className:fe("relative flex flex-1 flex-col overflow-auto rounded-xs border border-gray-200 bg-white p-9 wpra-display-preview",e.isFetching&&"saturate-50"),children:o("div",{className:"flex flex-1 flex-col gap-3 px-4 text-gray-900",children:o($M,{item:n,skeleton:e.isEmptyUrl||!e.isValidUrl||e.isLoading||e.isEmpty})})}),o("div",{className:"flex w-64",children:o("div",{className:"fixed min-h-full h-[400px] w-64 flex-col border-l border-t border-gray-200 bg-white overflow-y-auto",children:o(eL,{posts:e.posts,selected:t,onSelectPost:r,skeleton:e.isFetching})})}),o(wa.SwitchedToSingle,{})]})})}function $n(e){const[t,r]=ee.useHighlightedGroup(),[n,a]=ee.useCurrGroup();function i(){!e.disabled&&e.groupId&&(a(e.groupId??""),r(""))}function s(f){!e.disabled&&e.groupId&&r(f?e.groupId:"")}const u=e.groupId===void 0,l=b(ie,{children:[o("div",{className:"w-20",children:o("div",{className:"h-min w-min bg-gray-100 px-2 py-1 text-xs leading-4 text-black",children:e.badge})}),o("div",{className:"flex-1",children:e.children})]});return u?o("div",{className:"z-10 flex w-full appearance-none flex-row items-start gap-2 rounded-sm p-4 pr-6 text-left",children:l}):o("button",{className:fe("z-10 flex w-full appearance-none flex-row items-start gap-2 rounded-sm p-4 pr-6 text-left hover:bg-light-blue","not:disabled:hover:ring-2 ring-primary focus-visible:ring-2 data-[current=true]:bg-light-blue"),"aria-label":e.badge,"data-highlight":!e.disabled&&t===e.groupId,"data-current":!e.disabled&&n===e.groupId,onClick:i,onMouseOver:()=>s(!0),onMouseOut:()=>s(!1),disabled:e.disabled,children:l})}function $M({item:e,skeleton:t}){const r=se(),[n]=ee.useSetting("attributionPosition"),[a]=ee.useSetting("audioPlayerPos"),i=[jM,r.isAtLeast(W.Basic)&&qM,WM,GM,r.isAtLeast(W.Plus)&&ZM,r.isAtLeast(W.Basic)&&YM,r.isAtLeast(W.Plus)&&wo],s=r.isAtLeast(W.Plus)&&QM,u=r.isAtLeast(W.Plus)&&XM;let l=[...i];const f=(h,m)=>{if(!h)return;if(!wo){l.push(h);return}l=l.filter(p=>p!==h);const g=l.indexOf(wo);g!==-1&&(m==="before"?l.splice(g,0,h):l.splice(g+1,0,h))};return f(s,n),f(u,a),wo&&!l.includes(wo)&&l.push(wo),r.isAtLeast(W.Pro)&&l.push(JM),l.map(h=>h&&o(h,{item:e,skeleton:t},h.name))}function jM({item:e,skeleton:t}){return o($n,{badge:c._x("title","Badge in post preview when editing a source","wp-rss-aggregator"),disabled:t,children:o(De.Lg,{className:"w-full",enabled:t,children:!t&&e?.title&&o("span",{className:"text-3xl leading-10",children:e?.title??""})})})}function qM({item:e,skeleton:t}){return!t&&!e?.ftImage?null:o($n,{groupId:"images",badge:c._x("image","Badge in post preview when editing a source","wp-rss-aggregator"),disabled:t,children:o(De,{className:"aspect-[16/9] h-auto w-full",enabled:t,children:!t&&e?.ftImage&&o("div",{className:"flex w-fit flex-col items-center justify-center rounded-md bg-gray-100",children:o("img",{src:e.ftImage.url,className:"w-full max-w-[600px] object-cover"})})})})}function WM({item:e,skeleton:t}){return!t&&!e?.datePublished?null:o($n,{groupId:"date",badge:c._x("date","Badge in post preview when editing a source","wp-rss-aggregator"),disabled:t,children:o(De.Md,{className:"w-32",enabled:t,children:!t&&e?.datePublished&&o("span",{className:"text-md",children:e.datePublished})})})}function GM({item:e,skeleton:t}){const r=e?zg(e):null;if(!t&&!r)return null;const[n]=ee.useSetting("postType"),a=n==="wprss_feed_item";return o($n,{groupId:"author",badge:c._x("author","Badge in post preview when editing a source","wp-rss-aggregator"),disabled:a?!0:t,children:o(De.Md,{className:"w-40",enabled:t,children:!t&&r&&o("span",{className:"text-md",children:r})})})}function ZM({item:e,skeleton:t}){return!e?.terms||t?null:Object.entries(e.terms).map(([r,n])=>n.length>0&&o($n,{groupId:`tax.${r}`,badge:ya(r,"plural").toLowerCase(),disabled:t,children:o("span",{className:"leading-6 text-md",children:n.map(a=>a.label??a.slug).join(", ")})},r))}function YM({item:e,skeleton:t}){return!t&&!e?.excerpt?null:o($n,{groupId:"excerpt",badge:c._x("excerpt","Badge in post preview when editing a source","wp-rss-aggregator"),disabled:t,children:o(De,{className:"h-16 w-full",enabled:t,children:!t&&e?.excerpt&&o("span",{className:"font-semibold text-md leading-5",children:e.excerpt})})})}function QM({item:e,skeleton:t}){return e?.extra?.attribution?o($n,{groupId:"attribution",badge:c._x("attribution","Badge in post preview when editing a source","wp-rss-aggregator"),disabled:t,children:o(De.Md,{className:"w-full",enabled:t,children:!t&&o(ov,{className:"text-md",children:Ly(e.extra.attribution)})})}):null}function XM({item:e,skeleton:t}){return e?.extra?.audio?o($n,{groupId:"audio",badge:c._x("audio","Badge in post preview when editing a source","wp-rss-aggregator"),disabled:t,children:o(De.Md,{className:"w-full",enabled:t,children:!t&&o(ov,{children:Ly(e.extra.audio,{allowedTags:["div","audio","source"],allowedAttributes:{div:["class"],audio:["class","controls","style"],source:["src"]},allowedStyles:{audio:{width:[/^100%$/]}}})})})}):null}function wo({item:e,skeleton:t}){return!t&&!e?.content?null:o($n,{groupId:"content",badge:c._x("content","Badge in post preview when editing a source","wp-rss-aggregator"),disabled:t,children:o(De,{className:"h-28 w-full",enabled:t,children:!t&&e?.content&&o("div",{className:"wpra-post-preview text-md leading-5",dangerouslySetInnerHTML:{__html:e?.content}})})})}function JM({item:e,skeleton:t}){const[r]=ee.useSetting("customMapping");return r?.length?r.map((n,a)=>o($n,{groupId:"custom_fields",badge:n.metaKey,disabled:t,children:o(De.Md,{className:"w-full",enabled:t,children:o("pre",{className:"rounded-xs bg-gray-100 p-3 text-md leading-3",children:e?.meta?.[n.metaKey]})})},a)):null}function eL({posts:e,selected:t,skeleton:r,onSelectPost:n}){const[a,i]=D.useState(14);if(r)return Array.from({length:12},(u,l)=>o("div",{className:"border-b border-gray-200 px-5 py-3",children:o(De.Xs,{enabled:!0,className:"w-full"})},`skeleton-${l}`));if(e.length===0)return o("p",{className:"p-5 text-center text-md leading-4 text-gray-700",children:c.__("No posts to preview","wp-rss-aggregator")});const s=e.slice(0,a).map((u,l)=>o("button",{className:"shrink-0 cursor-pointer appearance-none overflow-hidden text-ellipsis whitespace-nowrap border-b border-gray-200 px-5 py-3 text-left text-md font-semibold leading-4 data-[active=true]:bg-gray-900 data-[active=true]:text-white w-64","data-active":l===t,onClick:()=>n(l),children:u.title},`post-${u.guid}`));return b(ie,{children:[s,a<e.length&&o("div",{className:"flex justify-center",children:o("button",{onClick:()=>i(a+6),className:"mt-5 mb-40 px-3 py-2 w-[13rem] text-primary text-md font-normal leading-3 border border-primary rounded-xs bg-white hover:bg-primary hover:text-white transition-colors duration-200",children:c.__("Load more","wp-rss-aggregator")})})]})}function Vy(){const[e]=D.useState(()=>new Date().valueOf().toString(32));return e}function tL(){return o(Br,{icon:o(ao,{}),title:c.__("Source:","wp-rss-aggregator"),left:o(rL,{}),right:b(ie,{children:[o(nL,{}),o(aL,{})]})})}function rL(){const[e,t]=ee.useSourceName();return o(K2,{value:e,onChange:t})}function nL(){const{saveSource:e,isDirty:t}=ee.useSaveSource();return Sr({ctrl:!0,key:"s"},()=>e.mutate(),!0,!0),t?o(as,{className:"rounded-xs border border-white/10",disabled:e.isLoading,onClick:()=>e.mutate(),children:c.__("Save","wp-rss-aggregator")}):b("span",{className:"cursor-default px-4 leading-6 opacity-50",children:[o(Wt,{className:"mr-1"}),c.__("Saved","wp-rss-aggregator")]})}function aL(){const e=Vy(),[t,r]=D.useState(!1),[,n]=ee.useSource(),[,a]=ee.useIsDirty(),{saveSource:i,source:s}=ee.useSaveSource({noNavigation:!0}),[u]=ee.useIsValidUrl(),l=q.importer.importById.useMutation();async function f(){const[m]=await i.mutateAsync();s.id!==m.id&&top?.history.pushState({},"",_t.page("source-edit",{id:m.id})),await q.progress.delete.call(e),await l.mutateAsync([m.id,null,1,e]),await q.progress.delete.call(e),n(await q.sources.getById.call(m.id)),a(!1)}function h(m){!m&&(i.isLoading||l.isLoading)||r(m)}return b(ie,{children:[o(cv,{className:"w-[280px] rounded-xs bg-white text-gray-900",open:t,onOpenChange:h,control:(m,g)=>b(as,{ref:m,className:`ring-offset-tertiary !bg-[#2A6560] disabled:opacity-70 ${s.lastUpdate===null?"rounded-xs border border-white/10 !bg-white":""}"`,disabled:!u||t,onClick:()=>{h(!0),l.reset()},...g,children:[o("span",{children:s.lastUpdate===null?c.__("Import","wp-rss-aggregator"):c.__("Update","wp-rss-aggregator")}),o(_l,{width:18,height:18})]}),children:o(iL,{sourceId:s.id,isFirstImport:s.lastUpdate===null,isLoading:l.isLoading,isDone:l.isSuccess,progressId:e,onStartImport:f,error:l.error??i.error,onClose:()=>h(!1)})}),t&&o("div",{className:"fixed inset-0 bg-gray-medium-overlay",onClick:()=>h(!1)})]})}function iL(e){const[,t]=ee.useCurrTab(),[r,n]=dn.usePendingSettings(),a=ue.useReset(),[i]=ee.useSetting("reconcileStrategy"),s=D.useRef(e.isFirstImport),u=dp();function l({children:f}){return o("p",{className:"my-1 text-md leading-4 text-alert-red",children:f})}return e.isDone?b("div",{className:"flex flex-col items-stretch gap-6 overflow-hidden rounded-xs p-8 shadow-lg shadow-gray-400",children:[b("div",{className:"text-lg font-semibold leading-6",children:["🎉 ",s.current?c.__("Content imported!","wp-rss-aggregator"):c.__("Content updated!","wp-rss-aggregator")]}),o("p",{className:"text-md font-semibold leading-4 text-gray-900",children:c.__("Choose what to do next:","wp-rss-aggregator")}),b("div",{className:"flex flex-col items-stretch gap-2",children:[o(Ne,{href:_t.page("hub"),onClick:function(){n({...r,open:!0})},children:c.__("View imported content","wp-rss-aggregator")}),o(St,{className:"whitespace-nowrap",onClick:function(){e.sourceId&&(u.navigate("display-edit"),a({id:null,name:c.__("New display","wp-rss-aggregator"),sources:[e.sourceId],folders:[],settings:{}}))},children:c.__("Create a display for this source","wp-rss-aggregator")})]}),e.error&&o(l,{children:e.error?.message})]}):b("div",{className:"flex flex-col items-stretch gap-4 overflow-hidden rounded-xs p-8 shadow-md shadow-gray-medium",children:[o("div",{className:"text-lg font-semibold leading-6",children:s.current?c.__("Ready to import this source's content?","wp-rss-aggregator"):c.__("Ready to update your settings and fetch new items?","wp-rss-aggregator")}),b("div",{className:"flex flex-col gap-4 text-sm leading-4",children:[s.current&&!e.isLoading&&o("p",{className:"text-gray-700",children:o(We,{urls:{docs:"https://www.wprssaggregator.com/help-topics/hub/"},linkProps:{variant:"primary",target:"_blank"},children:c.__("All imported items can be managed from your *Hub*. [Learn more][docs].","wp-rss-aggregator")})}),!s.current&&!e.isLoading&&b(ie,{children:[it(c.sprintf(c.__("<p>You have chosen the following update strategy:</p> <strong>%1$s</strong>","wp-rss-aggregator"),i==="preserve"?c.__("Do not update items","wp-rss-aggregator"):c.__("Keep items up-to-date","wp-rss-aggregator")),{p:o("p",{}),strong:o("strong",{})}),o("p",{children:o(We,{urls:{0:_t.page("source-edit",{id:e.sourceId})},linkProps:{variant:"primary",className:"underline",onClick(f){f.preventDefault(),t("details"),e.onClose()}},children:c.__("[Click here][0] to change this setting.","wp-rss-aggregator")})})]}),b("div",{className:"flex flex-col gap-2",children:[e.isLoading&&o("div",{className:"box-border min-h-[36px] rounded-xs bg-light px-[14px] py-[10px] text-center text-md text-primary",children:c.__("Importing ...","wp-rss-aggregator")}),!e.isLoading&&o(Ne,{onClick:e.onStartImport,disabled:e.isLoading,children:s.current?c.__("Start import","wp-rss-aggregator"):c.__("Update","wp-rss-aggregator")}),e.isLoading&&o(qf,{id:e.progressId,interval:100,showMessage:!0}),e.error&&o(l,{children:e.error?.message})]})]})]})}const oL=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 5H19V6.5H5V5ZM5 11.25H19V12.75H5V11.25ZM19 17.5H5V19H19V17.5Z",fill:"currentColor"}));function sL(){const e=Vy(),t=ee.usePreview(e),r=t.isLoading||t.isEmptyUrl;return o(Qd,{children:b("div",{className:fe("relative flex h-full w-full flex-col bg-gray-very-light p-8",r?"overflow-hidden":"overflow-auto"),children:[t.isLoaded&&o(gL,{error:t.error}),o("div",{className:"mt-4 flex-1 rounded-xs border border-gray-200 bg-white p-9",children:o(uL,{posts:t.posts,total:t.total,isFetching:t.isFetching})}),t.isEmptyUrl&&o(wa.NoUrl,{}),t.isLoading&&o(wa.Loading,{progressId:e})]})})}function uL(e){const[t]=ee.useCurrTab(),[r]=ee.useSetting("automations"),[n]=ee.usePreviewMode();return e.posts.length===0?t==="automations"&&r.length>0&&e.total>0&&!e.isFetching?o(fL,{}):o(dL,{num:12}):n==="grid"?o(cL,{posts:e.posts,isLoading:e.isFetching}):o(lL,{posts:e.posts,isLoading:e.isFetching})}function lL(e){return o("div",{className:"flex flex-col gap-1",children:e.posts.map(t=>b("div",{className:"flex flex-row gap-2 border-b border-b-gray-200 p-3 text-sm leading-4 last:border-b-0",children:[o("div",{className:"overflow-hidden whitespace-nowrap font-semibold",children:o(De.Sm,{enabled:e.isLoading,children:t.title})}),o("div",{className:"flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-gray-700",children:o(De.Sm,{enabled:e.isLoading,className:"flex-[5]",children:t.excerpt})})]},t.guid))})}function cL(e){const t=se();return o("div",{className:fe("grid grid-cols-1 gap-4 lg:grid-cols-2 xl:grid-cols-3 2xl:grid-cols-4",e.isLoading&&"animate-pulse"),children:e.posts.map(function(r){const n=t.isAtLeast(W.Basic)?r.excerpt:void 0,a=t.isAtLeast(W.Basic)?r.ftImage?.url:void 0,i=zg(r);return b("div",{className:"flex flex-col rounded-xs border border-gray-200",children:[t.isPremium()&&b("div",{className:"flex flex-col items-center justify-center border-b border-b-gray-200 bg-white",children:[a&&o("img",{src:a,className:"object-cover"}),!a&&o("div",{className:"relative aspect-[11/4] w-full",children:o(lt,{placement:"right-start",content:c.__("If you aren’t seeing any images, the source might not be providing them in the RSS feed.","wp-rss-aggregator"),children:o(lt.Anchor,{children:(s,u)=>o(fr,{ref:s,className:"absolute left-4 top-4 text-gray-900",size:20,...u})})})})]}),b("article",{className:"flex flex-col gap-2 bg-white p-4 leading-4",children:[o("header",{className:"h-fit text-md font-semibold leading-4",children:o(Ae,{variant:"primary",href:r.url,target:"_blank",className:"underline",children:r.title})}),n&&o("main",{className:"line-clamp-3 h-max text-sm leading-4 text-gray-700",children:n}),b("aside",{className:"flex h-4 flex-row text-xs font-semibold text-gray-700",children:[i&&o("span",{className:"after:mx-1 after:content-['_|_'] last:after:content-none",children:i}),o("span",{children:lo(new Date(r.datePublished),"PP")})]})]})]},r.guid)})})}function dL(e){return o(De.Context,{animate:!1,children:o("div",{className:"grid grid-cols-3 gap-4 opacity-30",children:Array.from({length:e.num}).map((t,r)=>b("div",{className:"flex flex-col items-stretch border border-gray-200 bg-white",children:[o("div",{className:"aspect-[2.1] w-full bg-light"}),b("div",{className:"flex flex-col items-stretch gap-3 p-4",children:[o(De.Md,{enabled:!0,className:"w-1/2",animate:!1}),b("div",{className:"flex flex-col items-stretch gap-1",children:[o(De.Sm,{enabled:!0,className:"mr-4"}),o(De.Sm,{enabled:!0,className:"mr-6"}),o(De.Sm,{enabled:!0,className:"mr-20"})]}),o(De.Xs,{enabled:!0,className:"w-1/3"})]})]},r))})})}function fL(){return o("div",{className:"flex h-full flex-col items-center justify-center",children:b("div",{className:"flex max-w-[200px] flex-col items-center gap-3 text-center",children:[o("img",{src:Q.urls.assets.imgs+"/bee-plant.svg"}),o("p",{className:"text-lg font-semibold leading-6 text-black",children:c.__("There are no items that match the applied automations","wp-rss-aggregator")})]})})}function gL(e){const[t,r]=ee.usePreviewMode(),{posts:n,total:a}=ee.usePreview();return b("div",{className:"flex flex-row justify-between",children:[o("span",{className:"text-md leading-4 text-gray-700",children:a>0&&c.sprintf(c.__("Showing %d of %d available items.","wp-rss-aggregator"),n.length,a)}),b("div",{className:"flex flex-row items-center gap-2",children:[e.error?o(hL,{error:e.error}):o(pL,{}),o(Kr,{icon:o(Bg,{}),active:t==="grid",onClick:()=>r("grid")}),o(Kr,{icon:o(oL,{}),active:t==="list",onClick:()=>r("list")})]})]})}function hL(e){return b("div",{className:"flex flex-row items-center gap-2 rounded-lg border border-alert-red bg-light-red px-3 py-[6px] text-md font-bold leading-4 text-alert-red",children:[o(ts,{}),o("p",{children:e.error.message})]})}function pL(){return b("div",{className:"flex flex-row items-center gap-2 rounded-lg bg-light px-3 py-[6px] text-md font-bold leading-4 text-black",children:[o(xr,{}),o("p",{children:c.__("Preview of available items","wp-rss-aggregator")})]})}const mL=me(()=>b(ie,{children:[o("path",{d:"M14 10C14 11.1046 13.1046 12 12 12C10.8954 12 10 11.1046 10 10C10 8.89543 10.8954 8 12 8C13.1046 8 14 8.89543 14 10Z",fill:"currentColor"}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM7.25 16.4371C6.16445 15.2755 5.5 13.7153 5.5 12C5.5 8.41015 8.41015 5.5 12 5.5C15.5899 5.5 18.5 8.41015 18.5 12C18.5 13.7153 17.8356 15.2755 16.75 16.4371V16C16.75 14.4812 15.5188 13.25 14 13.25L10 13.25C8.48122 13.25 7.25 14.4812 7.25 16V16.4371ZM8.75 17.6304C9.70606 18.1835 10.8161 18.5 12 18.5C13.1839 18.5 14.2939 18.1835 15.25 17.6304V16C15.25 15.3096 14.6904 14.75 14 14.75L10 14.75C9.30964 14.75 8.75 15.3096 8.75 16V17.6304Z",fill:"currentColor"})]})),Py=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.99988 5.5H19.9999V4H3.99988V5.5ZM3.99988 9.5H12.9999V8H3.99988V9.5ZM18 14.5H15C14.7239 14.5 14.5 14.7239 14.5 15V18C14.5 18.2761 14.7239 18.5 15 18.5H18C18.2761 18.5 18.5 18.2761 18.5 18V15C18.5 14.7239 18.2761 14.5 18 14.5ZM15 13C13.8954 13 13 13.8954 13 15V18C13 19.1046 13.8954 20 15 20H18C19.1046 20 20 19.1046 20 18V15C20 13.8954 19.1046 13 18 13H15ZM6 14.5H9C9.27614 14.5 9.5 14.7239 9.5 15V18C9.5 18.2761 9.27614 18.5 9 18.5H6C5.72386 18.5 5.5 18.2761 5.5 18V15C5.5 14.7239 5.72386 14.5 6 14.5ZM4 15C4 13.8954 4.89543 13 6 13H9C10.1046 13 11 13.8954 11 15V18C11 19.1046 10.1046 20 9 20H6C4.89543 20 4 19.1046 4 18V15Z",fill:"currentColor"})),Fy=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 5.5H16V4H4V5.5ZM20 10.3333H4V8.83331H20V10.3333ZM4 15.1667H20V13.6667H4V15.1667ZM4 20.0001H20V18.5001H4V20.0001Z",fill:"currentColor"})),$h=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.73333 5.5H18.2667C18.3955 5.5 18.5 5.60447 18.5 5.73333V18H20V5.73333C20 4.77604 19.224 4 18.2667 4H5.73333C4.77604 4 4 4.77604 4 5.73333V18.2667C4 19.224 4.77604 20 5.73333 20H7H8H8.16658C8.59091 20 8.96904 19.7322 9.10989 19.3319L10.175 16.3051H13.8204L14.3615 18H16.2876L13.0819 9H10.9136L7.53367 18.5H5.73333C5.60447 18.5 5.5 18.3955 5.5 18.2667V5.73333C5.5 5.60447 5.60447 5.5 5.73333 5.5ZM10.6484 14.8943L11.9598 10.9884H12.0356L13.347 14.8943H10.6484Z",fill:"currentColor"})),By=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.5 9.20704V12H8.5V9.20704L10.4749 11.1819L11.182 10.4748L9.20718 8.5H12V7.5H9.20704L11.182 5.52508L10.4749 4.81797L8.5 6.79282V4H7.5V6.79282L5.52515 4.81797L4.81804 5.52508L6.79296 7.5H4V8.5H6.79282L4.818 10.4748L5.5251 11.1819L7.5 9.20704ZM3.99988 16H19.9999V14.5H3.99988V16ZM3.99988 20H12.9999V18.5H3.99988V20Z",fill:"currentColor"})),vL=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5 7.5V11L13 11V7.5L18.5 7.5ZM11.5 7.5V11L5.5 11L5.5 7.5L11.5 7.5ZM11.5 6H5.5H4V7.5V11V12.5V16V17.5H5.5L11.5 17.5L13 17.5L18.5 17.5H20V16V12.5V11V7.5V6H18.5H13H11.5ZM13 16H18.5V12.5L13 12.5V16ZM11.5 12.5L5.5 12.5L5.5 16H11.5V12.5Z",fill:"currentColor"})),Ry=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.25 4C4.25 3.58579 4.58579 3.25 5 3.25H9.17284C9.37179 3.25 9.56258 3.32904 9.70324 3.46974L13.2877 7.05515L13.2893 7.05673C13.5844 7.35367 13.75 7.75532 13.75 8.17393C13.75 8.59255 13.5844 8.99419 13.2893 9.29114L12.7573 8.76246L13.2877 9.29272L10.2961 12.2851C10.1489 12.4325 9.97417 12.5494 9.78179 12.6292C9.58941 12.7089 9.38319 12.75 9.17493 12.75C8.96667 12.75 8.76045 12.7089 8.56807 12.6292C8.37575 12.5494 8.20104 12.4326 8.05392 12.2853L8.05378 12.2851L4.46991 8.7045C4.32911 8.56383 4.25 8.37296 4.25 8.17393V4ZM12.2253 8.23378L12.2257 8.23341C12.2412 8.21758 12.25 8.19622 12.25 8.17393C12.25 8.15164 12.2412 8.13029 12.2257 8.11446L12.2253 8.11409L8.86212 4.75H5.75V7.86307L9.11456 11.2246L9.11517 11.2252C9.12303 11.2331 9.13236 11.2393 9.14261 11.2436C9.15286 11.2478 9.16384 11.25 9.17493 11.25C9.18602 11.25 9.197 11.2478 9.20725 11.2436C9.2175 11.2393 9.22683 11.2331 9.23469 11.2252L9.23499 11.2249L12.2253 8.23378ZM12.9999 20H3.99988V18.5H12.9999V20ZM3.99988 16H19.9999V14.5H3.99988V16Z",fill:"currentColor"})),jh=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.4309 3.48835L15.3723 5.74982H15.3549H15.3351H15.3154H15.2957H15.2759H15.2562H15.2365H15.2167H15.197H15.1772H15.1575H15.1378H15.118H15.0983H15.0785H15.0588H15.039H15.0193H14.9995H14.9798H14.96H14.9403H14.9205H14.9007H14.881H14.8612H14.8414H14.8217H14.8019H14.7822H14.7624H14.7426H14.7229H14.7031H14.6833H14.6635H14.6438H14.624H14.6042H14.5844H14.5647H14.5449H14.5251H14.5053H14.4855H14.4658H14.446H14.4262H14.4064H14.3866H14.3669H14.3471H14.3273H14.3075H14.2877H14.2679H14.2481H14.2283H14.2086H14.1888H14.169H14.1492H14.1294H14.1096H14.0898H14.07H14.0502H14.0304H14.0106H13.9908H13.9711H13.9513H13.9315H13.9117H13.8919H13.8721H13.8523H13.8325H13.8127H13.7929H13.7731H13.7533H13.7335H13.7137H13.6939H13.6741H13.6543H13.6345H13.6147H13.5949H13.5751H13.5553H13.5355H13.5157H13.4959H13.4761H13.4563H13.4365H13.4167H13.3969H13.3771H13.3574H13.3376H13.3178H13.298H13.2782H13.2584H13.2386H13.2188H13.199H13.1792H13.1594H13.1396H13.1198H13.1H13.0802H13.0605H13.0407H13.0209H13.0011H12.9813H12.9615H12.9417H12.9219H12.9022H12.8824H12.8626H12.8428H12.823H12.8032H12.7835H12.7637H12.7439H12.7241H12.7043H12.6846H12.6648H12.645H12.6252H12.6055H12.5857H12.5659H12.5461H12.5264H12.5066H12.4868H12.4671H12.4473H12.4275H12.4078H12.388H12.3682H12.3485H12.3287H12.309H12.2892H12.2695H12.2497H12.2299H12.2102H12.1904H12.1707H12.1509H12.1312H12.1115H12.0917H12.072H12.0522H12.0325H12.0127H11.993H11.9733H11.9535H11.9338H11.9141H11.8943H11.8746H11.8549H11.8352H11.8154H11.7957H11.776H11.7563H11.7366H11.7169H11.6971H11.6774H11.6577H11.638H11.6183H11.5986H11.5789H11.5592H11.5395H11.5198H11.5001H11.4804H11.4607H11.4411H11.4214H11.4017H11.382H11.3623H11.3426H11.323H11.3033H11.2836H11.2639H11.2443H11.2246H11.205H11.1853H11.1656H11.146H11.1263H11.1067H11.087H11.0674H11.0477H11.0281H11.0084H10.9888H10.9692H10.9495H10.9299H10.9103H10.8907H10.871H10.8514H10.8318H10.8122H10.7926H10.773H10.7533H10.7337H10.7141H10.6945H10.6749H10.6553H10.6358H10.6162H10.5966H10.577H10.5574H10.5378H10.5183H10.4987H10.4791H10.4596H10.44H10.4204H10.4009H10.3813H10.3618H10.3422H10.3227H10.3031H10.2836H10.2641H10.2445H10.225H10.2055H10.1859H10.1664H10.1469H10.1274H10.1079H10.0884H10.0689H10.0494H10.0299H10.0104H9.99088H9.97139H9.95191H9.93242H9.91295H9.89347H9.874H9.85453H9.83507H9.81561H9.79615H9.77669H9.75724H9.7378H9.71835H9.69891H9.67948H9.66004H9.64062H9.62119H9.60177H9.58235H9.56294H9.54353H9.52412H9.50472H9.48532H9.46592H9.44653H9.42714H9.40776H9.38838H9.369H9.34963H9.33026H9.3109H9.29154H9.27218H9.25283H9.23348H9.21414H9.1948H9.17546H9.15613H9.1368H9.11748H9.09816H9.07884H9.05953H9.04022H9.02092H9.00162H8.98233H8.96304H8.94375H8.92447H8.90519H8.88592H8.86665H8.84739H8.82813H8.80887H8.78962H8.77037H8.75113H8.7319H8.71266H8.69343H8.67421H8.65499H8.63578H8.61657H8.59736H8.57816H8.55896H8.53977H8.52059H8.5014H8.48223H8.46305H8.44389H8.42472H8.40556H8.38641H8.36726H8.34812H8.32898H8.30984H8.29072H8.27159H8.25247H8.23336H8.21425H8.19514H8.17605H8.15695H8.13786H8.11878H8.0997H8.08062H8.06156H8.04249H8.02343H8.00438H7.98533H7.96629H7.94725H7.92822H7.90919H7.89017H7.87115H7.85214H7.83314H7.81414H7.79514H7.77615H7.75717H7.73819H7.71921H7.70025H7.68128H7.66233H7.64337H7.62443H7.60549H7.58655H7.56762H7.5487H7.52978H7.51087H7.49196H7.47306H7.45417H7.43528H7.41639H7.39751H7.37864H7.35978H7.34091H7.32206H7.30321H7.28437H7.26553H7.2467H7.22787H7.20905H7.19024H7.17143H7.15263H7.13384H7.11505H7.09626H7.07748H7.05871H7.03995H7.02119H7.00244C6.00369 5.74982 5.22031 6.11022 4.64467 6.70462C4.0904 7.27694 3.77002 8.0222 3.57757 8.74413C3.23547 10.0274 3.24562 11.4616 3.25122 12.2543C3.25186 12.3449 3.25245 12.4271 3.25244 12.4997L4.75244 12.4999C4.75245 12.4189 4.752 12.3317 4.75152 12.2392C4.74731 11.4272 4.74097 10.2033 5.02695 9.13051C5.18439 8.53994 5.41392 8.06645 5.72219 7.74815C6.00907 7.45192 6.40084 7.24982 7.00244 7.24982H7.02119H7.03995H7.05871H7.07748H7.09626H7.11505H7.13384H7.15263H7.17143H7.19024H7.20905H7.22787H7.2467H7.26553H7.28437H7.30321H7.32206H7.34091H7.35978H7.37864H7.39751H7.41639H7.43528H7.45417H7.47306H7.49196H7.51087H7.52978H7.5487H7.56762H7.58655H7.60549H7.62443H7.64337H7.66233H7.68128H7.70025H7.71921H7.73819H7.75717H7.77615H7.79514H7.81414H7.83314H7.85214H7.87115H7.89017H7.90919H7.92822H7.94725H7.96629H7.98533H8.00438H8.02343H8.04249H8.06156H8.08062H8.0997H8.11878H8.13786H8.15695H8.17605H8.19514H8.21425H8.23336H8.25247H8.27159H8.29072H8.30984H8.32898H8.34812H8.36726H8.38641H8.40556H8.42472H8.44389H8.46305H8.48223H8.5014H8.52059H8.53977H8.55896H8.57816H8.59736H8.61657H8.63578H8.65499H8.67421H8.69343H8.71266H8.7319H8.75113H8.77037H8.78962H8.80887H8.82813H8.84739H8.86665H8.88592H8.90519H8.92447H8.94375H8.96304H8.98233H9.00162H9.02092H9.04022H9.05953H9.07884H9.09816H9.11748H9.1368H9.15613H9.17546H9.1948H9.21414H9.23348H9.25283H9.27218H9.29154H9.3109H9.33026H9.34963H9.369H9.38838H9.40776H9.42714H9.44653H9.46592H9.48532H9.50472H9.52412H9.54353H9.56294H9.58235H9.60177H9.62119H9.64062H9.66004H9.67948H9.69891H9.71835H9.7378H9.75724H9.77669H9.79615H9.81561H9.83507H9.85453H9.874H9.89347H9.91295H9.93242H9.95191H9.97139H9.99088H10.0104H10.0299H10.0494H10.0689H10.0884H10.1079H10.1274H10.1469H10.1664H10.1859H10.2055H10.225H10.2445H10.2641H10.2836H10.3031H10.3227H10.3422H10.3618H10.3813H10.4009H10.4204H10.44H10.4596H10.4791H10.4987H10.5183H10.5378H10.5574H10.577H10.5966H10.6162H10.6358H10.6553H10.6749H10.6945H10.7141H10.7337H10.7533H10.773H10.7926H10.8122H10.8318H10.8514H10.871H10.8907H10.9103H10.9299H10.9495H10.9692H10.9888H11.0084H11.0281H11.0477H11.0674H11.087H11.1067H11.1263H11.146H11.1656H11.1853H11.205H11.2246H11.2443H11.2639H11.2836H11.3033H11.323H11.3426H11.3623H11.382H11.4017H11.4214H11.4411H11.4607H11.4804H11.5001H11.5198H11.5395H11.5592H11.5789H11.5986H11.6183H11.638H11.6577H11.6774H11.6971H11.7169H11.7366H11.7563H11.776H11.7957H11.8154H11.8352H11.8549H11.8746H11.8943H11.9141H11.9338H11.9535H11.9733H11.993H12.0127H12.0325H12.0522H12.072H12.0917H12.1115H12.1312H12.1509H12.1707H12.1904H12.2102H12.2299H12.2497H12.2695H12.2892H12.309H12.3287H12.3485H12.3682H12.388H12.4078H12.4275H12.4473H12.4671H12.4868H12.5066H12.5264H12.5461H12.5659H12.5857H12.6055H12.6252H12.645H12.6648H12.6846H12.7043H12.7241H12.7439H12.7637H12.7835H12.8032H12.823H12.8428H12.8626H12.8824H12.9022H12.9219H12.9417H12.9615H12.9813H13.0011H13.0209H13.0407H13.0605H13.0802H13.1H13.1198H13.1396H13.1594H13.1792H13.199H13.2188H13.2386H13.2584H13.2782H13.298H13.3178H13.3376H13.3574H13.3771H13.3969H13.4167H13.4365H13.4563H13.4761H13.4959H13.5157H13.5355H13.5553H13.5751H13.5949H13.6147H13.6345H13.6543H13.6741H13.6939H13.7137H13.7335H13.7533H13.7731H13.7929H13.8127H13.8325H13.8523H13.8721H13.8919H13.9117H13.9315H13.9513H13.9711H13.9908H14.0106H14.0304H14.0502H14.07H14.0898H14.1096H14.1294H14.1492H14.169H14.1888H14.2086H14.2283H14.2481H14.2679H14.2877H14.3075H14.3273H14.3471H14.3669H14.3866H14.4064H14.4262H14.446H14.4658H14.4855H14.5053H14.5251H14.5449H14.5647H14.5844H14.6042H14.624H14.6438H14.6635H14.6833H14.7031H14.7229H14.7426H14.7624H14.7822H14.8019H14.8217H14.8414H14.8612H14.881H14.9007H14.9205H14.9403H14.96H14.9798H14.9995H15.0193H15.039H15.0588H15.0785H15.0983H15.118H15.1378H15.1575H15.1772H15.192L13.4701 8.96908L14.5299 10.0306L17.5346 7.03056L18.0268 6.53908L17.5737 6.01129L14.5691 2.51129L13.4309 3.48835ZM10.5694 20.0117L8.63066 17.7498H8.64978H8.66951H8.68924H8.70897H8.7287H8.74844H8.76817H8.78791H8.80765H8.82739H8.84714H8.86688H8.88662H8.90637H8.92612H8.94587H8.96562H8.98537H9.00512H9.02488H9.04463H9.06439H9.08415H9.10391H9.12367H9.14343H9.16319H9.18295H9.20272H9.22248H9.24225H9.26202H9.28179H9.30156H9.32133H9.3411H9.36087H9.38065H9.40042H9.4202H9.43997H9.45975H9.47953H9.49931H9.51909H9.53887H9.55865H9.57843H9.59822H9.618H9.63778H9.65757H9.67735H9.69714H9.71693H9.73672H9.7565H9.77629H9.79608H9.81587H9.83566H9.85545H9.87524H9.89504H9.91483H9.93462H9.95441H9.97421H9.994H10.0138H10.0336H10.0534H10.0732H10.093H10.1128H10.1326H10.1524H10.1722H10.192H10.2118H10.2315H10.2513H10.2711H10.2909H10.3107H10.3305H10.3503H10.3701H10.3899H10.4097H10.4295H10.4493H10.4691H10.4889H10.5087H10.5285H10.5483H10.5681H10.5879H10.6077H10.6275H10.6473H10.6671H10.6869H10.7067H10.7265H10.7463H10.7661H10.7858H10.8056H10.8254H10.8452H10.865H10.8848H10.9046H10.9244H10.9442H10.964H10.9838H11.0036H11.0233H11.0431H11.0629H11.0827H11.1025H11.1223H11.1421H11.1618H11.1816H11.2014H11.2212H11.241H11.2607H11.2805H11.3003H11.3201H11.3399H11.3596H11.3794H11.3992H11.419H11.4387H11.4585H11.4783H11.498H11.5178H11.5376H11.5573H11.5771H11.5969H11.6166H11.6364H11.6562H11.6759H11.6957H11.7154H11.7352H11.7549H11.7747H11.7944H11.8142H11.8339H11.8537H11.8734H11.8932H11.9129H11.9327H11.9524H11.9722H11.9919H12.0116H12.0314H12.0511H12.0708H12.0906H12.1103H12.13H12.1497H12.1695H12.1892H12.2089H12.2286H12.2484H12.2681H12.2878H12.3075H12.3272H12.3469H12.3666H12.3863H12.406H12.4257H12.4454H12.4651H12.4848H12.5045H12.5242H12.5439H12.5636H12.5833H12.603H12.6226H12.6423H12.662H12.6817H12.7014H12.721H12.7407H12.7604H12.78H12.7997H12.8193H12.839H12.8587H12.8783H12.898H12.9176H12.9373H12.9569H12.9766H12.9962H13.0158H13.0355H13.0551H13.0747H13.0944H13.114H13.1336H13.1532H13.1728H13.1925H13.2121H13.2317H13.2513H13.2709H13.2905H13.3101H13.3297H13.3493H13.3689H13.3885H13.4081H13.4276H13.4472H13.4668H13.4864H13.5059H13.5255H13.5451H13.5646H13.5842H13.6038H13.6233H13.6429H13.6624H13.682H13.7015H13.721H13.7406H13.7601H13.7796H13.7992H13.8187H13.8382H13.8577H13.8772H13.8968H13.9163H13.9358H13.9553H13.9748H13.9943H14.0138H14.0332H14.0527H14.0722H14.0917H14.1112H14.1306H14.1501H14.1696H14.189H14.2085H14.2279H14.2474H14.2668H14.2863H14.3057H14.3252H14.3446H14.364H14.3834H14.4029H14.4223H14.4417H14.4611H14.4805H14.4999H14.5193H14.5387H14.5581H14.5775H14.5969H14.6163H14.6356H14.655H14.6744H14.6937H14.7131H14.7325H14.7518H14.7712H14.7905H14.8098H14.8292H14.8485H14.8678H14.8872H14.9065H14.9258H14.9451H14.9644H14.9837H15.003H15.0223H15.0416H15.0609H15.0802H15.0994H15.1187H15.138H15.1573H15.1765H15.1958H15.215H15.2343H15.2535H15.2727H15.292H15.3112H15.3304H15.3496H15.3689H15.3881H15.4073H15.4265H15.4457H15.4649H15.4841H15.5032H15.5224H15.5416H15.5608H15.5799H15.5991H15.6182H15.6374H15.6565H15.6757H15.6948H15.7139H15.733H15.7522H15.7713H15.7904H15.8095H15.8286H15.8477H15.8668H15.8859H15.9049H15.924H15.9431H15.9621H15.9812H16.0003H16.0193H16.0384H16.0574H16.0764H16.0954H16.1145H16.1335H16.1525H16.1715H16.1905H16.2095H16.2285H16.2475H16.2665H16.2854H16.3044H16.3234H16.3423H16.3613H16.3802H16.3992H16.4181H16.437H16.4559H16.4749H16.4938H16.5127H16.5316H16.5505H16.5694H16.5882H16.6071H16.626H16.6449H16.6637H16.6826H16.7014H16.7203H16.7391H16.7579H16.7768H16.7956H16.8144H16.8332H16.852H16.8708H16.8896H16.9084H16.9272H16.9459H16.9647H16.9835H17.0022C18.001 17.7498 18.7843 17.3894 19.36 16.795C19.9142 16.2227 20.2346 15.4774 20.4271 14.7555C20.7692 13.4722 20.759 12.038 20.7534 11.2454V11.2453C20.7528 11.1547 20.7522 11.0726 20.7522 10.9999L19.2522 10.9997C19.2522 11.0807 19.2526 11.1679 19.2531 11.2604C19.2573 12.0724 19.2637 13.2963 18.9777 14.3691C18.8203 14.9597 18.5907 15.4332 18.2825 15.7515C17.9956 16.0477 17.6038 16.2498 17.0022 16.2498H16.9835H16.9647H16.9459H16.9272H16.9084H16.8896H16.8708H16.852H16.8332H16.8144H16.7956H16.7768H16.7579H16.7391H16.7203H16.7014H16.6826H16.6637H16.6449H16.626H16.6071H16.5882H16.5694H16.5505H16.5316H16.5127H16.4938H16.4749H16.4559H16.437H16.4181H16.3992H16.3802H16.3613H16.3423H16.3234H16.3044H16.2854H16.2665H16.2475H16.2285H16.2095H16.1905H16.1715H16.1525H16.1335H16.1145H16.0954H16.0764H16.0574H16.0384H16.0193H16.0003H15.9812H15.9621H15.9431H15.924H15.9049H15.8859H15.8668H15.8477H15.8286H15.8095H15.7904H15.7713H15.7522H15.733H15.7139H15.6948H15.6757H15.6565H15.6374H15.6182H15.5991H15.5799H15.5608H15.5416H15.5224H15.5032H15.4841H15.4649H15.4457H15.4265H15.4073H15.3881H15.3689H15.3496H15.3304H15.3112H15.292H15.2727H15.2535H15.2343H15.215H15.1958H15.1765H15.1573H15.138H15.1187H15.0994H15.0802H15.0609H15.0416H15.0223H15.003H14.9837H14.9644H14.9451H14.9258H14.9065H14.8872H14.8678H14.8485H14.8292H14.8098H14.7905H14.7712H14.7518H14.7325H14.7131H14.6937H14.6744H14.655H14.6356H14.6163H14.5969H14.5775H14.5581H14.5387H14.5193H14.4999H14.4805H14.4611H14.4417H14.4223H14.4029H14.3834H14.364H14.3446H14.3252H14.3057H14.2863H14.2668H14.2474H14.2279H14.2085H14.189H14.1696H14.1501H14.1306H14.1112H14.0917H14.0722H14.0527H14.0332H14.0138H13.9943H13.9748H13.9553H13.9358H13.9163H13.8968H13.8772H13.8577H13.8382H13.8187H13.7992H13.7796H13.7601H13.7406H13.721H13.7015H13.682H13.6624H13.6429H13.6233H13.6038H13.5842H13.5646H13.5451H13.5255H13.5059H13.4864H13.4668H13.4472H13.4276H13.4081H13.3885H13.3689H13.3493H13.3297H13.3101H13.2905H13.2709H13.2513H13.2317H13.2121H13.1925H13.1728H13.1532H13.1336H13.114H13.0944H13.0747H13.0551H13.0355H13.0158H12.9962H12.9766H12.9569H12.9373H12.9176H12.898H12.8783H12.8587H12.839H12.8193H12.7997H12.78H12.7604H12.7407H12.721H12.7014H12.6817H12.662H12.6423H12.6226H12.603H12.5833H12.5636H12.5439H12.5242H12.5045H12.4848H12.4651H12.4454H12.4257H12.406H12.3863H12.3666H12.3469H12.3272H12.3075H12.2878H12.2681H12.2484H12.2286H12.2089H12.1892H12.1695H12.1497H12.13H12.1103H12.0906H12.0708H12.0511H12.0314H12.0116H11.9919H11.9722H11.9524H11.9327H11.9129H11.8932H11.8734H11.8537H11.8339H11.8142H11.7944H11.7747H11.7549H11.7352H11.7154H11.6957H11.6759H11.6562H11.6364H11.6166H11.5969H11.5771H11.5573H11.5376H11.5178H11.498H11.4783H11.4585H11.4387H11.419H11.3992H11.3794H11.3596H11.3399H11.3201H11.3003H11.2805H11.2607H11.241H11.2212H11.2014H11.1816H11.1618H11.1421H11.1223H11.1025H11.0827H11.0629H11.0431H11.0233H11.0036H10.9838H10.964H10.9442H10.9244H10.9046H10.8848H10.865H10.8452H10.8254H10.8056H10.7858H10.7661H10.7463H10.7265H10.7067H10.6869H10.6671H10.6473H10.6275H10.6077H10.5879H10.5681H10.5483H10.5285H10.5087H10.4889H10.4691H10.4493H10.4295H10.4097H10.3899H10.3701H10.3503H10.3305H10.3107H10.2909H10.2711H10.2513H10.2315H10.2118H10.192H10.1722H10.1524H10.1326H10.1128H10.093H10.0732H10.0534H10.0336H10.0138H9.994H9.97421H9.95441H9.93462H9.91483H9.89504H9.87524H9.85545H9.83566H9.81587H9.79608H9.77629H9.7565H9.73672H9.71693H9.69714H9.67735H9.65757H9.63778H9.618H9.59822H9.57843H9.55865H9.53887H9.51909H9.49931H9.47953H9.45975H9.43997H9.4202H9.40042H9.38065H9.36087H9.3411H9.32133H9.30156H9.28179H9.26202H9.24225H9.22248H9.20272H9.18295H9.16319H9.14343H9.12367H9.10391H9.08415H9.06439H9.04463H9.02488H9.00512H8.98537H8.96562H8.94587H8.92612H8.90637H8.88662H8.86688H8.84714H8.82739H8.81066L10.5303 14.5302L9.46967 13.4695L6.46966 16.4695L5.97856 16.9606L6.43055 17.4879L9.43056 20.9879L10.5694 20.0117Z",fill:"currentColor"})),bL=me(()=>o("path",{d:"M14.54 11.34C16.3133 11.9133 17.2 13.14 17.2 15.02C17.2 16.2733 16.7933 17.2533 15.98 17.96C15.1667 18.6533 14.0533 19 12.64 19H6.8V5H12.08C14.7467 5 16.08 6.12667 16.08 8.38C16.08 9.76667 15.5667 10.7533 14.54 11.34ZM9.36 10.5H11.7C12.3267 10.5 12.7933 10.3733 13.1 10.12C13.4067 9.85333 13.56 9.44667 13.56 8.9C13.56 8.32667 13.4067 7.91333 13.1 7.66C12.7933 7.40667 12.3267 7.28 11.7 7.28H9.36V10.5ZM12.26 16.72C13.0067 16.72 13.5733 16.5733 13.96 16.28C14.36 15.9733 14.56 15.46 14.56 14.74C14.56 14.0333 14.3533 13.5333 13.94 13.24C13.54 12.9333 12.98 12.78 12.26 12.78H9.36V16.72H12.26Z",fill:"currentColor"})),wL=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.1238 5H14.36H12.46H10.1238V6.94607H12.118L10.3419 17.054H8.2359V19H14.2359V17.054H12.2419L14.018 6.94607H16.1238V5Z",fill:"currentColor"})),yL=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.61724 14.7521C9.37241 15.584 10.5 16 12 16C13.5 16 14.6224 15.584 15.3672 14.7521C16.1224 13.9099 16.5 12.7288 16.5 11.2087V5H15.0259V10.8081C15.0259 11.979 14.8138 12.9188 14.3897 13.6275C13.9655 14.3259 13.169 14.6751 12 14.6751C10.831 14.6751 10.0345 14.3259 9.61034 13.6275C9.18621 12.929 8.97414 11.9893 8.97414 10.8081V5H7.5V11.2087C7.5 12.7288 7.87241 13.9099 8.61724 14.7521ZM7 18V19H17V18H7Z",fill:"currentColor"}));var Uy={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Ee,function(){var r=Array.prototype.slice;function n(d,v){v&&(d.prototype=Object.create(v.prototype)),d.prototype.constructor=d}var a="delete",i=5,s=1<<i,u=s-1,l={},f={value:!1},h={value:!1};function m(d){return d.value=!1,d}function g(d){d&&(d.value=!0)}function p(){}function w(d,v){v=v||0;for(var x=Math.max(0,d.length-v),E=new Array(x),N=0;N<x;N++)E[N]=d[N+v];return E}function y(d){return d.size===void 0&&(d.size=d.__iterate(S)),d.size}function _(d,v){return v>=0?+v:y(d)+ +v}function S(){return!0}function H(d,v,x){return(d===0||x!==void 0&&d<=-x)&&(v===void 0||x!==void 0&&v>=x)}function L(d,v){return j(d,v,0)}function O(d,v){return j(d,v,v)}function j(d,v,x){return d===void 0?x:d<0?Math.max(0,v+d):v===void 0?d:Math.min(v,d)}function R(d){return U(d)?d:Ke(d)}n(K,R);function K(d){return k(d)?d:ut(d)}n(M,R);function M(d){return C(d)?d:Be(d)}n(F,R);function F(d){return U(d)&&!A(d)?d:Ve(d)}function U(d){return!!(d&&d[T])}function k(d){return!!(d&&d[V])}function C(d){return!!(d&&d[P])}function A(d){return k(d)||C(d)}function I(d){return!!(d&&d[z])}R.isIterable=U,R.isKeyed=k,R.isIndexed=C,R.isAssociative=A,R.isOrdered=I,R.Keyed=K,R.Indexed=M,R.Set=F;var T="@@__IMMUTABLE_ITERABLE__@@",V="@@__IMMUTABLE_KEYED__@@",P="@@__IMMUTABLE_INDEXED__@@",z="@@__IMMUTABLE_ORDERED__@@",Z=0,re=1,te=2,oe=typeof Symbol=="function"&&Symbol.iterator,xe="@@iterator",ge=oe||xe;function le(d){this.next=d}le.prototype.toString=function(){return"[Iterator]"},le.KEYS=Z,le.VALUES=re,le.ENTRIES=te,le.prototype.inspect=le.prototype.toSource=function(){return this.toString()},le.prototype[ge]=function(){return this};function ve(d,v,x,E){var N=d===0?v:d===1?x:[v,x];return E?E.value=N:E={value:N,done:!1},E}function pe(){return{value:void 0,done:!0}}function Le(d){return!!zt(d)}function Fe(d){return d&&typeof d.next=="function"}function qe(d){var v=zt(d);return v&&v.call(d)}function zt(d){var v=d&&(oe&&d[oe]||d[xe]);if(typeof v=="function")return v}function Ce(d){return d&&typeof d.length=="number"}n(Ke,R);function Ke(d){return d==null?Lr():U(d)?d.toSeq():Re(d)}Ke.of=function(){return Ke(arguments)},Ke.prototype.toSeq=function(){return this},Ke.prototype.toString=function(){return this.__toString("Seq {","}")},Ke.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Ke.prototype.__iterate=function(d,v){return Tn(this,d,v,!0)},Ke.prototype.__iterator=function(d,v){return Wr(this,d,v,!0)},n(ut,Ke);function ut(d){return d==null?Lr().toKeyedSeq():U(d)?k(d)?d.toSeq():d.fromEntrySeq():Ge(d)}ut.prototype.toKeyedSeq=function(){return this},n(Be,Ke);function Be(d){return d==null?Lr():U(d)?k(d)?d.entrySeq():d.toIndexedSeq():nt(d)}Be.of=function(){return Be(arguments)},Be.prototype.toIndexedSeq=function(){return this},Be.prototype.toString=function(){return this.__toString("Seq [","]")},Be.prototype.__iterate=function(d,v){return Tn(this,d,v,!1)},Be.prototype.__iterator=function(d,v){return Wr(this,d,v,!1)},n(Ve,Ke);function Ve(d){return(d==null?Lr():U(d)?k(d)?d.entrySeq():d:nt(d)).toSetSeq()}Ve.of=function(){return Ve(arguments)},Ve.prototype.toSetSeq=function(){return this},Ke.isSeq=Dt,Ke.Keyed=ut,Ke.Set=Ve,Ke.Indexed=Be;var $t="@@__IMMUTABLE_SEQ__@@";Ke.prototype[$t]=!0,n(bt,Be);function bt(d){this._array=d,this.size=d.length}bt.prototype.get=function(d,v){return this.has(d)?this._array[_(this,d)]:v},bt.prototype.__iterate=function(d,v){for(var x=this._array,E=x.length-1,N=0;N<=E;N++)if(d(x[v?E-N:N],N,this)===!1)return N+1;return N},bt.prototype.__iterator=function(d,v){var x=this._array,E=x.length-1,N=0;return new le(function(){return N>E?pe():ve(d,N,x[v?E-N++:N++])})},n(Qt,ut);function Qt(d){var v=Object.keys(d);this._object=d,this._keys=v,this.size=v.length}Qt.prototype.get=function(d,v){return v!==void 0&&!this.has(d)?v:this._object[d]},Qt.prototype.has=function(d){return this._object.hasOwnProperty(d)},Qt.prototype.__iterate=function(d,v){for(var x=this._object,E=this._keys,N=E.length-1,B=0;B<=N;B++){var $=E[v?N-B:B];if(d(x[$],$,this)===!1)return B+1}return B},Qt.prototype.__iterator=function(d,v){var x=this._object,E=this._keys,N=E.length-1,B=0;return new le(function(){var $=E[v?N-B:B];return B++>N?pe():ve(d,$,x[$])})},Qt.prototype[z]=!0,n(wr,Be);function wr(d){this._iterable=d,this.size=d.length||d.size}wr.prototype.__iterateUncached=function(d,v){if(v)return this.cacheResult().__iterate(d,v);var x=this._iterable,E=qe(x),N=0;if(Fe(E))for(var B;!(B=E.next()).done&&d(B.value,N++,this)!==!1;);return N},wr.prototype.__iteratorUncached=function(d,v){if(v)return this.cacheResult().__iterator(d,v);var x=this._iterable,E=qe(x);if(!Fe(E))return new le(pe);var N=0;return new le(function(){var B=E.next();return B.done?B:ve(d,N++,B.value)})},n(jt,Be);function jt(d){this._iterator=d,this._iteratorCache=[]}jt.prototype.__iterateUncached=function(d,v){if(v)return this.cacheResult().__iterate(d,v);for(var x=this._iterator,E=this._iteratorCache,N=0;N<E.length;)if(d(E[N],N++,this)===!1)return N;for(var B;!(B=x.next()).done;){var $=B.value;if(E[N]=$,d($,N++,this)===!1)break}return N},jt.prototype.__iteratorUncached=function(d,v){if(v)return this.cacheResult().__iterator(d,v);var x=this._iterator,E=this._iteratorCache,N=0;return new le(function(){if(N>=E.length){var B=x.next();if(B.done)return B;E[N]=B.value}return ve(d,N,E[N++])})};function Dt(d){return!!(d&&d[$t])}var Mr;function Lr(){return Mr||(Mr=new bt([]))}function Ge(d){var v=Array.isArray(d)?new bt(d).fromEntrySeq():Fe(d)?new jt(d).fromEntrySeq():Le(d)?new wr(d).fromEntrySeq():typeof d=="object"?new Qt(d):void 0;if(!v)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+d);return v}function nt(d){var v=pt(d);if(!v)throw new TypeError("Expected Array or iterable object of values: "+d);return v}function Re(d){var v=pt(d)||typeof d=="object"&&new Qt(d);if(!v)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+d);return v}function pt(d){return Ce(d)?new bt(d):Fe(d)?new jt(d):Le(d)?new wr(d):void 0}function Tn(d,v,x,E){var N=d._cache;if(N){for(var B=N.length-1,$=0;$<=B;$++){var G=N[x?B-$:$];if(v(G[1],E?G[0]:$,d)===!1)return $+1}return $}return d.__iterateUncached(v,x)}function Wr(d,v,x,E){var N=d._cache;if(N){var B=N.length-1,$=0;return new le(function(){var G=N[x?B-$:$];return $++>B?pe():ve(v,E?G[0]:$-1,G[1])})}return d.__iteratorUncached(v,x)}n(Ye,R);function Ye(){throw TypeError("Abstract")}n(Ie,Ye);function Ie(){}n(nr,Ye);function nr(){}n(Xa,Ye);function Xa(){}Ye.Keyed=Ie,Ye.Indexed=nr,Ye.Set=Xa;function qt(d,v){if(d===v||d!==d&&v!==v)return!0;if(!d||!v)return!1;if(typeof d.valueOf=="function"&&typeof v.valueOf=="function"){if(d=d.valueOf(),v=v.valueOf(),d===v||d!==d&&v!==v)return!0;if(!d||!v)return!1}return!!(typeof d.equals=="function"&&typeof v.equals=="function"&&d.equals(v))}function hp(d,v){return v?pp(v,d,"",{"":d}):mp(d)}function pp(d,v,x,E){return Array.isArray(v)?d.call(E,x,Be(v).map(function(N,B){return pp(d,N,B,v)})):N9(v)?d.call(E,x,ut(v).map(function(N,B){return pp(d,N,B,v)})):v}function mp(d){return Array.isArray(d)?Be(d).map(mp).toList():N9(d)?ut(d).map(mp).toMap():d}function N9(d){return d&&(d.constructor===Object||d.constructor===void 0)}var Au=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(v,x){v=v|0,x=x|0;var E=v&65535,N=x&65535;return E*N+((v>>>16)*N+E*(x>>>16)<<16>>>0)|0};function vp(d){return d>>>1&1073741824|d&3221225471}function Gr(d){if(d===!1||d===null||d===void 0||typeof d.valueOf=="function"&&(d=d.valueOf(),d===!1||d===null||d===void 0))return 0;if(d===!0)return 1;var v=typeof d;if(v==="number"){var x=d|0;for(x!==d&&(x^=d*4294967295);d>4294967295;)d/=4294967295,x^=d;return vp(x)}return v==="string"?d.length>see?aee(d):T9(d):typeof d.hashCode=="function"?d.hashCode():iee(d)}function aee(d){var v=_p[d];return v===void 0&&(v=T9(d),xp===uee&&(xp=0,_p={}),xp++,_p[d]=v),v}function T9(d){for(var v=0,x=0;x<d.length;x++)v=31*v+d.charCodeAt(x)|0;return vp(v)}function iee(d){var v;if(bp&&(v=wp.get(d),v!==void 0)||(v=d[Oi],v!==void 0)||!I9&&(v=d.propertyIsEnumerable&&d.propertyIsEnumerable[Oi],v!==void 0||(v=oee(d),v!==void 0)))return v;if(v=++yp,yp&1073741824&&(yp=0),bp)wp.set(d,v);else{if(H9!==void 0&&H9(d)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(I9)Object.defineProperty(d,Oi,{enumerable:!1,configurable:!1,writable:!1,value:v});else if(d.propertyIsEnumerable!==void 0&&d.propertyIsEnumerable===d.constructor.prototype.propertyIsEnumerable)d.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},d.propertyIsEnumerable[Oi]=v;else if(d.nodeType!==void 0)d[Oi]=v;else throw new Error("Unable to set a non-enumerable property on object.")}return v}var H9=Object.isExtensible,I9=function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}}();function oee(d){if(d&&d.nodeType>0)switch(d.nodeType){case 1:return d.uniqueID;case 9:return d.documentElement&&d.documentElement.uniqueID}}var bp=typeof WeakMap=="function",wp;bp&&(wp=new WeakMap);var yp=0,Oi="__immutablehash__";typeof Symbol=="function"&&(Oi=Symbol(Oi));var see=16,uee=255,xp=0,_p={};function Pd(d,v){if(!d)throw new Error(v)}function Zr(d){Pd(d!==1/0,"Cannot perform this action with an infinite size.")}n(bn,ut);function bn(d,v){this._iter=d,this._useKeys=v,this.size=d.size}bn.prototype.get=function(d,v){return this._iter.get(d,v)},bn.prototype.has=function(d){return this._iter.has(d)},bn.prototype.valueSeq=function(){return this._iter.valueSeq()},bn.prototype.reverse=function(){var d=this,v=Cp(this,!0);return this._useKeys||(v.valueSeq=function(){return d._iter.toSeq().reverse()}),v},bn.prototype.map=function(d,v){var x=this,E=M9(this,d,v);return this._useKeys||(E.valueSeq=function(){return x._iter.toSeq().map(d,v)}),E},bn.prototype.__iterate=function(d,v){var x=this,E;return this._iter.__iterate(this._useKeys?function(N,B){return d(N,B,x)}:(E=v?R9(this):0,function(N){return d(N,v?--E:E++,x)}),v)},bn.prototype.__iterator=function(d,v){if(this._useKeys)return this._iter.__iterator(d,v);var x=this._iter.__iterator(re,v),E=v?R9(this):0;return new le(function(){var N=x.next();return N.done?N:ve(d,v?--E:E++,N.value,N)})},bn.prototype[z]=!0,n(Io,Be);function Io(d){this._iter=d,this.size=d.size}Io.prototype.includes=function(d){return this._iter.includes(d)},Io.prototype.__iterate=function(d,v){var x=this,E=0;return this._iter.__iterate(function(N){return d(N,E++,x)},v)},Io.prototype.__iterator=function(d,v){var x=this._iter.__iterator(re,v),E=0;return new le(function(){var N=x.next();return N.done?N:ve(d,E++,N.value,N)})},n(Oo,Ve);function Oo(d){this._iter=d,this.size=d.size}Oo.prototype.has=function(d){return this._iter.includes(d)},Oo.prototype.__iterate=function(d,v){var x=this;return this._iter.__iterate(function(E){return d(E,E,x)},v)},Oo.prototype.__iterator=function(d,v){var x=this._iter.__iterator(re,v);return new le(function(){var E=x.next();return E.done?E:ve(d,E.value,E.value,E)})},n(Mo,ut);function Mo(d){this._iter=d,this.size=d.size}Mo.prototype.entrySeq=function(){return this._iter.toSeq()},Mo.prototype.__iterate=function(d,v){var x=this;return this._iter.__iterate(function(E){if(E){B9(E);var N=U(E);return d(N?E.get(1):E[1],N?E.get(0):E[0],x)}},v)},Mo.prototype.__iterator=function(d,v){var x=this._iter.__iterator(re,v);return new le(function(){for(;;){var E=x.next();if(E.done)return E;var N=E.value;if(N){B9(N);var B=U(N);return ve(d,B?N.get(0):N[0],B?N.get(1):N[1],E)}}})},Io.prototype.cacheResult=bn.prototype.cacheResult=Oo.prototype.cacheResult=Mo.prototype.cacheResult=Ap;function O9(d){var v=Qn(d);return v._iter=d,v.size=d.size,v.flip=function(){return d},v.reverse=function(){var x=d.reverse.apply(this);return x.flip=function(){return d.reverse()},x},v.has=function(x){return d.includes(x)},v.includes=function(x){return d.has(x)},v.cacheResult=Ap,v.__iterateUncached=function(x,E){var N=this;return d.__iterate(function(B,$){return x($,B,N)!==!1},E)},v.__iteratorUncached=function(x,E){if(x===te){var N=d.__iterator(x,E);return new le(function(){var B=N.next();if(!B.done){var $=B.value[0];B.value[0]=B.value[1],B.value[1]=$}return B})}return d.__iterator(x===re?Z:re,E)},v}function M9(d,v,x){var E=Qn(d);return E.size=d.size,E.has=function(N){return d.has(N)},E.get=function(N,B){var $=d.get(N,l);return $===l?B:v.call(x,$,N,d)},E.__iterateUncached=function(N,B){var $=this;return d.__iterate(function(G,X,J){return N(v.call(x,G,X,J),X,$)!==!1},B)},E.__iteratorUncached=function(N,B){var $=d.__iterator(te,B);return new le(function(){var G=$.next();if(G.done)return G;var X=G.value,J=X[0];return ve(N,J,v.call(x,X[1],J,d),G)})},E}function Cp(d,v){var x=Qn(d);return x._iter=d,x.size=d.size,x.reverse=function(){return d},d.flip&&(x.flip=function(){var E=O9(d);return E.reverse=function(){return d.flip()},E}),x.get=function(E,N){return d.get(v?E:-1-E,N)},x.has=function(E){return d.has(v?E:-1-E)},x.includes=function(E){return d.includes(E)},x.cacheResult=Ap,x.__iterate=function(E,N){var B=this;return d.__iterate(function($,G){return E($,G,B)},!N)},x.__iterator=function(E,N){return d.__iterator(E,!N)},x}function L9(d,v,x,E){var N=Qn(d);return E&&(N.has=function(B){var $=d.get(B,l);return $!==l&&!!v.call(x,$,B,d)},N.get=function(B,$){var G=d.get(B,l);return G!==l&&v.call(x,G,B,d)?G:$}),N.__iterateUncached=function(B,$){var G=this,X=0;return d.__iterate(function(J,ae,we){if(v.call(x,J,ae,we))return X++,B(J,E?ae:X-1,G)},$),X},N.__iteratorUncached=function(B,$){var G=d.__iterator(te,$),X=0;return new le(function(){for(;;){var J=G.next();if(J.done)return J;var ae=J.value,we=ae[0],_e=ae[1];if(v.call(x,_e,we,d))return ve(B,E?we:X++,_e,J)}})},N}function lee(d,v,x){var E=ct().asMutable();return d.__iterate(function(N,B){E.update(v.call(x,N,B,d),0,function($){return $+1})}),E.asImmutable()}function cee(d,v,x){var E=k(d),N=(I(d)?Gt():ct()).asMutable();d.__iterate(function($,G){N.update(v.call(x,$,G,d),function(X){return X=X||[],X.push(E?[G,$]:$),X})});var B=U9(d);return N.map(function($){return Ct(d,B($))})}function Sp(d,v,x,E){var N=d.size;if(H(v,x,N))return d;var B=L(v,N),$=O(x,N);if(B!==B||$!==$)return Sp(d.toSeq().cacheResult(),v,x,E);var G=$-B,X;G===G&&(X=G<0?0:G);var J=Qn(d);return J.size=X,!E&&Dt(d)&&X>=0&&(J.get=function(ae,we){return ae=_(this,ae),ae>=0&&ae<X?d.get(ae+B,we):we}),J.__iterateUncached=function(ae,we){var _e=this;if(X===0)return 0;if(we)return this.cacheResult().__iterate(ae,we);var je=0,Xe=!0,Pt=0;return d.__iterate(function(Hn,ta){if(!(Xe&&(Xe=je++<B)))return Pt++,ae(Hn,E?ta:Pt-1,_e)!==!1&&Pt!==X}),Pt},J.__iteratorUncached=function(ae,we){if(X!==0&&we)return this.cacheResult().__iterator(ae,we);var _e=X!==0&&d.__iterator(ae,we),je=0,Xe=0;return new le(function(){for(;je++<B;)_e.next();if(++Xe>X)return pe();var Pt=_e.next();return E||ae===re?Pt:ae===Z?ve(ae,Xe-1,void 0,Pt):ve(ae,Xe-1,Pt.value[1],Pt)})},J}function dee(d,v,x){var E=Qn(d);return E.__iterateUncached=function(N,B){var $=this;if(B)return this.cacheResult().__iterate(N,B);var G=0;return d.__iterate(function(X,J,ae){return v.call(x,X,J,ae)&&++G&&N(X,J,$)}),G},E.__iteratorUncached=function(N,B){var $=this;if(B)return this.cacheResult().__iterator(N,B);var G=d.__iterator(te,B),X=!0;return new le(function(){if(!X)return pe();var J=G.next();if(J.done)return J;var ae=J.value,we=ae[0],_e=ae[1];return v.call(x,_e,we,$)?N===te?J:ve(N,we,_e,J):(X=!1,pe())})},E}function V9(d,v,x,E){var N=Qn(d);return N.__iterateUncached=function(B,$){var G=this;if($)return this.cacheResult().__iterate(B,$);var X=!0,J=0;return d.__iterate(function(ae,we,_e){if(!(X&&(X=v.call(x,ae,we,_e))))return J++,B(ae,E?we:J-1,G)}),J},N.__iteratorUncached=function(B,$){var G=this;if($)return this.cacheResult().__iterator(B,$);var X=d.__iterator(te,$),J=!0,ae=0;return new le(function(){var we,_e,je;do{if(we=X.next(),we.done)return E||B===re?we:B===Z?ve(B,ae++,void 0,we):ve(B,ae++,we.value[1],we);var Xe=we.value;_e=Xe[0],je=Xe[1],J&&(J=v.call(x,je,_e,G))}while(J);return B===te?we:ve(B,_e,je,we)})},N}function fee(d,v){var x=k(d),E=[d].concat(v).map(function($){return U($)?x&&($=K($)):$=x?Ge($):nt(Array.isArray($)?$:[$]),$}).filter(function($){return $.size!==0});if(E.length===0)return d;if(E.length===1){var N=E[0];if(N===d||x&&k(N)||C(d)&&C(N))return N}var B=new bt(E);return x?B=B.toKeyedSeq():C(d)||(B=B.toSetSeq()),B=B.flatten(!0),B.size=E.reduce(function($,G){if($!==void 0){var X=G.size;if(X!==void 0)return $+X}},0),B}function P9(d,v,x){var E=Qn(d);return E.__iterateUncached=function(N,B){var $=0,G=!1;function X(J,ae){var we=this;J.__iterate(function(_e,je){return(!v||ae<v)&&U(_e)?X(_e,ae+1):N(_e,x?je:$++,we)===!1&&(G=!0),!G},B)}return X(d,0),$},E.__iteratorUncached=function(N,B){var $=d.__iterator(N,B),G=[],X=0;return new le(function(){for(;$;){var J=$.next();if(J.done!==!1){$=G.pop();continue}var ae=J.value;if(N===te&&(ae=ae[1]),(!v||G.length<v)&&U(ae))G.push($),$=ae.__iterator(N,B);else return x?J:ve(N,X++,ae,J)}return pe()})},E}function gee(d,v,x){var E=U9(d);return d.toSeq().map(function(N,B){return E(v.call(x,N,B,d))}).flatten(!0)}function hee(d,v){var x=Qn(d);return x.size=d.size&&d.size*2-1,x.__iterateUncached=function(E,N){var B=this,$=0;return d.__iterate(function(G,X){return(!$||E(v,$++,B)!==!1)&&E(G,$++,B)!==!1},N),$},x.__iteratorUncached=function(E,N){var B=d.__iterator(re,N),$=0,G;return new le(function(){return(!G||$%2)&&(G=B.next(),G.done)?G:$%2?ve(E,$++,v):ve(E,$++,G.value,G)})},x}function Lo(d,v,x){v||(v=K9);var E=k(d),N=0,B=d.toSeq().map(function($,G){return[G,$,N++,x?x($,G,d):$]}).toArray();return B.sort(function($,G){return v($[3],G[3])||$[2]-G[2]}).forEach(E?function($,G){B[G].length=2}:function($,G){B[G]=$[1]}),E?ut(B):C(d)?Be(B):Ve(B)}function Fd(d,v,x){if(v||(v=K9),x){var E=d.toSeq().map(function(N,B){return[N,x(N,B,d)]}).reduce(function(N,B){return F9(v,N[1],B[1])?B:N});return E&&E[0]}else return d.reduce(function(N,B){return F9(v,N,B)?B:N})}function F9(d,v,x){var E=d(x,v);return E===0&&x!==v&&(x==null||x!==x)||E>0}function Ep(d,v,x){var E=Qn(d);return E.size=new bt(x).map(function(N){return N.size}).min(),E.__iterate=function(N,B){for(var $=this.__iterator(re,B),G,X=0;!(G=$.next()).done&&N(G.value,X++,this)!==!1;);return X},E.__iteratorUncached=function(N,B){var $=x.map(function(J){return J=R(J),qe(B?J.reverse():J)}),G=0,X=!1;return new le(function(){var J;return X||(J=$.map(function(ae){return ae.next()}),X=J.some(function(ae){return ae.done})),X?pe():ve(N,G++,v.apply(null,J.map(function(ae){return ae.value})))})},E}function Ct(d,v){return Dt(d)?v:d.constructor(v)}function B9(d){if(d!==Object(d))throw new TypeError("Expected [K, V] tuple: "+d)}function R9(d){return Zr(d.size),y(d)}function U9(d){return k(d)?K:C(d)?M:F}function Qn(d){return Object.create((k(d)?ut:C(d)?Be:Ve).prototype)}function Ap(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Ke.prototype.cacheResult.call(this)}function K9(d,v){return d>v?1:d<v?-1:0}function z9(d){var v=qe(d);if(!v){if(!Ce(d))throw new TypeError("Expected iterable or array-like: "+d);v=qe(R(d))}return v}n(ct,Ie);function ct(d){return d==null?Xn():Dp(d)?d:Xn().withMutations(function(v){var x=K(d);Zr(x.size),x.forEach(function(E,N){return v.set(N,E)})})}ct.prototype.toString=function(){return this.__toString("Map {","}")},ct.prototype.get=function(d,v){return this._root?this._root.get(0,void 0,d,v):v},ct.prototype.set=function(d,v){return W9(this,d,v)},ct.prototype.setIn=function(d,v){return this.updateIn(d,l,function(){return v})},ct.prototype.remove=function(d){return W9(this,d,l)},ct.prototype.deleteIn=function(d){return this.updateIn(d,function(){return l})},ct.prototype.update=function(d,v,x){return arguments.length===1?d(this):this.updateIn([d],v,x)},ct.prototype.updateIn=function(d,v,x){x||(x=v,v=void 0);var E=Y9(this,z9(d),v,x);return E===l?void 0:E},ct.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Xn()},ct.prototype.merge=function(){return Bd(this,void 0,arguments)},ct.prototype.mergeWith=function(d){var v=r.call(arguments,1);return Bd(this,d,v)},ct.prototype.mergeIn=function(d){var v=r.call(arguments,1);return this.updateIn(d,Xn(),function(x){return typeof x.merge=="function"?x.merge.apply(x,v):v[v.length-1]})},ct.prototype.mergeDeep=function(){return Bd(this,Rd(void 0),arguments)},ct.prototype.mergeDeepWith=function(d){var v=r.call(arguments,1);return Bd(this,Rd(d),v)},ct.prototype.mergeDeepIn=function(d){var v=r.call(arguments,1);return this.updateIn(d,Xn(),function(x){return typeof x.mergeDeep=="function"?x.mergeDeep.apply(x,v):v[v.length-1]})},ct.prototype.sort=function(d){return Gt(Lo(this,d))},ct.prototype.sortBy=function(d,v){return Gt(Lo(this,v,d))},ct.prototype.withMutations=function(d){var v=this.asMutable();return d(v),v.wasAltered()?v.__ensureOwner(this.__ownerID):this},ct.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new p)},ct.prototype.asImmutable=function(){return this.__ensureOwner()},ct.prototype.wasAltered=function(){return this.__altered},ct.prototype.__iterator=function(d,v){return new kp(this,d,v)},ct.prototype.__iterate=function(d,v){var x=this,E=0;return this._root&&this._root.iterate(function(N){return E++,d(N[1],N[0],x)},v),E},ct.prototype.__ensureOwner=function(d){return d===this.__ownerID?this:d?Tp(this.size,this._root,d,this.__hash):(this.__ownerID=d,this.__altered=!1,this)};function Dp(d){return!!(d&&d[$9])}ct.isMap=Dp;var $9="@@__IMMUTABLE_MAP__@@",at=ct.prototype;at[$9]=!0,at[a]=at.remove,at.removeIn=at.deleteIn;function Du(d,v){this.ownerID=d,this.entries=v}Du.prototype.get=function(d,v,x,E){for(var N=this.entries,B=0,$=N.length;B<$;B++)if(qt(x,N[B][0]))return N[B][1];return E},Du.prototype.update=function(d,v,x,E,N,B,$){for(var G=N===l,X=this.entries,J=0,ae=X.length;J<ae&&!qt(E,X[J][0]);J++);var we=J<ae;if(we?X[J][1]===N:G)return this;if(g($),(G||!we)&&g(B),!(G&&X.length===1)){if(!we&&!G&&X.length>=yee)return pee(d,X,E,N);var _e=d&&d===this.ownerID,je=_e?X:w(X);return we?G?J===ae-1?je.pop():je[J]=je.pop():je[J]=[E,N]:je.push([E,N]),_e?(this.entries=je,this):new Du(d,je)}};function Vo(d,v,x){this.ownerID=d,this.bitmap=v,this.nodes=x}Vo.prototype.get=function(d,v,x,E){v===void 0&&(v=Gr(x));var N=1<<((d===0?v:v>>>d)&u),B=this.bitmap;return B&N?this.nodes[Q9(B&N-1)].get(d+i,v,x,E):E},Vo.prototype.update=function(d,v,x,E,N,B,$){x===void 0&&(x=Gr(E));var G=(v===0?x:x>>>v)&u,X=1<<G,J=this.bitmap,ae=(J&X)!==0;if(!ae&&N===l)return this;var we=Q9(J&X-1),_e=this.nodes,je=ae?_e[we]:void 0,Xe=Hp(je,d,v+i,x,E,N,B,$);if(Xe===je)return this;if(!ae&&Xe&&_e.length>=xee)return vee(d,_e,J,G,Xe);if(ae&&!Xe&&_e.length===2&&G9(_e[we^1]))return _e[we^1];if(ae&&Xe&&_e.length===1&&G9(Xe))return Xe;var Pt=d&&d===this.ownerID,Hn=ae?Xe?J:J^X:J|X,ta=ae?Xe?X9(_e,we,Xe,Pt):wee(_e,we,Pt):bee(_e,we,Xe,Pt);return Pt?(this.bitmap=Hn,this.nodes=ta,this):new Vo(d,Hn,ta)};function ku(d,v,x){this.ownerID=d,this.count=v,this.nodes=x}ku.prototype.get=function(d,v,x,E){v===void 0&&(v=Gr(x));var N=(d===0?v:v>>>d)&u,B=this.nodes[N];return B?B.get(d+i,v,x,E):E},ku.prototype.update=function(d,v,x,E,N,B,$){x===void 0&&(x=Gr(E));var G=(v===0?x:x>>>v)&u,X=N===l,J=this.nodes,ae=J[G];if(X&&!ae)return this;var we=Hp(ae,d,v+i,x,E,N,B,$);if(we===ae)return this;var _e=this.count;if(!ae)_e++;else if(!we&&(_e--,_e<_ee))return mee(d,J,_e,G);var je=d&&d===this.ownerID,Xe=X9(J,G,we,je);return je?(this.count=_e,this.nodes=Xe,this):new ku(d,_e,Xe)};function Po(d,v,x){this.ownerID=d,this.keyHash=v,this.entries=x}Po.prototype.get=function(d,v,x,E){for(var N=this.entries,B=0,$=N.length;B<$;B++)if(qt(x,N[B][0]))return N[B][1];return E},Po.prototype.update=function(d,v,x,E,N,B,$){x===void 0&&(x=Gr(E));var G=N===l;if(x!==this.keyHash)return G?this:(g($),g(B),Ip(this,d,v,x,[E,N]));for(var X=this.entries,J=0,ae=X.length;J<ae&&!qt(E,X[J][0]);J++);var we=J<ae;if(we?X[J][1]===N:G)return this;if(g($),(G||!we)&&g(B),G&&ae===2)return new Da(d,this.keyHash,X[J^1]);var _e=d&&d===this.ownerID,je=_e?X:w(X);return we?G?J===ae-1?je.pop():je[J]=je.pop():je[J]=[E,N]:je.push([E,N]),_e?(this.entries=je,this):new Po(d,this.keyHash,je)};function Da(d,v,x){this.ownerID=d,this.keyHash=v,this.entry=x}Da.prototype.get=function(d,v,x,E){return qt(x,this.entry[0])?this.entry[1]:E},Da.prototype.update=function(d,v,x,E,N,B,$){var G=N===l,X=qt(E,this.entry[0]);if(X?N===this.entry[1]:G)return this;if(g($),G){g(B);return}return X?d&&d===this.ownerID?(this.entry[1]=N,this):new Da(d,this.keyHash,[E,N]):(g(B),Ip(this,d,v,Gr(E),[E,N]))},Du.prototype.iterate=Po.prototype.iterate=function(d,v){for(var x=this.entries,E=0,N=x.length-1;E<=N;E++)if(d(x[v?N-E:E])===!1)return!1},Vo.prototype.iterate=ku.prototype.iterate=function(d,v){for(var x=this.nodes,E=0,N=x.length-1;E<=N;E++){var B=x[v?N-E:E];if(B&&B.iterate(d,v)===!1)return!1}},Da.prototype.iterate=function(d,v){return d(this.entry)},n(kp,le);function kp(d,v,x){this._type=v,this._reverse=x,this._stack=d._root&&j9(d._root)}kp.prototype.next=function(){for(var d=this._type,v=this._stack;v;){var x=v.node,E=v.index++,N;if(x.entry){if(E===0)return Np(d,x.entry)}else if(x.entries){if(N=x.entries.length-1,E<=N)return Np(d,x.entries[this._reverse?N-E:E])}else if(N=x.nodes.length-1,E<=N){var B=x.nodes[this._reverse?N-E:E];if(B){if(B.entry)return Np(d,B.entry);v=this._stack=j9(B,v)}continue}v=this._stack=this._stack.__prev}return pe()};function Np(d,v){return ve(d,v[0],v[1])}function j9(d,v){return{node:d,index:0,__prev:v}}function Tp(d,v,x,E){var N=Object.create(at);return N.size=d,N._root=v,N.__ownerID=x,N.__hash=E,N.__altered=!1,N}var q9;function Xn(){return q9||(q9=Tp(0))}function W9(d,v,x){var E,N;if(d._root){var B=m(f),$=m(h);if(E=Hp(d._root,d.__ownerID,0,void 0,v,x,B,$),!$.value)return d;N=d.size+(B.value?x===l?-1:1:0)}else{if(x===l)return d;N=1,E=new Du(d.__ownerID,[[v,x]])}return d.__ownerID?(d.size=N,d._root=E,d.__hash=void 0,d.__altered=!0,d):E?Tp(N,E):Xn()}function Hp(d,v,x,E,N,B,$,G){return d?d.update(v,x,E,N,B,$,G):B===l?d:(g(G),g($),new Da(v,E,[N,B]))}function G9(d){return d.constructor===Da||d.constructor===Po}function Ip(d,v,x,E,N){if(d.keyHash===E)return new Po(v,E,[d.entry,N]);var B=(x===0?d.keyHash:d.keyHash>>>x)&u,$=(x===0?E:E>>>x)&u,G,X=B===$?[Ip(d,v,x+i,E,N)]:(G=new Da(v,E,N),B<$?[d,G]:[G,d]);return new Vo(v,1<<B|1<<$,X)}function pee(d,v,x,E){d||(d=new p);for(var N=new Da(d,Gr(x),[x,E]),B=0;B<v.length;B++){var $=v[B];N=N.update(d,0,void 0,$[0],$[1])}return N}function mee(d,v,x,E){for(var N=0,B=0,$=new Array(x),G=0,X=1,J=v.length;G<J;G++,X<<=1){var ae=v[G];ae!==void 0&&G!==E&&(N|=X,$[B++]=ae)}return new Vo(d,N,$)}function vee(d,v,x,E,N){for(var B=0,$=new Array(s),G=0;x!==0;G++,x>>>=1)$[G]=x&1?v[B++]:void 0;return $[E]=N,new ku(d,B+1,$)}function Bd(d,v,x){for(var E=[],N=0;N<x.length;N++){var B=x[N],$=K(B);U(B)||($=$.map(function(G){return hp(G)})),E.push($)}return Z9(d,v,E)}function Rd(d){return function(v,x,E){return v&&v.mergeDeepWith&&U(x)?v.mergeDeepWith(d,x):d?d(v,x,E):x}}function Z9(d,v,x){return x=x.filter(function(E){return E.size!==0}),x.length===0?d:d.size===0&&!d.__ownerID&&x.length===1?d.constructor(x[0]):d.withMutations(function(E){for(var N=v?function($,G){E.update(G,l,function(X){return X===l?$:v(X,$,G)})}:function($,G){E.set(G,$)},B=0;B<x.length;B++)x[B].forEach(N)})}function Y9(d,v,x,E){var N=d===l,B=v.next();if(B.done){var $=N?x:d,G=E($);return G===$?d:G}Pd(N||d&&d.set,"invalid keyPath");var X=B.value,J=N?l:d.get(X,l),ae=Y9(J,v,x,E);return ae===J?d:ae===l?d.remove(X):(N?Xn():d).set(X,ae)}function Q9(d){return d=d-(d>>1&1431655765),d=(d&858993459)+(d>>2&858993459),d=d+(d>>4)&252645135,d=d+(d>>8),d=d+(d>>16),d&127}function X9(d,v,x,E){var N=E?d:w(d);return N[v]=x,N}function bee(d,v,x,E){var N=d.length+1;if(E&&v+1===N)return d[v]=x,d;for(var B=new Array(N),$=0,G=0;G<N;G++)G===v?(B[G]=x,$=-1):B[G]=d[G+$];return B}function wee(d,v,x){var E=d.length-1;if(x&&v===E)return d.pop(),d;for(var N=new Array(E),B=0,$=0;$<E;$++)$===v&&(B=1),N[$]=d[$+B];return N}var yee=s/4,xee=s/2,_ee=s/4;n(Lt,nr);function Lt(d){var v=Op();if(d==null)return v;if(J9(d))return d;var x=M(d),E=x.size;return E===0?v:(Zr(E),E>0&&E<s?Tu(0,E,i,null,new Ja(x.toArray())):v.withMutations(function(N){N.setSize(E),x.forEach(function(B,$){return N.set($,B)})}))}Lt.of=function(){return this(arguments)},Lt.prototype.toString=function(){return this.__toString("List [","]")},Lt.prototype.get=function(d,v){if(d=_(this,d),d<0||d>=this.size)return v;d+=this._origin;var x=n7(this,d);return x&&x.array[d&u]},Lt.prototype.set=function(d,v){return Cee(this,d,v)},Lt.prototype.remove=function(d){return this.has(d)?d===0?this.shift():d===this.size-1?this.pop():this.splice(d,1):this},Lt.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=i,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Op()},Lt.prototype.push=function(){var d=arguments,v=this.size;return this.withMutations(function(x){ei(x,0,v+d.length);for(var E=0;E<d.length;E++)x.set(v+E,d[E])})},Lt.prototype.pop=function(){return ei(this,0,-1)},Lt.prototype.unshift=function(){var d=arguments;return this.withMutations(function(v){ei(v,-d.length);for(var x=0;x<d.length;x++)v.set(x,d[x])})},Lt.prototype.shift=function(){return ei(this,1)},Lt.prototype.merge=function(){return Ud(this,void 0,arguments)},Lt.prototype.mergeWith=function(d){var v=r.call(arguments,1);return Ud(this,d,v)},Lt.prototype.mergeDeep=function(){return Ud(this,Rd(void 0),arguments)},Lt.prototype.mergeDeepWith=function(d){var v=r.call(arguments,1);return Ud(this,Rd(d),v)},Lt.prototype.setSize=function(d){return ei(this,0,d)},Lt.prototype.slice=function(d,v){var x=this.size;return H(d,v,x)?this:ei(this,L(d,x),O(v,x))},Lt.prototype.__iterator=function(d,v){var x=0,E=t7(this,v);return new le(function(){var N=E();return N===Nu?pe():ve(d,x++,N)})},Lt.prototype.__iterate=function(d,v){for(var x=0,E=t7(this,v),N;(N=E())!==Nu&&d(N,x++,this)!==!1;);return x},Lt.prototype.__ensureOwner=function(d){return d===this.__ownerID?this:d?Tu(this._origin,this._capacity,this._level,this._root,this._tail,d,this.__hash):(this.__ownerID=d,this)};function J9(d){return!!(d&&d[e7])}Lt.isList=J9;var e7="@@__IMMUTABLE_LIST__@@",yr=Lt.prototype;yr[e7]=!0,yr[a]=yr.remove,yr.setIn=at.setIn,yr.deleteIn=yr.removeIn=at.removeIn,yr.update=at.update,yr.updateIn=at.updateIn,yr.mergeIn=at.mergeIn,yr.mergeDeepIn=at.mergeDeepIn,yr.withMutations=at.withMutations,yr.asMutable=at.asMutable,yr.asImmutable=at.asImmutable,yr.wasAltered=at.wasAltered;function Ja(d,v){this.array=d,this.ownerID=v}Ja.prototype.removeBefore=function(d,v,x){if(x===v?1<<v:this.array.length===0)return this;var E=x>>>v&u;if(E>=this.array.length)return new Ja([],d);var N=E===0,B;if(v>0){var $=this.array[E];if(B=$&&$.removeBefore(d,v-i,x),B===$&&N)return this}if(N&&!B)return this;var G=Fo(this,d);if(!N)for(var X=0;X<E;X++)G.array[X]=void 0;return B&&(G.array[E]=B),G},Ja.prototype.removeAfter=function(d,v,x){if(x===v?1<<v:this.array.length===0)return this;var E=x-1>>>v&u;if(E>=this.array.length)return this;var N=E===this.array.length-1,B;if(v>0){var $=this.array[E];if(B=$&&$.removeAfter(d,v-i,x),B===$&&N)return this}if(N&&!B)return this;var G=Fo(this,d);return N||G.array.pop(),B&&(G.array[E]=B),G};var Nu={};function t7(d,v){var x=d._origin,E=d._capacity,N=Hu(E),B=d._tail;return $(d._root,d._level,0);function $(J,ae,we){return ae===0?G(J,we):X(J,ae,we)}function G(J,ae){var we=ae===N?B&&B.array:J&&J.array,_e=ae>x?0:x-ae,je=E-ae;return je>s&&(je=s),function(){if(_e===je)return Nu;var Xe=v?--je:_e++;return we&&we[Xe]}}function X(J,ae,we){var _e,je=J&&J.array,Xe=we>x?0:x-we>>ae,Pt=(E-we>>ae)+1;return Pt>s&&(Pt=s),function(){do{if(_e){var Hn=_e();if(Hn!==Nu)return Hn;_e=null}if(Xe===Pt)return Nu;var ta=v?--Pt:Xe++;_e=$(je&&je[ta],ae-i,we+(ta<<ae))}while(!0)}}}function Tu(d,v,x,E,N,B,$){var G=Object.create(yr);return G.size=v-d,G._origin=d,G._capacity=v,G._level=x,G._root=E,G._tail=N,G.__ownerID=B,G.__hash=$,G.__altered=!1,G}var r7;function Op(){return r7||(r7=Tu(0,0,i))}function Cee(d,v,x){if(v=_(d,v),v>=d.size||v<0)return d.withMutations(function($){v<0?ei($,v).set(0,x):ei($,0,v+1).set(v,x)});v+=d._origin;var E=d._tail,N=d._root,B=m(h);return v>=Hu(d._capacity)?E=Mp(E,d.__ownerID,0,v,x,B):N=Mp(N,d.__ownerID,d._level,v,x,B),B.value?d.__ownerID?(d._root=N,d._tail=E,d.__hash=void 0,d.__altered=!0,d):Tu(d._origin,d._capacity,d._level,N,E):d}function Mp(d,v,x,E,N,B){var $=E>>>x&u,G=d&&$<d.array.length;if(!G&&N===void 0)return d;var X;if(x>0){var J=d&&d.array[$],ae=Mp(J,v,x-i,E,N,B);return ae===J?d:(X=Fo(d,v),X.array[$]=ae,X)}return G&&d.array[$]===N?d:(g(B),X=Fo(d,v),N===void 0&&$===X.array.length-1?X.array.pop():X.array[$]=N,X)}function Fo(d,v){return v&&d&&v===d.ownerID?d:new Ja(d?d.array.slice():[],v)}function n7(d,v){if(v>=Hu(d._capacity))return d._tail;if(v<1<<d._level+i){for(var x=d._root,E=d._level;x&&E>0;)x=x.array[v>>>E&u],E-=i;return x}}function ei(d,v,x){var E=d.__ownerID||new p,N=d._origin,B=d._capacity,$=N+v,G=x===void 0?B:x<0?B+x:N+x;if($===N&&G===B)return d;if($>=G)return d.clear();for(var X=d._level,J=d._root,ae=0;$+ae<0;)J=new Ja(J&&J.array.length?[void 0,J]:[],E),X+=i,ae+=1<<X;ae&&($+=ae,N+=ae,G+=ae,B+=ae);for(var we=Hu(B),_e=Hu(G);_e>=1<<X+i;)J=new Ja(J&&J.array.length?[J]:[],E),X+=i;var je=d._tail,Xe=_e<we?n7(d,G-1):_e>we?new Ja([],E):je;if(je&&_e>we&&$<B&&je.array.length){J=Fo(J,E);for(var Pt=J,Hn=X;Hn>i;Hn-=i){var ta=we>>>Hn&u;Pt=Pt.array[ta]=Fo(Pt.array[ta],E)}Pt.array[we>>>i&u]=je}if(G<B&&(Xe=Xe&&Xe.removeAfter(E,0,G)),$>=_e)$-=_e,G-=_e,X=i,J=null,Xe=Xe&&Xe.removeBefore(E,0,$);else if($>N||_e<we){for(ae=0;J;){var Wd=$>>>X&u;if(Wd!==_e>>>X&u)break;Wd&&(ae+=(1<<X)*Wd),X-=i,J=J.array[Wd]}J&&$>N&&(J=J.removeBefore(E,X,$-ae)),J&&_e<we&&(J=J.removeAfter(E,X,_e-ae)),ae&&($-=ae,G-=ae)}return d.__ownerID?(d.size=G-$,d._origin=$,d._capacity=G,d._level=X,d._root=J,d._tail=Xe,d.__hash=void 0,d.__altered=!0,d):Tu($,G,X,J,Xe)}function Ud(d,v,x){for(var E=[],N=0,B=0;B<x.length;B++){var $=x[B],G=M($);G.size>N&&(N=G.size),U($)||(G=G.map(function(X){return hp(X)})),E.push(G)}return N>d.size&&(d=d.setSize(N)),Z9(d,v,E)}function Hu(d){return d<s?0:d-1>>>i<<i}n(Gt,ct);function Gt(d){return d==null?Kd():a7(d)?d:Kd().withMutations(function(v){var x=K(d);Zr(x.size),x.forEach(function(E,N){return v.set(N,E)})})}Gt.of=function(){return this(arguments)},Gt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Gt.prototype.get=function(d,v){var x=this._map.get(d);return x!==void 0?this._list.get(x)[1]:v},Gt.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Kd()},Gt.prototype.set=function(d,v){return o7(this,d,v)},Gt.prototype.remove=function(d){return o7(this,d,l)},Gt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Gt.prototype.__iterate=function(d,v){var x=this;return this._list.__iterate(function(E){return E&&d(E[1],E[0],x)},v)},Gt.prototype.__iterator=function(d,v){return this._list.fromEntrySeq().__iterator(d,v)},Gt.prototype.__ensureOwner=function(d){if(d===this.__ownerID)return this;var v=this._map.__ensureOwner(d),x=this._list.__ensureOwner(d);return d?Lp(v,x,d,this.__hash):(this.__ownerID=d,this._map=v,this._list=x,this)};function a7(d){return Dp(d)&&I(d)}Gt.isOrderedMap=a7,Gt.prototype[z]=!0,Gt.prototype[a]=Gt.prototype.remove;function Lp(d,v,x,E){var N=Object.create(Gt.prototype);return N.size=d?d.size:0,N._map=d,N._list=v,N.__ownerID=x,N.__hash=E,N}var i7;function Kd(){return i7||(i7=Lp(Xn(),Op()))}function o7(d,v,x){var E=d._map,N=d._list,B=E.get(v),$=B!==void 0,G,X;if(x===l){if(!$)return d;N.size>=s&&N.size>=E.size*2?(X=N.filter(function(J,ae){return J!==void 0&&B!==ae}),G=X.toKeyedSeq().map(function(J){return J[0]}).flip().toMap(),d.__ownerID&&(G.__ownerID=X.__ownerID=d.__ownerID)):(G=E.remove(v),X=B===N.size-1?N.pop():N.set(B,void 0))}else if($){if(x===N.get(B)[1])return d;G=E,X=N.set(B,[v,x])}else G=E.set(v,N.size),X=N.set(N.size,[v,x]);return d.__ownerID?(d.size=G.size,d._map=G,d._list=X,d.__hash=void 0,d):Lp(G,X)}n(Yt,nr);function Yt(d){return d==null?Vp():s7(d)?d:Vp().unshiftAll(d)}Yt.of=function(){return this(arguments)},Yt.prototype.toString=function(){return this.__toString("Stack [","]")},Yt.prototype.get=function(d,v){var x=this._head;for(d=_(this,d);x&&d--;)x=x.next;return x?x.value:v},Yt.prototype.peek=function(){return this._head&&this._head.value},Yt.prototype.push=function(){if(arguments.length===0)return this;for(var d=this.size+arguments.length,v=this._head,x=arguments.length-1;x>=0;x--)v={value:arguments[x],next:v};return this.__ownerID?(this.size=d,this._head=v,this.__hash=void 0,this.__altered=!0,this):Iu(d,v)},Yt.prototype.pushAll=function(d){if(d=M(d),d.size===0)return this;Zr(d.size);var v=this.size,x=this._head;return d.reverse().forEach(function(E){v++,x={value:E,next:x}}),this.__ownerID?(this.size=v,this._head=x,this.__hash=void 0,this.__altered=!0,this):Iu(v,x)},Yt.prototype.pop=function(){return this.slice(1)},Yt.prototype.unshift=function(){return this.push.apply(this,arguments)},Yt.prototype.unshiftAll=function(d){return this.pushAll(d)},Yt.prototype.shift=function(){return this.pop.apply(this,arguments)},Yt.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Vp()},Yt.prototype.slice=function(d,v){if(H(d,v,this.size))return this;var x=L(d,this.size),E=O(v,this.size);if(E!==this.size)return nr.prototype.slice.call(this,d,v);for(var N=this.size-x,B=this._head;x--;)B=B.next;return this.__ownerID?(this.size=N,this._head=B,this.__hash=void 0,this.__altered=!0,this):Iu(N,B)},Yt.prototype.__ensureOwner=function(d){return d===this.__ownerID?this:d?Iu(this.size,this._head,d,this.__hash):(this.__ownerID=d,this.__altered=!1,this)},Yt.prototype.__iterate=function(d,v){if(v)return this.reverse().__iterate(d);for(var x=0,E=this._head;E&&d(E.value,x++,this)!==!1;)E=E.next;return x},Yt.prototype.__iterator=function(d,v){if(v)return this.reverse().__iterator(d);var x=0,E=this._head;return new le(function(){if(E){var N=E.value;return E=E.next,ve(d,x++,N)}return pe()})};function s7(d){return!!(d&&d[u7])}Yt.isStack=s7;var u7="@@__IMMUTABLE_STACK__@@",Bo=Yt.prototype;Bo[u7]=!0,Bo.withMutations=at.withMutations,Bo.asMutable=at.asMutable,Bo.asImmutable=at.asImmutable,Bo.wasAltered=at.wasAltered;function Iu(d,v,x,E){var N=Object.create(Bo);return N.size=d,N._head=v,N.__ownerID=x,N.__hash=E,N.__altered=!1,N}var l7;function Vp(){return l7||(l7=Iu(0))}n(Vt,Xa);function Vt(d){return d==null?Bp():Pp(d)?d:Bp().withMutations(function(v){var x=F(d);Zr(x.size),x.forEach(function(E){return v.add(E)})})}Vt.of=function(){return this(arguments)},Vt.fromKeys=function(d){return this(K(d).keySeq())},Vt.prototype.toString=function(){return this.__toString("Set {","}")},Vt.prototype.has=function(d){return this._map.has(d)},Vt.prototype.add=function(d){return Fp(this,this._map.set(d,!0))},Vt.prototype.remove=function(d){return Fp(this,this._map.remove(d))},Vt.prototype.clear=function(){return Fp(this,this._map.clear())},Vt.prototype.union=function(){var d=r.call(arguments,0);return d=d.filter(function(v){return v.size!==0}),d.length===0?this:this.size===0&&!this.__ownerID&&d.length===1?this.constructor(d[0]):this.withMutations(function(v){for(var x=0;x<d.length;x++)F(d[x]).forEach(function(E){return v.add(E)})})},Vt.prototype.intersect=function(){var d=r.call(arguments,0);if(d.length===0)return this;d=d.map(function(x){return F(x)});var v=this;return this.withMutations(function(x){v.forEach(function(E){d.every(function(N){return N.includes(E)})||x.remove(E)})})},Vt.prototype.subtract=function(){var d=r.call(arguments,0);if(d.length===0)return this;d=d.map(function(x){return F(x)});var v=this;return this.withMutations(function(x){v.forEach(function(E){d.some(function(N){return N.includes(E)})&&x.remove(E)})})},Vt.prototype.merge=function(){return this.union.apply(this,arguments)},Vt.prototype.mergeWith=function(d){var v=r.call(arguments,1);return this.union.apply(this,v)},Vt.prototype.sort=function(d){return Jn(Lo(this,d))},Vt.prototype.sortBy=function(d,v){return Jn(Lo(this,v,d))},Vt.prototype.wasAltered=function(){return this._map.wasAltered()},Vt.prototype.__iterate=function(d,v){var x=this;return this._map.__iterate(function(E,N){return d(N,N,x)},v)},Vt.prototype.__iterator=function(d,v){return this._map.map(function(x,E){return E}).__iterator(d,v)},Vt.prototype.__ensureOwner=function(d){if(d===this.__ownerID)return this;var v=this._map.__ensureOwner(d);return d?this.__make(v,d):(this.__ownerID=d,this._map=v,this)};function Pp(d){return!!(d&&d[c7])}Vt.isSet=Pp;var c7="@@__IMMUTABLE_SET__@@",Yr=Vt.prototype;Yr[c7]=!0,Yr[a]=Yr.remove,Yr.mergeDeep=Yr.merge,Yr.mergeDeepWith=Yr.mergeWith,Yr.withMutations=at.withMutations,Yr.asMutable=at.asMutable,Yr.asImmutable=at.asImmutable,Yr.__empty=Bp,Yr.__make=d7;function Fp(d,v){return d.__ownerID?(d.size=v.size,d._map=v,d):v===d._map?d:v.size===0?d.__empty():d.__make(v)}function d7(d,v){var x=Object.create(Yr);return x.size=d?d.size:0,x._map=d,x.__ownerID=v,x}var f7;function Bp(){return f7||(f7=d7(Xn()))}n(Jn,Vt);function Jn(d){return d==null?Rp():g7(d)?d:Rp().withMutations(function(v){var x=F(d);Zr(x.size),x.forEach(function(E){return v.add(E)})})}Jn.of=function(){return this(arguments)},Jn.fromKeys=function(d){return this(K(d).keySeq())},Jn.prototype.toString=function(){return this.__toString("OrderedSet {","}")};function g7(d){return Pp(d)&&I(d)}Jn.isOrderedSet=g7;var zd=Jn.prototype;zd[z]=!0,zd.__empty=Rp,zd.__make=h7;function h7(d,v){var x=Object.create(zd);return x.size=d?d.size:0,x._map=d,x.__ownerID=v,x}var p7;function Rp(){return p7||(p7=h7(Kd()))}n(Qr,Ie);function Qr(d,v){var x,E=function($){if($ instanceof E)return $;if(!(this instanceof E))return new E($);if(!x){x=!0;var G=Object.keys(d);See(N,G),N.size=G.length,N._name=v,N._keys=G,N._defaultValues=d}this._map=ct($)},N=E.prototype=Object.create(ar);return N.constructor=E,E}Qr.prototype.toString=function(){return this.__toString(m7(this)+" {","}")},Qr.prototype.has=function(d){return this._defaultValues.hasOwnProperty(d)},Qr.prototype.get=function(d,v){if(!this.has(d))return v;var x=this._defaultValues[d];return this._map?this._map.get(d,x):x},Qr.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var d=this.constructor;return d._empty||(d._empty=$d(this,Xn()))},Qr.prototype.set=function(d,v){if(!this.has(d))throw new Error('Cannot set unknown key "'+d+'" on '+m7(this));var x=this._map&&this._map.set(d,v);return this.__ownerID||x===this._map?this:$d(this,x)},Qr.prototype.remove=function(d){if(!this.has(d))return this;var v=this._map&&this._map.remove(d);return this.__ownerID||v===this._map?this:$d(this,v)},Qr.prototype.wasAltered=function(){return this._map.wasAltered()},Qr.prototype.__iterator=function(d,v){var x=this;return K(this._defaultValues).map(function(E,N){return x.get(N)}).__iterator(d,v)},Qr.prototype.__iterate=function(d,v){var x=this;return K(this._defaultValues).map(function(E,N){return x.get(N)}).__iterate(d,v)},Qr.prototype.__ensureOwner=function(d){if(d===this.__ownerID)return this;var v=this._map&&this._map.__ensureOwner(d);return d?$d(this,v,d):(this.__ownerID=d,this._map=v,this)};var ar=Qr.prototype;ar[a]=ar.remove,ar.deleteIn=ar.removeIn=at.removeIn,ar.merge=at.merge,ar.mergeWith=at.mergeWith,ar.mergeIn=at.mergeIn,ar.mergeDeep=at.mergeDeep,ar.mergeDeepWith=at.mergeDeepWith,ar.mergeDeepIn=at.mergeDeepIn,ar.setIn=at.setIn,ar.update=at.update,ar.updateIn=at.updateIn,ar.withMutations=at.withMutations,ar.asMutable=at.asMutable,ar.asImmutable=at.asImmutable;function $d(d,v,x){var E=Object.create(Object.getPrototypeOf(d));return E._map=v,E.__ownerID=x,E}function m7(d){return d._name||d.constructor.name||"Record"}function See(d,v){try{v.forEach(Eee.bind(void 0,d))}catch{}}function Eee(d,v){Object.defineProperty(d,v,{get:function(){return this.get(v)},set:function(x){Pd(this.__ownerID,"Cannot set on an immutable record."),this.set(v,x)}})}function Up(d,v){if(d===v)return!0;if(!U(v)||d.size!==void 0&&v.size!==void 0&&d.size!==v.size||d.__hash!==void 0&&v.__hash!==void 0&&d.__hash!==v.__hash||k(d)!==k(v)||C(d)!==C(v)||I(d)!==I(v))return!1;if(d.size===0&&v.size===0)return!0;var x=!A(d);if(I(d)){var E=d.entries();return v.every(function(X,J){var ae=E.next().value;return ae&&qt(ae[1],X)&&(x||qt(ae[0],J))})&&E.next().done}var N=!1;if(d.size===void 0)if(v.size===void 0)typeof d.cacheResult=="function"&&d.cacheResult();else{N=!0;var B=d;d=v,v=B}var $=!0,G=v.__iterate(function(X,J){if(x?!d.has(X):N?!qt(X,d.get(J,l)):!qt(d.get(J,l),X))return $=!1,!1});return $&&d.size===G}n(cr,Be);function cr(d,v,x){if(!(this instanceof cr))return new cr(d,v,x);if(Pd(x!==0,"Cannot step a Range by 0"),d=d||0,v===void 0&&(v=1/0),x=x===void 0?1:Math.abs(x),v<d&&(x=-x),this._start=d,this._end=v,this._step=x,this.size=Math.max(0,Math.ceil((v-d)/x-1)+1),this.size===0){if(Kp)return Kp;Kp=this}}cr.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},cr.prototype.get=function(d,v){return this.has(d)?this._start+_(this,d)*this._step:v},cr.prototype.includes=function(d){var v=(d-this._start)/this._step;return v>=0&&v<this.size&&v===Math.floor(v)},cr.prototype.slice=function(d,v){return H(d,v,this.size)?this:(d=L(d,this.size),v=O(v,this.size),v<=d?new cr(0,0):new cr(this.get(d,this._end),this.get(v,this._end),this._step))},cr.prototype.indexOf=function(d){var v=d-this._start;if(v%this._step===0){var x=v/this._step;if(x>=0&&x<this.size)return x}return-1},cr.prototype.lastIndexOf=function(d){return this.indexOf(d)},cr.prototype.__iterate=function(d,v){for(var x=this.size-1,E=this._step,N=v?this._start+x*E:this._start,B=0;B<=x;B++){if(d(N,B,this)===!1)return B+1;N+=v?-E:E}return B},cr.prototype.__iterator=function(d,v){var x=this.size-1,E=this._step,N=v?this._start+x*E:this._start,B=0;return new le(function(){var $=N;return N+=v?-E:E,B>x?pe():ve(d,B++,$)})},cr.prototype.equals=function(d){return d instanceof cr?this._start===d._start&&this._end===d._end&&this._step===d._step:Up(this,d)};var Kp;n(dr,Be);function dr(d,v){if(!(this instanceof dr))return new dr(d,v);if(this._value=d,this.size=v===void 0?1/0:Math.max(0,v),this.size===0){if(zp)return zp;zp=this}}dr.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},dr.prototype.get=function(d,v){return this.has(d)?this._value:v},dr.prototype.includes=function(d){return qt(this._value,d)},dr.prototype.slice=function(d,v){var x=this.size;return H(d,v,x)?this:new dr(this._value,O(v,x)-L(d,x))},dr.prototype.reverse=function(){return this},dr.prototype.indexOf=function(d){return qt(this._value,d)?0:-1},dr.prototype.lastIndexOf=function(d){return qt(this._value,d)?this.size:-1},dr.prototype.__iterate=function(d,v){for(var x=0;x<this.size;x++)if(d(this._value,x,this)===!1)return x+1;return x},dr.prototype.__iterator=function(d,v){var x=this,E=0;return new le(function(){return E<x.size?ve(d,E++,x._value):pe()})},dr.prototype.equals=function(d){return d instanceof dr?qt(this._value,d._value):Up(d)};var zp;function ea(d,v){var x=function(E){d.prototype[E]=v[E]};return Object.keys(v).forEach(x),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(v).forEach(x),d}R.Iterator=le,ea(R,{toArray:function(){Zr(this.size);var d=new Array(this.size||0);return this.valueSeq().__iterate(function(v,x){d[x]=v}),d},toIndexedSeq:function(){return new Io(this)},toJS:function(){return this.toSeq().map(function(d){return d&&typeof d.toJS=="function"?d.toJS():d}).__toJS()},toJSON:function(){return this.toSeq().map(function(d){return d&&typeof d.toJSON=="function"?d.toJSON():d}).__toJS()},toKeyedSeq:function(){return new bn(this,!0)},toMap:function(){return ct(this.toKeyedSeq())},toObject:function(){Zr(this.size);var d={};return this.__iterate(function(v,x){d[x]=v}),d},toOrderedMap:function(){return Gt(this.toKeyedSeq())},toOrderedSet:function(){return Jn(k(this)?this.valueSeq():this)},toSet:function(){return Vt(k(this)?this.valueSeq():this)},toSetSeq:function(){return new Oo(this)},toSeq:function(){return C(this)?this.toIndexedSeq():k(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Yt(k(this)?this.valueSeq():this)},toList:function(){return Lt(k(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(d,v){return this.size===0?d+v:d+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+v},concat:function(){var d=r.call(arguments,0);return Ct(this,fee(this,d))},contains:function(d){return this.includes(d)},includes:function(d){return this.some(function(v){return qt(v,d)})},entries:function(){return this.__iterator(te)},every:function(d,v){Zr(this.size);var x=!0;return this.__iterate(function(E,N,B){if(!d.call(v,E,N,B))return x=!1,!1}),x},filter:function(d,v){return Ct(this,L9(this,d,v,!0))},find:function(d,v,x){var E=this.findEntry(d,v);return E?E[1]:x},findEntry:function(d,v){var x;return this.__iterate(function(E,N,B){if(d.call(v,E,N,B))return x=[N,E],!1}),x},findLastEntry:function(d,v){return this.toSeq().reverse().findEntry(d,v)},forEach:function(d,v){return Zr(this.size),this.__iterate(v?d.bind(v):d)},join:function(d){Zr(this.size),d=d!==void 0?""+d:",";var v="",x=!0;return this.__iterate(function(E){x?x=!1:v+=d,v+=E!=null?E.toString():""}),v},keys:function(){return this.__iterator(Z)},map:function(d,v){return Ct(this,M9(this,d,v))},reduce:function(d,v,x){Zr(this.size);var E,N;return arguments.length<2?N=!0:E=v,this.__iterate(function(B,$,G){N?(N=!1,E=B):E=d.call(x,E,B,$,G)}),E},reduceRight:function(d,v,x){var E=this.toKeyedSeq().reverse();return E.reduce.apply(E,arguments)},reverse:function(){return Ct(this,Cp(this,!0))},slice:function(d,v){return Ct(this,Sp(this,d,v,!0))},some:function(d,v){return!this.every(qd(d),v)},sort:function(d){return Ct(this,Lo(this,d))},values:function(){return this.__iterator(re)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(d,v){return y(d?this.toSeq().filter(d,v):this)},countBy:function(d,v){return lee(this,d,v)},equals:function(d){return Up(this,d)},entrySeq:function(){var d=this;if(d._cache)return new bt(d._cache);var v=d.toSeq().map(Dee).toIndexedSeq();return v.fromEntrySeq=function(){return d.toSeq()},v},filterNot:function(d,v){return this.filter(qd(d),v)},findLast:function(d,v,x){return this.toKeyedSeq().reverse().find(d,v,x)},first:function(){return this.find(S)},flatMap:function(d,v){return Ct(this,gee(this,d,v))},flatten:function(d){return Ct(this,P9(this,d,!0))},fromEntrySeq:function(){return new Mo(this)},get:function(d,v){return this.find(function(x,E){return qt(E,d)},void 0,v)},getIn:function(d,v){for(var x=this,E=z9(d),N;!(N=E.next()).done;){var B=N.value;if(x=x&&x.get?x.get(B,l):l,x===l)return v}return x},groupBy:function(d,v){return cee(this,d,v)},has:function(d){return this.get(d,l)!==l},hasIn:function(d){return this.getIn(d,l)!==l},isSubset:function(d){return d=typeof d.includes=="function"?d:R(d),this.every(function(v){return d.includes(v)})},isSuperset:function(d){return d=typeof d.isSubset=="function"?d:R(d),d.isSubset(this)},keySeq:function(){return this.toSeq().map(Aee).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(d){return Fd(this,d)},maxBy:function(d,v){return Fd(this,v,d)},min:function(d){return Fd(this,d?v7(d):w7)},minBy:function(d,v){return Fd(this,v?v7(v):w7,d)},rest:function(){return this.slice(1)},skip:function(d){return this.slice(Math.max(0,d))},skipLast:function(d){return Ct(this,this.toSeq().reverse().skip(d).reverse())},skipWhile:function(d,v){return Ct(this,V9(this,d,v,!0))},skipUntil:function(d,v){return this.skipWhile(qd(d),v)},sortBy:function(d,v){return Ct(this,Lo(this,v,d))},take:function(d){return this.slice(0,Math.max(0,d))},takeLast:function(d){return Ct(this,this.toSeq().reverse().take(d).reverse())},takeWhile:function(d,v){return Ct(this,dee(this,d,v))},takeUntil:function(d,v){return this.takeWhile(qd(d),v)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Nee(this))}});var Vr=R.prototype;Vr[T]=!0,Vr[ge]=Vr.values,Vr.__toJS=Vr.toArray,Vr.__toStringMapper=b7,Vr.inspect=Vr.toSource=function(){return this.toString()},Vr.chain=Vr.flatMap,function(){try{Object.defineProperty(Vr,"length",{get:function(){if(!R.noLengthWarning){var d;try{throw new Error}catch(v){d=v.stack}if(d.indexOf("_wrapObject")===-1)return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+d),this.size}}})}catch{}}(),ea(K,{flip:function(){return Ct(this,O9(this))},findKey:function(d,v){var x=this.findEntry(d,v);return x&&x[0]},findLastKey:function(d,v){return this.toSeq().reverse().findKey(d,v)},keyOf:function(d){return this.findKey(function(v){return qt(v,d)})},lastKeyOf:function(d){return this.findLastKey(function(v){return qt(v,d)})},mapEntries:function(d,v){var x=this,E=0;return Ct(this,this.toSeq().map(function(N,B){return d.call(v,[B,N],E++,x)}).fromEntrySeq())},mapKeys:function(d,v){var x=this;return Ct(this,this.toSeq().flip().map(function(E,N){return d.call(v,E,N,x)}).flip())}});var jd=K.prototype;jd[V]=!0,jd[ge]=Vr.entries,jd.__toJS=Vr.toObject,jd.__toStringMapper=function(d,v){return JSON.stringify(v)+": "+b7(d)},ea(M,{toKeyedSeq:function(){return new bn(this,!1)},filter:function(d,v){return Ct(this,L9(this,d,v,!1))},findIndex:function(d,v){var x=this.findEntry(d,v);return x?x[0]:-1},indexOf:function(d){var v=this.toKeyedSeq().keyOf(d);return v===void 0?-1:v},lastIndexOf:function(d){return this.toSeq().reverse().indexOf(d)},reverse:function(){return Ct(this,Cp(this,!1))},slice:function(d,v){return Ct(this,Sp(this,d,v,!1))},splice:function(d,v){var x=arguments.length;if(v=Math.max(v|0,0),x===0||x===2&&!v)return this;d=L(d,this.size);var E=this.slice(0,d);return Ct(this,x===1?E:E.concat(w(arguments,2),this.slice(d+v)))},findLastIndex:function(d,v){var x=this.toKeyedSeq().findLastKey(d,v);return x===void 0?-1:x},first:function(){return this.get(0)},flatten:function(d){return Ct(this,P9(this,d,!1))},get:function(d,v){return d=_(this,d),d<0||this.size===1/0||this.size!==void 0&&d>this.size?v:this.find(function(x,E){return E===d},void 0,v)},has:function(d){return d=_(this,d),d>=0&&(this.size!==void 0?this.size===1/0||d<this.size:this.indexOf(d)!==-1)},interpose:function(d){return Ct(this,hee(this,d))},interleave:function(){var d=[this].concat(w(arguments)),v=Ep(this.toSeq(),Be.of,d),x=v.flatten(!0);return v.size&&(x.size=v.size*d.length),Ct(this,x)},last:function(){return this.get(-1)},skipWhile:function(d,v){return Ct(this,V9(this,d,v,!1))},zip:function(){var d=[this].concat(w(arguments));return Ct(this,Ep(this,kee,d))},zipWith:function(d){var v=w(arguments);return v[0]=this,Ct(this,Ep(this,d,v))}}),M.prototype[P]=!0,M.prototype[z]=!0,ea(F,{get:function(d,v){return this.has(d)?d:v},includes:function(d){return this.has(d)},keySeq:function(){return this.valueSeq()}}),F.prototype.has=Vr.includes,ea(ut,K.prototype),ea(Be,M.prototype),ea(Ve,F.prototype),ea(Ie,K.prototype),ea(nr,M.prototype),ea(Xa,F.prototype);function Aee(d,v){return v}function Dee(d,v){return[v,d]}function qd(d){return function(){return!d.apply(this,arguments)}}function v7(d){return function(){return-d.apply(this,arguments)}}function b7(d){return typeof d=="string"?JSON.stringify(d):d}function kee(){return w(arguments)}function w7(d,v){return d<v?1:d>v?-1:0}function Nee(d){if(d.size===1/0)return 0;var v=I(d),x=k(d),E=v?1:0,N=d.__iterate(x?v?function(B,$){E=31*E+y7(Gr(B),Gr($))|0}:function(B,$){E=E+y7(Gr(B),Gr($))|0}:v?function(B){E=31*E+Gr(B)|0}:function(B){E=E+Gr(B)|0});return Tee(N,E)}function Tee(d,v){return v=Au(v,3432918353),v=Au(v<<15|v>>>-15,461845907),v=Au(v<<13|v>>>-13,5),v=(v+3864292196|0)^d,v=Au(v^v>>>16,2246822507),v=Au(v^v>>>13,3266489909),v=vp(v^v>>>16),v}function y7(d,v){return d^v+2654435769+(d<<6)+(d>>2)|0}var Hee={Iterable:R,Seq:Ke,Collection:Ye,Map:ct,OrderedMap:Gt,List:Lt,Stack:Yt,Set:Vt,OrderedSet:Jn,Record:Qr,Range:cr,Repeat:dr,is:qt,fromJS:hp};return Hee})})(Uy);var ft=Uy.exports,xL=ft,_L=xL.OrderedMap,CL={createFromArray:function(t){return _L(t.map(function(r){return[r.getKey(),r]}))}},Js=CL;function SL(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var qh=ft,Wh=qh.Map,Gh=qh.OrderedSet,EL=qh.Record,Ky=Gh(),zy={style:Ky,entity:null},AL=EL(zy),Zh=function(e){SL(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.getStyle=function(){return this.get("style")},r.getEntity=function(){return this.get("entity")},r.hasStyle=function(a){return this.getStyle().includes(a)},t.applyStyle=function(a,i){var s=a.set("style",a.getStyle().add(i));return t.create(s)},t.removeStyle=function(a,i){var s=a.set("style",a.getStyle().remove(i));return t.create(s)},t.applyEntity=function(a,i){var s=a.getEntity()===i?a:a.set("entity",i);return t.create(s)},t.create=function(a){if(!a)return Yh;var i={style:Ky,entity:null},s=Wh(i).merge(a),u=Qh.get(s);if(u)return u;var l=new t(s);return Qh=Qh.set(s,l),l},t.fromJS=function(a){var i=a.style,s=a.entity;return new t({style:Array.isArray(i)?Gh(i):i,entity:Array.isArray(s)?Gh(s):s})},t}(AL),Yh=new Zh,Qh=Wh([[Wh(zy),Yh]]);Zh.EMPTY=Yh;var gn=Zh;function DL(e,t,r,n){if(e.size){var a=0;e.reduce(function(i,s,u){return t(i,s)||(r(i)&&n(a,u),a=u),s}),r(e.last())&&n(a,e.count())}}var eu=DL;function kL(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var NL=gn,$y=eu,tu=ft,jy=tu.List,TL=tu.Map,HL=tu.OrderedSet,IL=tu.Record,OL=tu.Repeat,ML=HL(),LL={key:"",type:"unstyled",text:"",characterList:jy(),depth:0,data:TL()},VL=IL(LL),PL=function(t){if(!t)return t;var r=t.characterList,n=t.text;return n&&!r&&(t.characterList=jy(OL(NL.EMPTY,n.length))),t},FL=function(e){kL(t,e);function t(n){return e.call(this,PL(n))||this}var r=t.prototype;return r.getKey=function(){return this.get("key")},r.getType=function(){return this.get("type")},r.getText=function(){return this.get("text")},r.getCharacterList=function(){return this.get("characterList")},r.getLength=function(){return this.getText().length},r.getDepth=function(){return this.get("depth")},r.getData=function(){return this.get("data")},r.getInlineStyleAt=function(a){var i=this.getCharacterList().get(a);return i?i.getStyle():ML},r.getEntityAt=function(a){var i=this.getCharacterList().get(a);return i?i.getEntity():null},r.findStyleRanges=function(a,i){$y(this.getCharacterList(),BL,a,i)},r.findEntityRanges=function(a,i){$y(this.getCharacterList(),RL,a,i)},t}(VL);function BL(e,t){return e.getStyle()===t.getStyle()}function RL(e,t){return e.getEntity()===t.getEntity()}var yi=FL;function UL(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var KL=gn,qy=eu,ru=ft,Xh=ru.List,zL=ru.Map,$L=ru.OrderedSet,jL=ru.Record,qL=ru.Repeat,WL=$L(),Wy={parent:null,characterList:Xh(),data:zL(),depth:0,key:"",text:"",type:"unstyled",children:Xh(),prevSibling:null,nextSibling:null},GL=function(t,r){return t.getStyle()===r.getStyle()},ZL=function(t,r){return t.getEntity()===r.getEntity()},YL=function(t){if(!t)return t;var r=t.characterList,n=t.text;return n&&!r&&(t.characterList=Xh(qL(KL.EMPTY,n.length))),t},QL=function(e){UL(t,e);function t(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Wy;return e.call(this,YL(n))||this}var r=t.prototype;return r.getKey=function(){return this.get("key")},r.getType=function(){return this.get("type")},r.getText=function(){return this.get("text")},r.getCharacterList=function(){return this.get("characterList")},r.getLength=function(){return this.getText().length},r.getDepth=function(){return this.get("depth")},r.getData=function(){return this.get("data")},r.getInlineStyleAt=function(a){var i=this.getCharacterList().get(a);return i?i.getStyle():WL},r.getEntityAt=function(a){var i=this.getCharacterList().get(a);return i?i.getEntity():null},r.getChildKeys=function(){return this.get("children")},r.getParentKey=function(){return this.get("parent")},r.getPrevSiblingKey=function(){return this.get("prevSibling")},r.getNextSiblingKey=function(){return this.get("nextSibling")},r.findStyleRanges=function(a,i){qy(this.getCharacterList(),GL,a,i)},r.findEntityRanges=function(a,i){qy(this.getCharacterList(),ZL,a,i)},t}(jL(Wy)),hn=QL,Gy=gn,XL=ft,JL=XL.Map,eV={add:function(t,r,n){return Zy(t,r,n,!0)},remove:function(t,r,n){return Zy(t,r,n,!1)}};function Zy(e,t,r,n){var a=e.getBlockMap(),i=t.getStartKey(),s=t.getStartOffset(),u=t.getEndKey(),l=t.getEndOffset(),f=a.skipUntil(function(h,m){return m===i}).takeUntil(function(h,m){return m===u}).concat(JL([[u,a.get(u)]])).map(function(h,m){var g,p;i===u?(g=s,p=l):(g=m===i?s:0,p=m===u?l:h.getLength());for(var w=h.getCharacterList(),y;g<p;)y=w.get(g),w=w.set(g,n?Gy.applyStyle(y,r):Gy.removeStyle(y,r)),g++;return h.set("characterList",w)});return e.merge({blockMap:a.merge(f),selectionBefore:t,selectionAfter:t})}var tV=eV,rV=gn;function nV(e,t,r,n){for(var a=t,i=e.getCharacterList();a<r;)i=i.set(a,rV.applyEntity(i.get(a),n)),a++;return e.set("characterList",i)}var aV=nV,iV=aV,oV=ft;function sV(e,t,r){var n=e.getBlockMap(),a=t.getStartKey(),i=t.getStartOffset(),s=t.getEndKey(),u=t.getEndOffset(),l=n.skipUntil(function(f,h){return h===a}).takeUntil(function(f,h){return h===s}).toOrderedMap().merge(oV.OrderedMap([[s,n.get(s)]])).map(function(f,h){var m=h===a?i:0,g=h===s?u:f.getLength();return iV(f,m,g,r)});return e.merge({blockMap:n.merge(l),selectionBefore:t,selectionAfter:t})}var uV=sV,lV={getRemovalRange:function(t,r,n,a,i){var s=n.split(" ");s=s.map(function(_,S){if(i==="forward"){if(S>0)return" "+_}else if(S<s.length-1)return _+" ";return _});for(var u=a,l,f,h=null,m=null,g=0;g<s.length;g++){if(f=s[g],l=u+f.length,t<l&&u<r)h!==null||(h=u),m=l;else if(h!==null)break;u=l}var p=a+n.length,w=h===a,y=m===p;return(!w&&y||w&&!y)&&(i==="forward"?m!==p&&m++:h!==a&&h--),{start:h,end:m}}},cV=lV;function dV(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];if(!e){var i;if(t===void 0)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=0;i=new Error(t.replace(/%s/g,function(){return String(n[s++])})),i.name="Invariant Violation"}throw i.framesToPop=1,i}}var ht=dV,fV=ht;function gV(e,t){var r=[];return e.findEntityRanges(function(n){return n.getEntity()===t},function(n,a){r.push({start:n,end:a})}),r.length||fV(!1),r}var hV=gV,pV=cV,mV=hV,vV=ht;function bV(e,t,r,n,a){var i=n.getStartOffset(),s=n.getEndOffset(),u=t.getEntityAt(i),l=r.getEntityAt(s-1);if(!u&&!l)return n;var f=n;if(u&&u===l)f=nu(e,t,f,a,u,!0,!0);else if(u&&l){var h=nu(e,t,f,a,u,!1,!0),m=nu(e,r,f,a,l,!1,!1);f=f.merge({anchorOffset:h.getAnchorOffset(),focusOffset:m.getFocusOffset(),isBackward:!1})}else if(u){var g=nu(e,t,f,a,u,!1,!0);f=f.merge({anchorOffset:g.getStartOffset(),isBackward:!1})}else if(l){var p=nu(e,r,f,a,l,!1,!1);f=f.merge({focusOffset:p.getEndOffset(),isBackward:!1})}return f}function nu(e,t,r,n,a,i,s){var u=r.getStartOffset(),l=r.getEndOffset(),f=e.__get(a),h=f.getMutability(),m=s?u:l;if(h==="MUTABLE")return r;var g=mV(t,a).filter(function(y){return m<=y.end&&m>=y.start});g.length!=1&&vV(!1);var p=g[0];if(h==="IMMUTABLE")return r.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1});i||(s?l=p.end:u=p.start);var w=pV.getRemovalRange(u,l,t.getText().slice(p.start,p.end),p.start,n);return r.merge({anchorOffset:w.start,focusOffset:w.end,isBackward:!1})}var wV=bV,Yy={},yV=Math.pow(2,24);function xV(){for(var e;e===void 0||Yy.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*yV).toString(32);return Yy[e]=!0,e}var jn=xV,_V=hn,Qy=jn,CV=ft,Xy=CV.OrderedMap,SV=function(t){var r={},n;return Xy(t.withMutations(function(a){a.forEach(function(i,s){var u=i.getKey(),l=i.getNextSiblingKey(),f=i.getPrevSiblingKey(),h=i.getChildKeys(),m=i.getParentKey(),g=Qy();if(r[u]=g,l){var p=a.get(l);p?a.setIn([l,"prevSibling"],g):a.setIn([u,"nextSibling"],null)}if(f){var w=a.get(f);w?a.setIn([f,"nextSibling"],g):a.setIn([u,"prevSibling"],null)}if(m&&a.get(m)){var y=a.get(m),_=y.getChildKeys();a.setIn([m,"children"],_.set(_.indexOf(i.getKey()),g))}else a.setIn([u,"parent"],null),n&&(a.setIn([n.getKey(),"nextSibling"],g),a.setIn([u,"prevSibling"],r[n.getKey()])),n=a.get(u);h.forEach(function(S){var H=a.get(S);H?a.setIn([S,"parent"],g):a.setIn([u,"children"],i.getChildKeys().filter(function(L){return L!==S}))})})}).toArray().map(function(a){return[r[a.getKey()],a.set("key",r[a.getKey()])]}))},EV=function(t){return Xy(t.toArray().map(function(r){var n=Qy();return[n,r.set("key",n)]}))},AV=function(t){var r=t.first()instanceof _V;return r?SV(t):EV(t)},Jy=AV,DV=gn,kV=eu,NV=ht;function TV(e,t){var r=e.getBlockMap(),n=e.getEntityMap(),a={},i=t.getStartKey(),s=t.getStartOffset(),u=r.get(i),l=e3(n,u,s);l!==u&&(a[i]=l);var f=t.getEndKey(),h=t.getEndOffset(),m=r.get(f);i===f&&(m=l);var g=e3(n,m,h);return g!==m&&(a[f]=g),Object.keys(a).length?e.merge({blockMap:r.merge(a),selectionAfter:t}):e.set("selectionAfter",t)}function HV(e,t,r){var n;return kV(e,function(a,i){return a.getEntity()===i.getEntity()},function(a){return a.getEntity()===t},function(a,i){a<=r&&i>=r&&(n={start:a,end:i})}),typeof n!="object"&&NV(!1),n}function e3(e,t,r){var n=t.getCharacterList(),a=r>0?n.get(r-1):void 0,i=r<n.count()?n.get(r):void 0,s=a?a.getEntity():void 0,u=i?i.getEntity():void 0;if(u&&u===s){var l=e.__get(u);if(l.getMutability()!=="MUTABLE"){for(var f=HV(n,u,r),h=f.start,m=f.end,g;h<m;)g=n.get(h),n=n.set(h,DV.applyEntity(g,null)),h++;return t.set("characterList",n)}}return t}var t3=TV,IV=Jy,OV=t3,MV=function(t,r){var n=r.getStartKey(),a=r.getStartOffset(),i=r.getEndKey(),s=r.getEndOffset(),u=OV(t,r),l=u.getBlockMap(),f=l.keySeq(),h=f.indexOf(n),m=f.indexOf(i)+1;return IV(l.slice(h,m).map(function(g,p){var w=g.getText(),y=g.getCharacterList();return n===i?g.merge({text:w.slice(a,s),characterList:y.slice(a,s)}):p===n?g.merge({text:w.slice(a),characterList:y.slice(a)}):p===i?g.merge({text:w.slice(0,s),characterList:y.slice(0,s)}):g}))},qc=MV;function LV(e,t,r){var n=e;if(r===n.count())t.forEach(function(s){n=n.push(s)});else if(r===0)t.reverse().forEach(function(s){n=n.unshift(s)});else{var a=n.slice(0,r),i=n.slice(r);n=a.concat(t,i).toList()}return n}var r3=LV,VV=Js,n3=hn,PV=ft,FV=r3,a3=ht,BV=Jy,RV=PV.List,UV=function(t,r,n,a,i,s){var u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:"REPLACE_WITH_NEW_DATA",l=n.get(i),f=l.getText(),h=l.getCharacterList(),m=i,g=s+a.getText().length,p=null;switch(u){case"MERGE_OLD_DATA_TO_NEW_DATA":p=a.getData().merge(l.getData());break;case"REPLACE_WITH_NEW_DATA":p=a.getData();break}var w=l.getType();f&&w==="unstyled"&&(w=a.getType());var y=l.merge({text:f.slice(0,s)+a.getText()+f.slice(s),characterList:FV(h,a.getCharacterList(),s),type:w,data:p});return t.merge({blockMap:n.set(i,y),selectionBefore:r,selectionAfter:r.merge({anchorKey:m,anchorOffset:g,focusKey:m,focusOffset:g,isBackward:!1})})},KV=function(t,r,n){var a=t.getText(),i=t.getCharacterList(),s=a.slice(0,r),u=i.slice(0,r),l=n.first();return t.merge({text:s+l.getText(),characterList:u.concat(l.getCharacterList()),type:s?t.getType():l.getType(),data:l.getData()})},zV=function(t,r,n){var a=t.getText(),i=t.getCharacterList(),s=a.length,u=a.slice(r,s),l=i.slice(r,s),f=n.last();return f.merge({text:f.getText()+u,characterList:f.getCharacterList().concat(l),data:f.getData()})},$V=function(t,r){var n=t.getKey(),a=t,i=[];for(r.get(n)&&i.push(n);a&&a.getNextSiblingKey();){var s=a.getNextSiblingKey();if(!s)break;i.push(s),a=r.get(s)}return i},jV=function(t,r,n,a){return t.withMutations(function(i){var s=n.getKey(),u=a.getKey(),l=n.getNextSiblingKey(),f=n.getParentKey(),h=$V(a,t),m=h[h.length-1];if(i.get(u)?(i.setIn([s,"nextSibling"],u),i.setIn([u,"prevSibling"],s)):(i.setIn([s,"nextSibling"],a.getNextSiblingKey()),i.setIn([a.getNextSiblingKey(),"prevSibling"],s)),i.setIn([m,"nextSibling"],l),l&&i.setIn([l,"prevSibling"],m),h.forEach(function(S){return i.setIn([S,"parent"],f)}),f){var g=t.get(f),p=g.getChildKeys(),w=p.indexOf(s),y=w+1,_=p.toArray();_.splice.apply(_,[y,0].concat(h)),i.setIn([f,"children"],RV(_))}})},qV=function(t,r,n,a,i,s){var u=n.first()instanceof n3,l=[],f=a.size,h=n.get(i),m=a.first(),g=a.last(),p=g.getLength(),w=g.getKey(),y=u&&(!h.getChildKeys().isEmpty()||!m.getChildKeys().isEmpty());n.forEach(function(S,H){if(H!==i){l.push(S);return}y?l.push(S):l.push(KV(S,s,a)),a.slice(y?0:1,f-1).forEach(function(L){return l.push(L)}),l.push(zV(S,s,a))});var _=VV.createFromArray(l);return u&&(_=jV(_,n,h,m)),t.merge({blockMap:_,selectionBefore:r,selectionAfter:r.merge({anchorKey:w,anchorOffset:p,focusKey:w,focusOffset:p,isBackward:!1})})},WV=function(t,r,n){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"REPLACE_WITH_NEW_DATA";r.isCollapsed()||a3(!1);var i=t.getBlockMap(),s=BV(n),u=r.getStartKey(),l=r.getStartOffset(),f=i.get(u);return f instanceof n3&&(f.getChildKeys().isEmpty()||a3(!1)),s.size===1?UV(t,r,i,s.first(),u,l,a):qV(t,r,i,s,u,l)},GV=WV,ZV=ft,YV=r3,QV=ht,XV=ZV.Repeat;function JV(e,t,r,n){t.isCollapsed()||QV(!1);var a=null;if(r!=null&&(a=r.length),a==null||a===0)return e;var i=e.getBlockMap(),s=t.getStartKey(),u=t.getStartOffset(),l=i.get(s),f=l.getText(),h=l.merge({text:f.slice(0,u)+r+f.slice(u,l.getLength()),characterList:YV(l.getCharacterList(),XV(n,a).toList(),u)}),m=u+a;return e.merge({blockMap:i.set(s,h),selectionAfter:t.merge({anchorOffset:m,focusOffset:m})})}var eP=JV,tP=ft,rP=tP.Map;function nP(e,t,r){var n=t.getStartKey(),a=t.getEndKey(),i=e.getBlockMap(),s=i.toSeq().skipUntil(function(u,l){return l===n}).takeUntil(function(u,l){return l===a}).concat(rP([[a,i.get(a)]])).map(r);return e.merge({blockMap:i.merge(s),selectionBefore:t,selectionAfter:t})}var i3=nP,aP=hn,iP=function(t,r){var n=t instanceof aP;if(!n)return null;var a=t.getNextSiblingKey();if(a)return a;var i=t.getParentKey();if(!i)return null;for(var s=r.get(i);s&&!s.getNextSiblingKey();){var u=s.getParentKey();s=u?r.get(u):null}return s?s.getNextSiblingKey():null},o3=iP,oP=hn,Jh=o3,s3=ft;s3.List;var u3=s3.Map,Tr=function(t,r,n){if(t){var a=r.get(t);a&&r.set(t,n(a))}},Wc=function(t,r){var n=[];if(!t)return n;for(var a=r.get(t);a&&a.getParentKey();){var i=a.getParentKey();i&&n.push(i),a=i?r.get(i):null}return n},sP=function(t,r){var n=[];if(!t)return n;for(var a=Jh(t,r);a&&r.get(a);){var i=r.get(a);n.push(a),a=i.getParentKey()?Jh(i,r):null}return n},yo=function(t,r,n){if(!t)return null;for(var a=n.get(t.getKey()).getNextSiblingKey();a&&!r.get(a);)a=n.get(a).getNextSiblingKey()||null;return a},xo=function(t,r,n){if(!t)return null;for(var a=n.get(t.getKey()).getPrevSiblingKey();a&&!r.get(a);)a=n.get(a).getPrevSiblingKey()||null;return a},uP=function(t,r,n,a){return t.withMutations(function(i){if(Tr(r.getKey(),i,function(h){return h.merge({nextSibling:yo(h,i,a),prevSibling:xo(h,i,a)})}),Tr(n.getKey(),i,function(h){return h.merge({nextSibling:yo(h,i,a),prevSibling:xo(h,i,a)})}),Wc(r.getKey(),a).forEach(function(h){return Tr(h,i,function(m){return m.merge({children:m.getChildKeys().filter(function(g){return i.get(g)}),nextSibling:yo(m,i,a),prevSibling:xo(m,i,a)})})}),Tr(r.getNextSiblingKey(),i,function(h){return h.merge({prevSibling:r.getPrevSiblingKey()})}),Tr(r.getPrevSiblingKey(),i,function(h){return h.merge({nextSibling:yo(h,i,a)})}),Tr(n.getNextSiblingKey(),i,function(h){return h.merge({prevSibling:xo(h,i,a)})}),Tr(n.getPrevSiblingKey(),i,function(h){return h.merge({nextSibling:n.getNextSiblingKey()})}),Wc(n.getKey(),a).forEach(function(h){Tr(h,i,function(m){return m.merge({children:m.getChildKeys().filter(function(g){return i.get(g)}),nextSibling:yo(m,i,a),prevSibling:xo(m,i,a)})})}),sP(n,a).forEach(function(h){return Tr(h,i,function(m){return m.merge({nextSibling:yo(m,i,a),prevSibling:xo(m,i,a)})})}),t.get(r.getKey())==null&&t.get(n.getKey())!=null&&n.getParentKey()===r.getKey()&&n.getPrevSiblingKey()==null){var s=r.getPrevSiblingKey();Tr(n.getKey(),i,function(h){return h.merge({prevSibling:s})}),Tr(s,i,function(h){return h.merge({nextSibling:n.getKey()})});var u=s?t.get(s):null,l=u?u.getParentKey():null;if(r.getChildKeys().forEach(function(h){Tr(h,i,function(m){return m.merge({parent:l})})}),l!=null){var f=t.get(l);Tr(l,i,function(h){return h.merge({children:f.getChildKeys().concat(r.getChildKeys())})})}Tr(r.getChildKeys().find(function(h){var m=t.get(h);return m.getNextSiblingKey()===null}),i,function(h){return h.merge({nextSibling:r.getNextSiblingKey()})})}})},lP=function(t,r){if(r.isCollapsed())return t;var n=t.getBlockMap(),a=r.getStartKey(),i=r.getStartOffset(),s=r.getEndKey(),u=r.getEndOffset(),l=n.get(a),f=n.get(s),h=l instanceof oP,m=[];if(h){var g=f.getChildKeys(),p=Wc(s,n);f.getNextSiblingKey()&&(m=m.concat(p)),g.isEmpty()||(m=m.concat(p.concat([s]))),m=m.concat(Wc(Jh(f,n),n))}var w;l===f?w=cP(l.getCharacterList(),i,u):w=l.getCharacterList().slice(0,i).concat(f.getCharacterList().slice(u));var y=l.merge({text:l.getText().slice(0,i)+f.getText().slice(u),characterList:w}),_=h&&i===0&&u===0&&f.getParentKey()===a&&f.getPrevSiblingKey()==null,S=_?u3([[a,null]]):n.toSeq().skipUntil(function(L,O){return O===a}).takeUntil(function(L,O){return O===s}).filter(function(L,O){return m.indexOf(O)===-1}).concat(u3([[s,null]])).map(function(L,O){return O===a?y:null}),H=n.merge(S).filter(function(L){return!!L});return h&&l!==f&&(H=uP(H,l,f,n)),t.merge({blockMap:H,selectionBefore:r,selectionAfter:r.merge({anchorKey:a,anchorOffset:i,focusKey:a,focusOffset:i,isBackward:!1})})},cP=function(t,r,n){if(r===0)for(;r<n;)t=t.shift(),r++;else if(n===t.count())for(;n>r;)t=t.pop(),n--;else{var a=t.slice(0,r),i=t.slice(n);t=a.concat(i).toList()}return t},dP=lP,fP=hn,gP=jn,l3=ft,c3=ht,hP=i3,pP=l3.List,mP=l3.Map,Gc=function(t,r,n){if(t){var a=r.get(t);a&&r.set(t,n(a))}},vP=function(t,r,n){return t.withMutations(function(a){var i=r.getKey(),s=n.getKey();Gc(r.getParentKey(),a,function(u){var l=u.getChildKeys(),f=l.indexOf(i)+1,h=l.toArray();return h.splice(f,0,s),u.merge({children:pP(h)})}),Gc(r.getNextSiblingKey(),a,function(u){return u.merge({prevSibling:s})}),Gc(i,a,function(u){return u.merge({nextSibling:s})}),Gc(s,a,function(u){return u.merge({prevSibling:i})})})},bP=function(t,r){r.isCollapsed()||c3(!1);var n=r.getAnchorKey(),a=t.getBlockMap(),i=a.get(n),s=i.getText();if(!s){var u=i.getType();if(u==="unordered-list-item"||u==="ordered-list-item")return hP(t,r,function(S){return S.merge({type:"unstyled",depth:0})})}var l=r.getAnchorOffset(),f=i.getCharacterList(),h=gP(),m=i instanceof fP,g=i.merge({text:s.slice(0,l),characterList:f.slice(0,l)}),p=g.merge({key:h,text:s.slice(l),characterList:f.slice(l),data:mP()}),w=a.toSeq().takeUntil(function(S){return S===i}),y=a.toSeq().skipUntil(function(S){return S===i}).rest(),_=w.concat([[n,g],[h,p]],y).toOrderedMap();return m&&(i.getChildKeys().isEmpty()||c3(!1),_=vP(_,g,p)),t.merge({blockMap:_,selectionBefore:r,selectionAfter:r.merge({anchorKey:h,anchorOffset:0,focusKey:h,focusOffset:0,isBackward:!1})})},wP=bP,yP=gn,d3=tV,xP=uV,_P=wV,CP=qc,SP=ft,EP=GV,AP=eP,DP=ht,e0=i3,au=t3,iu=dP,kP=wP,NP=SP.OrderedSet,Zc={replaceText:function(t,r,n,a,i){var s=au(t,r),u=iu(s,r),l=yP.create({style:a||NP(),entity:i||null});return AP(u,u.getSelectionAfter(),n,l)},insertText:function(t,r,n,a,i){return r.isCollapsed()||DP(!1),Zc.replaceText(t,r,n,a,i)},moveText:function(t,r,n){var a=CP(t,r),i=Zc.removeRange(t,r,"backward");return Zc.replaceWithFragment(i,n,a)},replaceWithFragment:function(t,r,n){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"REPLACE_WITH_NEW_DATA",i=au(t,r),s=iu(i,r);return EP(s,s.getSelectionAfter(),n,a)},removeRange:function(t,r,n){var a,i,s,u;r.getIsBackward()&&(r=r.merge({anchorKey:r.getFocusKey(),anchorOffset:r.getFocusOffset(),focusKey:r.getAnchorKey(),focusOffset:r.getAnchorOffset(),isBackward:!1})),a=r.getAnchorKey(),i=r.getFocusKey(),s=t.getBlockForKey(a),u=t.getBlockForKey(i);var l=r.getStartOffset(),f=r.getEndOffset(),h=s.getEntityAt(l),m=u.getEntityAt(f-1);if(a===i&&h&&h===m){var g=_P(t.getEntityMap(),s,u,r,n);return iu(t,g)}var p=au(t,r);return iu(p,r)},splitBlock:function(t,r){var n=au(t,r),a=iu(n,r);return kP(a,a.getSelectionAfter())},applyInlineStyle:function(t,r,n){return d3.add(t,r,n)},removeInlineStyle:function(t,r,n){return d3.remove(t,r,n)},setBlockType:function(t,r,n){return e0(t,r,function(a){return a.merge({type:n,depth:0})})},setBlockData:function(t,r,n){return e0(t,r,function(a){return a.merge({data:n})})},mergeBlockData:function(t,r,n){return e0(t,r,function(a){return a.merge({data:a.getData().merge(n)})})},applyEntity:function(t,r,n){var a=au(t,r);return xP(a,r,n)}},Hr=Zc;function TP(e){return Object.keys(e).map(function(t){return e[t]})}var f3=TP;function HP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),n.forEach(function(a){IP(e,a,r[a])})}return e}function IP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OP(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var g3=eu,MP=f3,t0=ft,_o=t0.List,LP=t0.Repeat,h3=t0.Record,p3=function(){return!0},VP={start:null,end:null},r0=h3(VP),PP={start:null,end:null,decoratorKey:null,leaves:null},n0=h3(PP),FP={generate:function(t,r,n){var a=r.getLength();if(!a)return _o.of(new n0({start:0,end:0,decoratorKey:null,leaves:_o.of(new r0({start:0,end:0}))}));var i=[],s=n?n.getDecorations(r,t):_o(LP(null,a)),u=r.getCharacterList();return g3(s,m3,p3,function(l,f){i.push(new n0({start:l,end:f,decoratorKey:s.get(l),leaves:BP(u.slice(l,f).toList(),l)}))}),_o(i)},fromJS:function(t){var r=t.leaves,n=OP(t,["leaves"]);return new n0(HP({},n,{leaves:r!=null?_o(Array.isArray(r)?r:MP(r)).map(function(a){return r0(a)}):null}))}};function BP(e,t){var r=[],n=e.map(function(a){return a.getStyle()}).toList();return g3(n,m3,p3,function(a,i){r.push(new r0({start:a+t,end:i+t}))}),_o(r)}function m3(e,t){return e===t}var RP=FP;function UP(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var KP=ft,zP=KP.Record,$P=zP({type:"TOKEN",mutability:"IMMUTABLE",data:Object}),jP=function(e){UP(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.getType=function(){return this.get("type")},r.getMutability=function(){return this.get("mutability")},r.getData=function(){return this.get("data")},t}($P),v3=jP;function qP(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=Math.random()*16|0,r=e=="x"?t:t&3|8;return r.toString(16)})}var WP=qP;function GP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),n.forEach(function(a){ZP(e,a,r[a])})}return e}function ZP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var YP=v3,QP=ft,XP=ht,a0=WP,JP=QP.Map,xa=JP(),ou=a0();function Co(e,t){console.warn("WARNING: "+e+` will be deprecated soon!
Please use "`+t+'" instead.')}var qn={getLastCreatedEntityKey:function(){return Co("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),qn.__getLastCreatedEntityKey()},create:function(t,r,n){return Co("DraftEntity.create","contentState.createEntity"),qn.__create(t,r,n)},add:function(t){return Co("DraftEntity.add","contentState.addEntity"),qn.__add(t)},get:function(t){return Co("DraftEntity.get","contentState.getEntity"),qn.__get(t)},__getAll:function(){return xa},__loadWithEntities:function(t){xa=t,ou=a0()},mergeData:function(t,r){return Co("DraftEntity.mergeData","contentState.mergeEntityData"),qn.__mergeData(t,r)},replaceData:function(t,r){return Co("DraftEntity.replaceData","contentState.replaceEntityData"),qn.__replaceData(t,r)},__getLastCreatedEntityKey:function(){return ou},__create:function(t,r,n){return qn.__add(new YP({type:t,mutability:r,data:n||{}}))},__add:function(t){return ou=a0(),xa=xa.set(ou,t),ou},__get:function(t){var r=xa.get(t);return r||XP(!1),r},__mergeData:function(t,r){var n=qn.__get(t),a=GP({},n.getData(),r),i=n.set("data",a);return xa=xa.set(t,i),i},__replaceData:function(t,r){var n=qn.__get(t),a=n.set("data",r);return xa=xa.set(t,a),a}},Yc=qn;function eF(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var tF=ft,rF=tF.Record,nF={anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1},aF=rF(nF),iF=function(e){eF(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},r.getAnchorKey=function(){return this.get("anchorKey")},r.getAnchorOffset=function(){return this.get("anchorOffset")},r.getFocusKey=function(){return this.get("focusKey")},r.getFocusOffset=function(){return this.get("focusOffset")},r.getIsBackward=function(){return this.get("isBackward")},r.getHasFocus=function(){return this.get("hasFocus")},r.hasEdgeWithin=function(a,i,s){var u=this.getAnchorKey(),l=this.getFocusKey();if(u===l&&u===a){var f=this.getStartOffset(),h=this.getEndOffset();return i<=f&&f<=s||i<=h&&h<=s}if(a!==u&&a!==l)return!1;var m=a===u?this.getAnchorOffset():this.getFocusOffset();return i<=m&&s>=m},r.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},r.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},r.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},r.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},r.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},t.createEmpty=function(a){return new t({anchorKey:a,anchorOffset:0,focusKey:a,focusOffset:0,isBackward:!1,hasFocus:!1})},t}(aF),Qc=iF,Wa=function(e){return typeof window<"u"&&window.__DRAFT_GKX?!!window.__DRAFT_GKX[e]:!1},oF=new RegExp("\r","g");function sF(e){return e.replace(oF,"")}var b3=sF;function w3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),n.forEach(function(a){uF(e,a,r[a])})}return e}function uF(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lF(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var cF=Js,y3=gn,dF=yi,fF=hn,Wn=Yc,Xc=Qc,gF=jn,hF=f3,pF=Wa,su=ft,mF=b3,x3=su.List,vF=su.Record,bF=su.Repeat,wF=su.Map,yF=su.OrderedMap,xF={entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null},_F=vF(xF),_3=pF("draft_tree_data_support")?fF:dF,CF=function(e){lF(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.getEntityMap=function(){return Wn},r.getBlockMap=function(){return this.get("blockMap")},r.getSelectionBefore=function(){return this.get("selectionBefore")},r.getSelectionAfter=function(){return this.get("selectionAfter")},r.getBlockForKey=function(a){var i=this.getBlockMap().get(a);return i},r.getKeyBefore=function(a){return this.getBlockMap().reverse().keySeq().skipUntil(function(i){return i===a}).skip(1).first()},r.getKeyAfter=function(a){return this.getBlockMap().keySeq().skipUntil(function(i){return i===a}).skip(1).first()},r.getBlockAfter=function(a){return this.getBlockMap().skipUntil(function(i,s){return s===a}).skip(1).first()},r.getBlockBefore=function(a){return this.getBlockMap().reverse().skipUntil(function(i,s){return s===a}).skip(1).first()},r.getBlocksAsArray=function(){return this.getBlockMap().toArray()},r.getFirstBlock=function(){return this.getBlockMap().first()},r.getLastBlock=function(){return this.getBlockMap().last()},r.getPlainText=function(a){return this.getBlockMap().map(function(i){return i?i.getText():""}).join(a||`
`)},r.getLastCreatedEntityKey=function(){return Wn.__getLastCreatedEntityKey()},r.hasText=function(){var a=this.getBlockMap();return a.size>1||escape(a.first().getText()).replace(/%u200B/g,"").length>0},r.createEntity=function(a,i,s){return Wn.__create(a,i,s),this},r.mergeEntityData=function(a,i){return Wn.__mergeData(a,i),this},r.replaceEntityData=function(a,i){return Wn.__replaceData(a,i),this},r.addEntity=function(a){return Wn.__add(a),this},r.getEntity=function(a){return Wn.__get(a)},r.getAllEntities=function(){return Wn.__getAll()},r.loadWithEntities=function(a){return Wn.__loadWithEntities(a)},t.createFromBlockArray=function(a,i){var s=Array.isArray(a)?a:a.contentBlocks,u=cF.createFromArray(s),l=u.isEmpty()?new Xc:Xc.createEmpty(u.first().getKey());return new t({blockMap:u,entityMap:i||Wn,selectionBefore:l,selectionAfter:l})},t.createFromText=function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:/\r\n?|\n/g,s=a.split(i),u=s.map(function(l){return l=mF(l),new _3({key:gF(),text:l,type:"unstyled",characterList:x3(bF(y3.EMPTY,l.length))})});return t.createFromBlockArray(u)},t.fromJS=function(a){return new t(w3({},a,{blockMap:yF(a.blockMap).map(t.createContentBlockFromJS),selectionBefore:new Xc(a.selectionBefore),selectionAfter:new Xc(a.selectionAfter)}))},t.createContentBlockFromJS=function(a){var i=a.characterList;return new _3(w3({},a,{data:wF(a.data),characterList:i!=null?x3((Array.isArray(i)?i:hF(i)).map(function(s){return y3.fromJS(s)})):void 0}))},t}(_F),i0=CF,Jc=ht,SF="NEUTRAL",ed="LTR",C3="RTL",td=null;function rd(e){return e===ed||e===C3}function S3(e){return rd(e)||Jc(!1),e===ed?"ltr":"rtl"}function EF(e,t){return rd(e)||Jc(!1),rd(t)||Jc(!1),e===t?null:S3(e)}function E3(e){td=e}function AF(){E3(ed)}function DF(){return td||this.initGlobalDir(),td||Jc(!1),td}var kF={NEUTRAL:SF,LTR:ed,RTL:C3,isStrong:rd,getHTMLDir:S3,getHTMLDirIfDifferent:EF,setGlobalDir:E3,initGlobalDir:AF,getGlobalDir:DF},nd=kF,_a=nd,NF=ht,uu={L:"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",R:"֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",AL:"؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾"},TF=new RegExp("["+uu.L+uu.R+uu.AL+"]"),HF=new RegExp("["+uu.R+uu.AL+"]");function A3(e){var t=TF.exec(e);return t==null?null:t[0]}function D3(e){var t=A3(e);return t==null?_a.NEUTRAL:HF.exec(t)?_a.RTL:_a.LTR}function k3(e,t){if(t=t||_a.NEUTRAL,!e.length)return t;var r=D3(e);return r===_a.NEUTRAL?t:r}function o0(e,t){return t||(t=_a.getGlobalDir()),_a.isStrong(t)||NF(!1),k3(e,t)}function IF(e,t){return o0(e,t)===_a.LTR}function OF(e,t){return o0(e,t)===_a.RTL}var MF={firstStrongChar:A3,firstStrongCharDir:D3,resolveBlockDir:k3,getDirection:o0,isDirectionLTR:IF,isDirectionRTL:OF},s0=MF;function N3(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var LF=s0,T3=nd,VF=ht,PF=function(){function e(r){N3(this,"_defaultDir",void 0),N3(this,"_lastDir",void 0),r?T3.isStrong(r)||VF(!1):r=T3.getGlobalDir(),this._defaultDir=r,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(n){return this._lastDir=LF.getDirection(n,this._lastDir),this._lastDir},e}(),FF=PF,BF=function(t){if(t!=null)return t;throw new Error("Got unexpected null or undefined")},Ir=BF,RF=FF,H3=ft,UF=Ir,KF=H3.OrderedMap,ad,zF={getDirectionMap:function(t,r){ad?ad.reset():ad=new RF;var n=t.getBlockMap(),a=n.valueSeq().map(function(s){return UF(ad).getDirection(s.getText())}),i=KF(n.keySeq().zip(a));return r!=null&&H3.is(r,i)?r:i}},$F=zF;function I3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),n.forEach(function(a){O3(e,a,r[a])})}return e}function O3(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var id=RP,lu=i0,od=$F,u0=Qc,cu=ft,M3=cu.OrderedSet,jF=cu.Record,xi=cu.Stack,L3=cu.OrderedMap,qF=cu.List,WF={allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:xi(),selection:null,treeMap:null,undoStack:xi()},V3=jF(WF),P3=function(){t.createEmpty=function(n){return this.createWithText("",n)},t.createWithText=function(n,a){return t.createWithContent(lu.createFromText(n),a)},t.createWithContent=function(n,a){if(n.getBlockMap().count()===0)return t.createEmpty(a);var i=n.getBlockMap().first().getKey();return t.create({currentContent:n,undoStack:xi(),redoStack:xi(),decorator:a||null,selection:u0.createEmpty(i)})},t.create=function(n){var a=n.currentContent,i=n.decorator,s=I3({},n,{treeMap:B3(a,i),directionMap:od.getDirectionMap(a)});return new t(new V3(s))},t.fromJS=function(n){return new t(new V3(I3({},n,{directionMap:n.directionMap!=null?L3(n.directionMap):n.directionMap,inlineStyleOverride:n.inlineStyleOverride!=null?M3(n.inlineStyleOverride):n.inlineStyleOverride,nativelyRenderedContent:n.nativelyRenderedContent!=null?lu.fromJS(n.nativelyRenderedContent):n.nativelyRenderedContent,redoStack:n.redoStack!=null?xi(n.redoStack.map(function(a){return lu.fromJS(a)})):n.redoStack,selection:n.selection!=null?new u0(n.selection):n.selection,treeMap:n.treeMap!=null?L3(n.treeMap).map(function(a){return qF(a).map(function(i){return id.fromJS(i)})}):n.treeMap,undoStack:n.undoStack!=null?xi(n.undoStack.map(function(a){return lu.fromJS(a)})):n.undoStack,currentContent:lu.fromJS(n.currentContent)})))},t.set=function(n,a){var i=n.getImmutable().withMutations(function(s){var u=s.get("decorator"),l=u;a.decorator===null?l=null:a.decorator&&(l=a.decorator);var f=a.currentContent||n.getCurrentContent();if(l!==u){var h=s.get("treeMap"),m;l&&u?m=ZF(f,f.getBlockMap(),h,l,u):m=B3(f,l),s.merge({decorator:l,treeMap:m,nativelyRenderedContent:null});return}var g=n.getCurrentContent();f!==g&&s.set("treeMap",GF(n,f.getBlockMap(),f.getEntityMap(),l)),s.merge(a)});return new t(i)};var e=t.prototype;e.toJS=function(){return this.getImmutable().toJS()},e.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.getSelection=function(){return this.getImmutable().get("selection")},e.getDecorator=function(){return this.getImmutable().get("decorator")},e.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},t.setInlineStyleOverride=function(n,a){return t.set(n,{inlineStyleOverride:a})},e.getCurrentInlineStyle=function(){var n=this.getInlineStyleOverride();if(n!=null)return n;var a=this.getCurrentContent(),i=this.getSelection();return i.isCollapsed()?QF(a,i):XF(a,i)},e.getBlockTree=function(n){return this.getImmutable().getIn(["treeMap",n])},e.isSelectionAtStartOfContent=function(){var n=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(n,0,0)},e.isSelectionAtEndOfContent=function(){var n=this.getCurrentContent(),a=n.getBlockMap(),i=a.last(),s=i.getLength();return this.getSelection().hasEdgeWithin(i.getKey(),s,s)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(n,a){return F3(n,a,!1)},t.forceSelection=function(n,a){return a.getHasFocus()||(a=a.set("hasFocus",!0)),F3(n,a,!0)},t.moveSelectionToEnd=function(n){var a=n.getCurrentContent(),i=a.getLastBlock(),s=i.getKey(),u=i.getLength();return t.acceptSelection(n,new u0({anchorKey:s,anchorOffset:u,focusKey:s,focusOffset:u,isBackward:!1}))},t.moveFocusToEnd=function(n){var a=t.moveSelectionToEnd(n);return t.forceSelection(a,a.getSelection())},t.push=function(n,a,i){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;if(n.getCurrentContent()===a)return n;var u=od.getDirectionMap(a,n.getDirectionMap());if(!n.getAllowUndo())return t.set(n,{currentContent:a,directionMap:u,lastChangeType:i,selection:a.getSelectionAfter(),forceSelection:s,inlineStyleOverride:null});var l=n.getSelection(),f=n.getCurrentContent(),h=n.getUndoStack(),m=a;l!==f.getSelectionAfter()||YF(n,i)?(h=h.push(f),m=m.set("selectionBefore",l)):(i==="insert-characters"||i==="backspace-character"||i==="delete-character")&&(m=m.set("selectionBefore",f.getSelectionBefore()));var g=n.getInlineStyleOverride(),p=["adjust-depth","change-block-type","split-block"];p.indexOf(i)===-1&&(g=null);var w={currentContent:m,directionMap:u,undoStack:h,redoStack:xi(),lastChangeType:i,selection:a.getSelectionAfter(),forceSelection:s,inlineStyleOverride:g};return t.set(n,w)},t.undo=function(n){if(!n.getAllowUndo())return n;var a=n.getUndoStack(),i=a.peek();if(!i)return n;var s=n.getCurrentContent(),u=od.getDirectionMap(i,n.getDirectionMap());return t.set(n,{currentContent:i,directionMap:u,undoStack:a.shift(),redoStack:n.getRedoStack().push(s),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:s.getSelectionBefore()})},t.redo=function(n){if(!n.getAllowUndo())return n;var a=n.getRedoStack(),i=a.peek();if(!i)return n;var s=n.getCurrentContent(),u=od.getDirectionMap(i,n.getDirectionMap());return t.set(n,{currentContent:i,directionMap:u,undoStack:n.getUndoStack().push(s),redoStack:a.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:i.getSelectionAfter()})};function t(r){O3(this,"_immutable",void 0),this._immutable=r}return e.getImmutable=function(){return this._immutable},t}();function F3(e,t,r){return P3.set(e,{selection:t,forceSelection:r,nativelyRenderedContent:null,inlineStyleOverride:null})}function B3(e,t){return e.getBlockMap().map(function(r){return id.generate(e,r,t)}).toOrderedMap()}function GF(e,t,r,n){var a=e.getCurrentContent().set("entityMap",r),i=a.getBlockMap(),s=e.getImmutable().get("treeMap");return s.merge(t.toSeq().filter(function(u,l){return u!==i.get(l)}).map(function(u){return id.generate(a,u,n)}))}function ZF(e,t,r,n,a){return r.merge(t.toSeq().filter(function(i){return n.getDecorations(i,e)!==a.getDecorations(i,e)}).map(function(i){return id.generate(e,i,n)}))}function YF(e,t){var r=e.getLastChangeType();return t!==r||t!=="insert-characters"&&t!=="backspace-character"&&t!=="delete-character"}function QF(e,t){var r=t.getStartKey(),n=t.getStartOffset(),a=e.getBlockForKey(r);return n>0?a.getInlineStyleAt(n-1):a.getLength()?a.getInlineStyleAt(0):R3(e,r)}function XF(e,t){var r=t.getStartKey(),n=t.getStartOffset(),a=e.getBlockForKey(r);return n<a.getLength()?a.getInlineStyleAt(n):n>0?a.getInlineStyleAt(n-1):R3(e,r)}function R3(e,t){var r=e.getBlockMap().reverse().skipUntil(function(n,a){return a===t}).skip(1).skipUntil(function(n,a){return n.getLength()}).first();return r?r.getInlineStyleAt(r.getLength()-1):M3()}var At=P3,JF=hn,eB=o3,U3=ft,sd=ht,tB=U3.OrderedMap,rB=U3.List,_i=function(t,r,n){if(t){var a=r.get(t);a&&r.set(t,n(a))}},nB=function(t,r,n,a,i){if(!i)return t;var s=a==="after",u=r.getKey(),l=n.getKey(),f=r.getParentKey(),h=r.getNextSiblingKey(),m=r.getPrevSiblingKey(),g=n.getParentKey(),p=s?n.getNextSiblingKey():l,w=s?l:n.getPrevSiblingKey();return t.withMutations(function(y){_i(f,y,function(_){var S=_.getChildKeys();return _.merge({children:S.delete(S.indexOf(u))})}),_i(m,y,function(_){return _.merge({nextSibling:h})}),_i(h,y,function(_){return _.merge({prevSibling:m})}),_i(p,y,function(_){return _.merge({prevSibling:u})}),_i(w,y,function(_){return _.merge({nextSibling:u})}),_i(g,y,function(_){var S=_.getChildKeys(),H=S.indexOf(l),L=s?H+1:H!==0?H-1:0,O=S.toArray();return O.splice(L,0,u),_.merge({children:rB(O)})}),_i(u,y,function(_){return _.merge({nextSibling:p,prevSibling:w,parent:g})})})},aB=function(t,r,n,a){a==="replace"&&sd(!1);var i=n.getKey(),s=r.getKey();s===i&&sd(!1);var u=t.getBlockMap(),l=r instanceof JF,f=[r],h=u.delete(s);l&&(f=[],h=u.withMutations(function(S){var H=r.getNextSiblingKey(),L=eB(r,S);S.toSeq().skipUntil(function(O){return O.getKey()===s}).takeWhile(function(O){var j=O.getKey(),R=j===s,K=H&&j!==H,M=!H&&O.getParentKey()&&(!L||j!==L);return!!(R||K||M)}).forEach(function(O){f.push(O),S.delete(O.getKey())})}));var m=h.toSeq().takeUntil(function(S){return S===n}),g=h.toSeq().skipUntil(function(S){return S===n}).skip(1),p=f.map(function(S){return[S.getKey(),S]}),w=tB();if(a==="before"){var y=t.getBlockBefore(i);!y||y.getKey()!==r.getKey()||sd(!1),w=m.concat([].concat(p,[[i,n]]),g).toOrderedMap()}else if(a==="after"){var _=t.getBlockAfter(i);!_||_.getKey()!==s||sd(!1),w=m.concat([[i,n]].concat(p),g).toOrderedMap()}return t.merge({blockMap:nB(w,r,n,a,l),selectionBefore:t.getSelectionAfter(),selectionAfter:t.getSelectionAfter().merge({anchorKey:s,focusKey:s})})},iB=aB;function K3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),n.forEach(function(a){oB(e,a,r[a])})}return e}function oB(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var sB=Js,uB=gn,lB=yi,cB=hn,So=Hr,z3=At,$3=jn,dB=Wa,j3=ft,ud=iB,q3=dB("draft_tree_data_support"),W3=q3?cB:lB,fB=j3.List,gB=j3.Repeat,hB={insertAtomicBlock:function(t,r,n){var a=t.getCurrentContent(),i=t.getSelection(),s=So.removeRange(a,i,"backward"),u=s.getSelectionAfter(),l=So.splitBlock(s,u),f=l.getSelectionAfter(),h=So.setBlockType(l,f,"atomic"),m=uB.create({entity:r}),g={key:$3(),type:"atomic",text:n,characterList:fB(gB(m,n.length))},p={key:$3(),type:"unstyled"};q3&&(g=K3({},g,{nextSibling:p.key}),p=K3({},p,{prevSibling:g.key}));var w=[new W3(g),new W3(p)],y=sB.createFromArray(w),_=So.replaceWithFragment(h,f,y),S=_.merge({selectionBefore:i,selectionAfter:_.getSelectionAfter().set("hasFocus",!0)});return z3.push(t,S,"insert-fragment")},moveAtomicBlock:function(t,r,n,a){var i=t.getCurrentContent(),s=t.getSelection(),u;if(a==="before"||a==="after"){var l=i.getBlockForKey(a==="before"?n.getStartKey():n.getEndKey());u=ud(i,r,l,a)}else{var f=So.removeRange(i,n,"backward"),h=f.getSelectionAfter(),m=f.getBlockForKey(h.getFocusKey());if(h.getStartOffset()===0)u=ud(f,r,m,"before");else if(h.getEndOffset()===m.getLength())u=ud(f,r,m,"after");else{var g=So.splitBlock(f,h),p=g.getSelectionAfter(),w=g.getBlockForKey(p.getFocusKey());u=ud(g,r,w,"before")}}var y=u.merge({selectionBefore:s,selectionAfter:u.getSelectionAfter().set("hasFocus",!0)});return z3.push(t,y,"move-block")}},pB=hB;function mB(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var vB=ft,bB=vB.List,l0=".",wB=function(){function e(r){mB(this,"_decorators",void 0),this._decorators=r.slice()}var t=e.prototype;return t.getDecorations=function(n,a){var i=Array(n.getText().length).fill(null);return this._decorators.forEach(function(s,u){var l=0,f=s.strategy,h=function(g,p){yB(i,g,p)&&(xB(i,g,p,u+l0+l),l++)};f(n,h,a)}),bB(i)},t.getComponentForKey=function(n){var a=parseInt(n.split(l0)[0],10);return this._decorators[a].component},t.getPropsForKey=function(n){var a=parseInt(n.split(l0)[0],10);return this._decorators[a].props},e}();function yB(e,t,r){for(var n=t;n<r;n++)if(e[n]!=null)return!1;return!0}function xB(e,t,r,n){for(var a=t;a<r;a++)e[a]=n}var _B=wB;function CB(e){return typeof e=="object"?Object.keys(e).filter(function(t){return e[t]}).map(G3).join(" "):Array.prototype.map.call(arguments,G3).join(" ")}function G3(e){return e.replace(/\//g,"-")}var Ci=CB,c0=D,d0=Ci,SB=ft,EB=SB.Map,AB=c0.createElement("ul",{className:d0("public/DraftStyleDefault/ul")}),DB=c0.createElement("ol",{className:d0("public/DraftStyleDefault/ol")}),kB=c0.createElement("pre",{className:d0("public/DraftStyleDefault/pre")}),NB=EB({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:AB},"ordered-list-item":{element:"li",wrapper:DB},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:kB},unstyled:{element:"div",aliasedElements:["p"]}}),f0=NB,Z3={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}};/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var Y3=Object.getOwnPropertySymbols,TB=Object.prototype.hasOwnProperty,HB=Object.prototype.propertyIsEnumerable;function IB(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function OB(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(n.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(i){a[i]=i}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Si=OB()?Object.assign:function(e,t){for(var r,n=IB(e),a,i=1;i<arguments.length;i++){r=Object(arguments[i]);for(var s in r)TB.call(r,s)&&(n[s]=r[s]);if(Y3){a=Y3(r);for(var u=0;u<a.length;u++)HB.call(r,a[u])&&(n[a[u]]=r[a[u]])}}return n},g0={exports:{}};(function(e,t){(function(r,n){var a="0.7.36",i="",s="?",u="function",l="undefined",f="object",h="string",m="major",g="model",p="name",w="type",y="vendor",_="version",S="architecture",H="console",L="mobile",O="tablet",j="smarttv",R="wearable",K="embedded",M=350,F="Amazon",U="Apple",k="ASUS",C="BlackBerry",A="Browser",I="Chrome",T="Edge",V="Firefox",P="Google",z="Huawei",Z="LG",re="Microsoft",te="Motorola",oe="Opera",xe="Samsung",ge="Sharp",le="Sony",ve="Xiaomi",pe="Zebra",Le="Facebook",Fe="Chromium OS",qe="Mac OS",zt=function(Ge,nt){var Re={};for(var pt in Ge)nt[pt]&&nt[pt].length%2===0?Re[pt]=nt[pt].concat(Ge[pt]):Re[pt]=Ge[pt];return Re},Ce=function(Ge){for(var nt={},Re=0;Re<Ge.length;Re++)nt[Ge[Re].toUpperCase()]=Ge[Re];return nt},Ke=function(Ge,nt){return typeof Ge===h?ut(nt).indexOf(ut(Ge))!==-1:!1},ut=function(Ge){return Ge.toLowerCase()},Be=function(Ge){return typeof Ge===h?Ge.replace(/[^\d\.]/g,i).split(".")[0]:n},Ve=function(Ge,nt){if(typeof Ge===h)return Ge=Ge.replace(/^\s\s*/,i),typeof nt===l?Ge:Ge.substring(0,M)},$t=function(Ge,nt){for(var Re=0,pt,Tn,Wr,Ye,Ie,nr;Re<nt.length&&!Ie;){var Xa=nt[Re],qt=nt[Re+1];for(pt=Tn=0;pt<Xa.length&&!Ie&&Xa[pt];)if(Ie=Xa[pt++].exec(Ge),Ie)for(Wr=0;Wr<qt.length;Wr++)nr=Ie[++Tn],Ye=qt[Wr],typeof Ye===f&&Ye.length>0?Ye.length===2?typeof Ye[1]==u?this[Ye[0]]=Ye[1].call(this,nr):this[Ye[0]]=Ye[1]:Ye.length===3?typeof Ye[1]===u&&!(Ye[1].exec&&Ye[1].test)?this[Ye[0]]=nr?Ye[1].call(this,nr,Ye[2]):n:this[Ye[0]]=nr?nr.replace(Ye[1],Ye[2]):n:Ye.length===4&&(this[Ye[0]]=nr?Ye[3].call(this,nr.replace(Ye[1],Ye[2])):n):this[Ye]=nr||n;Re+=2}},bt=function(Ge,nt){for(var Re in nt)if(typeof nt[Re]===f&&nt[Re].length>0){for(var pt=0;pt<nt[Re].length;pt++)if(Ke(nt[Re][pt],Ge))return Re===s?n:Re}else if(Ke(nt[Re],Ge))return Re===s?n:Re;return Ge},Qt={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},wr={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},jt={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[_,[p,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[_,[p,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[p,_],[/opios[\/ ]+([\w\.]+)/i],[_,[p,oe+" Mini"]],[/\bopr\/([\w\.]+)/i],[_,[p,oe]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[p,_],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[_,[p,"UC"+A]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[_,[p,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[_,[p,"WeChat"]],[/konqueror\/([\w\.]+)/i],[_,[p,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[_,[p,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[_,[p,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[p,/(.+)/,"$1 Secure "+A],_],[/\bfocus\/([\w\.]+)/i],[_,[p,V+" Focus"]],[/\bopt\/([\w\.]+)/i],[_,[p,oe+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[_,[p,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[_,[p,"Dolphin"]],[/coast\/([\w\.]+)/i],[_,[p,oe+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[_,[p,"MIUI "+A]],[/fxios\/([-\w\.]+)/i],[_,[p,V]],[/\bqihu|(qi?ho?o?|360)browser/i],[[p,"360 "+A]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[p,/(.+)/,"$1 "+A],_],[/(comodo_dragon)\/([\w\.]+)/i],[[p,/_/g," "],_],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[p,_],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[p],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[p,Le],_],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[p,_],[/\bgsa\/([\w\.]+) .*safari\//i],[_,[p,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[_,[p,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[_,[p,I+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[p,I+" WebView"],_],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[_,[p,"Android "+A]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[p,_],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[_,[p,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[_,p],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[p,[_,bt,Qt]],[/(webkit|khtml)\/([\w\.]+)/i],[p,_],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[p,"Netscape"],_],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[_,[p,V+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[p,_],[/(cobalt)\/([\w\.]+)/i],[p,[_,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[S,"amd64"]],[/(ia32(?=;))/i],[[S,ut]],[/((?:i[346]|x)86)[;\)]/i],[[S,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[S,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[S,"armhf"]],[/windows (ce|mobile); ppc;/i],[[S,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[S,/ower/,i,ut]],[/(sun4\w)[;\)]/i],[[S,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[S,ut]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[g,[y,xe],[w,O]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[g,[y,xe],[w,L]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[g,[y,U],[w,L]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[g,[y,U],[w,O]],[/(macintosh);/i],[g,[y,U]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[g,[y,ge],[w,L]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[g,[y,z],[w,O]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[g,[y,z],[w,L]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[g,/_/g," "],[y,ve],[w,L]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[g,/_/g," "],[y,ve],[w,O]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[g,[y,"OPPO"],[w,L]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[g,[y,"Vivo"],[w,L]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[g,[y,"Realme"],[w,L]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[g,[y,te],[w,L]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[g,[y,te],[w,O]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[g,[y,Z],[w,O]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[g,[y,Z],[w,L]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[g,[y,"Lenovo"],[w,O]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[g,/_/g," "],[y,"Nokia"],[w,L]],[/(pixel c)\b/i],[g,[y,P],[w,O]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[g,[y,P],[w,L]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[g,[y,le],[w,L]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[g,"Xperia Tablet"],[y,le],[w,O]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[g,[y,"OnePlus"],[w,L]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[g,[y,F],[w,O]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[g,/(.+)/g,"Fire Phone $1"],[y,F],[w,L]],[/(playbook);[-\w\),; ]+(rim)/i],[g,y,[w,O]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[g,[y,C],[w,L]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[g,[y,k],[w,O]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[g,[y,k],[w,L]],[/(nexus 9)/i],[g,[y,"HTC"],[w,O]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[y,[g,/_/g," "],[w,L]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[g,[y,"Acer"],[w,O]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[g,[y,"Meizu"],[w,L]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[y,g,[w,L]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[y,g,[w,O]],[/(surface duo)/i],[g,[y,re],[w,O]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[g,[y,"Fairphone"],[w,L]],[/(u304aa)/i],[g,[y,"AT&T"],[w,L]],[/\bsie-(\w*)/i],[g,[y,"Siemens"],[w,L]],[/\b(rct\w+) b/i],[g,[y,"RCA"],[w,O]],[/\b(venue[\d ]{2,7}) b/i],[g,[y,"Dell"],[w,O]],[/\b(q(?:mv|ta)\w+) b/i],[g,[y,"Verizon"],[w,O]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[g,[y,"Barnes & Noble"],[w,O]],[/\b(tm\d{3}\w+) b/i],[g,[y,"NuVision"],[w,O]],[/\b(k88) b/i],[g,[y,"ZTE"],[w,O]],[/\b(nx\d{3}j) b/i],[g,[y,"ZTE"],[w,L]],[/\b(gen\d{3}) b.+49h/i],[g,[y,"Swiss"],[w,L]],[/\b(zur\d{3}) b/i],[g,[y,"Swiss"],[w,O]],[/\b((zeki)?tb.*\b) b/i],[g,[y,"Zeki"],[w,O]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[y,"Dragon Touch"],g,[w,O]],[/\b(ns-?\w{0,9}) b/i],[g,[y,"Insignia"],[w,O]],[/\b((nxa|next)-?\w{0,9}) b/i],[g,[y,"NextBook"],[w,O]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[y,"Voice"],g,[w,L]],[/\b(lvtel\-)?(v1[12]) b/i],[[y,"LvTel"],g,[w,L]],[/\b(ph-1) /i],[g,[y,"Essential"],[w,L]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[g,[y,"Envizen"],[w,O]],[/\b(trio[-\w\. ]+) b/i],[g,[y,"MachSpeed"],[w,O]],[/\btu_(1491) b/i],[g,[y,"Rotor"],[w,O]],[/(shield[\w ]+) b/i],[g,[y,"Nvidia"],[w,O]],[/(sprint) (\w+)/i],[y,g,[w,L]],[/(kin\.[onetw]{3})/i],[[g,/\./g," "],[y,re],[w,L]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[g,[y,pe],[w,O]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[g,[y,pe],[w,L]],[/smart-tv.+(samsung)/i],[y,[w,j]],[/hbbtv.+maple;(\d+)/i],[[g,/^/,"SmartTV"],[y,xe],[w,j]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[y,Z],[w,j]],[/(apple) ?tv/i],[y,[g,U+" TV"],[w,j]],[/crkey/i],[[g,I+"cast"],[y,P],[w,j]],[/droid.+aft(\w+)( bui|\))/i],[g,[y,F],[w,j]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[g,[y,ge],[w,j]],[/(bravia[\w ]+)( bui|\))/i],[g,[y,le],[w,j]],[/(mitv-\w{5}) bui/i],[g,[y,ve],[w,j]],[/Hbbtv.*(technisat) (.*);/i],[y,g,[w,j]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[y,Ve],[g,Ve],[w,j]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[w,j]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[y,g,[w,H]],[/droid.+; (shield) bui/i],[g,[y,"Nvidia"],[w,H]],[/(playstation [345portablevi]+)/i],[g,[y,le],[w,H]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[g,[y,re],[w,H]],[/((pebble))app/i],[y,g,[w,R]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[g,[y,U],[w,R]],[/droid.+; (glass) \d/i],[g,[y,P],[w,R]],[/droid.+; (wt63?0{2,3})\)/i],[g,[y,pe],[w,R]],[/(quest( 2| pro)?)/i],[g,[y,Le],[w,R]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[y,[w,K]],[/(aeobc)\b/i],[g,[y,F],[w,K]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[g,[w,L]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[g,[w,O]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[w,O]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[w,L]],[/(android[-\w\. ]{0,9});.+buil/i],[g,[y,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[_,[p,T+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[_,[p,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[p,_],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[_,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,_],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[p,[_,bt,wr]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,"Windows"],[_,bt,wr]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[_,/_/g,"."],[p,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[p,qe],[_,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[_,p],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[p,_],[/\(bb(10);/i],[_,[p,C]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[_,[p,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[_,[p,V+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[_,[p,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[_,[p,"watchOS"]],[/crkey\/([\d\.]+)/i],[_,[p,I+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[p,Fe],_],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[p,_],[/(sunos) ?([\w\.\d]*)/i],[[p,"Solaris"],_],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[p,_]]},Dt=function(Ge,nt){if(typeof Ge===f&&(nt=Ge,Ge=n),!(this instanceof Dt))return new Dt(Ge,nt).getResult();var Re=typeof r!==l&&r.navigator?r.navigator:n,pt=Ge||(Re&&Re.userAgent?Re.userAgent:i),Tn=Re&&Re.userAgentData?Re.userAgentData:n,Wr=nt?zt(jt,nt):jt,Ye=Re&&Re.userAgent==pt;return this.getBrowser=function(){var Ie={};return Ie[p]=n,Ie[_]=n,$t.call(Ie,pt,Wr.browser),Ie[m]=Be(Ie[_]),Ye&&Re&&Re.brave&&typeof Re.brave.isBrave==u&&(Ie[p]="Brave"),Ie},this.getCPU=function(){var Ie={};return Ie[S]=n,$t.call(Ie,pt,Wr.cpu),Ie},this.getDevice=function(){var Ie={};return Ie[y]=n,Ie[g]=n,Ie[w]=n,$t.call(Ie,pt,Wr.device),Ye&&!Ie[w]&&Tn&&Tn.mobile&&(Ie[w]=L),Ye&&Ie[g]=="Macintosh"&&Re&&typeof Re.standalone!==l&&Re.maxTouchPoints&&Re.maxTouchPoints>2&&(Ie[g]="iPad",Ie[w]=O),Ie},this.getEngine=function(){var Ie={};return Ie[p]=n,Ie[_]=n,$t.call(Ie,pt,Wr.engine),Ie},this.getOS=function(){var Ie={};return Ie[p]=n,Ie[_]=n,$t.call(Ie,pt,Wr.os),Ye&&!Ie[p]&&Tn&&Tn.platform!="Unknown"&&(Ie[p]=Tn.platform.replace(/chrome os/i,Fe).replace(/macos/i,qe)),Ie},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return pt},this.setUA=function(Ie){return pt=typeof Ie===h&&Ie.length>M?Ve(Ie,M):Ie,this},this.setUA(pt),this};Dt.VERSION=a,Dt.BROWSER=Ce([p,_,m]),Dt.CPU=Ce([S]),Dt.DEVICE=Ce([g,y,w,H,L,j,O,R,K]),Dt.ENGINE=Dt.OS=Ce([p,_]),e.exports&&(t=e.exports=Dt),t.UAParser=Dt;var Mr=typeof r!==l&&(r.jQuery||r.Zepto);if(Mr&&!Mr.ua){var Lr=new Dt;Mr.ua=Lr.getResult(),Mr.ua.get=function(){return Lr.getUA()},Mr.ua.set=function(Ge){Lr.setUA(Ge);var nt=Lr.getResult();for(var Re in nt)Mr.ua[Re]=nt[Re]}}})(typeof window=="object"?window:Ee)})(g0,g0.exports);var MB=g0.exports,LB=MB,pn="Unknown",VB={"Mac OS":"Mac OS X"};function PB(e){return VB[e]||e}function FB(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}var BB=new LB,mn=BB.getResult(),RB=FB(mn.browser.version),UB={browserArchitecture:mn.cpu.architecture||pn,browserFullVersion:mn.browser.version||pn,browserMinorVersion:RB.minor||pn,browserName:mn.browser.name||pn,browserVersion:mn.browser.major||pn,deviceName:mn.device.model||pn,engineName:mn.engine.name||pn,engineVersion:mn.engine.version||pn,platformArchitecture:mn.cpu.architecture||pn,platformName:PB(mn.os.name)||pn,platformVersion:mn.os.version||pn,platformFullVersion:mn.os.version||pn},KB=UB,ld=ht,Q3=/\./,zB=/\|\|/,$B=/\s+\-\s+/,jB=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,X3=/^(\d*)(.*)/;function qB(e,t){var r=e.split(zB);return r.length>1?r.some(function(n){return i5.contains(n,t)}):(e=r[0].trim(),WB(e,t))}function WB(e,t){var r=e.split($B);if(r.length>0&&r.length<=2||ld(!1),r.length===1)return h0(r[0],t);var n=r[0],a=r[1];return r5(n)&&r5(a)||ld(!1),h0(">="+n,t)&&h0("<="+a,t)}function h0(e,t){if(e=e.trim(),e==="")return!0;var r=t.split(Q3),n=t5(e),a=n.modifier,i=n.rangeComponents;switch(a){case"<":return J3(r,i);case"<=":return GB(r,i);case">=":return e5(r,i);case">":return YB(r,i);case"~":case"~>":return QB(r,i);default:return ZB(r,i)}}function J3(e,t){return du(e,t)===-1}function GB(e,t){var r=du(e,t);return r===-1||r===0}function ZB(e,t){return du(e,t)===0}function e5(e,t){var r=du(e,t);return r===1||r===0}function YB(e,t){return du(e,t)===1}function QB(e,t){var r=t.slice(),n=t.slice();n.length>1&&n.pop();var a=n.length-1,i=parseInt(n[a],10);return p0(i)&&(n[a]=i+1+""),e5(e,r)&&J3(e,n)}function t5(e){var t=e.split(Q3),r=t[0].match(jB);return r||ld(!1),{modifier:r[1],rangeComponents:[r[2]].concat(t.slice(1))}}function p0(e){return!isNaN(e)&&isFinite(e)}function r5(e){return!t5(e).modifier}function n5(e,t){for(var r=e.length;r<t;r++)e[r]="0"}function XB(e,t){e=e.slice(),t=t.slice(),n5(e,t.length);for(var r=0;r<t.length;r++){var n=t[r].match(/^[x*]$/i);if(n&&(t[r]=e[r]="0",n[0]==="*"&&r===t.length-1))for(var a=r;a<e.length;a++)e[a]="0"}return n5(t,e.length),[e,t]}function JB(e,t){var r=e.match(X3)[1],n=t.match(X3)[1],a=parseInt(r,10),i=parseInt(n,10);return p0(a)&&p0(i)&&a!==i?a5(a,i):a5(e,t)}function a5(e,t){return typeof e!=typeof t&&ld(!1),e>t?1:e<t?-1:0}function du(e,t){for(var r=XB(e,t),n=r[0],a=r[1],i=0;i<a.length;i++){var s=JB(n[i],a[i]);if(s)return s}return 0}var i5={contains:function(t,r){return qB(t.trim(),r.trim())}},eR=i5,tR=Object.prototype.hasOwnProperty;function rR(e,t,r){if(!e)return null;var n={};for(var a in e)tR.call(e,a)&&(n[a]=t.call(r,e[a],a,e));return n}var nR=rR;function aR(e){var t={};return function(r){return t.hasOwnProperty(r)||(t[r]=e.call(this,r)),t[r]}}var iR=aR,Gn=KB,oR=eR,sR=nR,uR=iR;function Eo(e,t,r,n){if(e===r)return!0;if(!r.startsWith(e))return!1;var a=r.slice(e.length);return t?(a=n?n(a):a,oR.contains(a,t)):!1}function lR(e){return Gn.platformName==="Windows"?e.replace(/^\s*NT/,""):e}var cR={isBrowser:function(t){return Eo(Gn.browserName,Gn.browserFullVersion,t)},isBrowserArchitecture:function(t){return Eo(Gn.browserArchitecture,null,t)},isDevice:function(t){return Eo(Gn.deviceName,null,t)},isEngine:function(t){return Eo(Gn.engineName,Gn.engineVersion,t)},isPlatform:function(t){return Eo(Gn.platformName,Gn.platformFullVersion,t,lR)},isPlatformArchitecture:function(t){return Eo(Gn.platformArchitecture,null,t)}},Or=sR(cR,uR);function dR(e){return!e||!e.ownerDocument?document:e.ownerDocument}var cd=dR;function fR(e){return!e||!e.ownerDocument?!1:e.nodeType===Node.ELEMENT_NODE}var Ei=fR,gR=Ei;function o5(e){if(gR(e)){var t=e,r=t.getAttribute("data-offset-key");if(r)return r;for(var n=0;n<t.childNodes.length;n++){var a=o5(t.childNodes[n]);if(a)return a}}return null}var s5=o5,hR=cd,pR=s5;function mR(e){for(var t=e;t&&t!==hR(e).documentElement;){var r=pR(t);if(r!=null)return r;t=t.parentNode}return null}var dd=mR;function vR(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}var u5=vR;function fd(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var bR=Or,wR=dd,yR=u5,xR=ft,_R=ht,CR=Ir,l5=xR.Map,SR={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},c5=bR.isBrowser("IE <= 11"),ER=function(){function e(r){var n=this;fd(this,"observer",void 0),fd(this,"container",void 0),fd(this,"mutations",void 0),fd(this,"onCharData",void 0),this.container=r,this.mutations=l5();var a=yR(r);a.MutationObserver&&!c5?this.observer=new a.MutationObserver(function(i){return n.registerMutations(i)}):this.onCharData=function(i){i.target instanceof Node||_R(!1),n.registerMutation({type:"characterData",target:i.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,SR):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var n=this.observer;n?(this.registerMutations(n.takeRecords()),n.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var a=this.mutations;return this.mutations=l5(),a},t.registerMutations=function(n){for(var a=0;a<n.length;a++)this.registerMutation(n[a])},t.getMutationTextContent=function(n){var a=n.type,i=n.target,s=n.removedNodes;if(a==="characterData"){if(i.textContent!=="")return c5?i.textContent.replace(`
`,""):i.textContent}else if(a==="childList"){if(s&&s.length)return"";if(i.textContent!=="")return i.textContent}return null},t.registerMutation=function(n){var a=this.getMutationTextContent(n);if(a!=null){var i=CR(wR(n.target));this.mutations=this.mutations.set(i,a)}},e}(),AR=ER,gd="-",DR={encode:function(t,r,n){return t+gd+r+gd+n},decode:function(t){var r=t.split(gd).reverse(),n=r[0],a=r[1],i=r.slice(2);return{blockKey:i.reverse().join(gd),decoratorKey:parseInt(a,10),leafKey:parseInt(n,10)}}},Ca=DR,hd={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105},d5={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};function kR(e){return!e||!e.ownerDocument?!1:e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement}var fu=kR,f5=ht,NR=fu;function TR(e){var t=e.editorContainer;t||f5(!1),NR(t.firstChild)||f5(!1);var r=t.firstChild;return r}var g5=TR,h5=Ca,HR=Ir;function IR(e,t,r,n,a){var i=HR(e.getSelection());if(!t||!n)return i;var s=h5.decode(t),u=s.blockKey,l=e.getBlockTree(u),f=l&&l.getIn([s.decoratorKey,"leaves",s.leafKey]),h=h5.decode(n),m=h.blockKey,g=e.getBlockTree(m),p=g&&g.getIn([h.decoratorKey,"leaves",h.leafKey]);if(!f||!p)return i;var w=f.get("start"),y=p.get("start"),_=f?w+r:null,S=p?y+a:null,H=i.getAnchorKey()===u&&i.getAnchorOffset()===_&&i.getFocusKey()===m&&i.getFocusOffset()===S;if(H)return i;var L=!1;if(u===m){var O=f.get("end"),j=p.get("end");y===w&&j===O?L=a<r:L=y<w}else{var R=e.getCurrentContent().getBlockMap().keySeq().skipUntil(function(K){return K===u||K===m}).first();L=R===m}return i.merge({anchorKey:u,anchorOffset:_,focusKey:m,focusOffset:S,isBackward:L})}var p5=IR,gu=dd,hu=s5,m5=p5,m0=ht,v0=Ei,Ai=Ir;function OR(e,t,r,n,a,i){var s=r.nodeType===Node.TEXT_NODE,u=a.nodeType===Node.TEXT_NODE;if(s&&u)return{selectionState:m5(e,Ai(gu(r)),n,Ai(gu(a)),i),needsRecovery:!1};var l=null,f=null,h=!0;return s?(l={key:Ai(gu(r)),offset:n},f=pd(t,a,i)):u?(f={key:Ai(gu(a)),offset:i},l=pd(t,r,n)):(l=pd(t,r,n),f=pd(t,a,i),r===a&&n===i&&(h=!!r.firstChild&&r.firstChild.nodeName!=="BR")),{selectionState:m5(e,l.key,l.offset,f.key,f.offset),needsRecovery:h}}function MR(e){for(;e.firstChild&&(v0(e.firstChild)&&e.firstChild.getAttribute("data-blocks")==="true"||hu(e.firstChild));)e=e.firstChild;return e}function LR(e){for(;e.lastChild&&(v0(e.lastChild)&&e.lastChild.getAttribute("data-blocks")==="true"||hu(e.lastChild));)e=e.lastChild;return e}function pd(e,t,r){var n=t,a=gu(n);if(a!=null||e&&(e===n||e.firstChild===n)||m0(!1),e===n){n=n.firstChild,v0(n)||m0(!1);var i=n;n=i,n.getAttribute("data-contents")!=="true"&&m0(!1),r>0&&(r=n.childNodes.length)}if(r===0){var s=null;if(a!=null)s=a;else{var u=MR(n);s=Ai(hu(u))}return{key:s,offset:0}}var l=n.childNodes[r-1],f=null,h=null;if(!hu(l))f=Ai(a),h=v5(l);else{var m=LR(l);f=Ai(hu(m)),h=v5(m)}return{key:f,offset:h}}function v5(e){var t=e.textContent;return t===`
`?0:t.length}var b5=OR,VR=b5;function PR(e,t){var r=t.ownerDocument.defaultView.getSelection(),n=r.anchorNode,a=r.anchorOffset,i=r.focusNode,s=r.focusOffset,u=r.rangeCount;return u===0||n==null||i==null?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:VR(e,t,n,a,i,s)}var w5=PR,FR=d5,y5=At,BR=g5,RR=w5;function UR(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState,r=t.getSelection();FR.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:new Error().stack}),selectionState:JSON.stringify(r.toJS())})}return}var n=e.props.editorState,a=RR(n,BR(e)),i=a.selectionState;i!==n.getSelection()&&(a.needsRecovery?n=y5.forceSelection(n,i):n=y5.acceptSelection(n,i),e.update(n))}var x5=UR;function KR(e){return e!=null&&e!=""}var _5={notEmptyKey:KR},zR=_5,$R=zR.notEmptyKey;function jR(e,t){var r;if(t.isCollapsed()){var n=t.getAnchorKey(),a=t.getAnchorOffset();return a>0?(r=e.getBlockForKey(n).getEntityAt(a-1),r!==e.getBlockForKey(n).getEntityAt(a)?null:C5(e.getEntityMap(),r)):null}var i=t.getStartKey(),s=t.getStartOffset(),u=e.getBlockForKey(i);return r=s===u.getLength()?null:u.getEntityAt(s),C5(e.getEntityMap(),r)}function C5(e,t){if($R(t)){var r=e.__get(t);return r.getMutability()==="MUTABLE"?t:null}return null}var b0=jR,qR=AR,WR=Hr,GR=Ca,pu=At,w0=hd,ZR=Or,YR=x5,S5=g5,QR=w5,XR=b0,JR=Ir,eU=ZR.isBrowser("IE"),tU=20,y0=!1,md=!1,mu=null;function rU(e){mu||(mu=new qR(S5(e)),mu.start())}var x0={onCompositionStart:function(t){md=!0,rU(t)},onCompositionEnd:function(t){y0=!1,md=!1,setTimeout(function(){y0||x0.resolveComposition(t)},tU)},onSelect:YR,onKeyDown:function(t,r){if(!md){x0.resolveComposition(t),t._onKeyDown(r);return}(r.which===w0.RIGHT||r.which===w0.LEFT)&&r.preventDefault()},onKeyPress:function(t,r){r.which===w0.RETURN&&r.preventDefault()},resolveComposition:function(t){if(!md){var r=JR(mu).stopAndFlushMutations();mu=null,y0=!0;var n=pu.set(t._latestEditorState,{inCompositionMode:!1});if(t.exitCurrentMode(),!r.size){t.update(n);return}var a=n.getCurrentContent();r.forEach(function(l,f){var h=GR.decode(f),m=h.blockKey,g=h.decoratorKey,p=h.leafKey,w=n.getBlockTree(m).getIn([g,"leaves",p]),y=w.start,_=w.end,S=n.getSelection().merge({anchorKey:m,focusKey:m,anchorOffset:y,focusOffset:_,isBackward:!1}),H=XR(a,S),L=a.getBlockForKey(m).getInlineStyleAt(y);a=WR.replaceText(a,S,l,L,H),n=pu.set(n,{currentContent:a})});var i=QR(n,S5(t)),s=i.selectionState;t.restoreEditorDOM();var u=eU?pu.forceSelection(n,s):pu.acceptSelection(n,s);t.update(pu.push(u,a,"insert-characters"))}}},nU=x0,_0,E5;function aU(){if(E5)return _0;E5=1;var e=Si;function t(){return t=e||function(l){for(var f=1;f<arguments.length;f++){var h=arguments[f];for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&(l[m]=h[m])}return l},t.apply(this,arguments)}function r(l,f){l.prototype=Object.create(f.prototype),l.prototype.constructor=l,l.__proto__=f}var n=Ca,a=D,i=s0,s=nd,u=function(l){r(f,l);function f(){return l.apply(this,arguments)||this}var h=f.prototype;return h.render=function(){var g=this.props,p=g.block,w=g.children,y=g.contentState,_=g.decorator,S=g.decoratorKey,H=g.direction,L=g.leafSet,O=g.text,j=p.getKey(),R=L.get("leaves"),K=_.getComponentForKey(S),M=_.getPropsForKey(S),F=n.encode(j,parseInt(S,10),0),U=O.slice(R.first().get("start"),R.last().get("end")),k=s.getHTMLDirIfDifferent(i.getDirection(U),H);return a.createElement(K,t({},M,{contentState:y,decoratedText:U,dir:k,key:F,entityKey:p.getEntityAt(L.get("start")),offsetKey:F}),w)},f}(a.Component);return _0=u,_0}function A5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iU(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function D5(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ao=D,oU=Or,sU=ht,uU=Ei,C0=oU.isBrowser("IE <= 11");function lU(e){return C0?e.textContent===`
`:e.tagName==="BR"}var cU=function(t){return C0?Ao.createElement("span",{key:"A","data-text":"true",ref:t},`
`):Ao.createElement("br",{key:"A","data-text":"true",ref:t})},dU=function(t){return C0?Ao.createElement("span",{key:"B","data-text":"true",ref:t},`
`):Ao.createElement("br",{key:"B","data-text":"true",ref:t})},fU=function(e){iU(t,e);function t(n){var a;return a=e.call(this,n)||this,D5(A5(a),"_forceFlag",void 0),D5(A5(a),"_node",void 0),a._forceFlag=!1,a}var r=t.prototype;return r.shouldComponentUpdate=function(a){var i=this._node,s=a.children==="";uU(i)||sU(!1);var u=i;return s?!lU(u):u.textContent!==a.children},r.componentDidMount=function(){this._forceFlag=!this._forceFlag},r.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},r.render=function(){var a=this;return this.props.children===""?this._forceFlag?cU(function(i){return a._node=i}):dU(function(i){return a._node=i}):Ao.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(s){return a._node=s}},this.props.children)},t}(Ao.Component),gU=fU,hU=Ei;function pU(e){return!e||!e.ownerDocument?!1:hU(e)&&e.nodeName==="BR"}var k5=pU,N5={initODS:function(){},handleExtensionCausedError:function(){}};function mU(e){var t=e?e.ownerDocument||e:document,r=t.defaultView||window;return!!(e&&(typeof r.Node=="function"?e instanceof r.Node:typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.nodeName=="string"))}var vU=mU,bU=vU;function wU(e){return bU(e)&&e.nodeType==3}var yU=wU,T5=yU;function H5(e,t){return!e||!t?!1:e===t?!0:T5(e)?!1:T5(t)?H5(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}var S0=H5;function xU(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var I5=xU,_U=N5,E0=d5,CU=Or,O5=S0,SU=I5,A0=cd,EU=ht,M5=Ei,AU=CU.isBrowser("IE");function DU(e,t){if(!e)return"[empty]";var r=L5(e,t);if(r.nodeType===Node.TEXT_NODE)return r.textContent;M5(r)||EU(!1);var n=r;return n.outerHTML}function L5(e,t){var r=t!==void 0?t(e):[];if(e.nodeType===Node.TEXT_NODE){var n=e.textContent.length;return A0(e).createTextNode("[text "+n+(r.length?" | "+r.join(", "):"")+"]")}var a=e.cloneNode();a.nodeType===1&&r.length&&a.setAttribute("data-labels",r.join(", "));for(var i=e.childNodes,s=0;s<i.length;s++)a.appendChild(L5(i[s],t));return a}function D0(e,t){for(var r=e,n=r;r;){if(M5(r)&&n.hasAttribute("contenteditable"))return DU(r,t);r=r.parentNode,n=r}return"Could not find contentEditable parent of node"}function V5(e){return e.nodeValue===null?e.childNodes.length:e.nodeValue.length}function kU(e,t,r,n,a){var i=A0(t);if(O5(i.documentElement,t)){var s=i.defaultView.getSelection(),u=e.getAnchorKey(),l=e.getAnchorOffset(),f=e.getFocusKey(),h=e.getFocusOffset(),m=e.getIsBackward();if(!s.extend&&m){var g=u,p=l;u=f,l=h,f=g,h=p,m=!1}var w=u===r&&n<=l&&a>=l,y=f===r&&n<=h&&a>=h;if(w&&y){s.removeAllRanges(),bd(s,t,l-n,e),vd(s,t,h-n,e);return}if(!m)w&&(s.removeAllRanges(),bd(s,t,l-n,e)),y&&vd(s,t,h-n,e);else if(y&&(s.removeAllRanges(),bd(s,t,h-n,e)),w){var _=s.focusNode,S=s.focusOffset;s.removeAllRanges(),bd(s,t,l-n,e),vd(s,_,S,e)}}}function vd(e,t,r,n){var a=SU(),i=e.extend;if(i&&t!=null&&O5(a,t)){r>V5(t)&&E0.logSelectionStateFailure({anonymizedDom:D0(t),extraParams:JSON.stringify({offset:r}),selectionState:JSON.stringify(n.toJS())});var s=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,r)}catch(l){throw E0.logSelectionStateFailure({anonymizedDom:D0(t,function(f){var h=[];return f===a&&h.push("active element"),f===e.anchorNode&&h.push("selection anchor node"),f===e.focusNode&&h.push("selection focus node"),h}),extraParams:JSON.stringify({activeElementName:a?a.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:s,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:l?""+l:null,offset:r},null,2),selectionState:JSON.stringify(n.toJS(),null,2)}),l}}else if(t&&e.rangeCount>0){var u=e.getRangeAt(0);u.setEnd(t,r),e.addRange(u.cloneRange())}}function bd(e,t,r,n){var a=A0(t).createRange();if(r>V5(t)&&(E0.logSelectionStateFailure({anonymizedDom:D0(t),extraParams:JSON.stringify({offset:r}),selectionState:JSON.stringify(n.toJS())}),_U.handleExtensionCausedError()),a.setStart(t,r),AU)try{e.addRange(a)}catch{}else e.addRange(a)}var NU={setDraftEditorSelection:kU,addFocusToSelection:vd},P5=Si;function TU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function HU(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function IU(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var OU=gU,k0=D,wd=ht,MU=k5,LU=NU.setDraftEditorSelection,VU=function(e){HU(t,e);function t(){for(var n,a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return n=e.call.apply(e,[this].concat(i))||this,IU(TU(n),"leaf",void 0),n}var r=t.prototype;return r._setSelection=function(){var a=this.props.selection;if(!(a==null||!a.getHasFocus())){var i=this.props,s=i.block,u=i.start,l=i.text,f=s.getKey(),h=u+l.length;if(a.hasEdgeWithin(f,u,h)){var m=this.leaf;m||wd(!1);var g=m.firstChild;g||wd(!1);var p;g.nodeType===Node.TEXT_NODE?p=g:MU(g)?p=m:(p=g.firstChild,p||wd(!1)),LU(a,p,f,u,h)}}},r.shouldComponentUpdate=function(a){var i=this.leaf;i||wd(!1);var s=i.textContent!==a.text||a.styleSet!==this.props.styleSet||a.forceSelection;return s},r.componentDidUpdate=function(){this._setSelection()},r.componentDidMount=function(){this._setSelection()},r.render=function(){var a=this,i=this.props.block,s=this.props.text;s.endsWith(`
`)&&this.props.isLast&&(s+=`
`);var u=this.props,l=u.customStyleMap,f=u.customStyleFn,h=u.offsetKey,m=u.styleSet,g=m.reduce(function(w,y){var _={},S=l[y];return S!==void 0&&w.textDecoration!==S.textDecoration&&(_.textDecoration=[w.textDecoration,S.textDecoration].join(" ").trim()),P5(w,S,_)},{});if(f){var p=f(m,i);g=P5(g,p)}return k0.createElement("span",{"data-offset-key":h,ref:function(y){return a.leaf=y},style:g},k0.createElement(OU,null,s))},t}(k0.Component),F5=VU,N0,B5;function PU(){if(B5)return N0;B5=1;function e(l,f){l.prototype=Object.create(f.prototype),l.prototype.constructor=l,l.__proto__=f}var t=aU(),r=F5,n=Ca,a=ft,i=D,s=Ci;a.List;var u=function(l){e(f,l);function f(){return l.apply(this,arguments)||this}var h=f.prototype;return h.render=function(){var g=this.props,p=g.block,w=g.contentState,y=g.customStyleFn,_=g.customStyleMap,S=g.decorator,H=g.direction,L=g.forceSelection,O=g.hasSelection,j=g.selection,R=g.tree,K=p.getKey(),M=p.getText(),F=R.size-1,U=this.props.children||R.map(function(k,C){var A=k.get("decoratorKey"),I=k.get("leaves"),T=I.size-1,V=I.map(function(P,z){var Z=n.encode(K,C,z),re=P.get("start"),te=P.get("end");return i.createElement(r,{key:Z,offsetKey:Z,block:p,start:re,selection:O?j:null,forceSelection:L,text:M.slice(re,te),styleSet:p.getInlineStyleAt(re),customStyleMap:_,customStyleFn:y,isLast:A===F&&z===T})}).toArray();return!A||!S?V:i.createElement(t,{block:p,children:V,contentState:w,decorator:S,decoratorKey:A,direction:H,leafSet:k,text:M,key:C})}).toArray();return i.createElement("div",{"data-offset-key":n.encode(K,0,0),className:s({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":H==="LTR","public/DraftStyleDefault/rtl":H==="RTL"})},U)},f}(i.Component);return N0=u,N0}function yd(e,t){return!!t&&(e===t.documentElement||e===t.body)}var FU={getTop:function(t){var r=t.ownerDocument;return yd(t,r)?r.body.scrollTop||r.documentElement.scrollTop:t.scrollTop},setTop:function(t,r){var n=t.ownerDocument;yd(t,n)?n.body.scrollTop=n.documentElement.scrollTop=r:t.scrollTop=r},getLeft:function(t){var r=t.ownerDocument;return yd(t,r)?r.body.scrollLeft||r.documentElement.scrollLeft:t.scrollLeft},setLeft:function(t,r){var n=t.ownerDocument;yd(t,n)?n.body.scrollLeft=n.documentElement.scrollLeft=r:t.scrollLeft=r}},T0=FU,BU=/-(.)/g;function RU(e){return e.replace(BU,function(t,r){return r.toUpperCase()})}var UU=RU,KU=/([A-Z])/g;function zU(e){return e.replace(KU,"-$1").toLowerCase()}var $U=zU,R5=UU,U5=$U;function vu(e){return e==null?e:String(e)}function jU(e,t){var r;if(window.getComputedStyle&&(r=window.getComputedStyle(e,null),r))return vu(r.getPropertyValue(U5(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(r=document.defaultView.getComputedStyle(e,null),r)return vu(r.getPropertyValue(U5(t)));if(t==="display")return"none"}return e.currentStyle?vu(t==="float"?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[R5(t)]):vu(e.style&&e.style[R5(t)])}var qU=jU,WU=qU;function H0(e,t){var r=K5.get(e,t);return r==="auto"||r==="scroll"}var K5={get:WU,getScrollParent:function(t){if(!t)return null;for(var r=t.ownerDocument;t&&t!==r.body;){if(H0(t,"overflow")||H0(t,"overflowY")||H0(t,"overflowX"))return t;t=t.parentNode}return r.defaultView||r.parentWindow}},xd=K5,GU=S0;function ZU(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!GU(t,e))return{left:0,right:0,top:0,bottom:0};var r=e.getBoundingClientRect();return{left:Math.round(r.left)-t.clientLeft,right:Math.round(r.right)-t.clientLeft,top:Math.round(r.top)-t.clientTop,bottom:Math.round(r.bottom)-t.clientTop}}var YU=ZU,QU=YU;function XU(e){var t=QU(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}var z5=XU,JU=typeof navigator<"u"&&navigator.userAgent.indexOf("AppleWebKit")>-1;function eK(e){return e=e||document,e.scrollingElement?e.scrollingElement:!JU&&e.compatMode==="CSS1Compat"?e.documentElement:e.body}var tK=eK;function rK(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}var nK=rK,aK=tK,iK=nK;function oK(e){var t=aK(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var r=iK(e),n=e===t?e.ownerDocument.documentElement:e,a=e.scrollWidth-n.clientWidth,i=e.scrollHeight-n.clientHeight;return r.x=Math.max(0,Math.min(r.x,a)),r.y=Math.max(0,Math.min(r.y,i)),r}var _d=oK;function $5(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function j5(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function q5(){return{width:window.innerWidth||$5(),height:window.innerHeight||j5()}}q5.withoutScrollbars=function(){return{width:$5(),height:j5()}};var W5=q5,I0,G5;function sK(){if(G5)return I0;G5=1;var e=Si;function t(){return t=e||function(F){for(var U=1;U<arguments.length;U++){var k=arguments[U];for(var C in k)Object.prototype.hasOwnProperty.call(k,C)&&(F[C]=k[C])}return F},t.apply(this,arguments)}function r(F){if(F===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}function n(F,U){F.prototype=Object.create(U.prototype),F.prototype.constructor=F,F.__proto__=U}function a(F){for(var U=1;U<arguments.length;U++){var k=arguments[U]!=null?arguments[U]:{},C=Object.keys(k);typeof Object.getOwnPropertySymbols=="function"&&(C=C.concat(Object.getOwnPropertySymbols(k).filter(function(A){return Object.getOwnPropertyDescriptor(k,A).enumerable}))),C.forEach(function(A){i(F,A,k[A])})}return F}function i(F,U,k){return U in F?Object.defineProperty(F,U,{value:k,enumerable:!0,configurable:!0,writable:!0}):F[U]=k,F}var s=PU(),u=Ca,l=D,f=T0,h=xd,m=z5,g=_d,p=W5,w=ft,y=ht,_=fu,S=10;w.List;var H=function(U,k){return U.getAnchorKey()===k||U.getFocusKey()===k},L=function(U,k){var C=U.getNextSiblingKey();return C?k.getBlockForKey(C).getType()===U.getType():!1},O=function(U,k,C){var A=[],I=!0,T=!1,V=void 0;try{for(var P=C.reverse()[Symbol.iterator](),z;!(I=(z=P.next()).done);I=!0){var Z=z.value;if(Z.type!==k)break;A.push(Z)}}catch(oe){T=!0,V=oe}finally{try{!I&&P.return!=null&&P.return()}finally{if(T)throw V}}C.splice(C.indexOf(A[0]),A.length+1);var re=A.reverse(),te=re[0].key;return C.push(l.cloneElement(U,{key:"".concat(te,"-wrap"),"data-offset-key":u.encode(te,0,0)},re)),C},j=function(U,k){var C=k.get(U.getType())||k.get("unstyled"),A=C.wrapper,I=C.element||k.get("unstyled").element;return{Element:I,wrapperTemplate:A}},R=function(U,k){var C=k(U);if(!C)return{};var A=C.component,I=C.props,T=C.editable;return{CustomComponent:A,customProps:I,customEditable:T}},K=function(U,k,C,A,I,T){var V={"data-block":!0,"data-editor":k,"data-offset-key":C,key:U.getKey(),ref:T},P=A(U);return P&&(V.className=P),I.customEditable!==void 0&&(V=a({},V,{contentEditable:I.customEditable,suppressContentEditableWarning:!0})),V},M=function(F){n(U,F);function U(){for(var C,A=arguments.length,I=new Array(A),T=0;T<A;T++)I[T]=arguments[T];return C=F.call.apply(F,[this].concat(I))||this,i(r(C),"wrapperRef",l.createRef()),C}var k=U.prototype;return k.shouldComponentUpdate=function(A){var I=this.props,T=I.block,V=I.direction,P=I.tree,z=!T.getChildKeys().isEmpty(),Z=T!==A.block||P!==A.tree||V!==A.direction||H(A.selection,A.block.getKey())&&A.forceSelection;return z||Z},k.componentDidMount=function(){var A=this.props.selection,I=A.getEndKey();if(!(!A.getHasFocus()||I!==this.props.block.getKey())){var T=this.wrapperRef.current;if(T){var V=h.getScrollParent(T),P=g(V),z;if(V===window){var Z=m(T),re=Z.y+Z.height,te=p().height;z=re-te,z>0&&window.scrollTo(P.x,P.y+z+S)}else{_(T)||y(!1);var oe=T,xe=oe.offsetHeight+oe.offsetTop,ge=V.offsetHeight+P.y;z=xe-ge,z>0&&f.setTop(V,f.getTop(V)+z+S)}}}},k.render=function(){var A=this,I=this.props,T=I.block,V=I.blockRenderMap,P=I.blockRendererFn,z=I.blockStyleFn,Z=I.contentState,re=I.decorator,te=I.editorKey,oe=I.editorState,xe=I.customStyleFn,ge=I.customStyleMap,le=I.direction,ve=I.forceSelection,pe=I.selection,Le=I.tree,Fe=null;T.children.size&&(Fe=T.children.reduce(function(bt,Qt){var wr=u.encode(Qt,0,0),jt=Z.getBlockForKey(Qt),Dt=R(jt,P),Mr=Dt.CustomComponent||U,Lr=j(jt,V),Ge=Lr.Element,nt=Lr.wrapperTemplate,Re=K(jt,te,wr,z,Dt,null),pt=a({},A.props,{tree:oe.getBlockTree(Qt),blockProps:Dt.customProps,offsetKey:wr,block:jt});return bt.push(l.createElement(Ge,Re,l.createElement(Mr,pt))),!nt||L(jt,Z)||O(nt,Ge,bt),bt},[]));var qe=T.getKey(),zt=u.encode(qe,0,0),Ce=R(T,P),Ke=Ce.CustomComponent,ut=Ke!=null?l.createElement(Ke,t({},this.props,{tree:oe.getBlockTree(qe),blockProps:Ce.customProps,offsetKey:zt,block:T})):l.createElement(s,{block:T,children:Fe,contentState:Z,customStyleFn:xe,customStyleMap:ge,decorator:re,direction:le,forceSelection:ve,hasSelection:H(pe,qe),selection:pe,tree:Le});if(T.getParentKey())return ut;var Be=j(T,V),Ve=Be.Element,$t=K(T,te,zt,z,Ce,this.wrapperRef);return l.createElement(Ve,$t,ut)},U}(l.Component);return I0=M,I0}var O0,Z5;function uK(){if(Z5)return O0;Z5=1;var e=Si;function t(){return t=e||function(l){for(var f=1;f<arguments.length;f++){var h=arguments[f];for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&(l[m]=h[m])}return l},t.apply(this,arguments)}function r(l,f){l.prototype=Object.create(f.prototype),l.prototype.constructor=l,l.__proto__=f}var n=sK(),a=Ca,i=D,s=Ir,u=function(l){r(f,l);function f(){return l.apply(this,arguments)||this}var h=f.prototype;return h.shouldComponentUpdate=function(g){var p=this.props.editorState,w=g.editorState,y=p.getDirectionMap(),_=w.getDirectionMap();if(y!==_)return!0;var S=p.getSelection().getHasFocus(),H=w.getSelection().getHasFocus();if(S!==H)return!0;var L=w.getNativelyRenderedContent(),O=p.isInCompositionMode(),j=w.isInCompositionMode();if(p===w||L!==null&&w.getCurrentContent()===L||O&&j)return!1;var R=p.getCurrentContent(),K=w.getCurrentContent(),M=p.getDecorator(),F=w.getDecorator();return O!==j||R!==K||M!==F||w.mustForceSelection()},h.render=function(){for(var g=this.props,p=g.blockRenderMap,w=g.blockRendererFn,y=g.blockStyleFn,_=g.customStyleMap,S=g.customStyleFn,H=g.editorState,L=g.editorKey,O=g.textDirectionality,j=H.getCurrentContent(),R=H.getSelection(),K=H.mustForceSelection(),M=H.getDecorator(),F=s(H.getDirectionMap()),U=j.getBlocksAsArray(),k=U[0],C=[],A=k;A;){var I=A.getKey(),T={blockRenderMap:p,blockRendererFn:w,blockStyleFn:y,contentState:j,customStyleFn:S,customStyleMap:_,decorator:M,editorKey:L,editorState:H,forceSelection:K,selection:R,block:A,direction:O||F.get(I),tree:H.getBlockTree(I)},V=p.get(A.getType())||p.get("unstyled"),P=V.wrapper;C.push({block:i.createElement(n,t({key:I},T)),wrapperTemplate:P,key:I,offsetKey:a.encode(I,0,0)});var z=A.getNextSiblingKey();A=z?j.getBlockForKey(z):null}for(var Z=[],re=0;re<C.length;){var te=C[re];if(te.wrapperTemplate){var oe=[];do oe.push(C[re].block),re++;while(re<C.length&&C[re].wrapperTemplate===te.wrapperTemplate);var xe=i.cloneElement(te.wrapperTemplate,{key:te.key+"-wrap","data-offset-key":te.offsetKey},oe);Z.push(xe)}else Z.push(te.block),re++}return i.createElement("div",{"data-contents":"true"},Z)},f}(i.Component);return O0=u,O0}var lK=Si;function M0(){return M0=lK||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},M0.apply(this,arguments)}function cK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dK(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function fK(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var gK=F5,Y5=Ca,Cd=D,Q5=T0,hK=xd,pK=s0,mK=nd,vK=Ci,bK=z5,wK=_d,yK=W5,xK=ht,_K=fu,CK=Ir,X5=10,J5=function(t,r){return t.getAnchorKey()===r||t.getFocusKey()===r},SK=function(e){dK(t,e);function t(){for(var n,a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return n=e.call.apply(e,[this].concat(i))||this,fK(cK(n),"_node",void 0),n}var r=t.prototype;return r.shouldComponentUpdate=function(a){return this.props.block!==a.block||this.props.tree!==a.tree||this.props.direction!==a.direction||J5(a.selection,a.block.getKey())&&a.forceSelection},r.componentDidMount=function(){if(!this.props.preventScroll){var a=this.props.selection,i=a.getEndKey();if(!(!a.getHasFocus()||i!==this.props.block.getKey())){var s=this._node;if(s!=null){var u=hK.getScrollParent(s),l=wK(u),f;if(u===window){var h=bK(s),m=h.y+h.height,g=yK().height;f=m-g,f>0&&window.scrollTo(l.x,l.y+f+X5)}else{_K(s)||xK(!1);var p=s.offsetHeight+s.offsetTop,w=u.offsetTop+u.offsetHeight,y=w+l.y;f=p-y,f>0&&Q5.setTop(u,Q5.getTop(u)+f+X5)}}}}},r._renderChildren=function(){var a=this,i=this.props.block,s=i.getKey(),u=i.getText(),l=this.props.tree.size-1,f=J5(this.props.selection,s);return this.props.tree.map(function(h,m){var g=h.get("leaves");if(g.size===0)return null;var p=g.size-1,w=g.map(function(U,k){var C=Y5.encode(s,m,k),A=U.get("start"),I=U.get("end");return Cd.createElement(gK,{key:C,offsetKey:C,block:i,start:A,selection:f?a.props.selection:null,forceSelection:a.props.forceSelection,text:u.slice(A,I),styleSet:i.getInlineStyleAt(A),customStyleMap:a.props.customStyleMap,customStyleFn:a.props.customStyleFn,isLast:m===l&&k===p})}).toArray(),y=h.get("decoratorKey");if(y==null||!a.props.decorator)return w;var _=CK(a.props.decorator),S=_.getComponentForKey(y);if(!S)return w;var H=_.getPropsForKey(y),L=Y5.encode(s,m,0),O=g.first().get("start"),j=g.last().get("end"),R=u.slice(O,j),K=i.getEntityAt(h.get("start")),M=mK.getHTMLDirIfDifferent(pK.getDirection(R),a.props.direction),F={contentState:a.props.contentState,decoratedText:R,dir:M,start:O,end:j,blockKey:s,entityKey:K,offsetKey:L};return Cd.createElement(S,M0({},H,F,{key:L}),w)}).toArray()},r.render=function(){var a=this,i=this.props,s=i.direction,u=i.offsetKey,l=vK({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":s==="LTR","public/DraftStyleDefault/rtl":s==="RTL"});return Cd.createElement("div",{"data-offset-key":u,className:l,ref:function(h){return a._node=h}},this._renderChildren())},t}(Cd.Component),e4=SK,L0,t4;function EK(){if(t4)return L0;t4=1;function e(t){var r=t||"",n=arguments.length;if(n>1)for(var a=1;a<n;a++){var i=arguments[a];i&&(r=(r?r+" ":"")+i)}return r}return L0=e,L0}var V0,r4;function AK(){if(r4)return V0;r4=1;var e=Si;function t(){return t=e||function(p){for(var w=1;w<arguments.length;w++){var y=arguments[w];for(var _ in y)Object.prototype.hasOwnProperty.call(y,_)&&(p[_]=y[_])}return p},t.apply(this,arguments)}function r(p){for(var w=1;w<arguments.length;w++){var y=arguments[w]!=null?arguments[w]:{},_=Object.keys(y);typeof Object.getOwnPropertySymbols=="function"&&(_=_.concat(Object.getOwnPropertySymbols(y).filter(function(S){return Object.getOwnPropertyDescriptor(y,S).enumerable}))),_.forEach(function(S){n(p,S,y[S])})}return p}function n(p,w,y){return w in p?Object.defineProperty(p,w,{value:y,enumerable:!0,configurable:!0,writable:!0}):p[w]=y,p}function a(p,w){p.prototype=Object.create(w.prototype),p.prototype.constructor=p,p.__proto__=w}var i=e4,s=Ca,u=D,l=Ci,f=EK(),h=Ir,m=function(w,y,_,S){return l({"public/DraftStyleDefault/unorderedListItem":w==="unordered-list-item","public/DraftStyleDefault/orderedListItem":w==="ordered-list-item","public/DraftStyleDefault/reset":_,"public/DraftStyleDefault/depth0":y===0,"public/DraftStyleDefault/depth1":y===1,"public/DraftStyleDefault/depth2":y===2,"public/DraftStyleDefault/depth3":y===3,"public/DraftStyleDefault/depth4":y>=4,"public/DraftStyleDefault/listLTR":S==="LTR","public/DraftStyleDefault/listRTL":S==="RTL"})},g=function(p){a(w,p);function w(){return p.apply(this,arguments)||this}var y=w.prototype;return y.shouldComponentUpdate=function(S){var H=this.props.editorState,L=S.editorState,O=H.getDirectionMap(),j=L.getDirectionMap();if(O!==j)return!0;var R=H.getSelection().getHasFocus(),K=L.getSelection().getHasFocus();if(R!==K)return!0;var M=L.getNativelyRenderedContent(),F=H.isInCompositionMode(),U=L.isInCompositionMode();if(H===L||M!==null&&L.getCurrentContent()===M||F&&U)return!1;var k=H.getCurrentContent(),C=L.getCurrentContent(),A=H.getDecorator(),I=L.getDecorator();return F!==U||k!==C||A!==I||L.mustForceSelection()},y.render=function(){for(var S=this.props,H=S.blockRenderMap,L=S.blockRendererFn,O=S.blockStyleFn,j=S.customStyleMap,R=S.customStyleFn,K=S.editorState,M=S.editorKey,F=S.preventScroll,U=S.textDirectionality,k=K.getCurrentContent(),C=K.getSelection(),A=K.mustForceSelection(),I=K.getDecorator(),T=h(K.getDirectionMap()),V=k.getBlocksAsArray(),P=[],z=null,Z=null,re=0;re<V.length;re++){var te=V[re],oe=te.getKey(),xe=te.getType(),ge=L(te),le=void 0,ve=void 0,pe=void 0;ge&&(le=ge.component,ve=ge.props,pe=ge.editable);var Le=U||T.get(oe),Fe=s.encode(oe,0,0),qe={contentState:k,block:te,blockProps:ve,blockStyleFn:O,customStyleMap:j,customStyleFn:R,decorator:I,direction:Le,forceSelection:A,offsetKey:Fe,preventScroll:F,selection:C,tree:K.getBlockTree(oe)},zt=H.get(xe)||H.get("unstyled"),Ce=zt.wrapper,Ke=zt.element||H.get("unstyled").element,ut=te.getDepth(),Be="";if(O&&(Be=O(te)),Ke==="li"){var Ve=Z!==Ce||z===null||ut>z;Be=f(Be,m(xe,ut,Ve,Le))}var $t=le||i,bt={className:Be,"data-block":!0,"data-editor":M,"data-offset-key":Fe,key:oe};pe!==void 0&&(bt=r({},bt,{contentEditable:pe,suppressContentEditableWarning:!0}));var Qt=u.createElement(Ke,bt,u.createElement($t,t({},qe,{key:oe})));P.push({block:Qt,wrapperTemplate:Ce,key:oe,offsetKey:Fe}),Ce?z=te.getDepth():z=null,Z=Ce}for(var wr=[],jt=0;jt<P.length;){var Dt=P[jt];if(Dt.wrapperTemplate){var Mr=[];do Mr.push(P[jt].block),jt++;while(jt<P.length&&P[jt].wrapperTemplate===Dt.wrapperTemplate);var Lr=u.cloneElement(Dt.wrapperTemplate,{key:Dt.key+"-wrap","data-offset-key":Dt.offsetKey},Mr);wr.push(Lr)}else wr.push(Dt.block),jt++}return u.createElement("div",{"data-contents":"true"},wr)},w}(u.Component);return V0=g,V0}var DK=Wa,kK=DK("draft_tree_data_support"),NK=kK?uK():AK(),n4={isImage:function(t){return a4(t)[0]==="image"},isJpeg:function(t){var r=a4(t);return n4.isImage(t)&&(r[1]==="jpeg"||r[1]==="pjpeg")}};function a4(e){return e.split("/")}var TK=n4,Sd=ht;function HK(e){var t=e.length;if(!Array.isArray(e)&&(typeof e=="object"||typeof e=="function")||Sd(!1),typeof t!="number"&&Sd(!1),t===0||t-1 in e||Sd(!1),typeof e.callee=="function"&&Sd(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch{}for(var r=Array(t),n=0;n<t;n++)r[n]=e[n];return r}function IK(e){return!!e&&(typeof e=="object"||typeof e=="function")&&"length"in e&&!("setInterval"in e)&&typeof e.nodeType!="number"&&(Array.isArray(e)||"callee"in e||"item"in e)}function OK(e){return IK(e)?Array.isArray(e)?e.slice():HK(e):[e]}var MK=OK;function Ed(e){return function(){return e}}var Di=function(){};Di.thatReturns=Ed,Di.thatReturnsFalse=Ed(!1),Di.thatReturnsTrue=Ed(!0),Di.thatReturnsNull=Ed(null),Di.thatReturnsThis=function(){return this},Di.thatReturnsArgument=function(e){return e};var LK=Di,VK=TK,PK=MK,FK=LK,BK=new RegExp(`\r
`,"g"),RK=`
`,UK={"text/rtf":1,"text/html":1};function KK(e){if(e.kind=="file")return e.getAsFile()}var zK=function(){function e(r){this.data=r,this.types=r.types?PK(r.types):[]}var t=e.prototype;return t.isRichText=function(){return this.getHTML()&&this.getText()?!0:this.isImage()?!1:this.types.some(function(n){return UK[n]})},t.getText=function(){var n;return this.data.getData&&(this.types.length?this.types.indexOf("text/plain")!=-1&&(n=this.data.getData("text/plain")):n=this.data.getData("Text")),n?n.replace(BK,RK):null},t.getHTML=function(){if(this.data.getData)if(this.types.length){if(this.types.indexOf("text/html")!=-1)return this.data.getData("text/html")}else return this.data.getData("Text")},t.isLink=function(){return this.types.some(function(n){return n.indexOf("Url")!=-1||n.indexOf("text/uri-list")!=-1||n.indexOf("text/x-moz-url")})},t.getLink=function(){if(this.data.getData){if(this.types.indexOf("text/x-moz-url")!=-1){var n=this.data.getData("text/x-moz-url").split(`
`);return n[0]}return this.types.indexOf("text/uri-list")!=-1?this.data.getData("text/uri-list"):this.data.getData("url")}return null},t.isImage=function(){var n=this.types.some(function(u){return u.indexOf("application/x-moz-file")!=-1});if(n)return!0;for(var a=this.getFiles(),i=0;i<a.length;i++){var s=a[i].type;if(!VK.isImage(s))return!1}return!0},t.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},t.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(KK).filter(FK.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}(),i4=zK,$K=ht,o4=/\.textClipping$/,jK={"text/plain":!0,"text/html":!0,"text/rtf":!0},qK=5e3;function WK(e,t){var r=0,n=[];e.forEach(function(a){GK(a,function(i){r++,i&&n.push(i.slice(0,qK)),r==e.length&&t(n.join("\r"))})})}function GK(e,t){if(!Ee.FileReader||e.type&&!(e.type in jK)){t("");return}if(e.type===""){var r="";o4.test(e.name)&&(r=e.name.replace(o4,"")),t(r);return}var n=new FileReader;n.onload=function(){var a=n.result;typeof a!="string"&&$K(!1),t(a)},n.onerror=function(){t("")},n.readAsText(e)}var s4=WK;function ZK(e){return e==="handled"||e===!0}var Ad=ZK,YK=i4,u4=Hr,l4=At,QK=dd,XK=cd,JK=s4,ez=p5,tz=u5,c4=Ad,P0=Ir;function rz(e,t){var r=null,n=null,a=XK(e.currentTarget);if(typeof a.caretRangeFromPoint=="function"){var i=a.caretRangeFromPoint(e.x,e.y);r=i.startContainer,n=i.startOffset}else if(e.rangeParent)r=e.rangeParent,n=e.rangeOffset;else return null;r=P0(r),n=P0(n);var s=P0(QK(r));return ez(t,s,n,s,n)}var nz={onDragEnd:function(t){t.exitCurrentMode(),d4(t)},onDrop:function(t,r){var n=new YK(r.nativeEvent.dataTransfer),a=t._latestEditorState,i=rz(r.nativeEvent,a);if(r.preventDefault(),t._dragCount=0,t.exitCurrentMode(),i!=null){var s=n.getFiles();if(s.length>0){if(t.props.handleDroppedFiles&&c4(t.props.handleDroppedFiles(i,s)))return;JK(s,function(l){l&&t.update(f4(a,i,l))});return}var u=t._internalDrag?"internal":"external";t.props.handleDrop&&c4(t.props.handleDrop(i,n,u))||(t._internalDrag?t.update(az(a,i)):t.update(f4(a,i,n.getText()))),d4(t)}}};function d4(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var r=new MouseEvent("mouseup",{view:tz(t),bubbles:!0,cancelable:!0});t.dispatchEvent(r)}}function az(e,t){var r=u4.moveText(e.getCurrentContent(),e.getSelection(),t);return l4.push(e,r,"insert-fragment")}function f4(e,t,r){var n=u4.insertText(e.getCurrentContent(),t,r,e.getCurrentInlineStyle());return l4.push(e,n,"insert-fragment")}var iz=nz;function oz(e){var t=e.getSelection(),r=t.getAnchorKey(),n=e.getBlockTree(r),a=t.getStartOffset(),i=!1;return n.some(function(s){return a===s.get("start")?(i=!0,!0):a<s.get("end")?s.get("leaves").some(function(u){var l=u.get("start");return a===l?(i=!0,!0):!1}):!1}),i}var sz=oz;(function(e,t){if(e.setImmediate)return;var r=1,n={},a=!1,i=e.document,s;function u(H){typeof H!="function"&&(H=new Function(""+H));for(var L=new Array(arguments.length-1),O=0;O<L.length;O++)L[O]=arguments[O+1];var j={callback:H,args:L};return n[r]=j,s(r),r++}function l(H){delete n[H]}function f(H){var L=H.callback,O=H.args;switch(O.length){case 0:L();break;case 1:L(O[0]);break;case 2:L(O[0],O[1]);break;case 3:L(O[0],O[1],O[2]);break;default:L.apply(t,O);break}}function h(H){if(a)setTimeout(h,0,H);else{var L=n[H];if(L){a=!0;try{f(L)}finally{l(H),a=!1}}}}function m(){s=function(H){process.nextTick(function(){h(H)})}}function g(){if(e.postMessage&&!e.importScripts){var H=!0,L=e.onmessage;return e.onmessage=function(){H=!1},e.postMessage("","*"),e.onmessage=L,H}}function p(){var H="setImmediate$"+Math.random()+"$",L=function(O){O.source===e&&typeof O.data=="string"&&O.data.indexOf(H)===0&&h(+O.data.slice(H.length))};e.addEventListener?e.addEventListener("message",L,!1):e.attachEvent("onmessage",L),s=function(O){e.postMessage(H+O,"*")}}function w(){var H=new MessageChannel;H.port1.onmessage=function(L){var O=L.data;h(O)},s=function(L){H.port2.postMessage(L)}}function y(){var H=i.documentElement;s=function(L){var O=i.createElement("script");O.onreadystatechange=function(){h(L),O.onreadystatechange=null,H.removeChild(O),O=null},H.appendChild(O)}}function _(){s=function(H){setTimeout(h,0,H)}}var S=Object.getPrototypeOf&&Object.getPrototypeOf(e);S=S&&S.setTimeout?S:e,{}.toString.call(e.process)==="[object process]"?m():g()?p():e.MessageChannel?w():i&&"onreadystatechange"in i.createElement("script")?y():_(),S.setImmediate=u,S.clearImmediate=l})(typeof self>"u"?Ee:self);var uz=Ee.setImmediate,lz=Hr,F0=At,cz=Or,g4=b0,dz=Ad,fz=sz,h4=Ir,gz=uz,hz="'",pz="/",mz=cz.isBrowser("Firefox");function vz(e){return mz&&(e==hz||e==pz)}function p4(e,t,r,n,a){var i=lz.replaceText(e.getCurrentContent(),e.getSelection(),t,r,n);return F0.push(e,i,"insert-characters",a)}function bz(e,t){e._pendingStateFromBeforeInput!==void 0&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var r=e._latestEditorState,n=t.data;if(n){if(e.props.handleBeforeInput&&dz(e.props.handleBeforeInput(n,r,t.timeStamp))){t.preventDefault();return}var a=r.getSelection(),i=a.getStartOffset(),s=a.getAnchorKey();if(!a.isCollapsed()){t.preventDefault(),e.update(p4(r,n,r.getCurrentInlineStyle(),g4(r.getCurrentContent(),r.getSelection()),!0));return}var u=p4(r,n,r.getCurrentInlineStyle(),g4(r.getCurrentContent(),r.getSelection()),!1),l=!1;if(l||(l=fz(e._latestCommittedEditorState)),!l){var f=r.getBlockTree(s),h=u.getBlockTree(s);l=f.size!==h.size||f.zip(h).some(function(m){var g=m[0],p=m[1],w=g.get("start"),y=w+(w>=i?n.length:0),_=g.get("end"),S=_+(_>=i?n.length:0),H=p.get("start"),L=p.get("end"),O=p.get("decoratorKey");return g.get("decoratorKey")!==O||g.get("leaves").size!==p.get("leaves").size||y!==H||S!==L||O!=null&&L-H!==_-w})}if(l||(l=vz(n)),l||(l=h4(u.getDirectionMap()).get(s)!==h4(r.getDirectionMap()).get(s)),l){t.preventDefault(),u=F0.set(u,{forceSelection:!0}),e.update(u);return}u=F0.set(u,{nativelyRenderedContent:u.getCurrentContent()}),e._pendingStateFromBeforeInput=u,gz(function(){e._pendingStateFromBeforeInput!==void 0&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)})}}var wz=bz,yz=At,m4=S0,xz=I5;function _z(e,t){var r=t.currentTarget.ownerDocument;if(!e.props.preserveSelectionOnBlur&&xz(r)===r.body){var n=r.defaultView.getSelection(),a=e.editor;n.rangeCount===1&&m4(a,n.anchorNode)&&m4(a,n.focusNode)&&n.removeAllRanges()}var i=e._latestEditorState,s=i.getSelection();if(s.getHasFocus()){var u=s.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(yz.acceptSelection(i,u))}}var Cz=_z,Sz=At;function Ez(e,t){e.setMode("composite"),e.update(Sz.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)}var Az=Ez,Dz=qc;function kz(e){var t=e.getSelection();return t.isCollapsed()?null:Dz(e.getCurrentContent(),t)}var v4=kz,Nz=v4;function Tz(e,t){var r=e._latestEditorState,n=r.getSelection();if(n.isCollapsed()){t.preventDefault();return}e.setClipboard(Nz(e._latestEditorState))}var Hz=Tz;function Iz(e){if(!e||!("ownerDocument"in e))return!1;if("ownerDocument"in e){var t=e;if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1}var Oz=Iz,Mz=Hr,Lz=At,Vz=xd,Pz=v4,Fz=_d,Bz=Oz;function Rz(e,t){var r=e._latestEditorState,n=r.getSelection(),a=t.target,i;if(n.isCollapsed()){t.preventDefault();return}if(Bz(a)){var s=a;i=Fz(Vz.getScrollParent(s))}var u=Pz(r);e.setClipboard(u),e.setMode("cut"),setTimeout(function(){e.restoreEditorDOM(i),e.exitCurrentMode(),e.update(Uz(r))},0)}function Uz(e){var t=Mz.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return Lz.push(e,t,"remove-range")}var Kz=Rz;function zz(e,t){e.setMode("drag"),t.preventDefault()}var $z=zz;function jz(e){e._internalDrag=!0,e.setMode("drag")}var qz=jz,b4=At,Wz=Or;function Gz(e,t){var r=e._latestEditorState,n=r.getSelection();if(!n.getHasFocus()){var a=n.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),Wz.isBrowser("Chrome < 60.0.3081.0")?e.update(b4.forceSelection(r,a)):e.update(b4.acceptSelection(r,a))}}var Zz=Gz,Yz=ht,w4=55296,Qz=56319,Xz=56320,y4=57343,Jz=/[\uD800-\uDFFF]/;function x4(e){return w4<=e&&e<=y4}function e$(e,t){if(0<=t&&t<e.length||Yz(!1),t+1===e.length)return!1;var r=e.charCodeAt(t),n=e.charCodeAt(t+1);return w4<=r&&r<=Qz&&Xz<=n&&n<=y4}function B0(e){return Jz.test(e)}function Do(e,t){return 1+x4(e.charCodeAt(t))}function t$(e){if(!B0(e))return e.length;for(var t=0,r=0;r<e.length;r+=Do(e,r))t++;return t}function _4(e,t,r){if(t=t||0,r=r===void 0?1/0:r||0,!B0(e))return e.substr(t,r);var n=e.length;if(n<=0||t>n||r<=0)return"";var a=0;if(t>0){for(;t>0&&a<n;t--)a+=Do(e,a);if(a>=n)return""}else if(t<0){for(a=n;t<0&&0<a;t++)a-=Do(e,a-1);a<0&&(a=0)}var i=n;if(r<n)for(i=a;r>0&&i<n;r--)i+=Do(e,i);return e.substring(a,i)}function r$(e,t,r){t=t||0,r=r===void 0?1/0:r||0,t<0&&(t=0),r<0&&(r=0);var n=Math.abs(r-t);return t=t<r?t:r,_4(e,t,n)}function n$(e){for(var t=[],r=0;r<e.length;r+=Do(e,r))t.push(e.codePointAt(r));return t}var a$={getCodePoints:n$,getUTF16Length:Do,hasSurrogateUnit:B0,isCodeUnitInSurrogateRange:x4,isSurrogatePair:e$,strlen:t$,substring:r$,substr:_4},ki=a$;function i$(e,t){var r=e.getSelection(),n=e.getCurrentContent(),a=r.getStartKey(),i=r.getStartOffset(),s=a,u=0;if(t>i){var l=n.getKeyBefore(a);if(l==null)s=a;else{s=l;var f=n.getBlockForKey(l);u=f.getText().length}}else u=i-t;return r.merge({focusKey:s,focusOffset:u,isBackward:!0})}var R0=i$,o$=Hr,s$=Wa,C4=s$("draft_tree_data_support");function u$(e,t,r){var n=e.getSelection(),a=e.getCurrentContent(),i=n,s=n.getAnchorKey(),u=n.getFocusKey(),l=a.getBlockForKey(s);if(C4&&r==="forward"&&s!==u)return a;if(n.isCollapsed()){if(r==="forward"){if(e.isSelectionAtEndOfContent())return a;if(C4){var f=n.getAnchorOffset()===a.getBlockForKey(s).getLength();if(f){var h=a.getBlockForKey(l.nextSibling);if(!h||h.getLength()===0)return a}}}else if(e.isSelectionAtStartOfContent())return a;if(i=t(e),i===n)return a}return o$.removeRange(a,i,r)}var bu=u$,l$=At,c$=ki,d$=R0,f$=bu;function g$(e){var t=f$(e,function(n){var a=n.getSelection(),i=n.getCurrentContent(),s=a.getAnchorKey(),u=a.getAnchorOffset(),l=i.getBlockForKey(s).getText()[u-1];return d$(n,l?c$.getUTF16Length(l,0):1)},"backward");if(t===e.getCurrentContent())return e;var r=e.getSelection();return l$.push(e,t.set("selectionBefore",r),r.isCollapsed()?"backspace-character":"remove-range")}var S4=g$,h$=Hr,p$=Ca,m$=At,v$=Or,b$=_5,w$=b$.notEmptyKey,y$=dd,x$=S4,_$=Ir,C$=v$.isEngine("Gecko"),S$=`

`;function E$(e,t){switch(e){case"deleteContentBackward":return x$(t)}return t}function A$(e,t){e._pendingStateFromBeforeInput!==void 0&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var r=e.editor,n=r.ownerDocument.defaultView.getSelection(),a=n.anchorNode,i=n.isCollapsed,s=a?.nodeType!==Node.TEXT_NODE&&a?.nodeType!==Node.ELEMENT_NODE;if(!(a==null||s)){if(a.nodeType===Node.TEXT_NODE&&(a.previousSibling!==null||a.nextSibling!==null)){var u=a.parentNode;if(u==null)return;a.nodeValue=u.textContent;for(var l=u.firstChild;l!=null;l=l.nextSibling)l!==a&&u.removeChild(l)}var f=a.textContent,h=e._latestEditorState,m=_$(y$(a)),g=p$.decode(m),p=g.blockKey,w=g.decoratorKey,y=g.leafKey,_=h.getBlockTree(p).getIn([w,"leaves",y]),S=_.start,H=_.end,L=h.getCurrentContent(),O=L.getBlockForKey(p),j=O.getText().slice(S,H);if(f.endsWith(S$)&&(f=f.slice(0,-1)),f===j){var R=t.nativeEvent.inputType;if(R){var K=E$(R,h);if(K!==h){e.restoreEditorDOM(),e.update(K);return}}return}var M=h.getSelection(),F=M.merge({anchorOffset:S,focusOffset:H,isBackward:!1}),U=O.getEntityAt(S),k=w$(U)?L.getEntity(U):null,C=k!=null?k.getMutability():null,A=C==="MUTABLE",I=A?"spellcheck-change":"apply-entity",T=h$.replaceText(L,F,f,O.getInlineStyleAt(S),A?O.getEntityAt(S):null),V,P,z,Z;if(C$)V=n.anchorOffset,P=n.focusOffset,z=S+Math.min(V,P),Z=z+Math.abs(V-P),V=z,P=Z;else{var re=f.length-j.length;z=M.getStartOffset(),Z=M.getEndOffset(),V=i?Z+re:z,P=Z+re}var te=T.merge({selectionBefore:L.getSelectionAfter(),selectionAfter:M.merge({anchorOffset:V,focusOffset:P})});e.update(m$.push(h,te,I))}}var D$=A$,k$=hd;function N$(e){return e.which===k$.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))}var T$=N$,H$=Or,I$=T$,U0=H$.isPlatform("Mac OS X"),E4={isCtrlKeyCommand:function(t){return!!t.ctrlKey&&!t.altKey},isOptionKeyCommand:function(t){return U0&&t.altKey},usesMacOSHeuristics:function(){return U0},hasCommandModifier:function(t){return U0?!!t.metaKey&&!t.altKey:E4.isCtrlKeyCommand(t)},isSoftNewlineEvent:I$},K0=E4,A4=Hr,D4=At,O$=qc,M$=Ir,z0=null,L$={cut:function(t){var r=t.getCurrentContent(),n=t.getSelection(),a=null;if(n.isCollapsed()){var i=n.getAnchorKey(),s=r.getBlockForKey(i).getLength();if(s===n.getAnchorOffset()){var u=r.getKeyAfter(i);if(u==null)return t;a=n.set("focusKey",u).set("focusOffset",0)}else a=n.set("focusOffset",s)}else a=n;a=M$(a),z0=O$(r,a);var l=A4.removeRange(r,a,"forward");return l===r?t:D4.push(t,l,"remove-range")},paste:function(t){if(!z0)return t;var r=A4.replaceWithFragment(t.getCurrentContent(),t.getSelection(),z0);return D4.push(t,r,"insert-fragment")}},V$=L$,P$=Or,F$=ht,B$=P$.isBrowser("Chrome");function R$(e){for(var t=e.cloneRange(),r=[],n=e.endContainer;n!=null;n=n.parentNode){var a=n===e.commonAncestorContainer;a?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var i=Array.from(t.getClientRects());if(r.push(i),a){var s;return r.reverse(),(s=[]).concat.apply(s,r)}t.setEndBefore(n)}F$(!1)}var U$=B$?R$:function(e){return Array.from(e.getClientRects())},k4=U$,K$=ki,z$=cd,N4=k4,$0=ht;function $$(e){var t=getComputedStyle(e),r=z$(e),n=r.createElement("div");n.style.fontFamily=t.fontFamily,n.style.fontSize=t.fontSize,n.style.fontStyle=t.fontStyle,n.style.fontWeight=t.fontWeight,n.style.lineHeight=t.lineHeight,n.style.position="absolute",n.textContent="M";var a=r.body;a||$0(!1),a.appendChild(n);var i=n.getBoundingClientRect();return a.removeChild(n),i.height}function T4(e,t){for(var r=1/0,n=1/0,a=-1/0,i=-1/0,s=0;s<e.length;s++){var u=e[s];u.width===0||u.width===1||(r=Math.min(r,u.top),n=Math.min(n,u.bottom),a=Math.max(a,u.top),i=Math.max(i,u.bottom))}return a<=n&&a-r<t&&i-n<t}function j$(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}function q$(e){e.collapsed||$0(!1),e=e.cloneRange();var t=e.startContainer;t.nodeType!==1&&(t=t.parentNode);var r=$$(t),n=e.endContainer,a=e.endOffset;for(e.setStart(e.startContainer,0);T4(N4(e),r)&&(n=e.startContainer,a=e.startOffset,n.parentNode||$0(!1),e.setStartBefore(n),!(n.nodeType===1&&getComputedStyle(n).display!=="inline")););var i=n,s=a-1;do{for(var u=i.nodeValue,l=s;l>=0;l--)if(!(u!=null&&l>0&&K$.isSurrogatePair(u,l-1)))if(e.setStart(i,l),T4(N4(e),r))n=i,a=l;else break;if(l===-1||i.childNodes.length===0)break;i=i.childNodes[l],s=j$(i)}while(!0);return e.setStart(n,a),e}var W$=q$,G$=At,Z$=W$,Y$=b5,Q$=R0,X$=bu;function J$(e,t){var r=X$(e,function(n){var a=n.getSelection();if(a.isCollapsed()&&a.getAnchorOffset()===0)return Q$(n,1);var i=t.currentTarget.ownerDocument,s=i.defaultView.getSelection(),u=s.getRangeAt(0);return u=Z$(u),Y$(n,null,u.endContainer,u.endOffset,u.startContainer,u.startOffset).selectionState},"backward");return r===e.getCurrentContent()?e:G$.push(e,r,"remove-range")}var ej=J$,tj=`[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]`,rj={getPunctuation:function(){return tj}},nj=rj,aj=nj.getPunctuation(),H4="['‘’]",ko="\\s|(?![_])"+aj,ij="^(?:"+ko+")*(?:"+H4+"|(?!"+ko+").)*(?:(?!"+ko+").)",oj=new RegExp(ij),sj="(?:(?!"+ko+").)(?:"+H4+"|(?!"+ko+").)*(?:"+ko+")*$",uj=new RegExp(sj);function I4(e,t){var r=t?uj.exec(e):oj.exec(e);return r?r[0]:e}var lj={getBackward:function(t){return I4(t,!0)},getForward:function(t){return I4(t,!1)}},O4=lj,cj=O4,dj=At,M4=R0,fj=bu;function gj(e){var t=fj(e,function(r){var n=r.getSelection(),a=n.getStartOffset();if(a===0)return M4(r,1);var i=n.getStartKey(),s=r.getCurrentContent(),u=s.getBlockForKey(i).getText().slice(0,a),l=cj.getBackward(u);return M4(r,l.length||1)},"backward");return t===e.getCurrentContent()?e:dj.push(e,t,"remove-range")}var hj=gj;function pj(e,t){var r=e.getSelection(),n=r.getStartKey(),a=r.getStartOffset(),i=e.getCurrentContent(),s=n,u,l=i.getBlockForKey(n);return t>l.getText().length-a?(s=i.getKeyAfter(n),u=0):u=a+t,r.merge({focusKey:s,focusOffset:u})}var L4=pj,mj=O4,vj=At,bj=L4,wj=bu;function yj(e){var t=wj(e,function(r){var n=r.getSelection(),a=n.getStartOffset(),i=n.getStartKey(),s=r.getCurrentContent(),u=s.getBlockForKey(i).getText().slice(a),l=mj.getForward(u);return bj(r,l.length||1)},"forward");return t===e.getCurrentContent()?e:vj.push(e,t,"remove-range")}var xj=yj,_j=Hr,Cj=At;function Sj(e){var t=_j.splitBlock(e.getCurrentContent(),e.getSelection());return Cj.push(e,t,"split-block")}var Ej=Sj,Aj=At;function Dj(e){var t=e.getSelection(),r=t.getEndKey(),n=e.getCurrentContent(),a=n.getBlockForKey(r).getLength();return Aj.set(e,{selection:t.merge({anchorKey:r,anchorOffset:a,focusKey:r,focusOffset:a,isBackward:!1}),forceSelection:!0})}var kj=Dj,Nj=At;function Tj(e){var t=e.getSelection(),r=t.getStartKey();return Nj.set(e,{selection:t.merge({anchorKey:r,anchorOffset:0,focusKey:r,focusOffset:0,isBackward:!1}),forceSelection:!0})}var Hj=Tj,Ij=At,Oj=ki,Mj=L4,Lj=bu;function Vj(e){var t=Lj(e,function(n){var a=n.getSelection(),i=n.getCurrentContent(),s=a.getAnchorKey(),u=a.getAnchorOffset(),l=i.getBlockForKey(s).getText()[u];return Mj(n,l?Oj.getUTF16Length(l,0):1)},"forward");if(t===e.getCurrentContent())return e;var r=e.getSelection();return Ij.push(e,t.set("selectionBefore",r),r.isCollapsed()?"delete-character":"remove-range")}var Pj=Vj,V4=Hr,P4=At,Fj=qc;function Bj(e){var t=e.getSelection();if(!t.isCollapsed())return e;var r=t.getAnchorOffset();if(r===0)return e;var n=t.getAnchorKey(),a=e.getCurrentContent(),i=a.getBlockForKey(n),s=i.getLength();if(s<=1)return e;var u,l;r===s?(u=t.set("anchorOffset",r-1),l=t):(u=t.set("focusOffset",r+1),l=u.set("anchorOffset",r+1));var f=Fj(a,u),h=V4.removeRange(a,u,"backward"),m=h.getSelectionAfter(),g=m.getAnchorOffset()-1,p=m.merge({anchorOffset:g,focusOffset:g}),w=V4.replaceWithFragment(h,p,f),y=P4.push(e,w,"insert-fragment");return P4.acceptSelection(y,l)}var Rj=Bj,j0=At;function Uj(e,t,r){var n=j0.undo(t);if(t.getLastChangeType()==="spellcheck-change"){var a=n.getCurrentContent();r(j0.set(n,{nativelyRenderedContent:a}));return}if(e.preventDefault(),!t.getNativelyRenderedContent()){r(n);return}r(j0.set(t,{nativelyRenderedContent:null})),setTimeout(function(){r(n)},0)}var Kj=Uj,zj=Hr,F4=At,$j=K0,Sa=hd,B4=V$,jj=Or,R4=Ad,qj=ej,Wj=hj,Gj=xj,Zj=Ej,Yj=kj,Qj=Hj,Xj=S4,Jj=Pj,eq=Rj,tq=Kj,U4=$j.isOptionKeyCommand,K4=jj.isBrowser("Chrome");function rq(e,t,r){switch(e){case"redo":return F4.redo(t);case"delete":return Jj(t);case"delete-word":return Gj(t);case"backspace":return Xj(t);case"backspace-word":return Wj(t);case"backspace-to-start-of-line":return qj(t,r);case"split-block":return Zj(t);case"transpose-characters":return eq(t);case"move-selection-to-start-of-block":return Qj(t);case"move-selection-to-end-of-block":return Yj(t);case"secondary-cut":return B4.cut(t);case"secondary-paste":return B4.paste(t);default:return t}}function nq(e,t){var r=t.which,n=e._latestEditorState;function a(l){var f=e.props[l];return f?(f(t),!0):!1}switch(r){case Sa.RETURN:if(t.preventDefault(),e.props.handleReturn&&R4(e.props.handleReturn(t,n)))return;break;case Sa.ESC:if(t.preventDefault(),a("onEscape"))return;break;case Sa.TAB:if(a("onTab"))return;break;case Sa.UP:if(a("onUpArrow"))return;break;case Sa.RIGHT:if(a("onRightArrow"))return;break;case Sa.DOWN:if(a("onDownArrow"))return;break;case Sa.LEFT:if(a("onLeftArrow"))return;break;case Sa.SPACE:K4&&U4(t)&&t.preventDefault()}var i=e.props.keyBindingFn(t);if(i==null||i===""){if(r===Sa.SPACE&&K4&&U4(t)){var s=zj.replaceText(n.getCurrentContent(),n.getSelection()," ");e.update(F4.push(n,s,"insert-characters"))}return}if(i==="undo"){tq(t,n,e.update);return}if(t.preventDefault(),!(e.props.handleKeyCommand&&R4(e.props.handleKeyCommand(i,n,t.timeStamp)))){var u=rq(i,n,t);u!==n&&e.update(u)}}var aq=nq;function iq(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var oq=function(){function e(r){iq(this,"_uri",void 0),this._uri=r}var t=e.prototype;return t.toString=function(){return this._uri},e}(),sq=oq,uq=Or,lq=ht,cq=uq.isBrowser("IE <= 9");function dq(e){var t,r=null;return!cq&&document.implementation&&document.implementation.createHTMLDocument&&(t=document.implementation.createHTMLDocument("foo"),t.documentElement||lq(!1),t.documentElement.innerHTML=e,r=t.getElementsByTagName("body")[0]),r}var z4=dq,fq=Ei;function gq(e){return!e||!e.ownerDocument?!1:fq(e)&&e.nodeName==="A"}var hq=gq,pq=Ei;function mq(e){return!e||!e.ownerDocument?!1:pq(e)&&e.nodeName==="IMG"}var vq=mq,Ni;function q0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),n.forEach(function(a){rr(e,a,r[a])})}return e}function rr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var bq=gn,wq=yi,yq=hn,xq=f0,$4=Yc,j4=sq,wu=Ci,q4=jn,_q=z4,W4=Wa,W0=ft,Ga=W0.List,G4=W0.Map,Cq=W0.OrderedSet,Z4=hq,Sq=k5,G0=fu,Y4=vq,Q4=W4("draft_tree_data_support"),Eq="&nbsp;",X4=" ",Aq=new RegExp("\r","g"),Dq=new RegExp(`
`,"g"),kq=new RegExp(`^
`,"g"),Nq=new RegExp(Eq,"g"),Tq=new RegExp("&#13;?","g"),Hq=new RegExp("&#8203;?","g"),Iq=["bold","bolder","500","600","700","800","900"],Oq=["light","lighter","normal","100","200","300","400"],Mq=["className","href","rel","target","title"],Lq=["alt","className","height","src","width"],J4=(Ni={},rr(Ni,wu("public/DraftStyleDefault/depth0"),0),rr(Ni,wu("public/DraftStyleDefault/depth1"),1),rr(Ni,wu("public/DraftStyleDefault/depth2"),2),rr(Ni,wu("public/DraftStyleDefault/depth3"),3),rr(Ni,wu("public/DraftStyleDefault/depth4"),4),Ni),e6=G4({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),Vq=function(t){var r={};return t.mapKeys(function(n,a){var i=[a.element];a.aliasedElements!==void 0&&i.push.apply(i,a.aliasedElements),i.forEach(function(s){r[s]===void 0?r[s]=n:typeof r[s]=="string"?r[s]=[r[s],n]:r[s].push(n)})}),G4(r)},Pq=function(t){if(G0(t)){var r=t;if(r.style.fontFamily.includes("monospace"))return"CODE"}return null},Fq=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Object.keys(J4).some(function(n){t.classList.contains(n)&&(r=J4[n])}),r},Bq=function(t){if(!Z4(t))return!1;var r=t;if(!r.href||r.protocol!=="http:"&&r.protocol!=="https:"&&r.protocol!=="mailto:"&&r.protocol!=="tel:")return!!(r.href.startsWith("{{")&&r.href.endsWith("}}"));try{var n=new j4(r.href);return!0}catch{return!1}},Rq=function(t){if(!Y4(t))return!1;var r=t;return!!(r.attributes.getNamedItem("src")&&r.attributes.getNamedItem("src").value)},Uq=function(t,r){if(!G0(t))return r;var n=t,a=n.style.fontWeight,i=n.style.fontStyle,s=n.style.textDecoration;return r.withMutations(function(u){Iq.indexOf(a)>=0?u.add("BOLD"):Oq.indexOf(a)>=0&&u.remove("BOLD"),i==="italic"?u.add("ITALIC"):i==="normal"&&u.remove("ITALIC"),s==="underline"&&u.add("UNDERLINE"),s==="line-through"&&u.add("STRIKETHROUGH"),s==="none"&&(u.remove("UNDERLINE"),u.remove("STRIKETHROUGH"))})},Z0=function(t){return t==="ul"||t==="ol"},Kq=function(){function e(r,n){rr(this,"characterList",Ga()),rr(this,"currentBlockType","unstyled"),rr(this,"currentDepth",0),rr(this,"currentEntity",null),rr(this,"currentText",""),rr(this,"wrapper",null),rr(this,"blockConfigs",[]),rr(this,"contentBlocks",[]),rr(this,"entityMap",$4),rr(this,"blockTypeMap",void 0),rr(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=r,this.disambiguate=n}var t=e.prototype;return t.clear=function(){this.characterList=Ga(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=$4,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(n){var a;return this.contentBlocks=[],this.currentDepth=0,(a=this.blockConfigs).push.apply(a,this._toBlockConfigs([n],Cq())),this._trimCurrentText(),this.currentText!==""&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return this.contentBlocks.length===0&&(Q4?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=n.key||q4(),i=q0({key:a,type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:Ga(),prevSibling:null,nextSibling:null,childConfigs:[]},n);return this.characterList=Ga(),this.currentBlockType="unstyled",this.currentText="",i},t._toBlockConfigs=function(n,a){for(var i=[],s=0;s<n.length;s++){var u=n[s],l=u.nodeName.toLowerCase();if(l==="body"||Z0(l)){this._trimCurrentText(),this.currentText!==""&&i.push(this._makeBlockConfig());var f=this.currentDepth,h=this.wrapper;Z0(l)&&(this.wrapper=l,Z0(h)&&this.currentDepth++),i.push.apply(i,this._toBlockConfigs(Array.from(u.childNodes),a)),this.currentDepth=f,this.wrapper=h;continue}var m=this.blockTypeMap.get(l);if(m!==void 0){this._trimCurrentText(),this.currentText!==""&&i.push(this._makeBlockConfig());var g=this.currentDepth,p=this.wrapper;if(this.wrapper=l==="pre"?"pre":this.wrapper,typeof m!="string"&&(m=this.disambiguate(l,this.wrapper)||m[0]||"unstyled"),!Q4&&G0(u)&&(m==="unordered-list-item"||m==="ordered-list-item")){var w=u;this.currentDepth=Fq(w,this.currentDepth)}var y=q4(),_=this._toBlockConfigs(Array.from(u.childNodes),a);this._trimCurrentText(),i.push(this._makeBlockConfig({key:y,childConfigs:_,type:m})),this.currentDepth=g,this.wrapper=p;continue}if(l==="#text"){this._addTextNode(u,a);continue}if(l==="br"){this._addBreakNode(u,a);continue}if(Rq(u)){this._addImgNode(u,a);continue}if(Bq(u)){this._addAnchorNode(u,i,a);continue}var S=a;e6.has(l)&&(S=S.add(e6.get(l))),S=Uq(u,S);var H=Pq(u);H!=null&&(S=S.add(H)),i.push.apply(i,this._toBlockConfigs(Array.from(u.childNodes),S))}return i},t._appendText=function(n,a){var i;this.currentText+=n;var s=bq.create({style:a,entity:this.currentEntity});this.characterList=(i=this.characterList).push.apply(i,Array(n.length).fill(s))},t._trimCurrentText=function(){var n=this.currentText.length,a=n-this.currentText.trimLeft().length,i=this.currentText.trimRight().length,s=this.characterList.findEntry(function(u){return u.getEntity()!==null});a=s!==void 0?Math.min(a,s[0]):a,s=this.characterList.reverse().findEntry(function(u){return u.getEntity()!==null}),i=s!==void 0?Math.max(i,n-s[0]):i,a>i?(this.currentText="",this.characterList=Ga()):(this.currentText=this.currentText.slice(a,i),this.characterList=this.characterList.slice(a,i))},t._addTextNode=function(n,a){var i=n.textContent,s=i.trim();s===""&&this.wrapper!=="pre"&&(i=" "),this.wrapper!=="pre"&&(i=i.replace(kq,""),i=i.replace(Dq,X4)),this._appendText(i,a)},t._addBreakNode=function(n,a){Sq(n)&&this._appendText(`
`,a)},t._addImgNode=function(n,a){if(Y4(n)){var i=n,s={};Lq.forEach(function(u){var l=i.getAttribute(u);l&&(s[u]=l)}),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",s),W4("draftjs_fix_paste_for_img")?i.getAttribute("role")!=="presentation"&&this._appendText("📷",a):this._appendText("📷",a),this.currentEntity=null}},t._addAnchorNode=function(n,a,i){if(Z4(n)){var s=n,u={};Mq.forEach(function(l){var f=s.getAttribute(l);f&&(u[l]=f)}),u.url=new j4(s.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",u||{}),a.push.apply(a,this._toBlockConfigs(Array.from(n.childNodes),i)),this.currentEntity=null}},t._toContentBlocks=function(n){for(var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=n.length-1,s=0;s<=i;s++){var u=n[s];u.parent=a,u.prevSibling=s>0?n[s-1].key:null,u.nextSibling=s<i?n[s+1].key:null,u.children=Ga(u.childConfigs.map(function(l){return l.key})),this.contentBlocks.push(new yq(q0({},u))),this._toContentBlocks(u.childConfigs,u.key)}},t._hoistContainersInBlockConfigs=function(n){var a=this,i=Ga(n).flatMap(function(s){return s.type!=="unstyled"||s.text!==""?[s]:a._hoistContainersInBlockConfigs(s.childConfigs)});return i},t._toFlatContentBlocks=function(n){var a=this,i=this._hoistContainersInBlockConfigs(n);i.forEach(function(s){var u=a._extractTextFromBlockConfigs(s.childConfigs),l=u.text,f=u.characterList;a.contentBlocks.push(new wq(q0({},s,{text:s.text+l,characterList:s.characterList.concat(f)})))})},t._extractTextFromBlockConfigs=function(n){for(var a=n.length-1,i="",s=Ga(),u=0;u<=a;u++){var l=n[u];i+=l.text,s=s.concat(l.characterList),i!==""&&l.type!=="unstyled"&&(i+=`
`,s=s.push(s.last()));var f=this._extractTextFromBlockConfigs(l.childConfigs);i+=f.text,s=s.concat(f.characterList)}return{text:i,characterList:s}},e}(),zq=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_q,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:xq;t=t.trim().replace(Aq,"").replace(Nq,X4).replace(Tq,"").replace(Hq,"");var a=r(t);if(!a)return null;var i=Vq(n),s=function(l,f){return l==="li"?f==="ol"?"ordered-list-item":"unordered-list-item":null};return new Kq(i,s).addDOMNode(a).getContentBlocks()},t6=zq;function $q(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),n.forEach(function(a){jq(e,a,r[a])})}return e}function jq(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var qq=yi,Wq=hn,Gq=t6,Zq=jn,Yq=z4,Qq=Wa,r6=ft,Xq=b3,Jq=r6.List,eW=r6.Repeat,n6=Qq("draft_tree_data_support"),tW=n6?Wq:qq,rW={processHTML:function(t,r){return Gq(t,Yq,r)},processText:function(t,r,n){return t.reduce(function(a,i,s){i=Xq(i);var u=Zq(),l={key:u,type:n,text:i,characterList:Jq(eW(r,i.length))};if(n6&&s!==0){var f=s-1,h=a[f]=a[f].merge({nextSibling:u});l=$q({},l,{prevSibling:h.getKey()})}return a.push(new tW(l)),a},[])}},nW=rW;function aW(e,t,r,n){var a=t.getStartKey(),i=t.getEndKey(),s=e.getBlockMap(),u=s.toSeq().skipUntil(function(l,f){return f===a}).takeUntil(function(l,f){return f===i}).concat([[i,s.get(i)]]).map(function(l){var f=l.getDepth()+r;return f=Math.max(0,Math.min(f,n)),l.set("depth",f)});return s=s.merge(u),e.merge({blockMap:s,selectionBefore:t,selectionAfter:t})}var iW=aW,Ti=Hr,Zn=At,oW=iW,sW=Ir,Yn={currentBlockContainsLink:function(t){var r=t.getSelection(),n=t.getCurrentContent(),a=n.getEntityMap();return n.getBlockForKey(r.getAnchorKey()).getCharacterList().slice(r.getStartOffset(),r.getEndOffset()).some(function(i){var s=i.getEntity();return!!s&&a.__get(s).getType()==="LINK"})},getCurrentBlockType:function(t){var r=t.getSelection();return t.getCurrentContent().getBlockForKey(r.getStartKey()).getType()},getDataObjectForLinkURL:function(t){return{url:t.toString()}},handleKeyCommand:function(t,r,n){switch(r){case"bold":return Yn.toggleInlineStyle(t,"BOLD");case"italic":return Yn.toggleInlineStyle(t,"ITALIC");case"underline":return Yn.toggleInlineStyle(t,"UNDERLINE");case"code":return Yn.toggleCode(t);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return Yn.onBackspace(t);case"delete":case"delete-word":case"delete-to-end-of-block":return Yn.onDelete(t);default:return null}},insertSoftNewline:function(t){var r=Ti.insertText(t.getCurrentContent(),t.getSelection(),`
`,t.getCurrentInlineStyle(),null),n=Zn.push(t,r,"insert-characters");return Zn.forceSelection(n,r.getSelectionAfter())},onBackspace:function(t){var r=t.getSelection();if(!r.isCollapsed()||r.getAnchorOffset()||r.getFocusOffset())return null;var n=t.getCurrentContent(),a=r.getStartKey(),i=n.getBlockBefore(a);if(i&&i.getType()==="atomic"){var s=n.getBlockMap().delete(i.getKey()),u=n.merge({blockMap:s,selectionAfter:r});if(u!==n)return Zn.push(t,u,"remove-range")}var l=Yn.tryToRemoveBlockStyle(t);return l?Zn.push(t,l,"change-block-type"):null},onDelete:function(t){var r=t.getSelection();if(!r.isCollapsed())return null;var n=t.getCurrentContent(),a=r.getStartKey(),i=n.getBlockForKey(a),s=i.getLength();if(r.getStartOffset()<s)return null;var u=n.getBlockAfter(a);if(!u||u.getType()!=="atomic")return null;var l=r.merge({focusKey:u.getKey(),focusOffset:u.getLength()}),f=Ti.removeRange(n,l,"forward");return f!==n?Zn.push(t,f,"remove-range"):null},onTab:function(t,r,n){var a=r.getSelection(),i=a.getAnchorKey();if(i!==a.getFocusKey())return r;var s=r.getCurrentContent(),u=s.getBlockForKey(i),l=u.getType();if(l!=="unordered-list-item"&&l!=="ordered-list-item")return r;t.preventDefault();var f=u.getDepth();if(!t.shiftKey&&f===n)return r;var h=oW(s,a,t.shiftKey?-1:1,n);return Zn.push(r,h,"adjust-depth")},toggleBlockType:function(t,r){var n=t.getSelection(),a=n.getStartKey(),i=n.getEndKey(),s=t.getCurrentContent(),u=n;if(a!==i&&n.getEndOffset()===0){var l=sW(s.getBlockBefore(i));i=l.getKey(),u=u.merge({anchorKey:a,anchorOffset:n.getStartOffset(),focusKey:i,focusOffset:l.getLength(),isBackward:!1})}var f=s.getBlockMap().skipWhile(function(m,g){return g!==a}).reverse().skipWhile(function(m,g){return g!==i}).some(function(m){return m.getType()==="atomic"});if(f)return t;var h=s.getBlockForKey(a).getType()===r?"unstyled":r;return Zn.push(t,Ti.setBlockType(s,u,h),"change-block-type")},toggleCode:function(t){var r=t.getSelection(),n=r.getAnchorKey(),a=r.getFocusKey();return r.isCollapsed()||n!==a?Yn.toggleBlockType(t,"code-block"):Yn.toggleInlineStyle(t,"CODE")},toggleInlineStyle:function(t,r){var n=t.getSelection(),a=t.getCurrentInlineStyle();if(n.isCollapsed())return Zn.setInlineStyleOverride(t,a.has(r)?a.remove(r):a.add(r));var i=t.getCurrentContent(),s;return a.has(r)?s=Ti.removeInlineStyle(i,n,r):s=Ti.applyInlineStyle(i,n,r),Zn.push(t,s,"change-inline-style")},toggleLink:function(t,r,n){var a=Ti.applyEntity(t.getCurrentContent(),r,n);return Zn.push(t,a,"apply-entity")},tryToRemoveBlockStyle:function(t){var r=t.getSelection(),n=r.getAnchorOffset();if(r.isCollapsed()&&n===0){var a=r.getAnchorKey(),i=t.getCurrentContent(),s=i.getBlockForKey(a),u=s.getType(),l=i.getBlockBefore(a);if(u==="code-block"&&l&&l.getType()==="code-block"&&l.getLength()!==0)return null;if(u!=="unstyled")return Ti.setBlockType(i,r,"unstyled")}return null}},a6=Yn,uW=/\r\n?|\n/g;function lW(e){return e.split(uW)}var cW=lW,Y0=Js,i6=gn,dW=i4,o6=Hr,Q0=nW,s6=At,u6=a6,l6=b0,fW=s4,c6=Ad,d6=cW;function gW(e,t){t.preventDefault();var r=new dW(t.clipboardData);if(!r.isRichText()){var n=r.getFiles(),a=r.getText();if(n.length>0){if(e.props.handlePastedFiles&&c6(e.props.handlePastedFiles(n)))return;fW(n,function(R){if(R=R||a,!!R){var K=e._latestEditorState,M=d6(R),F=i6.create({style:K.getCurrentInlineStyle(),entity:l6(K.getCurrentContent(),K.getSelection())}),U=u6.getCurrentBlockType(K),k=Q0.processText(M,F,U),C=Y0.createFromArray(k),A=o6.replaceWithFragment(K.getCurrentContent(),K.getSelection(),C);e.update(s6.push(K,A,"insert-fragment"))}});return}}var i=[],s=r.getText(),u=r.getHTML(),l=e._latestEditorState;if(e.props.formatPastedText){var f=e.props.formatPastedText(s,u),h=f.text,m=f.html;s=h,u=m}if(!(e.props.handlePastedText&&c6(e.props.handlePastedText(s,u,l)))){if(s&&(i=d6(s)),!e.props.stripPastedStyles){var g=e.getClipboard();if(!e.props.formatPastedText&&r.isRichText()&&g){var p;if(((p=u)===null||p===void 0?void 0:p.indexOf(e.getEditorKey()))!==-1||i.length===1&&g.size===1&&g.first().getText()===s){e.update(Dd(e._latestEditorState,g));return}}else if(g&&r.types.includes("com.apple.webarchive")&&!r.types.includes("text/html")&&hW(i,g)){e.update(Dd(e._latestEditorState,g));return}if(u){var w=Q0.processHTML(u,e.props.blockRenderMap);if(w){var y=w.contentBlocks,_=w.entityMap;if(y){var S=Y0.createFromArray(y);e.update(Dd(e._latestEditorState,S,_));return}}}e.setClipboard(null)}if(i.length){var H=i6.create({style:l.getCurrentInlineStyle(),entity:l6(l.getCurrentContent(),l.getSelection())}),L=u6.getCurrentBlockType(l),O=Q0.processText(i,H,L),j=Y0.createFromArray(O);e.update(Dd(e._latestEditorState,j))}}}function Dd(e,t,r){var n=o6.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return s6.push(e,n.set("entityMap",r),"insert-fragment")}function hW(e,t){return e.length===t.size&&t.valueSeq().every(function(r,n){return r.getText()===e[n]})}var pW=gW,f6=Or,mW=wz,vW=Cz,bW=Az,wW=Hz,yW=Kz,xW=$z,_W=qz,CW=Zz,SW=D$,EW=aq,AW=pW,g6=x5,DW=f6.isBrowser("Chrome"),kW=f6.isBrowser("Firefox"),h6=DW||kW?g6:function(e){},NW={onBeforeInput:mW,onBlur:vW,onCompositionStart:bW,onCopy:wW,onCut:yW,onDragOver:xW,onDragStart:_W,onFocus:CW,onInput:SW,onKeyDown:EW,onPaste:AW,onSelect:g6,onMouseUp:h6,onKeyUp:h6},TW=NW,HW=Xt,IW=HW.unstable_flushControlled,OW=IW;function MW(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var X0=D,p6=Ci,LW=function(e){MW(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.shouldComponentUpdate=function(a){return this.props.text!==a.text||this.props.editorState.getSelection().getHasFocus()!==a.editorState.getSelection().getHasFocus()},r.render=function(){var a=this.props.editorState.getSelection().getHasFocus(),i=p6({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":a}),s={whiteSpace:"pre-wrap"};return X0.createElement("div",{className:i},X0.createElement("div",{className:p6("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:s},this.props.text))},t}(X0.Component),VW=LW,m6=K0,yu=hd,v6=Or,Za=v6.isPlatform("Mac OS X"),b6=Za&&v6.isBrowser("Firefox < 29"),Ya=m6.hasCommandModifier,Ea=m6.isCtrlKeyCommand;function w6(e){return Za&&e.altKey||Ea(e)}function PW(e){return Ya(e)?e.shiftKey?"redo":"undo":null}function FW(e){return!Za&&e.shiftKey?null:w6(e)?"delete-word":"delete"}function BW(e){return Ya(e)&&Za?"backspace-to-start-of-line":w6(e)?"backspace-word":"backspace"}function RW(e){switch(e.keyCode){case 66:return Ya(e)?"bold":null;case 68:return Ea(e)?"delete":null;case 72:return Ea(e)?"backspace":null;case 73:return Ya(e)?"italic":null;case 74:return Ya(e)?"code":null;case 75:return Za&&Ea(e)?"secondary-cut":null;case 77:return Ea(e)?"split-block":null;case 79:return Ea(e)?"split-block":null;case 84:return Za&&Ea(e)?"transpose-characters":null;case 85:return Ya(e)?"underline":null;case 87:return Za&&Ea(e)?"backspace-word":null;case 89:return Ea(e)?Za?"secondary-paste":"redo":null;case 90:return PW(e)||null;case yu.RETURN:return"split-block";case yu.DELETE:return FW(e);case yu.BACKSPACE:return BW(e);case yu.LEFT:return b6&&Ya(e)?"move-selection-to-start-of-block":null;case yu.RIGHT:return b6&&Ya(e)?"move-selection-to-end-of-block":null;default:return null}}var y6=RW,UW=Si;function J0(){return J0=UW||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},J0.apply(this,arguments)}function ep(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),n.forEach(function(a){ke(e,a,r[a])})}return e}function Te(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ke(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x6(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var KW=f0,zW=Z3,$W=nU,jW=NK,qW=iz,WW=TW,_6=OW,GW=VW,ZW=N5,YW=At,Qa=D,QW=T0,XW=xd,JW=Or,tp=Ci,eG=jn,tG=y6,rG=_d,nG=Wa,C6=ht,S6=fu,aG=Ir,E6=JW.isBrowser("IE"),iG=!E6,A6={edit:WW,composite:$W,drag:qW,cut:null,render:null},D6=!1,oG=function(e){x6(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.render=function(){return null},r.componentDidMount=function(){this._update()},r.componentDidUpdate=function(){this._update()},r._update=function(){var a=this.props.editor;a._latestEditorState=this.props.editorState,a._blockSelectEvents=!0},t}(Qa.Component),k6=function(e){x6(t,e);function t(n){var a;return a=e.call(this,n)||this,ke(Te(a),"_blockSelectEvents",void 0),ke(Te(a),"_clipboard",void 0),ke(Te(a),"_handler",void 0),ke(Te(a),"_dragCount",void 0),ke(Te(a),"_internalDrag",void 0),ke(Te(a),"_editorKey",void 0),ke(Te(a),"_placeholderAccessibilityID",void 0),ke(Te(a),"_latestEditorState",void 0),ke(Te(a),"_latestCommittedEditorState",void 0),ke(Te(a),"_pendingStateFromBeforeInput",void 0),ke(Te(a),"_onBeforeInput",void 0),ke(Te(a),"_onBlur",void 0),ke(Te(a),"_onCharacterData",void 0),ke(Te(a),"_onCompositionEnd",void 0),ke(Te(a),"_onCompositionStart",void 0),ke(Te(a),"_onCopy",void 0),ke(Te(a),"_onCut",void 0),ke(Te(a),"_onDragEnd",void 0),ke(Te(a),"_onDragOver",void 0),ke(Te(a),"_onDragStart",void 0),ke(Te(a),"_onDrop",void 0),ke(Te(a),"_onInput",void 0),ke(Te(a),"_onFocus",void 0),ke(Te(a),"_onKeyDown",void 0),ke(Te(a),"_onKeyPress",void 0),ke(Te(a),"_onKeyUp",void 0),ke(Te(a),"_onMouseDown",void 0),ke(Te(a),"_onMouseUp",void 0),ke(Te(a),"_onPaste",void 0),ke(Te(a),"_onSelect",void 0),ke(Te(a),"editor",void 0),ke(Te(a),"editorContainer",void 0),ke(Te(a),"focus",void 0),ke(Te(a),"blur",void 0),ke(Te(a),"setMode",void 0),ke(Te(a),"exitCurrentMode",void 0),ke(Te(a),"restoreEditorDOM",void 0),ke(Te(a),"setClipboard",void 0),ke(Te(a),"getClipboard",void 0),ke(Te(a),"getEditorKey",void 0),ke(Te(a),"update",void 0),ke(Te(a),"onDragEnter",void 0),ke(Te(a),"onDragLeave",void 0),ke(Te(a),"_handleEditorContainerRef",function(i){a.editorContainer=i,a.editor=i!==null?i.firstChild:null}),ke(Te(a),"focus",function(i){var s=a.props.editorState,u=s.getSelection().getHasFocus(),l=a.editor;if(l){var f=XW.getScrollParent(l),h=i||rG(f),m=h.x,g=h.y;S6(l)||C6(!1),l.focus(),f===window?window.scrollTo(m,g):QW.setTop(f,g),u||a.update(YW.forceSelection(s,s.getSelection()))}}),ke(Te(a),"blur",function(){var i=a.editor;i&&(S6(i)||C6(!1),i.blur())}),ke(Te(a),"setMode",function(i){var s=a.props,u=s.onPaste,l=s.onCut,f=s.onCopy,h=ep({},A6.edit);u&&(h.onPaste=u),l&&(h.onCut=l),f&&(h.onCopy=f);var m=ep({},A6,{edit:h});a._handler=m[i]}),ke(Te(a),"exitCurrentMode",function(){a.setMode("edit")}),ke(Te(a),"restoreEditorDOM",function(i){a.setState({contentsKey:a.state.contentsKey+1},function(){a.focus(i)})}),ke(Te(a),"setClipboard",function(i){a._clipboard=i}),ke(Te(a),"getClipboard",function(){return a._clipboard}),ke(Te(a),"update",function(i){a._latestEditorState=i,a.props.onChange(i)}),ke(Te(a),"onDragEnter",function(){a._dragCount++}),ke(Te(a),"onDragLeave",function(){a._dragCount--,a._dragCount===0&&a.exitCurrentMode()}),a._blockSelectEvents=!1,a._clipboard=null,a._handler=null,a._dragCount=0,a._editorKey=n.editorKey||eG(),a._placeholderAccessibilityID="placeholder-"+a._editorKey,a._latestEditorState=n.editorState,a._latestCommittedEditorState=n.editorState,a._onBeforeInput=a._buildHandler("onBeforeInput"),a._onBlur=a._buildHandler("onBlur"),a._onCharacterData=a._buildHandler("onCharacterData"),a._onCompositionEnd=a._buildHandler("onCompositionEnd"),a._onCompositionStart=a._buildHandler("onCompositionStart"),a._onCopy=a._buildHandler("onCopy"),a._onCut=a._buildHandler("onCut"),a._onDragEnd=a._buildHandler("onDragEnd"),a._onDragOver=a._buildHandler("onDragOver"),a._onDragStart=a._buildHandler("onDragStart"),a._onDrop=a._buildHandler("onDrop"),a._onInput=a._buildHandler("onInput"),a._onFocus=a._buildHandler("onFocus"),a._onKeyDown=a._buildHandler("onKeyDown"),a._onKeyPress=a._buildHandler("onKeyPress"),a._onKeyUp=a._buildHandler("onKeyUp"),a._onMouseDown=a._buildHandler("onMouseDown"),a._onMouseUp=a._buildHandler("onMouseUp"),a._onPaste=a._buildHandler("onPaste"),a._onSelect=a._buildHandler("onSelect"),a.getEditorKey=function(){return a._editorKey},a.state={contentsKey:0},a}var r=t.prototype;return r._buildHandler=function(a){var i=this;return function(s){if(!i.props.readOnly){var u=i._handler&&i._handler[a];u&&(_6?_6(function(){return u(i,s)}):u(i,s))}}},r._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},r._renderPlaceholder=function(){if(this._showPlaceholder()){var a={text:aG(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return Qa.createElement(GW,a)}return null},r._renderARIADescribedBy=function(){var a=this.props.ariaDescribedBy||"",i=this._showPlaceholder()?this._placeholderAccessibilityID:"";return a.replace("{{editor_id_placeholder}}",i)||void 0},r.render=function(){var a=this.props,i=a.blockRenderMap,s=a.blockRendererFn,u=a.blockStyleFn,l=a.customStyleFn,f=a.customStyleMap,h=a.editorState,m=a.preventScroll,g=a.readOnly,p=a.textAlignment,w=a.textDirectionality,y=tp({"DraftEditor/root":!0,"DraftEditor/alignLeft":p==="left","DraftEditor/alignRight":p==="right","DraftEditor/alignCenter":p==="center"}),_={outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},S=this.props.role||"textbox",H=S==="combobox"?!!this.props.ariaExpanded:null,L={blockRenderMap:i,blockRendererFn:s,blockStyleFn:u,customStyleMap:ep({},zW,f),customStyleFn:l,editorKey:this._editorKey,editorState:h,preventScroll:m,textDirectionality:w};return Qa.createElement("div",{className:y},this._renderPlaceholder(),Qa.createElement("div",{className:tp("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},Qa.createElement("div",{"aria-activedescendant":g?null:this.props.ariaActiveDescendantID,"aria-autocomplete":g?null:this.props.ariaAutoComplete,"aria-controls":g?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":g?null:H,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":g?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:tp({notranslate:!g,"public/DraftEditor/content":!0}),contentEditable:!g,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:g?null:S,spellCheck:iG&&this.props.spellCheck,style:_,suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},Qa.createElement(oG,{editor:this,editorState:h}),Qa.createElement(jW,J0({},L,{key:"contents"+this.state.contentsKey})))))},r.componentDidMount=function(){this._blockSelectEvents=!1,!D6&&nG("draft_ods_enabled")&&(D6=!0,ZW.initODS()),this.setMode("edit"),E6&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):Ee.execCommand("AutoUrlDetect",!1,!1))},r.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(Qa.Component);ke(k6,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:KW,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:tG,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var sG=k6,uG={},lG={stringify:function(t){return"_"+String(t)},unstringify:function(t){return t.slice(1)}},N6=lG,cG=N6,dG=ki,T6=dG.strlen;function fG(e,t){var r=[];return e.findEntityRanges(function(n){return!!n.getEntity()},function(n,a){var i=e.getText(),s=e.getEntityAt(n);r.push({offset:T6(i.slice(0,n)),length:T6(i.slice(n,a)),key:Number(t[cG.stringify(s)])})}),r}var gG=fG,H6=ki,hG=eu,pG=function(t,r){return t===r},mG=function(t){return!!t},vG=[];function bG(e,t,r){var n=[],a=t.map(function(i){return i.has(r)}).toList();return hG(a,pG,mG,function(i,s){var u=e.getText();n.push({offset:H6.strlen(u.slice(0,i)),length:H6.strlen(u.slice(i,s)),style:r})}),n}function wG(e){var t=e.getCharacterList().map(function(n){return n.getStyle()}).toList(),r=t.flatten().toSet().map(function(n){return bG(e,t,n)});return Array.prototype.concat.apply(vG,r.toJS())}var yG=wG;function xG(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),n.forEach(function(a){_G(e,a,r[a])})}return e}function _G(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var CG=yi,SG=hn,I6=N6,EG=gG,AG=yG,DG=ht,O6=function(t,r){return{key:t.getKey(),text:t.getText(),type:t.getType(),depth:t.getDepth(),inlineStyleRanges:AG(t),entityRanges:EG(t,r),data:t.getData().toObject()}},kG=function(t,r,n,a){if(t instanceof CG){n.push(O6(t,r));return}t instanceof SG||DG(!1);var i=t.getParentKey(),s=a[t.getKey()]=xG({},O6(t,r),{children:[]});if(i){a[i].children.push(s);return}n.push(s)},NG=function(t,r){var n=r.entityMap,a=[],i={},s={},u=0;return t.getBlockMap().forEach(function(l){l.findEntityRanges(function(f){return f.getEntity()!==null},function(f){var h=l.getEntityAt(f),m=I6.stringify(h);s[m]||(s[m]=h,n[m]="".concat(u),u++)}),kG(l,n,a,i)}),{blocks:a,entityMap:n}},TG=function(t,r){var n=r.blocks,a=r.entityMap,i={};return Object.keys(a).forEach(function(s,u){var l=t.getEntity(I6.unstringify(s));i[u]={type:l.getType(),mutability:l.getMutability(),data:l.getData()}}),{blocks:n,entityMap:i}},HG=function(t){var r={entityMap:{},blocks:[]};return r=NG(t,r),r=TG(t,r),r},IG=HG;function xu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),n.forEach(function(a){OG(e,a,r[a])})}return e}function OG(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var MG=jn,M6=ht,LG=function(t,r){for(var n=[].concat(t).reverse();n.length;){var a=n.pop();r(a);var i=a.children;Array.isArray(i)||M6(!1),n=n.concat([].concat(i.reverse()))}},L6=function(t){if(!(t&&t.type))return!1;var r=t.type;return r==="unordered-list-item"||r==="ordered-list-item"},VG=function(t){Array.isArray(t.children)&&(t.children=t.children.map(function(r){return r.type===t.type?xu({},r,{depth:(t.depth||0)+1}):r}))},PG={fromRawTreeStateToRawState:function(t){var r=t.blocks,n=[];return Array.isArray(r)||M6(!1),!Array.isArray(r)||!r.length?t:(LG(r,function(a){var i=xu({},a);L6(a)&&(i.depth=i.depth||0,VG(a),a.children!=null&&a.children.length>0)||(delete i.children,n.push(i))}),t.blocks=n,xu({},t,{blocks:n}))},fromRawStateToRawTreeState:function(t){var r=[],n=[];return t.blocks.forEach(function(a){var i=L6(a),s=a.depth||0,u=xu({},a,{children:[]});if(!i){r.push(u);return}var l=n[0];if(l==null&&s===0)r.push(u);else if(l==null||l.depth<s-1){var f={key:MG(),text:"",depth:s-1,type:a.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(f),s===1?r.push(f):l?.children.push(f),f.children.push(u)}else if(l.depth===s-1)l.children.push(u);else{for(;l!=null&&l.depth>=s;)n.shift(),l=n[0];s>0?l.children.push(u):r.push(u)}}),xu({},t,{blocks:r})}},FG=PG,BG=gn,RG=ft,UG=RG.List;function KG(e,t){var r=e.map(function(n,a){var i=t[a];return BG.create({style:n,entity:i})});return UG(r)}var zG=KG,$G=ki,V6=$G.substr;function jG(e,t){var r=Array(e.length).fill(null);return t&&t.forEach(function(n){for(var a=V6(e,0,n.offset).length,i=a+V6(e,n.offset,n.length).length,s=a;s<i;s++)r[s]=n.key}),r}var qG=jG,WG=ki,GG=ft,ZG=GG.OrderedSet,P6=WG.substr,YG=ZG();function QG(e,t){var r=Array(e.length).fill(YG);return t&&t.forEach(function(n){for(var a=P6(e,0,n.offset).length,i=a+P6(e,n.offset,n.length).length;a<i;)r[a]=r[a].add(n.style),a++}),r}var XG=QG;function _u(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),n.forEach(function(a){JG(e,a,r[a])})}return e}function JG(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var eZ=yi,F6=hn,tZ=i0,rZ=Yc,B6=FG,R6=Qc,nZ=zG,aZ=qG,iZ=XG,U6=jn,oZ=Wa,rp=ft,np=ht,K6=oZ("draft_tree_data_support"),z6=rp.List,sZ=rp.Map,$6=rp.OrderedMap,ap=function(t,r){var n=t.key,a=t.type,i=t.data,s=t.text,u=t.depth,l={text:s,depth:u||0,type:a||"unstyled",key:n||U6(),data:sZ(i),characterList:uZ(t,r)};return l},uZ=function(t,r){var n=t.text,a=t.entityRanges,i=t.inlineStyleRanges,s=a||[],u=i||[];return nZ(iZ(n,u),aZ(n,s.filter(function(l){return r.hasOwnProperty(l.key)}).map(function(l){return _u({},l,{key:r[l.key]})})))},ip=function(t){return _u({},t,{key:t.key||U6()})},j6=function(t,r,n){var a=r.map(function(i){return _u({},i,{parentRef:n})});return t.concat(a.reverse())},lZ=function(t,r){return t.map(ip).reduce(function(n,a,i){Array.isArray(a.children)||np(!1);var s=a.children.map(ip),u=new F6(_u({},ap(a,r),{prevSibling:i===0?null:t[i-1].key,nextSibling:i===t.length-1?null:t[i+1].key,children:z6(s.map(function(_){return _.key}))}));n=n.set(u.getKey(),u);for(var l=j6([],s,u);l.length>0;){var f=l.pop(),h=f.parentRef,m=h.getChildKeys(),g=m.indexOf(f.key),p=Array.isArray(f.children);if(!p){p||np(!1);break}var w=f.children.map(ip),y=new F6(_u({},ap(f,r),{parent:h.getKey(),children:z6(w.map(function(_){return _.key})),prevSibling:g===0?null:m.get(g-1),nextSibling:g===m.size-1?null:m.get(g+1)}));n=n.set(y.getKey(),y),l=j6(l,w,y)}return n},$6())},cZ=function(t,r){return $6(t.map(function(n){var a=new eZ(ap(n,r));return[a.getKey(),a]}))},dZ=function(t,r){var n=t.blocks.find(function(s){return Array.isArray(s.children)&&s.children.length>0}),a=K6&&!n?B6.fromRawStateToRawTreeState(t).blocks:t.blocks;if(!K6)return cZ(n?B6.fromRawTreeStateToRawState(t).blocks:a,r);var i=lZ(a,r);return i},fZ=function(t){var r=t.entityMap,n={};return Object.keys(r).forEach(function(a){var i=r[a],s=i.type,u=i.mutability,l=i.data;n[a]=rZ.__create(s,u,l||{})}),n},gZ=function(t){Array.isArray(t.blocks)||np(!1);var r=fZ(t),n=dZ(t,r),a=n.isEmpty()?new R6:R6.createEmpty(n.first().getKey());return new tZ({blockMap:n,entityMap:r,selectionBefore:a,selectionAfter:a})},hZ=gZ,pZ=k4;function mZ(e){var t=pZ(e),r=0,n=0,a=0,i=0;if(t.length){if(t.length>1&&t[0].width===0){var s=t[1];r=s.top,n=s.right,a=s.bottom,i=s.left}else{var u=t[0];r=u.top,n=u.right,a=u.bottom,i=u.left}for(var l=1;l<t.length;l++){var f=t[l];f.height!==0&&f.width!==0&&(r=Math.min(r,f.top),n=Math.max(n,f.right),a=Math.max(a,f.bottom),i=Math.min(i,f.left))}}return{top:r,right:n,bottom:a,left:i,width:n-i,height:a-r}}var vZ=mZ,bZ=vZ;function wZ(e){var t=e.getSelection();if(!t.rangeCount)return null;var r=t.getRangeAt(0),n=bZ(r),a=n.top,i=n.right,s=n.bottom,u=n.left;return a===0&&i===0&&s===0&&u===0?null:n}var yZ=wZ,xZ=pB,_Z=Js,CZ=gn,SZ=_B,EZ=yi,AZ=i0,DZ=f0,kZ=Z3,NZ=sG,TZ=e4,HZ=Yc,IZ=Hr,OZ=v3,MZ=At,LZ=K0,VZ=uG,PZ=a6,FZ=Qc,BZ=IG,RZ=hZ,UZ=jn,KZ=y6,zZ=yZ,$Z=t6,jZ={Editor:NZ,EditorBlock:TZ,EditorState:MZ,CompositeDecorator:SZ,Entity:HZ,EntityInstance:OZ,BlockMapBuilder:_Z,CharacterMetadata:CZ,ContentBlock:EZ,ContentState:AZ,RawDraftContentState:VZ,SelectionState:FZ,AtomicBlockUtils:xZ,KeyBindingUtil:LZ,Modifier:IZ,RichUtils:PZ,DefaultDraftBlockRenderMap:DZ,DefaultDraftInlineStyle:kZ,convertFromHTML:$Z,convertFromRaw:RZ,convertToRaw:BZ,genKey:UZ,getDefaultKeyBinding:KZ,getVisibleSelectionRect:zZ},Mt=jZ;const Xee="";c.__("B"),c.__("Bold (Ctrl + B)","wp-rss-aggregator"),c.__("I"),c.__("Italics (Ctrl + I)","wp-rss-aggregator"),c.__("U"),c.__("Underline (Ctrl + U)","wp-rss-aggregator");const q6=[{label:c.__("Paragraph","wp-rss-aggregator"),value:"unstyled"},{label:c.__("Heading 1","wp-rss-aggregator"),value:"header-one"},{label:c.__("Heading 2","wp-rss-aggregator"),value:"header-two"},{label:c.__("Heading 3","wp-rss-aggregator"),value:"header-three"},{label:c.__("Blockquote","wp-rss-aggregator"),value:"blockquote"},{label:c.__("Unordered list","wp-rss-aggregator"),value:"unordered-list-item"},{label:c.__("Numbered list","wp-rss-aggregator"),value:"ordered-list-item"},{label:c.__("Code Block","wp-rss-aggregator"),value:"code-block"}],qZ={"header-one":"text-2xl leading-relaxed my-2","header-two":"text-xl font-bold leading-normal my-2","header-three":"text-lg font-bold leading-snug my-2","code-block":"leading-4 text-md bg-light py-2 px-3 my-1",unstyled:"text-md leading-4 my-3"},WZ={component:function(t){return o("span",{className:"text-primary underline",children:t.children})},strategy:(e,t,r)=>{e.findEntityRanges(n=>{const a=n.getEntity();return a!==null&&r.getEntity(a).getType()==="LINK"},t)}},W6={k:"link","!":"header-one","@":"header-two","#":"header-three",$:"unstyled","%":"blockquote","^":"unordered-list-item","&":"ordered-list-item","*":"code-block"};function G6(e,t,r){const n=t.getText();let a,i;for(;(a=e.exec(n))!==null;){i=a.index;const s=a[1]??a[0];r(i,i+s.length)}}var Z6={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Ee,function(){function r(C,A){if(C)for(var I in C)({}).hasOwnProperty.call(C,I)&&A(I,C[I])}function n(C){return C==null||C.length===0||C.trim().length===0}var a={unstyled:"p","header-one":"h1","header-two":"h2","header-three":"h3","header-four":"h4","header-five":"h5","header-six":"h6","unordered-list-item":"ul","ordered-list-item":"ol",blockquote:"blockquote",code:"pre"};function i(C){return C&&a[C]}function s(C){var A="";return r(C,function(I,T){T&&(A+="".concat(I,":").concat(T,";"))}),A}function u(C,A){var I=[];if(A){for(var T=0,V=0,P=C,z=A.trigger||"#",Z=A.separator||" ";P.length>0&&V>=0;)if(P[0]===z?(V=0,T=0,P=P.substr(z.length)):(V=P.indexOf(Z+z),V>=0&&(P=P.substr(V+(Z+z).length),T+=V+Z.length)),V>=0){var re=P.indexOf(Z)>=0?P.indexOf(Z):P.length,te=P.substr(0,re);te&&te.length>0&&I.push({offset:T,length:te.length+z.length,type:"HASHTAG"}),T+=z.length}}return I}function l(C,A){var I=[],T=0,V=C.entityRanges.map(function(P){var z=P.offset,Z=P.length,re=P.key;return{offset:z,length:Z,key:re,type:"ENTITY"}});return V=V.concat(u(C.text,A)),V=V.sort(function(P,z){return P.offset-z.offset}),V.forEach(function(P){P.offset>T&&I.push({start:T,end:P.offset}),I.push({start:P.offset,end:P.offset+P.length,entityKey:P.key,type:P.type}),T=P.offset+P.length}),T<C.text.length&&I.push({start:T,end:C.text.length}),I}function f(C){return!!(C.entityRanges.length>0&&(n(C.text)||C.type==="atomic"))}function h(C){var A=C.text,I=C.inlineStyleRanges,T={BOLD:new Array(A.length),ITALIC:new Array(A.length),UNDERLINE:new Array(A.length),STRIKETHROUGH:new Array(A.length),CODE:new Array(A.length),SUPERSCRIPT:new Array(A.length),SUBSCRIPT:new Array(A.length),COLOR:new Array(A.length),BGCOLOR:new Array(A.length),FONTSIZE:new Array(A.length),FONTFAMILY:new Array(A.length),length:A.length};return I&&I.length>0&&I.forEach(function(V){for(var P=V.offset,z=P+V.length,Z=P;Z<z;Z+=1)V.style.indexOf("color-")===0?T.COLOR[Z]=V.style.substring(6):V.style.indexOf("bgcolor-")===0?T.BGCOLOR[Z]=V.style.substring(8):V.style.indexOf("fontsize-")===0?T.FONTSIZE[Z]=V.style.substring(9):V.style.indexOf("fontfamily-")===0?T.FONTFAMILY[Z]=V.style.substring(11):T[V.style]&&(T[V.style][Z]=!0)}),T}function m(C,A){var I={};return C.COLOR[A]&&(I.COLOR=C.COLOR[A]),C.BGCOLOR[A]&&(I.BGCOLOR=C.BGCOLOR[A]),C.FONTSIZE[A]&&(I.FONTSIZE=C.FONTSIZE[A]),C.FONTFAMILY[A]&&(I.FONTFAMILY=C.FONTFAMILY[A]),C.UNDERLINE[A]&&(I.UNDERLINE=!0),C.ITALIC[A]&&(I.ITALIC=!0),C.BOLD[A]&&(I.BOLD=!0),C.STRIKETHROUGH[A]&&(I.STRIKETHROUGH=!0),C.CODE[A]&&(I.CODE=!0),C.SUBSCRIPT[A]&&(I.SUBSCRIPT=!0),C.SUPERSCRIPT[A]&&(I.SUPERSCRIPT=!0),I}function g(C,A,I){var T=!0;return I>0&&I<C.length?A.forEach(function(V){T=T&&C[V][I]===C[V][I-1]}):T=!1,T}function p(C,A){return C==="BOLD"?"<strong>".concat(A,"</strong>"):C==="ITALIC"?"<em>".concat(A,"</em>"):C==="UNDERLINE"?"<ins>".concat(A,"</ins>"):C==="STRIKETHROUGH"?"<del>".concat(A,"</del>"):C==="CODE"?"<code>".concat(A,"</code>"):C==="SUPERSCRIPT"?"<sup>".concat(A,"</sup>"):C==="SUBSCRIPT"?"<sub>".concat(A,"</sub>"):A}function w(C){if(C&&C.length>0){var A=C.map(function(I){switch(I){case`
`:return"<br>";case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";default:return I}});return A.join("")}return""}function y(C,A){if(C&&(C.COLOR||C.BGCOLOR||C.FONTSIZE||C.FONTFAMILY)){var I='style="';return C.COLOR&&(I+="color: ".concat(C.COLOR,";")),C.BGCOLOR&&(I+="background-color: ".concat(C.BGCOLOR,";")),C.FONTSIZE&&(I+="font-size: ".concat(C.FONTSIZE).concat(/^\d+$/.test(C.FONTSIZE)?"px":"",";")),C.FONTFAMILY&&(I+="font-family: ".concat(C.FONTFAMILY,";")),I+='"',"<span ".concat(I,">").concat(A,"</span>")}return A}function _(C,A,I,T){var V=C[A];if(typeof T=="function"){var P=T(V,I);if(P)return P}if(V.type==="MENTION")return'<a href="'.concat(V.data.url,'" class="wysiwyg-mention" data-mention data-value="').concat(V.data.value,'">').concat(I,"</a>");if(V.type==="LINK"){var z=V.data.targetOption||"_self";return'<a href="'.concat(V.data.url,'" target="').concat(z,'">').concat(I,"</a>")}if(V.type==="IMAGE"){var Z=V.data.alignment;return Z&&Z.length?'<div style="text-align:'.concat(Z,';"><img src="').concat(V.data.src,'" alt="').concat(V.data.alt,'" style="height: ').concat(V.data.height,";width: ").concat(V.data.width,'"/></div>'):'<img src="'.concat(V.data.src,'" alt="').concat(V.data.alt,'" style="height: ').concat(V.data.height,";width: ").concat(V.data.width,'"/>')}return V.type==="EMBEDDED_LINK"?'<iframe width="'.concat(V.data.width,'" height="').concat(V.data.height,'" src="').concat(V.data.src,'" frameBorder="0"></iframe>'):I}function S(C,A,I,T){var V=[],P=Array.from(C.text);if(P.length>0)for(var z=h(C),Z,re=I;re<T;re+=1)re!==I&&g(z,A,re)?(Z.text.push(P[re]),Z.end=re+1):(Z={styles:m(z,re),text:[P[re]],start:re,end:re+1},V.push(Z));return V}function H(C){if(C){for(var A=C,I=0;I<A.length&&C[I]===" ";I+=1)A=A.replace(" ","&nbsp;");return A}return C}function L(C){if(C){for(var A=C,I=A.length-1;I>=0&&A[I]===" ";I-=1)A="".concat(A.substring(0,I),"&nbsp;").concat(A.substring(I+1));return A}return C}function O(C){var A=C.styles,I=C.text,T=w(I);return r(A,function(V,P){T=p(V,T)}),T}function j(C,A){var I=S(C,["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"],A.start,A.end),T="";return I.forEach(function(V){T+=O(V)}),T=y(A.styles,T),T}function R(C,A,I,T){var V=[],P=S(C,["COLOR","BGCOLOR","FONTSIZE","FONTFAMILY"],I.start,I.end);P.forEach(function(Z){V.push(j(C,Z))});var z=V.join("");return I.type==="ENTITY"?I.entityKey!==void 0&&I.entityKey!==null&&(z=_(A,I.entityKey,z,T)):I.type==="HASHTAG"&&(z='<a href="'.concat(z,'" class="wysiwyg-hashtag">').concat(z,"</a>")),z}function K(C,A,I,T){var V=[],P=l(C,I);return P.forEach(function(z,Z){var re=R(C,A,z,T);Z===0&&(re=H(re)),Z===P.length-1&&(re=L(re)),V.push(re)}),V.join("")}function M(C,A,I,T,V){var P=[];if(f(C))P.push(_(A,C.entityRanges[0].key,void 0,V));else{var z=i(C.type);if(z){P.push("<".concat(z));var Z=s(C.data);Z&&P.push(' style="'.concat(Z,'"')),T&&P.push(' dir = "auto"'),P.push(">"),P.push(K(C,A,I,V)),P.push("</".concat(z,">"))}}return P.push(`
`),P.join("")}function F(C){return C==="unordered-list-item"||C==="ordered-list-item"}function U(C,A,I,T,V){var P=[],z=[],Z;return C.forEach(function(re){var te=!1;if(Z?Z.type!==re.type?(P.push("</".concat(i(Z.type),`>
`)),P.push("<".concat(i(re.type),`>
`))):Z.depth===re.depth?z&&z.length>0&&(P.push(U(z,A,I,T,V)),z=[]):(te=!0,z.push(re)):P.push("<".concat(i(re.type),`>
`)),!te){P.push("<li");var oe=s(re.data);oe&&P.push(' style="'.concat(oe,'"')),T&&P.push(' dir = "auto"'),P.push(">"),P.push(K(re,A,I,V)),P.push(`</li>
`),Z=re}}),z&&z.length>0&&P.push(U(z,A,I,T,V)),P.push("</".concat(i(Z.type),`>
`)),P.join("")}function k(C,A,I,T){var V=[];if(C){var P=C.blocks,z=C.entityMap;if(P&&P.length>0){var Z=[];if(P.forEach(function(te){if(F(te.type))Z.push(te);else{if(Z.length>0){var oe=U(Z,z,A,T);V.push(oe),Z=[]}var xe=M(te,z,A,I,T);V.push(xe)}}),Z.length>0){var re=U(Z,z,A,I,T);V.push(re),Z=[]}}}return V.join("")}return k})})(Z6);var GZ=Z6.exports;const ZZ=qp(GZ);function YZ(e,t,r="_blank"){if(e.getSelection().isCollapsed())return e;{const a=e.getCurrentContent().createEntity("LINK","MUTABLE",{url:t,targetOption:r}),i=a.getLastCreatedEntityKey(),s=Mt.Modifier.applyEntity(a,e.getSelection(),i),u=Mt.EditorState.set(e,{currentContent:s});return Mt.RichUtils.toggleLink(u,u.getSelection(),i)}}function QZ(e,t,r){const n=e.getCurrentContent().mergeEntityData(t,{url:r});return Mt.EditorState.push(e,n,"apply-entity")}function XZ(e,t,r,n){r.findEntityRanges(a=>a.getEntity()===t,(a,i)=>{const s=r.getKey(),u=Mt.SelectionState.createEmpty(s).merge({anchorOffset:a,focusOffset:i}),l=Mt.Modifier.applyEntity(e.getCurrentContent(),u,null),f=Mt.EditorState.push(e,l,"apply-entity"),h=Mt.EditorState.forceSelection(f,e.getSelection());n(h)})}function Y6(e){const t=e.getSelection(),r=e.getCurrentContent(),n=r.getBlockForKey(t.getStartKey()),a=n.getEntityAt(t.getStartOffset()),i=a?r.getEntity(a):null;return[a,i,n]}function JZ(e,t){const r=e.getCurrentContent(),n=e.getSelection(),i=r.getBlockForKey(n.getStartKey()).getText().slice(n.getStartOffset(),n.getEndOffset()),s=t(i),u=Mt.Modifier.replaceText(r,n,s);return Mt.EditorState.set(e,{currentContent:u})}function eY(e,t=[]){const r=u=>u.replace(/href=["']{{\s*(https?:\/\/)?([^}\s]+)\s*}}["']/g,(l,f,h)=>h.includes("_")?`href="{{ ${f??""}${h} }}"`:`href="${f??"https://"}${h}"`),n=Mt.convertFromHTML(r(e)),a=Mt.ContentState.createFromBlockArray(n.contentBlocks,n.entityMap),i=Mt.convertToRaw(a);Object.keys(i.entityMap).forEach(function(u){const l=i.entityMap[u];l.type==="LINK"&&l.data?.href?.length>0&&l.data.href.startsWith("https://{{")&&l.data.href.endsWith("}}")&&(console.log(l.data.url),l.data.url=l.data.href.replace(/^https:\/\//,""),console.log(l.data.url))});const s=new Mt.CompositeDecorator([WZ,...t]);return Mt.EditorState.createWithContent(a,s)}function tY(e){const t=Mt.convertToRaw(e.getCurrentContent());return ZZ(t,void 0,void 0,(a,i)=>a.type==="LINK"?`<a href="${a.data.url||a.data.href}" target="_blank">${i}</a>`:i)}function rY(e){const t=D.useRef(null),[r,n]=D.useState(()=>eY(e.value??"",e.decorators)),[a,i]=D.useState(""),[s,u]=D.useState(!1);function l(_){u(_),_||t.current?.focus()}function f(){const[,_]=Y6(r),S=_?.getData()?.url??"";(!r.getSelection().isCollapsed()||S!=="")&&(i(S),l(!0))}function h(_){l(!1),setTimeout(function(){const[S,H,L]=Y6(r),O=H?.getData()?.url??"";_?n(O?QZ(r,S,_):YZ(r,_)):XZ(r,S,L,n)})}function m(_){const S=typeof _=="function"?_(r):_;n(S);const H=tY(S);e.value!==H&&e.onChange?.(H)}D.useImperativeHandle(e.editorRef,()=>({getState:()=>r,setState:m}),[r,m]);function g(){t.current?.focus()}function p(_,S){const H=Mt.RichUtils.handleKeyCommand(S,_)??S;switch(_){case"link":f();break;case"unstyled":case"header-one":case"header-two":case"header-three":case"blockquote":case"unordered-list-item":case"ordered-list-item":case"code-block":m(Mt.RichUtils.toggleBlockType(H,_));break;case"soft-newline":m(Mt.RichUtils.insertSoftNewline(H));break}return H!==S?(m(H),"handled"):"not-handled"}function w(_){if(_.ctrlKey&&_.key in W6)return _.preventDefault(),W6[_.key];if(_.key==="Enter"){const S=r.getSelection();if(r.getCurrentContent().getBlockForKey(S.getStartKey()).getType()==="code-block"&&!_.ctrlKey)return"soft-newline"}return _.key==="Enter"&&_.shiftKey?"soft-newline":Mt.getDefaultKeyBinding(_)}function y(_){return qZ[_.getType()]??""}return b("div",{className:fe("relative flex flex-col items-stretch overflow-hidden rounded-xs border border-gray-500",e.disabled?"bg-gray-100":"bg-white"),children:[o(aY,{editorState:r,onChange:m,onClickLink:f,disabled:e.disabled}),o("div",{className:"cursor-text p-4",onFocus:g,onClick:g,role:"editor-container",children:o(Mt.Editor,{ref:t,editorState:r,onChange:m,handleKeyCommand:p,keyBindingFn:w,blockStyleFn:y,readOnly:e.disabled})}),e.disabled&&o("div",{className:"absolute inset-0 z-fixed bg-gray-light"}),s&&o(sY,{url:a,onOk:h,onCancel:()=>l(!1),vars:e.linkVars??[]})]})}const nY=[{label:o(bL,{}),tooltip:c.__("Bold (Ctrl + B)","wp-rss-aggregator"),style:"BOLD"},{label:o(wL,{}),tooltip:c.__("Italics (Ctrl + I)","wp-rss-aggregator"),style:"ITALIC"},{label:o(yL,{}),tooltip:c.__("Underline (Ctrl + U)","wp-rss-aggregator"),style:"UNDERLINE"}];function aY(e){const t=D.useMemo(()=>e.editorState.getCurrentInlineStyle(),[e.editorState]),r=D.useMemo(()=>Mt.RichUtils.getCurrentBlockType(e.editorState),[e.editorState]);return b("div",{className:"flex h-8 flex-row items-start overflow-hidden border-b border-gray-500 text-lg",children:[o(lt,{content:c.__("Block type","wp-rss-aggregator"),children:o(oY,{value:r,disabled:e.disabled,onChange:function(n){e.onChange(Mt.RichUtils.toggleBlockType(e.editorState,n))}})}),o("div",{className:"h-full w-[1px] bg-gray-500"}),b(wn,{value:20,children:[nY.map(n=>o(lt,{content:n.tooltip,children:o(iY,{label:n.label,style:n.style,active:t.has(n.style),disabled:e.disabled,onToggle:function(a){e.onChange(Mt.RichUtils.toggleInlineStyle(e.editorState,a))}})},n.style)),o(lt,{content:c.__("Link (Ctrl + K)","wp-rss-aggregator"),children:o(Q6,{disabled:e.disabled,onClick:function(n){requestAnimationFrame(()=>e.onClickLink()),n.preventDefault()},children:o(N2,{})})})]})]})}function iY(e){return o(Q6,{className:fe(e.active&&"bg-gray-100"),disabled:e.disabled,onMouseDown:function(r){e.onToggle?.(e.style),r.preventDefault()},children:e.label})}function oY(e){const[t,r]=D.useState(!1),n=Jr();return o(He.Menu,{isOpen:t,setIsOpen:r,disabled:e.disabled,control:(a,i,s)=>b("button",{ref:en(a,n.ref),className:fe("relative box-border h-8 appearance-none overflow-hidden pl-4 pr-8 text-left text-md leading-8","focus-visible:bg-gray-100 data-[open=true]:bg-gray-100",e.disabled?"bg-gray-100":"bg-white"),"data-open":s,"aria-expanded":s,"aria-haspopup":"listbox",disabled:e.disabled,...i,...n.props,children:[o("span",{className:"relative -top-[1px] inline-block max-w-full overflow-hidden text-ellipsis whitespace-nowrap",children:q6.find(u=>u.value===e.value)?.label??""}),o(m2,{className:"absolute right-[8px] top-1/2 -translate-y-1/2 transform bg-transparent",width:20,height:20})]}),onSelect:e.onChange,children:q6.map(a=>o(He.Option,{value:a.value,label:a.label,selected:e.value===a.value},a.value))})}function Q6(e){const{className:t,...r}=e,n=Jr();return o("button",{ref:n.ref,className:fe("inline-block h-full w-10 leading-none hover:bg-gray-100 focus-visible:bg-gray-100",t),...r,...n.props})}function sY(e){const[t,r]=D.useState(e.url),n=e.url==="",a=n?c.__("Add link","wp-rss-aggregator"):c.__("Update link","wp-rss-aggregator");return b(ua,{open:!0,title:a,control:e.control,onOpenChange:()=>e.onCancel(),children:[o(ne,{label:c.__("Link URL","wp-rss-aggregator"),children:o(tt,{value:t,onChange:r,onKeyDown:function(i){i.key==="Enter"&&(i.preventDefault(),e.onOk(t))}})}),e.vars.length>0&&o(ne,{label:c.__("Variables","wp-rss-aggregator"),children:o("div",{className:"flex max-w-[400px] flex-row flex-wrap gap-2 text-md leading-4",children:e.vars.map(i=>o(St,{size:"sm",onClick:()=>r(c.sprintf(i.insert,"")),children:i.label??i.value},i.value))})}),b("div",{className:"flex justify-end gap-2",children:[o(Ne,{onClick:()=>e.onOk(t),disabled:n&&t.length===0,children:a}),!n&&o(il,{onClick:()=>e.onOk(""),children:c.__("Remove link","wp-rss-aggregator")}),o(_r,{onClick:()=>e.onCancel(),children:c.__("Cancel","wp-rss-aggregator")})]})]})}function op(e){const t=D.useRef(null),r=D.useMemo(()=>X6.concat(e.vars??[]),[e.vars]),n=X6.filter(s=>s.value.endsWith("_url")),a=D.useMemo(()=>[{component:uY,strategy:(s,u)=>{G6(/\{\{\s*[^\}]*\s*\}\}/g,s,u);for(const l of e.varRegex??[])G6(l,s,u)}},...e.decorators??[]],[e.decorators,e.varRegex]);function i(s){const u=r.find(l=>l.value===s);if(t.current&&u){const l=t.current.getState(),f=JZ(l,h=>c.sprintf(u.insert,h||(u.default??"")));t.current.setState(f)}}return b("div",{className:"flex flex-col items-stretch gap-2",children:[o(rY,{editorRef:t,value:e.value,onChange:e.onChange,decorators:a,disabled:e.disabled,linkVars:n}),o(He.Simple,{placeholder:c.__("Insert variable","wp-rss-aggregator"),options:r,onSelect:i,disabled:e.disabled})]})}const X6=Object.entries(Q.tokenTypes).filter(([e])=>e!=="text").map(([e,t])=>({value:e,label:t,insert:e==="postMeta"?'{{postMeta key="%s"}}':"{{"+e+"}}"}));function uY({children:e}){return o("span",{className:"whitespace-nowrap rounded-sm border border-gray-600 bg-sky px-0.5",children:e})}function lY(){const[e,t]=ee.useSetting("enableAttribution"),r=se().isAtLeast(W.Plus);return b(ie,{children:[b(Pe.Section,{children:[o(ne,{inline:!0,label:c.__("Show attribution","wp-rss-aggregator"),disabled:!r,children:o(ye,{checked:e,onChange:t})}),e&&b(ie,{children:[o(cY,{}),o(fY,{}),o(gY,{})]})]}),o(mt,{})]})}function cY(){const[e,t]=ee.useSetting("attributionTemplate"),r=se().isAtLeast(W.Plus);return o(op,{value:e,onChange:t,disabled:!r})}const dY=[{value:"before",label:c.__("Before content","wp-rss-aggregator")},{value:"after",label:c.__("After content","wp-rss-aggregator")}];function fY(){const[e,t]=ee.useSetting("attributionPosition"),[r]=ee.useSetting("enableAttribution"),n=se().isAtLeast(W.Plus);function a(i){i==="before"||i==="after"?t(i):console.error(`Invalid value for attributionPosition: ${i}`)}return o(ne,{label:c.__("Position","wp-rss-aggregator"),disabled:!r||!n,children:o(He.Simple,{options:dY,value:e,onSelect:a})})}function gY(){const[e,t]=ee.useSetting("attributionSingleOnly"),r=se().isAtLeast(W.Plus);return o(ne,{label:c.__("Add only when viewing a single post","wp-rss-aggregator"),help:c.__("Check this box if you want to exclude the attribution in archive listings that show excerpts.","wp-rss-aggregator"),disabled:!r,inline:!0,children:o(ye,{checked:e,onChange:t})})}const J6=[{value:"before",label:c.__("Before the content","wp-rss-aggregator")},{value:"after",label:c.__("After the content","wp-rss-aggregator")}];function hY(){const[e,t]=ee.useSetting("audioPlayerPos"),[r]=ee.useSetting("enableAudioPlayer"),n=se().isAtLeast(W.Plus);function a(i){(i==="before"||i==="after")&&t(i)}return o(ne,{label:c.__("Position","wp-rss-aggregator"),disabled:!r||!n,children:o(He,{onSelect:a,placeholder:Tg(J6,"value",e??"")?.label,disabled:!n,children:J6.map(i=>o(He.Option,{value:i.value,label:i.label,selected:i.value===e},i.value))})})}function pY(){const[e,t]=ee.useSetting("enableAudioPlayer"),r=se().isAtLeast(W.Plus);return o(ne,{label:c.__("Show audio player","wp-rss-aggregator"),disabled:!r,inline:!0,children:o(ye,{checked:e,onChange:t})})}function mY(){const[e,t]=ee.useSetting("enablePowerPress");return o(ne,{label:c.__("Enable PowerPress audio player","wp-rss-aggregator"),minTier:W.Plus,padlock:!0,inline:!0,children:o(ye,{checked:e,onChange:t})})}function vY(){return b(ie,{children:[b(Pe.Section,{children:[o("p",{className:"text-sm leading-4 text-gray-700",children:o(We,{children:c.__("*Note:* Enable this option to embed an audio player within the Post content for sources that include audio file links in their RSS feed enclosures.","wp-rss-aggregator")})}),o(pY,{}),o(hY,{})]}),b(or,{label:c.__("PowerPress by Blubrry","wp-rss-aggregator"),bordered:!0,padded:!0,children:[o("p",{className:"text-sm leading-4 text-gray-700",children:o(We,{children:c.__("*Note*: Enable this option to attempt to import audio files and show the PowerPress audio player if the PowerPress plugin is activated on your site.","wp-rss-aggregator")})}),o(mY,{})]})]})}const bY=[{value:"remove_elem",label:"Remove the matching elements"},{value:"remove_attr",label:"Remove the matching attributes"},{value:"remove_keep_content",label:"Remove the matching elements, but keep their content"},{value:"keep_elem",label:"Remove everything except the matching elements"}];function wY(){return{type:"remove_elem",selector:""}}function yY(){const[e,t]=ee.useSetting("contentCleaners"),[r,n]=D.useState(-1),a=se().isAtLeast(W.Plus),i=r>-1;return b("div",{children:[b("div",{className:"flex flex-col gap-6 p-8",children:[o("p",{className:"text-sm leading-4 text-gray-700",children:o(We,{urls:{0:"https://www.wprssaggregator.com/help/advanced-content/#h-remove-unwanted-content"},linkProps:{target:"_blank",variant:"secondary"},children:c.__("Streamline your imported posts by removing unnecessary elements like ads and social buttons. Need help with CSS Selectors? [Learn more][0]","wp-rss-aggregator")})}),e?.map((s,u)=>o("div",{className:"flex flex-col gap-2",children:o(xY,{cleaner:s,label:c.sprintf(c.__("Rule %d","wp-rss-aggregator"),u+1),disabled:!a||i&&r!==u,onBeginEdit:function(){n(u)},onSave:function(l){t(Jt(e,u,1,l)),n(-1)},onDelete:function(){t(Jt(e??[],u,1)),n(-1)}})},`cleaner-${u}`))]}),o(mt,{}),o("div",{className:"p-8",children:o(Ne,{className:"w-full",disabled:!a||i,onClick:function(){n(e.length),t(e?.concat(wY()))},children:c.__("Add rule","wp-rss-aggregator")})})]})}function xY(e){const t=D.useId(),[r,n]=D.useState(e.cleaner),a=!Ba(r,e.cleaner);function i(s){n(s),a||e.onBeginEdit()}return b("div",{className:"flex flex-col gap-4",children:[b("div",{className:"flex flex-col gap-2",children:[o(ai,{htmlFor:t,children:e.label}),o(He.Simple,{id:t,options:bY,value:r.type,disabled:e.disabled,onSelect:function(s){Ek(s)?i({type:s,selector:r.selector}):console.warn("Invalid content cleaner type: ",s)}}),o(tt,{value:r.selector,placeholder:c.__("CSS selector","wp-rss-aggregator"),disabled:e.disabled,onChange:function(s){i({type:r.type,selector:s})}})]}),b("div",{className:"flex flex-row items-center justify-end gap-2",children:[o($i,{onClick:e.onDelete,disabled:e.disabled,children:c.__("Delete","wp-rss-aggregator")}),o(Ne,{disabled:e.disabled||!a,onClick:function(){e.onSave(r)},children:c.__("Save","wp-rss-aggregator")})]})]})}function _Y(){const[e,t]=ee.useSetting("contentNumWords"),[r]=ee.useSetting("trimContent");return o(ne,{label:c.__("Limit the number of words displayed:","wp-rss-aggregator"),disabled:!r,children:o(It,{className:"w-full",value:e||"",onChange:Un(t,null,0),unit:c.__("words","wp-rss-aggregator"),placeholder:"--",min:1,required:!0})})}function CY(){const[e,t]=ee.useSetting("trimContent");return b("div",{children:[o(ne,{label:c.__("Trim the content","wp-rss-aggregator"),minTier:W.Basic,inline:!0,children:o(ye,{checked:e,onChange:t})}),o("p",{className:"mt-4 text-sm leading-4 text-gray-700",children:o(We,{urls:{kb:"https://kb.wprssaggregator.com/"},linkProps:{target:"_blank",variant:"secondary"},children:c.__("*Pro Tip*: Use short snippets from external posts to boost your SEO and provide a better user experience. This approach respects original content and keeps your site engaging. [Learn more][kb].","wp-rss-aggregator")})})]})}function SY(){return b(ie,{children:[b(Pe.Section,{children:[o(CY,{}),o(_Y,{})]}),o(or,{label:c.__("Remove unwanted content","wp-rss-aggregator"),bordered:!0,children:o(yY,{})})]})}function e9(){return{source:"rss_selector",metaKey:"",arg:""}}function EY(){const[e,t]=ee.useSetting("customMapping"),r=se().isAtLeast(W.Plus);if(!r)return o(kY,{});const n=e.length===0?[e9()]:e;return o(Pe.Section,{children:b("div",{className:"flex flex-col gap-4",children:[n.map((a,i)=>o(t9,{mapping:a,title:c.sprintf(c.__("Rule %d","wp-rss-aggregator"),i+1),onChange:function(s){t(u=>Jt(u??[],i,1,s))},onDelete:function(){t(s=>Jt(s??[],i,1))}},i)),o(Ne,{size:"md",onClick:function(){t(e.concat(e9()))},disabled:!r,children:c.__("Add mapping","wp-rss-aggregator")})]})})}const AY=[{value:"rss_selector",label:c.__("From feed item","wp-rss-aggregator")},{value:"fixed",label:c.__("Fixed data","wp-rss-aggregator")},{value:"wp_filter",label:c.__("From WordPress filter","wp-rss-aggregator")}];function t9({mapping:e,title:t,disabled:r,onChange:n,onDelete:a}){return b("div",{className:"flex flex-col gap-1",children:[b("div",{className:"flex flex-row items-center justify-between",children:[o("span",{className:"text-md font-semibold leading-4",children:t}),o(lt,{content:c.__("Delete mapping","wp-rss-aggregator"),children:o(lt.Anchor,{children:(i,s)=>o("button",{ref:i,...s,className:"flex rounded-xs p-1 text-alert-red ring-alert-red focus-visible:ring-2",onClick:a,disabled:r,children:o(Dn,{size:18})})})})]}),b("div",{className:"flex flex-col gap-2",children:[o(He.Simple,{options:AY,value:e.source,disabled:r,onSelect:function(i){n({...e,source:i})}}),o(tt,{placeholder:c.__("Meta key name","wp-rss-aggregator"),value:e.metaKey,disabled:r,onChange:function(i){n({...e,metaKey:i})}}),o(tt,{placeholder:DY(e.source),value:e.arg,disabled:r,onChange:function(i){n({...e,arg:i})}})]})]})}function DY(e){if(e==="rss_selector")return c.__("RSS tag/selector","wp-rss-aggregator");if(e==="fixed")return c.__("Value","wp-rss-aggregator");if(e==="wp_filter")return c.__("WordPress filter name","wp-rss-aggregator")}function kY(){return b(ie,{children:[o(Pe.Section,{children:o(t9,{mapping:{source:"rss_selector",metaKey:"",arg:""},title:c.sprintf(c.__("Rule %d","wp-rss-aggregator"),1),onChange:()=>{},onDelete:()=>{},disabled:!0})}),o(mt,{})]})}function NY(){return b(ie,{children:[o(TY,{}),o(mt,{}),o(HY,{}),o(mt,{})]})}function TY(){const[e,t]=ee.useSetting("enablePreContent"),[r,n]=ee.useSetting("preContentSingleOnly"),[a,i]=ee.useSetting("preContentTemplate"),s=se().isAtLeast(W.Plus);return b(Pe.Section,{children:[o("p",{className:"text-sm text-gray-700",children:o(We,{children:c.__("*Note*: This custom text will be applied to each and every post imported from this source.","wp-rss-aggregator")})}),o(ne,{label:c.__("Add custom text before the content","wp-rss-aggregator"),inline:!0,disabled:!s,children:o(ye,{checked:e,onChange:t})}),e&&b(ie,{children:[o(op,{value:a??"",onChange:i}),o(ne,{label:c.__("Add only when viewing a single post","wp-rss-aggregator"),help:c.__("Check this box if you want to exclude the attribution in archive listings that show excerpts.","wp-rss-aggregator"),disabled:!s,inline:!0,children:o(ye,{checked:r,onChange:n})})]})]})}function HY(){const[e,t]=ee.useSetting("enablePostContent"),[r,n]=ee.useSetting("postContentSingleOnly"),[a,i]=ee.useSetting("postContentTemplate"),s=se().isAtLeast(W.Plus);return b(Pe.Section,{children:[o(ne,{label:c.__("Add custom text after the content","wp-rss-aggregator"),inline:!0,disabled:!s,children:o(ye,{checked:e,onChange:t})}),e&&b(ie,{children:[o(op,{value:a??"",onChange:i}),o(ne,{label:c.__("Add only when viewing a single post","wp-rss-aggregator"),help:c.__("Check this box if you want to exclude the attribution in archive listings that show excerpts.","wp-rss-aggregator"),disabled:!s,inline:!0,children:o(ye,{checked:r,onChange:n})})]})]})}function IY(){const[e,t]=ee.useSetting("allowFutureDates"),r=se().isLowerThan(W.Plus);return o(ne,{label:c.__("Allow sheduled posts","wp-rss-aggregator"),disabled:r,inline:!0,children:o(ye,{checked:e,onChange:t})})}const OY=[{value:"published_date",label:c.__("Original post date","wp-rss-aggregator")},{value:"import_date",label:c.__("Feed import date","wp-rss-aggregator")}];function MY(){const[e,t]=ee.useSetting("whichPostDate"),r=se().isLowerThan(W.Plus);function n(a){Ck(a)?t(a):console.warn(`Invalid value for whichPostDate: ${a}`)}return o(ne,{label:c.__("Post date","wp-rss-aggregator"),disabled:r,children:o(He.Simple,{options:OY,value:e,onSelect:n})})}function LY(){return b(ie,{children:[b(Pe.Section,{children:[o(MY,{}),o(IY,{})]}),o(mt,{})]})}function VY(){const[e,t]=ee.useSetting("genMissingExcerpt"),r=se().isLowerThan(W.Plus);return o(ne,{label:c.__("If the source’s excerpt is missing, create a new one from the content","wp-rss-aggregator"),disabled:r,inline:!0,children:o(ye,{checked:e??!1,onChange:t})})}function PY(){const[e,t]=ee.useSetting("excerptNumWords"),r=se().isLowerThan(W.Plus);return o(ne,{label:c.__("Excerpt length","wp-rss-aggregator"),children:o(It,{className:"w-full",value:e||"",onChange:Un(t,null,0),unit:c.__("words","wp-rss-aggregator"),placeholder:c.__("Unlimited","wp-rss-aggregator"),disabled:r,min:0})})}function FY(){const[e,t]=ee.useSetting("excerptSuffix"),r=se().isLowerThan(W.Plus);return o(ne,{label:c.__("Excerpt suffix","wp-rss-aggregator"),disabled:r,children:o(tt,{value:e??"",onChange:t,placeholder:""})})}const BY=[{value:"import",label:c.__("Use the original excerpt","wp-rss-aggregator")},{value:"generate",label:c.__("Create excerpt from content","wp-rss-aggregator")}];function RY(){const[e,t]=ee.useSetting("whichExcerpt"),r=se().isLowerThan(W.Plus);return o(ne,{label:c.__("Set excerpt source","wp-rss-aggregator"),children:o(He.Simple,{options:BY,value:e,disabled:r,onSelect:function(n){t(n==="import"?"import":"generate")}})})}function UY(){const[e,t]=ee.useSetting("excerptGenNumWords"),r=se().isLowerThan(W.Plus);return o(ne,{label:c.__("Generated excerpt length","wp-rss-aggregator"),children:o(It,{className:"w-full",value:e||"",onChange:n=>t(n||1),unit:c.__("words","wp-rss-aggregator"),placeholder:c.__("Min is 1","wp-rss-aggregator"),disabled:r,min:1,required:!0})})}function KY(){const[e,t]=ee.useSetting("excerptGenSuffix"),r=se().isLowerThan(W.Plus);return o(ne,{label:c.__("Generated excerpt suffix","wp-rss-aggregator"),disabled:r,children:o(tt,{value:e??"",onChange:t,placeholder:""})})}function zY(){const[e,t]=ee.useSetting("enableExcerpt"),[r]=ee.useSetting("whichExcerpt"),[n]=ee.useSetting("genMissingExcerpt");return b(ie,{children:[o(Pe.Section,{children:o(ne,{label:c.__("Import post excerpt","wp-rss-aggregator"),inline:!0,children:o(ye,{checked:e,onChange:t})})}),o(mt,{}),o(Pe.Section,{children:e&&b(ie,{children:[o(RY,{}),r==="import"&&b(ie,{children:[o(PY,{}),o(FY,{})]}),r==="generate"&&o(r9,{})]})}),e&&r==="import"&&b(ie,{children:[o(mt,{}),b(Pe.Section,{children:[o(VY,{}),n&&o(r9,{})]}),o(mt,{})]})]})}function r9(){return b(ie,{children:[o("p",{className:"text-sm leading-4 text-gray-700",children:o(We,{children:c.__("*Note*: Aggregator will create a new excerpt for each item using the first words from the content.","wp-rss-aggregator")})}),o(UY,{}),o(KY,{})]})}function sp(e){const[t,r]=D.useState(!1);return t?null:b("div",{className:"relative py-8 pl-6 pr-10 text-gray-800 data-[type=error]:bg-pale-red data-[type=warning]:bg-pale-yellow","data-type":e.type,children:[o("button",{className:"absolute right-2 top-2 appearance-none ring-alert-yellow focus-visible:ring",onClick:()=>r(!0),children:o(ni,{size:20})}),b("div",{className:"flex flex-row gap-4 text-sm leading-4",children:[o(wn,{value:22,children:e.icon}),o("div",{className:"flex flex-col gap-4",children:e.children})]})]})}function n9(){const[e,t]=ee.useSetting("enableFullText"),r=se().isAtLeast(W.Pro);return o(ne,{label:c.__("Use full text service","wp-rss-aggregator"),disabled:!r,help:c.__("Enables a premium service to retrieve the full content from the original site, creating a more comprehensive feed of imported items.","wp-rss-aggregator"),inline:!0,children:o(ye,{checked:e,onChange:t})})}function $Y(){const e=se().isAtLeast(W.Pro),[t]=ee.useSetting("fullTextBatchMode");return e?b("div",{className:"flex h-full flex-1 flex-col justify-between",children:[o("div",{children:b(Pe.Section,{children:[o(n9,{}),e&&b(ie,{children:[o("p",{className:"text-sm leading-4 text-gray-700",children:o(We,{children:c.__("*Note*: Please use the Full Text Service with responsibility and at your own risk. This service will create a new feed by scraping the original site to bring in as much of the original content as possible using our full text script.","wp-rss-aggregator")})}),o("p",{className:"text-sm leading-4 text-gray-700",children:c.__("Always consider the source website’s terms for content curation. Keep your SEO in mind with canonical links and proper attribution, ensuring the curated content is both helpful and respectful.","wp-rss-aggregator")})]})]})}),t&&o(sp,{type:"warning",icon:o(fr,{className:"flex-shrink-0"}),children:o("p",{children:o(We,{urls:{docs:"https://www.wprssaggregator.com/help/full-text-limitations/"},children:c.__("By using the full text service, you are asking Aggregator to create a brand new RSS feed by scraping the original source's website. Although it works great for most sites, in rare cases it could struggle to import every element of the original content. [Learn more][docs].","wp-rss-aggregator")})})})]}):o(jY,{})}function jY(){return b(ie,{children:[o(Pe.Section,{children:o(n9,{})}),o(mt,{})]})}function qY(){const[e,t]=ee.useSetting("canonicalLink");return o(ne,{label:c.__("Set canonical link","wp-rss-aggregator"),minTier:W.Plus,inline:!0,children:o(ye,{checked:e,onChange:t})})}const a9=D.createContext({highlight:[],showOutside:!1,onClick:e=>{}});function WY(e){const[t,r]=D.useState(e.date??new Date);D.useImperativeHandle(e.instanceRef,function(){return{goto:r}});const n=t.getMonth(),a=t.getFullYear(),i=D.useMemo(()=>GY(n,a,r),[n,a,r]),s={highlight:e.highlight??[],showOutside:e.showOutside??!1,onClick:e.onClick??(()=>{})};return o(a9.Provider,{value:s,children:b("div",{className:"flex w-full flex-col gap-4",children:[b("div",{className:"flex flex-row items-center justify-between",children:[o("button",{className:"h-7 w-7 rounded-full text-center leading-6 ring-primary focus-visible:ring-2",onClick:i.gotoPrev,children:o(zi,{})}),b("div",{className:"text-md leading-5",children:[o("span",{className:"mr-1 font-bold",children:i.name}),o("span",{children:i.year})]}),o("button",{className:"h-7 w-7 rounded-full text-center leading-6 ring-primary focus-visible:ring-2",onClick:i.gotoNext,children:o(nn,{})})]}),b("div",{className:"grid grid-cols-7 gap-y-3",children:[["Mon","Tue","Wed","Thu","Fri","Sat","Sun"].map(u=>o("div",{className:"pr-2 text-center text-sm leading-4 text-gray-700",children:u},u)),i.days.map(u=>o(ZY,{date:u,isOutside:u.getMonth()!==n},`${u.toISOString()}`))]})]})})}function GY(e,t,r){const n=new Date(t,e,1,0,0,0,0),a=DN(n),i=(n.getDay()+6)%7,s=(a.getDay()+6)%7,u=a.getDate(),l=i,f=6-s,h=[];for(let p=-l;p<u+f;p++)h.push(bN(n,p));const m=function(){r(Ib(n,-1))},g=function(){r(Ib(n,1))};return{num:e,year:t,name:lo(n,"MMMM"),start:n,end:a,numDays:u,firstDay:i,lastDay:s,days:h,gotoPrev:m,gotoNext:g}}function ZY(e){const t=D.useContext(a9);if(!t.showOutside&&e.isOutside)return null;const r=D.useMemo(()=>XY(e.date,t.highlight),[e.date,t.highlight]);return o("div",{className:"box-content h-7 w-7 "+YY(r),children:o("button",{className:fe("h-7 w-7 rounded-full text-center text-md leading-7 ring-primary focus-visible:ring-2",QY(r),e.isOutside&&"opacity-30"),onClick:()=>t.onClick(e.date),children:e.date.getDate()})})}function YY(e){switch(e){case"start":return"bg-white rounded-tl-full rounded-bl-full pr-2";case"end":return"bg-white rounded-tr-full rounded-br-full";case"single":return"rounded-full";case"inside":return"bg-white pr-2"}return"pr-2"}function QY(e){switch(e){case"start":case"end":case"single":return"bg-primary text-white ring-offset-[2px] hover:bg-primary-dark";case"inside":return"hover:bg-gray-100"}return"hover:bg-gray-100"}function XY(e,t){for(const r of t){const n=JY(e,r);if(n!==!1)return n}return!1}function JY(e,t){t=eQ(t);const r=pi(e),n=Jg(e),a=Ob(r,t[0]),i=Ob(n,t[1]);return a&&i?"single":a?"start":i?"end":r>t[0]&&n<t[1]?"inside":!1}function eQ(e){return e[0]<e[1]?[pi(e[0]),Jg(e[1])]:[pi(e[1]),Jg(e[0])]}function tQ(e,t,r){const[n,a]=D.useState(e);return t===void 0?[n,a]:[t,r??(()=>null)]}const rQ=[{value:"0",label:c.__("January","wp-rss-aggregator")},{value:"1",label:c.__("February","wp-rss-aggregator")},{value:"2",label:c.__("March","wp-rss-aggregator")},{value:"3",label:c.__("April","wp-rss-aggregator")},{value:"4",label:c.__("May","wp-rss-aggregator")},{value:"5",label:c.__("June","wp-rss-aggregator")},{value:"6",label:c.__("July","wp-rss-aggregator")},{value:"7",label:c.__("August","wp-rss-aggregator")},{value:"8",label:c.__("September","wp-rss-aggregator")},{value:"9",label:c.__("October","wp-rss-aggregator")},{value:"10",label:c.__("November","wp-rss-aggregator")},{value:"11",label:c.__("December","wp-rss-aggregator")}];function nQ({value:e,onChange:t,showCalendar:r=!1}){const[n,a]=tQ(new Date,e,t),i=n.getMonth().toString(),s=n.getDate().toString(),u=n.getFullYear().toString();function l(g){const p=parseInt(g),w=RT(n,p);a(w)}function f(g){if(g!==null){const p=UT(n,g);a(p)}}function h(g){if(g!==null){const p=KT(n,g);a(p)}}function m(g){g&&a(g)}return b("div",{className:"flex flex-col items-stretch gap-3",children:[b("div",{className:"flex flex-row gap-1",children:[o(He.Simple,{options:rQ,value:i,onSelect:l,className:"flex-1"}),o(It,{value:s,onChange:f,className:"w-20"}),o(It,{value:u,onChange:h,className:"w-20"})]}),r&&o("div",{className:"flex w-full flex-col items-center",children:o(WY,{date:n,highlight:[[n,n]],onClick:m,showOutside:!0})})]})}function aQ(e){const{value:t=new Date,onChange:r,...n}=e,a=FT(t,{representation:"date"});return o(tt,{type:"time",value:lo(t,"HH:mm"),onChange:function(i){e.onChange?.(new Date(`${a} ${i}`))},...n})}function i9(e){const t=D.useId(),[r,n]=D.useState(!1),a=e.value?new Date(e.value):null,i=D.useMemo(function(){return a?lo(a,"MMM d, Y KK:mm a"):e.hasStateAlready?c.__("Immediately","wp-rss-aggregator"):c.__("Never","wp-rss-aggregator")},[a,e.hasStateAlready]);return b(ie,{children:[b("div",{className:"flex flex-row items-center justify-between gap-2",children:[o(ai,{htmlFor:t,children:e.label}),o(oa,{id:t,variant:r&&a!==null?"secondary":"text",onClick:function(){a===null?(e.onChange?.(new Date().toISOString()),n(!0)):n(s=>!s)},children:i})]}),r&&a&&b("div",{className:"flex w-full flex-col gap-4",children:[b("div",{children:[o("div",{className:"mb-2 text-md leading-4",children:c.__("Time","wp-rss-aggregator")}),o(aQ,{value:a,onChange:function(s){e.onChange(s.toISOString())}})]}),b("div",{children:[o("div",{className:"mb-2 text-md leading-4",children:c.__("Date","wp-rss-aggregator")}),o(nQ,{value:a,onChange:function(s){e.onChange(s.toISOString())},showCalendar:!0})]}),b("div",{className:"flex flex-row justify-end gap-1 pr-2",children:[o(_r,{onClick:()=>e.onChange(null),children:c.__("Reset","wp-rss-aggregator")}),o(Ne,{onClick:()=>n(!1),children:c.__("Save","wp-rss-aggregator")})]})]})]})}function iQ(){const[e,t]=ee.useSetting("futureActivate"),[r]=ee.useSource();return o(i9,{label:c.__("Activate feed","wp-rss-aggregator"),value:e,onChange:t,hasStateAlready:r.isActive})}function oQ(){const[e,t]=ee.useSetting("futurePause"),[r]=ee.useSource();return o(i9,{label:c.__("Pause feed","wp-rss-aggregator"),value:e,onChange:t,hasStateAlready:!r.isActive})}function sQ(){const[e,t]=ee.useSetting("linkToEnclosure");return o(ne,{label:c.__("Link to enclosure","wp-rss-aggregator"),inline:!0,children:o(ye,{checked:e,onChange:t})})}const uQ=[{value:"standard",label:"Standard"},{value:"link",label:"Link"},{value:"quote",label:"Quote"},{value:"status",label:"Status"},{value:"audio",label:"Audio"},{value:"image",label:"Image"},{value:"video",label:"Video"},{value:"gallery",label:"Gallery"},{value:"aside",label:"Aside"},{value:"chat",label:"Chat"}];function lQ(){const[e,t]=ee.useSetting("postFormat");return o(ne,{label:c.__("Post format","wp-rss-aggregator"),help:c.__("Set the post format for imported items. Post Formats are a piece of meta information that can be used by your theme to customize its presentation of a post.","wp-rss-aggregator"),minTier:W.Plus,children:o(He.Simple,{options:uQ,value:e,onSelect:t})})}function cQ(){const[e,t]=ee.useSetting("uniqueTitles");return o(ne,{label:c.__("Block duplicate titles","wp-rss-aggregator"),children:o(He.Simple,{value:e?"1":"0",onSelect:function(r){t(!!Number(r))},options:[{value:"0",label:"No"},{value:"1",label:"Yes"}]})})}function dQ(){const[e,t]=ee.useSetting("ageLimit"),[r,n]=ee.useSetting("ageLimitUnit"),i=[{value:"days",label:c._n("day","days",e,"wp-rss-aggregator")},{value:"weeks",label:c._n("week","weeks",e,"wp-rss-aggregator")},{value:"months",label:c._n("month","months",e,"wp-rss-aggregator")},{value:"years",label:c._n("year","years",e,"wp-rss-aggregator")}].find(s=>s.value===r)?.label??"";return o(ne,{label:c.__("Limit the number of stored items by age","wp-rss-aggregator"),children:o(It,{className:"w-full",value:e||"",unit:i,unitOptions:fQ(e),placeholder:c.__("No limit","wp-rss-aggregator"),min:0,onChange:s=>t(s||0),onChangeUnit:s=>n(s)})})}function fQ(e){return[{value:"days",label:c._n("day","days",e,"wp-rss-aggregator")},{value:"weeks",label:c._n("week","weeks",e,"wp-rss-aggregator")},{value:"months",label:c._n("month","months",e,"wp-rss-aggregator")},{value:"years",label:c._n("year","years",e,"wp-rss-aggregator")}]}function gQ(){const[e]=ee.useSetting("postType"),t=e==="wprss_feed_item";return b(ie,{children:[b(Pe.Section,{children:[!t&&o(lQ,{}),o(cQ,{}),o(sQ,{}),o(qY,{}),o(dQ,{})]}),o(mt,{}),o(Pe.Section,{children:o(iQ,{})}),o(mt,{}),o(Pe.Section,{children:o(oQ,{})}),o(mt,{})]})}function hQ(){const[e,t]=ee.useSetting("deDupeFtImage");return o(ne,{label:c.__("Hide featured image in content","wp-rss-aggregator"),minTier:W.Plus,inline:!0,children:o(ye,{checked:e,onChange:t})})}function pQ(){const[e,t]=ee.useSetting("fallbackFtImageId"),{data:r,isFetching:n}=q.wp.getMediaUrl.with(e).useQuery("",[e],{refetchOnWindowFocus:!1});async function a(i){i.preventDefault();const s=await Mn.wpMedia({title:c.__("Fallback image","wp-rss-aggregator"),button:{text:c.__("Select image","wp-rss-aggregator")}});t(s[0]??null)}return b(ne,{label:c.__("Fallback image","wp-rss-aggregator"),help:c.__("The fallback image will be used if no featured image is found in the feed.","wp-rss-aggregator"),minTier:W.Basic,children:[e<=0&&o(Gb,{onClick:a}),e>0&&b(ie,{children:[o(De,{enabled:n,className:"aspect-square w-full",animate:!0,children:o(lt,{content:c.__("Change image","wp-rss-aggregator"),children:o(lt.Anchor,{children:(i,s)=>o("button",{ref:i,...s,className:"appearance-none ring-primary focus-visible:ring-2",onClick:a,children:r.length>0&&o("img",{src:r,alt:c.__("Fallback featured image","wp-rss-aggregator")})})})})}),o("div",{className:"flex flex-row justify-end gap-2",children:o($i,{onClick:()=>t(0),children:c.__("Remove","wp-rss-aggregator")})})]})]})}function mQ(){const[e,t]=ee.useSetting("minImageSize");function r(n){t({...e??{width:0,height:0},height:n??0})}return o(ne,{label:c.__("Minimum height","wp-rss-aggregator"),minTier:W.Basic,children:o(It,{className:"w-full",value:e?.height,onChange:r,unit:c.__("px","wp-rss-aggregator"),placeholder:"--",min:1})})}function vQ(){const[e,t]=ee.useSetting("minImageSize");function r(n){t({...e??{width:0,height:0},width:n??0})}return o(ne,{label:c.__("Minimum width","wp-rss-aggregator"),minTier:W.Basic,children:o(It,{className:"w-full",value:e?.width??0,onChange:r,unit:c.__("px","wp-rss-aggregator"),placeholder:"--",min:1})})}function bQ(){const[e,t]=ee.useSetting("downloadAllImgSizes");return o(ne,{label:c.__("Import all sizes","wp-rss-aggregator"),minTier:W.Plus,inline:!0,children:o(ye,{checked:e,onChange:t})})}function wQ(){const[e,t]=ee.useSetting("assignFtImage");return o(ne,{label:c.__("Import featured image","wp-rss-aggregator"),minTier:W.Basic,inline:!0,children:o(ye,{checked:e,onChange:t})})}function yQ(){const[e,t]=ee.useSetting("downloadImages");return o(ne,{label:c.__("Import images to media library","wp-rss-aggregator"),help:c.__("Check this box to import the images from the post into your local media library. Unchecking this has no effect on featured images.","wp-rss-aggregator"),minTier:W.Basic,inline:!0,children:o(ye,{checked:e,onChange:t})})}function xQ(){const[e,t]=ee.useSetting("mustHaveFtImage");return o(ne,{label:c.__("Ignore posts without a featured image","wp-rss-aggregator"),minTier:W.Plus,inline:!0,children:o(ye,{checked:e,onChange:t})})}const o9=[{value:"auto",label:c.__("Auto detect best image","wp-rss-aggregator")},{value:"content_best",label:c.__("Best image in content","wp-rss-aggregator")},{value:"content_first",label:c.__("First image in content","wp-rss-aggregator")},{value:"content_last",label:c.__("Last image in content","wp-rss-aggregator")},{value:"itunes",label:c.__("iTunes image","wp-rss-aggregator")},{value:"media",label:c.__("Media image","wp-rss-aggregator")},{value:"enclosure",label:c.__("Enclosure image","wp-rss-aggregator")},{value:"social",label:c.__("Social media image","wp-rss-aggregator")},{value:"feed",label:c.__("Feed channel image","wp-rss-aggregator")},{value:"user",label:c.__("Fallback image","wp-rss-aggregator")}];function _Q(){const[e,t]=ee.useSetting("whichFtImage"),[r]=ee.useSetting("postType"),n=r==="wprss_feed_item";function a(s){_k(s)?t(s):console.warn(`Invalid value for whichFtImage: ${s}`)}const i=n?[{value:"no_image",label:c.__("No featured image","wp-rss-aggregator")},...o9]:o9;return o(ne,{label:c.__("Featured image to use","wp-rss-aggregator"),minTier:W.Basic,children:o(He.Simple,{options:i,value:e,onSelect:a})})}function CQ(){const[e]=ee.useSetting("postType"),t=e==="wprss_feed_item";return b(ie,{children:[b(Pe.Section,{children:[o(wQ,{}),o(_Q,{}),o(pQ,{}),b("div",{className:"flex flex-row gap-4",children:[o(vQ,{}),o(mQ,{})]}),o(xQ,{})]}),!t&&b(or,{label:c.__("Content images","wp-rss-aggregator"),tooltip:c.__("These settings apply to images within the content area of each imported item, not the featured image.","wp-rss-aggregator"),bordered:!0,padded:!0,children:[o(yQ,{}),o(hQ,{}),o(bQ,{})]})]})}function SQ(){const[e]=st.useSetting("scApiKey"),t=se().isAtLeast(W.Elite),r=(e??"").trim().length>0,n=!t||!r,[a,i]=ee.useSetting("scEnableContent"),[s,u]=ee.useSetting("scEnableTitle"),[l,f]=ee.useSetting("scRevisions");return b("div",{className:"flex h-full flex-1 flex-col justify-between",children:[b("div",{children:[b(Pe.Section,{children:[o("p",{className:"mt-4 text-sm leading-4 text-gray-700",children:o(We,{children:c.__("*Note*: The preview shows the original content from the feed source. Rewriting and SpinnerChief word usage are only applied upon importing the content.","wp-rss-aggregator")})}),o(ne,{label:c.__("Rewrite the content","wp-rss-aggregator"),disabled:n,inline:!0,children:o(ye,{checked:a,onChange:i})}),o(ne,{label:c.__("Rewrite the title","wp-rss-aggregator"),disabled:n,inline:!0,children:o(ye,{checked:s,onChange:u})}),o(ne,{label:c.__("Post revisions","wp-rss-aggregator"),disabled:n,inline:!0,children:o(ye,{checked:l,onChange:f})})]}),o(or,{label:c.__("API settings","wp-rss-aggregator"),bordered:!0,padded:!0,children:o("p",{className:"text-md leading-4 text-gray-700",children:o(We,{urls:{account:"https://spinnerchief.com/api/index#Paraphraser"},linkProps:{target:"_blank"},children:c.__("The SpinnerChief API settings can be managed by logging into your [SpinnerChief API account][account].","wp-rss-aggregator")})})})]}),t&&!r&&o(sp,{type:"error",icon:o(ss,{}),children:o("p",{children:o(We,{urls:{settings:_t.page("integrations",{tab:"spinnerchief"})},linkProps:{variant:"secondary"},children:c.__("Your Spinner Chief API key hasn’t been set up yet. [Click here][settings] to get started.","wp-rss-aggregator")})})})]})}function EQ(e){const t=ya(e.taxonomy,"singular").toLowerCase(),r=ya(e.taxonomy,"plural").toLowerCase();return b(ie,{children:[o(ne,{label:c._x("Choose a method","Source > Advanced > Category rule","wp-rss-aggregator"),children:o(AQ,{taxonomy:e.taxonomy,rule:e.rule,onChange:e.onChange})}),e.rule.assign&&e.rule.import&&o("p",{className:"text-md leading-4 text-gray-700",children:o(We,{children:c.sprintf(c._x("*Note*: Both the %s imported from the source and the %s selected from your site will be applied to each imported item.","%s = plural taxonomy name","wp-rss-aggregator"),r)})}),e.rule.assign&&o(ne,{label:c.sprintf(c._x("Select %s","%s = taxonomy plural name","wp-rss-aggregator"),t),children:o(DQ,{taxonomy:e.taxonomy,values:e.rule.terms,onChange:function(n){e.onChange?.({...e.rule,terms:n})}})}),o(ne,{label:c.__("Apply conditions","wp-rss-aggregator"),inline:!0,children:o(ye,{checked:e.rule.useCondition,onChange:function(n){e.onChange?.({...e.rule,useCondition:n})}})}),e.rule.useCondition&&o(Pg,{isAnd:!1,system:Q.taxonomies.condSys,conditions:e.rule.conditions,onChange:function(n){n=n.filter(a=>a.exprs.length>0),e.onChange?.({...e.rule,conditions:n})}})]})}function AQ(e){let t="assign";e.rule.import&&e.rule.assign?t="both":e.rule.import&&(t="import");const r=D.useMemo(function(){return[{value:"assign",label:c.sprintf(c._x("Use %s from this site","%s = taxonomy plural name","wp-rss-aggregator"),ya(e.taxonomy,"plural").toLowerCase())},{value:"import",label:c.sprintf(c._x("Import %s from the source","%s = taxonomy plural name","wp-rss-aggregator"),ya(e.taxonomy,"plural").toLowerCase())},{value:"both",label:c.__("Both","wp-rss-aggregator")}]},[]);return o(He.Simple,{options:r,value:t,onSelect:function(n){switch(n){case"both":e.onChange?.({...e.rule,import:!0,assign:!0});break;case"import":e.onChange?.({...e.rule,import:!0,assign:!1});break;default:case"assign":e.onChange?.({...e.rule,import:!1,assign:!0});break}}})}function DQ(e){const[t,r]=D.useState(""),n=on(t,400),{data:a,isFetching:i}=q.wp.getTerms.with(e.taxonomy,n).useQuery([],["wp-terms","select",e.taxonomy,n]),s=D.useRef(new Set),u=D.useMemo(function(){return a.map(f=>({value:f.slug,label:f.name}))},[a]),l=ya(e.taxonomy,"plural").toLowerCase();return o(io.Stateless,{text:t,tags:e.values.map(f=>({id:f})),options:u,rightIcon:i?o(_n,{}):null,tagRender:f=>kQ(f,s.current),placeholder:c.sprintf(c._x("Choose %s","%s = taxonomy plural name","wp-rss-aggregator"),l),onChangeText:r,onChangeTags:function(f){const h=f.map(function(m){const g=m.id.toString();return m.extra?.custom&&s.current.add(g),g});e.onChange?.(h)},allowCustom:!0,customOption:f=>({value:f,label:c.sprintf(c._x('Create new "%s"',"%s = taxonomy term name","wp-rss-aggregator"),f),extra:{custom:!0}})})}function kQ(e,t){return b("span",{children:[t.has(e.id.toString())&&"*",e.label??e.id]})}function NQ(e){const t=tn(),r=se().isAtLeast(W.Plus),[n,a]=D.useState(!1),[i,s]=IQ(e.taxonomy),u=n?i.concat([YA()]):i;return b("div",{className:"h-full",children:[o(Pe.Section,{children:o("p",{className:"text-sm leading-4 text-gray-700",children:o(We,{children:c.sprintf(c._x("*Note*: You can set up as many %s rules as you need and apply conditional rules if needed.","%s = plural taxonomy name","wp-rss-aggregator"),ya(e.taxonomy,"plural").toLowerCase())})})}),r&&b(ie,{children:[u.map((l,f)=>o(TQ,{index:f,rule:l,taxonomy:e.taxonomy,onSave:function(h){s(Jt(i,f,1,h)),a(!1)},onDelete:function(){t({variant:"danger",title:c.__("Delete rule?","wp-rss-aggregator"),children:c.__("Are you sure you want to delete this rule?","wp-rss-aggregator"),onConfirm(){n?a(!1):s(Jt(i,f,1))}})}},`rule-${f}`)),u.length===0&&o(mt,{}),o(Pe.Section,{children:o(Ne,{disabled:!r||n,onClick:function(){a(!0)},children:c.sprintf(c._x("Add %s rule","%s = taxonomy singular name","wp-rss-aggregator"),ya(e.taxonomy,"singular").toLowerCase())})}),o(mt,{})]}),!r&&o(mt,{})]})}function TQ(e){const t=D.useRef(null),[r,n]=D.useState(null),a=r??e.rule;return o(or,{impRef:t,label:OQ(e.taxonomy,a,e.index),defaultOpen:!0,bordered:!0,padded:!0,children:b("div",{className:"flex flex-col gap-6",children:[o(EQ,{rule:a,taxonomy:e.taxonomy,onChange:n}),o(HQ,{isDirty:r===null||!Ba(a,e.rule),value:a,onDelete:e.onDelete,onSave:function(){e.onSave?.(a),t.current?.setOpen(!1)}})]})})}function HQ(e){return o("div",{className:"mb-1 flex flex-col gap-4",children:b("div",{className:"flex flex-row flex-nowrap justify-end gap-2",children:[o($i,{onClick:e.onDelete,className:"no-underline",children:c.__("Delete","wp-rss-aggregator")}),o(Ne,{onClick:e.onSave,disabled:!e.isDirty,children:c.__("Save","wp-rss-aggregator")})]})})}function IQ(e){const[t,r]=ee.useSetting("taxonomies"),n=(t??{})[e]??[],a=D.useCallback(function(i){r(s=>({...s,[e]:i}))},[t,r]);return[n,a]}function OQ(e,t,r){let n=[];return t.import&&n.push(c.sprintf(c._x("[Source %s]","%s = plural taxonomy name","wp-rss-aggregator"),ya(e,"plural"))),t.assign&&t.terms.length>0&&(n=n.concat(t.terms)),n.length===0?c.sprintf(c._x("Rule %d","Source taxonomy rule name","wp-rss-aggregator"),r+1):n.join(", ")}const MQ=[{value:"1",label:c.__("Conservative","wp-rss-aggregator")},{value:"2",label:c.__("Regular","wp-rss-aggregator")},{value:"3",label:c.__("Adventurous","wp-rss-aggregator")}];function LQ(){const[e]=st.useSetting("wordAiApiKey"),[t]=st.useSetting("wordAiEmail"),r=se().isAtLeast(W.Elite),n=e&&t,a=!r||!n,[i,s]=ee.useSetting("waiEnableTitle"),[u,l]=ee.useSetting("waiEnableContent"),[f,h]=ee.useSetting("waiRevisions"),[m,g]=ee.useSetting("waiUniqueness"),[p,w]=ee.useSetting("waiSpintax"),[y,_]=ee.useSetting("waiProtectedWords"),[S,H]=ee.useSetting("waiCustomSynonyms");return b("div",{className:"flex h-full flex-1 flex-col justify-between",children:[b("div",{children:[b(Pe.Section,{children:[o("p",{className:"mt-4 text-sm leading-4 text-gray-700",children:o(We,{children:c.__("*Note*: The preview shows the original content from the feed source. Rewriting and WordAi word usage are only applied upon importing the content.","wp-rss-aggregator")})}),o(ne,{label:c.__("Rewrite the content","wp-rss-aggregator"),disabled:a,inline:!0,children:o(ye,{checked:u,onChange:l})}),o(ne,{label:c.__("Rewrite the title","wp-rss-aggregator"),disabled:a,inline:!0,children:o(ye,{checked:i,onChange:s})}),o(ne,{label:c.__("Post revisions","wp-rss-aggregator"),disabled:a,inline:!0,children:o(ye,{checked:f,onChange:h})})]}),b(or,{label:c.__("API settings","wp-rss-aggregator"),bordered:!0,padded:!0,children:[o(ne,{label:c.__("Uniqueness","wp-rss-aggregator"),disabled:!r,children:o(He.Simple,{options:MQ,value:m,onSelect:g,disabled:a})}),o(ne,{label:c.__("Get spintax","wp-rss-aggregator"),disabled:a,inline:!0,children:o(ye,{checked:p,onChange:w})}),o(ne,{label:c.__("Use protected words","wp-rss-aggregator"),disabled:a,inline:!0,children:o(ye,{checked:y,onChange:_})}),o(ne,{label:c.__("Use custom synonyms","wp-rss-aggregator"),disabled:a,inline:!0,children:o(ye,{checked:S,onChange:H})})]})]}),r&&!n&&o(sp,{type:"error",icon:o(ss,{}),children:o("p",{children:o(We,{urls:{settings:_t.page("integrations",{tab:"wordai"})},linkProps:{variant:"secondary"},children:c.__("Your WordAi API key hasn’t been set up yet. [Click here][settings] to get started.","wp-rss-aggregator")})})})]})}const No=D.forwardRef(function(t,r){const{className:n,onChange:a,disabled:i,...s}=t,u=l=>{a?.(l.target.checked)};return o("input",{ref:r,className:fe("form-radio h-5 w-5 cursor-pointer text-primary transition-shadow focus:border-2 focus:border-primary focus:ring-[none] checked:focus:ring-primary",i?"border-gray-400":"border-gray-700",i?"bg-gray-100":"bg-transparent",n),type:"radio",onChange:a&&u,disabled:i,...s})});function VQ(){const[e,t]=ee.useSetting("authorMethod");return b("div",{className:"flex flex-col gap-2 mb-2",children:[o(ne,{label:c.__("Use the default method","wp-rss-aggregator"),inline:!0,children:o(No,{checked:e==="default",onChange:()=>t("default")})}),o(ne,{label:c.__("Create a user for the author","wp-rss-aggregator"),inline:!0,children:o(No,{checked:e==="create",onChange:()=>t("create")})}),o(ne,{label:c.__("Use a fallback user","wp-rss-aggregator"),inline:!0,children:o(No,{checked:e==="fallback",onChange:()=>t("fallback")})})]})}function s9(){const[e,t]=D.useState(""),[r,n]=ee.useSetting("fallbackAuthorId"),[a]=ee.useSetting("whichAuthor"),i=se().isLowerThan(W.Plus),s=on(e,400),{data:u}=q.wp.getUsers.with(s).useQuery([]);function l(m){n(parseInt(m))}const f=[];for(const m of u??[])f.push({value:m.id.toString(),label:m.name});const h=r?.toString()??"0";return o(ne,{label:a==="feed"?c.__("Select existing user as a fallback author","wp-rss-aggregator"):c.__("Select existing user to credit","wp-rss-aggregator"),disabled:i,children:o(He.Search,{value:h,label:u?.find(m=>m.id===r)?.name??"",search:e,onSelect:l,onSearch:t,options:f})})}const PQ=[{value:"0",label:c.__("Credit the fallback user","wp-rss-aggregator")},{value:"1",label:c.__("Do not import the item","wp-rss-aggregator")}];function FQ(){const[e,t]=ee.useSetting("mustHaveAuthor");return o(ne,{label:c.__("If the author is missing from the feed","wp-rss-aggregator"),children:o(He.Simple,{options:PQ,value:e?"1":"0",onSelect:r=>t(r==="1")})})}const BQ=[{value:"feed",label:c.__("Credit the original author","wp-rss-aggregator")},{value:"user",label:c.__("Credit a user on this site","wp-rss-aggregator")}];function RQ(){const[e,t]=ee.useSetting("whichAuthor"),r=se().isLowerThan(W.Plus);function n(a){Sk(a)?t(a):console.warn(`Invalid value for whichAuthor: ${a}`)}return o("label",{className:"w-full","aria-label":c.__("Select which author to use","wp-rss-aggregator"),children:o(He.Simple,{options:BQ,value:e,onSelect:n,disabled:r,className:"w-full"})})}function UQ(){const[e]=ee.useSetting("whichAuthor"),[t]=ee.useSetting("mustHaveAuthor"),[r]=ee.useSetting("authorMethod");return b(ie,{children:[b(Pe.Section,{children:[o(RQ,{}),e==="user"&&o(s9,{})]}),e==="feed"&&b(ie,{children:[b(or,{label:c._x("Credit method","Source > Advanced > Author","wp-rss-aggregator"),defaultOpen:!0,bordered:!0,padded:!0,children:[o("p",{className:"text-sm leading-4 text-gray-700",children:c.__(`If the source feed author isn't an existing user on this site, Aggregator will assign imported items to a new "Source Author" user - the default method. This user will appear as the original author’s name on your site. Alternatively, you can create a new user for each source author or use a single fallback user for all imported items.`,"wp-rss-aggregator")}),o(VQ,{}),o(FQ,{})]}),(!t||r==="fallback")&&o(or,{label:c.__("Fallback user","wp-rss-aggregator"),defaultOpen:!0,bordered:!0,padded:!0,children:o(s9,{})})]})]})}function KQ(e){return e.replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.substring(1).toLowerCase())}function zQ(){const[e]=ee.useSource(),[t,r]=ee.useCurrGroup(),n=D.useMemo(()=>jQ(e.settings.postType),[e.settings.postType]);return o(Iv,{before:o("p",{className:"text-sm leading-4 text-gray-800",children:c.__("Customize your source in detail with advanced settings for more precise content control.","wp-rss-aggregator")}),groups:n,current:t,onSelectGroup:r,buttonRender:a=>o($Q,{group:a},a.id)})}function $Q(e){const[,t]=ee.useCurrGroup(),[r,n]=ee.useHighlightedGroup();return o(si.Item,{icon:e.group.icon,minTier:e.group.minTier,selected:r===e.group.id,onClick:()=>t(e.group.id),onMouseEnter:()=>n(e.group.id),onMouseLeave:()=>n(""),children:e.group.name})}const u9=[{id:"general",name:c.__("General","wp-rss-aggregator"),icon:o(rh,{}),render:()=>o(gQ,{}),keywords:[]},{id:"content",name:c.__("Content","wp-rss-aggregator"),icon:o(Fy,{}),minTier:W.Plus,render:()=>o(SY,{}),keywords:[]},{id:"author",name:c.__("Author","wp-rss-aggregator"),icon:o(Mg,{}),minTier:W.Plus,render:()=>o(UQ,{}),keywords:[]},{id:"excerpt",name:c.__("Excerpt","wp-rss-aggregator"),icon:o(Lg,{}),minTier:W.Basic,render:()=>o(zY,{}),keywords:[]},{id:"images",name:c.__("Images","wp-rss-aggregator"),icon:o(k2,{}),minTier:W.Basic,render:()=>o(CQ,{}),keywords:[]},{id:"date",name:c.__("Date","wp-rss-aggregator"),icon:o(D2,{}),minTier:W.Plus,render:()=>o(LY,{}),keywords:[]},{id:"audio",name:c.__("Audio","wp-rss-aggregator"),icon:o(E2,{}),minTier:W.Plus,render:()=>o(vY,{}),keywords:[]},{id:"attribution",name:c.__("Attribution","wp-rss-aggregator"),icon:o(mL,{}),minTier:W.Plus,render:()=>o(lY,{}),keywords:[]},{id:"full_text",name:c.__("Full Text Service","wp-rss-aggregator"),icon:o($h,{}),minTier:W.Pro,render:()=>o($Y,{}),keywords:[]},{id:"custom_text",name:c.__("Custom Text","wp-rss-aggregator"),icon:o(By,{}),minTier:W.Plus,render:()=>o(NY,{}),keywords:[]},{id:"custom_fields",name:c.__("Custom Mapping","wp-rss-aggregator"),icon:o(vL,{}),minTier:W.Plus,render:()=>o(EY,{}),keywords:[]},{id:"wordai",name:c.__("WordAi","wp-rss-aggregator"),icon:o(jh,{}),minTier:W.Elite,render:()=>o(LQ,{}),keywords:[]},{id:"spinnerchief",name:c.__("SpinnerChief","wp-rss-aggregator"),icon:o(jh,{}),minTier:W.Elite,render:()=>o(SQ,{}),keywords:[]}];function jQ(e){const t=Q.postTypes.find(u=>u.slug===e),r=e==="wprss_feed_item";if(!t)return u9;let n=[...u9];r&&(n=n.filter(u=>u.id==="general"||u.id==="images"));const i=(Q.taxonomies.all.filter(u=>u.postTypes?.includes(t.slug))??[]).map(u=>({id:`tax.${u.slug}`,name:KQ(u.labels.plural),icon:u.slug==="category"?o(Py,{}):o(Ry,{}),render:()=>o(NQ,{taxonomy:u.slug}),minTier:W.Plus,keywords:[]}));return Jt(n,7,0,...i)}function qQ(){const[e,t]=ee.useSetting("commentsOpen");return se().isAtLeast(W.Plus)&&o(ne,{label:c.__("Enable comments","wp-rss-aggregator"),help:c.__("Check this box to enable comments for imported posts from this source.","wp-rss-aggregator"),inline:!0,children:o(ye,{checked:e,onChange:t})})}function WQ(){const[e,t]=ee.useSetting("curatePosts");return b("div",{children:[o(ne,{label:c.__("Curate posts","wp-rss-aggregator"),help:c.__("Check this box if you want to manually approve posts before publishing them on your site.","wp-rss-aggregator"),minTier:W.Basic,padlock:!0,inline:!0,children:o(ye,{checked:e,onChange:t})}),e&&o("p",{className:"text-sm leading-4 text-gray-800",children:c.__("After import, go to your Hub to approve items.","wp-rss-aggregator")})]})}function GQ(e){const[t,r]=ee.useFolders(),[n]=ee.usePrevFolders();return o(ne,{label:e.label??c.__("Folder","wp-rss-aggregator"),minTier:W.Basic,padlock:!0,children:o(V2,{initial:n,values:t,onChange:r})})}function ZQ(){const[e,t]=ee.useSetting("importLimit");return b(ne,{label:c.__("Limit the amount of stored items to:","wp-rss-aggregator"),children:[o(It,{className:"w-full",value:e||"",onChange:Un(t,null,0),placeholder:c.__("No limit","wp-rss-aggregator"),unit:"items",min:1}),o("p",{className:"text-sm text-gray-800 leading-4",children:c.__("When this limit is reached, older items from this source are deleted as new ones are imported.","wp-rss-aggregator")})]})}const YQ=[{value:"publish",label:c.__("Published","wp-rss-aggregator")},{value:"scheduled",label:c.__("Scheduled","wp-rss-aggregator")},{value:"draft",label:c.__("Draft","wp-rss-aggregator")},{value:"pending",label:c.__("Pending","wp-rss-aggregator")},{value:"private",label:c.__("Private","wp-rss-aggregator")},{value:"trash",label:c.__("Trash","wp-rss-aggregator")}];function QQ(){const[e,t]=ee.useSetting("postStatus");return o(ne,{label:c.__("Post status","wp-rss-aggregator"),help:c.__("Select the status for imported posts.","wp-rss-aggregator"),children:o(He.Simple,{options:YQ,value:e,onSelect:t})})}function XQ(){const[e,t]=ee.useSetting("postType"),r=D.useMemo(()=>Q.postTypes.map(n=>({value:n.slug,label:n.labels.singular})),[Q.postTypes]);return o(ne,{label:c.__("Post type","wp-rss-aggregator"),help:c.__("Select the post type for imported feeds. This will impact taxonomy options.","wp-rss-aggregator"),minTier:W.Plus,padlock:!0,children:o(He.Simple,{options:r,value:e,onSelect:t})})}function JQ(){const[e,t]=ee.useSetting("reconcileStrategy");return b("div",{className:"flex flex-col gap-4",children:[b(ai,{className:"flex flex-row justify-between",children:[o("span",{children:c.__("Do not update items","wp-rss-aggregator")}),o(No,{checked:e==="preserve",onChange:()=>t("preserve")})]}),b(ai,{className:"flex flex-row justify-between",children:[o("span",{children:c.__("Keep items up-to-date","wp-rss-aggregator")}),o(No,{checked:e==="overwrite",onChange:()=>t("overwrite")})]}),e==="overwrite"&&o("p",{className:"text-sm leading-4 text-gray-700",children:o(We,{children:c.__("*Note*: By enabling this option, the content of imported items could be updated over time without prior notice.","wp-rss-aggregator")})})]})}function eX(){let[e,t]=ee.useSourceSchedule();switch(e=e??{type:"hourly",hours:1,base:-1},e?.type){case"minute":return o(tX,{schedule:e,onChange:t});default:case"hourly":return o(rX,{schedule:e,onChange:t});case"daily":return o(nX,{schedule:e,onChange:t});case"weekly":return o(aX,{schedule:e,onChange:t});case"monthly":return o(iX,{schedule:e,onChange:t})}}function tX({schedule:e,onChange:t}){return o(ie,{children:o(ne,{inline:!0,label:c.__("Update every","wp-rss-aggregator"),children:o(It,{className:"w-36",value:e.minutes??0,unit:c._n("minute","minutes",e.minutes,"wp-rss-aggregator"),unitOptions:Cu,min:1,onChangeUnit:r=>t(Su(r)),onChange:function(r){t({...e,minutes:r??0})}})})})}function rX({schedule:e,onChange:t}){return o(ie,{children:o(ne,{inline:!0,label:c.__("Update every","wp-rss-aggregator"),children:o(It,{className:"w-36",value:e.hours??0,unit:c._n("hour","hours",e.hours,"wp-rss-aggregator"),unitOptions:Cu,min:1,onChangeUnit:r=>t(Su(r)),onChange:function(r){t({...e,hours:r??0,base:r!==null&&r<2?-1:e.base})}})})})}function nX({schedule:e,onChange:t}){return o(ie,{children:o(ne,{inline:!0,label:c.__("Update every","wp-rss-aggregator"),children:o(It,{className:"w-36",value:e.days??0,unit:c._n("day","days",e.days,"wp-rss-aggregator"),unitOptions:Cu,min:1,onChangeUnit:r=>t(Su(r)),onChange:function(r){t({...e,days:r??0})}})})})}function aX({schedule:e,onChange:t}){return o(ie,{children:o(ne,{inline:!0,label:c.__("Update every","wp-rss-aggregator"),children:o(It,{className:"w-36",value:e.weeks??0,unit:c._n("week","weeks",e.weeks,"wp-rss-aggregator"),unitOptions:Cu,min:1,onChangeUnit:r=>t(Su(r)),onChange:function(r){t({...e,weeks:r??0})}})})})}function iX({schedule:e,onChange:t}){return o(ie,{children:o(ne,{inline:!0,label:c.__("Update every","wp-rss-aggregator"),children:o(It,{className:"w-36",value:e.months??0,unit:c._n("month","months",e.months,"wp-rss-aggregator"),unitOptions:Cu,min:1,onChangeUnit:r=>t(Su(r)),onChange:function(r){t({...e,months:r??0})}})})})}const Cu=[{value:"minute",label:c.__("Minutes","wp-rss-aggregator")},{value:"hourly",label:c.__("Hours","wp-rss-aggregator")},{value:"daily",label:c.__("Days","wp-rss-aggregator")},{value:"weekly",label:c.__("Weeks","wp-rss-aggregator")},{value:"monthly",label:c.__("Months","wp-rss-aggregator")}];c.__("Sunday","wp-rss-aggregator"),c.__("Monday","wp-rss-aggregator"),c.__("Tuesday","wp-rss-aggregator"),c.__("Wednesday","wp-rss-aggregator"),c.__("Thursday","wp-rss-aggregator"),c.__("Friday","wp-rss-aggregator"),c.__("Saturday","wp-rss-aggregator"),Array.from({length:31},(e,t)=>({value:(t+1).toString(),label:(t+1).toString()}));function Su(e){switch(e){default:case"hourly":return{type:"hourly",hours:1,base:-1};case"minute":return{type:"minute",minutes:1,base:-1};case"daily":return{type:"daily",days:1,time:-1};case"weekly":return{type:"weekly",weeks:1,day:-1,time:-1};case"monthly":return{type:"monthly",months:1,day:-1,time:-1}}}function l9(e){const{value:t,icon:r,onChange:n,onValidate:a,placeholder:i,onGetFeedName:s,variantWrapperClass:u,...l}=e,[f,h]=D.useState(null),m=p=>{t!==p&&(n?.(p),h(null))};async function g(){const p=(t??"").trim();p.endsWith("/")&&p.slice(0,-1);const w=await q.importer.findRssFeeds.call(p),y=w.length>0;return h(y),a?.(p,y),s?.(y?w[0].title:null),w.map(_=>({value:_.url,label:_.title,render:b("span",{className:"text-md",children:[o("span",{className:"font-bold",children:_.title}),o("span",{className:"mx-1 text-gray-900",children:"│"}),o("span",{children:c.sprintf(c._n("%d item","%d items",_.numItems,"wp-rss-aggregator"),_.numItems)})]})}))}return o("div",{className:fe("relative inline-flex flex-col items-stretch",u),children:o(fi.TextInputAsync,{...l,queryFn:g,queryKey:["findRssFeeds"],value:t,placeholder:i??"https://",noOptionsMsg:b("div",{className:"flex flex-row items-center gap-1.5 px-2 py-1 text-md leading-4 text-gray-700",children:[o(ts,{size:20}),o("span",{children:c.__("No feeds found.","wp-rss-aggregator")})]}),onChange:m,iconFn:p=>oX(t??"",f,p,e.icon)})})}function oX(e,t,r,n){const a=e.trim().length>0;return r?o(_n,{}):!a||t===null?n:t?o(rs,{className:"text-alert-green"}):o(lt,{content:c.__("This RSS feed contains errors, but may still work with Aggregator. Click to learn more.","wp-rss-aggregator"),children:o("a",{className:"block leading-4",href:"https://validator.w3.org/feed/check.cgi?url="+encodeURIComponent(e.trim()),target:"_blank",rel:"noreferrer",children:o(sX,{})})})}function sX(){const e=Jr();return o(fr,{ref:e.ref,className:"text-accent",...e.props,size:20})}function uX(){const[e,t]=ee.useSourceUrl(),[,r]=ee.useIsValidUrl();async function n(a){a!==e&&(t(a),r(!1))}return o(ne,{label:c.__("Source Link","wp-rss-aggregator"),children:o(l9,{className:"w-full",value:e,onChange:n,onValidate:(a,i)=>r(i)})})}const c9=[{value:"",label:c.__("Current site","wp-rss-aggregator")}];for(const e of Q.sites)e.path!=="/"&&c9.push({value:e.id.toString(),label:e.path});function lX(){const[e,t]=ee.useSetting("postSite"),[r]=ee.useSetting("postType");return r==="wprss_feed_item"?null:o(ne,{label:c.__("Post to site","wp-rss-aggregator"),children:o(He.Simple,{options:c9,value:e?.toString()??"",onSelect:function(n){t(n===""?null:parseInt(n))}})})}function cX(){const[e]=ee.useSetting("postType"),t=e==="wprss_feed_item",r=se().isLowerThan(W.Plus),n=Q.isBlackFridayActive&&se().isLowerThan(W.Basic)?"https://www.wprssaggregator.com/upgrade/?utm_source=plugin&utm_medium=upsell&utm_campaign=BF25&utm_content=details-tab":"https://www.wprssaggregator.com/pro-plan/?utm_source=plugin&utm_medium=upsell&utm_campaign=sources&utm_content=details-tab",a=Q.isBlackFridayActive&&se().isLowerThan(W.Basic)?c.__("Upgrade — Up to 40% OFF","wp-rss-aggregator"):c.__("Upgrade Now","wp-rss-aggregator");return b("div",{className:"flex h-full flex-col",children:[b("div",{className:"flex flex-shrink-0 flex-col gap-8 overflow-auto rounded-b-2xl bg-light p-8",children:[o(uX,{}),o(ZQ,{}),o(WQ,{})]}),b(Pe.Section,{children:[r&&o(L2,{title:c.__("Turn feed items into posts","wp-rss-aggregator"),videoURL:`${Q.urls.assets.imgs}/upgrade/posts.webm`,upgradeURL:n,upgradeBTNText:a,children:c.__("Go beyond displaying feed items — import and curate full content and publish it as SEO-optimized WordPress posts.","wp-rss-aggregator")}),o(XQ,{}),!t&&o(QQ,{}),Q.isMultiSite&&Q.isMainSite&&o(lX,{}),o(GQ,{}),!t&&o(qQ,{})]}),b(or,{label:c.__("Update strategy","wp-rss-aggregator"),bordered:!0,defaultOpen:!0,padded:!0,children:[o("p",{className:"text-sm leading-4 text-gray-800",children:c.__("Set how frequently this source should check for new items available in its RSS feed.","wp-rss-aggregator")}),o(eX,{}),o(mt,{className:"my-4"}),o("p",{className:"text-sm leading-4 text-gray-800",children:o(We,{urls:{docs:"https://www.wprssaggregator.com/help/update-strategy/#h-update-options"},linkProps:{variant:"primary",target:"_blank"},children:c.__("Set whether the already imported items’ content is updated with every fetch or not. [Learn more][docs].","wp-rss-aggregator")})}),o(JQ,{})]})]})}function dX(){const[e,t]=D.useState(!1),r=ee.useReset(),n=Ii(),a=n.id?parseInt(n.id):null,[i]=ee.useIsDirty();Od({condition:i,title:c.__("Are you sure?","wp-rss-aggregator"),children:c.__("You have unsaved changes. If you leave now, your changes will be lost.","wp-rss-aggregator"),yesBtnText:c.__("Leave","wp-rss-aggregator"),noBtnText:c.__("Stay","wp-rss-aggregator"),variant:"danger"});const s=q.useErrorHandler();return D.useLayoutEffect(()=>{a?(t(!1),q.sources.getById.call(a).then(r).catch(s).finally(()=>t(!0))):t(!0)},[a]),e?o(fX,{}):o(wf,{debounce:500})}function fX(){const[e,t]=ee.useCurrTab(),[,r]=ee.useCurrGroup();return o(jf,{topbar:b(ie,{children:[o(tL,{}),o(gi,{className:"px-9"})]}),sidebar:o(Pe,{tabs:pX,currTab:e,onTabChange:function(n){t(n),r("")},children:o(gX,{tab:e})}),content:o(hX,{view:e})})}const gX=Zl("tab",{details:cX,automations:SH,advanced:zQ}),hX=Zl("view",{_default:sL,advanced:zM}),pX=[{id:"details",icon:o(U2,{}),label:c.__("Details","wp-rss-aggregator"),minTier:W.Free},{id:"automations",icon:o(R2,{}),label:c.__("Automations","wp-rss-aggregator"),minTier:W.Basic},{id:"advanced",icon:o(rh,{}),label:c.__("Advanced","wp-rss-aggregator"),minTier:W.Free}],mX=D.forwardRef(function(t,r){const{id:n,disabled:a,onChange:i,indeterminate:s,className:u,...l}=t,f=Ln(n,a),[h,m]=Vv(s,t.checked);return o("input",{ref:en(r,h),type:"checkbox",className:"relative box-border h-5 w-9 cursor-pointer appearance-none rounded-full border border-black text-primary transition-all before:pointer-events-none before:absolute before:left-[3px] before:top-[3px] before:block before:h-[12px] before:w-[12px] before:rounded-full before:bg-black before:transition-all before:content-empty checked:border-primary checked:bg-primary checked:before:left-[18px] checked:before:bg-white indeterminate:border-primary indeterminate:bg-primary indeterminate:before:left-[11px] indeterminate:before:bg-white focus:ring-2 focus:ring-primary focus:ring-offset-2 "+(u??""),onChange:m(i),...l,...f})});function d9(e,t){const r=setInterval(t,e);return()=>clearInterval(r)}function kd({interval:e,children:t,enabled:r}){const[n,a]=D.useState(1),i=()=>a(s=>s*-1);return D.useEffect(function(){if(r)return d9(e,i)},[e,t,r]),o(ie,{children:t(n)})}const vX=[{id:"name",label:c.__("Name","wp-rss-aggregator"),sortable:!0,component:yX,className:"min-w-[200px] w-[500px]"},{id:"displays",label:c.__("Displays","wp-rss-aggregator"),component:xX,className:"w-[250px]"},{id:"status",label:c.__("Updates","wp-rss-aggregator"),component:CX,className:"min-w-[200px] w-[200px]"},{id:"items",label:c.__("Imported Items","wp-rss-aggregator"),component:_X,className:"min-w-[160px] w-[160px]"},{id:"toggle",label:c.__("State","wp-rss-aggregator"),component:SX,className:"pl-6"}];function bX(e){const[t,r]=D.useState(new Set),n=ee.useReset(),a=ue.useReset(),i=tn(),s=lr(),u=xn(),l=se().isAtLeast(W.Pro),f=Array.from(t),h=q.batch([q.sources.deleteManyByIds.with(f),q.wpPosts.deleteFromSources.with(f),l?q.irPosts.deleteFromSources.with(f):q.noop]).useMutation({onSuccess([H,L,O]){q.client.invalidateQueries(["sources"]),q.client.invalidateQueries(["wpPosts"]),q.client.invalidateQueries(["irPosts"]),f.forEach(j=>{const R=e.sources?.find(M=>M.id===j);let K=(O??0)+(L??0)+(H??0);R&&u.add({content:f9(K,R),ttl:3e3})})}});async function m(){if(t.size!==1)return;const[H]=t.entries().next().value,L=e.sources?.find(j=>j.id===H);if(!L)return;const O=structuredClone(L);O.id=null,O.url="",O.name=c.sprintf(c._x("%s (copy)","Used when a source is duplicated. %s = original source name","wp-rss-aggregator"),L.name),n(O),s("source-edit")}function g(){t.size!==0&&i({title:c.sprintf(c._n("Delete source?","Delete %d sources?",t.size,"wp-rss-aggregator"),t.size),children:c.__("This action cannot be undone.","wp-rss-aggregator"),variant:"danger",yesBtnText:c.__("Delete","wp-rss-aggregator"),noBtnText:c.__("Cancel","wp-rss-aggregator"),onConfirm(){h.mutate()}})}function p(){t.size!==0&&(a({id:null,name:c.__("New display","wp-rss-aggregator"),sources:Array.from(t),folders:[],settings:Sl}),s("display-edit"))}const w=se().isAtLeast(W.Basic),y=oo(),_=D.useMemo(()=>({id:0,name:"",sourceIds:Array.from(t)}),[t]);function S(H){e.sortBy===H?e.onSort(H,e.order==="asc"?"desc":"asc"):e.onSort(H,"asc")}return o(Yl,{columns:vX,items:e.sources,itemId:H=>H.id,isLoading:e.isLoading,sortBy:e.sortBy,order:e.order,onSort:S,selection:t,onSelect:r,actions:[{id:"duplicate",render:()=>t.size===1&&b(St,{size:"sm",onClick:m,children:[o(Ql,{className:"text-accent"}),c.__("Duplicate (settings only)","wp-rss-aggregator")]})},{id:"create-display",render:()=>b(St,{size:"sm",onClick:p,children:[o(Z2,{className:"text-accent"}),c.__("Create Display","wp-rss-aggregator")]})},{id:"create-folder",render:()=>w&&b(St,{size:"sm",onClick:()=>y.new(_),children:[o(Gl,{className:"text-accent"}),c.__("Group in a folder","wp-rss-aggregator")]})},{id:"delete",render:()=>b(St,{size:"sm",onClick:g,children:[o(Dn,{className:"text-accent"}),c.__("Delete","wp-rss-aggregator")]})}]})}const wX={slug:"",labels:{singular:c.__("Unknown","wp-rss-aggregator"),plural:c.__("Unknown","wp-rss-aggregator")}};function yX({item:e}){const t=se();let r=null;e.settings.postSite!==null&&(r=Q.sites.find(a=>a.id===e.settings.postSite)??null);const n=Q.postTypes.find(a=>a.slug===e.settings.postType)??wX;return b("div",{children:[b("div",{className:"flex items-center gap-1 text-md leading-5",children:[o(Ae,{className:"font-semibold",href:_t.page("source-edit",{id:e.id}),children:e.name}),t.isAtLeast(W.Plus)&&o(Fa,{color:"light",size:"sm",children:n.labels.plural.toLowerCase()}),r&&b("div",{className:"flex items-center gap-0.5 text-gray-800",children:[o(nn,{size:20}),o("span",{children:r.name})]})]}),e.rels?.folders&&e.rels.folders.length>0&&b("div",{className:"mt-1 flex flex-row gap-1 text-sm leading-4 text-gray-700",children:[o("span",{children:c._n("Folder:","Folders:",e.rels.folders.length,"wp-rss-aggregator")}),e.rels.folders.map(a=>o(W2,{folder:a,variant:"none",className:"underline focus-visible:text-primary",tabIndex:0},a))]})]})}function xX({item:e}){return e.rels?.displays?.length?o("div",{className:"flex flex-col",children:e.rels?.displays?.map(t=>o(Ae,{href:_t.page("display-edit",{id:t.id}),children:t.name},t.id))}):o("span",{children:"–"})}function _X({item:e,isLoading:t}){const r=se(),n=e.rels?.imported??0,a=e.rels?.pending??0,i=n>0||a>0;return t?o(_n,{}):b("div",{className:"flex flex-col gap-1",children:[!i&&o("span",{children:"–"}),n>0&&o(Ae,{href:_t.postsForSrc(e.id,e.settings.postType??"wprss_feed_item"),target:"_self",children:c.sprintf(c._n("%d item","%d items",n,"wp-rss-aggregator"),n)}),r.isAtLeast(W.Pro)&&a>0&&o(Ae,{href:_t.page("hub"),children:c.sprintf(c._n("%d pending","%d pending",a,"wp-rss-aggregator"),a)}),b("div",{className:"text-xs leading-4 text-gray-700",children:[o(EX,{source:e})," │ ",o(AX,{source:e})]})]})}function CX({item:e}){return D.useEffect(function(){return d9(5e3,function(){q.client.invalidateQueries(["sources"])})}),b("div",{className:"flex flex-row items-start justify-between gap-2",children:[!e.lastError&&b("div",{className:"flex flex-col gap-1 text-xs leading-4 text-gray-700",children:[o("p",{children:o(kd,{interval:1e3,enabled:e.isActive,children:function(){if(!e.nextUpdate||!e.isActive)return null;const t=new Date(e.nextUpdate);return t<new Date?c.__("Next update: now","wp-rss-aggregator"):c.sprintf(c.__("Next update: %s","wp-rss-aggregator"),cc(t,{addSuffix:!0}))}})}),o("p",{children:o(kd,{interval:1e3,enabled:e.isActive,children:()=>e.lastUpdate&&c.sprintf(c.__("Last updated: %s","wp-rss-aggregator"),cc(new Date(e.lastUpdate),{addSuffix:!0}))})})]}),e.lastError&&e.nextUpdate&&b("div",{className:"flex flex-col gap-1 text-xs leading-4 text-gray-700",children:[b("p",{children:[o(ss,{className:"text-alert-red pr-1",size:18}),o(kd,{interval:1e3,enabled:e.isActive,children:()=>e.lastUpdate&&c.sprintf(c.__("Last updated: %s","wp-rss-aggregator"),cc(new Date(e.lastUpdate),{addSuffix:!0}))})]}),b("p",{children:[o(fr,{className:"text-gray-800 pr-1",size:18}),o(kd,{interval:5e3,enabled:e.isActive,children:()=>e.nextUpdate&&c.sprintf(c.__("Trying again in %s","wp-rss-aggregator"),cc(new Date(e.nextUpdate)))})]})]})]})}function SX({item:e}){const t=q.sources.save.useMutation({onSuccess(){q.client.invalidateQueries(["sources"])}});async function r(n){e.isActive=n,t.mutate([e])}return o("div",{className:"flex flex-row items-start justify-between gap-2",children:o(mX,{checked:e.isActive,onChange:r,"aria-label":c.sprintf(e.isActive?c.__("Pause source %s","wp-rss-aggregator"):c.__("Activate source %s","wp-rss-aggregator"),e.name)})})}function EX(e){const t=xn(),r=q.importer.importById.useMutation({onSuccess(){q.client.invalidateQueries(["sources"]),q.client.invalidateQueries(["wpPosts"]),q.client.invalidateQueries(["irPosts"])}});async function n(){const a=`src-table/${e.source.id}/import-items`;t.add({id:a,dismissible:!1,content:c.sprintf(c.__("Importing items for %s...","wp-rss-aggregator"),e.source.name)});try{const i=await r.mutateAsync([e.source.id]);t.add({content:DX(i.length,e.source),ttl:3e3})}finally{setTimeout(()=>t.dismiss(a),100)}}return o(Ae,{variant:"none",className:"text-alert-green hover:underline focus-visible:underline aria-[disabled=true]:cursor-wait aria-[disabled=true]:text-gray-700",onClick:n,disabled:r.isLoading,children:c._x("Fetch","Link in sources page to fetch items","wp-rss-aggregator")})}function AX(e){const t=xn(),r=tn(),n=se().isAtLeast(W.Pro),a=q.batch([q.wpPosts.deleteFromSources.with([e.source.id]),n?q.irPosts.deleteFromSource.with(e.source.id):q.noop]).useMutation({onSuccess([s,u]){q.client.invalidateQueries(["sources"]),q.client.invalidateQueries(["wpPosts"]),q.client.invalidateQueries(["irPosts"]),t.add({content:f9(s+(u??0),e.source),ttl:3e3})},onSettled(){t.dismiss(`src-table/${e.source.id}/deleting-items`)}});function i(){r({title:c.__("Delete items","wp-rss-aggregator"),children:c.sprintf(c.__("Are you sure you want to delete all items imported by %s?","wp-rss-aggregator"),e.source.name),variant:"danger",yesBtnText:c.__("Delete items","wp-rss-aggregator"),noBtnText:c.__("Cancel","wp-rss-aggregator"),onConfirm(){t.add({id:`src-table/${e.source.id}/deleting-items`,dismissible:!1,content:c.sprintf(c.__("Deleting items imported by %s...","wp-rss-aggregator"),e.source.name)}),a.mutate()}})}return o(Ae,{variant:"none",className:"text-alert-red hover:underline focus-visible:underline aria-[disabled=true]:cursor-wait aria-[disabled=true]:text-gray-700",onClick:i,disabled:a.isLoading,children:c._x("Delete","Link in sources page to delete items","wp-rss-aggregator")})}function DX(e,t){return e===0?c.sprintf(c.__("%s is already up to date.","wp-rss-aggregator"),t.name):c.sprintf(c._nx("Imported %d new item from %s.","Imported %d new items from %s.",e,"Notification text after importing items for a source.","wp-rss-aggregator"),e,t.name)}function f9(e,t){return e===0?c.sprintf(c.__("There are no items to delete for %s.","wp-rss-aggregator"),t.name):c.sprintf(c._nx("Deleted %d item from %s.","Deleted %d items from %s.",e,"Notification text after deleting items for a source.","wp-rss-aggregator"),e,t.name)}const up=20;function kX(){const[e,t]=D.useState(1),[r,n]=D.useState(""),a=on(r,500),[i,s]=D.useState("asc");function u(y,_){s(_)}const{data:[l,f,h,m],isLoading:g}=q.batch([q.sources.getList.with(a,up,e,i),q.sources.getCount,q.sources.getCountErred,q.rels.getSourceRels.with(q.result(0))]).useQuery([[],0,0,{}],["sources","page",a,up,e,i]),p=D.useMemo(()=>F2(l,m),[l,m]),w=!g&&l.length===0&&a==="";return o(Xl,{total:f,currPage:e,perPage:up,onChangePage:t,search:r,onChangeSearch:n,displaySearch:!w,topbar:b(ie,{children:[o(Br,{title:c.__("Sources","wp-rss-aggregator"),icon:o(ao,{})}),o(gi,{className:"px-9"})]}),header:o(gb,{}),table:b(ie,{children:[o(bX,{sources:p,isLoading:g,order:i,sortBy:"name",onSort:u}),w&&o(NX,{})]}),footer:b(ie,{children:[c.sprintf(c._n("%d source","%d sources",f??0,"wp-rss-aggregator"),f??0),h>0&&b(ie,{children:[o("span",{className:"mx-1 text-gray-600",children:"|"}),o("span",{className:"text-alert-red",children:c.sprintf(c.__("%d unreachable","wp-rss-aggregator"),h)})]})]})})}function NX(){const e=ee.useReset(),t=lr();function r(){e(),t("source-edit")}return o("div",{className:"w-full flex-1 pt-16",children:b("div",{className:"mx-auto flex w-[500px] max-w-full flex-col items-center gap-6 text-center",children:[o("img",{src:Q.urls.assets.imgs+"/bee-dots-circle.svg"}),o("p",{className:"text-lg font-semibold leading-6",children:c.__("Start importing your content","wp-rss-aggregator")}),o("p",{className:"text-md leading-4",children:c.__("It’s time to get people buzzing about your website!","wp-rss-aggregator")}),o("p",{className:"text-md leading-4",children:c.__("Add your first source and watch as Aggregator automatically imports and publishes fresh and relevant content to your site in seconds.","wp-rss-aggregator")}),b(Ne,{onClick:r,children:[o(cn,{}),o("span",{children:c.__("Add a new source","wp-rss-aggregator")})]})]})})}function TX(e){return b("article",{className:"flex flex-col items-stretch rounded-xs border border-gray-400",children:[o("div",{className:"overflow-hidden",children:e.image}),b("div",{className:"flex flex-col gap-2 p-4",children:[e.title&&o("h1",{className:"text-md font-semibold leading-4 text-gray-900",children:e.title}),e.linkUrl&&o("div",{className:"text-sm font-semibold underline",children:o(Ae,{href:e.linkUrl,target:"_blank",variant:"primary",children:e.linkText??c.__("Read more","wp-rss-aggregator")})})]})]})}const HX=Array.from({length:9}).map((e,t)=>({id:t,title:{rendered:""},content:"",link:"",featured_media_url:""}));function IX(e){const{data:t,isLoading:r}=q.tutorials.getCategory.with(e.category).useQuery(HX,["blog-posts","category",e.category],{refetchOnWindowFocus:!1,refetchOnReconnect:!1});return o("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:t.map(n=>o(De,{enabled:r,className:"aspect-square w-full",children:o(TX,{title:o("span",{dangerouslySetInnerHTML:{__html:n.title.rendered}}),image:o("img",{src:n.featured_media_url}),linkUrl:n.link,linkText:c.__("Read this post","wp-rss-aggregator")},n.id)},n.id))})}function OX(){const t=Ii().tab??g9[0].id,r=lr(),n=D.useCallback(a=>r("tutorials",{tab:a}),[r]);return o(fs,{topbar:o(Br,{title:c.__("Tutorials","wp-rss-aggregator")}),tabs:g9,currTab:t,onTabChange:n,showUpgrade:!0,sidebarAfter:o(Ae,{href:Q.urls.website.blog,variant:"none",target:"_blank",children:b(Ne,{size:"md",children:[c.__("Go to the blog","wp-rss-aggregator"),o(Ns,{size:18})]})})})}function To(e,t){return function(){return b("div",{className:"flex flex-col gap-6",children:[b(_r,{className:"self-end",size:"sm",href:`https://wprssaggregator.com/${t}`,target:"_blank",children:[c.__("View all posts from this category","wp-rss-aggregator"),o(Ns,{size:15})]}),o(IX,{category:e},e)]})}}const g9=[{id:"tutorials",label:c.__("Latest Tutorials","wp-rss-aggregator"),keywords:[],content:To("tutorials","tutorials")},{id:"aggregation",label:c.__("Aggregation","wp-rss-aggregator"),keywords:[],content:To("aggregation","content-aggregation")},{id:"curation",label:c.__("Curation","wp-rss-aggregator"),keywords:[],content:To("curation","content-curation")},{id:"syndication",label:c.__("Syndication","wp-rss-aggregator"),keywords:[],content:To("syndication","content-syndication")},{id:"monetization",label:c.__("Website Monetization","wp-rss-aggregator"),keywords:[],content:To("monetization","website-monetization")},{id:"plugins",label:c.__("WordPress Plugins","wp-rss-aggregator"),keywords:[],content:To("plugins","wordpress-plugins")}],h9=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0345 13.5767L8.8587 16.847L8.1413 16.1504L11.2877 12.9103L7.00323 12.8917L7.00758 11.8917L11.3475 11.9106L8.37248 8.84702L9.08988 8.15035L12.0219 11.1696L12 7.00134L13 6.99609L13.0216 11.1248L15.9101 8.15035L16.6275 8.84702L13.6428 11.9205L18.1589 11.9402L18.1546 12.9402L13.7226 12.9209L16.8587 16.1504L16.1413 16.847L13.0349 13.6482L13.0585 18.1524L12.0585 18.1577L12.0345 13.5767Z",fill:"currentColor"})),MX=me(()=>b(ie,{children:[o("path",{d:"M10.6623 9.62699C10.3482 9.84685 10.25 10.0787 10.25 10.25C10.25 10.4213 10.3482 10.6531 10.6623 10.873C10.9741 11.0912 11.4447 11.25 12 11.25C12.8254 11.25 13.6048 11.483 14.1979 11.8981C14.7886 12.3116 15.25 12.9548 15.25 13.75C15.25 14.5452 14.7886 15.1884 14.1979 15.6019C13.7886 15.8884 13.2906 16.0881 12.75 16.1844V16.5C12.75 16.9142 12.4142 17.25 12 17.25C11.5858 17.25 11.25 16.9142 11.25 16.5V16.1844C10.7094 16.0881 10.2114 15.8884 9.80214 15.6019C9.21141 15.1884 8.75 14.5452 8.75 13.75C8.75 13.3358 9.08579 13 9.5 13C9.91421 13 10.25 13.3358 10.25 13.75C10.25 13.9213 10.3482 14.1531 10.6623 14.373C10.9741 14.5912 11.4447 14.75 12 14.75C12.5553 14.75 13.0259 14.5912 13.3377 14.373C13.6518 14.1531 13.75 13.9213 13.75 13.75C13.75 13.5787 13.6518 13.3469 13.3377 13.127C13.0259 12.9088 12.5553 12.75 12 12.75C11.1746 12.75 10.3952 12.517 9.80214 12.1019C9.21141 11.6884 8.75 11.0452 8.75 10.25C8.75 9.45484 9.21141 8.81165 9.80214 8.39814C10.2114 8.11165 10.7094 7.91191 11.25 7.81563V7.5C11.25 7.08579 11.5858 6.75 12 6.75C12.4142 6.75 12.75 7.08579 12.75 7.5V7.81563C13.2906 7.91191 13.7886 8.11165 14.1979 8.39814C14.7886 8.81165 15.25 9.45484 15.25 10.25C15.25 10.6642 14.9142 11 14.5 11C14.0858 11 13.75 10.6642 13.75 10.25C13.75 10.0787 13.6518 9.84685 13.3377 9.62699C13.0259 9.40878 12.5553 9.25 12 9.25C11.4447 9.25 10.9741 9.40878 10.6623 9.62699Z",fill:"currentColor"}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.25 12C3.25 7.16751 7.16751 3.25 12 3.25C16.8325 3.25 20.75 7.16751 20.75 12C20.75 16.8325 16.8325 20.75 12 20.75C7.16751 20.75 3.25 16.8325 3.25 12ZM12 4.75C7.99594 4.75 4.75 7.99594 4.75 12C4.75 16.0041 7.99594 19.25 12 19.25C16.0041 19.25 19.25 16.0041 19.25 12C19.25 7.99594 16.0041 4.75 12 4.75Z",fill:"currentColor"})]})),LX=me(()=>o("path",{d:"M12 19.959C16.3934 19.959 19.959 16.3934 19.959 12C19.959 7.60671 16.3934 4.0411 12 4.0411C7.60671 4.0411 4.0411 7.60671 4.0411 12C4.0411 16.3934 7.60671 19.959 12 19.959ZM6.06267 14.2922L8.27526 13.3769C8.68116 14.4594 9.53277 15.3189 10.6231 15.7169L9.70787 17.9295C8.03649 17.2927 6.70735 15.9636 6.06267 14.2922ZM12 9.61236C13.3212 9.61236 14.3877 10.6789 14.3877 12C14.3877 13.3212 13.3212 14.3877 12 14.3877C10.6789 14.3877 9.61236 13.3212 9.61236 12C9.61236 10.6789 10.6789 9.61236 12 9.61236ZM14.2843 17.9374L13.3531 15.7248C14.4514 15.3269 15.3189 14.4594 15.7248 13.361L17.9374 14.2843C17.2927 15.9636 15.9636 17.2927 14.2843 17.9374ZM17.9374 9.71583L15.7248 10.6311C15.3189 9.53277 14.4594 8.6732 13.361 8.27526L14.2922 6.06267C15.9636 6.70735 17.2927 8.03649 17.9374 9.71583ZM9.70787 6.06267L10.6231 8.27526C9.53277 8.68116 8.6732 9.54073 8.27526 10.6391L6.06267 9.70787C6.70735 8.03649 8.03649 6.70735 9.70787 6.06267Z",fill:"currentColor"}));function VX(e){const t=e.license,r=FX(t),n=Cn.isExpired(e.license);return o("table",{className:"b-0 w-full table-fixed overflow-hidden text-left text-sm leading-5 text-gray-800",children:b("tbody",{children:[b("tr",{children:[o("th",{scope:"row",className:"w-1/3 font-semibold",children:c.__("Owner:","wp-rss-aggregator")}),o("td",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:t.customer?.name??"--"})]}),b("tr",{children:[o("th",{scope:"row",className:"w-1/3 font-semibold",children:c.__("Email:","wp-rss-aggregator")}),o("td",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:t.customer?.email??"--"})]}),b("tr",{children:[o("th",{scope:"row",className:"w-1/3 font-semibold",children:c.__("Expires:","wp-rss-aggregator")}),o("td",{className:fe(n&&"text-alert-red","overflow-hidden text-ellipsis whitespace-nowrap"),children:r})]}),b("tr",{children:[o("th",{scope:"row",className:"w-1/3 font-semibold",children:c.__("Activations:","wp-rss-aggregator")}),b("td",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:[PX(t)," "]})]})]})})}function PX(e){return e.quota===0&&e.status==="valid"?c._x("Unlimited","Number of license activations left","wp-rss-aggregator"):c.sprintf(c._x("%d/%d (%d remaining)","Number of license activations, example: 2/5 (3 remaining)","wp-rss-aggregator"),e.quota-e.activations,e.quota,e.activations)}const FX=e=>{if(!e?.expires)return"--";const t=new Date(e.expires),r=new Date;r.setHours(0,0,0,0);const n=Math.max(0,AN(t,r));return`${lo(t,"do MMM ‘yy")} (${n} days left)`};function BX(e,t,r){const n=r.repeat(t),a=e.length-t;return a<=0?n:n+e.substring(e.length-a)}const RX=me(()=>b(ie,{children:[o("path",{d:"M13.9983 6.72749C9.98165 6.72749 6.72554 9.9836 6.72554 14.0002V14.8083H5.10938V14.0002C5.10938 9.09102 9.08907 5.11133 13.9983 5.11133C17.0056 5.11133 19.6629 6.60469 21.271 8.88845V5.91941H22.8872V11.576H17.2306V9.95981H20.0465C18.7412 8.00987 16.5189 6.72749 13.9983 6.72749Z",fill:"#14248A"}),o("path",{d:"M22.8871 13.1934V14.0014C22.8871 18.9106 18.9074 22.8903 13.9982 22.8903C10.9909 22.8903 8.33363 21.397 6.72554 19.1133V22.0822H5.10938V16.4257H10.7659V18.0418H7.94998C9.25523 19.9917 11.4776 21.2742 13.9982 21.2742C18.0148 21.2742 21.2709 18.0181 21.2709 14.0014V13.1934H22.8871Z",fill:"#14248A"})]}));function UX(){const[e]=Cn.use();return o("div",{className:"flex flex-row justify-center",children:b("div",{className:"inline-flex flex-row flex-wrap justify-center gap-5",children:[o(vn.License,{}),Q.plans.map(function(t){return e.tier>=t.tier?null:o(KX,{tier:t.tier},t.name)}),e.tier>=W.Elite&&o(WX,{})]})})}const KX=Zl("tier",{[W.Basic]:zX,[W.Plus]:$X,[W.Pro]:jX,[W.Elite]:qX});function vn(e){return b("section",{className:fe("flex min-w-[220px] max-w-[300px] flex-1 animate-fade-in flex-col items-stretch gap-8 rounded-sm border-2 px-6 pb-6 pt-5 shadow-md shadow-gray-300","bg-white data-[variant=dark]:bg-light","border-transparent data-[variant=accent]:border-accent"),"data-variant":e.variant,children:[b("div",{className:"flex flex-col items-stretch justify-between gap-5",children:[b("header",{className:"h-20",children:[b("div",{className:"flex flex-row items-center justify-between",children:[typeof e.title=="string"?o("h2",{className:"text-xl leading-7 text-black",children:e.title}):e.title,e.mostPopular&&o("p",{className:"text-md font-semibold leading-4 text-accent",children:c._x("Most popular","Referring to premium plans","wp-rss-aggregator")})]}),e.desc&&o("div",{className:"mt-2 text-md leading-4 text-gray-700",children:e.desc})]}),o("div",{className:"flex flex-col",children:e.main}),o("div",{className:"flex flex-col items-stretch gap-2",children:e.middle})]}),b("div",{className:"flex flex-col items-stretch gap-1",children:[e.featuresHeading&&o("h6",{className:"mb-3 text-md text-gray-700",children:e.featuresHeading}),e.features?.map(t=>b("div",{className:"flex flex-row items-center gap-2 text-md text-gray-700",children:[o(Wt,{className:"text-alert-green"}),o("span",{children:t})]},t))]}),o("div",{className:"flex-1"}),e.footer]})}vn.License=function(){const[e]=Cn.use(),t=Cn.useActivate(),r=Cn.useDeactivate(),n=Cn.useCheck();return e.key.length>0?o(vn.LicenseDeactivate,{license:e,disabled:r.isLoading,onDeactivate:()=>r.mutate(),onCheck:a=>n.mutate([a])}):o(vn.LicenseActivate,{disabled:t.isLoading,error:t.error,onActivate:a=>t.mutate([a])})},vn.LicenseActivate=function(e){const[t,r]=D.useState(e.initial??""),[n,a]=D.useState(e.error??null);D.useEffect(()=>{a(e.error??null)},[e.error]);const i=s=>{r(s),n&&a(null)};return o(vn,{variant:"dark",title:c.__("Your License","wp-rss-aggregator"),desc:c.__("Enter your license key below to activate your plan and unlock your premium features.","wp-rss-aggregator"),main:o("div",{className:"mt-11"}),middle:b(ie,{children:[b("div",{className:"relative w-full",children:[o(tt,{value:t,placeholder:c.__("Enter your license key","wp-rss-aggregator"),className:fe(n&&"border-[#E26F56] text-[#E26F56]","w-full"),onChange:i}),o("div",{className:"pointer-events-none absolute bottom-[1px] right-2 top-[1px] flex flex-col justify-center bg-white px-1",children:n&&o(fr,{className:"text-alert-yellow"})})]}),o(Ne,{disabled:n?!0:!t.trim()||e.disabled,onClick:()=>e.onActivate(t),className:n||!t.trim()||e.disabled?"!bg-light-blue !text-gray-600":"",children:c.__("Activate","wp-rss-aggregator")}),n&&b(p9,{type:"warning",children:[o("p",{className:"font-bold",children:c.__("This license key is invalid.","wp-rss-aggregator")}),o("p",{children:it(c.__("Please ensure you entered your license correctly. <instructionLink>Follow these instructions</instructionLink> to find the correct license or <contactLink>contact us for help</contactLink>.","wp-rss-aggregator"),{instructionLink:o("a",{href:"https://www.wprssaggregator.com/help/license-activation-issues/",className:"underline text-gray-800 cursor-pointer",target:"_blank"}),contactLink:o("a",{href:Q.urls.website.contact,className:"underline text-gray-800 cursor-pointer",target:"_blank"})})}),o("p",{children:it(c.__("If you do not have a valid license, you may purchase one from this page or <pricingLink>from our website</pricingLink>.","wp-rss-aggregator"),{pricingLink:o("a",{href:"https://www.wprssaggregator.com/pricing/",className:"underline text-gray-800 cursor-pointer",target:"_blank"})})})]})]}),footer:b(ie,{children:[o(St,{href:"https://www.wprssaggregator.com/account",target:"_blank",children:c.__("My Account","wp-rss-aggregator")}),o("p",{className:"text-xs leading-3 text-gray-700",children:it(c.__("<span>Need help with your license? <a>Click here</a>.</span>","wp-rss-aggregator"),{span:o("span",{className:"block !text-left text-gray-700 text-sm font-normal leading-3"}),a:o("a",{className:"underline",href:"https://www.wprssaggregator.com/help/license-activation-issues/",target:"_blank"})})})]})})},vn.LicenseDeactivate=function(e){const[t]=Cn.use(),r=Cn.isExpired(e.license),n=`${Q.urls.licensing.checkout}?edd_license_key=${e.license.key}&download_id=${t.eddId}`,a=se().name,i=r?c.__("Expired","wp-rss-aggregator"):c.__("Active","wp-rss-aggregator"),s=r?c.__("Paused","wp-rss-aggregator"):c.__("Active","wp-rss-aggregator"),[u,l]=D.useState(!1),f=()=>{l(!0),e.onCheck(e.license.key),setTimeout(()=>l(!1),2e3)};return o(vn,{variant:"dark",title:o(ie,{children:b("div",{className:"flex items-center justify-between w-full",children:[b("div",{className:"whitespace-nowrap",children:[c.__("Your Plan: ","wp-rss-aggregator")," ",o("span",{className:"font-bold",children:a})]}),o(RX,{viewBox:"0 0 28 28",onClick:f,className:`text-alert-red cursor-pointer ${u?"animate-spin-8":""}`})]})}),desc:b("div",{className:"flex flex-col gap-2",children:[b("p",{children:[c.__("Status: ","wp-rss-aggregator")," ",o("span",{className:`${r?"text-alert-red":"text-alert-green"} text-[13px] font-bold`,children:i})]}),b("p",{children:[c.__("Updates: ","wp-rss-aggregator")," ",o("span",{className:`${r?"text-alert-red":"text-alert-green"} text-[13px] font-bold`,children:s})]})]}),main:o(ie,{children:!u&&r&&o(p9,{type:"error",children:o("p",{children:c.__("Renew your license to regain access to premium features.","wp-rss-aggregator")})})}),middle:b(ie,{children:[b("div",{className:"relative w-full",children:[o(tt,{className:"w-full",value:BX(e.license.key,28,"•"),readOnly:!0}),o("div",{className:"pointer-events-none absolute bottom-[1px] right-2 top-[1px] flex flex-col justify-center bg-white px-1",children:t.status==="valid"&&!r?o(rs,{className:"text-alert-green"}):o(ss,{className:"text-alert-red"})})]}),o($i,{className:"no-underline my-1",onClick:e.onDeactivate,disabled:e.disabled,children:c.__("Disconnect","wp-rss-aggregator")}),r&&o(Cr,{href:n,target:"_blank",className:"bg-alert-green font-bold mb-1",children:c.__("Renew my license","wp-rss-aggregator")}),o(VX,{license:e.license})]}),footer:b(ie,{children:[o(St,{href:"https://www.wprssaggregator.com/account",target:"_blank",children:c.__("My Account","wp-rss-aggregator")}),o("p",{className:"text-xs leading-3 text-gray-700",children:it(c.__("<span>Need help with your license? <a>Click here</a>.</span>","wp-rss-aggregator"),{span:o("span",{className:"block !text-left text-gray-700 text-sm font-normal leading-3"}),a:o("a",{className:"underline",href:"https://www.wprssaggregator.com/help/license-activation-issues/",target:"_blank"})})})]})})};function zX(){const t=se().current<W.Basic&&Q.isBlackFridayActive,r=t?o(Hi,{discount:c.__("Normally $99","wp-rss-aggregator"),amount:69.3}):o(Hi,{amount:99});return o(vn,{title:c.__("Basic","wp-rss-aggregator"),desc:c.__("Display RSS feeds anywhere on your site and customize them to match your site’s design.","wp-rss-aggregator"),main:r,middle:o(Nd,{accent:!0,children:c.__("Upgrade to Basic","wp-rss-aggregator")}),featuresHeading:c.__("Everything in Free, plus:","wp-rss-aggregator"),features:[c.__("All layout designs","wp-rss-aggregator"),c.__("Full customization","wp-rss-aggregator"),c.__("Automatic filtering","wp-rss-aggregator"),c.__("Source management","wp-rss-aggregator")],footer:o(Td,{moneyBack:!0,support:!0,...t?{renewFullPrice:!0}:{}})})}function $X(){return null}function jX(){const t=se().current<W.Basic&&Q.isBlackFridayActive,r=t?o(Hi,{discount:c.__("Normally $199","wp-rss-aggregator"),amount:129.35}):o(Hi,{amount:199});return o(vn,{variant:"accent",mostPopular:!0,title:c.__("Pro","wp-rss-aggregator"),desc:c.__("Curate RSS feeds as Posts or any CPT and give your visitors all the content they’re after.","wp-rss-aggregator"),main:r,middle:o(Nd,{accent:!0,children:c.__("Upgrade to Pro","wp-rss-aggregator")}),featuresHeading:c.__("Everything in Basic, plus:","wp-rss-aggregator"),features:[c.__("Import as Posts","wp-rss-aggregator"),c.__("Full text import","wp-rss-aggregator"),c.__("Import taxonomies","wp-rss-aggregator"),c.__("Add custom content","wp-rss-aggregator"),c.__("Keyword filtering","wp-rss-aggregator")],footer:o(Td,{accent:!0,moneyBack:!0,support:!0,...t?{renewFullPrice:!0}:{}})})}function qX(){const t=se().current<W.Basic&&Q.isBlackFridayActive,r=t?o(Hi,{discount:c.__("Normally $269","wp-rss-aggregator"),amount:161.4}):o(Hi,{amount:269});return o(vn,{title:c.__("Elite","wp-rss-aggregator"),desc:c.__("Import unlimited content from RSS feeds and generate your own original versions.","wp-rss-aggregator"),main:r,middle:o(Nd,{accent:!0,children:c.__("Upgrade to Elite","wp-rss-aggregator")}),featuresHeading:c.__("Everything in Pro, plus:","wp-rss-aggregator"),features:[c.__("AI integrations","wp-rss-aggregator"),c.__("Title spinning","wp-rss-aggregator"),c.__("Content spinning","wp-rss-aggregator")],footer:o(Td,{moneyBack:!0,support:!0,...t?{renewFullPrice:!0}:{}})})}function WX(){return o(vn,{variant:"accent",title:c.__("Elite Lifetime","wp-rss-aggregator"),desc:c.__("Use your favorite Aggregator plan with lifetime* access to all its features.","wp-rss-aggregator"),main:o(Hi,{amount:767,pricing:c.__("For 1 site","wp-rss-aggregator")}),middle:o(Nd,{accent:!0,children:c.__("Upgrade to Lifetime","wp-rss-aggregator")}),features:[c.__("Pay only once","wp-rss-aggregator"),c.__("Lifetime access","wp-rss-aggregator"),c.__("20% discount","wp-rss-aggregator")],footer:o(Td,{lifetime:!0,support:!0,moneyBack:!0,accent:!0})})}function Nd(e){const r=se().current<W.Basic&&Q.isBlackFridayActive?"https://www.wprssaggregator.com/upgrade/?utm_source=plugin&utm_medium=upsell&utm_campaign=BF25&utm_content=upgrade-page":Q.urls.website.upgrade;return o(Ae,{href:r,className:"block hover:no-underline",target:"_blank",children:o(oa,{variant:e.accent?"accent":"primary",className:"w-full data-[accent=true]:font-bold","data-accent":e.accent,children:e.children})})}function Hi(e){return b("div",{className:"flex flex-col gap-1",children:[e.discount&&o("p",{className:"text-lg leading-7 text-gray-700 line-through",children:e.discount}),b("p",{className:"text-2xl leading-8",children:[c.sprintf("$%.2f",e.amount)," ",o("span",{className:"text-md text-gray-700",children:e.currency??"USD"})]}),o("p",{className:"text-md text-gray-700",children:e.pricing??c.__("Annually for 1 site","wp-rss-aggregator")})]})}function Td(e){function t(r){return b("div",{className:"text-md leading-6 text-gray-700",children:[o("span",{className:"align-bottom text-primary data-[faded=true]:text-gray-700 group-data-[accent=true]:text-accent","data-faded":r.faded,children:r.icon})," ",o("span",{children:r.children})]})}return b("div",{className:"group flex flex-col items-stretch gap-1 text-primary data-[accent=true]:text-accent","data-accent":e.accent,children:[e.renewFullPrice&&o(t,{icon:o(h9,{}),faded:!0,children:c.__("Renews at full price","wp-rss-aggregator")}),e.lifetime&&o(t,{icon:o(h9,{className:"text-gray-700"}),faded:!0,children:c.__("Access to support for 3 years","wp-rss-aggregator")}),e.support&&o(t,{icon:o(LX,{}),children:c.__("Premium email support","wp-rss-aggregator")}),e.moneyBack&&o(t,{icon:o(MX,{}),children:c.__("30-day money-back","wp-rss-aggregator")})]})}function p9(e){return o("div",{className:`relative py-3 pl-6 pr-10 text-gray-800
             data-[type=error]:bg-pale-red data-[type=warning]:bg-pale-yellow
             before:absolute before:left-0 before:top-0 before:bottom-0 before:w-1
             data-[type=error]:before:bg-alert-red data-[type=warning]:before:bg-alert-yellow
             data-[type=error]:border-alert-red data-[type=warning]:border-yellow-500 border`,"data-type":e.type,children:o("div",{className:"flex flex-row gap-4 text-sm leading-4",children:o("div",{className:"flex flex-col gap-4",children:e.children})})})}function GX(){const e=se(),r=e.current<W.Basic&&Q.isBlackFridayActive;return b("div",{className:"relative flex max-h-full min-h-full flex-col bg-light-blue",children:[o(Br,{title:c.__("Manage your plan","wp-rss-aggregator")}),o(gi,{className:"px-9"}),b("div",{className:"flex flex-1 flex-col items-stretch gap-16 overflow-auto p-16 pb-0",children:[b("div",{className:"space-y-3",children:[o("h1",{className:"text-center text-3xl leading-10 text-black",children:e.current>W.Free?c.__("Keep the Buzz Going: Explore Additional Upgrades!","wp-rss-aggregator"):r?c.__("Black Friday Offer","wp-rss-aggregator"):c.__("Upgrade Your Plan and Make Your Site Buzz Even Louder!","wp-rss-aggregator")}),r&&o("h3",{className:"text-center text-3xl leading-10 text-accent",children:c.__("Up to 40% Off Your First Year!","wp-rss-aggregator")}),e.current>W.Free&&o("h2",{className:"text-center text-[1.25rem] font-light",children:it(c.__("All upgrades are pro-rated. <Link>How to upgrade your existing license.</Link>","wp-rss-aggregator"),{Link:o(Ae,{href:Q.urls.website.upgrade,target:"_blank",variant:"primary"})})})]}),o(UX,{}),o("div",{className:"flex-1"}),o(ZX,{})]})]})}function ZX(){const[e,t]=D.useState(!0);return e&&o("div",{className:"w-full",children:b("div",{className:"relative mx-auto w-[500px]",children:[o("div",{className:"absolute w-full translate-y-[-50%]",children:o("div",{className:"mx-auto h-[82px] w-[82px] rounded-full bg-white",children:o("img",{src:Q.urls.assets.imgs+"/bee-dots.svg",className:"mx-auto pt-3"})})}),b("div",{className:"mx-auto w-[500px] rounded-t-lg bg-white p-6 pt-12 text-center text-[14px] leading-5 shadow-sm shadow-gray-400",children:[o("p",{children:c.__("Interested in using Aggregator on more than 1 site?","wp-rss-aggregator")}),o("p",{className:"font-semibold",children:o(Ae,{href:Q.urls.website.upgrade,target:"_blank",variant:"none",className:"text-black underline ring-primary focus:ring-2",children:c.__("Upgrade to a 5-site or unlimited site license today.","wp-rss-aggregator")})})]}),o("button",{className:"absolute right-2 top-2 rounded-full text-gray-600 ring-primary hover:text-primary focus:text-primary focus-visible:ring-2",onClick:()=>t(!1),children:o(vl,{})})]})})}const YX=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.25C7.16751 3.25 3.25 7.16751 3.25 12C3.25 16.8325 7.16751 20.75 12 20.75C16.8325 20.75 20.75 16.8325 20.75 12C20.75 7.16751 16.8325 3.25 12 3.25ZM11 9V7H13V9H11ZM11 17V11H13V17H11Z",fill:"currentColor"})),Hd=Oe(0);function m9(){const[e]=ce(Hd),{data:t}=q.v4.isPluginsActivated.useQuery(!1),{data:r,isLoading:n}=q.v4.isPremiumPluginInstalled.useQuery(!1),a=D.useMemo(()=>{if(!Q.premiumInstalled&&n)return[QX];let i=[XX,JX,rJ,nJ,aJ];return t&&!Q.premiumInstalled?r?i.splice(0,0,iJ):i=[oJ,sJ]:Q.premiumInstalled&&Q.license===null?i.splice(2,0,eJ):i.splice(2,0,tJ),i},[r,t,n]);return o("div",{className:"box-border flex h-full w-full flex-col items-center justify-start overflow-auto bg-light-green p-20",children:o("div",{className:"flex w-full max-w-[1085px] flex-col items-center gap-5 rounded-2xl bg-white p-20 text-center",children:a[e]&&D.createElement(a[e])})})}function QX(){return o(_n,{})}function XX(){const{data:e}=q.v4.numItems.useQuery(0),t=e>=1e4;return b(Nn,{title:c.__("Welcome to Aggregator v5","wp-rss-aggregator"),subtitle:c.__("Our latest version comes packed with powerful improvements designed to enhance your experience.","wp-rss-aggregator"),shortTitle:!0,nextBtnText:c.__("Start migration","wp-rss-aggregator"),showNext:!0,showSkip:!0,children:[o("p",{className:"w-full max-w-[600px] mx-6 text-lg leading-7 text-gray-700",children:c.__("This wizard will guide you through the necessary steps to complete your migration.","wp-rss-aggregator")}),t&&o("div",{className:"w-[600px] bg-pale-yellow px-10 py-8 mt-6 rounded",children:b("div",{className:"flex flex-col gap-5 text-sm text-black",children:[b("p",{children:[o(fr,{width:17,height:17,className:"mr-[5px] shrink-0"}),o("strong",{children:c.__("Large Number of Items Detected","wprss")})]}),o("p",{children:it(c.__("There are over 10,000 imported items on this website. To ensure a smooth and reliable migration to v5, we strongly recommend using the <span>WP-CLI Migration Method</span> (Advanced) instead of this built-in wizard.","wp-rss-aggregator"),{span:o("span",{className:"font-bold"})})}),o("p",{children:it(c.__("This method is designed for larger sites and helps avoid performance or timeout issues during migration. It requires basic developer access (SSH or terminal) and is fully explained in our step-by-step <a>migration guide.</a>","wp-rss-aggregator"),{a:o("a",{className:"underline text-blueberry",href:"https://www.wprssaggregator.com/help/migration-wp-cli/",target:"_blank",rel:"noopener noreferrer"})})}),o(Cr,{href:_t.page("hub",{wpraDidV4Migration:"cancelled"}),target:"_self",className:"w-[300px] mx-auto",children:c.__("Use WP-CLI Migration Method (Advanced)","wp-rss-aggregator")})]})}),!t&&o("div",{className:"w-[600px] bg-gray-very-light px-10 py-8 mt-6 rounded",children:b("div",{className:"flex justify-start text-left items-start gap-2 text-sm text-black",children:[o(fr,{width:18,height:18,className:"mt-[2px] shrink-0"}),b("div",{className:"flex-1",children:[o("p",{children:it(c.__("<span>Advanced Migration with WP-CLI:</span> For a more controlled migration to v5, you can use the WP-CLI Migration Method (Advanced) instead of the built-in wizard. This option is ideal for technical users and requires SSH or terminal access. <a>Read the full guide.</a>","wp-rss-aggregator"),{span:o("span",{className:"font-bold"}),a:o("a",{className:"underline text-blueberry",href:"https://www.wprssaggregator.com/help/migration-wp-cli/",target:"_blank",rel:"noopener noreferrer"})})}),o("div",{className:"mt-4",children:o(_r,{href:_t.page("hub",{wpraDidV4Migration:"cancelled"}),target:"_self",className:"inline-flex text-left pl-0 pr-0 pt-0 pb-0 hover:bg-transparent hover:text-inherit hover:shadow-none",children:c.__("Use WP-CLI Migration Method (Advanced)","wp-rss-aggregator")})})]})]})})]})}function JX(){function e(t){return b("div",{className:"flex w-full max-w-[600px] flex-row flex-nowrap items-start gap-2",children:[o(Wt,{className:"flex-shrink-0 align-bottom text-alert-green"}),o("span",{className:"text-left text-lg leading-7 text-gray-700",children:t.children})]})}return o(Nn,{title:c.__("What's new?","wp-rss-aggregator"),showNext:!0,showSkip:!0,children:b("div",{className:"flex flex-col gap-2",children:[o(e,{children:c.__("Enhanced performance: Experience faster data processing and real-time analytics.","wp-rss-aggregator")}),o(e,{children:c.__("New user interface: A modern, more intuitive design to streamline your workflow.","wp-rss-aggregator")}),o(e,{children:c.__("Advanced security features: Cutting-edge security enhancements to protect your data.","wp-rss-aggregator")}),o(e,{children:c.__("An all new hub: Manage and track your content efficiently.","wp-rss-aggregator")})]})})}function eJ(){const[e,t]=D.useState(""),[r,n]=D.useState(!1),[a,i]=D.useState(null),s=q.license.activate.useMutation({onError:i,onSuccess(){n(!0)}});return r?o(Nn,{title:c.__("License activated","wp-rss-aggregator"),showNext:!0}):o(Nn,{title:it(c.__("<span>Activate your</span><span>Premium plan</span>","wprss"),{span:o("span",{className:"block text-center"})}),subtitle:it(c.__("<span>Enable your premium features by using the license key available in <a>your account</a>.</span>","wprss"),{span:o("span",{className:"block px-8 py-2"}),a:o("a",{className:"underline",href:"https://www.wprssaggregator.com/account/licenses/",target:"_blank"})}),showSkip:!0,children:b("div",{className:"flex w-[380px] flex-col gap-5",children:[o(tt,{value:e,onChange:t,placeholder:c.__("Enter your license key","wp-rss-aggregator"),autoFocus:!0}),a&&o("div",{className:"rounded-xs bg-light-red px-3 py-2 text-left text-md text-alert-red",children:a.message}),o(Ne,{disabled:e.trim().length===0||s.isLoading,onClick:()=>s.mutate([e]),children:c.__("Activate","wp-rss-aggregator")}),it(c.__("<span>Need help with your license? <a>Click here</a>.</span>","wprss"),{span:o("span",{className:"block text-gray-700 text-sm font-normal leading-3"}),a:o("a",{className:"underline",href:"https://www.wprssaggregator.com/help/locating-your-license-keys/",target:"_blank"})})]})})}function tJ(){return o(Nn,{title:it(c.__("<span>You’re on the</span><span>Free plan</span>","wprss"),{span:o("span",{className:"block text-center"})}),showNext:!0,showSkip:!0,children:o("p",{className:"w-full max-w-[600px]",children:it(c.__("<span>Not the right plan? Please <a>upload and activate</a> your Aggregator Premium plugin and restart the migration.</span>","wprss"),{span:o("span",{className:"text-xl leading-7 text-gray-700 font-normal py-2"}),a:o("a",{className:"underline",href:"https://www.wprssaggregator.com/help/installing-aggregator-premium/",target:"_blank"})})})})}function rJ(){function e(t){return o("li",{className:"mb-2 marker:font-normal",children:o(We,{linkProps:{target:"_blank"},urls:t.urls,children:t.children})})}return o(Nn,{title:c.__("Getting Started","wp-rss-aggregator"),subtitle:c.__("Before we begin, please ensure that you:","wp-rss-aggregator"),nextBtnText:c.__("Start migration","wp-rss-aggregator"),showNext:!0,showSkip:!0,children:b("div",{className:"w-full max-w-[600px] mb-3 flex flex-col gap-4",children:[b("ol",{className:"list-inside text-left text-lg leading-6 text-gray-700 marker:font-bold",children:[o(e,{children:c.__("Create a backup of your site, just in case.","wp-rss-aggregator")}),o(e,{urls:{0:"https://www.wprssaggregator.com/help/minimum-requirements/"},children:c.__("Make sure your website and hosting meet [v5's requirements][0].","wp-rss-aggregator")}),o(e,{urls:{0:"https://www.wprssaggregator.com/help-topics/adding-custom-actions-and-filters/"},children:c.__("If possible, test the migration on a staging site first. This is especially important if you had previously implemented custom [actions and filters][0].","wp-rss-aggregator")})]}),o("p",{className:"text-left text-lg leading-7 text-gray-700",children:c.__("Upgrading and migrating to v5 could carry some risks. We've worked hard to ensure a smooth process, but compatibility issues may arise. We strongly recommend that you follow the 3 steps above to mitigate these risks.","wp-rss-aggregator")}),o("p",{className:"text-left text-lg leading-7 text-gray-700",children:o(We,{urls:{0:Q.urls.website.contact},linkProps:{target:"_blank"},children:c.__(`When you're ready, click "Start migration" to start your migration. If you have any questions, [our support team][0] is here to help!`,"wp-rss-aggregator")})})]})})}const Eu=!1;function nJ(){const[e,t]=D.useState(!1),[r,n]=D.useState(!1),[a,i]=D.useState(-1),[s,u]=D.useState(0),[l,f]=D.useState(!1),[h,m]=D.useState(-1),[g,p]=D.useState(0),[w,y]=D.useState(!1),[_,S]=D.useState(-1),[H,L]=D.useState(0),[O,j]=D.useState(!1),[R,K]=D.useState(-1),[M,F]=D.useState(0),[U,k]=D.useState(!1),[C,A]=D.useState(T());Od({condition:!0,title:c.__("Are you sure?","wp-rss-aggregator"),children:c.__("If you leave now, your data will not be fully migrated and you may experience data corruption.","wp-rss-aggregator"),yesBtnText:c.__("Leave","wp-rss-aggregator"),noBtnText:c.__("Stay","wp-rss-aggregator"),variant:"danger"}),D.useEffect(function(){const P=new AbortController,z=setTimeout(()=>I(P.signal),100);return()=>{clearTimeout(z),P.abort("Migration cancelled")}},[]);async function I(P){const[z,Z,re,te]=await q.batch([q.v4.numSources,q.v4.numTemplates,q.v4.numBlacklist,q.v4.numItems]).call();i(z),S(Z),m(re),K(te),await q.v4.migrateSettings.with(Eu).call(),n(!0),await q.v4.migrateSources.with(Eu).stream(function(){u(oe=>oe+1)},P),f(!0),await q.v4.migrateBlacklist.with(Eu).stream(function(){p(oe=>oe+1)},P),y(!0),await q.v4.migrateTemplates.with(Eu).stream(function(){L(oe=>oe+1)},P),j(!0),await q.v4.migrateItems.with(Eu).stream(function(){F(oe=>oe+1)},P),k(!0),t(!0)}D.useEffect(()=>{A(T())},[r,l,w,O,U,s,g,H,M]);function T(){return r?!l&&s>0?2:!w&&g>0?3:!O&&H>0?4:!U&&M>0?5:null:1}function V(P){return b("div",{className:`flex flex-row p-[20px_38px_20px_16px] items-start gap-2 self-stretch rounded-[9px] border
      ${P.isDone?"bg-white border-alert-green":P.isActive?"bg-white border-primary":"bg-gray-very-light border-transparent text-gray-600"}
    `,"data-done":P.isDone,children:[b("div",{className:"flex items-center justify-center w-10 h-full",children:[P.isDone&&o(Wt,{className:"text-alert-green"}),P.isActive&&o(_n,{})]}),b("div",{className:"flex flex-col items-start gap-1",children:[o("div",{className:"text-md",children:c.__("STEP ","wprss")+P.step}),P.children]})]})}return b(Nn,{title:e?c.__("Migration completed","wp-rss-aggregator"):c.__("Migrating to v5","wp-rss-aggregator"),subtitle:e?null:c.__("This process could take several minutes. Do not close this page.","wp-rss-aggregator"),showNext:!0,nextDisable:!e,children:[b("div",{className:"w-full mx-auto",children:[b("div",{className:"mt-8 mb-14 flex lg:flex-row flex-col gap-3",children:[b(V,{step:1,isDone:r,isActive:C===1,children:[o("div",{className:"whitespace-nowrap text-xl",children:c.__("Settings","wp-rss-aggregator")}),r&&o("div",{className:"text-gray-700 text-md",children:c.__("Migrated","wprss")})]}),b(V,{step:2,isDone:l,isActive:C===2,children:[o("div",{className:"whitespace-nowrap text-xl",children:c.__("Sources","wp-rss-aggregator")}),o("div",{className:"text-gray-700 text-md",children:!l&&a>-1?c.__("Processing...","wprss"):c.__("Migrated","wprss")})]}),b(V,{step:3,isDone:w,isActive:C===3,children:[o("div",{className:"whitespace-nowrap text-xl",children:c.__("Blacklisted","wp-rss-aggregator")}),o("div",{className:"text-gray-700 text-md",children:!w&&h>-1?c.__("Processing...","wprss"):c.__("Migrated","wprss")})]}),b(V,{step:4,isDone:O,isActive:C===4,children:[o("div",{className:"whitespace-nowrap text-xl",children:c.__("Templates","wp-rss-aggregator")}),o("div",{className:"text-gray-700 text-md",children:!O&&_>-1?c.__("Processing...","wprss"):c.__("Migrated","wprss")})]}),b(V,{step:5,isDone:U,isActive:C===5,children:[o("div",{className:"whitespace-nowrap text-xl",children:c.__("Imported items","wp-rss-aggregator")}),o("div",{className:"text-gray-700 text-md",children:!U&&R>-1?c.__("Processing...","wprss"):c.__("Migrated","wprss")})]})]}),b("div",{className:"flex items-start gap-2 mt-3",children:[o(YX,{width:20,height:20,className:"text-black mt-[2px] shrink-0 align-middle"}),o("p",{className:"text-left text-gray-800 text-md",children:it(c.__("After migration is complete, we recommend reviewing your sources and displays to ensure everything is working as expected. If you encounter any issues, please <contactSupportLink>contact our support team</contactSupportLink>.","wprss"),{contactSupportLink:o("a",{href:"https://www.wprssaggregator.com/contact/",className:"underline text-primary cursor-pointer inline",target:"_blank"})})})]})]})," "]})}function aJ(){const[e,t]=D.useState(!1),[r,n]=D.useState(!1),[a,i]=D.useState(!1);lr();const{data:s}=q.v4.isPluginsActivated.useQuery(!1),u=q.v4.deactivateAddons.useMutation({onSuccess:()=>t(!0)}),l=q.v4.uninstall.useMutation({onSuccess:()=>n(!0)}),f=u.isLoading||l.isLoading;Od({condition:!a,title:c.__("Are you sure?","wp-rss-aggregator"),children:c.__("If you leave now, your data will not be fully migrated and you may experience data corruption.","wp-rss-aggregator"),yesBtnText:c.__("Leave","wp-rss-aggregator"),noBtnText:c.__("Stay","wp-rss-aggregator"),variant:"danger"});const h=()=>{i(!0),setTimeout(()=>{window.top&&(window.top.location.href=_t.page("hub",{wpraDidV4Migration:"finished"}))},0)};return b(Nn,{title:c.__("Complete Your Migration","wp-rss-aggregator"),subtitle:c.__("You’re almost done!","wp-rss-aggregator"),children:[o("div",{className:"mx-auto mb-6 flex w-full max-w-[600px] flex-col gap-8",children:b("div",{className:"flex flex-col gap-7",children:[o("p",{className:"text-lg leading-7 text-gray-700",children:c.__("To complete your move to Aggregator v5, click the Finish Migration button below. We also recommend deactivating your Aggregator v4 add-ons, since they’re no longer needed.","wp-rss-aggregator")}),b("div",{className:"flex flex-col gap-2 items-center",children:[o(St,{className:"w-full max-w-[250px]",onClick:()=>u.mutate(),disabled:f||e||!s,children:!s||e?c.__("Add-ons Deactivated","wp-rss-aggregator"):u.isLoading?c.__("Deactivating Add-ons...","wp-rss-aggregator"):c.__("Deactivate Add-ons","wp-rss-aggregator")}),o("p",{className:"text-md text-gray-700",children:c.__("Disables legacy v4 add-ons.","wp-rss-aggregator")})]})]})}),o(Ne,{onClick:h,disabled:f,children:c.__("Finish Migration","wp-rss-aggregator")}),o("p",{className:"text-md leading-4 text-gray-700",children:c.__("Click this button to complete the migration.","wp-rss-aggregator")})]})}function iJ(){const[,e]=ce(Hd),[t,r]=D.useState(null),[n,a]=D.useState(!1),i=q.v4.activatePremiumPlugin.useMutation({onError:r,onSuccess:()=>{e(s=>s+1),a(!0)}});return b(Nn,{title:c.__("Before you migrate","wp-rss-aggregator"),subtitle:c.__("We’ve now combined all your premium add-ons into one Premium plugin in v5. Your old add-ons are now considered legacy and will only work with v4.","wp-rss-aggregator"),children:[o("p",{className:"w-full max-w-[600px] mx-6 text-lg leading-7 text-gray-700",children:c.__("To retain access to your paid features, activate Aggregator Premium now. Migration cannot continue without it.","wp-rss-aggregator")}),b("div",{className:"mt-2 flex flex-col items-center gap-2",children:[o(Ne,{disabled:i.isLoading,onClick:()=>{i.mutate()},children:c.__("Activate Aggregator Premium","wp-rss-aggregator")}),o(Id,{})]})]})}function oJ(){const[,e]=ce(Hd);return b(Nn,{title:c.__("Before you migrate","wp-rss-aggregator"),subtitle:c.__("We’ve now combined all your premium add-ons into one Premium plugin in v5. Your old add-ons are now considered legacy and will only work with v4.","wp-rss-aggregator"),children:[b("div",{className:"w-full max-w-[600px] mb-3 flex flex-col gap-4",children:[o("p",{className:"text-gray-700",children:c.__("Download Aggregator Premium from your account, then install and activate it before proceeding. Migration is blocked until the Premium plugin is active.","wp-rss-aggregator")}),o("p",{className:"text-gray-700",children:it(c.__("<strong>Need help?</strong> See our guide on how to <a>Install Aggregator Premium</a>","wp-rss-aggregator"),{strong:o("strong",{}),a:o("a",{href:"https://www.wprssaggregator.com/help/installing-aggregator-premium/",target:"_blank",className:"underline"})})})]}),b("div",{className:"mt-2 flex flex-col items-center gap-2",children:[o(Ne,{onClick:()=>{window.open("https://www.wprssaggregator.com/account/downloads/","_blank","noopener,noreferrer"),e(t=>t+1)},children:c.__("Download from Your Account","wp-rss-aggregator")}),o(Id,{})]})]})}function sJ(){return b(Nn,{title:it(c.__("<span>Next Step: Install and Activate</span><span>Aggregator Premium</span>","wprss"),{span:o("span",{className:"block text-center"})}),children:[b("div",{className:"flex flex-col gap-4 w-full max-w-[600px] text-left",children:[o("p",{className:"text-xl leading-7 text-gray-700 text-center px-8",children:it(c.__("Once you've downloaded the Aggregator Premium plugin, <a>install it on your site</a>:","wp-rss-aggregator"),{a:o("a",{href:"https://www.wprssaggregator.com/help/installing-aggregator-premium/",target:"_blank",className:"underline"})})}),b("ol",{className:"list-decimal list-inside text-gray-700 px-20",children:[o("li",{children:c.__("Go to Plugins → Add Plugin → Upload Plugin.","wp-rss-aggregator")}),o("li",{children:c.__("Choose the file you just downloaded from your account.","wp-rss-aggregator")}),o("li",{children:c.__("Click Install Now.","wp-rss-aggregator")}),o("li",{children:c.__("Once installed, click Activate Plugin.","wp-rss-aggregator")})]})]}),b("div",{className:"mt-2 flex flex-col items-center gap-2",children:[o(Ne,{href:Q.urls.wp.admin+"/plugins.php",target:"_self",children:c.__("Go to Plugins Page","wp-rss-aggregator")}),o(Id,{})]})]})}function Nn(e){const[,t]=ce(Hd);return b(ie,{children:[b("div",{className:"flex flex-col items-center gap-4",children:[b("div",{className:"flex flex-col items-center gap-2 text-center",children:[o(xr,{className:"mt-[-10px] text-accent",size:72}),o("h1",{className:"text-3xl leading-10 data-[short=true]:w-[320px]","data-short":e.shortTitle,children:e.title})]}),e.subtitle&&o("p",{className:"text-xl leading-7 text-gray-700 w-full max-w-[600px] my-3",children:e.subtitle})]}),e.children,(e.showNext||e.showSkip)&&b("div",{className:"mt-2 flex flex-col items-center gap-2",children:[e.showNext&&o(Ne,{onClick:()=>t(r=>r+1),disabled:e.nextDisable??!1,children:e.nextBtnText??c.__("Next","wp-rss-aggregator")}),e.showSkip&&o(Id,{})]})]})}function Id(){const e=q.v4.rollback.useMutation({onSuccess(){window.top&&(window.top.location.href=_t.v4)}});return o(_r,{onClick:async()=>{await ha(1e3,e.mutateAsync())},children:c.__("Cancel migration and stay on v4","wp-rss-aggregator")})}const v9=["loading","onboarding","hub","sources","source-edit","folders","displays","display-edit","reject-list","integrations","settings","upgrade","tutorials","help","v4-migration","wpra-logger"],b9=[{id:"loading",name:"Loading",showInMenu:!1,menuMatches:[],component:wf},{id:"onboarding",name:"Onboarding",showInMenu:!1,menuMatches:[],component:A9},{id:"hub",name:"Hub",showInMenu:!0,menuMatches:["hub"],component:sN},{id:"sources",name:"Sources",showInMenu:!0,menuMatches:["sources","source-edit"],component:kX},{id:"source-edit",name:"Source Edit",showInMenu:!1,menuMatches:[],component:dX},{id:"folders",name:"Folders",showInMenu:!0,menuMatches:["folders"],component:OD},{id:"displays",name:"Displays",showInMenu:!0,menuMatches:["displays","display-edit"],component:xD},{id:"display-edit",name:"Display Edit",showInMenu:!1,menuMatches:[],component:sD},{id:"reject-list",name:c.__("Rejected Items","wp-rss-aggregator"),showInMenu:!0,menuMatches:["reject-list"],component:qT},{id:"settings",name:"Settings",showInMenu:!0,menuMatches:["settings"],component:kH},{id:"integrations",name:"Integrations",showInMenu:!0,menuMatches:["integrations"],component:mN},{id:"upgrade",name:"Upgrade",showInMenu:!0,menuMatches:["upgrade"],component:GX},{id:"tutorials",name:"Tutorials",showInMenu:!0,menuMatches:["tutorials"],component:OX},{id:"help",name:"Help",showInMenu:!0,menuMatches:["help"],component:zD},{id:"v4-migration",name:"Migration",showInMenu:!1,menuMatches:[],component:m9},{id:"wpra-logger",name:"Dev tools",showInMenu:!1,menuMatches:[],component:xC}],_t={page(e,t={}){t.subPage=e;const r=new URLSearchParams(t);return`${Q.urls.frame}&${r}`},wpPost(e){return`${Q.urls.wp.site}/?p=${e}`},wpPage(e){return`${Q.urls.wp.site}/?page_id=${e}`},wpTerm(e,t){const r=new URLSearchParams({taxonomy:e,tag_ID:t.toString()});return`${Q.urls.wp.admin}/term.php?${r}`},wpUser(e){return`${Q.urls.wp.admin}/user-edit.php?user_id=${e}`},postsForSrc(e,t){return`${Q.urls.wp.admin}/edit.php?post_type=${t}&wpra_source=${e}`},website:{upgrade:Q.urls.website.upgrade,blog:"https://wprssaggregator.com/blog/"},v4:Q.urls.wp.admin+"/edit.php?post_type=wprss_feed",v4Migration:Q.urls.wp.admin+"/admin.php?page=wprss-aggregator&subPage=v4-migration",docs:{}},w9=Oe("loading"),lp=Oe({});function uJ(){const[,e]=ce(w9),[,t]=ce(lp);return D.useCallback(function(){return Mn.initData?.route?(e(Mn.initData.route.page),t(Mn.initData.route.params),!0):!1},[Mn.initData?.route])}const cp=new Set;function dp(){const[e,t]=ce(w9),[r,n]=ce(lp),a=D.useCallback((i,s={},u,l=!1)=>{if(!l){for(const f of cp)if(!f(i,s,u,a))return}n(s),t(i),Mn.navigate(i,s,u)},[t,n]);return{pageId:e||"hub",params:r,navigate:a}}function Ii(){return ce(lp)[0]}function lr(){return dp().navigate}function lJ(e){return v9.includes(e)}function y9(e){D.useEffect(()=>(cp.add(e),()=>{cp.delete(e)}),[e])}function Od(e){const t=tn();y9((r,n,a,i)=>e.condition?(t({...e,onConfirm(){i(r,n,a,!0)}}),!1):!0),D.useEffect(()=>{const r=n=>{if(e.condition)return n.preventDefault(),n.returnValue=c.__("You have unsaved changes. Are you sure you want to leave?","wp-rss-aggregator"),n.returnValue};return window.addEventListener("beforeunload",r),()=>{window.removeEventListener("beforeunload",r)}},[e.condition])}const x9=Oe(""),cJ=Oe(null),dJ=Oe(null),fJ=Oe(!1),gJ=Oe("draft"),hJ=Oe(!0),_9=Oe(!0),pJ=Oe(0),mJ=hi("wpra.onboarding.finished",!1),vJ=hi("wpra.onboarding.cancel",!1),bJ=Oe(null),wJ=Oe(null),C9=Oe(null),Md={Source:0,Import:1,Display:2,Hub:3,Done:4},ot={finishUrl(){return _t.page("hub",{wpraDidOnboarding:"finished"})},cancelUrl(){return _t.page("hub",{wpraDidOnboarding:"cancelled"})},useFinished(){return ce(mJ)},useCancelled(){return ce(vJ)},useCancel(){const[,e]=this.useCancelled();return function(){e(!0)}},useTrack(){switch(se().current){case W.Free:return["welcome","feed","layout","embed","final"];case W.Basic:return["welcome","feed","layout","embed","curation","final"];default:return["welcome","feed","status","attribution","curation","final"]}},useSteps(){const e=this.useTrack(),t=this.useAllSteps();return e.map(r=>t[r])},useAllSteps(){const[e]=ce(x9),t=this.useLayout();return D.useMemo(()=>({feed:{name:c.__("Add a source","wp-rss-aggregator"),desc:e||c.__("Enter a feed URL","wp-rss-aggregator")},layout:{name:c.__("Choose a layout","wp-rss-aggregator"),desc:t?.name??c.__("Select a layout for your display","wp-rss-aggregator")},embed:{name:c.__("Embed your display","wp-rss-aggregator"),desc:c.__("Add the imported items to your site","wp-rss-aggregator")},status:{name:c.__("Set import status","wp-rss-aggregator"),desc:c.__("Choose between Draft or Published","wp-rss-aggregator")},attribution:{name:c.__("Add a link to the source","wp-rss-aggregator"),desc:c.__("Provide attribution to the creators","wp-rss-aggregator")},curation:{name:c.__("Aggregate or curate","wp-rss-aggregator"),desc:c.__("Select your preferred method","wp-rss-aggregator")}}),[e,t])},useStepInfo(e){const t=this.useAllSteps()[e],r=ot.useTrack(),n=ot.useCurrStep(),a=r.indexOf(e),i=r.indexOf(n),s=a<i;return{step:t,isDone:s}},useCurrStep(){return Ii().step??"welcome"},useNavigation(){const e=this.useCurrStep(),t=lr();function r(u){t("onboarding",{step:u})}const n=this.useTrack(),a=n.indexOf(e);let i,s;return a>0&&(i=function(){r(n[a-1])}),a>=0&&a<n.length-1&&(s=function(){r(n[a+1])}),{nextStep:s,prevStep:i}},useFeedUrl:()=>ce(x9),useFeedName:()=>ce(cJ),useLayoutId:()=>ce(dJ),useCuration:()=>ce(fJ),useImportStatus:()=>ce(gJ),useAttribution:()=>ce(hJ),useCreatePage:()=>ce(_9),useBuildStage:()=>ce(pJ),useCreatedPageId:()=>ce(C9),useLayout(){const[e]=this.useLayoutId();return El.find(t=>t.id===e)},useIsUsingPreset(){const[e]=this.useFeedUrl();return this.feedPresets.some(t=>t.url===e)},useBuildHub(){const e=se().isAtLeast(W.Plus),[,t]=this.useBuildStage(),[r]=this.useFeedUrl(),[n]=this.useFeedName(),[a]=this.useLayoutId(),[i]=this.useCuration(),[s]=this.useImportStatus(),[u]=this.useAttribution(),[,l]=this.useFinished(),[,f]=dn.usePendingSettings(),h=q.importer.importById.useMutation({onSuccess(){q.client.invalidateQueries(["sources"]),q.client.invalidateQueries(["wpPosts"]),q.client.invalidateQueries(["irPosts"])}}),m=q.displays.save.useMutation({onSuccess(){q.client.invalidateQueries(["displays"])}}),g=q.renderer.embed.useMutation(),[p]=ce(_9),[w,y]=ce(bJ),[_,S]=ce(wJ),[H,L]=ce(C9);return async function(){const O=ub();O.curatePosts=i,O.enableAttribution=u,O.postStatus=s,O.postType=e?"post":"wprss_feed_item";const j=await ha(750,q.sources.save.call({id:w,name:n??r,url:r,isActive:!0,schedule:{type:"daily",days:1,time:-1},lastUpdate:null,nextUpdate:null,lastError:null,settings:O}));if(j.id===null)throw new Error(c.__("The feed source was not created properly.","wp-rss-aggregator"));if(y(j.id),t(Md.Import),await ha(1e3,h.mutateAsync([j.id])),t(Md.Display),!e){const R={...Sl};R.layout=a??"list";const K={id:_,name:c._x("My Display","Name of the display created during onboarding","wp-rss-aggregator"),sources:[j.id],folders:[],settings:R},M=await ha(750,m.mutateAsync([K]));if(S(M.id),p&&H===null){const F=c._x("Aggregator","Name of page created during onboarding","wp-rss-aggregator"),U=await ha(750,g.mutateAsync([M.id,F,"page"]));if(U===null)throw new Error(c.__("The page was not created properly.","wp-rss-aggregator"));L(U)}}t(Md.Hub),await ha(750,fetch("/?wpraDidOnboarding=finished")),f(R=>({...R,open:e})),t(Md.Done),l(!0)}},feedPresets:[{name:c.__("Aggregator Blog","wp-rss-aggregator"),url:"https://www.wprssaggregator.com/feed/"}]};function yJ(){const e=ot.useTrack(),t=ot.useCurrStep(),r=ot.useIsUsingPreset(),n=ot.useCancel();return b("div",{className:"flex w-96 flex-col gap-12 rounded-2xl bg-tertiary px-10 pb-10 pt-12",children:[o("div",{children:o(c8,{beeColor:"#fff",className:"text-white"})}),o("div",{className:"flex flex-1 flex-col gap-8",children:e.map(a=>o(xJ,{id:a},a))}),o("div",{className:"flex-1"}),r&&t!=="feed"&&o(_J,{}),o("div",{children:b(Ae,{onMouseDown:n,href:ot.cancelUrl(),target:"_top",variant:"none",className:"inline-flex flex-row items-center gap-1 px-1 text-md leading-5 text-white ring-white hover:underline focus-visible:ring-2",children:[o(zi,{}),c.__("Skip and go to your Hub","wp-rss-aggregator")]})})]})}function xJ(e){const{step:t,isDone:r}=ot.useStepInfo(e.id);return t?b("div",{className:"flex flex-shrink-0 flex-row items-start gap-5",children:[o("div",{className:r?"text-white":"text-gray-500",children:o(wn,{value:24,children:r?o(rs,{}):o(d8,{})})}),b("div",{className:"flex-1",children:[o("div",{className:fe("text-[14px] font-semibold leading-5",r?"text-gray-500 line-through":"text-white"),children:t.name}),o("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-md leading-4 text-gray-500",children:t.desc})]})]}):null}function _J(){const e=se();return b("div",{className:"flex flex-row items-start gap-[10px] rounded-lg border border-alert-yellow bg-[#FEF6EB] p-4 text-sm text-gray-900",children:[o("div",{className:"flex-shrink-0",children:o(ts,{size:20,className:"align-text-top"})}),o("p",{children:o(We,{children:e.isAtLeast(W.Plus)?c.__("*Reminder:* You’re using a test source. If you don’t want to automatically publish its posts on your site, use the curation option. You can add more sources later.","wp-rss-aggregator"):c.__("*Reminder*: You’re using a test source. Its content won’t be shown on your site unless you embed its display on a page or post. You can add more sources later.","wp-rss-aggregator")})})]})}function Aa(e){return b("div",{className:"flex h-full flex-row p-5",children:[o(yJ,{}),o("div",{className:"box-border flex-1 overflow-auto p-[100px] pr-[10%]",children:b("div",{className:"flex flex-1 flex-col items-center gap-16",children:[b("div",{className:"flex flex-col gap-5 text-center",children:[o("h1",{className:"mx-auto max-w-[580px] text-3xl leading-10 text-black",children:e.title}),e.subtitle&&o("h2",{className:"text-xl leading-7 text-gray-700 max-w-[750px] mx-auto",children:e.subtitle})]}),e.children]})})]})}function Ho(e){const{nextStep:t,prevStep:r}=ot.useNavigation();return b("div",{className:fe("flex flex-row items-center justify-center gap-4",e.className),children:[!e.hideBack&&r&&b(St,{onClick:r,children:[o(zi,{}),o("span",{children:c.__("Back","wp-rss-aggregator")})]}),!e.hideNext&&t&&b(Ne,{onClick:t,disabled:e.disabled,children:[o("span",{children:c.__("Next","wp-rss-aggregator")}),o(nn,{})]})]})}function Ld(e){return o("div",{className:"flex flex-row gap-4 data-[align=start]:items-start","data-align":e.align??"stretch",children:e.options.map(({id:t,label:r,desc:n,disabled:a})=>o(CJ,{desc:n,selected:e.selected===t,disabled:a,onClick:()=>e.onChange?.(t),children:r},t))})}function CJ(e){return b("button",{className:fe("box-border inline-flex w-[300px] select-none flex-row items-start gap-4 rounded-lg border border-gray-400 px-6 py-5 shadow-gray-400 ring-primary focus-visible:underline","data-[selected=true]:border-primary data-[selected=true]:bg-light-blue data-[selected=true]:shadow-lg data-[selected=true]:ring"),"aria-disabled":e.disabled,"data-selected":e.selected,onClick:function(){e.disabled||e.onClick?.(!e.selected)},children:[o("div",{className:"flex h-6 shrink-0 flex-row items-center justify-between leading-6",children:o(No,{checked:e.selected??!1,disabled:e.disabled,className:"pointer-events-none block",tabIndex:-1,readOnly:!0})}),b("div",{className:"flex flex-col gap-1 text-left text-lg leading-6 text-black data-[disabled]:text-gray-600","data-disabled":e.disabled,children:[o("div",{className:"font-bold",children:e.children}),e.desc&&o("div",{children:e.desc})]})]})}function S9({children:e}){return o("div",{className:"rounded-2xl mx-auto box-border max-w-[650px] bg-light-blue p-8 text-md leading-4 text-gray-800",children:e})}function SJ(){const[e,t]=ot.useAttribution();return b(Aa,{title:c.__("Provide attribution to the original source","wp-rss-aggregator"),subtitle:c.__("Choose whether to add an attribution link back to the original source within each Post, giving the original content creator credit for their work.","wp-rss-aggregator"),children:[o("div",{className:"mx-auto",children:o(Ld,{options:EJ,selected:e?"true":"false",onChange:r=>t(r==="true")})}),o(S9,{children:o(We,{children:c.__("*Tip!* Linking back to the original source is the most ethical way of giving content creators the credit they deserve for their work and building stronger relationships over time.","wp-rss-aggregator")})}),o(Ho,{})]})}const EJ=[{id:"true",label:c.__("Add attribution","wp-rss-aggregator"),desc:c.__("A message linking to the original source will appear at the top of each Post.","wp-rss-aggregator")},{id:"false",label:c.__("Do not add attribution","wp-rss-aggregator"),desc:c.__("Display only the imported post content, excluding attribution links.","wp-rss-aggregator")}];function AJ(){const e=se().isAtLeast(W.Plus),[t]=ot.useImportStatus(),[r,n]=ot.useCuration(),a=[{id:"aggregate",label:c.__("Aggregate","wp-rss-aggregator"),desc:e?t==="draft"?c.__("Import items automatically as Draft Posts.","wp-rss-aggregator"):c.__("Import items automatically as Published Posts.","wp-rss-aggregator"):c.__("Import items automatically as Feed Items.","wp-rss-aggregator")},{id:"curate",label:c.__("Curate","wp-rss-aggregator"),desc:e?c.__("Approve or reject items before importing as Posts.","wp-rss-aggregator"):c.__("Approve or reject items before importing.","wp-rss-aggregator")}];return b(Aa,{title:c.__("Will you aggregate or curate your content?","wp-rss-aggregator"),subtitle:c.__("You can choose to either publish the content automatically (aggregate) or manually approve items from your Hub before publishing (curate).","wp-rss-aggregator"),children:[o("div",{className:"mx-auto",children:o(Ld,{options:a,selected:r?"curate":"aggregate",onChange:i=>n(i==="curate")})}),o(S9,{children:o(We,{children:c.__("*Tip!* Many users find that curating content drives higher engagement and provides more value.","wp-rss-aggregator")})}),o(Ho,{})]})}function DJ(){const[e,t]=ot.useCreatePage(),r=[{id:"create",label:c.__("Create a new page with your display","wp-rss-aggregator"),desc:o("p",{className:"text-lg leading-6",children:c.__("We’ll create a new page called “Aggregator” to display your feed.","wp-rss-aggregator")})},{id:"add",label:c.__("Add your display to an existing page","wp-rss-aggregator"),desc:o("div",{className:"flex flex-col gap-4",children:b("p",{className:"text-lg leading-6",children:[o(We,{children:c.__("Use the “RSS Aggregator” block or the shortcode:","wp-rss-aggregator")})," ",o("span",{className:"select-all whitespace-nowrap text-primary",children:"[wp-rss-aggregator]"})]})})}];return b(Aa,{title:c.__("Add your feed display to your site","wp-rss-aggregator"),subtitle:c.__("Embed your imported content for your visitors to enjoy.","wp-rss-aggregator"),children:[o("div",{className:"mx-auto max-w-[700px]",children:o(Ld,{options:r,selected:e?"create":"add",onChange:n=>t(n==="create"),align:"start"})}),o(Ho,{})]})}function kJ(){const[e,t]=ot.useFeedUrl(),[,r]=ot.useFeedName(),[n,a]=D.useState(!1);function i(s){t(s.url),r(s.name)}return b(Aa,{title:c.__("Create your first content source","wp-rss-aggregator"),subtitle:c.__("Enter a website or RSS feed URL below.","wp-rss-aggregator"),children:[b("div",{className:"mx-auto flex max-w-[400px] flex-col gap-2",children:[o(NJ,{onValidate:(s,u)=>a(u)}),b("div",{className:"flex flex-row items-start gap-2 p-4",children:[o(fr,{}),b("div",{className:"flex flex-col gap-4 text-md leading-4 text-gray-800",children:[o("p",{children:c.__("Don’t know the RSS feed URL? Enter a website's URL and Aggregator will try to find it for you.","wp-rss-aggregator")}),o("p",{children:o(We,{urls:{docs:"https://www.wprssaggregator.com/help/how-to-find-an-rss-feed/"},linkProps:{variant:"secondary",target:"_blank"},children:c.__("Need help? [Learn how to find a website’s RSS feed][docs].","wp-rss-aggregator")})})]})]})]}),o(Ho,{className:"mb-100",disabled:!e||!n,hideBack:!0}),b("div",{className:"mx-auto box-border flex max-w-[740px] flex-col gap-5 rounded-2xl bg-light-blue px-9 py-10",children:[o("p",{className:"text-center text-lg leading-6 text-black",children:o(We,{children:c.__("*Testing things out?* Use Aggregator Blog’s RSS feed as a sample source.","wp-rss-aggregator")})}),o("div",{className:"flex flex-col gap-4 lg:flex-row lg:flex-wrap lg:justify-center",children:ot.feedPresets.map(s=>o(oa,{variant:e===s.url?"secondary":"outline",onClick:()=>i(s),children:s.name},s.name))})]})]})}function NJ({onValidate:e}){const[t,r]=ot.useFeedUrl(),n=ot.useIsUsingPreset(),[,a]=ot.useFeedName();function i(u){r(u),a(null),e?.(u,!1)}function s(u){n||a(u)}return b("label",{className:"relative flex w-full items-center gap-2 rounded-xs border border-gray-700 ring-primary focus-within:border-primary focus-within:ring-1",children:[o("div",{className:"absolute left-4",children:o(ao,{})}),o(l9,{value:t,onChange:i,onValidate:e,onGetFeedName:s,className:"form-input w-full pl-12 pr-10 py-2 text-md transition-shadow bg-transparent border-none ring-0 placeholder-gray-700 focus:border-primary focus:ring-primary",placeholder:"https://website.com/feed",variantWrapperClass:"relative w-full max-w-lg"}),o("div",{className:"absolute right-2",children:o(Km,{})})]})}const TJ=me(()=>o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 8.20721V4.5H18.5V10.5H15.5607L11.5303 6.46967C11.2403 6.17969 10.7712 6.17639 10.4772 6.46225L8.90602 7.98978L7.69364 7.20397C7.43288 7.03496 7.09491 7.04425 6.84384 7.22733L5.5 8.20721ZM5.5 10.0636V10.5H13.4393L10.9926 8.05324L9.52281 9.48219C9.27192 9.72611 8.88571 9.76412 8.59208 9.57381L7.31073 8.7433L5.5 10.0636ZM4 4.11111C4 3.49746 4.49746 3 5.11111 3H18.8889C19.5025 3 20 3.49746 20 4.11111V10.8889C20 11.5025 19.5025 12 18.8889 12H5.11111C4.49746 12 4 11.5025 4 10.8889V4.11111ZM12.9999 20H3.99988V18.5H12.9999V20ZM3.99988 16H19.9999V14.5H3.99988V16Z",fill:"currentColor"})),HJ=me(()=>b(ie,{children:[o("path",{d:"M14 10C14 11.1046 13.1046 12 12 12C10.8954 12 10 11.1046 10 10C10 8.89543 10.8954 8 12 8C13.1046 8 14 8.89543 14 10Z",fill:"currentColor"}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM7.25 16.4371C6.16445 15.2755 5.5 13.7153 5.5 12C5.5 8.41015 8.41015 5.5 12 5.5C15.5899 5.5 18.5 8.41015 18.5 12C18.5 13.7153 17.8356 15.2755 16.75 16.4371V16C16.75 14.4812 15.5188 13.25 14 13.25L10 13.25C8.48122 13.25 7.25 14.4812 7.25 16V16.4371ZM8.75 17.6304C9.70606 18.1835 10.8161 18.5 12 18.5C13.1839 18.5 14.2939 18.1835 15.25 17.6304V16C15.25 15.3096 14.6904 14.75 14 14.75L10 14.75C9.30964 14.75 8.75 15.3096 8.75 16V17.6304Z",fill:"currentColor"})]}));function IJ(){const[e,t]=D.useState("idle");switch(e){case"idle":return o(OJ,{onStartBuild:()=>t("building")});case"building":return o(VJ,{})}}function OJ(e){return se().isLowerThan(W.Plus)?o(MJ,{onStartBuild:e.onStartBuild}):o(LJ,{onStartBuild:e.onStartBuild})}function MJ(e){const{prevStep:t}=ot.useNavigation();return b(Aa,{title:c.__("All done! Ready to import the content from this source into your new Hub?","wp-rss-aggregator"),children:[b("div",{className:"relative",children:[o(E9,{className:"absolute bottom-0 right-full mb-3 mr-10"}),o(xr,{className:"absolute bottom-0 right-full mb-2 mr-4",size:28}),o(Ne,{size:"xl",onClick:e.onStartBuild,children:c.__("Start Import","wp-rss-aggregator")})]}),o("div",{className:"flex flex-col items-center gap-8",children:b(_r,{onClick:()=>t?.(),children:[o(zi,{}),o("span",{children:c.__("Go back and adjust your settings","wp-rss-aggregator")})]})})]})}function LJ(e){const t=se(),{prevStep:r}=ot.useNavigation();function n(a){return b("div",{className:"flex flex-1 flex-row items-center justify-start gap-2 overflow-hidden rounded-xs border border-gray-200 bg-white px-4 py-[14px] text-sm leading-4 text-gray-800",children:[a.icon,o("span",{children:a.children})]})}return b(Aa,{title:c.__("All done! Ready to import the content from this source into your new Hub?","wp-rss-aggregator"),children:[b("div",{className:"relative",children:[o(E9,{className:"absolute bottom-0 right-full mb-3 mr-10"}),o(xr,{className:"absolute bottom-0 right-full mb-2 mr-4",size:28}),o(Ne,{size:"xl",onClick:e.onStartBuild,children:c.__("Start Import","wp-rss-aggregator")})]}),b("div",{className:"flex flex-col items-center gap-8",children:[b("div",{className:"flex max-w-[680px] flex-col gap-8 rounded-lg bg-light-blue p-8",children:[o("p",{className:"text-md leading-4 text-gray-700 lg:px-[12%] lg:text-center",children:c.__("Once the import is ready, you can dive deeper into customizing your sources’ settings and features to match your website’s style, including:","wp-rss-aggregator")}),b("div",{className:"grid grid-cols-1 gap-[10px] lg:grid-cols-2 xl:grid-cols-3",children:[o(n,{icon:o(rh,{}),children:c.__("Optimize performance","wp-rss-aggregator")}),o(n,{icon:o(TJ,{}),children:c.__("Set featured image","wp-rss-aggregator")}),o(n,{icon:o(Lg,{}),children:c.__("Add excerpts","wp-rss-aggregator")}),o(n,{icon:o(HJ,{}),children:c.__("Add attribution","wp-rss-aggregator")}),o(n,{icon:o(Fy,{}),children:c.__("Modify content","wp-rss-aggregator")}),o(n,{icon:o(Mg,{}),children:c.__("Set authors","wp-rss-aggregator")}),o(n,{icon:o(Py,{}),children:c.__("Set categories","wp-rss-aggregator")}),o(n,{icon:o(Ry,{}),children:c.__("Set tags","wp-rss-aggregator")}),o(n,{icon:o(By,{}),children:c.__("Add custom text","wp-rss-aggregator")}),t.isAtLeast(W.Pro)&&b(ie,{children:[o(n,{icon:o($h,{}),children:c.__("Import full content","wp-rss-aggregator")}),o(n,{icon:o($h,{}),children:c.__("Import missing images","wp-rss-aggregator")})]}),t.isAtLeast(W.Elite)&&o(n,{icon:o(jh,{}),children:c.__("Set up integrations","wp-rss-aggregator")})]})]}),b(_r,{onClick:()=>r?.(),children:[o(zi,{}),o("span",{children:c.__("Go back and adjust your settings","wp-rss-aggregator")})]})]})]})}function VJ(){const e=se(),t=D.useRef(!1),[r,n]=D.useState(!1),[a,i]=D.useState(null),[s]=ot.useBuildStage(),u=ot.useBuildHub(),[l]=ot.useCreatePage(),[f]=ot.useCreatedPageId(),[h]=ot.useCuration();return D.useEffect(()=>{t.current||(t.current=!0,u().then(function(){n(!0)}).catch(function(m){m instanceof Error?i(m):i(new Error(c.__("An unknown error occurred.","wp-rss-aggregator")))}).finally(function(){t.current=!1}))},[]),b(Aa,{title:r?c.__("Import completed!","wp-rss-aggregator"):c.__("Import started...","wp-rss-aggregator"),subtitle:r?c.__("Go to your Hub to see the imported content and continue adding more sources to your site.","wp-rss-aggregator"):c.__("We’re building your new Hub in the background. It will be your central dashboard where you can manage all your sources and imported content.","wp-rss-aggregator"),children:[b("div",{className:"mx-auto flex min-w-[250px] flex-col gap-2",children:[o(Vd,{isLoading:s<1,loadingText:c._x("Source...","Onboarding last step, creating source","wp-rss-aggregator"),doneText:c.__("Source added","wp-rss-aggregator")}),o(Vd,{isLoading:s<2,loadingText:c._x("Content...","Onboarding last step, importing content","wp-rss-aggregator"),doneText:c.__("Content imported","wp-rss-aggregator")}),e.isLowerThan(W.Plus)&&o(Vd,{isLoading:s<3,loadingText:c._x("Layout...","Onboarding last step, creating display","wp-rss-aggregator"),doneText:c.__("Layout applied","wp-rss-aggregator")}),o(Vd,{isLoading:s<4,loadingText:c._x("Hub...","Onboarding last step","wp-rss-aggregator"),doneText:c.__("Hub built","wp-rss-aggregator")})]}),a&&b("div",{className:"rounded-2xl bg-light-red p-8 text-alert-red",children:[o(ts,{className:"mr-2 align-text-top"}),o("span",{className:"text-md leading-4",children:a.message})]}),r&&b("div",{className:"flex flex-row items-center gap-4",children:[!h&&l&&f&&o(St,{href:_t.wpPage(f),target:"_blank",children:c.__("View your new page","wp-rss-aggregator")}),o(Ae,{href:ot.finishUrl(),target:"_top",children:b(Ne,{children:[o("span",{children:c.__("Go to your Hub","wp-rss-aggregator")}),o(nn,{})]})})]}),r&&l&&f&&h&&b("div",{className:"flex flex-row items-start",children:[o(fr,{width:18,height:18}),o("div",{className:"text-md text-gray-800 max-w-[280px] text-center",children:o("p",{children:it(c.__("The feed on <a>your newly created page</a> will be empty until you approve your feed items.","wp-rss-aggregator"),{a:o("a",{href:_t.wpPage(f),target:"_blank",className:"underline"})})})})]})]})}function Vd(e){return o(wn,{value:30,children:b("div",{className:"flex flex-row pl-10 gap-3",children:[e.isLoading?o(_n,{}):o(rs,{className:"text-alert-green"}),o("p",{className:fe("text-xl leading-7",e.isLoading?"text-gray-400":"text-black"),children:e.isLoading?e.loadingText:e.doneText})]})})}function E9(e){return o("svg",{xmlns:"http://www.w3.org/2000/svg",width:"119",height:"102",viewBox:"0 0 119 102",fill:"none",...e,children:o("path",{d:"M117.484 100.938C110.932 100.496 105.229 98.3187 99.5863 94.1925C93.9439 90.0663 88.4106 84.4022 85.2712 80.0567C82.1318 75.7113 82.1776 69.8973 81.9511 64.3496C81.7246 58.8018 83.1567 53.3031 86.6698 49.8349C90.183 46.3667 94.1525 45.0582 98.5783 45.9095C103.004 46.7607 105.967 49.2371 107.467 53.3388C108.966 57.4405 108.408 61.4883 105.791 65.4824C103.175 69.4765 99.5616 72.2899 94.9512 73.9226C90.3409 75.5553 85.2079 76.4789 79.5523 76.6932C73.8967 76.9076 68.1686 76.704 62.368 76.0824C56.5673 75.4608 50.8114 74.3385 45.1003 72.7157C39.3891 71.0929 33.9929 68.7937 28.9116 65.818C23.8302 62.8423 19.2351 58.7731 15.1263 53.6103C11.0175 48.4475 7.92393 42.8379 5.84564 36.7815C3.76736 30.7252 2.30796 23.8535 1.46744 16.1666C0.626445 8.47959 1 10.5 1.46768 1.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"0.1 4"})})}function PJ(){const[e,t]=ot.useImportStatus();return b(Aa,{title:c.__("Choose how to import your Posts","wp-rss-aggregator"),subtitle:c.__("Decide whether to import Posts as Drafts and publish them later yourself or have them imported and Published automatically to your Blog.","wp-rss-aggregator"),children:[o(Ld,{options:FJ,selected:e,onChange:t}),o(Ho,{})]})}const FJ=[{id:"draft",label:o("span",{className:"font-bold",children:c.__("Import as Drafts","wp-rss-aggregator")})},{id:"publish",label:o("span",{className:"font-bold",children:c.__("Automatically Publish","wp-rss-aggregator")})}];function BJ(){const[e,t]=ot.useLayoutId(),r=!se().isPremium(),[n,a]=D.useState(!1);return b(Aa,{title:c.__("Choose how to display your content","wp-rss-aggregator"),subtitle:c.__("Customize your feed display later - from link styling to pagination.","wp-rss-aggregator"),children:[o("div",{className:"mx-auto max-w-[600px]",children:o(Ra,{columns:3,selected:e??"",onSelect:i=>Tv(i)&&t(i),children:El.map(i=>o(Ra.Graphical,{value:i.id,label:i.name,graphic:i.graphic,minTier:i.tier,labelClassName:"text-[16px]"},i.id))})}),r&&b("div",{children:[b("div",{className:"mx-auto flex max-w-[600px] flex-row items-center justify-between gap-7 rounded-xs bg-tertiary px-2 py-2 pl-5 text-md text-white",children:[o("p",{children:o(We,{urls:{1:Q.urls.website.upgrade},linkProps:{variant:"white",target:"_blank",onClick:()=>a(!0)},children:c.__("Get access to all the layouts and full customization with our [premium plans][1].","wp-rss-aggregator")})}),o(Cr,{className:"flex-shrink-0",size:"sm",href:Q.urls.website.upgrade,target:"_blank",onClick:()=>a(!0),children:c.__("Upgrade","wp-rss-aggregator")})]}),n&&o("p",{className:"mt-4 text-center text-sm leading-4",children:o(We,{urls:{1:`${Q.urls.wp.admin}/plugin-install.php`},linkProps:{variant:"primary",target:"_blank"},children:c.__("Upgraded? [Install Aggregator Premium][1].","wp-rss-aggregator")})})]}),o(Ho,{disabled:e===null})]})}function RJ(){const[e,t]=D.useState(!1),r=se().isAtLeast(W.Basic),n=D.useMemo(function(){return Q.premiumInstalled&&!e&&!r?o(KJ,{onDone:()=>t(!0)}):o(UJ,{})},[Q.premiumInstalled,e,r]);return o("div",{className:"relative flex h-full w-full flex-col items-center justify-center gap-4 overflow-y-auto overflow-x-hidden bg-tertiary",children:n})}function UJ(){const{nextStep:e}=ot.useNavigation();return b(fp,{title:c.__("Let's get started!","wp-rss-aggregator"),children:[o("p",{className:"text-xl leading-6 text-gray-700",children:c.__("Follow our quick 60-second introduction.","wp-rss-aggregator")}),o("p",{className:"text-lg leading-4 text-gray-700",children:c.__("Get to know the essentials of Aggregator.","wp-rss-aggregator")}),b("div",{className:"mx-auto mt-4 flex flex-col items-stretch gap-[10px]",children:[b(Ne,{onClick:e,children:[o("span",{children:c.__("Get started","wp-rss-aggregator")}),o(nn,{})]}),o(zJ,{})]})]})}function KJ(e){const t=D.useRef(null),[r,n]=D.useState(""),a=Cn.useActivate(r);function i(){a.mutate(void 0,{onError(s){t.current?.setCustomValidity(s.message)}})}return a.isSuccess?o(fp,{title:c.__("License activated.","wp-rss-aggregator"),children:o(Ne,{onClick:()=>e.onDone(),className:"mx-auto mt-4",children:c.__("Next","wp-rss-aggregator")})}):b(fp,{title:c.__("Welcome to Aggregator!","wp-rss-aggregator"),children:[o("p",{className:"mb-4 text-xl leading-7 text-gray-700",children:o(We,{urls:{license:"https://www.wprssaggregator.com/account/licenses/"},linkProps:{target:"_blank",variant:"secondary"},children:c.__("Activate your premium [license key][license].","wp-rss-aggregator")})}),b("div",{className:"relative",children:[o(tt,{ref:t,value:r,onChange:n,placeholder:c.__("Enter your license key here...","wp-rss-aggregator"),className:"!h-auto w-full !px-4 !py-4 !text-md !leading-4",validation:()=>a.error?.message??"",onKeyDown:function(s){s.key==="Enter"&&(s.preventDefault(),i())}}),b("div",{className:"absolute bottom-[1px] right-[1px] top-[1px] flex items-center px-2",children:[a.isLoading&&o(_n,{}),a.error!==null&&o(ts,{className:"text-alert-red"})]})]}),b("div",{className:"flex flex-col items-stretch gap-4",children:[o(Ne,{size:"lg",disabled:r.trim().length===0||a.isLoading,onClick:i,children:c.__("Activate","wp-rss-aggregator")}),o(_r,{onClick:()=>e.onDone(),children:c.__("Skip","wp-rss-aggregator")})]})]})}function fp(e){return o("div",{className:"w-[660px] max-w-[660px] rounded-2xl bg-white p-20 shadow-md shadow-tertiary-dark",children:b("div",{className:"mx-auto flex w-[380px] flex-col items-stretch gap-[18px] text-center",children:[o(xr,{size:72,className:"mx-auto mb-[-16px] text-accent"}),e.title&&o("h1",{className:"text-3xl font-normal leading-10 text-black",children:e.title}),e.children]})})}function zJ(){const e=ot.useCancel();return o(Ae,{onMouseDown:e,href:ot.cancelUrl(),target:"_top",className:"min-h-[36px] rounded-xs text-center text-md leading-9 ring-primary hover:bg-gray-100 focus-visible:ring-2",children:c.__("Skip","wp-rss-aggregator")})}function A9(){const[e,t]=D.useState(!1),r=ot.useCurrStep(),n=lr();if(D.useEffect(function(){r!=="welcome"&&n("onboarding"),t(!0)},[]),!e)return null;switch(r){default:case"welcome":return o(RJ,{});case"feed":return o(kJ,{});case"layout":return o(BJ,{});case"status":return o(PJ,{});case"embed":return o(DJ,{});case"attribution":return o(SJ,{});case"curation":return o(AJ,{});case"final":return o(IJ,{})}}function $J(){const{pageId:e,navigate:t}=dp();switch(D.useLayoutEffect(()=>Mn.subscribe(rl.navigate,function(n){typeof n=="object"&&typeof n.page=="string"?t(n.page,n.params??{},n.why):console.error("Router: invalid payload",n)}),[]),Q.state){case"onboarding":return o(A9,{});case"v4_migration":return o(m9,{});default:{const r=b9.find(n=>n.id===e)||b9[0];return D.createElement(r.component)}}}function jJ({icon:e,children:t,action:r,onAction:n}){function a(i){i.stopPropagation(),i.preventDefault(),n?.()}return b("div",{className:"pointer-events-auto flex min-h-[50px] animate-slide-in-left flex-row items-center gap-3 rounded-xs bg-gray-900 px-6 py-4 text-left text-md leading-4 text-white shadow-md shadow-gray-dark",children:[e,t&&o("div",{className:"flex-1",children:t}),r&&o("button",{className:"relative box-border rounded-sm bg-gray-900 px-2 py-[6px] text-md text-white transition-shadow hover:bg-gray-800 focus:ring-2 focus:ring-gray-900 focus:ring-offset-2 data-[disabled=true]:cursor-not-allowed data-[disabled=true]:bg-gray-100 data-[toggled=true]:bg-gray-800 data-[disabled=true]:text-gray-600 data-[disabled=true]:hover:bg-gray-100 data-[disabled=true]:focus:ring-0",onClick:a,children:r})]})}const qJ="wpra-snackbar-root";function WJ(){const e=D.useRef(null),t=xn(),r=document.querySelector("."+qJ)??document.body,n=o("div",{ref:e,className:"z-snackbar pointer-events-none absolute right-8 top-[84px] flex h-min max-w-[50%] flex-col items-end gap-4",children:t.instances.map(a=>o(jJ,{icon:a.icon,action:a.action?.label,onAction:()=>a.action?.callback?.(()=>t.dismiss(a.id)),children:a.content},a.id))});return Xt.createPortal(n,r)}const GJ={name:"goto",autoCompletion:{"":v9.slice()},factory(){const e=lr();return async t=>{const r=t[0];if(r===void 0)return new Error(c.__("No page specified.","wp-rss-aggregator"));if(lJ(r))e(r);else return new Error(c.__("Invalid page id.","wp-rss-aggregator"))}}},ZJ={name:"rpc",autoCompletion:{"":["sources","wpPosts","rejectList","displays","folders","importer","renderer","irPosts","curator","rels","wordai","settings","tutorials","wp","progress","license","logger"],sources:Object.keys(q.sources),wpPosts:Object.keys(q.wpPosts),rejectList:Object.keys(q.rejectList),displays:Object.keys(q.displays),folders:Object.keys(q.folders),importer:Object.keys(q.importer),renderer:Object.keys(q.renderer),irPosts:Object.keys(q.irPosts),rels:Object.keys(q.rels),curator:Object.keys(q.curator),wordai:Object.keys(q.wordai),settings:Object.keys(q.settings),tutorials:Object.keys(q.tutorials),wp:Object.keys(q.wp),progress:Object.keys(q.progress),license:Object.keys(q.license),logger:Object.keys(q.logger),"logger get":["<number> <page>"],"logger getList":["<number> <page>"]},factory(){return async(e,t)=>{if(e.length<2)return new Error("No RPC handler specified");const[r,n,...a]=e,i=r+"."+n,s=[];for(const l of a)s.push(JSON.parse(l));const u=await new de(i,s).call();t({title:"rpc "+e.join(" "),content:o("pre",{children:typeof u=="string"?u:JSON.stringify(u,null,4)})}),q.client.invalidateQueries([])}}},YJ={name:"tier",autoCompletion:{"":Object.values(um).map(e=>e.toLowerCase().replaceAll(" ",""))},factory(){const e=se();return async t=>{const r=t[0];if(r===void 0)return new Error(c.__("No tier specified.","wp-rss-aggregator"));let n=null;switch(r.toLowerCase()){case"free":n=W.Free;break;case"basic":n=W.Basic;break;case"plus":n=W.Plus;break;case"pro":n=W.Pro;break;case"elite":n=W.Elite;break}if(n!=null)e.set(n);else return new Error(c.__("Invalid tier.","wp-rss-aggregator"))}}},gp=[GJ,YJ,ZJ];function QJ(){const e=[];for(const{name:t,factory:r}of gp){const n=r();e.push({name:t,callback:n})}return e}function XJ(){const e=QJ();return(t,r)=>{const n=t.split(" ");if(n.length==0)return;const a=n[0],i=e.find(u=>u.name===a);if(!i)return new Error(c.__("Unknown command.","wp-rss-aggregator"));const s=n.slice(1);return i.callback(s,r)}}const JJ=Oe(null);function eee(){const e=D.useRef(null),[t,r]=D.useState(!1),[n,a]=ce(JJ),[i,s]=D.useState(""),u=XJ(),l=xn();function f(){r(!0),e.current?.focus()}function h(){r(!1),s("")}Sr("F4",f,!0,!0),Sr("Escape",h,!0,!0);async function m(p){switch(p.key){case"Escape":e.current?.blur();break;case"Enter":s(""),r(!1);const w=await u(i,a);w&&l.add({content:w.message,dismissible:!0,ttl:5e3}),p.preventDefault();break}}const g=D.useMemo(()=>tee(i),[i]);return b(ie,{children:[t&&b("div",{className:"fixed left-0 right-0 top-0 z-[10000] flex flex-row items-center bg-gray-900 font-mono text-white",children:[o("div",{className:"mr-1 flex-1",children:o(fi.TextInput,{inputRef:e,className:"rounded-0 ml-4 h-[68px] w-full flex-1 border-0 bg-transparent p-2 text-md text-white focus:ring-0",placeholder:c.__("Enter a command","wp-rss-aggregator"),value:i,onChange:s,onKeyDown:m,options:g,filterBy:"value",autoFocus:!0})}),o("div",{className:"flex flex-col justify-center pr-3",children:o("button",{className:"rounded-full p-2 leading-4 ring-white focus-visible:ring-2",onClick:h,children:o(ni,{size:22})})})]}),o(ua,{open:n!==null,onOpenChange:()=>a(null),outsideDismiss:!1,title:n?.title,className:"max-h-[90%] max-w-[90%]",showClose:!0,children:n?.content})]})}function tee(e){const t=e.trim().split(" "),r=gp.find(l=>l.name===t[0]);if(r===void 0)return gp.map(l=>({value:l.name,label:l.name}));if(!r?.autoCompletion)return[];const n=t.slice(1),a=n.join(" ").trim();let i=r.autoCompletion[a]??[],s=t.join(" ");if(i.length===0&&n.length>0){const l=n.slice(0,-1).join(" ").trim();i=r.autoCompletion[l]??[],s=t.slice(0,-1).join(" ")}return i.map(l=>({value:s+" "+l}))}function ree(){const e=D.useRef(!1),t=uJ();return D.useLayoutEffect(()=>{e.current||(t(),e.current=!0)},[e,t]),o(Qd,{children:b(o_,{client:q.client,children:[o(WJ,{}),o(E8,{}),o(vN,{}),o(CD,{}),o($J,{}),o(eee,{})]})})}const D9="wpra-admin-ui",k9=document.getElementById(D9);Mn.subscribe(rl.init,()=>{setTimeout(nee,1)});function nee(){k9?Yd.createRoot(k9).render(o(D.StrictMode,{children:o(ree,{})})):console.error(`Could not find root element: #${D9}`)}});